[Xfce4-commits] <xfwm4:master> Scroll to the current theme when launching the dialog.
Jérôme Guelfucci
noreply at xfce.org
Fri Mar 5 10:56:08 CET 2010
Updating branch refs/heads/master
to 4f7a589a284799cae1c79c4eccb002195c73ef7b (commit)
from 5a3fea279bcc75c5f09887cc2bd4f2f2f4101c48 (commit)
commit 4f7a589a284799cae1c79c4eccb002195c73ef7b
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Sun Feb 28 12:46:43 2010 +0100
Scroll to the current theme when launching the dialog.
settings-dialogs/xfwm4-settings.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/settings-dialogs/xfwm4-settings.c b/settings-dialogs/xfwm4-settings.c
index a64f9e6..120a226 100644
--- a/settings-dialogs/xfwm4-settings.c
+++ b/settings-dialogs/xfwm4-settings.c
@@ -878,8 +878,13 @@ xfwm_settings_load_themes (XfwmSettings *settings)
if (G_UNLIKELY (g_str_equal (active_theme_name, file)))
{
+ GtkTreePath *path = gtk_tree_model_get_path (model, &iter);
+
gtk_tree_selection_select_iter (gtk_tree_view_get_selection (GTK_TREE_VIEW (view)),
&iter);
+ gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (view), path, NULL, TRUE, 0.5, 0.5);
+
+ gtk_tree_path_free (path);
}
}
More information about the Xfce4-commits
mailing list