summaryrefslogtreecommitdiffstats
path: root/x11-themes/gtk-engines2/files/patch-engines_crux_src_crux-draw.c
blob: 371abad8e669736f92173973a6643be00ced0866 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- engines/crux/src/crux-draw.c.orig   Wed Aug 24 12:45:47 2005
+++ engines/crux/src/crux-draw.c    Wed Aug 24 12:46:08 2005
@@ -2323,6 +2323,8 @@ draw_extension (GtkStyle *style,
     GdkRectangle rect;
 
     eazel_theme_data *theme_data;
+    GtkWidget* parent_widget;
+    gint relative_x;
 
     g_return_if_fail (style != NULL);
     g_return_if_fail (window != NULL);
@@ -2334,8 +2336,6 @@ draw_extension (GtkStyle *style,
        detail, state_type, shadow_type, x, y, width, height);
 
    /* Get x relative to parent widget, not window */
-   GtkWidget* parent_widget;
-   gint relative_x;
    if (widget != NULL)
    {
        parent_widget = gtk_widget_get_parent(widget);