aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-10-31 05:23:17 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-10-31 05:23:17 +0800
commit9c9e85d286fe61ed11e457c737bd26e2732119ab (patch)
tree679122ee40dab37e58709ebbcb1abf995331a11e /widgets/misc
parent80e6c5adad4e89846c004efb2029d4db9ec2e64f (diff)
downloadgsoc2013-evolution-9c9e85d286fe61ed11e457c737bd26e2732119ab.tar.gz
gsoc2013-evolution-9c9e85d286fe61ed11e457c737bd26e2732119ab.tar.zst
gsoc2013-evolution-9c9e85d286fe61ed11e457c737bd26e2732119ab.zip
Secondary checkout spotted a compilation issue.
Select the first Preferences page when the window is shown. svn path=/branches/kill-bonobo/; revision=36702
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-preferences-window.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/widgets/misc/e-preferences-window.c b/widgets/misc/e-preferences-window.c
index 1235ebbad8..ecdbee1402 100644
--- a/widgets/misc/e-preferences-window.c
+++ b/widgets/misc/e-preferences-window.c
@@ -154,9 +154,18 @@ static void
preferences_window_show (GtkWidget *widget)
{
EPreferencesWindowPrivate *priv;
+ GtkIconView *icon_view;
+ GtkTreePath *path;
priv = E_PREFERENCES_WINDOW_GET_PRIVATE (widget);
+ icon_view = GTK_ICON_VIEW (priv->icon_view);
+
+ path = gtk_tree_path_new_first ();
+ gtk_icon_view_select_path (icon_view, path);
+ gtk_icon_view_scroll_to_path (icon_view, path, FALSE, 0.0, 0.0);
+ gtk_tree_path_free (path);
+
gtk_widget_grab_focus (priv->icon_view);
/* Chain up to parent's show() method. */
@@ -360,9 +369,6 @@ e_preferences_window_add_page (EPreferencesWindow *window,
gtk_widget_show (widget);
gtk_notebook_append_page (notebook, widget, NULL);
-
- if (page == 0)
- e_preferences_window_show_page (window, page_name);
}
void