aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog3
-rw-r--r--addressbook/gui/component/addressbook.c6
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-view.c2
4 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e600723fa..3c53a56a21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2000-04-09 Matt Loper <matt@helixcode.com>
+ * addressbook/gui/component/addressbook.c (control_activate): Make
+ "New Contact" menuitem add a card with new_contact_cb().
+
* addressbook/Makefile.am: Compile contact-editor, _then_ gui,
since the gui now depends on the contact editor (shouldn't the
contact-editor directory be moved into '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);
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 9c8e753ee1..a39e8ba11f 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-09 Matt Loper <matt@helixcode.com>
+
+ * e-shell-view.c (e_shell_view_setup): Set the default height
+ bigger, to 600, so that everything in the shortcut-bar shows up.
+
2000-04-07 Matt Loper <matt@helixcode.com>
* e-shell-view.c (destroy_folder_view): New function;
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index ac9b97d98c..876c34851b 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -93,7 +93,7 @@ e_shell_view_setup (EShellView *eshell_view)
/*
* FIXME, should load the config if (load_config)....
*/
- gtk_window_set_default_size (GTK_WINDOW (eshell_view), 600, 400);
+ gtk_window_set_default_size (GTK_WINDOW (eshell_view), 600, 600);
}
static void