summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Wauthy <pollux@xfce.org>2007-12-15 16:35:01 +0000
committerJean-François Wauthy <pollux@xfce.org>2007-12-15 16:35:01 +0000
commit1373a5e4cd7207f4dab89aa713cd744cb9ff5310 (patch)
treeefe07a6cd54cd41eb38f5bd454c05c9765977106
parentb49d87d88cc66b7199d7a3b07a8f095e10b61f0c (diff)
downloadxfdesktop-1373a5e4cd7207f4dab89aa713cd744cb9ff5310.tar.gz
force the menueditor to stop with a message if treestore could not be initialized (related to bug #3747)
(Old svn revision: 26480)
-rw-r--r--menueditor/menueditor-main-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/menueditor/menueditor-main-window.c b/menueditor/menueditor-main-window.c
index 82950c62..a72749dd 100644
--- a/menueditor/menueditor-main-window.c
+++ b/menueditor/menueditor-main-window.c
@@ -312,6 +312,9 @@ menueditor_main_window_init (MenuEditorMainWindow * mainwin)
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);