Merge lp:~robert-ancell/unity-control-center/always-menubar into lp:unity-control-center

Proposed by Robert Ancell
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 12852
Merged at revision: 12857
Proposed branch: lp:~robert-ancell/unity-control-center/always-menubar
Merge into: lp:unity-control-center
Diff against target: 58 lines (+16/-32)
1 file modified
shell/control-center.c (+16/-32)
To merge this branch: bzr merge lp:~robert-ancell/unity-control-center/always-menubar
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+288586@code.launchpad.net

Commit message

Always use a menubar.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

That makes sense

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'shell/control-center.c'
--- shell/control-center.c 2014-04-10 11:08:20 +0000
+++ shell/control-center.c 2016-03-09 22:33:09 +0000
@@ -266,38 +266,22 @@
266 g_action_map_add_action (G_ACTION_MAP (application), action);266 g_action_map_add_action (G_ACTION_MAP (application), action);
267 g_signal_connect (action, "activate", G_CALLBACK (quit_activated), shell);267 g_signal_connect (action, "activate", G_CALLBACK (quit_activated), shell);
268268
269 if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "Unity"))269 menubar = g_menu_new ();
270 {270 menu = g_menu_new ();
271 menubar = g_menu_new ();271
272 menu = g_menu_new ();272 section = g_menu_new ();
273273 g_menu_append (section, _("Contents"), "app.contents");
274 section = g_menu_new ();274 g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
275 g_menu_append (section, _("Contents"), "app.contents");275
276 g_menu_append_section (menu, NULL, G_MENU_MODEL (section));276 g_menu_append (menu, _("Quit"), "app.quit");
277277
278 g_menu_append (menu, _("Quit"), "app.quit");278 g_menu_append_submenu (menubar, _("Help"), G_MENU_MODEL (menu));
279279
280 g_menu_append_submenu (menubar, _("Help"), G_MENU_MODEL (menu));280 gtk_application_set_menubar (GTK_APPLICATION (application),
281281 G_MENU_MODEL (menubar));
282 gtk_application_set_menubar (GTK_APPLICATION (application),282
283 G_MENU_MODEL (menubar));283 g_signal_connect (shell, "notify::active-panel",
284284 G_CALLBACK (active_panel_changed_cb), section);
285 g_signal_connect (shell, "notify::active-panel",
286 G_CALLBACK (active_panel_changed_cb), section);
287 }
288 else
289 {
290 menu = g_menu_new ();
291
292 section = g_menu_new ();
293 g_menu_append (section, _("Help"), "app.help");
294 g_menu_append (section, _("Quit"), "app.quit");
295
296 g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
297
298 gtk_application_set_app_menu (GTK_APPLICATION (application),
299 G_MENU_MODEL (menu));
300 }
301285
302 gtk_application_add_accelerator (GTK_APPLICATION (application),286 gtk_application_add_accelerator (GTK_APPLICATION (application),
303 "F1", "app.help", NULL);287 "F1", "app.help", NULL);

Subscribers

People subscribed via source and target branches