Merge lp:~seb128/unity-control-center/info-backport-commits into lp:unity-control-center
- info-backport-commits
- Merge into trunk
Proposed by
Sebastien Bacher
Status: | Merged |
---|---|
Approved by: | Iain Lane |
Approved revision: | 12716 |
Merged at revision: | 12717 |
Proposed branch: | lp:~seb128/unity-control-center/info-backport-commits |
Merge into: | lp:unity-control-center |
Diff against target: |
835 lines (+120/-436) 3 files modified
panels/info/cc-info-panel.c (+107/-244) panels/info/info.ui (+12/-191) panels/info/unity-info-panel.desktop.in.in (+1/-1) |
To merge this branch: | bzr merge lp:~seb128/unity-control-center/info-backport-commits |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Iain Lane | Approve | ||
Review via email: mp+207504@code.launchpad.net |
Commit message
info: backport fixes and cleanings from gnome-3-8
Description of the change
info: backport fixes and cleanings from gnome-3-8
To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote : | # |
Revision history for this message
Iain Lane (laney) wrote : | # |
yep, good idea - I didn't fully review the upstream changes though
review:
Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:12716
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
review:
Approve
(continuous-integration)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'panels/info/cc-info-panel.c' | |||
2 | --- panels/info/cc-info-panel.c 2014-02-18 04:27:04 +0000 | |||
3 | +++ panels/info/cc-info-panel.c 2014-02-20 17:20:19 +0000 | |||
4 | @@ -100,7 +100,6 @@ | |||
5 | 100 | char *gnome_distributor; | 100 | char *gnome_distributor; |
6 | 101 | char *gnome_date; | 101 | char *gnome_date; |
7 | 102 | UpdatesState updates_state; | 102 | UpdatesState updates_state; |
8 | 103 | gboolean is_fallback; | ||
9 | 104 | 103 | ||
10 | 105 | /* Free space */ | 104 | /* Free space */ |
11 | 106 | GList *primary_mounts; | 105 | GList *primary_mounts; |
12 | @@ -115,7 +114,6 @@ | |||
13 | 115 | GDBusProxy *pk_proxy; | 114 | GDBusProxy *pk_proxy; |
14 | 116 | GDBusProxy *pk_transaction_proxy; | 115 | GDBusProxy *pk_transaction_proxy; |
15 | 117 | GDBusProxy *hostnamed_proxy; | 116 | GDBusProxy *hostnamed_proxy; |
16 | 118 | GSettings *session_settings; | ||
17 | 119 | 117 | ||
18 | 120 | GraphicsData *graphics_data; | 118 | GraphicsData *graphics_data; |
19 | 121 | }; | 119 | }; |
20 | @@ -431,10 +429,10 @@ | |||
21 | 431 | tmp = g_match_info_fetch (match, 1); | 429 | tmp = g_match_info_fetch (match, 1); |
22 | 432 | pretty_tmp = prettify_info (tmp); | 430 | pretty_tmp = prettify_info (tmp); |
23 | 433 | g_free (tmp); | 431 | g_free (tmp); |
26 | 434 | /* Translators: VESA is an techncial acronym, don't translate it. */ | 432 | result = g_strdup_printf ("VESA: %s", pretty_tmp); |
25 | 435 | result = g_strdup_printf (_("VESA: %s"), pretty_tmp); | ||
27 | 436 | g_free (pretty_tmp); | 433 | g_free (pretty_tmp); |
28 | 437 | } | 434 | } |
29 | 435 | g_free (log_contents); | ||
30 | 438 | g_match_info_free (match); | 436 | g_match_info_free (match); |
31 | 439 | g_regex_unref (re); | 437 | g_regex_unref (re); |
32 | 440 | 438 | ||
33 | @@ -461,65 +459,6 @@ | |||
34 | 461 | return result; | 459 | return result; |
35 | 462 | } | 460 | } |
36 | 463 | 461 | ||
37 | 464 | static gboolean | ||
38 | 465 | get_current_is_fallback (CcInfoPanel *self) | ||
39 | 466 | { | ||
40 | 467 | GError *error; | ||
41 | 468 | GVariant *reply; | ||
42 | 469 | GVariant *reply_str; | ||
43 | 470 | gboolean is_fallback; | ||
44 | 471 | |||
45 | 472 | error = NULL; | ||
46 | 473 | if (!(reply = g_dbus_connection_call_sync (self->priv->session_bus, | ||
47 | 474 | "org.gnome.SessionManager", | ||
48 | 475 | "/org/gnome/SessionManager", | ||
49 | 476 | "org.freedesktop.DBus.Properties", | ||
50 | 477 | "Get", | ||
51 | 478 | g_variant_new ("(ss)", "org.gnome.SessionManager", "session-name"), | ||
52 | 479 | (GVariantType*)"(v)", | ||
53 | 480 | 0, | ||
54 | 481 | -1, | ||
55 | 482 | NULL, &error))) | ||
56 | 483 | { | ||
57 | 484 | g_warning ("Failed to get fallback mode: %s", error->message); | ||
58 | 485 | g_clear_error (&error); | ||
59 | 486 | return FALSE; | ||
60 | 487 | } | ||
61 | 488 | |||
62 | 489 | g_variant_get (reply, "(v)", &reply_str); | ||
63 | 490 | is_fallback = g_strcmp0 ("gnome-fallback", g_variant_get_string (reply_str, NULL)) == 0; | ||
64 | 491 | g_variant_unref (reply_str); | ||
65 | 492 | g_variant_unref (reply); | ||
66 | 493 | |||
67 | 494 | return is_fallback; | ||
68 | 495 | } | ||
69 | 496 | |||
70 | 497 | static void | ||
71 | 498 | cc_info_panel_get_property (GObject *object, | ||
72 | 499 | guint property_id, | ||
73 | 500 | GValue *value, | ||
74 | 501 | GParamSpec *pspec) | ||
75 | 502 | { | ||
76 | 503 | switch (property_id) | ||
77 | 504 | { | ||
78 | 505 | default: | ||
79 | 506 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); | ||
80 | 507 | } | ||
81 | 508 | } | ||
82 | 509 | |||
83 | 510 | static void | ||
84 | 511 | cc_info_panel_set_property (GObject *object, | ||
85 | 512 | guint property_id, | ||
86 | 513 | const GValue *value, | ||
87 | 514 | GParamSpec *pspec) | ||
88 | 515 | { | ||
89 | 516 | switch (property_id) | ||
90 | 517 | { | ||
91 | 518 | default: | ||
92 | 519 | G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); | ||
93 | 520 | } | ||
94 | 521 | } | ||
95 | 522 | |||
96 | 523 | static void | 462 | static void |
97 | 524 | cc_info_panel_dispose (GObject *object) | 463 | cc_info_panel_dispose (GObject *object) |
98 | 525 | { | 464 | { |
99 | @@ -557,32 +496,13 @@ | |||
100 | 557 | { | 496 | { |
101 | 558 | CcInfoPanelPrivate *priv = CC_INFO_PANEL (object)->priv; | 497 | CcInfoPanelPrivate *priv = CC_INFO_PANEL (object)->priv; |
102 | 559 | 498 | ||
108 | 560 | if (priv->cancellable != NULL) | 499 | g_clear_pointer (&priv->cancellable, g_cancellable_cancel); |
104 | 561 | { | ||
105 | 562 | g_cancellable_cancel (priv->cancellable); | ||
106 | 563 | priv->cancellable = NULL; | ||
107 | 564 | } | ||
109 | 565 | g_free (priv->gnome_version); | 500 | g_free (priv->gnome_version); |
110 | 566 | g_free (priv->gnome_date); | 501 | g_free (priv->gnome_date); |
111 | 567 | g_free (priv->gnome_distributor); | 502 | g_free (priv->gnome_distributor); |
112 | 568 | 503 | ||
130 | 569 | if (priv->hostnamed_proxy != NULL) | 504 | g_clear_object (&priv->hostnamed_proxy); |
131 | 570 | { | 505 | g_clear_object (&priv->media_settings); |
115 | 571 | g_object_unref (priv->hostnamed_proxy); | ||
116 | 572 | priv->hostnamed_proxy = NULL; | ||
117 | 573 | } | ||
118 | 574 | |||
119 | 575 | if (priv->media_settings != NULL) | ||
120 | 576 | { | ||
121 | 577 | g_object_unref (priv->media_settings); | ||
122 | 578 | priv->media_settings = NULL; | ||
123 | 579 | } | ||
124 | 580 | |||
125 | 581 | if (priv->session_settings != NULL) | ||
126 | 582 | { | ||
127 | 583 | g_object_unref (priv->session_settings); | ||
128 | 584 | priv->session_settings = NULL; | ||
129 | 585 | } | ||
132 | 586 | 506 | ||
133 | 587 | G_OBJECT_CLASS (cc_info_panel_parent_class)->finalize (object); | 507 | G_OBJECT_CLASS (cc_info_panel_parent_class)->finalize (object); |
134 | 588 | } | 508 | } |
135 | @@ -594,8 +514,6 @@ | |||
136 | 594 | 514 | ||
137 | 595 | g_type_class_add_private (klass, sizeof (CcInfoPanelPrivate)); | 515 | g_type_class_add_private (klass, sizeof (CcInfoPanelPrivate)); |
138 | 596 | 516 | ||
139 | 597 | object_class->get_property = cc_info_panel_get_property; | ||
140 | 598 | object_class->set_property = cc_info_panel_set_property; | ||
141 | 599 | object_class->dispose = cc_info_panel_dispose; | 517 | object_class->dispose = cc_info_panel_dispose; |
142 | 600 | object_class->finalize = cc_info_panel_finalize; | 518 | object_class->finalize = cc_info_panel_finalize; |
143 | 601 | } | 519 | } |
144 | @@ -758,7 +676,7 @@ | |||
145 | 758 | /* count duplicates */ | 676 | /* count duplicates */ |
146 | 759 | for (i = 0; i != info->ncpu; ++i) | 677 | for (i = 0; i != info->ncpu; ++i) |
147 | 760 | { | 678 | { |
149 | 761 | const char * const keys[] = { "model name", "cpu" }; | 679 | const char * const keys[] = { "model name", "cpu", "Processor" }; |
150 | 762 | char *model; | 680 | char *model; |
151 | 763 | int *count; | 681 | int *count; |
152 | 764 | 682 | ||
153 | @@ -771,7 +689,7 @@ | |||
154 | 771 | } | 689 | } |
155 | 772 | 690 | ||
156 | 773 | if (model == NULL) | 691 | if (model == NULL) |
158 | 774 | model = _("Unknown model"); | 692 | continue; |
159 | 775 | 693 | ||
160 | 776 | count = g_hash_table_lookup (counts, model); | 694 | count = g_hash_table_lookup (counts, model); |
161 | 777 | if (count == NULL) | 695 | if (count == NULL) |
162 | @@ -832,96 +750,6 @@ | |||
163 | 832 | gtk_tree_path_free (path); | 750 | gtk_tree_path_free (path); |
164 | 833 | } | 751 | } |
165 | 834 | 752 | ||
166 | 835 | static gboolean | ||
167 | 836 | switch_fallback_get_mapping (GValue *value, | ||
168 | 837 | GVariant *variant, | ||
169 | 838 | gpointer data) | ||
170 | 839 | { | ||
171 | 840 | const char *setting; | ||
172 | 841 | |||
173 | 842 | setting = g_variant_get_string (variant, NULL); | ||
174 | 843 | g_value_set_boolean (value, strcmp (setting, "gnome") != 0); | ||
175 | 844 | return TRUE; | ||
176 | 845 | } | ||
177 | 846 | |||
178 | 847 | static void | ||
179 | 848 | toggle_fallback_warning_label (CcInfoPanel *self, | ||
180 | 849 | gboolean visible) | ||
181 | 850 | { | ||
182 | 851 | GtkWidget *widget; | ||
183 | 852 | const char *text; | ||
184 | 853 | |||
185 | 854 | widget = WID ("graphics_logout_warning_label"); | ||
186 | 855 | |||
187 | 856 | if (self->priv->is_fallback) | ||
188 | 857 | text = _("The next login will attempt to use the standard experience."); | ||
189 | 858 | else | ||
190 | 859 | text = _("The next login will use the fallback mode intended for unsupported graphics hardware."); | ||
191 | 860 | |||
192 | 861 | gtk_label_set_text (GTK_LABEL (widget), text); | ||
193 | 862 | |||
194 | 863 | if (visible) | ||
195 | 864 | gtk_widget_show (widget); | ||
196 | 865 | else | ||
197 | 866 | gtk_widget_hide (widget); | ||
198 | 867 | } | ||
199 | 868 | |||
200 | 869 | static GVariant * | ||
201 | 870 | switch_fallback_set_mapping (const GValue *value, | ||
202 | 871 | const GVariantType *expected_type, | ||
203 | 872 | gpointer data) | ||
204 | 873 | { | ||
205 | 874 | CcInfoPanel *self = data; | ||
206 | 875 | gboolean is_set; | ||
207 | 876 | |||
208 | 877 | is_set = g_value_get_boolean (value); | ||
209 | 878 | if (is_set != self->priv->is_fallback) | ||
210 | 879 | toggle_fallback_warning_label (self, TRUE); | ||
211 | 880 | else | ||
212 | 881 | toggle_fallback_warning_label (self, FALSE); | ||
213 | 882 | |||
214 | 883 | return g_variant_new_string (is_set ? "gnome-fallback" : "gnome"); | ||
215 | 884 | } | ||
216 | 885 | |||
217 | 886 | static void | ||
218 | 887 | info_panel_setup_graphics (CcInfoPanel *self) | ||
219 | 888 | { | ||
220 | 889 | GtkWidget *widget; | ||
221 | 890 | GtkSwitch *sw; | ||
222 | 891 | char *text; | ||
223 | 892 | |||
224 | 893 | widget = WID ("graphics_driver_label"); | ||
225 | 894 | gtk_label_set_markup (GTK_LABEL (widget), self->priv->graphics_data->hardware_string); | ||
226 | 895 | |||
227 | 896 | self->priv->is_fallback = get_current_is_fallback (self); | ||
228 | 897 | if (self->priv->is_fallback) | ||
229 | 898 | { | ||
230 | 899 | /* translators: The hardware is not able to run GNOME 3's | ||
231 | 900 | * shell, so we use the GNOME "Fallback" session */ | ||
232 | 901 | text = g_strdup (C_("Experience", "Fallback")); | ||
233 | 902 | } | ||
234 | 903 | else | ||
235 | 904 | { | ||
236 | 905 | /* translators: The hardware is able to run GNOME 3's | ||
237 | 906 | * shell, also called "Standard" experience */ | ||
238 | 907 | text = g_strdup (C_("Experience", "Standard")); | ||
239 | 908 | } | ||
240 | 909 | widget = WID ("graphics_experience_label"); | ||
241 | 910 | gtk_label_set_markup (GTK_LABEL (widget), text ? text : ""); | ||
242 | 911 | g_free (text); | ||
243 | 912 | |||
244 | 913 | widget = WID ("graphics_fallback_switch_box"); | ||
245 | 914 | sw = GTK_SWITCH (gtk_switch_new ()); | ||
246 | 915 | g_settings_bind_with_mapping (self->priv->session_settings, KEY_SESSION_NAME, | ||
247 | 916 | sw, "active", 0, | ||
248 | 917 | switch_fallback_get_mapping, | ||
249 | 918 | switch_fallback_set_mapping, self, NULL); | ||
250 | 919 | gtk_box_pack_start (GTK_BOX (widget), GTK_WIDGET (sw), FALSE, FALSE, 0); | ||
251 | 920 | gtk_widget_show_all (GTK_WIDGET (sw)); | ||
252 | 921 | widget = WID ("fallback-label"); | ||
253 | 922 | gtk_label_set_mnemonic_widget (GTK_LABEL (widget), GTK_WIDGET (sw)); | ||
254 | 923 | } | ||
255 | 924 | |||
256 | 925 | static gboolean | 753 | static gboolean |
257 | 926 | url_nav_callback (WebKitWebView *web_view, | 754 | url_nav_callback (WebKitWebView *web_view, |
258 | 927 | WebKitWebFrame *frame, | 755 | WebKitWebFrame *frame, |
259 | @@ -975,6 +803,11 @@ | |||
260 | 975 | g_error_free (error); | 803 | g_error_free (error); |
261 | 976 | error = NULL; | 804 | error = NULL; |
262 | 977 | } | 805 | } |
263 | 806 | else | ||
264 | 807 | { | ||
265 | 808 | g_debug ("Set '%s' as the default handler for '%s'", | ||
266 | 809 | g_app_info_get_name (info), app_data->content_type); | ||
267 | 810 | } | ||
268 | 978 | 811 | ||
269 | 979 | if (app_data->extra_type_filter) | 812 | if (app_data->extra_type_filter) |
270 | 980 | { | 813 | { |
271 | @@ -996,6 +829,11 @@ | |||
272 | 996 | g_app_info_get_name (info), mime_types[i], error->message); | 829 | g_app_info_get_name (info), mime_types[i], error->message); |
273 | 997 | g_error_free (error); | 830 | g_error_free (error); |
274 | 998 | } | 831 | } |
275 | 832 | else | ||
276 | 833 | { | ||
277 | 834 | g_debug ("Set '%s' as the default handler for '%s'", | ||
278 | 835 | g_app_info_get_name (info), mime_types[i]); | ||
279 | 836 | } | ||
280 | 999 | } | 837 | } |
281 | 1000 | 838 | ||
282 | 1001 | g_pattern_spec_free (pattern); | 839 | g_pattern_spec_free (pattern); |
283 | @@ -1008,23 +846,20 @@ | |||
284 | 1008 | info_panel_setup_default_app (CcInfoPanel *self, | 846 | info_panel_setup_default_app (CcInfoPanel *self, |
285 | 1009 | DefaultAppData *data, | 847 | DefaultAppData *data, |
286 | 1010 | guint left_attach, | 848 | guint left_attach, |
290 | 1011 | guint right_attach, | 849 | guint top_attach) |
288 | 1012 | guint top_attach, | ||
289 | 1013 | guint bottom_attach) | ||
291 | 1014 | { | 850 | { |
292 | 1015 | GtkWidget *button; | 851 | GtkWidget *button; |
294 | 1016 | GtkWidget *table; | 852 | GtkWidget *grid; |
295 | 1017 | GtkWidget *label; | 853 | GtkWidget *label; |
296 | 1018 | 854 | ||
298 | 1019 | table = WID ("default_apps_table"); | 855 | grid = WID ("default_apps_grid"); |
299 | 1020 | 856 | ||
300 | 1021 | button = gtk_app_chooser_button_new (data->content_type); | 857 | button = gtk_app_chooser_button_new (data->content_type); |
301 | 1022 | g_object_set_data (G_OBJECT (button), "cc-default-app-data", data); | 858 | g_object_set_data (G_OBJECT (button), "cc-default-app-data", data); |
302 | 1023 | 859 | ||
303 | 1024 | gtk_app_chooser_button_set_show_default_item (GTK_APP_CHOOSER_BUTTON (button), TRUE); | 860 | gtk_app_chooser_button_set_show_default_item (GTK_APP_CHOOSER_BUTTON (button), TRUE); |
307 | 1025 | gtk_table_attach (GTK_TABLE (table), button, | 861 | gtk_grid_attach (GTK_GRID (grid), button, left_attach, top_attach, |
308 | 1026 | left_attach, right_attach, | 862 | 1, 1); |
306 | 1027 | top_attach, bottom_attach, GTK_FILL, 0, 0, 0); | ||
309 | 1028 | g_signal_connect (G_OBJECT (button), "changed", | 863 | g_signal_connect (G_OBJECT (button), "changed", |
310 | 1029 | G_CALLBACK (default_app_changed), self); | 864 | G_CALLBACK (default_app_changed), self); |
311 | 1030 | gtk_widget_show (button); | 865 | gtk_widget_show (button); |
312 | @@ -1054,7 +889,7 @@ | |||
313 | 1054 | for (i = 0; i < G_N_ELEMENTS(preferred_app_infos); i++) | 889 | for (i = 0; i < G_N_ELEMENTS(preferred_app_infos); i++) |
314 | 1055 | { | 890 | { |
315 | 1056 | info_panel_setup_default_app (self, &preferred_app_infos[i], | 891 | info_panel_setup_default_app (self, &preferred_app_infos[i], |
317 | 1057 | 1, 2, i, i+1); | 892 | 1, i); |
318 | 1058 | } | 893 | } |
319 | 1059 | } | 894 | } |
320 | 1060 | 895 | ||
321 | @@ -1584,11 +1419,6 @@ | |||
322 | 1584 | _("Removable Media"), | 1419 | _("Removable Media"), |
323 | 1585 | -1); | 1420 | -1); |
324 | 1586 | 1421 | ||
325 | 1587 | gtk_list_store_append (model, &iter); | ||
326 | 1588 | gtk_list_store_set (model, &iter, section_name_column, | ||
327 | 1589 | _("Graphics"), | ||
328 | 1590 | -1); | ||
329 | 1591 | |||
330 | 1592 | if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) | 1422 | if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) |
331 | 1593 | { | 1423 | { |
332 | 1594 | gtk_list_store_append (model, &iter); | 1424 | gtk_list_store_append (model, &iter); |
333 | @@ -2005,6 +1835,86 @@ | |||
334 | 2005 | } | 1835 | } |
335 | 2006 | } | 1836 | } |
336 | 2007 | 1837 | ||
337 | 1838 | static gboolean | ||
338 | 1839 | get_pk_version_property (GDBusProxy *pk_proxy, | ||
339 | 1840 | const char *property, | ||
340 | 1841 | guint32 *retval) | ||
341 | 1842 | { | ||
342 | 1843 | GVariant *v; | ||
343 | 1844 | |||
344 | 1845 | v = g_dbus_proxy_get_cached_property (pk_proxy, property); | ||
345 | 1846 | if (!v) | ||
346 | 1847 | return FALSE; | ||
347 | 1848 | |||
348 | 1849 | g_variant_get (v, "u", retval); | ||
349 | 1850 | g_variant_unref (v); | ||
350 | 1851 | return TRUE; | ||
351 | 1852 | } | ||
352 | 1853 | |||
353 | 1854 | static void | ||
354 | 1855 | got_pk_proxy_cb (GObject *source_object, | ||
355 | 1856 | GAsyncResult *res, | ||
356 | 1857 | CcInfoPanel *self) | ||
357 | 1858 | { | ||
358 | 1859 | GError *error = NULL; | ||
359 | 1860 | guint32 major, minor, micro; | ||
360 | 1861 | |||
361 | 1862 | self->priv->pk_proxy = g_dbus_proxy_new_for_bus_finish (res, &error); | ||
362 | 1863 | |||
363 | 1864 | if (self->priv->pk_proxy == NULL) | ||
364 | 1865 | { | ||
365 | 1866 | g_warning ("Unable to get PackageKit proxy object: %s", error->message); | ||
366 | 1867 | g_error_free (error); | ||
367 | 1868 | self->priv->updates_state = PK_NOT_AVAILABLE; | ||
368 | 1869 | refresh_update_button (self); | ||
369 | 1870 | return; | ||
370 | 1871 | } | ||
371 | 1872 | |||
372 | 1873 | if (!get_pk_version_property(self->priv->pk_proxy, "VersionMajor", &major) || | ||
373 | 1874 | !get_pk_version_property(self->priv->pk_proxy, "VersionMinor", &minor) || | ||
374 | 1875 | !get_pk_version_property(self->priv->pk_proxy, "VersionMicro", µ)) | ||
375 | 1876 | { | ||
376 | 1877 | g_warning ("Unable to get PackageKit version"); | ||
377 | 1878 | g_clear_object (&self->priv->pk_proxy); | ||
378 | 1879 | self->priv->updates_state = PK_NOT_AVAILABLE; | ||
379 | 1880 | refresh_update_button (self); | ||
380 | 1881 | return; | ||
381 | 1882 | } | ||
382 | 1883 | |||
383 | 1884 | if (major != 0 || minor != 8) | ||
384 | 1885 | { | ||
385 | 1886 | g_warning ("PackageKit version %u.%u.%u not supported", major, minor, micro); | ||
386 | 1887 | g_clear_object (&self->priv->pk_proxy); | ||
387 | 1888 | self->priv->updates_state = PK_NOT_AVAILABLE; | ||
388 | 1889 | refresh_update_button (self); | ||
389 | 1890 | } | ||
390 | 1891 | else | ||
391 | 1892 | { | ||
392 | 1893 | g_signal_connect (self->priv->pk_proxy, | ||
393 | 1894 | "g-signal", | ||
394 | 1895 | G_CALLBACK (on_pk_signal), | ||
395 | 1896 | self); | ||
396 | 1897 | refresh_updates (self); | ||
397 | 1898 | } | ||
398 | 1899 | } | ||
399 | 1900 | |||
400 | 1901 | static void | ||
401 | 1902 | info_panel_setup_updates (CcInfoPanel *self) | ||
402 | 1903 | { | ||
403 | 1904 | self->priv->updates_state = CHECKING_UPDATES; | ||
404 | 1905 | refresh_update_button (self); | ||
405 | 1906 | |||
406 | 1907 | g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM, | ||
407 | 1908 | G_DBUS_PROXY_FLAGS_NONE, | ||
408 | 1909 | NULL, | ||
409 | 1910 | "org.freedesktop.PackageKit", | ||
410 | 1911 | "/org/freedesktop/PackageKit", | ||
411 | 1912 | "org.freedesktop.PackageKit", | ||
412 | 1913 | NULL, | ||
413 | 1914 | (GAsyncReadyCallback) got_pk_proxy_cb, | ||
414 | 1915 | self); | ||
415 | 1916 | } | ||
416 | 1917 | |||
417 | 2008 | static void | 1918 | static void |
418 | 2009 | cc_info_panel_init (CcInfoPanel *self) | 1919 | cc_info_panel_init (CcInfoPanel *self) |
419 | 2010 | { | 1920 | { |
420 | @@ -2015,62 +1925,15 @@ | |||
421 | 2015 | 1925 | ||
422 | 2016 | self->priv->builder = gtk_builder_new (); | 1926 | self->priv->builder = gtk_builder_new (); |
423 | 2017 | 1927 | ||
424 | 2018 | self->priv->session_settings = g_settings_new (GNOME_SESSION_MANAGER_SCHEMA); | ||
425 | 2019 | self->priv->media_settings = g_settings_new (MEDIA_HANDLING_SCHEMA); | 1928 | self->priv->media_settings = g_settings_new (MEDIA_HANDLING_SCHEMA); |
426 | 2020 | 1929 | ||
427 | 2021 | self->priv->session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); | 1930 | self->priv->session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); |
428 | 2022 | 1931 | ||
429 | 2023 | g_assert (self->priv->session_bus); | 1932 | g_assert (self->priv->session_bus); |
430 | 2024 | 1933 | ||
480 | 2025 | self->priv->pk_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, | 1934 | if (gtk_builder_add_from_file (self->priv->builder, |
481 | 2026 | G_DBUS_PROXY_FLAGS_NONE, | 1935 | GNOMECC_UI_DIR "/info.ui", |
482 | 2027 | NULL, | 1936 | &error) == 0) |
434 | 2028 | "org.freedesktop.PackageKit", | ||
435 | 2029 | "/org/freedesktop/PackageKit", | ||
436 | 2030 | "org.freedesktop.PackageKit", | ||
437 | 2031 | NULL, | ||
438 | 2032 | NULL); | ||
439 | 2033 | if (self->priv->pk_proxy == NULL) | ||
440 | 2034 | { | ||
441 | 2035 | g_warning ("Unable to get PackageKit proxy object"); | ||
442 | 2036 | self->priv->updates_state = PK_NOT_AVAILABLE; | ||
443 | 2037 | } | ||
444 | 2038 | else | ||
445 | 2039 | { | ||
446 | 2040 | GVariant *v; | ||
447 | 2041 | guint32 major, minor, micro; | ||
448 | 2042 | |||
449 | 2043 | v = g_dbus_proxy_get_cached_property (self->priv->pk_proxy, "VersionMajor"); | ||
450 | 2044 | g_variant_get (v, "u", &major); | ||
451 | 2045 | g_variant_unref (v); | ||
452 | 2046 | v = g_dbus_proxy_get_cached_property (self->priv->pk_proxy, "VersionMinor"); | ||
453 | 2047 | g_variant_get (v, "u", &minor); | ||
454 | 2048 | g_variant_unref (v); | ||
455 | 2049 | v = g_dbus_proxy_get_cached_property (self->priv->pk_proxy, "VersionMicro"); | ||
456 | 2050 | g_variant_get (v, "u", µ); | ||
457 | 2051 | g_variant_unref (v); | ||
458 | 2052 | |||
459 | 2053 | if (major != 0 || minor != 8) | ||
460 | 2054 | { | ||
461 | 2055 | g_warning ("PackageKit version %u.%u.%u not supported", major, minor, micro); | ||
462 | 2056 | g_clear_object (&self->priv->pk_proxy); | ||
463 | 2057 | self->priv->updates_state = PK_NOT_AVAILABLE; | ||
464 | 2058 | } | ||
465 | 2059 | else | ||
466 | 2060 | { | ||
467 | 2061 | g_signal_connect (self->priv->pk_proxy, | ||
468 | 2062 | "g-signal", | ||
469 | 2063 | G_CALLBACK (on_pk_signal), | ||
470 | 2064 | self); | ||
471 | 2065 | refresh_updates (self); | ||
472 | 2066 | } | ||
473 | 2067 | } | ||
474 | 2068 | |||
475 | 2069 | gtk_builder_add_from_file (self->priv->builder, | ||
476 | 2070 | GNOMECC_UI_DIR "/info.ui", | ||
477 | 2071 | &error); | ||
478 | 2072 | |||
479 | 2073 | if (error != NULL) | ||
483 | 2074 | { | 1937 | { |
484 | 2075 | g_warning ("Could not load interface file: %s", error->message); | 1938 | g_warning ("Could not load interface file: %s", error->message); |
485 | 2076 | g_error_free (error); | 1939 | g_error_free (error); |
486 | @@ -2082,11 +1945,11 @@ | |||
487 | 2082 | widget = WID ("updates_button"); | 1945 | widget = WID ("updates_button"); |
488 | 2083 | g_signal_connect (widget, "clicked", G_CALLBACK (on_updates_button_clicked), self); | 1946 | g_signal_connect (widget, "clicked", G_CALLBACK (on_updates_button_clicked), self); |
489 | 2084 | 1947 | ||
490 | 1948 | info_panel_setup_updates (self); | ||
491 | 2085 | info_panel_setup_selector (self); | 1949 | info_panel_setup_selector (self); |
492 | 2086 | info_panel_setup_overview (self); | 1950 | info_panel_setup_overview (self); |
493 | 2087 | info_panel_setup_default_apps (self); | 1951 | info_panel_setup_default_apps (self); |
494 | 2088 | info_panel_setup_media (self); | 1952 | info_panel_setup_media (self); |
495 | 2089 | info_panel_setup_graphics (self); | ||
496 | 2090 | if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) | 1953 | if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity")) |
497 | 2091 | info_panel_setup_notice (self); | 1954 | info_panel_setup_notice (self); |
498 | 2092 | } | 1955 | } |
499 | 2093 | 1956 | ||
500 | === modified file 'panels/info/info.ui' | |||
501 | --- panels/info/info.ui 2013-11-28 04:38:55 +0000 | |||
502 | +++ panels/info/info.ui 2014-02-20 17:20:19 +0000 | |||
503 | @@ -1,6 +1,6 @@ | |||
504 | 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
505 | 2 | <interface> | 2 | <interface> |
507 | 3 | <requires lib="gtk+" version="2.16"/> | 3 | <!-- interface-requires gtk+ 3.0 --> |
508 | 4 | <object class="GtkDialog" id="extra_options_dialog"> | 4 | <object class="GtkDialog" id="extra_options_dialog"> |
509 | 5 | <property name="can_focus">False</property> | 5 | <property name="can_focus">False</property> |
510 | 6 | <property name="border_width">10</property> | 6 | <property name="border_width">10</property> |
511 | @@ -409,7 +409,7 @@ | |||
512 | 409 | <property name="visible">True</property> | 409 | <property name="visible">True</property> |
513 | 410 | <property name="can_focus">False</property> | 410 | <property name="can_focus">False</property> |
514 | 411 | <property name="xalign">0</property> | 411 | <property name="xalign">0</property> |
516 | 412 | <property name="label" translatable="yes">Calculating...</property> | 412 | <property name="label" translatable="yes">Calculating…</property> |
517 | 413 | <property name="selectable">True</property> | 413 | <property name="selectable">True</property> |
518 | 414 | </object> | 414 | </object> |
519 | 415 | <packing> | 415 | <packing> |
520 | @@ -593,13 +593,9 @@ | |||
521 | 593 | <property name="spacing">10</property> | 593 | <property name="spacing">10</property> |
522 | 594 | <property name="orientation">vertical</property> | 594 | <property name="orientation">vertical</property> |
523 | 595 | <child> | 595 | <child> |
525 | 596 | <object class="GtkTable" id="default_apps_table"> | 596 | <object class="GtkGrid" id="default_apps_grid"> |
526 | 597 | <property name="visible">True</property> | 597 | <property name="visible">True</property> |
527 | 598 | <property name="can_focus">False</property> | 598 | <property name="can_focus">False</property> |
528 | 599 | <property name="halign">start</property> | ||
529 | 600 | <property name="valign">start</property> | ||
530 | 601 | <property name="n_rows">6</property> | ||
531 | 602 | <property name="n_columns">3</property> | ||
532 | 603 | <property name="column_spacing">12</property> | 599 | <property name="column_spacing">12</property> |
533 | 604 | <property name="row_spacing">12</property> | 600 | <property name="row_spacing">12</property> |
534 | 605 | <child> | 601 | <child> |
535 | @@ -627,7 +623,7 @@ | |||
536 | 627 | </object> | 623 | </object> |
537 | 628 | <packing> | 624 | <packing> |
538 | 629 | <property name="top_attach">1</property> | 625 | <property name="top_attach">1</property> |
540 | 630 | <property name="bottom_attach">2</property> | 626 | <property name="left_attach">0</property> |
541 | 631 | </packing> | 627 | </packing> |
542 | 632 | </child> | 628 | </child> |
543 | 633 | <child> | 629 | <child> |
544 | @@ -643,7 +639,7 @@ | |||
545 | 643 | </object> | 639 | </object> |
546 | 644 | <packing> | 640 | <packing> |
547 | 645 | <property name="top_attach">2</property> | 641 | <property name="top_attach">2</property> |
549 | 646 | <property name="bottom_attach">3</property> | 642 | <property name="left_attach">0</property> |
550 | 647 | </packing> | 643 | </packing> |
551 | 648 | </child> | 644 | </child> |
552 | 649 | <child> | 645 | <child> |
553 | @@ -659,7 +655,7 @@ | |||
554 | 659 | </object> | 655 | </object> |
555 | 660 | <packing> | 656 | <packing> |
556 | 661 | <property name="top_attach">3</property> | 657 | <property name="top_attach">3</property> |
558 | 662 | <property name="bottom_attach">4</property> | 658 | <property name="left_attach">0</property> |
559 | 663 | </packing> | 659 | </packing> |
560 | 664 | </child> | 660 | </child> |
561 | 665 | <child> | 661 | <child> |
562 | @@ -675,7 +671,7 @@ | |||
563 | 675 | </object> | 671 | </object> |
564 | 676 | <packing> | 672 | <packing> |
565 | 677 | <property name="top_attach">4</property> | 673 | <property name="top_attach">4</property> |
567 | 678 | <property name="bottom_attach">5</property> | 674 | <property name="left_attach">0</property> |
568 | 679 | </packing> | 675 | </packing> |
569 | 680 | </child> | 676 | </child> |
570 | 681 | <child> | 677 | <child> |
571 | @@ -686,8 +682,7 @@ | |||
572 | 686 | </object> | 682 | </object> |
573 | 687 | <packing> | 683 | <packing> |
574 | 688 | <property name="left_attach">2</property> | 684 | <property name="left_attach">2</property> |
577 | 689 | <property name="right_attach">3</property> | 685 | <property name="top_attach">0</property> |
576 | 690 | <property name="x_options">GTK_FILL</property> | ||
578 | 691 | </packing> | 686 | </packing> |
579 | 692 | </child> | 687 | </child> |
580 | 693 | <child> | 688 | <child> |
581 | @@ -698,10 +693,7 @@ | |||
582 | 698 | </object> | 693 | </object> |
583 | 699 | <packing> | 694 | <packing> |
584 | 700 | <property name="left_attach">2</property> | 695 | <property name="left_attach">2</property> |
585 | 701 | <property name="right_attach">3</property> | ||
586 | 702 | <property name="top_attach">1</property> | 696 | <property name="top_attach">1</property> |
587 | 703 | <property name="bottom_attach">2</property> | ||
588 | 704 | <property name="x_options">GTK_FILL</property> | ||
589 | 705 | </packing> | 697 | </packing> |
590 | 706 | </child> | 698 | </child> |
591 | 707 | <child> | 699 | <child> |
592 | @@ -712,10 +704,7 @@ | |||
593 | 712 | </object> | 704 | </object> |
594 | 713 | <packing> | 705 | <packing> |
595 | 714 | <property name="left_attach">2</property> | 706 | <property name="left_attach">2</property> |
596 | 715 | <property name="right_attach">3</property> | ||
597 | 716 | <property name="top_attach">2</property> | 707 | <property name="top_attach">2</property> |
598 | 717 | <property name="bottom_attach">3</property> | ||
599 | 718 | <property name="x_options">GTK_FILL</property> | ||
600 | 719 | </packing> | 708 | </packing> |
601 | 720 | </child> | 709 | </child> |
602 | 721 | <child> | 710 | <child> |
603 | @@ -726,10 +715,7 @@ | |||
604 | 726 | </object> | 715 | </object> |
605 | 727 | <packing> | 716 | <packing> |
606 | 728 | <property name="left_attach">2</property> | 717 | <property name="left_attach">2</property> |
607 | 729 | <property name="right_attach">3</property> | ||
608 | 730 | <property name="top_attach">3</property> | 718 | <property name="top_attach">3</property> |
609 | 731 | <property name="bottom_attach">4</property> | ||
610 | 732 | <property name="x_options">GTK_FILL</property> | ||
611 | 733 | </packing> | 719 | </packing> |
612 | 734 | </child> | 720 | </child> |
613 | 735 | <child> | 721 | <child> |
614 | @@ -740,10 +726,7 @@ | |||
615 | 740 | </object> | 726 | </object> |
616 | 741 | <packing> | 727 | <packing> |
617 | 742 | <property name="left_attach">2</property> | 728 | <property name="left_attach">2</property> |
618 | 743 | <property name="right_attach">3</property> | ||
619 | 744 | <property name="top_attach">4</property> | 729 | <property name="top_attach">4</property> |
620 | 745 | <property name="bottom_attach">5</property> | ||
621 | 746 | <property name="x_options">GTK_FILL</property> | ||
622 | 747 | </packing> | 730 | </packing> |
623 | 748 | </child> | 731 | </child> |
624 | 749 | <child> | 732 | <child> |
625 | @@ -759,7 +742,7 @@ | |||
626 | 759 | </object> | 742 | </object> |
627 | 760 | <packing> | 743 | <packing> |
628 | 761 | <property name="top_attach">5</property> | 744 | <property name="top_attach">5</property> |
630 | 762 | <property name="bottom_attach">6</property> | 745 | <property name="left_attach">0</property> |
631 | 763 | </packing> | 746 | </packing> |
632 | 764 | </child> | 747 | </child> |
633 | 765 | <child> | 748 | <child> |
634 | @@ -770,10 +753,7 @@ | |||
635 | 770 | </object> | 753 | </object> |
636 | 771 | <packing> | 754 | <packing> |
637 | 772 | <property name="left_attach">2</property> | 755 | <property name="left_attach">2</property> |
638 | 773 | <property name="right_attach">3</property> | ||
639 | 774 | <property name="top_attach">5</property> | 756 | <property name="top_attach">5</property> |
640 | 775 | <property name="bottom_attach">6</property> | ||
641 | 776 | <property name="x_options">GTK_FILL</property> | ||
642 | 777 | </packing> | 757 | </packing> |
643 | 778 | </child> | 758 | </child> |
644 | 779 | <child> | 759 | <child> |
645 | @@ -1061,7 +1041,7 @@ | |||
646 | 1061 | <property name="orientation">horizontal</property> | 1041 | <property name="orientation">horizontal</property> |
647 | 1062 | <child> | 1042 | <child> |
648 | 1063 | <object class="GtkButton" id="extra_options_button"> | 1043 | <object class="GtkButton" id="extra_options_button"> |
650 | 1064 | <property name="label" translatable="yes">_Other Media...</property> | 1044 | <property name="label" translatable="yes">_Other Media…</property> |
651 | 1065 | <property name="visible">True</property> | 1045 | <property name="visible">True</property> |
652 | 1066 | <property name="can_focus">True</property> | 1046 | <property name="can_focus">True</property> |
653 | 1067 | <property name="receives_default">True</property> | 1047 | <property name="receives_default">True</property> |
654 | @@ -1150,169 +1130,10 @@ | |||
655 | 1150 | </packing> | 1130 | </packing> |
656 | 1151 | </child> | 1131 | </child> |
657 | 1152 | <child> | 1132 | <child> |
809 | 1153 | <object class="GtkAlignment" id="graphics_detail_container"> | 1133 | <placeholder/> |
659 | 1154 | <property name="visible">True</property> | ||
660 | 1155 | <property name="can_focus">False</property> | ||
661 | 1156 | <property name="top_padding">20</property> | ||
662 | 1157 | <child> | ||
663 | 1158 | <object class="GtkTable" id="table2"> | ||
664 | 1159 | <property name="visible">True</property> | ||
665 | 1160 | <property name="can_focus">False</property> | ||
666 | 1161 | <property name="n_rows">4</property> | ||
667 | 1162 | <property name="n_columns">2</property> | ||
668 | 1163 | <property name="column_spacing">12</property> | ||
669 | 1164 | <property name="row_spacing">10</property> | ||
670 | 1165 | <child> | ||
671 | 1166 | <object class="GtkLabel" id="label17"> | ||
672 | 1167 | <property name="visible">True</property> | ||
673 | 1168 | <property name="can_focus">False</property> | ||
674 | 1169 | <property name="xalign">1</property> | ||
675 | 1170 | <property name="label" translatable="yes">Driver</property> | ||
676 | 1171 | <style> | ||
677 | 1172 | <class name="dim-label"/> | ||
678 | 1173 | </style> | ||
679 | 1174 | </object> | ||
680 | 1175 | <packing> | ||
681 | 1176 | <property name="x_options">GTK_FILL</property> | ||
682 | 1177 | <property name="y_options">GTK_FILL</property> | ||
683 | 1178 | </packing> | ||
684 | 1179 | </child> | ||
685 | 1180 | <child> | ||
686 | 1181 | <object class="GtkLabel" id="label19"> | ||
687 | 1182 | <property name="visible">True</property> | ||
688 | 1183 | <property name="can_focus">False</property> | ||
689 | 1184 | <property name="xalign">1</property> | ||
690 | 1185 | <property name="label" translatable="yes">Experience</property> | ||
691 | 1186 | <style> | ||
692 | 1187 | <class name="dim-label"/> | ||
693 | 1188 | </style> | ||
694 | 1189 | </object> | ||
695 | 1190 | <packing> | ||
696 | 1191 | <property name="top_attach">1</property> | ||
697 | 1192 | <property name="bottom_attach">2</property> | ||
698 | 1193 | <property name="x_options">GTK_FILL</property> | ||
699 | 1194 | <property name="y_options">GTK_FILL</property> | ||
700 | 1195 | </packing> | ||
701 | 1196 | </child> | ||
702 | 1197 | <child> | ||
703 | 1198 | <object class="GtkLabel" id="fallback-label"> | ||
704 | 1199 | <property name="visible">False</property> | ||
705 | 1200 | <property name="can_focus">False</property> | ||
706 | 1201 | <property name="xalign">1</property> | ||
707 | 1202 | <property name="label" translatable="yes" comments="Hardware is not able to run GNOME 3's shell, so we might want to force running the 'Fallback' experience.">Forced _Fallback Mode</property> | ||
708 | 1203 | <property name="use_underline">True</property> | ||
709 | 1204 | <property name="justify">right</property> | ||
710 | 1205 | <style> | ||
711 | 1206 | <class name="dim-label"/> | ||
712 | 1207 | </style> | ||
713 | 1208 | </object> | ||
714 | 1209 | <packing> | ||
715 | 1210 | <property name="top_attach">2</property> | ||
716 | 1211 | <property name="bottom_attach">3</property> | ||
717 | 1212 | <property name="x_options">GTK_FILL</property> | ||
718 | 1213 | <property name="y_options">GTK_FILL</property> | ||
719 | 1214 | </packing> | ||
720 | 1215 | </child> | ||
721 | 1216 | <child> | ||
722 | 1217 | <object class="GtkLabel" id="graphics_driver_label"> | ||
723 | 1218 | <property name="visible">True</property> | ||
724 | 1219 | <property name="can_focus">False</property> | ||
725 | 1220 | <property name="xalign">0</property> | ||
726 | 1221 | <property name="label">Unknown</property> | ||
727 | 1222 | <property name="selectable">True</property> | ||
728 | 1223 | </object> | ||
729 | 1224 | <packing> | ||
730 | 1225 | <property name="left_attach">1</property> | ||
731 | 1226 | <property name="right_attach">2</property> | ||
732 | 1227 | <property name="y_options">GTK_FILL</property> | ||
733 | 1228 | </packing> | ||
734 | 1229 | </child> | ||
735 | 1230 | <child> | ||
736 | 1231 | <object class="GtkLabel" id="graphics_experience_label"> | ||
737 | 1232 | <property name="visible">True</property> | ||
738 | 1233 | <property name="can_focus">False</property> | ||
739 | 1234 | <property name="xalign">0</property> | ||
740 | 1235 | <property name="label">Unknown</property> | ||
741 | 1236 | <property name="selectable">True</property> | ||
742 | 1237 | </object> | ||
743 | 1238 | <packing> | ||
744 | 1239 | <property name="left_attach">1</property> | ||
745 | 1240 | <property name="right_attach">2</property> | ||
746 | 1241 | <property name="top_attach">1</property> | ||
747 | 1242 | <property name="bottom_attach">2</property> | ||
748 | 1243 | <property name="y_options">GTK_FILL</property> | ||
749 | 1244 | </packing> | ||
750 | 1245 | </child> | ||
751 | 1246 | <child> | ||
752 | 1247 | <object class="GtkBox" id="graphics_fallback_switch_box"> | ||
753 | 1248 | <property name="visible">False</property> | ||
754 | 1249 | <property name="can_focus">False</property> | ||
755 | 1250 | <property name="halign">start</property> | ||
756 | 1251 | <property name="valign">center</property> | ||
757 | 1252 | <property name="orientation">horizontal</property> | ||
758 | 1253 | <child> | ||
759 | 1254 | <placeholder/> | ||
760 | 1255 | </child> | ||
761 | 1256 | </object> | ||
762 | 1257 | <packing> | ||
763 | 1258 | <property name="left_attach">1</property> | ||
764 | 1259 | <property name="right_attach">2</property> | ||
765 | 1260 | <property name="top_attach">2</property> | ||
766 | 1261 | <property name="bottom_attach">3</property> | ||
767 | 1262 | <property name="y_options">GTK_FILL</property> | ||
768 | 1263 | </packing> | ||
769 | 1264 | </child> | ||
770 | 1265 | <child> | ||
771 | 1266 | <object class="GtkLabel" id="graphics_logout_warning_label"> | ||
772 | 1267 | <property name="can_focus">False</property> | ||
773 | 1268 | <property name="no_show_all">True</property> | ||
774 | 1269 | <property name="xalign">0</property> | ||
775 | 1270 | <property name="yalign">0</property> | ||
776 | 1271 | <property name="label">The next login will use the fallback mode intended for unsupported graphics hardware.</property> | ||
777 | 1272 | <property name="wrap">True</property> | ||
778 | 1273 | <property name="selectable">True</property> | ||
779 | 1274 | <attributes> | ||
780 | 1275 | <attribute name="weight" value="bold"/> | ||
781 | 1276 | </attributes> | ||
782 | 1277 | </object> | ||
783 | 1278 | <packing> | ||
784 | 1279 | <property name="left_attach">1</property> | ||
785 | 1280 | <property name="right_attach">2</property> | ||
786 | 1281 | <property name="top_attach">3</property> | ||
787 | 1282 | <property name="bottom_attach">4</property> | ||
788 | 1283 | </packing> | ||
789 | 1284 | </child> | ||
790 | 1285 | <child> | ||
791 | 1286 | <object class="GtkLabel" id="label34"> | ||
792 | 1287 | <property name="visible">True</property> | ||
793 | 1288 | <property name="can_focus">False</property> | ||
794 | 1289 | <property name="xalign">1</property> | ||
795 | 1290 | <property name="justify">right</property> | ||
796 | 1291 | </object> | ||
797 | 1292 | <packing> | ||
798 | 1293 | <property name="top_attach">3</property> | ||
799 | 1294 | <property name="bottom_attach">4</property> | ||
800 | 1295 | <property name="x_options">GTK_FILL</property> | ||
801 | 1296 | </packing> | ||
802 | 1297 | </child> | ||
803 | 1298 | </object> | ||
804 | 1299 | </child> | ||
805 | 1300 | </object> | ||
806 | 1301 | <packing> | ||
807 | 1302 | <property name="position">3</property> | ||
808 | 1303 | </packing> | ||
810 | 1304 | </child> | 1134 | </child> |
811 | 1305 | <child type="tab"> | 1135 | <child type="tab"> |
822 | 1306 | <object class="GtkLabel" id="label2"> | 1136 | <placeholder/> |
813 | 1307 | <property name="visible">True</property> | ||
814 | 1308 | <property name="can_focus">False</property> | ||
815 | 1309 | <property name="label" translatable="yes">Graphics</property> | ||
816 | 1310 | <property name="mnemonic_widget">graphics_label</property> | ||
817 | 1311 | </object> | ||
818 | 1312 | <packing> | ||
819 | 1313 | <property name="position">3</property> | ||
820 | 1314 | <property name="tab_fill">False</property> | ||
821 | 1315 | </packing> | ||
823 | 1316 | </child> | 1137 | </child> |
824 | 1317 | </object> | 1138 | </object> |
825 | 1318 | <packing> | 1139 | <packing> |
826 | 1319 | 1140 | ||
827 | === modified file 'panels/info/unity-info-panel.desktop.in.in' | |||
828 | --- panels/info/unity-info-panel.desktop.in.in 2013-12-02 04:30:50 +0000 | |||
829 | +++ panels/info/unity-info-panel.desktop.in.in 2014-02-20 17:20:19 +0000 | |||
830 | @@ -12,4 +12,4 @@ | |||
831 | 12 | # Translators: those are keywords for the System Information panel | 12 | # Translators: those are keywords for the System Information panel |
832 | 13 | # "Preferred Applications" is the old name for the preference, so make | 13 | # "Preferred Applications" is the old name for the preference, so make |
833 | 14 | # sure that you use the same "translation" for those keywords | 14 | # sure that you use the same "translation" for those keywords |
835 | 15 | _Keywords=device;system;information;memory;processor;version;default;application;fallback;preferred;cd;dvd;usb;audio;video;disc;removable;media;autorun; | 15 | _Keywords=device;system;information;memory;processor;version;default;application;preferred;cd;dvd;usb;audio;video;disc;removable;media;autorun; |
The changes there are basically:
- some extra debugging code
- some cleanups of old/used code
- dropped the "fallback" switch (we were already hidding it for Unity, upstream dropped it)
- dropped the "graphics" section since the graphics info are in the summary and without "fallback" nothing was left there