aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-02 12:46:04 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-02 12:46:04 +0800
commitbed151743070dbe3aa3a403ccec00a24b587f644 (patch)
tree8954f4c7283a58d5fc48e6b6cd5e7ba740fcb757 /addressbook
parentb4b0fc5e23f52330b241e31981ed1a1483f6191a (diff)
downloadgsoc2013-evolution-bed151743070dbe3aa3a403ccec00a24b587f644.tar.gz
gsoc2013-evolution-bed151743070dbe3aa3a403ccec00a24b587f644.tar.zst
gsoc2013-evolution-bed151743070dbe3aa3a403ccec00a24b587f644.zip
Made double click only work on the first button.
2000-06-02 Christopher James Lahey <clahey@helixcode.com> * gui/minicard/e-minicard-view.c, gui/minicard/e-minicard.c: Made double click only work on the first button. svn path=/trunk/; revision=3378
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/minicard/e-minicard-view.c1
-rw-r--r--addressbook/gui/minicard/e-minicard.c2
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c1
-rw-r--r--addressbook/gui/widgets/e-minicard.c2
5 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 3932596639..9a8b6ea561 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-02 Christopher James Lahey <clahey@helixcode.com>
+
+ * gui/minicard/e-minicard-view.c, gui/minicard/e-minicard.c: Made
+ double click only work on the first button.
+
2000-06-01 Christopher James Lahey <clahey@helixcode.com>
* gui/minicard/e-minicard.c: return TRUE if opening a contact
diff --git a/addressbook/gui/minicard/e-minicard-view.c b/addressbook/gui/minicard/e-minicard-view.c
index 2243f91b80..545bcc061f 100644
--- a/addressbook/gui/minicard/e-minicard-view.c
+++ b/addressbook/gui/minicard/e-minicard-view.c
@@ -283,6 +283,7 @@ e_minicard_view_event (GnomeCanvasItem *item, GdkEvent *event)
switch( event->type ) {
case GDK_2BUTTON_PRESS:
+ if (((GdkEventButton *)event)->button == 1)
{
gint result;
ECard *card;
diff --git a/addressbook/gui/minicard/e-minicard.c b/addressbook/gui/minicard/e-minicard.c
index 1510c34205..3aabdab5ef 100644
--- a/addressbook/gui/minicard/e-minicard.c
+++ b/addressbook/gui/minicard/e-minicard.c
@@ -382,7 +382,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
}
break;
case GDK_2BUTTON_PRESS:
- if (E_IS_MINICARD_VIEW(item->parent)) {
+ if (event->button.button == 1 && E_IS_MINICARD_VIEW(item->parent)) {
gint result;
GtkWidget* contact_editor =
e_contact_editor_new(e_minicard->card);
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index 2243f91b80..545bcc061f 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -283,6 +283,7 @@ e_minicard_view_event (GnomeCanvasItem *item, GdkEvent *event)
switch( event->type ) {
case GDK_2BUTTON_PRESS:
+ if (((GdkEventButton *)event)->button == 1)
{
gint result;
ECard *card;
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 1510c34205..3aabdab5ef 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -382,7 +382,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
}
break;
case GDK_2BUTTON_PRESS:
- if (E_IS_MINICARD_VIEW(item->parent)) {
+ if (event->button.button == 1 && E_IS_MINICARD_VIEW(item->parent)) {
gint result;
GtkWidget* contact_editor =
e_contact_editor_new(e_minicard->card);