[Xfce4-commits] <xfce4-mailwatch-plugin:master> Use identifiers instead of magic numbers

Ján Sučan noreply at xfce.org
Sun Sep 1 10:24:01 CEST 2013


Updating branch refs/heads/master
         to 7f30e1faac924e874ecac7a6b32c43ea9692cc00 (commit)
       from fc9c9f704b72c5741d3cce2a977b023b5e9a0449 (commit)

commit 7f30e1faac924e874ecac7a6b32c43ea9692cc00
Author: Ján Sučan <sucan at runbox.com>
Date:   Sun Sep 1 10:22:25 2013 +0200

    Use identifiers instead of magic numbers

 panel-plugin/mailwatch-plugin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugin/mailwatch-plugin.c b/panel-plugin/mailwatch-plugin.c
index b7920ae..f79b737 100644
--- a/panel-plugin/mailwatch-plugin.c
+++ b/panel-plugin/mailwatch-plugin.c
@@ -192,7 +192,7 @@ mailwatch_button_release_cb(GtkWidget *w, GdkEventButton *evt,
         }
     }
     
-    if(evt->button == 2)
+    if(evt->button == MOUSE_BUTTON_MIDDLE)
         gtk_button_released(GTK_BUTTON(w));
     
     return FALSE;


More information about the Xfce4-commits mailing list