[Xfce4-commits] <postler:master> Determine whether button is in the masked, not equal

Christian Dywan noreply at xfce.org
Fri Aug 13 02:56:04 CEST 2010


Updating branch refs/heads/master
         to 5fce5a90a82ac2d2fccb3003b9b6b08fbd096e07 (commit)
       from 15ad7bb06de1f6b120fb4123b1f8419e66ebfa4a (commit)

commit 5fce5a90a82ac2d2fccb3003b9b6b08fbd096e07
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Aug 7 16:12:53 2010 +0200

    Determine whether button is in the masked, not equal

 postler/postler-messages.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 4ce2e0e..0500e64 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -785,7 +785,7 @@ public class Postler.Messages : Gtk.TreeView {
     }
 
     override bool button_release_event (Gdk.EventButton event) {
-        if (event.state != Gdk.ModifierType.BUTTON1_MASK)
+        if ((event.state & Gdk.ModifierType.BUTTON1_MASK) == 0)
             return base.button_release_event (event);
 
         GLib.List<Gtk.TreePath> paths = get_selection ().get_selected_rows (null);



More information about the Xfce4-commits mailing list