aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard-view.h
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-04-10 10:14:08 +0800
committerChris Toshok <toshok@src.gnome.org>2001-04-10 10:14:08 +0800
commitfc3440ee9c435bc2fa30fb695caa853d71c17557 (patch)
tree6003917d995bf55efcfe67a595c417ab1cea7d68 /addressbook/gui/widgets/e-minicard-view.h
parentc3c9ca3526ff8d8678c28338cd7368e955b75ef6 (diff)
downloadgsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.tar
gsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.tar.gz
gsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.tar.bz2
gsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.tar.lz
gsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.tar.xz
gsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.tar.zst
gsoc2013-evolution-fc3440ee9c435bc2fa30fb695caa853d71c17557.zip
on BUTTON_PRESS: if it's button 1, store the button x, y, and set
2001-04-09 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard.c (e_minicard_event): on BUTTON_PRESS: if it's button 1, store the button x, y, and set drag_button_down to TRUE. on BUTTON_RELEASE: always set drag_button_down to FALSE. for MOTION_NOTIFY: initiate drag if the pointer has moved 3 pixels. * gui/widgets/e-minicard.h (struct _EMinicard): add fields for button x, y, and a bit for if the button has been pressed so we can tell whether a motion should be a drag. (struct _EMinicardClass): add drag_begin signal. * gui/widgets/e-minicard-view.c (e_minicard_view_drag_begin): new function, starts the drag. (book_view_loaded): connect the "drag_data_get" signal. (e_minicard_view_drag_data_get): new function. * gui/widgets/e-minicard-view.h (struct _EMinicardView): add drag_card and id for canvas_drag_data_get_id. * gui/widgets/e-addressbook-view.c (table_drag_data_get): new function. (create_table_view): add d&d stuff. svn path=/trunk/; revision=9209
Diffstat (limited to 'addressbook/gui/widgets/e-minicard-view.h')
-rw-r--r--addressbook/gui/widgets/e-minicard-view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-minicard-view.h b/addressbook/gui/widgets/e-minicard-view.h
index a82dea3f6a..50a2fa00a7 100644
--- a/addressbook/gui/widgets/e-minicard-view.h
+++ b/addressbook/gui/widgets/e-minicard-view.h
@@ -21,6 +21,7 @@
#ifndef __E_MINICARD_VIEW_H__
#define __E_MINICARD_VIEW_H__
+#include "e-minicard.h"
#include <gal/widgets/e-reflow-sorted.h>
#include <gal/widgets/e-selection-model-simple.h>
#include "addressbook/backend/ebook/e-book.h"
@@ -71,9 +72,12 @@ struct _EMinicardView
ESelectionModelSimple *selection;
+ EMinicard *drag_card;
+
int get_view_idle;
int canvas_destroy_id;
+ int canvas_drag_data_get_id;
int create_card_id, remove_card_id, modify_card_id, status_message_id;