Discussion:
Unexpected element <signal> inside <widget>
Michał Karnicki
2009-03-24 02:50:11 UTC
Permalink
I have the same problem. After loading the old file and saving it,
buttons stopped to work. I receive:

libglade-WARNING **: Unexpected element <signal> inside <widget>

And I have no clue what to do. If I can provide you with any feedback
you need concerning this issue, I will be more than pleased. Thank
you!

Mike

--------------------
Hi, after an upgrade to the last versione on jaunty a have this kind of
error when i open old ( 3.5.4) file and save it
Buttons doesnt' work.

Any tip? my fault?

Thanks

(promogest.py:24867): libglade-WARNING **: Unexpected element <signal>
inside <widget>.
Tristan Van Berkom
2009-03-24 03:09:50 UTC
Permalink
I have the same problem. After loading the old file and saving it, buttons
libglade-WARNING **: Unexpected element <signal> inside <widget>
And I have no clue what to do. If I can provide you with any feedback you
need concerning this issue, I will be more than pleased. Thank you!
Hi as far as I know this was fixed here:
http://bugzilla.gnome.org/show_bug.cgi?id=559531
but /before/ 3.5.4 (think it was fixed in 3.5.2 or 3.5.3).

Take a look at the Glade file, the signals should follow the properties
and precede the children, if they dont, there is your bug.

Also please let me know what version of Glade produced the Glade
file with the malformed signals.

Cheers,
-Tristan
Mike
--------------------
Hi, after an upgrade to the last versione on jaunty a have this kind of
error when i open old ( 3.5.4) file and save it
Buttons doesnt' work.
Any tip? my fault?
Thanks
(promogest.py:24867): libglade-WARNING **: Unexpected element <signal>
inside <widget>.
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Michał Karnicki
2009-03-24 12:15:41 UTC
Permalink
Hello,

This is the relevant part of glade file:

<child>
<widget class="GtkToggleToolButton" id="winAddToolEdit">
<property name="visible">True</property>
<property name="extension_events">all</property>
<property name="label"
translatable="yes">Edytuj</property>
<property name="stock_id">gtk-edit</property>
<accelerator key="e" signal="clicked"
modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
<signal name="toggled"
handler="on_winAddToolEdit_toggled"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
And it looks fine, so I really have a problem :/ I need Glade to produce
GUI.. or I don't notice someting?

I can't tell what was the version of glade which produced the file (I
recently had ubuntu 8.10 up to date, but I just switched to 9.04 alfa 6).
The current version of Glade I have is 3.6.0 - I opened the not-so-old
.glade file in the new Glade and saved it. Then signals stopped to connect
with button events (at least the one I use, which is clicked/toggled).

Regards,
Mike
Post by Michał Karnicki
I have the same problem. After loading the old file and saving it,
buttons
Post by Michał Karnicki
libglade-WARNING **: Unexpected element <signal> inside <widget>
And I have no clue what to do. If I can provide you with any feedback you
need concerning this issue, I will be more than pleased. Thank you!
http://bugzilla.gnome.org/show_bug.cgi?id=559531
but /before/ 3.5.4 (think it was fixed in 3.5.2 or 3.5.3).
Take a look at the Glade file, the signals should follow the properties
and precede the children, if they dont, there is your bug.
Also please let me know what version of Glade produced the Glade
file with the malformed signals.
Cheers,
-Tristan
Post by Michał Karnicki
Mike
--------------------
Hi, after an upgrade to the last versione on jaunty a have this kind of
error when i open old ( 3.5.4) file and save it
Buttons doesnt' work.
Any tip? my fault?
Thanks
(promogest.py:24867): libglade-WARNING **: Unexpected element <signal>
inside <widget>.
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
francesco
2009-03-24 12:26:07 UTC
Permalink
Post by Michał Karnicki
Hello,
<child>
<widget class="GtkToggleToolButton"
id="winAddToolEdit">
<property name="visible">True</property>
<property name="extension_events">all</property>
<property name="label"
translatable="yes">Edytuj</property>
<property name="stock_id">gtk-edit</property>
<accelerator key="e" signal="clicked"
modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
<signal name="toggled"
handler="on_winAddToolEdit_toggled"/>
</widget>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
And it looks fine, so I really have a problem :/ I need Glade to
produce GUI.. or I don't notice someting?
I can't tell what was the version of glade which produced the file (I
recently had ubuntu 8.10 up to date, but I just switched to 9.04 alfa
6). The current version of Glade I have is 3.6.0 - I opened the
not-so-old .glade file in the new Glade and saved it. Then signals
stopped to connect with button events (at least the one I use, which
is clicked/toggled).
Regards,
Mike
Post by Michał Karnicki
I have the same problem. After loading the old file and saving
it, buttons
Post by Michał Karnicki
libglade-WARNING **: Unexpected element <signal> inside <widget>
And I have no clue what to do. If I can provide you with any
feedback you
Post by Michał Karnicki
need concerning this issue, I will be more than pleased. Thank you!
http://bugzilla.gnome.org/show_bug.cgi?id=559531
but /before/ 3.5.4 (think it was fixed in 3.5.2 or 3.5.3).
Take a look at the Glade file, the signals should follow the properties
and precede the children, if they dont, there is your bug.
Also please let me know what version of Glade produced the Glade
file with the malformed signals.
Cheers,
-Tristan
Post by Michał Karnicki
Mike
--------------------
Hi, after an upgrade to the last versione on jaunty a have this
kind of
Post by Michał Karnicki
error when i open old ( 3.5.4) file and save it
Buttons doesnt' work.
Any tip? my fault?
Thanks
(promogest.py:24867): libglade-WARNING **: Unexpected element
<signal>
Post by Michał Karnicki
inside <widget>.
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
------------------------------------------------------------------------
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
Sorry Tristan for the private email sent before.
resend my email to the list:

