gnome-mud r761 - in trunk: . src



Author: lharris
Date: Fri Feb 27 13:28:18 2009
New Revision: 761
URL: http://svn.gnome.org/viewvc/gnome-mud?rev=761&view=rev

Log:
PreferenceWindow now opens to default func pane.


Modified:
   trunk/ChangeLog
   trunk/src/mud-preferences-window.c

Modified: trunk/src/mud-preferences-window.c
==============================================================================
--- trunk/src/mud-preferences-window.c	(original)
+++ trunk/src/mud-preferences-window.c	Fri Feb 27 13:28:18 2009
@@ -499,6 +499,7 @@
     GtkCellRenderer *renderer;
     GtkTreeViewColumn *column;
     GtkTreeSelection *selection;
+    GtkTreePath *path;
 
     store = gtk_tree_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_INT);
     gtk_tree_view_set_model(GTK_TREE_VIEW(window->priv->treeview), GTK_TREE_MODEL(store));
@@ -571,6 +572,9 @@
     gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
     g_signal_connect(G_OBJECT(selection), "changed",
             G_CALLBACK(mud_preferences_window_tree_selection_cb), window);
+
+    path = gtk_tree_path_new_first();
+    gtk_tree_selection_select_path(selection, path);
 }
 
 gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]