[Gtk-sharp-list] What's happening? Glade bug?

Paulo Pires paulo.pires@vodafone.pt
Wed, 24 Nov 2004 10:34:42 +0000


What's your GTK# version?
What's your Glade version?
Can I see the piece of code where you call the EventHandler?

It's weird what's going on, but I just can assume it's some kind of
mistake. Is this code successfully compiled? Does it run? Afaik,
Gtk.ToolButton didn't exist in some versions of gtk-sharp/glade-sharp
(??).


Paulo Pires


Qua, 2004-11-24 =C3=A0s 09:23 +0100, Antonio Guti=C3=A9rrez Mayoral escreve=
u:
> Sure:
>=20
> This piece of code from glade, defining the toolbar:
>=20
>    <widget class=3D"GtkToolbar" id=3D"mainToolbar">
>      <property name=3D"border_width">2</property>
>      <property name=3D"height_request">40</property>
> (...)
>=20
> The child button in toolbar:
>=20
>      <child>
>        <widget class=3D"GtkToolButton" id=3D"toolbarAddButton">
>          <property name=3D"visible">True</property>
> (...)
>=20
> The signal clicked:
>         =20
> 	<signal name=3D"clicked" handler=3D"OnMenuFileAddWorkingDirectoryActivat=
e"
> last_modification_time=3D"Sat, 20 Nov 2004 12:41:44 GMT"/>
>        </widget>
>=20
> And my C# code:
>=20
>       public void OnMenuFileAddWorkingDirectoryActivate(object o,
> EventArgs args)
>=20
>       {
>          workingdirectorydialog =3D new WorkingDirectoryDialog();
>          workingdirectorydialog.Show();
>       }
>=20
> This code works fine for main menu bar... :-(
>=20
> El mi=C3=A9, 24-11-2004 a las 00:30 +0000, Paulo Pires escribi=C3=B3:
> > Can I/we see some code? :)
> >=20
> > Paulo Pires
> >=20
> > Ter, 2004-11-23 =C3=A0s 23:27 +0100, Antonio Guti=C3=A9rrez Mayoral esc=
reveu:
> > > Hello List!
> > >=20
> > > I have the next problem: I have defined a toolbar with some buttons o=
n
> > > glade. This buttons has events asociated with clicked signal... When =
I
> > > write my C# code, I code the autoconnect method with .glade xml file.=
..
> > > but... nothing happens when I click the button.=20
> > >=20
> > > In fact, If I connect the buttons with clicked signal on glade, to th=
e
> > > events... but I dont write these events on my C# code... the exceptio=
n
> > > not handler asociated with this situation.... is not raised.
> > >=20
> > > What's happening?? How I can solve it?? Glade bug ?? :-(((
> >=20
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list