GtkAccelLabel on GtkNotebook popup menu

From: Date: Fri, 05 May 2006 10:32:25 +0000
Subject: GtkAccelLabel on GtkNotebook popup menu
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6904@lists.php.net to get a copy of this message
Hello all, What is the most easy way to get GtkAccelLabels with working accelerators on the popup menu of a GtkNotebook? I can use $notebook->append_page_menu($content, new GtkLabel('bla'), $accellabel); to set the accelerator label. Now I need to add the accelerator: $al->add_accelerator('activate', $accgrp, Gdk::KEY_S, Gdk::CONTROL_MASK, Gtk::ACCEL_VISIBLE ); $al->set_accel_widget($lbl); The problem here is that there is no "activate" method on the gtknotebook's label, nor does gtknotebook has a activate signal that could be used. So the only way I see is creating an own widget that catches "activate" for each of the notebook pages. That's pretty hard; is there a simpler solution? -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#6904) next »