From 92d19d2d4f989a021a6587755689b7439c7fb064 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 1 Mar 2001 08:43:28 +0000 Subject: Used ESelectionModelSimple and the changes to EReflow and EReflowSorted to 2001-03-01 Christopher James Lahey * gui/widgets/e-minicard-view.c, gui/widgets/e-minicard-view.h, gui/widgets/e-minicard.c, gui/widgets/e-minicard.h: Used ESelectionModelSimple and the changes to EReflow and EReflowSorted to get multiple selection in the minicard view. * gui/widgets/test-reflow.c: Changed this to get it to compile with the changes to EReflow. svn path=/trunk/; revision=8444 --- addressbook/gui/widgets/e-minicard.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/widgets/e-minicard.h') diff --git a/addressbook/gui/widgets/e-minicard.h b/addressbook/gui/widgets/e-minicard.h index 54c5806a28..dbc914502c 100644 --- a/addressbook/gui/widgets/e-minicard.h +++ b/addressbook/gui/widgets/e-minicard.h @@ -76,8 +76,10 @@ struct _EMinicard guint needs_remodeling : 1; guint changed : 1; + + guint selected : 1; - gboolean has_focus; + guint has_focus : 1; double width; double height; @@ -87,7 +89,7 @@ struct _EMinicardClass { GnomeCanvasGroupClass parent_class; - void (* resize) (EMinicard *minicard); + gint (* selected) (EMinicard *minicard, GdkEvent *event); }; @@ -95,6 +97,8 @@ GtkType e_minicard_get_type (void); char *e_minicard_get_card_id (EMinicard *minicard); int e_minicard_compare (EMinicard *minicard1, EMinicard *minicard2); +int e_minicard_selected (EMinicard *minicard, GdkEvent *event); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit