[gimp] libgimp: some random minor cleanups



commit a74f4de81ec0176a4344a465ee9733abb59bf7d4
Author: Michael Natterer <mitch gimp org>
Date:   Sun Aug 4 23:02:42 2019 +0200

    libgimp: some random minor cleanups

 libgimp/gimp.c             | 2 +-
 libgimp/gimpselectbutton.c | 2 --
 libgimp/gimpselectbutton.h | 2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libgimp/gimp.c b/libgimp/gimp.c
index 357ff269f3..f2013a730e 100644
--- a/libgimp/gimp.c
+++ b/libgimp/gimp.c
@@ -270,7 +270,6 @@ gimp_main_internal (GType                 plug_in_type,
 
   gchar       *basename;
   const gchar *env_string;
-  gchar       *debug_string;
   gint         protocol_version;
 
 #ifdef G_OS_WIN32
@@ -461,6 +460,7 @@ gimp_main_internal (GType                 plug_in_type,
 
   if (env_string)
     {
+      gchar       *debug_string;
       const gchar *debug_messages;
 
       debug_string = strchr (env_string, ',');
diff --git a/libgimp/gimpselectbutton.c b/libgimp/gimpselectbutton.c
index 87258233cf..36ca90c52d 100644
--- a/libgimp/gimpselectbutton.c
+++ b/libgimp/gimpselectbutton.c
@@ -60,8 +60,6 @@ gimp_select_button_init (GimpSelectButton *select_button)
 {
   gtk_orientable_set_orientation (GTK_ORIENTABLE (select_button),
                                   GTK_ORIENTATION_HORIZONTAL);
-
-  select_button->temp_callback = NULL;
 }
 
 static void
diff --git a/libgimp/gimpselectbutton.h b/libgimp/gimpselectbutton.h
index 1727a1e61e..6b191f697d 100644
--- a/libgimp/gimpselectbutton.h
+++ b/libgimp/gimpselectbutton.h
@@ -57,7 +57,7 @@ struct _GimpSelectButtonClass
 
   gchar       *default_title;
 
-  void (*select_destroy) (const gchar *callback);
+  void (* select_destroy) (const gchar *callback);
 
   /* Padding for future expansion */
   void (*_gimp_reserved1) (void);


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