[gimp] app: reorder edit_fade_cmd_callback() in edit-commands.c



commit b092a80e518b4fb114b6415e3c786c55894baf22
Author: Michael Natterer <mitch gimp org>
Date:   Sat Sep 17 19:45:45 2016 +0200

    app: reorder edit_fade_cmd_callback() in edit-commands.c
    
    and group the prototypes in edit-commands.h

 app/actions/edit-commands.c |   42 +++++++++++++++++++++---------------------
 app/actions/edit-commands.h |    5 +++++
 2 files changed, 26 insertions(+), 21 deletions(-)
---
diff --git a/app/actions/edit-commands.c b/app/actions/edit-commands.c
index 3a6e94a..3d69e99 100644
--- a/app/actions/edit-commands.c
+++ b/app/actions/edit-commands.c
@@ -203,6 +203,27 @@ edit_undo_clear_cmd_callback (GtkAction *action,
 }
 
 void
+edit_fade_cmd_callback (GtkAction *action,
+                        gpointer   data)
+{
+  GimpImage *image;
+  GtkWidget *widget;
+  GtkWidget *dialog;
+  return_if_no_image (image, data);
+  return_if_no_widget (widget, data);
+
+  dialog = fade_dialog_new (image, widget);
+
+  if (dialog)
+    {
+      g_signal_connect_object (image, "disconnect",
+                               G_CALLBACK (gtk_widget_destroy),
+                               dialog, G_CONNECT_SWAPPED);
+      gtk_widget_show (dialog);
+    }
+}
+
+void
 edit_cut_cmd_callback (GtkAction *action,
                        gpointer   data)
 {
@@ -402,27 +423,6 @@ edit_named_cut_cmd_callback (GtkAction *action,
 }
 
 void
-edit_fade_cmd_callback (GtkAction *action,
-                        gpointer   data)
-{
-  GimpImage *image;
-  GtkWidget *widget;
-  GtkWidget *dialog;
-  return_if_no_image (image, data);
-  return_if_no_widget (widget, data);
-
-  dialog = fade_dialog_new (image, widget);
-
-  if (dialog)
-    {
-      g_signal_connect_object (image, "disconnect",
-                               G_CALLBACK (gtk_widget_destroy),
-                               dialog, G_CONNECT_SWAPPED);
-      gtk_widget_show (dialog);
-    }
-}
-
-void
 edit_named_copy_cmd_callback (GtkAction *action,
                               gpointer   data)
 {
diff --git a/app/actions/edit-commands.h b/app/actions/edit-commands.h
index 8c50824..dc6e0f1 100644
--- a/app/actions/edit-commands.h
+++ b/app/actions/edit-commands.h
@@ -29,14 +29,17 @@ void   edit_strong_redo_cmd_callback        (GtkAction *action,
                                              gpointer   data);
 void   edit_undo_clear_cmd_callback         (GtkAction *action,
                                              gpointer   data);
+
 void   edit_fade_cmd_callback               (GtkAction *action,
                                              gpointer   data);
+
 void   edit_cut_cmd_callback                (GtkAction *action,
                                              gpointer   data);
 void   edit_copy_cmd_callback               (GtkAction *action,
                                              gpointer   data);
 void   edit_copy_visible_cmd_callback       (GtkAction *action,
                                              gpointer   data);
+
 void   edit_paste_cmd_callback              (GtkAction *action,
                                              gpointer   data);
 void   edit_paste_into_cmd_callback         (GtkAction *action,
@@ -45,6 +48,7 @@ void   edit_paste_as_new_cmd_callback       (GtkAction *action,
                                              gpointer   data);
 void   edit_paste_as_new_layer_cmd_callback (GtkAction *action,
                                              gpointer   data);
+
 void   edit_named_cut_cmd_callback          (GtkAction *action,
                                              gpointer   data);
 void   edit_named_copy_cmd_callback         (GtkAction *action,
@@ -53,6 +57,7 @@ void   edit_named_copy_visible_cmd_callback (GtkAction *action,
                                              gpointer   data);
 void   edit_named_paste_cmd_callback        (GtkAction *action,
                                              gpointer   data);
+
 void   edit_clear_cmd_callback              (GtkAction *action,
                                              gpointer   data);
 void   edit_fill_cmd_callback               (GtkAction *action,


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