GtkBuilder + GtkUIManager and connect_proxy signal.
- From: Alessio Giovanni Baroni <alessiogiovanni baroni gmail com>
- To: gtk-app-devel-list gnome org
- Subject: GtkBuilder + GtkUIManager and connect_proxy signal.
- Date: Fri, 18 Jun 2010 11:08:44 +0200
Hello,
I am writing an application using an XML file for defining the interface,
with GtkBuilder + GtkUIManager.
The most important parts of XML file are:
....................
<object id='ui_manager' class='GtkUIManager'>
<child>
<object id='action_group' class='GtkActionGroup'>
<child>
<object id='file' class='GtkAction'>
<property name='label'>_File</property>
</object>
</child>
<child>
<object id='file_new' class='GtkAction'>
<property name='label'>_New</property>
<property name='stock-id'>GTK_STOCK_NEW</property>
<property name='tooltip'>Start a new source
file</property>
<signal name='activate'
handler='on_file_new_activate' object='notebook' swapped='FALSE' />
</object>
</child>
<child>
<object id='help' class='GtkAction'>
<property name='label'>_Help</property>
</object>
</child>
<child>
<object id='help_about' class='GtkAction'>
<property name='label'>_About</property>
<property name='tooltip'>Show informations about the
application</property>
<property name='stock-id'>GTK_STOCK_ABOUT</property>
</object>
</child>
</object>
</child>
<signal name='connect-proxy' handler='on_connect_proxy' />
<signal name='disconnect-proxy' handler='on_disconnect_proxy' />
<ui>
<menubar name='menu_bar'>
<menu action='file'>
<menuitem action='file_new' />
</menu>
<menu action='help'>
<menuitem action='help_about' />
</menu>
</menubar>
</ui>
</object>
........................
<child>
<object id='menu_bar' class='GtkMenuBar'
constructor='ui_manager' />
Now, to write the tooltip on the GtkStatusbar, I specified the signal
'connect_proxy', where I will connect the 'select' signal of GtkMenuItem.
The problem is that the 'connect_proxy' is not emitted!
How can I do?
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]