messy hack
| From: | Steph | Date: | Sun, 04 Sep 2005 14:18:15 +0000 |
| Subject: | messy hack | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-1591@lists.php.net to get a copy of this message | ||
<?php
$window = new GtkWindow('Testing stuff');
$window->connect_object('destroy', array('gtk', 'main_quit'));
$button = new GtkButton('');
$label = $button->child;
$label->set_text_with_mnemonic('_Suck it and see');
$window->add($button);
$window->show_all();
gtk::main();
?>
It took a while to understand why use_underline is TRUE by default, but it
has to be better than working around it in userland.
I think I can probably tackle those outstanding 'mnemonic' calls with my
copy/paste skills, there are a few incidences of it already in the source.
Do you have any strong feelings about that approach, Andrei?
- Steph