[Xfce4-commits] <xfce4-panel:master> Fix possible uninitialized variable.

Nick Schermer noreply at xfce.org
Fri May 28 17:58:01 CEST 2010


Updating branch refs/heads/master
         to 9cadeb3d9bdc3f251c22e51fe79096fc5a932f90 (commit)
       from 64bc798f4e29f2d6d6641d017df4bdf63cbff80a (commit)

commit 9cadeb3d9bdc3f251c22e51fe79096fc5a932f90
Author: Nick Schermer <nick at xfce.org>
Date:   Fri May 28 17:49:36 2010 +0200

    Fix possible uninitialized variable.

 panel/panel-base-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index ae51528..ce569ee 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;



More information about the Xfce4-commits mailing list