[gimp] minor change to improve readability, formatting



commit 9738db7ca86dcc1546507ec86f54ff4e57cdefc5
Author: Sven Neumann <sven gimp org>
Date:   Sun May 17 11:00:46 2009 +0200

    minor change to improve readability, formatting
---
 app/actions/file-actions.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/app/actions/file-actions.c b/app/actions/file-actions.c
index 7617a35..7e4d738 100644
--- a/app/actions/file-actions.c
+++ b/app/actions/file-actions.c
@@ -246,11 +246,11 @@ file_actions_update (GimpActionGroup *group,
   gchar        *label     = NULL;
 
   if (image)
-    drawable = gimp_image_get_active_drawable (image);
-
-  export_to = (image ?
-               g_object_get_data (G_OBJECT (image),
-                                  GIMP_FILE_EXPORT_TO_URI_KEY) : NULL);
+    {
+      drawable  = gimp_image_get_active_drawable (image);
+      export_to = g_object_get_data (G_OBJECT (image),
+                                     GIMP_FILE_EXPORT_TO_URI_KEY);
+    }
 
 #define SET_SENSITIVE(action,condition) \
         gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
@@ -269,7 +269,7 @@ file_actions_update (GimpActionGroup *group,
       label = g_strdup_printf (_("Export to %s"),
                                file_utils_uri_display_basename (export_to));
       gimp_action_group_set_action_label (group, "file-export-to", label);
-      g_free(label);
+      g_free (label);
     }
   else
     {



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