Fwd: submenu items activate signals...
- From: BoÅtjan ÅpetiÄ <igzebedze auch eu org>
- To: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Fwd: submenu items activate signals...
- Date: Wed, 11 May 2005 09:21:49 +0200
hi
i have a problem with creating a submenus, because the signals somehow don't get connected / nothing
happens...
here's an excerpt:
-----------------
my $form = &get_form;
my $menu = new Gtk2::Menu;
my $cols = new Gtk2::Menu;
my $columns = Gtk2::MenuItem->new(gettext("Column"));
$columns->set_submenu($cols);
my %columns = (...
...);
while (my ($name, $callback) = each (%columns)) {
my $menu_item = Gtk2::MenuItem->new($name);
$menu_item->signal_connect('activate', $callback);
$menu_item->show;
$cols->append($menu_item);
}
my $setup = Gtk2::MenuItem->new('Configure');
$setup->signal_connect('activate' => \&setup_progs);
$columns->append($setup);
$menu->append($columns);
# show everything
$menu->show_all;
$menu->popup(undef,undef,undef,undef,$now->button,$now->time);
-------------
there is no error, but no effect either...
regards, bostjan
--
igzebedze - he who speaks loud and say nothing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]