Merge lp:~mterry/update-notifier/gtk3-and-gdbus into lp:update-notifier/ubuntu
- gtk3-and-gdbus
- Merge into ubuntu
Proposed by
Michael Terry
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 631 | ||||
Proposed branch: | lp:~mterry/update-notifier/gtk3-and-gdbus | ||||
Merge into: | lp:update-notifier/ubuntu | ||||
Diff against target: |
1023 lines (+245/-335) 7 files modified
configure.in (+1/-1) src/crash.c (+1/-1) src/hooks.c (+1/-1) src/reboot.c (+92/-124) src/update.c (+41/-28) ui/hooks-dialog.ui (+58/-81) ui/reboot-dialog.ui (+51/-99) |
||||
To merge this branch: | bzr merge lp:~mterry/update-notifier/gtk3-and-gdbus | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Core Development Team | Pending | ||
Review via email: mp+67831@code.launchpad.net |
Commit message
Description of the change
Ports to gdbus and gtk3.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'configure.in' | |||
2 | --- configure.in 2010-10-05 16:33:46 +0000 | |||
3 | +++ configure.in 2011-07-13 14:29:33 +0000 | |||
4 | @@ -12,7 +12,7 @@ | |||
5 | 12 | 12 | ||
6 | 13 | GNOME_COMMON_INIT | 13 | GNOME_COMMON_INIT |
7 | 14 | 14 | ||
9 | 15 | pkg_modules="gtk+-2.0 >= 2.18.0 gconf-2.0 dbus-glib-1 libnotify gio-2.0 x11" | 15 | pkg_modules="gtk+-3.0 gconf-2.0 libnotify gio-2.0 >= 2.26 x11" |
10 | 16 | 16 | ||
11 | 17 | PKG_CHECK_EXISTS(gdu, [ HAVE_GDU=1 ]) | 17 | PKG_CHECK_EXISTS(gdu, [ HAVE_GDU=1 ]) |
12 | 18 | if test "x$HAVE_GDU" != "x"; then | 18 | if test "x$HAVE_GDU" != "x"; then |
13 | 19 | 19 | ||
14 | === modified file 'src/crash.c' | |||
15 | --- src/crash.c 2011-06-08 07:28:28 +0000 | |||
16 | +++ src/crash.c 2011-07-13 14:29:33 +0000 | |||
17 | @@ -176,7 +176,7 @@ | |||
18 | 176 | 176 | ||
19 | 177 | // crashreport found | 177 | // crashreport found |
20 | 178 | if(crashreports_found > 0 && !visible) { | 178 | if(crashreports_found > 0 && !visible) { |
22 | 179 | gtk_status_icon_set_tooltip(ta->tray_icon, | 179 | gtk_status_icon_set_tooltip_text(ta->tray_icon, |
23 | 180 | _("Crash report detected")); | 180 | _("Crash report detected")); |
24 | 181 | gtk_status_icon_set_visible(ta->tray_icon, TRUE); | 181 | gtk_status_icon_set_visible(ta->tray_icon, TRUE); |
25 | 182 | /* Show the notification, after a delay so it doesn't look ugly | 182 | /* Show the notification, after a delay so it doesn't look ugly |
26 | 183 | 183 | ||
27 | === modified file 'src/hooks.c' | |||
28 | --- src/hooks.c 2011-06-08 07:28:28 +0000 | |||
29 | +++ src/hooks.c 2011-07-13 14:29:33 +0000 | |||
30 | @@ -48,7 +48,7 @@ | |||
31 | 48 | 48 | ||
32 | 49 | updates = _("Information available"); | 49 | updates = _("Information available"); |
33 | 50 | 50 | ||
35 | 51 | gtk_status_icon_set_tooltip(un->tray_icon, updates); | 51 | gtk_status_icon_set_tooltip_text(un->tray_icon, updates); |
36 | 52 | } | 52 | } |
37 | 53 | 53 | ||
38 | 54 | 54 | ||
39 | 55 | 55 | ||
40 | === modified file 'src/reboot.c' | |||
41 | --- src/reboot.c 2011-06-08 07:28:28 +0000 | |||
42 | +++ src/reboot.c 2011-07-13 14:29:33 +0000 | |||
43 | @@ -7,8 +7,7 @@ | |||
44 | 7 | #include <unistd.h> | 7 | #include <unistd.h> |
45 | 8 | 8 | ||
46 | 9 | #include <libnotify/notify.h> | 9 | #include <libnotify/notify.h> |
49 | 10 | #include <dbus/dbus-glib.h> | 10 | #include <gio/gio.h> |
48 | 11 | #include <dbus/dbus.h> | ||
50 | 12 | 11 | ||
51 | 13 | #include "update-notifier.h" | 12 | #include "update-notifier.h" |
52 | 14 | #include "update.h" | 13 | #include "update.h" |
53 | @@ -41,60 +40,56 @@ | |||
54 | 41 | static gboolean | 40 | static gboolean |
55 | 42 | gdm_action_reboot() | 41 | gdm_action_reboot() |
56 | 43 | { | 42 | { |
72 | 44 | DBusGConnection *connection; | 43 | GVariant *answer; |
73 | 45 | GError *error; | 44 | GDBusProxy *proxy; |
74 | 46 | DBusGProxy *proxy; | 45 | |
75 | 47 | 46 | proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, | |
76 | 48 | error = NULL; | 47 | G_DBUS_PROXY_FLAGS_NONE, |
77 | 49 | connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); | 48 | NULL, /* GDBusInterfaceInfo */ |
78 | 50 | if (connection == NULL) { | 49 | "org.gnome.SessionManager", |
79 | 51 | g_error_free (error); | 50 | "/org/gnome/SessionManager", |
80 | 52 | return FALSE; | 51 | "org.gnome.SessionManager", |
81 | 53 | } | 52 | NULL, /* GCancellable */ |
82 | 54 | 53 | NULL /* GError */); | |
68 | 55 | proxy = dbus_g_proxy_new_for_name (connection, | ||
69 | 56 | "org.gnome.SessionManager", | ||
70 | 57 | "/org/gnome/SessionManager", | ||
71 | 58 | "org.gnome.SessionManager"); | ||
83 | 59 | if (proxy == NULL) | 54 | if (proxy == NULL) |
84 | 60 | return FALSE; | 55 | return FALSE; |
85 | 61 | 56 | ||
92 | 62 | error = NULL; | 57 | answer = g_dbus_proxy_call_sync (proxy, "RequestReboot", NULL, |
93 | 63 | if (!dbus_g_proxy_call (proxy, "RequestReboot", &error, | 58 | G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL); |
94 | 64 | G_TYPE_INVALID, G_TYPE_INVALID)) { | 59 | g_object_unref (proxy); |
95 | 65 | g_error_free (error); | 60 | |
96 | 66 | return FALSE; | 61 | if (answer == NULL) |
97 | 67 | } | 62 | return FALSE; |
98 | 63 | |||
99 | 64 | g_variant_unref (answer); | ||
100 | 68 | return TRUE; | 65 | return TRUE; |
101 | 69 | } | 66 | } |
102 | 70 | 67 | ||
103 | 71 | static gboolean | 68 | static gboolean |
104 | 72 | ck_action_reboot() | 69 | ck_action_reboot() |
105 | 73 | { | 70 | { |
121 | 74 | DBusGConnection *connection; | 71 | GVariant *answer; |
122 | 75 | GError *error; | 72 | GDBusProxy *proxy; |
123 | 76 | DBusGProxy *proxy; | 73 | |
124 | 77 | 74 | proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, | |
125 | 78 | error = NULL; | 75 | G_DBUS_PROXY_FLAGS_NONE, |
126 | 79 | connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); | 76 | NULL, /* GDBusInterfaceInfo */ |
127 | 80 | if (connection == NULL) { | 77 | "org.freedesktop.ConsoleKit", |
128 | 81 | g_error_free (error); | 78 | "/org/freedesktop/ConsoleKit/Manager", |
129 | 82 | return FALSE; | 79 | "org.freedesktop.ConsoleKit.Manager", |
130 | 83 | } | 80 | NULL, /* GCancellable */ |
131 | 84 | 81 | NULL /* GError */); | |
117 | 85 | proxy = dbus_g_proxy_new_for_name (connection, | ||
118 | 86 | "org.freedesktop.ConsoleKit", | ||
119 | 87 | "/org/freedesktop/ConsoleKit/Manager", | ||
120 | 88 | "org.freedesktop.ConsoleKit.Manager"); | ||
132 | 89 | if (proxy == NULL) | 82 | if (proxy == NULL) |
133 | 90 | return FALSE; | 83 | return FALSE; |
134 | 91 | 84 | ||
141 | 92 | error = NULL; | 85 | answer = g_dbus_proxy_call_sync (proxy, "Restart", NULL, |
142 | 93 | if (!dbus_g_proxy_call (proxy, "Restart", &error, | 86 | G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL); |
143 | 94 | G_TYPE_INVALID, G_TYPE_INVALID)) { | 87 | g_object_unref (proxy); |
144 | 95 | g_error_free (error); | 88 | |
145 | 96 | return FALSE; | 89 | if (answer == NULL) |
146 | 97 | } | 90 | return FALSE; |
147 | 91 | |||
148 | 92 | g_variant_unref (answer); | ||
149 | 98 | return TRUE; | 93 | return TRUE; |
150 | 99 | 94 | ||
151 | 100 | } | 95 | } |
152 | @@ -130,92 +125,65 @@ | |||
153 | 130 | } | 125 | } |
154 | 131 | 126 | ||
155 | 132 | static gboolean | 127 | static gboolean |
156 | 133 | is_aptdaemon_on_the_system_bus () | ||
157 | 134 | { | ||
158 | 135 | DBusConnection *connection; | ||
159 | 136 | DBusError *dbus_error = NULL; | ||
160 | 137 | DBusMessage *message, *reply; | ||
161 | 138 | const char *aptdaemon_bus_name = "org.debian.apt"; | ||
162 | 139 | gboolean res; | ||
163 | 140 | |||
164 | 141 | connection = dbus_bus_get(DBUS_BUS_SYSTEM, dbus_error); | ||
165 | 142 | if (dbus_error != NULL) { | ||
166 | 143 | g_warning("failed to connect to the system bus"); | ||
167 | 144 | return FALSE; | ||
168 | 145 | } | ||
169 | 146 | message = dbus_message_new_method_call(DBUS_SERVICE_DBUS, | ||
170 | 147 | DBUS_PATH_DBUS, | ||
171 | 148 | DBUS_INTERFACE_DBUS, | ||
172 | 149 | "GetNameOwner"); | ||
173 | 150 | if (message == NULL) { | ||
174 | 151 | g_warning ("failed to create dbus message"); | ||
175 | 152 | return FALSE; | ||
176 | 153 | } | ||
177 | 154 | |||
178 | 155 | dbus_message_append_args(message, | ||
179 | 156 | DBUS_TYPE_STRING, &aptdaemon_bus_name, | ||
180 | 157 | DBUS_TYPE_INVALID); | ||
181 | 158 | |||
182 | 159 | reply = dbus_connection_send_with_reply_and_block(connection, | ||
183 | 160 | message, | ||
184 | 161 | -1, | ||
185 | 162 | dbus_error); | ||
186 | 163 | dbus_message_unref(message); | ||
187 | 164 | |||
188 | 165 | if (reply) { | ||
189 | 166 | dbus_message_unref(reply); | ||
190 | 167 | res = TRUE; | ||
191 | 168 | } else { | ||
192 | 169 | res = FALSE; | ||
193 | 170 | } | ||
194 | 171 | |||
195 | 172 | g_debug("aptdaemon on bus: %i", res); | ||
196 | 173 | return res; | ||
197 | 174 | } | ||
198 | 175 | |||
199 | 176 | static gboolean | ||
200 | 177 | aptdaemon_pending_transactions () | 128 | aptdaemon_pending_transactions () |
201 | 178 | { | 129 | { |
234 | 179 | DBusGConnection *connection; | 130 | GError *error; |
235 | 180 | GError *error; | 131 | GVariant *answer; |
236 | 181 | DBusGProxy *proxy; | 132 | GDBusProxy *proxy; |
237 | 182 | char *current = NULL; | 133 | char *owner = NULL; |
238 | 183 | char **pending = NULL; | 134 | const char *current = NULL; |
239 | 184 | 135 | char **pending = NULL; | |
240 | 185 | if (!is_aptdaemon_on_the_system_bus()) | 136 | |
241 | 186 | return FALSE; | 137 | error = NULL; |
242 | 187 | 138 | proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, | |
243 | 188 | error = NULL; | 139 | G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START, |
244 | 189 | connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); | 140 | NULL, /* GDBusInterfaceInfo */ |
245 | 190 | if (connection == NULL) { | 141 | "org.debian.apt", |
246 | 191 | g_debug ("Failed to open connection to bus: %s\n", error->message); | 142 | "/org/debian/apt", |
247 | 192 | g_error_free (error); | 143 | "org.debian.apt", |
248 | 193 | return FALSE; | 144 | NULL, /* GCancellable */ |
249 | 194 | } | 145 | &error); |
250 | 195 | 146 | if (proxy == NULL) { | |
251 | 196 | proxy = dbus_g_proxy_new_for_name (connection, | 147 | g_debug ("Failed to open connection to bus: %s\n", error->message); |
252 | 197 | "org.debian.apt", | 148 | g_error_free (error); |
253 | 198 | "/org/debian/apt", | 149 | return FALSE; |
254 | 199 | "org.debian.apt"); | 150 | } |
255 | 200 | error = NULL; | 151 | |
256 | 201 | if (!dbus_g_proxy_call (proxy, "GetActiveTransactions", &error, | 152 | owner = g_dbus_proxy_get_name_owner (proxy); |
257 | 202 | G_TYPE_INVALID, | 153 | g_debug("aptdaemon on bus: %i", (owner != NULL)); |
258 | 203 | G_TYPE_STRING, ¤t, | 154 | if (owner == NULL) { |
259 | 204 | G_TYPE_STRV, &pending, | 155 | g_object_unref (proxy); |
260 | 205 | G_TYPE_INVALID)) { | 156 | g_free (owner); |
261 | 206 | g_debug ("error during dbus call: %s\n", error->message); | 157 | return FALSE; |
262 | 207 | g_error_free (error); | 158 | } |
263 | 208 | g_object_unref (proxy); | 159 | g_free (owner); |
264 | 209 | return FALSE; | 160 | |
265 | 210 | } | 161 | error = NULL; |
266 | 162 | answer = g_dbus_proxy_call_sync (proxy, "GetActiveTransactions", NULL, | ||
267 | 163 | G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); | ||
268 | 164 | g_object_unref (proxy); | ||
269 | 165 | |||
270 | 166 | if (answer == NULL) { | ||
271 | 167 | g_debug ("error during dbus call: %s\n", error->message); | ||
272 | 168 | g_error_free (error); | ||
273 | 169 | return FALSE; | ||
274 | 170 | } | ||
275 | 171 | |||
276 | 172 | if (g_strcmp0 (g_variant_get_type_string (answer), "(sas)") != 0) { | ||
277 | 173 | g_debug ("aptd answer in unexpected format: %s\n", | ||
278 | 174 | g_variant_get_type_string (answer)); | ||
279 | 175 | g_variant_unref (answer); | ||
280 | 176 | return FALSE; | ||
281 | 177 | } | ||
282 | 178 | |||
283 | 179 | g_variant_get (answer, "(&s^a&s)", ¤t, &pending); | ||
284 | 211 | 180 | ||
285 | 212 | gboolean has_pending = FALSE; | 181 | gboolean has_pending = FALSE; |
286 | 213 | if ((current && strcmp(current,"") != 0) || g_strv_length(pending) > 0) | 182 | if ((current && strcmp(current,"") != 0) || g_strv_length(pending) > 0) |
287 | 214 | has_pending = TRUE; | 183 | has_pending = TRUE; |
288 | 215 | 184 | ||
292 | 216 | g_object_unref (proxy); | 185 | g_free (pending); |
293 | 217 | g_free (current); | 186 | g_variant_unref (answer); |
291 | 218 | g_strfreev (pending); | ||
294 | 219 | 187 | ||
295 | 220 | return has_pending; | 188 | return has_pending; |
296 | 221 | } | 189 | } |
297 | @@ -254,7 +222,7 @@ | |||
298 | 254 | /* Skip the rest if the icon is already visible */ | 222 | /* Skip the rest if the icon is already visible */ |
299 | 255 | if (gtk_status_icon_get_visible (ta->tray_icon)) | 223 | if (gtk_status_icon_get_visible (ta->tray_icon)) |
300 | 256 | return; | 224 | return; |
302 | 257 | gtk_status_icon_set_tooltip (ta->tray_icon, | 225 | gtk_status_icon_set_tooltip_text (ta->tray_icon, |
303 | 258 | _("System restart required")); | 226 | _("System restart required")); |
304 | 259 | gtk_status_icon_set_visible (ta->tray_icon, TRUE); | 227 | gtk_status_icon_set_visible (ta->tray_icon, TRUE); |
305 | 260 | 228 | ||
306 | 261 | 229 | ||
307 | === modified file 'src/update.c' | |||
308 | --- src/update.c 2011-06-08 07:28:28 +0000 | |||
309 | +++ src/update.c 2011-07-13 14:29:33 +0000 | |||
310 | @@ -8,12 +8,12 @@ | |||
311 | 8 | 8 | ||
312 | 9 | #include <glib.h> | 9 | #include <glib.h> |
313 | 10 | #include <glib/gstdio.h> | 10 | #include <glib/gstdio.h> |
314 | 11 | #include <gio/gio.h> | ||
315 | 11 | 12 | ||
316 | 12 | #include <sys/types.h> | 13 | #include <sys/types.h> |
317 | 13 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
318 | 14 | #include <unistd.h> | 15 | #include <unistd.h> |
319 | 15 | #include <stdlib.h> | 16 | #include <stdlib.h> |
320 | 16 | #include <dbus/dbus-glib.h> | ||
321 | 17 | 17 | ||
322 | 18 | #include "update-notifier.h" | 18 | #include "update-notifier.h" |
323 | 19 | #include "update.h" | 19 | #include "update.h" |
324 | @@ -94,7 +94,7 @@ | |||
325 | 94 | "There are %i updates available", | 94 | "There are %i updates available", |
326 | 95 | num_upgrades), | 95 | num_upgrades), |
327 | 96 | num_upgrades); | 96 | num_upgrades); |
329 | 97 | gtk_status_icon_set_tooltip(ta->tray_icon, updates); | 97 | gtk_status_icon_set_tooltip_text(ta->tray_icon, updates); |
330 | 98 | g_free(updates); | 98 | g_free(updates); |
331 | 99 | } | 99 | } |
332 | 100 | 100 | ||
333 | @@ -216,7 +216,7 @@ | |||
334 | 216 | } | 216 | } |
335 | 217 | 217 | ||
336 | 218 | // and update the tooltip | 218 | // and update the tooltip |
338 | 219 | gtk_status_icon_set_tooltip(ta->tray_icon, _("A package manager is working")); | 219 | gtk_status_icon_set_tooltip_text(ta->tray_icon, _("A package manager is working")); |
339 | 220 | // and show it | 220 | // and show it |
340 | 221 | gtk_status_icon_set_visible(ta->tray_icon, TRUE); | 221 | gtk_status_icon_set_visible(ta->tray_icon, TRUE); |
341 | 222 | 222 | ||
342 | @@ -279,7 +279,7 @@ | |||
343 | 279 | void | 279 | void |
344 | 280 | show_error(TrayApplet *ta, gchar *error_str) | 280 | show_error(TrayApplet *ta, gchar *error_str) |
345 | 281 | { | 281 | { |
347 | 282 | gtk_status_icon_set_tooltip(ta->tray_icon, error_str); | 282 | gtk_status_icon_set_tooltip_text(ta->tray_icon, error_str); |
348 | 283 | gtk_status_icon_set_from_icon_name(ta->tray_icon, "dialog-error"); | 283 | gtk_status_icon_set_from_icon_name(ta->tray_icon, "dialog-error"); |
349 | 284 | gtk_status_icon_set_visible(ta->tray_icon, TRUE); | 284 | gtk_status_icon_set_visible(ta->tray_icon, TRUE); |
350 | 285 | } | 285 | } |
351 | @@ -298,7 +298,7 @@ | |||
352 | 298 | NULL); | 298 | NULL); |
353 | 299 | gtk_status_icon_set_from_pixbuf(ta->tray_icon, src); | 299 | gtk_status_icon_set_from_pixbuf(ta->tray_icon, src); |
354 | 300 | g_object_unref(src); | 300 | g_object_unref(src); |
356 | 301 | gtk_status_icon_set_tooltip(ta->tray_icon, | 301 | gtk_status_icon_set_tooltip_text(ta->tray_icon, |
357 | 302 | _("The update information is outdated. " | 302 | _("The update information is outdated. " |
358 | 303 | "This may be caused by network " | 303 | "This may be caused by network " |
359 | 304 | "problems or by a repository that " | 304 | "problems or by a repository that " |
360 | @@ -320,34 +320,47 @@ | |||
361 | 320 | static gboolean | 320 | static gboolean |
362 | 321 | dpkg_lock_is_taken () | 321 | dpkg_lock_is_taken () |
363 | 322 | { | 322 | { |
368 | 323 | DBusGConnection *connection; | 323 | GError *error; |
369 | 324 | GError *error; | 324 | GVariant *answer; |
370 | 325 | DBusGProxy *proxy; | 325 | GDBusProxy *proxy; |
371 | 326 | gboolean locked = FALSE; | 326 | gboolean locked = FALSE; |
372 | 327 | 327 | ||
380 | 328 | error = NULL; | 328 | error = NULL; |
381 | 329 | connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); | 329 | proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, |
382 | 330 | if (connection == NULL) { | 330 | G_DBUS_PROXY_FLAGS_NONE, |
383 | 331 | g_debug_update ("Failed to open connection to bus: %s\n", error->message); | 331 | NULL, /* GDBusInterfaceInfo */ |
384 | 332 | g_error_free (error); | 332 | "com.ubuntu.SystemService", |
385 | 333 | return FALSE; | 333 | "/", |
386 | 334 | } | 334 | "com.ubuntu.SystemService", |
387 | 335 | NULL, /* GCancellable */ | ||
388 | 336 | &error); | ||
389 | 337 | if (proxy == NULL) { | ||
390 | 338 | g_debug_update ("Failed to open connection to bus: %s\n", error->message); | ||
391 | 339 | g_error_free (error); | ||
392 | 340 | return FALSE; | ||
393 | 341 | } | ||
394 | 335 | 342 | ||
395 | 336 | proxy = dbus_g_proxy_new_for_name (connection, | ||
396 | 337 | "com.ubuntu.SystemService", | ||
397 | 338 | "/", | ||
398 | 339 | "com.ubuntu.SystemService"); | ||
399 | 340 | error = NULL; | 343 | error = NULL; |
408 | 341 | if (!dbus_g_proxy_call (proxy, "is_package_system_locked", &error, | 344 | answer = g_dbus_proxy_call_sync (proxy, "is_package_system_locked", NULL, |
409 | 342 | G_TYPE_INVALID, | 345 | G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); |
402 | 343 | G_TYPE_BOOLEAN, &locked, G_TYPE_INVALID)) { | ||
403 | 344 | g_debug_update ("error during dbus call: %s\n", error->message); | ||
404 | 345 | g_error_free (error); | ||
405 | 346 | g_object_unref (proxy); | ||
406 | 347 | return FALSE; | ||
407 | 348 | } | ||
410 | 349 | g_object_unref (proxy); | 346 | g_object_unref (proxy); |
411 | 350 | 347 | ||
412 | 348 | if (answer == NULL) { | ||
413 | 349 | g_debug_update ("error during dbus call: %s\n", error->message); | ||
414 | 350 | g_error_free (error); | ||
415 | 351 | return FALSE; | ||
416 | 352 | } | ||
417 | 353 | |||
418 | 354 | if (g_strcmp0 (g_variant_get_type_string (answer), "(b)") != 0) { | ||
419 | 355 | g_debug_update ("SystemService answer in unexpected format: %s\n", | ||
420 | 356 | g_variant_get_type_string (answer)); | ||
421 | 357 | g_variant_unref (answer); | ||
422 | 358 | return FALSE; | ||
423 | 359 | } | ||
424 | 360 | |||
425 | 361 | g_variant_get (answer, "(b)", &locked); | ||
426 | 362 | g_variant_unref (answer); | ||
427 | 363 | |||
428 | 351 | g_debug_update ("is_package_system_locked: %i", locked); | 364 | g_debug_update ("is_package_system_locked: %i", locked); |
429 | 352 | return locked; | 365 | return locked; |
430 | 353 | } | 366 | } |
431 | 354 | 367 | ||
432 | === modified file 'ui/hooks-dialog.ui' | |||
433 | --- ui/hooks-dialog.ui 2009-06-26 15:59:09 +0000 | |||
434 | +++ ui/hooks-dialog.ui 2011-07-13 14:29:33 +0000 | |||
435 | @@ -1,219 +1,196 @@ | |||
438 | 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
437 | 2 | <!--*- mode: xml -*--> | ||
439 | 3 | <interface> | 2 | <interface> |
440 | 3 | <!-- interface-requires gtk+ 3.0 --> | ||
441 | 4 | <object class="GtkDialog" id="dialog_hooks"> | 4 | <object class="GtkDialog" id="dialog_hooks"> |
442 | 5 | <property name="can_focus">False</property> | ||
443 | 5 | <property name="border_width">6</property> | 6 | <property name="border_width">6</property> |
444 | 6 | <property name="title" translatable="yes"/> | ||
445 | 7 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | ||
446 | 8 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
447 | 9 | <property name="modal">True</property> | 7 | <property name="modal">True</property> |
448 | 10 | <property name="default_width">550</property> | 8 | <property name="default_width">550</property> |
449 | 11 | <property name="default_height">400</property> | 9 | <property name="default_height">400</property> |
460 | 12 | <property name="resizable">True</property> | 10 | <property name="type_hint">dialog</property> |
451 | 13 | <property name="destroy_with_parent">False</property> | ||
452 | 14 | <property name="decorated">True</property> | ||
453 | 15 | <property name="skip_taskbar_hint">False</property> | ||
454 | 16 | <property name="skip_pager_hint">False</property> | ||
455 | 17 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | ||
456 | 18 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
457 | 19 | <property name="focus_on_map">True</property> | ||
458 | 20 | <property name="urgency_hint">False</property> | ||
459 | 21 | <property name="has_separator">False</property> | ||
461 | 22 | <child internal-child="vbox"> | 11 | <child internal-child="vbox"> |
463 | 23 | <object class="GtkVBox" id="dialog-vbox1"> | 12 | <object class="GtkBox" id="dialog-vbox1"> |
464 | 24 | <property name="visible">True</property> | 13 | <property name="visible">True</property> |
466 | 25 | <property name="homogeneous">False</property> | 14 | <property name="can_focus">False</property> |
467 | 26 | <property name="spacing">12</property> | 15 | <property name="spacing">12</property> |
468 | 27 | <child internal-child="action_area"> | 16 | <child internal-child="action_area"> |
470 | 28 | <object class="GtkHButtonBox" id="dialog-action_area1"> | 17 | <object class="GtkButtonBox" id="dialog-action_area1"> |
471 | 29 | <property name="visible">True</property> | 18 | <property name="visible">True</property> |
473 | 30 | <property name="layout_style">GTK_BUTTONBOX_END</property> | 19 | <property name="can_focus">False</property> |
474 | 20 | <property name="layout_style">end</property> | ||
475 | 31 | <child> | 21 | <child> |
476 | 32 | <object class="GtkButton" id="button_cancel"> | 22 | <object class="GtkButton" id="button_cancel"> |
477 | 23 | <property name="label">gtk-close</property> | ||
478 | 33 | <property name="visible">True</property> | 24 | <property name="visible">True</property> |
479 | 25 | <property name="can_focus">True</property> | ||
480 | 34 | <property name="can_default">True</property> | 26 | <property name="can_default">True</property> |
483 | 35 | <property name="can_focus">True</property> | 27 | <property name="receives_default">False</property> |
484 | 36 | <property name="label">gtk-close</property> | 28 | <property name="use_action_appearance">False</property> |
485 | 37 | <property name="use_stock">True</property> | 29 | <property name="use_stock">True</property> |
486 | 38 | <property name="relief">GTK_RELIEF_NORMAL</property> | ||
487 | 39 | <property name="focus_on_click">True</property> | ||
488 | 40 | </object> | 30 | </object> |
489 | 31 | <packing> | ||
490 | 32 | <property name="expand">False</property> | ||
491 | 33 | <property name="fill">True</property> | ||
492 | 34 | <property name="position">0</property> | ||
493 | 35 | </packing> | ||
494 | 41 | </child> | 36 | </child> |
495 | 42 | </object> | 37 | </object> |
496 | 43 | <packing> | 38 | <packing> |
497 | 44 | <property name="padding">0</property> | ||
498 | 45 | <property name="expand">False</property> | 39 | <property name="expand">False</property> |
499 | 46 | <property name="fill">True</property> | 40 | <property name="fill">True</property> |
501 | 47 | <property name="pack_type">GTK_PACK_END</property> | 41 | <property name="pack_type">end</property> |
502 | 42 | <property name="position">0</property> | ||
503 | 48 | </packing> | 43 | </packing> |
504 | 49 | </child> | 44 | </child> |
505 | 50 | <child> | 45 | <child> |
506 | 51 | <object class="GtkVBox" id="vbox1"> | 46 | <object class="GtkVBox" id="vbox1"> |
507 | 47 | <property name="visible">True</property> | ||
508 | 48 | <property name="can_focus">False</property> | ||
509 | 52 | <property name="border_width">6</property> | 49 | <property name="border_width">6</property> |
510 | 53 | <property name="visible">True</property> | ||
511 | 54 | <property name="homogeneous">False</property> | ||
512 | 55 | <property name="spacing">12</property> | 50 | <property name="spacing">12</property> |
513 | 56 | <child> | 51 | <child> |
514 | 57 | <object class="GtkHBox" id="hbox1"> | 52 | <object class="GtkHBox" id="hbox1"> |
515 | 58 | <property name="visible">True</property> | 53 | <property name="visible">True</property> |
517 | 59 | <property name="homogeneous">False</property> | 54 | <property name="can_focus">False</property> |
518 | 60 | <property name="spacing">12</property> | 55 | <property name="spacing">12</property> |
519 | 61 | <child> | 56 | <child> |
520 | 62 | <object class="GtkImage" id="image"> | 57 | <object class="GtkImage" id="image"> |
521 | 63 | <property name="visible">True</property> | 58 | <property name="visible">True</property> |
524 | 64 | <property name="stock">gtk-dialog-info</property> | 59 | <property name="can_focus">False</property> |
523 | 65 | <property name="icon_size">6</property> | ||
525 | 66 | <property name="xalign">0</property> | 60 | <property name="xalign">0</property> |
526 | 67 | <property name="yalign">0</property> | 61 | <property name="yalign">0</property> |
529 | 68 | <property name="xpad">0</property> | 62 | <property name="stock">gtk-dialog-info</property> |
530 | 69 | <property name="ypad">0</property> | 63 | <property name="icon-size">6</property> |
531 | 70 | </object> | 64 | </object> |
532 | 71 | <packing> | 65 | <packing> |
533 | 72 | <property name="padding">0</property> | ||
534 | 73 | <property name="expand">False</property> | 66 | <property name="expand">False</property> |
535 | 74 | <property name="fill">False</property> | 67 | <property name="fill">False</property> |
536 | 68 | <property name="position">0</property> | ||
537 | 75 | </packing> | 69 | </packing> |
538 | 76 | </child> | 70 | </child> |
539 | 77 | <child> | 71 | <child> |
540 | 78 | <object class="GtkVBox" id="vbox_messages"> | 72 | <object class="GtkVBox" id="vbox_messages"> |
541 | 79 | <property name="visible">True</property> | 73 | <property name="visible">True</property> |
543 | 80 | <property name="homogeneous">False</property> | 74 | <property name="can_focus">False</property> |
544 | 81 | <property name="spacing">12</property> | 75 | <property name="spacing">12</property> |
545 | 82 | <child> | 76 | <child> |
546 | 83 | <object class="GtkLabel" id="label_title"> | 77 | <object class="GtkLabel" id="label_title"> |
547 | 84 | <property name="visible">True</property> | 78 | <property name="visible">True</property> |
548 | 79 | <property name="can_focus">False</property> | ||
549 | 80 | <property name="xalign">0</property> | ||
550 | 85 | <property name="label" translatable="yes"><span weight="bold" size="larger">Update information</span></property> | 81 | <property name="label" translatable="yes"><span weight="bold" size="larger">Update information</span></property> |
551 | 86 | <property name="use_underline">False</property> | ||
552 | 87 | <property name="use_markup">True</property> | 82 | <property name="use_markup">True</property> |
553 | 88 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
554 | 89 | <property name="wrap">True</property> | 83 | <property name="wrap">True</property> |
555 | 90 | <property name="selectable">False</property> | ||
556 | 91 | <property name="xalign">0</property> | ||
557 | 92 | <property name="yalign">0.5</property> | ||
558 | 93 | <property name="xpad">0</property> | ||
559 | 94 | <property name="ypad">0</property> | ||
560 | 95 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
561 | 96 | <property name="width_chars">-1</property> | ||
562 | 97 | <property name="single_line_mode">False</property> | ||
563 | 98 | <property name="angle">0</property> | ||
564 | 99 | </object> | 84 | </object> |
565 | 100 | <packing> | 85 | <packing> |
566 | 101 | <property name="padding">0</property> | ||
567 | 102 | <property name="expand">False</property> | 86 | <property name="expand">False</property> |
568 | 103 | <property name="fill">False</property> | 87 | <property name="fill">False</property> |
569 | 88 | <property name="position">0</property> | ||
570 | 104 | </packing> | 89 | </packing> |
571 | 105 | </child> | 90 | </child> |
572 | 106 | </object> | 91 | </object> |
573 | 107 | <packing> | 92 | <packing> |
574 | 108 | <property name="padding">0</property> | ||
575 | 109 | <property name="expand">True</property> | 93 | <property name="expand">True</property> |
576 | 110 | <property name="fill">True</property> | 94 | <property name="fill">True</property> |
577 | 95 | <property name="position">1</property> | ||
578 | 111 | </packing> | 96 | </packing> |
579 | 112 | </child> | 97 | </child> |
580 | 113 | </object> | 98 | </object> |
581 | 114 | <packing> | 99 | <packing> |
582 | 115 | <property name="padding">0</property> | ||
583 | 116 | <property name="expand">False</property> | 100 | <property name="expand">False</property> |
584 | 117 | <property name="fill">True</property> | 101 | <property name="fill">True</property> |
585 | 102 | <property name="position">0</property> | ||
586 | 118 | </packing> | 103 | </packing> |
587 | 119 | </child> | 104 | </child> |
588 | 120 | <child> | 105 | <child> |
589 | 121 | <object class="GtkVBox" id="vbox2"> | 106 | <object class="GtkVBox" id="vbox2"> |
590 | 122 | <property name="visible">True</property> | 107 | <property name="visible">True</property> |
592 | 123 | <property name="homogeneous">False</property> | 108 | <property name="can_focus">False</property> |
593 | 124 | <property name="spacing">6</property> | 109 | <property name="spacing">6</property> |
594 | 125 | <child> | 110 | <child> |
595 | 126 | <object class="GtkScrolledWindow" id="scrolledwindow1"> | 111 | <object class="GtkScrolledWindow" id="scrolledwindow1"> |
596 | 127 | <property name="visible">True</property> | 112 | <property name="visible">True</property> |
597 | 128 | <property name="can_focus">True</property> | 113 | <property name="can_focus">True</property> |
602 | 129 | <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | 114 | <property name="shadow_type">in</property> |
599 | 130 | <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> | ||
600 | 131 | <property name="shadow_type">GTK_SHADOW_IN</property> | ||
601 | 132 | <property name="window_placement">GTK_CORNER_TOP_LEFT</property> | ||
603 | 133 | <child> | 115 | <child> |
604 | 134 | <object class="GtkTextView" id="textview_hook"> | 116 | <object class="GtkTextView" id="textview_hook"> |
605 | 135 | <property name="visible">True</property> | 117 | <property name="visible">True</property> |
606 | 136 | <property name="can_focus">True</property> | 118 | <property name="can_focus">True</property> |
607 | 137 | <property name="editable">False</property> | ||
608 | 138 | <property name="overwrite">False</property> | ||
609 | 139 | <property name="accepts_tab">True</property> | ||
610 | 140 | <property name="justification">GTK_JUSTIFY_LEFT</property> | ||
611 | 141 | <property name="wrap_mode">GTK_WRAP_WORD</property> | ||
612 | 142 | <property name="cursor_visible">False</property> | ||
613 | 143 | <property name="pixels_above_lines">2</property> | 119 | <property name="pixels_above_lines">2</property> |
614 | 144 | <property name="pixels_below_lines">2</property> | 120 | <property name="pixels_below_lines">2</property> |
616 | 145 | <property name="pixels_inside_wrap">0</property> | 121 | <property name="editable">False</property> |
617 | 122 | <property name="wrap_mode">word</property> | ||
618 | 146 | <property name="left_margin">2</property> | 123 | <property name="left_margin">2</property> |
619 | 147 | <property name="right_margin">2</property> | 124 | <property name="right_margin">2</property> |
621 | 148 | <property name="indent">0</property> | 125 | <property name="cursor_visible">False</property> |
622 | 149 | </object> | 126 | </object> |
623 | 150 | </child> | 127 | </child> |
624 | 151 | </object> | 128 | </object> |
625 | 152 | <packing> | 129 | <packing> |
626 | 153 | <property name="padding">0</property> | ||
627 | 154 | <property name="expand">True</property> | 130 | <property name="expand">True</property> |
628 | 155 | <property name="fill">True</property> | 131 | <property name="fill">True</property> |
629 | 132 | <property name="position">0</property> | ||
630 | 156 | </packing> | 133 | </packing> |
631 | 157 | </child> | 134 | </child> |
632 | 158 | <child> | 135 | <child> |
633 | 159 | <object class="GtkHBox" id="hbox2"> | 136 | <object class="GtkHBox" id="hbox2"> |
634 | 160 | <property name="visible">True</property> | 137 | <property name="visible">True</property> |
636 | 161 | <property name="homogeneous">False</property> | 138 | <property name="can_focus">False</property> |
637 | 162 | <property name="spacing">6</property> | 139 | <property name="spacing">6</property> |
638 | 163 | <child> | 140 | <child> |
639 | 164 | <object class="GtkButton" id="button_run"> | 141 | <object class="GtkButton" id="button_run"> |
640 | 165 | <property name="visible">True</property> | ||
641 | 166 | <property name="can_default">True</property> | ||
642 | 167 | <property name="can_focus">True</property> | ||
643 | 168 | <property name="label" translatable="yes">_Run this action now</property> | 142 | <property name="label" translatable="yes">_Run this action now</property> |
644 | 143 | <property name="visible">True</property> | ||
645 | 144 | <property name="can_focus">True</property> | ||
646 | 145 | <property name="can_default">True</property> | ||
647 | 146 | <property name="receives_default">False</property> | ||
648 | 147 | <property name="use_action_appearance">False</property> | ||
649 | 169 | <property name="use_underline">True</property> | 148 | <property name="use_underline">True</property> |
653 | 170 | <property name="relief">GTK_RELIEF_NORMAL</property> | 149 | <signal name="clicked" handler="on_button_run_clicked" swapped="no"/> |
651 | 171 | <property name="focus_on_click">True</property> | ||
652 | 172 | <signal handler="on_button_run_clicked" last_modification_time="Thu, 13 Jan 2005 10:13:21 GMT" name="clicked"/> | ||
654 | 173 | </object> | 150 | </object> |
655 | 174 | <packing> | 151 | <packing> |
656 | 175 | <property name="padding">0</property> | ||
657 | 176 | <property name="expand">False</property> | 152 | <property name="expand">False</property> |
658 | 177 | <property name="fill">False</property> | 153 | <property name="fill">False</property> |
659 | 154 | <property name="position">0</property> | ||
660 | 178 | </packing> | 155 | </packing> |
661 | 179 | </child> | 156 | </child> |
662 | 180 | <child> | 157 | <child> |
663 | 181 | <object class="GtkButton" id="button_next"> | 158 | <object class="GtkButton" id="button_next"> |
664 | 182 | <property name="visible">True</property> | ||
665 | 183 | <property name="can_default">True</property> | ||
666 | 184 | <property name="can_focus">True</property> | ||
667 | 185 | <property name="label">gtk-media-next</property> | 159 | <property name="label">gtk-media-next</property> |
668 | 160 | <property name="visible">True</property> | ||
669 | 161 | <property name="can_focus">True</property> | ||
670 | 162 | <property name="can_default">True</property> | ||
671 | 163 | <property name="receives_default">False</property> | ||
672 | 164 | <property name="use_action_appearance">False</property> | ||
673 | 186 | <property name="use_stock">True</property> | 165 | <property name="use_stock">True</property> |
677 | 187 | <property name="relief">GTK_RELIEF_NORMAL</property> | 166 | <signal name="clicked" handler="on_button_next_clicked" swapped="no"/> |
675 | 188 | <property name="focus_on_click">True</property> | ||
676 | 189 | <signal handler="on_button_next_clicked" last_modification_time="Thu, 13 Jan 2005 10:17:50 GMT" name="clicked"/> | ||
678 | 190 | </object> | 167 | </object> |
679 | 191 | <packing> | 168 | <packing> |
680 | 192 | <property name="padding">0</property> | ||
681 | 193 | <property name="expand">False</property> | 169 | <property name="expand">False</property> |
682 | 194 | <property name="fill">False</property> | 170 | <property name="fill">False</property> |
684 | 195 | <property name="pack_type">GTK_PACK_END</property> | 171 | <property name="pack_type">end</property> |
685 | 172 | <property name="position">1</property> | ||
686 | 196 | </packing> | 173 | </packing> |
687 | 197 | </child> | 174 | </child> |
688 | 198 | </object> | 175 | </object> |
689 | 199 | <packing> | 176 | <packing> |
690 | 200 | <property name="padding">0</property> | ||
691 | 201 | <property name="expand">False</property> | 177 | <property name="expand">False</property> |
692 | 202 | <property name="fill">True</property> | 178 | <property name="fill">True</property> |
693 | 179 | <property name="position">1</property> | ||
694 | 203 | </packing> | 180 | </packing> |
695 | 204 | </child> | 181 | </child> |
696 | 205 | </object> | 182 | </object> |
697 | 206 | <packing> | 183 | <packing> |
698 | 207 | <property name="padding">0</property> | ||
699 | 208 | <property name="expand">True</property> | 184 | <property name="expand">True</property> |
700 | 209 | <property name="fill">True</property> | 185 | <property name="fill">True</property> |
701 | 186 | <property name="position">1</property> | ||
702 | 210 | </packing> | 187 | </packing> |
703 | 211 | </child> | 188 | </child> |
704 | 212 | </object> | 189 | </object> |
705 | 213 | <packing> | 190 | <packing> |
706 | 214 | <property name="padding">0</property> | ||
707 | 215 | <property name="expand">True</property> | 191 | <property name="expand">True</property> |
708 | 216 | <property name="fill">True</property> | 192 | <property name="fill">True</property> |
709 | 193 | <property name="position">1</property> | ||
710 | 217 | </packing> | 194 | </packing> |
711 | 218 | </child> | 195 | </child> |
712 | 219 | </object> | 196 | </object> |
713 | 220 | 197 | ||
714 | === modified file 'ui/reboot-dialog.ui' | |||
715 | --- ui/reboot-dialog.ui 2009-09-10 10:20:07 +0000 | |||
716 | +++ ui/reboot-dialog.ui 2011-07-13 14:29:33 +0000 | |||
717 | @@ -1,93 +1,65 @@ | |||
720 | 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
719 | 2 | <!--*- mode: xml -*--> | ||
721 | 3 | <interface> | 2 | <interface> |
722 | 3 | <!-- interface-requires gtk+ 3.0 --> | ||
723 | 4 | <object class="GtkDialog" id="dialog_reboot"> | 4 | <object class="GtkDialog" id="dialog_reboot"> |
724 | 5 | <property name="can_focus">False</property> | ||
725 | 5 | <property name="border_width">6</property> | 6 | <property name="border_width">6</property> |
726 | 6 | <property name="title" translatable="yes">Restart Required</property> | 7 | <property name="title" translatable="yes">Restart Required</property> |
729 | 7 | <property name="type">GTK_WINDOW_TOPLEVEL</property> | 8 | <property name="resizable">False</property> |
728 | 8 | <property name="window_position">GTK_WIN_POS_NONE</property> | ||
730 | 9 | <property name="modal">True</property> | 9 | <property name="modal">True</property> |
741 | 10 | <property name="resizable">False</property> | 10 | <property name="type_hint">dialog</property> |
732 | 11 | <property name="destroy_with_parent">False</property> | ||
733 | 12 | <property name="decorated">True</property> | ||
734 | 13 | <property name="skip_taskbar_hint">False</property> | ||
735 | 14 | <property name="skip_pager_hint">False</property> | ||
736 | 15 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> | ||
737 | 16 | <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> | ||
738 | 17 | <property name="focus_on_map">True</property> | ||
739 | 18 | <property name="urgency_hint">False</property> | ||
740 | 19 | <property name="has_separator">False</property> | ||
742 | 20 | <child internal-child="vbox"> | 11 | <child internal-child="vbox"> |
744 | 21 | <object class="GtkVBox" id="dialog-vbox1"> | 12 | <object class="GtkBox" id="dialog-vbox1"> |
745 | 22 | <property name="visible">True</property> | 13 | <property name="visible">True</property> |
747 | 23 | <property name="homogeneous">False</property> | 14 | <property name="can_focus">False</property> |
748 | 24 | <property name="spacing">12</property> | 15 | <property name="spacing">12</property> |
749 | 25 | <child internal-child="action_area"> | 16 | <child internal-child="action_area"> |
751 | 26 | <object class="GtkHButtonBox" id="dialog-action_area1"> | 17 | <object class="GtkButtonBox" id="dialog-action_area1"> |
752 | 27 | <property name="visible">True</property> | 18 | <property name="visible">True</property> |
754 | 28 | <property name="layout_style">GTK_BUTTONBOX_END</property> | 19 | <property name="can_focus">False</property> |
755 | 20 | <property name="layout_style">end</property> | ||
756 | 29 | <child> | 21 | <child> |
757 | 30 | <object class="GtkButton" id="button_cancel"> | 22 | <object class="GtkButton" id="button_cancel"> |
758 | 31 | <property name="visible">True</property> | 23 | <property name="visible">True</property> |
759 | 24 | <property name="can_focus">True</property> | ||
760 | 32 | <property name="can_default">True</property> | 25 | <property name="can_default">True</property> |
761 | 33 | <property name="has_default">True</property> | 26 | <property name="has_default">True</property> |
765 | 34 | <property name="can_focus">True</property> | 27 | <property name="receives_default">False</property> |
766 | 35 | <property name="relief">GTK_RELIEF_NORMAL</property> | 28 | <property name="use_action_appearance">False</property> |
764 | 36 | <property name="focus_on_click">True</property> | ||
767 | 37 | <child> | 29 | <child> |
768 | 38 | <object class="GtkAlignment" id="alignment1"> | 30 | <object class="GtkAlignment" id="alignment1"> |
769 | 39 | <property name="visible">True</property> | 31 | <property name="visible">True</property> |
772 | 40 | <property name="xalign">0.5</property> | 32 | <property name="can_focus">False</property> |
771 | 41 | <property name="yalign">0.5</property> | ||
773 | 42 | <property name="xscale">0</property> | 33 | <property name="xscale">0</property> |
774 | 43 | <property name="yscale">0</property> | 34 | <property name="yscale">0</property> |
775 | 44 | <property name="top_padding">0</property> | ||
776 | 45 | <property name="bottom_padding">0</property> | ||
777 | 46 | <property name="left_padding">0</property> | ||
778 | 47 | <property name="right_padding">0</property> | ||
779 | 48 | <child> | 35 | <child> |
780 | 49 | <object class="GtkHBox" id="hbox2"> | 36 | <object class="GtkHBox" id="hbox2"> |
781 | 50 | <property name="visible">True</property> | 37 | <property name="visible">True</property> |
783 | 51 | <property name="homogeneous">False</property> | 38 | <property name="can_focus">False</property> |
784 | 52 | <property name="spacing">2</property> | 39 | <property name="spacing">2</property> |
785 | 53 | <child> | 40 | <child> |
786 | 54 | <object class="GtkImage" id="image1"> | 41 | <object class="GtkImage" id="image1"> |
787 | 55 | <property name="visible">True</property> | 42 | <property name="visible">True</property> |
788 | 43 | <property name="can_focus">False</property> | ||
789 | 56 | <property name="stock">gtk-cancel</property> | 44 | <property name="stock">gtk-cancel</property> |
790 | 57 | <property name="icon_size">4</property> | ||
791 | 58 | <property name="xalign">0.5</property> | ||
792 | 59 | <property name="yalign">0.5</property> | ||
793 | 60 | <property name="xpad">0</property> | ||
794 | 61 | <property name="ypad">0</property> | ||
795 | 62 | </object> | 45 | </object> |
796 | 63 | <packing> | 46 | <packing> |
797 | 64 | <property name="padding">0</property> | ||
798 | 65 | <property name="expand">False</property> | 47 | <property name="expand">False</property> |
799 | 66 | <property name="fill">False</property> | 48 | <property name="fill">False</property> |
800 | 49 | <property name="position">0</property> | ||
801 | 67 | </packing> | 50 | </packing> |
802 | 68 | </child> | 51 | </child> |
803 | 69 | <child> | 52 | <child> |
804 | 70 | <object class="GtkLabel" id="label1"> | 53 | <object class="GtkLabel" id="label1"> |
805 | 71 | <property name="visible">True</property> | 54 | <property name="visible">True</property> |
806 | 55 | <property name="can_focus">False</property> | ||
807 | 72 | <property name="label" translatable="yes">Restart _Later</property> | 56 | <property name="label" translatable="yes">Restart _Later</property> |
808 | 73 | <property name="use_underline">True</property> | 57 | <property name="use_underline">True</property> |
809 | 74 | <property name="use_markup">False</property> | ||
810 | 75 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
811 | 76 | <property name="wrap">False</property> | ||
812 | 77 | <property name="selectable">False</property> | ||
813 | 78 | <property name="xalign">0.5</property> | ||
814 | 79 | <property name="yalign">0.5</property> | ||
815 | 80 | <property name="xpad">0</property> | ||
816 | 81 | <property name="ypad">0</property> | ||
817 | 82 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
818 | 83 | <property name="width_chars">-1</property> | ||
819 | 84 | <property name="single_line_mode">False</property> | ||
820 | 85 | <property name="angle">0</property> | ||
821 | 86 | </object> | 58 | </object> |
822 | 87 | <packing> | 59 | <packing> |
823 | 88 | <property name="padding">0</property> | ||
824 | 89 | <property name="expand">False</property> | 60 | <property name="expand">False</property> |
825 | 90 | <property name="fill">False</property> | 61 | <property name="fill">False</property> |
826 | 62 | <property name="position">1</property> | ||
827 | 91 | </packing> | 63 | </packing> |
828 | 92 | </child> | 64 | </child> |
829 | 93 | </object> | 65 | </object> |
830 | @@ -95,68 +67,53 @@ | |||
831 | 95 | </object> | 67 | </object> |
832 | 96 | </child> | 68 | </child> |
833 | 97 | </object> | 69 | </object> |
834 | 70 | <packing> | ||
835 | 71 | <property name="expand">False</property> | ||
836 | 72 | <property name="fill">True</property> | ||
837 | 73 | <property name="position">0</property> | ||
838 | 74 | </packing> | ||
839 | 98 | </child> | 75 | </child> |
840 | 99 | <child> | 76 | <child> |
841 | 100 | <object class="GtkButton" id="button_run"> | 77 | <object class="GtkButton" id="button_run"> |
842 | 101 | <property name="visible">True</property> | 78 | <property name="visible">True</property> |
843 | 79 | <property name="can_focus">True</property> | ||
844 | 102 | <property name="can_default">True</property> | 80 | <property name="can_default">True</property> |
848 | 103 | <property name="can_focus">True</property> | 81 | <property name="receives_default">False</property> |
849 | 104 | <property name="relief">GTK_RELIEF_NORMAL</property> | 82 | <property name="use_action_appearance">False</property> |
847 | 105 | <property name="focus_on_click">True</property> | ||
850 | 106 | <child> | 83 | <child> |
851 | 107 | <object class="GtkAlignment" id="alignment2"> | 84 | <object class="GtkAlignment" id="alignment2"> |
852 | 108 | <property name="visible">True</property> | 85 | <property name="visible">True</property> |
855 | 109 | <property name="xalign">0.5</property> | 86 | <property name="can_focus">False</property> |
854 | 110 | <property name="yalign">0.5</property> | ||
856 | 111 | <property name="xscale">0</property> | 87 | <property name="xscale">0</property> |
857 | 112 | <property name="yscale">0</property> | 88 | <property name="yscale">0</property> |
858 | 113 | <property name="top_padding">0</property> | ||
859 | 114 | <property name="bottom_padding">0</property> | ||
860 | 115 | <property name="left_padding">0</property> | ||
861 | 116 | <property name="right_padding">0</property> | ||
862 | 117 | <child> | 89 | <child> |
863 | 118 | <object class="GtkHBox" id="hbox3"> | 90 | <object class="GtkHBox" id="hbox3"> |
864 | 119 | <property name="visible">True</property> | 91 | <property name="visible">True</property> |
866 | 120 | <property name="homogeneous">False</property> | 92 | <property name="can_focus">False</property> |
867 | 121 | <property name="spacing">2</property> | 93 | <property name="spacing">2</property> |
868 | 122 | <child> | 94 | <child> |
869 | 123 | <object class="GtkImage" id="image2"> | 95 | <object class="GtkImage" id="image2"> |
870 | 124 | <property name="visible">True</property> | 96 | <property name="visible">True</property> |
871 | 97 | <property name="can_focus">False</property> | ||
872 | 125 | <property name="stock">gtk-yes</property> | 98 | <property name="stock">gtk-yes</property> |
873 | 126 | <property name="icon_size">4</property> | ||
874 | 127 | <property name="xalign">0.5</property> | ||
875 | 128 | <property name="yalign">0.5</property> | ||
876 | 129 | <property name="xpad">0</property> | ||
877 | 130 | <property name="ypad">0</property> | ||
878 | 131 | </object> | 99 | </object> |
879 | 132 | <packing> | 100 | <packing> |
880 | 133 | <property name="padding">0</property> | ||
881 | 134 | <property name="expand">False</property> | 101 | <property name="expand">False</property> |
882 | 135 | <property name="fill">False</property> | 102 | <property name="fill">False</property> |
883 | 103 | <property name="position">0</property> | ||
884 | 136 | </packing> | 104 | </packing> |
885 | 137 | </child> | 105 | </child> |
886 | 138 | <child> | 106 | <child> |
887 | 139 | <object class="GtkLabel" id="label2"> | 107 | <object class="GtkLabel" id="label2"> |
888 | 140 | <property name="visible">True</property> | 108 | <property name="visible">True</property> |
889 | 109 | <property name="can_focus">False</property> | ||
890 | 141 | <property name="label" translatable="yes">_Restart Now</property> | 110 | <property name="label" translatable="yes">_Restart Now</property> |
891 | 142 | <property name="use_underline">True</property> | 111 | <property name="use_underline">True</property> |
892 | 143 | <property name="use_markup">False</property> | ||
893 | 144 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
894 | 145 | <property name="wrap">False</property> | ||
895 | 146 | <property name="selectable">False</property> | ||
896 | 147 | <property name="xalign">0.5</property> | ||
897 | 148 | <property name="yalign">0.5</property> | ||
898 | 149 | <property name="xpad">0</property> | ||
899 | 150 | <property name="ypad">0</property> | ||
900 | 151 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
901 | 152 | <property name="width_chars">-1</property> | ||
902 | 153 | <property name="single_line_mode">False</property> | ||
903 | 154 | <property name="angle">0</property> | ||
904 | 155 | </object> | 112 | </object> |
905 | 156 | <packing> | 113 | <packing> |
906 | 157 | <property name="padding">0</property> | ||
907 | 158 | <property name="expand">False</property> | 114 | <property name="expand">False</property> |
908 | 159 | <property name="fill">False</property> | 115 | <property name="fill">False</property> |
909 | 116 | <property name="position">1</property> | ||
910 | 160 | </packing> | 117 | </packing> |
911 | 161 | </child> | 118 | </child> |
912 | 162 | </object> | 119 | </object> |
913 | @@ -164,82 +121,77 @@ | |||
914 | 164 | </object> | 121 | </object> |
915 | 165 | </child> | 122 | </child> |
916 | 166 | </object> | 123 | </object> |
917 | 124 | <packing> | ||
918 | 125 | <property name="expand">False</property> | ||
919 | 126 | <property name="fill">True</property> | ||
920 | 127 | <property name="position">1</property> | ||
921 | 128 | </packing> | ||
922 | 167 | </child> | 129 | </child> |
923 | 168 | </object> | 130 | </object> |
924 | 169 | <packing> | 131 | <packing> |
925 | 170 | <property name="padding">0</property> | ||
926 | 171 | <property name="expand">False</property> | 132 | <property name="expand">False</property> |
927 | 172 | <property name="fill">True</property> | 133 | <property name="fill">True</property> |
929 | 173 | <property name="pack_type">GTK_PACK_END</property> | 134 | <property name="pack_type">end</property> |
930 | 135 | <property name="position">0</property> | ||
931 | 174 | </packing> | 136 | </packing> |
932 | 175 | </child> | 137 | </child> |
933 | 176 | <child> | 138 | <child> |
934 | 177 | <object class="GtkVBox" id="vbox1"> | 139 | <object class="GtkVBox" id="vbox1"> |
935 | 140 | <property name="visible">True</property> | ||
936 | 141 | <property name="can_focus">False</property> | ||
937 | 178 | <property name="border_width">6</property> | 142 | <property name="border_width">6</property> |
938 | 179 | <property name="visible">True</property> | ||
939 | 180 | <property name="homogeneous">False</property> | ||
940 | 181 | <property name="spacing">12</property> | 143 | <property name="spacing">12</property> |
941 | 182 | <child> | 144 | <child> |
942 | 183 | <object class="GtkHBox" id="hbox1"> | 145 | <object class="GtkHBox" id="hbox1"> |
943 | 184 | <property name="visible">True</property> | 146 | <property name="visible">True</property> |
945 | 185 | <property name="homogeneous">False</property> | 147 | <property name="can_focus">False</property> |
946 | 186 | <property name="spacing">12</property> | 148 | <property name="spacing">12</property> |
947 | 187 | <child> | 149 | <child> |
948 | 188 | <object class="GtkImage" id="image"> | 150 | <object class="GtkImage" id="image"> |
949 | 189 | <property name="visible">True</property> | 151 | <property name="visible">True</property> |
950 | 152 | <property name="can_focus">False</property> | ||
951 | 190 | <property name="xalign">0</property> | 153 | <property name="xalign">0</property> |
952 | 191 | <property name="yalign">0</property> | 154 | <property name="yalign">0</property> |
953 | 192 | <property name="xpad">0</property> | ||
954 | 193 | <property name="ypad">0</property> | ||
955 | 194 | </object> | 155 | </object> |
956 | 195 | <packing> | 156 | <packing> |
957 | 196 | <property name="padding">0</property> | ||
958 | 197 | <property name="expand">False</property> | 157 | <property name="expand">False</property> |
959 | 198 | <property name="fill">False</property> | 158 | <property name="fill">False</property> |
960 | 159 | <property name="position">0</property> | ||
961 | 199 | </packing> | 160 | </packing> |
962 | 200 | </child> | 161 | </child> |
963 | 201 | <child> | 162 | <child> |
964 | 202 | <object class="GtkVBox" id="vbox_messages"> | 163 | <object class="GtkVBox" id="vbox_messages"> |
965 | 203 | <property name="visible">True</property> | 164 | <property name="visible">True</property> |
967 | 204 | <property name="homogeneous">False</property> | 165 | <property name="can_focus">False</property> |
968 | 205 | <property name="spacing">12</property> | 166 | <property name="spacing">12</property> |
969 | 206 | <child> | 167 | <child> |
970 | 207 | <object class="GtkLabel" id="label_message"> | 168 | <object class="GtkLabel" id="label_message"> |
971 | 208 | <property name="visible">True</property> | 169 | <property name="visible">True</property> |
972 | 209 | <property name="can_focus">True</property> | 170 | <property name="can_focus">True</property> |
973 | 171 | <property name="xalign">0</property> | ||
974 | 210 | <property name="label" translatable="yes">The computer needs to restart to finish installing updates. Please save your work before continuing.</property> | 172 | <property name="label" translatable="yes">The computer needs to restart to finish installing updates. Please save your work before continuing.</property> |
975 | 211 | <property name="use_underline">False</property> | ||
976 | 212 | <property name="use_markup">True</property> | 173 | <property name="use_markup">True</property> |
977 | 213 | <property name="justify">GTK_JUSTIFY_LEFT</property> | ||
978 | 214 | <property name="wrap">True</property> | 174 | <property name="wrap">True</property> |
979 | 215 | <property name="selectable">True</property> | 175 | <property name="selectable">True</property> |
980 | 216 | <property name="xalign">0</property> | ||
981 | 217 | <property name="yalign">0.5</property> | ||
982 | 218 | <property name="xpad">0</property> | ||
983 | 219 | <property name="ypad">0</property> | ||
984 | 220 | <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> | ||
985 | 221 | <property name="width_chars">-1</property> | ||
986 | 222 | <property name="single_line_mode">False</property> | ||
987 | 223 | <property name="angle">0</property> | ||
988 | 224 | </object> | 176 | </object> |
989 | 225 | <packing> | 177 | <packing> |
990 | 226 | <property name="padding">0</property> | ||
991 | 227 | <property name="expand">False</property> | 178 | <property name="expand">False</property> |
992 | 228 | <property name="fill">False</property> | 179 | <property name="fill">False</property> |
993 | 180 | <property name="position">0</property> | ||
994 | 229 | </packing> | 181 | </packing> |
995 | 230 | </child> | 182 | </child> |
996 | 231 | </object> | 183 | </object> |
997 | 232 | <packing> | 184 | <packing> |
998 | 233 | <property name="padding">0</property> | ||
999 | 234 | <property name="expand">True</property> | 185 | <property name="expand">True</property> |
1000 | 235 | <property name="fill">True</property> | 186 | <property name="fill">True</property> |
1001 | 187 | <property name="position">1</property> | ||
1002 | 236 | </packing> | 188 | </packing> |
1003 | 237 | </child> | 189 | </child> |
1004 | 238 | </object> | 190 | </object> |
1005 | 239 | <packing> | 191 | <packing> |
1006 | 240 | <property name="padding">0</property> | ||
1007 | 241 | <property name="expand">True</property> | 192 | <property name="expand">True</property> |
1008 | 242 | <property name="fill">True</property> | 193 | <property name="fill">True</property> |
1009 | 194 | <property name="position">0</property> | ||
1010 | 243 | </packing> | 195 | </packing> |
1011 | 244 | </child> | 196 | </child> |
1012 | 245 | <child> | 197 | <child> |
1013 | @@ -247,9 +199,9 @@ | |||
1014 | 247 | </child> | 199 | </child> |
1015 | 248 | </object> | 200 | </object> |
1016 | 249 | <packing> | 201 | <packing> |
1017 | 250 | <property name="padding">0</property> | ||
1018 | 251 | <property name="expand">True</property> | 202 | <property name="expand">True</property> |
1019 | 252 | <property name="fill">True</property> | 203 | <property name="fill">True</property> |
1020 | 204 | <property name="position">1</property> | ||
1021 | 253 | </packing> | 205 | </packing> |
1022 | 254 | </child> | 206 | </child> |
1023 | 255 | </object> | 207 | </object> |