How to fix "unknown attributes" swapped "warnings from libglade?

libglade has been updated and my old Glade xml file has these “modified” attributes for signals. These attributes generate the following warnings when downloading a file:

libglade-WARNING **: unknown attribute `swapped' for <signal>. 

How to fix these warnings? Can I just remove the swapped attribute or will this cause a problem?

+6
source share
3 answers

The swapped attribute was not used by any resent version of glade (an interface constructor). Newer versions of libglade assume that the signal and data emitter should be swapped if (and only if) there is an "object", the attribute is present. If signal handlers assume otherwise, there will be problems. I hope (and most likely) the "swapped" attribute is only redundant information and occurs only with the "object" attribute (check your polarization files to make sure that this is true). In this case, you can safely remove it and no longer think about it. Otherwise, it would be a very bad idea to remove support for it and a rather critical error in libglade.

+3
source

I had the same problem with an outdated (I think) version of Guake, but this quickfix was pretty simple, as described here:

https://github.com/Guake/guake/commit/76679c889ac7bfe69dc7081db826f38b10ea5448

0
source

The libglade warning is still here when running Guake 0.5.0 from a terminal in Ubuntu Gnome 15.04 Vivid Vervet

 (guake:1917): libglade-WARNING **: unknown attribute `swapped' for <signal>. 

As Totem said, a change has already been made to / usr / bin / guake.

However, this error was fixed in guake-0.5.1 and later versions, as indicated here ( https://bugs.mageia.org/show_bug.cgi?id=15306 )

You can download the latest version 0.7.2 from http://ppa.launchpad.net/webupd8team/unstable/ubuntu/pool/main/g/guake/


Edit:

In fact, the warning went away in 0.7.2, but a newer one appeared when running guake in the terminal:

INFO: guake.guake_app: configuration registration completed / usr / lib / python 2.7 / dist-packages / guake / guake_app.py: 1625: GtkWarning: gtk_box_pack: statement 'child-> parent == NULL' failed self.mainframe.pack_start (self.mainframe, expand = True, fill = True, padding = 0)

Also, when calling guake, the following error message pops up:

/usr/lib/python2.7/dist-packages/guake/guake_app.py:722: GtkWarning: IA__gtk_window_set_type_hint: assertion !! gtk_widget_get_mapped (GTK_WIDGET (window)) 'failed self.window.set_type_hint (gtk.gdk.WINDOW_TYPE_HINT_DOCK) / usr / lib / python 2.7 / dist-packages / guake / guake_app.py: 723: GtkWarning_ind_wind_wind_wind_wind_wind_type _ind_type _ind_type _ind.py_wind_type _ind_type _ind.py_wind_type _ind.py_wind_type _ind_type _ind.py_wind_type _ind.py_wind_type _ind_type _ind.py_wind_type _ind.py: gtk_widget_get_mapped (GTK_WIDGET (window)) 'failed self.window.set_type_hint (gtk.gdk.WINDOW_TYPE_HINT_NORMAL)

But of course, this is another discussion.

0
source

Source: https://habr.com/ru/post/899641/


All Articles