aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-16 10:18:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-16 10:18:40 +0800
commit0709fc318feae5c38cf678916d54450eff7975c0 (patch)
treedb22add2501746639b78fdaec9f24d087c96c4a4 /addressbook/gui/widgets
parent066b7b5e9f417376dde95f7220ba94bdd11070a0 (diff)
downloadgsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.tar
gsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.tar.gz
gsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.tar.bz2
gsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.tar.lz
gsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.tar.xz
gsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.tar.zst
gsoc2013-evolution-0709fc318feae5c38cf678916d54450eff7975c0.zip
Update to use new EPopupMenu API.
2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * gui/widgets/e-addressbook-view.c (table_right_click): Update to use new EPopupMenu API. * gui/widgets/e-addressbook-reflow-adapter.c (e_addressbook_reflow_adapter_right_click): Update to use new EPopupMenu API. * gui/component/select-names/e-select-names.c (section_right_click_cb): Update to match new EPopupMenu api. svn path=/trunk/; revision=16183
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-reflow-adapter.c36
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c22
2 files changed, 30 insertions, 28 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
index ab99206eac..f38a42cc21 100644
--- a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
@@ -309,25 +309,27 @@ e_addressbook_reflow_adapter_right_click (EAddressbookReflowAdapter *adapter, Gd
{
EAddressbookReflowAdapterPrivate *priv = adapter->priv;
ModelAndSelection *mns = g_new(ModelAndSelection, 1);
- EPopupMenu menu[] = { {N_("Open"), NULL, GTK_SIGNAL_FUNC(open_card), NULL, 0},
- {N_("Save as VCard"), NULL, GTK_SIGNAL_FUNC(save_as), NULL, 0},
- {N_("Forward Contact"), NULL, GTK_SIGNAL_FUNC(send_as), NULL, 0},
- {N_("Send Message to Contact"), NULL, GTK_SIGNAL_FUNC(send_to), NULL, 0},
- {N_("Print"), NULL, GTK_SIGNAL_FUNC(print), NULL, 0},
+ EPopupMenu menu[] = {
+ { N_("Open"), NULL, GTK_SIGNAL_FUNC(open_card), NULL, NULL, 0 },
+ { N_("Save as VCard"), NULL, GTK_SIGNAL_FUNC(save_as), NULL, NULL, 0 },
+ { N_("Forward Contact"), NULL, GTK_SIGNAL_FUNC(send_as), NULL, NULL, 0 },
+ { N_("Send Message to Contact"), NULL, GTK_SIGNAL_FUNC(send_to), NULL, NULL, 0 },
+ { N_("Print"), NULL, GTK_SIGNAL_FUNC(print), NULL, NULL, 0 },
#if 0 /* Envelope printing is disabled for Evolution 1.0. */
- {N_("Print Envelope"), NULL, GTK_SIGNAL_FUNC(print_envelope), NULL, 0},
+ { N_("Print Envelope"), NULL, GTK_SIGNAL_FUNC(print_envelope), NULL, NULL, 0 },
#endif
- E_POPUP_SEPARATOR,
-
- {N_("Copy to folder..."), NULL, GTK_SIGNAL_FUNC(copy_to_folder), NULL, 0},
- {N_("Move to folder..."), NULL, GTK_SIGNAL_FUNC(move_to_folder), NULL, POPUP_READONLY_MASK},
- E_POPUP_SEPARATOR,
-
- {N_("Cut"), NULL, GTK_SIGNAL_FUNC (cut), NULL, POPUP_READONLY_MASK},
- {N_("Copy"), NULL, GTK_SIGNAL_FUNC (copy), NULL, 0},
- {N_("Paste"), NULL, GTK_SIGNAL_FUNC (paste), NULL, POPUP_READONLY_MASK},
- {N_("Delete"), NULL, GTK_SIGNAL_FUNC(delete), NULL, POPUP_READONLY_MASK},
- E_POPUP_TERMINATOR};
+ E_POPUP_SEPARATOR,
+
+ { N_("Copy to folder..."), NULL, GTK_SIGNAL_FUNC(copy_to_folder), NULL, NULL, 0 },
+ { N_("Move to folder..."), NULL, GTK_SIGNAL_FUNC(move_to_folder), NULL, NULL, POPUP_READONLY_MASK },
+ E_POPUP_SEPARATOR,
+
+ { N_("Cut"), NULL, GTK_SIGNAL_FUNC (cut), NULL, NULL, POPUP_READONLY_MASK },
+ { N_("Copy"), NULL, GTK_SIGNAL_FUNC (copy), NULL, NULL, 0 },
+ { N_("Paste"), NULL, GTK_SIGNAL_FUNC (paste), NULL, NULL, POPUP_READONLY_MASK },
+ { N_("Delete"), NULL, GTK_SIGNAL_FUNC(delete), NULL, NULL, POPUP_READONLY_MASK},
+ E_POPUP_TERMINATOR
+ };
mns->adapter = adapter;
mns->selection = selection;
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 6a78cf13eb..2055f9c4cf 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -1013,23 +1013,23 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
CardAndBook *card_and_book;
EPopupMenu menu[] = {
- {N_("Save as VCard"), NULL, GTK_SIGNAL_FUNC(save_as), NULL, 0},
- {N_("Forward Contact"), NULL, GTK_SIGNAL_FUNC(send_as), NULL, 0},
- {N_("Send Message to Contact"), NULL, GTK_SIGNAL_FUNC(send_to), NULL, 0},
- {N_("Print"), NULL, GTK_SIGNAL_FUNC(print), NULL, 0},
+ { N_("Save as VCard"), NULL, GTK_SIGNAL_FUNC(save_as), NULL, NULL, 0 },
+ { N_("Forward Contact"), NULL, GTK_SIGNAL_FUNC(send_as), NULL, NULL, 0 },
+ { N_("Send Message to Contact"), NULL, GTK_SIGNAL_FUNC(send_to), NULL, NULL, 0 },
+ { N_("Print"), NULL, GTK_SIGNAL_FUNC(print), NULL, NULL, 0 },
#if 0 /* Envelope printing is disabled for Evolution 1.0. */
- {N_("Print Envelope"), NULL, GTK_SIGNAL_FUNC(print_envelope), NULL, 0},
+ { N_("Print Envelope"), NULL, GTK_SIGNAL_FUNC(print_envelope), NULL, NULL, 0 },
#endif
E_POPUP_SEPARATOR,
- {N_("Copy to folder..."), NULL, GTK_SIGNAL_FUNC(copy_to_folder), NULL, 0},
- {N_("Move to folder..."), NULL, GTK_SIGNAL_FUNC(move_to_folder), NULL, POPUP_READONLY_MASK},
+ { N_("Copy to folder..."), NULL, GTK_SIGNAL_FUNC(copy_to_folder), NULL, NULL, 0 },
+ { N_("Move to folder..."), NULL, GTK_SIGNAL_FUNC(move_to_folder), NULL, NULL, POPUP_READONLY_MASK },
E_POPUP_SEPARATOR,
- {N_("Cut"), NULL, GTK_SIGNAL_FUNC (cut), NULL, POPUP_READONLY_MASK},
- {N_("Copy"), NULL, GTK_SIGNAL_FUNC (copy), NULL, 0},
- {N_("Paste"), NULL, GTK_SIGNAL_FUNC (paste), NULL, POPUP_READONLY_MASK},
- {N_("Delete"), NULL, GTK_SIGNAL_FUNC(delete), NULL, POPUP_READONLY_MASK},
+ { N_("Cut"), NULL, GTK_SIGNAL_FUNC (cut), NULL, NULL, POPUP_READONLY_MASK },
+ { N_("Copy"), NULL, GTK_SIGNAL_FUNC (copy), NULL, NULL, 0 },
+ { N_("Paste"), NULL, GTK_SIGNAL_FUNC (paste), NULL, NULL, POPUP_READONLY_MASK },
+ { N_("Delete"), NULL, GTK_SIGNAL_FUNC(delete), NULL, NULL, POPUP_READONLY_MASK },
E_POPUP_TERMINATOR
};