summaryrefslogtreecommitdiffstats
path: root/compiz-fusion/emerald/gtk2.20.patch
diff options
context:
space:
mode:
Diffstat (limited to 'compiz-fusion/emerald/gtk2.20.patch')
-rw-r--r--compiz-fusion/emerald/gtk2.20.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/compiz-fusion/emerald/gtk2.20.patch b/compiz-fusion/emerald/gtk2.20.patch
new file mode 100644
index 0000000000..5da5e12e0e
--- /dev/null
+++ b/compiz-fusion/emerald/gtk2.20.patch
@@ -0,0 +1,34 @@
+# From http://bugs.gentoo.org/show_bug.cgi?id=308791
+diff -urN emerald-0.8.4/libengine/themer.c emerald-0.8.4.new/libengine/themer.c
+--- emerald-0.8.4/libengine/themer.c 2009-10-13 20:56:23.000000000 -0400
++++ emerald-0.8.4.new/libengine/themer.c 2010-03-10 01:20:03.046827674 -0500
+@@ -461,7 +461,7 @@
+ }
+ gdouble get_float(SettingItem * item)
+ {
+- if(!strcmp(GTK_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
++ if(!strcmp(G_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
+ return gtk_spin_button_get_value((GtkSpinButton *)item->widget);
+ }
+ else {
+@@ -647,7 +647,7 @@
+ }
+ void set_float(SettingItem * item, gdouble f)
+ {
+- if(!strcmp(GTK_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
++ if(!strcmp(G_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
+ gtk_spin_button_set_value((GtkSpinButton *)item->widget, f);
+ }
+ else {
+--- emerald-0.8.4/src/main.c.old 2010-03-29 19:49:30.420710030 -0700
++++ emerald-0.8.4/src/main.c 2010-03-29 19:52:33.654024944 -0700
+@@ -3757,7 +3757,7 @@
+
+ static void hide_tooltip(void)
+ {
+- if (GTK_WIDGET_VISIBLE(tip_window))
++ if (gtk_widget_get_visible(tip_window))
+ g_get_current_time(&tooltip_last_popdown);
+
+ gtk_widget_hide(tip_window);
+