summarylogtreecommitdiffstats
path: root/deprecated_macros.patch
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated_macros.patch')
-rw-r--r--deprecated_macros.patch100
1 files changed, 100 insertions, 0 deletions
diff --git a/deprecated_macros.patch b/deprecated_macros.patch
new file mode 100644
index 000000000000..afd7c1152b9a
--- /dev/null
+++ b/deprecated_macros.patch
@@ -0,0 +1,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))))