anjuta r3476 - in trunk: . libanjuta
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3476 - in trunk: . libanjuta
- Date: Wed, 16 Jan 2008 13:31:54 +0000 (GMT)
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 <jhs gnome org>
* 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]