summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-04 21:29:23 +0300
committermonsta <[email protected]>2016-01-04 21:29:23 +0300
commit041af0b217f2fb7493a03ff3831747a1927d777f (patch)
treeb9d4aa5b9abc6d6bf35b1f9bdde9e64c968eb696
parent4c44f5043c32cfc9025e1439fd2efd59c92716cc (diff)
downloadmate-panel-041af0b217f2fb7493a03ff3831747a1927d777f.tar.bz2
mate-panel-041af0b217f2fb7493a03ff3831747a1927d777f.tar.xz
background: oops... fix build breakage from last commit (GTK+2 only)
-rw-r--r--mate-panel/panel-background.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index d523ab25..91d62be0 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -1412,24 +1412,7 @@ panel_background_set_no_background_on_widget (PanelBackground *background,
}
static void
-panel_background_set_color_background_on_widget (PanelBackground *background,
- GtkWidget *widget)
-{
- const PanelColor *color;
-
- color = panel_background_get_color (background);
- if (color->alpha != 0xffff) {
- panel_background_set_image_background_on_widget (background,
- widget);
- return;
- }
-
- gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, &color->gdk);
-}
-
-static void
panel_background_set_image_background_on_widget (PanelBackground *background,
-
GtkWidget *widget)
{
GtkAllocation allocation;
@@ -1472,6 +1455,22 @@ panel_background_set_image_background_on_widget (PanelBackground *background,
g_object_unref (pixmap);
}
+static void
+panel_background_set_color_background_on_widget (PanelBackground *background,
+ GtkWidget *widget)
+{
+ const PanelColor *color;
+
+ color = panel_background_get_color (background);
+ if (color->alpha != 0xffff) {
+ panel_background_set_image_background_on_widget (background,
+ widget);
+ return;
+ }
+
+ gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, &color->gdk);
+}
+
void
panel_background_change_background_on_widget (PanelBackground *background,
GtkWidget *widget)