[Xfce4-commits] <postler:master> Unfocus search entry after clearing it
Christian Dywan
noreply at xfce.org
Wed Mar 2 00:16:01 CET 2011
Updating branch refs/heads/master
to 5839fd1d5fd26f18d3d0d797cd8bef0ea0011c88 (commit)
from bb72418fada3fded0faaa0732af27612f9195c4c (commit)
commit 5839fd1d5fd26f18d3d0d797cd8bef0ea0011c88
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date: Wed Mar 2 00:15:43 2011 +0100
Unfocus search entry after clearing it
Fixes: https://bugs.launchpad.net/postler/+bug/725694
postler/elementary-entry.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postler/elementary-entry.vala b/postler/elementary-entry.vala
index c5dab3d..585da58 100644
--- a/postler/elementary-entry.vala
+++ b/postler/elementary-entry.vala
@@ -186,10 +186,10 @@ public class SearchEntry : Entry {
private void icon_pressed (Gtk.EntryIconPosition icon_position) {
if (icon_position == Gtk.EntryIconPosition.SECONDARY) {
- this.is_searching = false;
this.text = "";
+ if (!is_focus)
+ this.hint ();
this.set_icon_from_stock(Gtk.EntryIconPosition.SECONDARY, null);
- this.is_searching = true;
}
else {
if (!this.is_focus && this.text == "") {
More information about the Xfce4-commits
mailing list