[Xfce4-commits] <postler:master> Ensure that the selected message is visible
Christian Dywan
noreply at xfce.org
Fri Jan 21 17:28:02 CET 2011
Updating branch refs/heads/master
to 0e4eea651166f1addf4a67a729c6730a14b34ffa (commit)
from aacc820a617892687eb10b3b74c2bab9e9ce48be (commit)
commit 0e4eea651166f1addf4a67a729c6730a14b34ffa
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Jan 20 19:22:51 2011 +0100
Ensure that the selected message is visible
postler/postler-messages.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 720f010..e76f085 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -56,6 +56,12 @@ public class Postler.Messages : Gtk.TreeView {
string location;
sort.get (sort_iter, Columns.LOCATION, out location);
selected_location = location;
+ /* Ensure that the selection is visible, in case of resizing */
+ GLib.Idle.add (() => {
+ var path = sort.get_path (sort_iter);
+ scroll_to_cell (path, null, false, 0, 0);
+ return false;
+ });
} else
selected_location = null;
}
More information about the Xfce4-commits
mailing list