Re: accessing Gtkframes Label
| From: | Steph | Date: | Fri, 03 Jan 2003 17:11:59 +0000 |
| Subject: | Re: accessing Gtkframes Label | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2831@lists.php.net to get a copy of this message | ||
> You mean specific to using Glade with php-gtk? I'd love to give it a
> shot.
http://cvs.php.net/cvs.php/php-gtk-doc/en/reference/glade
- take a look
at the files in there and mail php-gtk-doc@lists.php.net if it's not too
scary. Thanks! :)
> As long as I have your attention, do you have any idea how to get the
> value of the item selected in a GtkOptionMenu created in Glade? I've
had
> success with GtkCombo, but GtkOptionMenu is far more visually
pleasing.
I'm not a glade afficionado, I'd just use get_widget() as in the
previous mail and access the gtkmenu widget information in the normal
way
e.g.
$menu = $optionmenu->get_menu();
$menuitem = $menu->get_active();
$label = $menuitem->child;
$string = $label->get();
- there's probably a quicker and better way to do this, but I can't
think of one right now as it will need to rely on signals/states.