diff options
-rw-r--r-- | mate-panel/panel-background.c | 33 |
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) |