Skip to content

Commit 172e4ff

Browse files
committed
PopoverMenuItem: Add with_text constructor
1 parent be61020 commit 172e4ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/PopoverMenuItem.vala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public class Wingpanel.PopoverMenuItem : Gtk.Button {
3232
set_css_name ("modelbutton");
3333
}
3434

35+
public PopoverMenuItem () {}
36+
37+
public PopoverMenuItem.with_text (string text) {
38+
Object (text: text);
39+
}
40+
3541
construct {
3642
accessible_role = MENU_ITEM;
3743

0 commit comments

Comments
 (0)