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

This commit is contained in:
Michael Natterer
2018-04-28 02:17:55 +02:00
parent ee47a848eb
commit 8265b2425b

View File

@ -50,12 +50,10 @@
#include "gimp-intl.h" #include "gimp-intl.h"
#define MAX_TRACES 3 #define MAX_TRACES 3
#define MAX_ERRORS 10 #define MAX_ERRORS 10
static GMutex mutex;
static gint n_traces = 0;
static gint n_errors = 0;
typedef struct typedef struct
{ {
@ -89,10 +87,15 @@ static gchar * gui_message_format (GimpMessageSeverity severity,
static GtkWidget * global_error_dialog (void); static GtkWidget * global_error_dialog (void);
static GtkWidget * global_critical_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); gpointer user_data);
static GMutex mutex;
static gint n_traces = 0;
static gint n_errors = 0;
void void
gui_message (Gimp *gimp, gui_message (Gimp *gimp,
GObject *handler, GObject *handler,
@ -488,8 +491,8 @@ global_critical_dialog (void)
} }
static void static void
gui_message_reset_errors (GtkObject *object, gui_message_reset_errors (GObject *object,
gpointer user_data) gpointer user_data)
{ {
g_mutex_lock (&mutex); g_mutex_lock (&mutex);
n_errors = 0; n_errors = 0;