Unexpected element <signal> inside <widget>

View: New views
8 Messages — Rating Filter:   Alert me  

Unexpected element <signal> inside <widget>

by Michał Karnicki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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>.

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

Re: Unexpected element <signal> inside <widget>

by Tristan Van Berkom-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/3/23 Michał Karnicki <mkarnicki@...>:
> 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!
>

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>.
>
> _______________________________________________
> Glade-devel maillist  -  Glade-devel@...
> http://lists.ximian.com/mailman/listinfo/glade-devel
>
>
_______________________________________________
Glade-devel maillist  -  Glade-devel@...
http://lists.ximian.com/mailman/listinfo/glade-devel

Re: Unexpected element <signal> inside <widget>

by Michał Karnicki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

2009/3/24 Tristan Van Berkom <tristan.van.berkom@...>
2009/3/23 Michał Karnicki <mkarnicki@...>:
> 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!
>

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>.
>
> _______________________________________________
> Glade-devel maillist  -  Glade-devel@...
> http://lists.ximian.com/mailman/listinfo/glade-devel
>
>


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

Re: Unexpected element <signal> inside <widget>

by M3nt0r3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michał Karnicki ha scritto:

> 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
>
> 2009/3/24 Tristan Van Berkom <tristan.van.berkom@...
> <mailto:tristan.van.berkom@...>>
>
>     2009/3/23 Michał Karnicki <mkarnicki@...
>     <mailto:mkarnicki@...>>:
>     > 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!
>     >
>
>     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>.
>     >
>     > _______________________________________________
>     > Glade-devel maillist  -  Glade-devel@...
>     <mailto:Glade-devel@...>
>     > http://lists.ximian.com/mailman/listinfo/glade-devel
>     >
>     >
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Glade-devel maillist  -  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-devel@...
http://lists.ximian.com/mailman/listinfo/glade-devel

Re: Unexpected element <signal> inside <widget>

by Tristan Van Berkom-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/3/24 Michał Karnicki <mkarnicki@...>:
[...]
> 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...


>
> Regards,
> Mike
>
> 2009/3/24 Tristan Van Berkom <tristan.van.berkom@...>
>>
>> 2009/3/23 Michał Karnicki <mkarnicki@...>:
>> > 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!
>> >
>>
>> 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>.
>> >
>> > _______________________________________________
>> > Glade-devel maillist  -  Glade-devel@...
>> > http://lists.ximian.com/mailman/listinfo/glade-devel
>> >
>> >
>
>
_______________________________________________
Glade-devel maillist  -  Glade-devel@...
http://lists.ximian.com/mailman/listinfo/glade-devel

Re: Unexpected element <signal> inside <widget>

by M3nt0r3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tristan Van Berkom ha scritto:

> 2009/3/24 Michał Karnicki <mkarnicki@...>:
> [...]
>  
>> 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-devel@...
http://lists.ximian.com/mailman/listinfo/glade-devel

Re: Unexpected element <signal> inside <widget>

by M3nt0r3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

francesco@... ha scritto:
> Tristan Van Berkom ha scritto:
>  
>> 2009/3/24 Michał Karnicki <mkarnicki@...>:
>> [...]
>>    
>
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-devel@...
http://lists.ximian.com/mailman/listinfo/glade-devel

Re: Unexpected element <signal> inside <widget>

by Tristan Van Berkom-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/3/24 francesco@... <francesco@...>:
> francesco@... ha scritto:
>> Tristan Van Berkom ha scritto:
>>
>>> 2009/3/24 Michał Karnicki <mkarnicki@...>:
>>> [...]
>>>
>>

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-devel@...
http://lists.ximian.com/mailman/listinfo/glade-devel