Author: jhs
Date: Wed Jan 16 13:31:53 2008
New Revision: 3476
URL: http://svn.gnome.org/viewvc/anjuta?rev=3476&view=rev
Log:
2008-01-16 Johannes Schmid <[EMAIL PROTECTED]>
* libanjuta/anjuta-preferences-dialog.c:
(anjuta_preferences_dialog_add_page):
Fix #509864 – No initial section selected when opening the Preferences
dialog
Modified:
trunk/ChangeLog
trunk/libanjuta/anjuta-preferences-dialog.c
Modified: trunk/libanjuta/anjuta-preferences-dialog.c
==============================================================================
--- trunk/libanjuta/anjuta-preferences-dialog.c (original)
+++ trunk/libanjuta/anjuta-preferences-dialog.c Wed Jan 16 13:31:53 2008
@@ -261,7 +261,9 @@
GtkWidget *page)
{
GtkTreeIter iter;
-
+ GtkTreeSelection* selection =
+ gtk_tree_view_get_selection (GTK_TREE_VIEW
(dlg->priv->treeview));
+ GtkTreeIter first;
gtk_widget_show (page);
gtk_notebook_append_page (GTK_NOTEBOOK (dlg->priv->notebook), page,
NULL);
@@ -274,6 +276,10 @@
COL_PIXBUF, icon,
COL_WIDGET, page,
-1);
+
+ gtk_tree_model_get_iter_first (GTK_TREE_MODEL
(dlg->priv->store),
+
&first);
+ gtk_tree_selection_select_iter (selection, &first);
}
/**
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.