[Xfce4-commits] <libxfce4ui:stephan/gtk3> Improve indent-errors.

Stephan Arts noreply at xfce.org
Fri May 4 21:48:01 CEST 2012


Updating branch refs/heads/stephan/gtk3
         to 1cc5ff252449165ba3f3cbcc9d78feb6943ca137 (commit)
       from d686611f0f96121033d573cdeca87c3b4cb5b0b1 (commit)

commit 1cc5ff252449165ba3f3cbcc9d78feb6943ca137
Author: Stephan Arts <stephan at xfce.org>
Date:   Fri May 4 21:45:15 2012 +0200

    Improve indent-errors.

 libxfce4ui/xfce-heading.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/libxfce4ui/xfce-heading.c b/libxfce4ui/xfce-heading.c
index 5accff3..42f7d70 100644
--- a/libxfce4ui/xfce-heading.c
+++ b/libxfce4ui/xfce-heading.c
@@ -240,7 +240,7 @@ _xfce_heading_style_updated (GtkWidget *widget)
   GtkStyleContext  *style_context = NULL;
 
   /* check if we're already realized */
-  if (gtk_widget_get_realized(widget))
+  if (gtk_widget_get_realized (widget))
     {
       style_context = gtk_widget_get_style_context (widget);
 
@@ -284,10 +284,9 @@ _xfce_heading_draw (GtkWidget      *widget,
 
   gdk_cairo_set_source_rgba (ctx, &bg_color);
 
-  cairo_rectangle (
-        ctx,
-        0.0, 0.0,
-        allocation.width, allocation.height);
+  cairo_rectangle ( ctx,
+                    0.0, 0.0,
+                    allocation.width, allocation.height);
   cairo_paint (ctx);
 
   cairo_save (ctx);
@@ -303,14 +302,14 @@ _xfce_heading_draw (GtkWidget      *widget,
       /* determine the vertical position */
       y = (allocation.height - height) / 2;
 
-      cairo_translate ( ctx,
-                        rtl ? x - width : x,
-                        y );
+      cairo_translate (ctx,
+                       rtl ? x - width : x,
+                       y);
 
       gdk_cairo_set_source_pixbuf (ctx,
                                    pixbuf,
                                    0.0,
-                                   0.0 );
+                                   0.0);
       cairo_paint ( ctx );
 
       /* release the pixbuf */
@@ -319,6 +318,7 @@ _xfce_heading_draw (GtkWidget      *widget,
       /* advance the horizontal position */
       x += (rtl ? -1 : 1) * (width + XFCE_HEADING_SPACING);
     }
+
   cairo_restore (ctx);
 
   /* generate the title layout */
@@ -329,9 +329,9 @@ _xfce_heading_draw (GtkWidget      *widget,
   y = (allocation.height - height) / 2;
 
   /* render the title */
-  cairo_move_to ( ctx,
-                  rtl ? x - width : x,
-                  y );
+  cairo_move_to (ctx,
+                 rtl ? x - width : x,
+                 y);
 
   pango_cairo_update_layout (ctx, layout);
   gdk_cairo_set_source_rgba (ctx, &text_color);


More information about the Xfce4-commits mailing list