[Xfce4-commits] r23909 - xarchiver/branches/xarchiver-psybsd/src
Stephan Arts
stephan at xfce.org
Mon Nov 20 15:10:21 CET 2006
Author: stephan
Date: 2006-11-20 14:10:20 +0000 (Mon, 20 Nov 2006)
New Revision: 23909
Modified:
xarchiver/branches/xarchiver-psybsd/src/notebook.c
Log:
Fixed segfault (really)
Modified: xarchiver/branches/xarchiver-psybsd/src/notebook.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/notebook.c 2006-11-20 13:53:13 UTC (rev 23908)
+++ xarchiver/branches/xarchiver-psybsd/src/notebook.c 2006-11-20 14:10:20 UTC (rev 23909)
@@ -227,9 +227,9 @@
if(notebook->navigation_bar)
xa_navigation_bar_set_store(notebook->navigation_bar, NULL);
- gint page_nr = gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook));
- if(page_nr < 0)
+ if(gtk_notebook_get_n_pages(GTK_NOTEBOOK(notebook)))
{
+ gint page_nr = gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook));
GtkWidget *scrolledwindow = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook), page_nr);
GtkWidget *treeview = gtk_bin_get_child(GTK_BIN(scrolledwindow));
GtkTreeModel *archive_store = gtk_tree_view_get_model(GTK_TREE_VIEW(treeview));
More information about the Xfce4-commits
mailing list