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

Ján Sučan noreply at xfce.org
Tue Sep 17 01:44:01 CEST 2013


Updating branch refs/heads/master
         to e287bb91ab2e776766da7810de4cd3c6f2b6cff3 (commit)
       from 6ea4f47de894b5d39e9f839b3e1cbf4dfea6afb4 (commit)

commit e287bb91ab2e776766da7810de4cd3c6f2b6cff3
Author: Ján Sučan <sucan at runbox.com>
Date:   Tue Sep 17 01:42:33 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 9a5da55..c3b4f16 100644
--- a/panel-plugin/mailwatch-plugin.c
+++ b/panel-plugin/mailwatch-plugin.c
@@ -162,7 +162,7 @@ mailwatch_button_press_cb(GtkWidget *w,
                           GdkEventButton *evt,
                           gpointer user_data)
 {
-    if (evt->button == 2)
+    if (evt->button == MOUSE_BUTTON_MIDDLE)
         gtk_button_pressed(GTK_BUTTON(w));
     
     return FALSE;


More information about the Xfce4-commits mailing list