summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-04 20:44:33 +0300
committermonsta <[email protected]>2016-01-04 20:44:33 +0300
commit073e20094ef5ca4ef88785066ae62a475df34aaa (patch)
tree3041bcb38f46eb9ee4afab035170f993b33d6641
parentc792f2a96b1383e37616733a0ed1454da008fa33 (diff)
downloadmate-panel-073e20094ef5ca4ef88785066ae62a475df34aaa.tar.bz2
mate-panel-073e20094ef5ca4ef88785066ae62a475df34aaa.tar.xz
background: even less #if's
-rw-r--r--mate-panel/panel-widget.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index 1af520bf..f6333479 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1677,18 +1677,18 @@ panel_widget_style_set (GtkWidget *widget, GtkStyle *previous_style)
}
#endif
-static void
#if GTK_CHECK_VERSION (3, 0, 0)
+static void
panel_widget_style_updated (GtkWidget *widget)
-#else
-panel_widget_state_changed (GtkWidget *widget,
- GtkStateType previous_state)
-#endif
{
-#if GTK_CHECK_VERSION (3, 0, 0)
GTK_WIDGET_CLASS (panel_widget_parent_class)->style_updated (widget);
panel_widget_set_background_default_style (widget);
+}
#else
+static void
+panel_widget_state_changed (GtkWidget *widget,
+ GtkStateType previous_state)
+{
GtkStyle *style;
GtkStateType state;
@@ -1701,8 +1701,8 @@ panel_widget_state_changed (GtkWidget *widget,
&style->bg [state],
style->bg_pixmap [state]);
}
-#endif
}
+#endif
#if GTK_CHECK_VERSION (3, 0, 0)
static void