aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-11 12:12:28 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-11 12:12:28 +0800
commit835ec00d01e23256143229d8e2c99f68afae1e6c (patch)
treea84f64f459a6f00730cfc651290c2bfdb8e4e2f9 /addressbook/gui/component/addressbook.c
parent86e45230bdfccc8c6a80dc81714aeb95cfd03b32 (diff)
downloadgsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar
gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.gz
gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.bz2
gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.lz
gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.xz
gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.tar.zst
gsoc2013-evolution-835ec00d01e23256143229d8e2c99f68afae1e6c.zip
Added glade files.
2000-06-11 Christopher James Lahey <clahey@helixcode.com> * gui/component/Makefile.am: Added glade files. * gui/component/addressbook.c: Added a test of the Select Names functionality. * gui/component/e-addressbook-model.c: Made this class_init function a bit cleaner. * gui/component/e-select-names.c: Tested this and fixed some obvious errors. * gui/component/select-names.glade: The main window shouldn't be visible by default. svn path=/trunk/; revision=3518
Diffstat (limited to 'addressbook/gui/component/addressbook.c')
-rw-r--r--addressbook/gui/component/addressbook.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 805a11f574..1bce1010e3 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -26,6 +26,7 @@
#include <e-cell-text.h>
#include <e-addressbook-model.h>
+#include <e-select-names.h>
#include "e-contact-editor.h"
#include "e-contact-save-as.h"
#include "e-ldap-server-dialog.h"
@@ -76,6 +77,7 @@ control_deactivate (BonoboControl *control, BonoboUIHandler *uih)
{
/* how to remove a menu item */
bonobo_ui_handler_menu_remove (uih, "/File/Print");
+ bonobo_ui_handler_menu_remove (uih, "/File/TestSelectNames");
bonobo_ui_handler_menu_remove (uih, "/View/<sep>");
bonobo_ui_handler_menu_remove (uih, "/View/Toggle View");
bonobo_ui_handler_menu_remove (uih, "/Actions/New Contact");
@@ -407,6 +409,17 @@ print_cb (BonoboUIHandler *uih, void *user_data, const char *path)
}
}
+static void
+test_select_names_cb (BonoboUIHandler *uih, void *user_data, const char *path)
+{
+ ESelectNames *names = E_SELECT_NAMES(e_select_names_new());
+
+ e_select_names_add_section(names, _("To"), "to");
+ e_select_names_add_section(names, _("From"), "from");
+ e_select_names_add_section(names, _("Cc"), "cc");
+ gtk_widget_show(GTK_WIDGET(names));
+}
+
static GnomeUIInfo gnome_toolbar [] = {
GNOMEUIINFO_ITEM_STOCK (N_("New"), N_("Create a new contact"), new_contact_cb, GNOME_STOCK_PIXMAP_NEW),
@@ -486,6 +499,13 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
0, 0, print_cb,
(gpointer) view);
+ bonobo_ui_handler_menu_new_item (uih, "/File/TestSelectNames",
+ N_("Test Select Names"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_NONE, NULL,
+ 0, 0, test_select_names_cb,
+ (gpointer) view);
+
bonobo_ui_handler_menu_new_item (uih, "/View/Toggle View",
N_("As _Table"),
NULL, -1,