[Gtk-sharp-list] Toolbar button callbacks
Wed, 20 Apr 2005 16:47:41 +0300
On Wed, 2005-04-20 at 09:45 +1000, Greg Hamilton wrote:
> I'm working on a C# Gnome app using Glade to design the GUI.
> Glade.XML.Autoconnect connects signals to the appropriate callbacks for
> all widgets except those in the GtkToolbar. A quick Google turns up a
> few mentions of the problem but no solution.
> Note that I'm running Debian unstable using Mono installed from the x86
> binary installer. I'm stuck with version 1.0.6 as builds since then
> require a more recent version of glibc than that provided by the Debian
> unstable glibc package.
New versions of Glade (that support GTK+ 2.4) use Gtk.ToolButton widgets
when adding buttons to toolbars.
Gtk.ToolButton was introduced in GTK+ 2.4 and therefore is not correctly
supported in gtk# 1.0.x. If you use gtk# 1.9.x you will find that
everything works ok.
If you must use gtk# 1.0.x you could use an older version of Glade that
inserts Gtk.Button widgets in toolbars or you could manually edit
the .glade file and replace GtkToolButton(s) with GtkButton(s).