[egg-list-box] Use GDK_BUTTON_PRIMARY
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [egg-list-box] Use GDK_BUTTON_PRIMARY
- Date: Fri, 22 Feb 2013 06:28:15 +0000 (UTC)
commit 6f1b3c13d724cb7744c2ed54e384aaa6dc17e1eb
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 20 20:24:21 2013 -0500
Use GDK_BUTTON_PRIMARY
Use the constant provided by GDK, instead of hardcoding
button 1.
egg-flow-box.c | 4 ++--
egg-list-box.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/egg-flow-box.c b/egg-flow-box.c
index f8a9699..1a87525 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -2162,7 +2162,7 @@ egg_flow_box_real_button_press_event (GtkWidget *widget,
EggFlowBox *box = EGG_FLOW_BOX (widget);
EggFlowBoxPrivate *priv = box->priv;
- if (event->button == 1)
+ if (event->button == GDK_BUTTON_PRIMARY)
{
EggFlowBoxChildInfo *child_info;
child_info = egg_flow_box_find_child_at_pos (box, event->x, event->y);
@@ -2305,7 +2305,7 @@ egg_flow_box_real_button_release_event (GtkWidget *widget,
EggFlowBox *box = EGG_FLOW_BOX (widget);
EggFlowBoxPrivate *priv = box->priv;
- if (event->button == 1)
+ if (event->button == GDK_BUTTON_PRIMARY)
{
if (priv->active_child != NULL &&
priv->active_child_active)
diff --git a/egg-list-box.c b/egg-list-box.c
index 8e0d8a9..2e9f56e 100644
--- a/egg-list-box.c
+++ b/egg-list-box.c
@@ -944,7 +944,7 @@ egg_list_box_real_button_press_event (GtkWidget *widget,
EggListBox *list_box = EGG_LIST_BOX (widget);
EggListBoxPrivate *priv = list_box->priv;
- if (event->button == 1)
+ if (event->button == GDK_BUTTON_PRIMARY)
{
EggListBoxChildInfo *child;
child = egg_list_box_find_child_at_y (list_box, event->y);
@@ -974,7 +974,7 @@ egg_list_box_real_button_release_event (GtkWidget *widget,
EggListBox *list_box = EGG_LIST_BOX (widget);
EggListBoxPrivate *priv = list_box->priv;
- if (event->button == 1)
+ if (event->button == GDK_BUTTON_PRIMARY)
{
if (priv->active_child != NULL &&
priv->active_child_active)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]