aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-04-23 05:51:30 +0800
committerChris Lahey <clahey@src.gnome.org>2002-04-23 05:51:30 +0800
commit79d608a14e04c5e799111149c8899bcf5dafcb4f (patch)
tree777c5adb8c6178596d627a06810bddcb758a7fdc /addressbook/gui
parenta51f73e8ff7d0442a26e02273ba6c24a6c43bb13 (diff)
downloadgsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.tar
gsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.tar.gz
gsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.tar.bz2
gsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.tar.lz
gsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.tar.xz
gsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.tar.zst
gsoc2013-evolution-79d608a14e04c5e799111149c8899bcf5dafcb4f.zip
Removed an unused variable here.
2002-04-22 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.h: Removed an unused variable here. * gui/widgets/e-addressbook-view.c (table_right_click, table_white_space_event): Added a current view submenu to the popup menu here. svn path=/trunk/; revision=16561
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names.h1
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c17
2 files changed, 16 insertions, 2 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.h b/addressbook/gui/component/select-names/e-select-names.h
index 9359bb4477..a1a1daf7e6 100644
--- a/addressbook/gui/component/select-names/e-select-names.h
+++ b/addressbook/gui/component/select-names/e-select-names.h
@@ -71,7 +71,6 @@ struct _ESelectNames
ETableModel *without;
EAddressbookModel *model;
GtkWidget *categories;
- GtkWidget *categories_entry;
GtkWidget *search_entry;
GtkWidget *status_message;
EvolutionStorageListener *local_listener;
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 070e1b49e0..33f7ccc3be 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -866,12 +866,17 @@ typedef struct {
ECard *card;
EAddressbookView *view;
GtkWidget *widget;
+ EPopupMenu *submenu;
gpointer closure;
} CardAndBook;
static void
card_and_book_free (CardAndBook *card_and_book)
{
+ if (card_and_book->submenu)
+ gal_view_instance_free_popup_menu (card_and_book->view->view_instance,
+ card_and_book->submenu);
+
gtk_object_unref(GTK_OBJECT(card_and_book->card));
gtk_object_unref(GTK_OBJECT(card_and_book->book));
gtk_object_unref(GTK_OBJECT(card_and_book->view));
@@ -1019,9 +1024,10 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
EAddressbookModel *model = view->model;
CardAndBook *card_and_book;
GtkMenu *popup;
+ EPopupMenu *submenu;
EPopupMenu menu[] = {
- E_POPUP_ITEM (N_("Save as VCard"), GTK_SIGNAL_FUNC(save_as), 0),
+ E_POPUP_ITEM (N_("Save as VCard"), GTK_SIGNAL_FUNC(save_as), 0),
E_POPUP_ITEM (N_("Forward Contact"), GTK_SIGNAL_FUNC(send_as), 0),
E_POPUP_ITEM (N_("Send Message to Contact"), GTK_SIGNAL_FUNC(send_to), 0),
E_POPUP_ITEM (N_("Print"), GTK_SIGNAL_FUNC(print), 0),
@@ -1038,6 +1044,9 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
E_POPUP_ITEM (N_("Copy"), GTK_SIGNAL_FUNC (copy), 0),
E_POPUP_ITEM (N_("Paste"), GTK_SIGNAL_FUNC (paste), POPUP_READONLY_MASK),
E_POPUP_ITEM (N_("Delete"), GTK_SIGNAL_FUNC(delete), POPUP_READONLY_MASK),
+ E_POPUP_SEPARATOR,
+
+ E_POPUP_SUBMENU (N_("Current View"), submenu = gal_view_instance_get_popup_menu (view->view_instance), 0),
E_POPUP_TERMINATOR
};
@@ -1045,6 +1054,8 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
card_and_book->card = e_addressbook_model_get_card(model, row);
card_and_book->widget = GTK_WIDGET(table);
card_and_book->view = view;
+ card_and_book->submenu = submenu;
+
gtk_object_get(GTK_OBJECT(model),
"book", &(card_and_book->book),
NULL);
@@ -1085,12 +1096,15 @@ table_white_space_event(ETableScrolled *table, GdkEvent *event, EAddressbookView
EAddressbookModel *model = view->model;
CardAndBook *card_and_book;
GtkMenu *popup;
+ EPopupMenu *submenu;
EPopupMenu menu[] = {
E_POPUP_ITEM (N_("New Contact..."), GTK_SIGNAL_FUNC(new_card), POPUP_READONLY_MASK),
E_POPUP_ITEM (N_("New Contact List..."), GTK_SIGNAL_FUNC(new_list), POPUP_READONLY_MASK),
E_POPUP_SEPARATOR,
E_POPUP_ITEM (N_("Paste"), GTK_SIGNAL_FUNC (paste), POPUP_READONLY_MASK),
+ E_POPUP_SEPARATOR,
+ E_POPUP_SUBMENU (N_("Current View"), submenu = gal_view_instance_get_popup_menu (view->view_instance), 0),
E_POPUP_TERMINATOR
};
@@ -1098,6 +1112,7 @@ table_white_space_event(ETableScrolled *table, GdkEvent *event, EAddressbookView
card_and_book->card = NULL;
card_and_book->widget = GTK_WIDGET(table);
card_and_book->view = view;
+ card_and_book->submenu = submenu;
gtk_object_get(GTK_OBJECT(model),
"book", &(card_and_book->book),
NULL);