aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-03 01:32:29 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-03 01:32:29 +0800
commit09c8a9bab01534df6ef99ddf78fb97db5852bc6d (patch)
tree972c5dc47f6361d41a6b29303101b7979f2ec04a /addressbook
parent46bee495664a9a83a7fbb5169b7ee71128689639 (diff)
downloadgsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.tar
gsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.tar.gz
gsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.tar.bz2
gsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.tar.lz
gsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.tar.xz
gsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.tar.zst
gsoc2013-evolution-09c8a9bab01534df6ef99ddf78fb97db5852bc6d.zip
Removed some extra padding and pack the addressbook view into a frame with
2001-08-02 Jason Leach <jleach@ximian.com> * gui/component/addressbook.c (addressbook_factory_new_control): Removed some extra padding and pack the addressbook view into a frame with inward shadowing, just because it looks prettier. svn path=/trunk/; revision=11585
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog4
-rw-r--r--addressbook/gui/component/addressbook.c36
2 files changed, 24 insertions, 16 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index e20567a4a6..f1e9fcbc0f 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,9 @@
2001-08-02 Jason Leach <jleach@ximian.com>
+ * gui/component/addressbook.c (addressbook_factory_new_control):
+ Removed some extra padding and pack the addressbook view into a
+ frame with inward shadowing, just because it looks prettier.
+
* gui/contact-editor/e-contact-editor.c: Use the updated Save,
Save As, and Print icons for the menus and toolbar.
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 9337bfd601..6f671b29a2 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -706,19 +706,21 @@ BonoboControl *
addressbook_factory_new_control (void)
{
AddressbookView *view;
+ GtkFrame *frame;
- view = g_new0 (AddressbookView, 1);
+ frame = gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- view->vbox = gtk_vbox_new(FALSE, GNOME_PAD);
+ view = g_new0 (AddressbookView, 1);
- gtk_container_set_border_width(GTK_CONTAINER(view->vbox), GNOME_PAD_SMALL);
+ view->vbox = gtk_vbox_new (FALSE, 0);
- gtk_signal_connect( GTK_OBJECT( view->vbox ), "destroy",
- GTK_SIGNAL_FUNC( destroy_callback ),
- ( gpointer ) view );
+ gtk_signal_connect (GTK_OBJECT (view->vbox), "destroy",
+ GTK_SIGNAL_FUNC (destroy_callback),
+ (gpointer) view);
/* Create the control. */
- view->control = bonobo_control_new(view->vbox);
+ view->control = bonobo_control_new (view->vbox);
view->search = E_SEARCH_BAR(e_search_bar_new(addressbook_search_menu_items,
addressbook_search_option_items));
@@ -730,24 +732,26 @@ addressbook_factory_new_control (void)
GTK_SIGNAL_FUNC (addressbook_menu_activated), view);
view->view = E_ADDRESSBOOK_VIEW(e_addressbook_view_new());
- gtk_box_pack_start(GTK_BOX(view->vbox), GTK_WIDGET(view->view),
- TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (frame), view->view);
+ gtk_box_pack_start (GTK_BOX (view->vbox), GTK_WIDGET(frame),
+ TRUE, TRUE, 0);
/* create the initial view */
change_view_type (view, E_ADDRESSBOOK_VIEW_MINICARD);
- gtk_widget_show( view->vbox );
- gtk_widget_show( GTK_WIDGET(view->view) );
- gtk_widget_show( GTK_WIDGET(view->search) );
+ gtk_widget_show (frame);
+ gtk_widget_show (view->vbox);
+ gtk_widget_show (GTK_WIDGET(view->view));
+ gtk_widget_show (GTK_WIDGET(view->search));
view->properties = bonobo_property_bag_new (get_prop, set_prop, view);
- bonobo_property_bag_add (
- view->properties, PROPERTY_FOLDER_URI, PROPERTY_FOLDER_URI_IDX,
- BONOBO_ARG_STRING, NULL, _("The URI that the Folder Browser will display"), 0);
+ bonobo_property_bag_add (view->properties,
+ PROPERTY_FOLDER_URI, PROPERTY_FOLDER_URI_IDX,
+ BONOBO_ARG_STRING, NULL, _("The URI that the Folder Browser will display"), 0);
bonobo_control_set_properties (view->control,
- view->properties);
+ view->properties);
gtk_signal_connect (GTK_OBJECT (view->view),
"status_message",