* 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
+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:
-DLIBDIR=\""$(libdir)"\" \
-DGLABELS_LOCALEDIR=\""$(datadir)/locale"\" \
-DGLABELS_GLADE_DIR=\""$(datadir)/glabels/glade/"\" \
+ -DG_LOG_DOMAIN=\""glabels\"" \
$(DISABLE_DEPRECATED_CFLAGS)
glabels_LDFLAGS = -export-dynamic
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");
warning_handler,
"libglabels");
- g_log_set_handler (NULL,
+ g_log_set_handler (G_LOG_DOMAIN,
G_LOG_LEVEL_WARNING,
warning_handler,
"glabels");
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));
}