After some attempt i found that is a accel groups related problem, after
deleting this part from glade ( 3.5.x ) to the code i jumped the (
libglade -->gtkbuilder --> libglade ) problem.

I ask again about an how-to , piece of code, something about custom
widgets with gtkbuilder, i made a simplegladewrapper for gtkbuilder but
i can manage customs. thanks

F
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/m
Tristan Van Berkom
2009-03-24 16:15:57 UTC
Permalink
2009/3/24 Michał Karnicki <***@gmail.com>:
[...]
Post by Michał Karnicki
I can't tell what was the version of glade which produced the file (I
recently had ubuntu 8.10 up to date, but I just switched to 9.04 alfa 6).
The current version of Glade I have is 3.6.0 - I opened the not-so-old
.glade file in the new Glade and saved it. Then signals stopped to connect
with button events (at least the one I use, which is clicked/toggled).
Ok this is my guess is that libglade has some problem with
the order of accelerator/signal here, before I jump to conclusions
can you try reordering the file by hand so that the accelerator
comes after the signal ?

Reordering that will be a real pain but I'll make sure to do it
this week...
Post by Michał Karnicki
Regards,
Mike
I have the same problem. After loading the old file and saving it, buttons
libglade-WARNING **: Unexpected element <signal> inside <widget>
And I have no clue what to do. If I can provide you with any feedback you
need concerning this issue, I will be more than pleased. Thank you!
  http://bugzilla.gnome.org/show_bug.cgi?id=559531
but /before/ 3.5.4 (think it was fixed in 3.5.2 or 3.5.3).
Take a look at the Glade file, the signals should follow the properties
and precede the children, if they dont, there is your bug.
Also please let me know what version of Glade produced the Glade
file with the malformed signals.
Cheers,
          -Tristan
Mike
--------------------
Hi, after an upgrade to the last versione on jaunty a have this kind of
error when i open old ( 3.5.4) file and save it
Buttons doesnt' work.
Any tip? my fault?
Thanks
(promogest.py:24867): libglade-WARNING **: Unexpected element <signal>
inside <widget>.
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
f***@promotux.it
2009-03-24 16:36:35 UTC
Permalink
Post by Tristan Van Berkom
[...]
Post by Michał Karnicki
I can't tell what was the version of glade which produced the file (I
recently had ubuntu 8.10 up to date, but I just switched to 9.04 alfa 6).
The current version of Glade I have is 3.6.0 - I opened the not-so-old
.glade file in the new Glade and saved it. Then signals stopped to connect
with button events (at least the one I use, which is clicked/toggled).
Ok this is my guess is that libglade has some problem with
the order of accelerator/signal here, before I jump to conclusions
can you try reordering the file by hand so that the accelerator
comes after the signal ?
Reordering that will be a real pain but I'll make sure to do it
this week...
Reordering it works , i checked with some files

F.
--
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
f***@promotux.it
2009-03-24 23:14:09 UTC
Permalink
[...]
that doesn't work :

<widget class="GtkButton" id="button_login">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">False</property>
<property name="tooltip" translatable="yes">Connessione
al promogest</property>
<accelerator key="Return" signal="clicked"/>
<accelerator key="KP_Enter" signal="clicked"/>
<signal name="clicked" handler="on_button_login_clicked"/>
<child>
<widget class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="xscale">0</property>
<property name="yscale">0</property>
<child>
<widget class="GtkHBox" id="hbox9">
<property name="visible">True</property>
<property name="spacing">2</property>
<child>
<widget class="GtkImage" id="image4">
<property name="visible">True</property>
<property
name="pixbuf">connetti16x16.png</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="label"
translatable="yes">_Connetti</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
</widget>

(promogest.py:6514): libglade-WARNING **: Unexpected element <signal>
inside <widget>.


that works:

<widget class="GtkButton" id="button_login">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">False</property>
<property name="tooltip" translatable="yes">Connessione
al promogest</property>
<signal name="clicked" handler="on_button_login_clicked"/>
<child>
<widget class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="xscale">0</property>
<property name="yscale">0</property>
<child>
<widget class="GtkHBox" id="hbox9">
<property name="visible">True</property>
<property name="spacing">2</property>
<child>
<widget class="GtkImage" id="image4">
<property name="visible">True</property>
<property
name="pixbuf">connetti16x16.png</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="label"
translatable="yes">_Connetti</property>
<property name="use_underline">True</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
</widget>

whitsout this two lines works:

<accelerator key="Return" signal="clicked"/>
<accelerator key="KP_Enter" signal="clicked"/>

it work with all 3.5 releases before the gtkbuilder manager

now tested with glade 3.6 in jaunty

thanks

F.
--
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Tristan Van Berkom
2009-03-25 15:33:14 UTC
Permalink
[...]
Ok guys I fixed this in svn, cant seem to find a bug attached
to close so just a notification email will do; bug is fixed and
will be available in 3.6.1 (which I hope to roll sometime before
thursday night).

Cheers all, and thanks for testing this and letting me
know all the details which allowed me to fix the bug.

-Tristan
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel

Loading...