summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdrakpxelinux.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 7f2313f..c52542b 100755
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -1136,9 +1136,7 @@ $treeview->signal_connect(button_press_event => sub {
});
my @items = get_items();
-my $factory = Gtk3::ItemFactory->new('Gtk3::MenuBar', '<main>', undef);
-$factory->create_items('menu', @items);
-my $menu = $factory->get_widget('<main>');
+my $menu = Gtk3::MenuBar->new;
my $okcancel = create_okcancel({
cancel_clicked => sub { ugtk3->exit },