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); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits