[Xfce4-commits] r26480 - xfdesktop/branches/xfce_4_4/menueditor
Jean-François Wauthy
pollux at xfce.org
Sat Dec 15 17:35:01 CET 2007
Author: pollux
Date: 2007-12-15 16:35:01 +0000 (Sat, 15 Dec 2007)
New Revision: 26480
Modified:
xfdesktop/branches/xfce_4_4/menueditor/menueditor-main-window.c
Log:
force the menueditor to stop with a message if treestore could not be initialized (related to bug #3747)
Modified: xfdesktop/branches/xfce_4_4/menueditor/menueditor-main-window.c
===================================================================
--- xfdesktop/branches/xfce_4_4/menueditor/menueditor-main-window.c 2007-12-14 13:55:15 UTC (rev 26479)
+++ xfdesktop/branches/xfce_4_4/menueditor/menueditor-main-window.c 2007-12-15 16:35:01 UTC (rev 26480)
@@ -312,6 +312,9 @@
treestore =
gtk_tree_store_new (COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_INT,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
+ if (G_UNLIKELY (!G_IS_OBJECT (treestore))) {
+ g_error ("Could not initialize the treestore");
+ }
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show (scrolledwindow);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
More information about the Xfce4-commits
mailing list