aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupavels <alberts.muktupavels@gmail.com>2014-11-29 13:56:19 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-10-27 17:02:38 +0100
commit4a5a14d5d5f1f5c55844480bfd428f93b33502ad (patch)
tree70bfd3d2b7fa5476ce0ac226d3ce890fd469ec6d
parentc8331a008b33e455ee13d3e74ad69c2cf4d752ac (diff)
downloadarctica-greeter-4a5a14d5d5f1f5c55844480bfd428f93b33502ad.tar.gz
arctica-greeter-4a5a14d5d5f1f5c55844480bfd428f93b33502ad.tar.bz2
arctica-greeter-4a5a14d5d5f1f5c55844480bfd428f93b33502ad.zip
Change event type when calling button press event in release event.
Ported to ArcticaGreeter: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-rw-r--r--src/flat-button.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flat-button.vala b/src/flat-button.vala
index e11647e..2dabe42 100644
--- a/src/flat-button.vala
+++ b/src/flat-button.vala
@@ -59,6 +59,7 @@ public class FlatButton : Gtk.Button
{
if (did_press)
{
+ event.type = Gdk.EventType.BUTTON_PRESS;
base.button_press_event (event); // fake an insta-click
did_press = false;
}