[gimp] app: a bit more cleanup, aligning variables.



commit 6962c6b6d6ee7d0f530291087a6425617af1abb7
Author: Jehan <jehan girinstud io>
Date:   Fri Dec 1 03:52:51 2017 +0100

    app: a bit more cleanup, aligning variables.

 app/gui/themes.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/app/gui/themes.c b/app/gui/themes.c
index 0cf68bc..6fa21ca 100644
--- a/app/gui/themes.c
+++ b/app/gui/themes.c
@@ -416,13 +416,12 @@ themes_draw_layout (GtkStyle      *style,
 
   if (state_type == GTK_STATE_INSENSITIVE)
     {
-      GdkGCValues orig;
-      GdkColor fore;
-      GdkGC *copy = gdk_gc_new (window);
-      guint16 r, g, b;
+      GdkGC       *copy = gdk_gc_new (window);
+      GdkGCValues  orig;
+      GdkColor     fore;
+      guint16      r, g, b;
 
       gdk_gc_copy (copy, gc);
-
       gdk_gc_get_values (gc, &orig);
 
       r = 0x40 + (((orig.foreground.pixel >> 16) & 0xff) >> 1);
@@ -435,7 +434,6 @@ themes_draw_layout (GtkStyle      *style,
       fore.blue  = b * 257;
 
       gdk_gc_set_foreground (copy, &fore);
-
       gdk_draw_layout (window, copy, x, y, layout);
 
       g_object_unref (copy);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]