Skip to content

Commit acd1aeb

Browse files
committed
Improve menu layout
1 parent 030567b commit acd1aeb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/window.vala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,11 +1185,9 @@ namespace Dc {
11851185
});
11861186

11871187
/* Replace actions each time (context changes) */
1188-
var group = new SimpleActionGroup ();
1189-
group.add_action (pin_action);
1190-
group.add_action (info_action);
1191-
group.add_action (delete_action);
1192-
this.insert_action_group ("win", group);
1188+
add_action (pin_action);
1189+
add_action (info_action);
1190+
add_action (delete_action);
11931191

11941192
var popover = new Gtk.PopoverMenu.from_model (menu);
11951193
popover.set_parent (chat_listbox);
@@ -1652,14 +1650,16 @@ namespace Dc {
16521650
section1.append ("New Group", "win.new-group");
16531651

16541652
var section2 = new GLib.Menu ();
1655-
section2.append ("Refresh", "win.refresh");
1653+
// section2.append ("Refresh", "win.refresh");
16561654
section2.append ("Settings", "win.settings");
1657-
section2.append ("Shortcuts", "win.shortcuts");
1658-
section2.append ("About", "win.about");
1655+
var section3 = new GLib.Menu ();
1656+
section3.append ("Shortcuts", "win.shortcuts");
1657+
section3.append ("About", "win.about");
16591658

16601659
var menu = new GLib.Menu ();
16611660
menu.append_section (null, section1);
16621661
menu.append_section (null, section2);
1662+
menu.append_section (null, section3);
16631663

16641664
return menu;
16651665
}

0 commit comments

Comments
 (0)