[gimp] app: s/GtkObject/GObject/ in gui-message.c, and minor reordering



commit 8265b2425b98ee0d16ad1771b83f23c874ec215e
Author: Michael Natterer <mitch gimp org>
Date:   Sat Apr 28 02:17:55 2018 +0200

    app: s/GtkObject/GObject/ in gui-message.c, and minor reordering

 app/gui/gui-message.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/app/gui/gui-message.c b/app/gui/gui-message.c
index 93b231c..8dbffd4 100644
--- a/app/gui/gui-message.c
+++ b/app/gui/gui-message.c
@@ -50,12 +50,10 @@
 
 #include "gimp-intl.h"
 
+
 #define MAX_TRACES 3
 #define MAX_ERRORS 10
 
-static GMutex mutex;
-static gint   n_traces = 0;
-static gint   n_errors = 0;
 
 typedef struct
 {
@@ -89,10 +87,15 @@ static gchar *   gui_message_format         (GimpMessageSeverity  severity,
 static GtkWidget * global_error_dialog      (void);
 static GtkWidget * global_critical_dialog   (void);
 
-static void        gui_message_reset_errors (GtkObject           *object,
+static void        gui_message_reset_errors (GObject             *object,
                                              gpointer             user_data);
 
 
+static GMutex mutex;
+static gint   n_traces = 0;
+static gint   n_errors = 0;
+
+
 void
 gui_message (Gimp                *gimp,
              GObject             *handler,
@@ -488,8 +491,8 @@ global_critical_dialog (void)
 }
 
 static void
-gui_message_reset_errors (GtkObject *object,
-                          gpointer   user_data)
+gui_message_reset_errors (GObject  *object,
+                          gpointer  user_data)
 {
   g_mutex_lock (&mutex);
   n_errors = 0;


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