aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-popup.c10
-rw-r--r--addressbook/gui/widgets/eab-popup.h11
2 files changed, 21 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/eab-popup.c b/addressbook/gui/widgets/eab-popup.c
index 9bda77d162..8a292b745f 100644
--- a/addressbook/gui/widgets/eab-popup.c
+++ b/addressbook/gui/widgets/eab-popup.c
@@ -65,11 +65,17 @@ eabp_target_free(EPopup *ep, EPopupTarget *t)
g_object_unref(s->selector);
break; }
+
+#ifdef ADAPTED_TO_E_NAME_SELECTOR
+
case EAB_POPUP_TARGET_SELECT_NAMES: {
EABPopupTargetSelectNames *s = (EABPopupTargetSelectNames *)t;
g_object_unref(s->model);
break; }
+
+#endif
+
}
((EPopupClass *)eabp_parent)->target_free(ep, t);
@@ -199,6 +205,8 @@ eab_popup_target_new_source(EABPopup *eabp, ESourceSelector *selector)
return t;
}
+#ifdef ADAPTED_TO_E_NAME_SELECTOR
+
EABPopupTargetSelectNames *
eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, int row)
{
@@ -214,6 +222,8 @@ eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *mod
return t;
}
+#endif
+
/* ********************************************************************** */
/* Popup menu plugin handler */
diff --git a/addressbook/gui/widgets/eab-popup.h b/addressbook/gui/widgets/eab-popup.h
index 7fec4cc742..20aab2edfe 100644
--- a/addressbook/gui/widgets/eab-popup.h
+++ b/addressbook/gui/widgets/eab-popup.h
@@ -31,6 +31,8 @@ extern "C" {
#pragma }
#endif /* __cplusplus */
+#define ADAPTED_TO_E_NAME_SELECTOR 1
+
typedef struct _EABPopup EABPopup;
typedef struct _EABPopupClass EABPopupClass;
@@ -113,6 +115,8 @@ struct _EABPopupTargetSource {
struct _ESourceSelector *selector;
};
+#ifdef ADAPTED_TO_E_NAME_SELECTOR
+
/**
* struct _EABPopupTargetSelectNames - A select names target.
*
@@ -130,6 +134,8 @@ struct _EABPopupTargetSelectNames {
int row;
};
+#endif
+
typedef struct _EPopupItem EABPopupItem;
/* The object */
@@ -149,8 +155,13 @@ EABPopup *eab_popup_new(const char *menuid);
EABPopupTargetSelect *eab_popup_target_new_select(EABPopup *eabp, struct _EBook *book, int readonly, GPtrArray *cards);
EABPopupTargetSource *eab_popup_target_new_source(EABPopup *eabp, struct _ESourceSelector *selector);
+
+#ifdef ADAPTED_TO_E_NAME_SELECTOR
+
EABPopupTargetSelectNames *eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, int row);
+#endif
+
/* ********************************************************************** */
typedef struct _EABPopupHook EABPopupHook;