From b9630445a02806a40c32dae22bc621f3b1747ccd Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Sun, 9 Apr 2000 19:00:50 +0000 Subject: + * addressbook/gui/component/addressbook.c (control_activate): Make + "New Contact" menuitem add a card with new_contact_cb(). + + * e-shell-view.c (e_shell_view_setup): Set the default height + bigger, to 600, so that everything in the shortcut-bar shows up. svn path=/trunk/; revision=2353 --- addressbook/gui/component/addressbook.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 1ac90fcf28..7d795eb8d8 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -71,13 +71,13 @@ card_added_cb (EBook* book, EBookStatus status, const char *id, g_print ("%s: %s(): a card was added\n", __FILE__, __FUNCTION__); } - static void -new_contact_cb (BonoboUIHandler *uih, EBook *book, const char *path) +new_contact_cb (BonoboUIHandler *uih, void *user_data, const char *path) { gint result; GtkWidget* contact_editor = e_contact_editor_new(e_card_new(BLANK_VCARD)); + EBook *book = E_BOOK (user_data); GtkWidget* dlg = gnome_dialog_new ("Contact Editor", "Save", "Cancel", NULL); @@ -136,7 +136,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, EBook *book) N_("_New Contact"), NULL, -1, BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, - 0, 0, do_nothing_cb, NULL); + 0, 0, new_contact_cb, (gpointer)book); toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH); -- cgit