! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
deprecated GTK elements in the theme
Status:
CLOSED: FIXED
Product:
Gtk-xfce-engine
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2009-11-15 17:51:58 CET
Hey,

according to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551889 it seems that Xfce gtk theme (the default one, using gtk-xfce-engine) use an unknown property:

Gtk-Message: /usr/share/themes/Xfce/gtk-2.0/gtkrc:46: failed to retrieve property `GtkOptionMenu::indicator-size' of type `GtkRequisition' from rc file value "0" of type `glong'
Gtk-Message: /usr/share/themes/Xfce/gtk-2.0/gtkrc:47: failed to retrieve property `GtkOptionMenu::indicator-spacing' of type `GtkBorder' from rc file value "0" of type `glong'

HTH,
--
Yves-Alexis
Comment 1 Mike Massonnet editbugs 2010-03-26 14:56:27 CET
Created attachment 2905 
Remove deprecated GtkOptionMenu style properties
Comment 2 slack 2010-11-30 11:34:52 CET
Created attachment 3222 
gtkrc.diff

You are right, GtkOptionMenu has been deprecated in favor of GtkComboBox.
But this does not mean it should not be fixed in a more complete way :-)

The error message indicates that both properties ARE(!) known but they are of a different data type.

"GtkOptionMenu::indicator-size" is of type "GtkRequisition" <http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkRequisition>:

typedef struct {
  gint width;
  gint height;
} GtkRequisition;


"GtkOptionMenu::indicator-spacing" is of type "GtkBorder" <http://library.gnome.org/devel/gtk/stable/GtkStyle.html#GtkBorder>:

typedef struct {
  gint16 left;
  gint16 right;
  gint16 top;
  gint16 bottom;
} GtkBorder;

For reference I have attached a small patch...

Bye
Comment 3 Olivier Fourdan editbugs 2010-12-03 13:31:18 CET
fixed in git master

Bug #5985

Reported by:
Yves-Alexis Perez
Reported on: 2009-11-15
Last modified on: 2012-04-08

People

Assignee:
Olivier Fourdan
CC List:
2 users

Version

Attachments

Remove deprecated GtkOptionMenu style properties (859 bytes, patch)
2010-03-26 14:56 CET , Mike Massonnet
no flags
gtkrc.diff (542 bytes, patch)
2010-11-30 11:34 CET , slack
no flags

Additional information