From ba793447966329f53c4cf2b14f2bfd32fd6e9de9 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 5 Jun 2002 19:38:00 +0000 Subject: Call e_minicard_selected in the GDK_BUTTON_RELEASE case here. 2002-06-05 Christopher James Lahey * gui/widgets/e-minicard.c (e_minicard_event): Call e_minicard_selected in the GDK_BUTTON_RELEASE case here. (e_minicard_drag_begin): Set E_REFLOW (parent)->maybe_in_drag = FALSE if it's an EReflow. svn path=/trunk/; revision=17124 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/widgets/e-minicard.c | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 80d5610387..7244a91562 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2002-06-05 Christopher James Lahey + + * gui/widgets/e-minicard.c (e_minicard_event): Call + e_minicard_selected in the GDK_BUTTON_RELEASE case here. + (e_minicard_drag_begin): Set E_REFLOW (parent)->maybe_in_drag = + FALSE if it's an EReflow. + 2002-06-04 Christopher James Lahey * gui/component/select-names/e-select-names-completion.c diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index d8e34577b2..76761f9515 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -564,6 +564,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event) break; } case GDK_BUTTON_RELEASE: + e_minicard_selected(e_minicard, event); if (e_minicard->drag_button == event->button.button) { e_minicard->drag_button = 0; e_minicard->drag_button_down = FALSE; @@ -989,8 +990,14 @@ static gint e_minicard_drag_begin (EMinicard *minicard, GdkEvent *event) { gint ret_val = 0; + GnomeCanvasItem *parent; gtk_signal_emit (GTK_OBJECT(minicard), e_minicard_signals[DRAG_BEGIN], event, &ret_val); + + parent = GNOME_CANVAS_ITEM (minicard)->parent; + if (parent && E_IS_REFLOW (parent)) { + E_REFLOW (parent)->maybe_in_drag = FALSE; + } return ret_val; } -- cgit