]> git.sur5r.net Git - glabels/commitdiff
2005-12-20 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Wed, 21 Dec 2005 02:12:08 +0000 (02:12 +0000)
committerJim Evins <evins@snaught.com>
Wed, 21 Dec 2005 02:12:08 +0000 (02:12 +0000)
* src/Makefile.am:
Define unique G_LOG_DOMAIN for glabels.
* src/critical-error-handler.c: (gl_critical_error_handler_init):
* src/warning-handler.c: (gl_warning_handler_init),
(warning_handler):
Register for G_LOG_DOMAIN instead of NULL.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@566 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/Makefile.am
glabels2/src/critical-error-handler.c
glabels2/src/warning-handler.c

index bc1cc7335632fb6dcf374e2bc2c00c7917183dfd..94b447e231167114040918355a3bab095fdd0df4 100644 (file)
@@ -1,3 +1,12 @@
+2005-12-20  Jim Evins  <evins@snaught.com>
+
+       * src/Makefile.am:
+               Define unique G_LOG_DOMAIN for glabels.
+       * src/critical-error-handler.c: (gl_critical_error_handler_init):
+       * src/warning-handler.c: (gl_warning_handler_init),
+       (warning_handler):
+               Register for G_LOG_DOMAIN instead of NULL.
+       
 2005-12-10  Jim Evins  <evins@snaught.com>
 
        * src/merge-evolution.c:
index 7b2ee4f9bae3b5b7f4274a612c3719b8c2c11902..23b729fad683a70057c52aa913a48714ac7d73e3 100644 (file)
@@ -15,6 +15,7 @@ INCLUDES = \
        -DLIBDIR=\""$(libdir)"\"                                \
        -DGLABELS_LOCALEDIR=\""$(datadir)/locale"\"             \
        -DGLABELS_GLADE_DIR=\""$(datadir)/glabels/glade/"\"     \
+       -DG_LOG_DOMAIN=\""glabels\""                            \
        $(DISABLE_DEPRECATED_CFLAGS)
 
 glabels_LDFLAGS = -export-dynamic
index 21b2c50978dd387524f4cfa0b63b510ccfafbcc3..c35c4e17c5b865bdb1fce5af4e88cec803c2eb6b 100644 (file)
@@ -49,7 +49,7 @@ gl_critical_error_handler_init (void)
                            critical_error_handler,
                            "libglabels");
 
-        g_log_set_handler (NULL,
+        g_log_set_handler (G_LOG_DOMAIN,
                            G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
                            critical_error_handler,
                            "glabels");
index 6a9e9ee9e5505bcbdd3880c99d3c426431cfd8bf..caa8b1f9b17f6e806f9409fc270d33ceda3e56ee 100644 (file)
@@ -49,7 +49,7 @@ gl_warning_handler_init (void)
                            warning_handler,
                            "libglabels");
 
-        g_log_set_handler (NULL,
+        g_log_set_handler (G_LOG_DOMAIN,
                            G_LOG_LEVEL_WARNING,
                            warning_handler,
                            "glabels");
@@ -68,12 +68,14 @@ warning_handler (const gchar    *log_domain,
 
         dialog = gtk_message_dialog_new (NULL,
                                          GTK_DIALOG_MODAL,
-                                         GTK_MESSAGE_ERROR,
+                                         GTK_MESSAGE_WARNING,
                                          GTK_BUTTONS_CLOSE,
                                          _("gLabels Error!"));
         gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
                                                   message);
 
         gtk_dialog_run (GTK_DIALOG (dialog));
+
+       gtk_widget_destroy (GTK_WIDGET (dialog));
 }