summarylogtreecommitdiffstats
path: root/deprecated_macros.patch
blob: afd7c1152b9ac7ffe93d977491f3f131d42f6eea (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
diff -ru gtk-smooth-engine-0.6.0.1.orig/engines/gtk2/src/smooth_gtk2_drawing.c gtk-smooth-engine-0.6.0.1/engines/gtk2/src/smooth_gtk2_drawing.c
--- gtk-smooth-engine-0.6.0.1.orig/engines/gtk2/src/smooth_gtk2_drawing.c	2005-01-17 15:03:40.000000000 -0500
+++ gtk-smooth-engine-0.6.0.1/engines/gtk2/src/smooth_gtk2_drawing.c	2010-04-15 13:36:48.000000000 -0400
@@ -489,7 +489,7 @@
 
   g_object_set_data(G_OBJECT(get_combo_box_widget_parent(widget)), "button", widget);
 
-	if (GTK_WIDGET_HAS_FOCUS(widget))
+	if (gtk_widget_has_focus(widget))
 	{
 		gtk_widget_get_focus_props (widget, &focus_line_width, &focus_padding, &interior_focus);
 		if (!interior_focus)
@@ -503,7 +503,7 @@
 
 		for (child = children; child; child = child->next)
 		{
-			if (GTK_IS_ENTRY(child->data) && GTK_WIDGET_HAS_FOCUS(child->data))
+			if (GTK_IS_ENTRY(child->data) && gtk_widget_has_focus(child->data))
 			{
 				gtk_widget_get_focus_props (GTK_WIDGET(child->data), &focus_line_width, &focus_padding, &interior_focus);
 				
@@ -611,7 +611,7 @@
 				width + thick*2 + focus_padding*2, height - focus*2 + focus_padding*2);
         }
 
-      if (GTK_WIDGET_HAS_FOCUS(widget) && (!interior_focus))
+      if (gtk_widget_has_focus(widget) && (!interior_focus))
       {
         focus = -focus_padding;
       }
@@ -715,7 +715,7 @@
                                 width + thick*2 - focus + focus_padding*2, height - focus*2 + focus_padding*2);
         }
 
-      if (GTK_WIDGET_HAS_FOCUS(widget) && (!interior_focus))
+      if (gtk_widget_has_focus(widget) && (!interior_focus))
       {
         focus = -focus_padding;
       }
@@ -757,7 +757,7 @@
    * more complicated because we can only do half for each stepper.
    */
 
-  GtkStateType parent_state = GTK_WIDGET_STATE(widget);
+  GtkStateType parent_state = gtk_widget_get_state(widget);
   SmoothRectangle spin_area;
   smooth_part_style *part = NULL;
   SmoothInt thick = 2;
@@ -781,7 +781,7 @@
   else if (EDGE_LINE_STYLE(style, part) == SMOOTH_BEVEL_STYLE_ICED)
     thick = 1;
 
-	if (GTK_WIDGET_HAS_FOCUS(widget))
+	if (gtk_widget_has_focus(widget))
 	{
 		gtk_widget_get_focus_props (widget, &focus_line_width, &focus_padding, &interior_focus);
 		if (!interior_focus)
@@ -1084,7 +1084,7 @@
         /* per widget special drawing */ 
         if (CHECK_DETAIL(detail, "slider") || CHECK_DETAIL(detail, "smooth_slider"))
           smooth_draw_slider_grip(Canvas, style, state_type, X, Y, Width, Height, Horizontal);
-        else if (CHECK_DETAIL(detail, "button") && (smooth_button_default_triangle(style)) & GTK_WIDGET_HAS_DEFAULT (widget)) 
+        else if (CHECK_DETAIL(detail, "button") && (smooth_button_default_triangle(style)) & gtk_widget_has_default (widget)) 
 	{
 		/* Paint a triangle here instead of in "buttondefault"
 		 * which is drawn _behind_ the current button 
@@ -1710,7 +1710,7 @@
 	
    /* Paint a triangle here instead of in "buttondefault"
       which is drawn _behind_ the current button */
-   if (GTK_WIDGET_HAS_DEFAULT (widget)) {
+   if (gtk_widget_has_default (widget)) {
      gdk_draw_polygon(window, style->dark_gc[state_type], FALSE, points1, 3);
      gdk_draw_polygon(window, style->light_gc[state_type], FALSE, points2, 3);
      gdk_draw_polygon(window, style->bg_gc[GTK_STATE_SELECTED], TRUE, points2, 3);
diff -ru gtk-smooth-engine-0.6.0.1.orig/engines/gtk2/src/smooth_gtk2_misc.c gtk-smooth-engine-0.6.0.1/engines/gtk2/src/smooth_gtk2_misc.c
--- gtk-smooth-engine-0.6.0.1.orig/engines/gtk2/src/smooth_gtk2_misc.c	2005-01-17 15:03:40.000000000 -0500
+++ gtk-smooth-engine-0.6.0.1/engines/gtk2/src/smooth_gtk2_misc.c	2010-04-15 13:34:15.000000000 -0400
@@ -269,10 +269,10 @@
 {
   g_return_val_if_fail(GTK_IS_WIDGET(widget), NULL);
 
-  while (widget && widget->parent && !g_type_is_a(GTK_WIDGET_TYPE(widget->parent), GTK_TYPE_NOTEBOOK))
+  while (widget && widget->parent && !g_type_is_a(G_OBJECT_TYPE(widget->parent), GTK_TYPE_NOTEBOOK))
     widget = widget->parent;
 
-  if (!(widget && widget->parent && g_type_is_a(GTK_WIDGET_TYPE(widget->parent), GTK_TYPE_NOTEBOOK)))
+  if (!(widget && widget->parent && g_type_is_a(G_OBJECT_TYPE(widget->parent), GTK_TYPE_NOTEBOOK)))
     return NULL;
       
 
@@ -580,7 +580,7 @@
 {
 	gboolean result = TRUE;
 
-	while ((widget) && (!GTK_WIDGET_TOPLEVEL(widget)))
+	while ((widget) && (!gtk_widget_is_toplevel(widget)))
 		widget = widget->parent;
 
 	if ((widget) && GTK_IS_WINDOW(widget) && (gtk_window_get_decorated(GTK_WINDOW(widget))))