aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-04-10 03:00:50 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-04-10 03:00:50 +0800
commitb9630445a02806a40c32dae22bc621f3b1747ccd (patch)
treea04a6157f8f44159c47cd2f1e1c7bff16b8d7e1c /addressbook/gui
parent9496367085a9e45cf4d918987aab2244e3c7ece1 (diff)
downloadgsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.tar
gsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.tar.gz
gsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.tar.bz2
gsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.tar.lz
gsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.tar.xz
gsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.tar.zst
gsoc2013-evolution-b9630445a02806a40c32dae22bc621f3b1747ccd.zip
+ * 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook.c6
1 files changed, 3 insertions, 3 deletions
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);