summaryrefslogtreecommitdiffstats
path: root/compiz-fusion/emerald/gtk2.20.patch
blob: 5da5e12e0e5328c82cb9cad0822a42a7ad7e013b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);