[uim-commit] r370 - trunk/helper
makeinu@freedesktop.org
makeinu@freedesktop.org
Thu Jan 27 18:07:54 PST 2005
Author: makeinu
Date: 2005-01-27 18:07:50 -0800 (Thu, 27 Jan 2005)
New Revision: 370
Modified:
trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c:
- (olist_pref_up_button_clicked_cb)
(olist_pref_down_button_clicked_cb):
Scroll the tree view on up or down buttons are pressed.
Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c 2005-01-28 01:43:05 UTC (rev 369)
+++ trunk/helper/pref-gtk.c 2005-01-28 02:07:50 UTC (rev 370)
@@ -801,6 +801,10 @@
goto ERROR;
gtk_list_store_swap(GTK_LIST_STORE(model), &iter1, &iter2);
+ path = gtk_tree_model_get_path(model, &iter1);
+ gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(view), path, NULL,
+ FALSE, 0.0, 0.0);
+ gtk_tree_path_free(path);
set_olist_buttons_sensitive(olist_entry);
olist_pref_entry_set_value(GTK_ENTRY(olist_entry));
@@ -865,6 +869,10 @@
/* sync the view */
gtk_list_store_swap(GTK_LIST_STORE(model), &iter1, &iter2);
+ path = gtk_tree_model_get_path(model, &iter1);
+ gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(view), path, NULL,
+ FALSE, 0.0, 0.0);
+ gtk_tree_path_free(path);
set_olist_buttons_sensitive(olist_entry);
olist_pref_entry_set_value(GTK_ENTRY(olist_entry));
More information about the Uim-commit
mailing list