From 9cadeb3d9bdc3f251c22e51fe79096fc5a932f90 Mon Sep 17 00:00:00 2001 From: Nick Schermer <nick@xfce.org> Date: Fri, 28 May 2010 17:49:36 +0200 Subject: [PATCH] Fix possible uninitialized variable. --- panel/panel-base-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c index ae515281f..ce569ee43 100644 --- a/panel/panel-base-window.c +++ b/panel/panel-base-window.c @@ -464,6 +464,9 @@ panel_base_window_expose_event (GtkWidget *widget, /* set rectangle to clip the drawing area */ gdk_cairo_rectangle (cr, &event->area); + /* get background alpha */ + alpha = window->is_composited ? window->background_alpha : 1.00; + if (window->background_style == PANEL_BG_STYLE_IMAGE) { /* clip the drawing area */ @@ -507,9 +510,6 @@ panel_base_window_expose_event (GtkWidget *widget, } else { - /* get background alpha */ - alpha = window->is_composited ? window->background_alpha : 1.00; - /* get the background color */ if (window->background_style == PANEL_BG_STYLE_COLOR) color = window->background_color; -- GitLab