Lines 38-45
public class PasswordDialog : Dialog {
Link Here
|
38 |
set_default_response(ResponseType.OK); |
38 |
set_default_response(ResponseType.OK); |
39 |
set_icon_name(icon); |
39 |
set_icon_name(icon); |
40 |
|
40 |
|
|
|
41 |
#if LIBNOTIFY07 |
41 |
add_button(Stock.CANCEL, ResponseType.CANCEL); |
42 |
add_button(Stock.CANCEL, ResponseType.CANCEL); |
42 |
add_button(Stock.OK, ResponseType.OK); |
43 |
add_button(Stock.OK, ResponseType.OK); |
|
|
44 |
#else |
45 |
add_button(STOCK_CANCEL, ResponseType.CANCEL); |
46 |
add_button(STOCK_OK, ResponseType.OK); |
47 |
#endif |
43 |
|
48 |
|
44 |
Container content = (Container) get_content_area(); |
49 |
Container content = (Container) get_content_area(); |
45 |
|
50 |
|
Lines 181-187
public class MyStatusIcon : StatusIcon {
Link Here
|
181 |
|
186 |
|
182 |
set_visible(true); |
187 |
set_visible(true); |
183 |
|
188 |
|
|
|
189 |
#if LIBNOTIFY07 |
184 |
Notification n = new Notification(title, message, icon); |
190 |
Notification n = new Notification(title, message, icon); |
|
|
191 |
#else |
192 |
Notification n = new Notification(title, message, icon, null); |
193 |
n.attach_to_status_icon(this); |
194 |
#endif |
185 |
n.set_timeout(5000); |
195 |
n.set_timeout(5000); |
186 |
n.show(); |
196 |
n.show(); |
187 |
|
197 |
|
Lines 225-231
public class MyStatusIcon : StatusIcon {
Link Here
|
225 |
|
235 |
|
226 |
OutputStream stream = new UnixOutputStream(to_process, true); |
236 |
OutputStream stream = new UnixOutputStream(to_process, true); |
227 |
|
237 |
|
|
|
238 |
#if LIBNOTIFY07 |
228 |
stream.write(password.data, null); |
239 |
stream.write(password.data, null); |
|
|
240 |
#else |
241 |
stream.write(password, password.length, null); |
242 |
#endif |
229 |
} |
243 |
} |
230 |
} |
244 |
} |
231 |
|
245 |
|