aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/eab-vcard-control.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-07-22 21:18:40 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-07-22 21:18:40 +0800
commit4db0f79023ba5ee3b70e2827cb2c7dc5808f105b (patch)
tree0f2a8e93720866aabf88acd0f5ede3560313cc2e /addressbook/gui/widgets/eab-vcard-control.c
parent1e7002dcb80baed55cef60886ec64fda65756153 (diff)
downloadgsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.tar
gsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.tar.gz
gsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.tar.bz2
gsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.tar.lz
gsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.tar.xz
gsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.tar.zst
gsoc2013-evolution-4db0f79023ba5ee3b70e2827cb2c7dc5808f105b.zip
but buttons to button box, use vbox instead of table
2004-07-19 Radek Doulik <rodo@ximian.com> * gui/widgets/eab-vcard-control.c (eab_vcard_control_new): but buttons to button box, use vbox instead of table * gui/widgets/eab-contact-display.c: base this widget directly on gtkhtml * gui/widgets/e-addressbook-view.c (eab_view_new): put contact display in scrolled window svn path=/trunk/; revision=26703
Diffstat (limited to 'addressbook/gui/widgets/eab-vcard-control.c')
-rw-r--r--addressbook/gui/widgets/eab-vcard-control.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/addressbook/gui/widgets/eab-vcard-control.c b/addressbook/gui/widgets/eab-vcard-control.c
index 239abe5e1c..3e2cdddcc9 100644
--- a/addressbook/gui/widgets/eab-vcard-control.c
+++ b/addressbook/gui/widgets/eab-vcard-control.c
@@ -247,8 +247,8 @@ eab_vcard_control_new (void)
BonoboPersistStream *stream;
GtkWidget *display;
GtkWidget *button1, *button2;
- GtkWidget *label;
- GtkWidget *table;
+ GtkWidget *bbox;
+ GtkWidget *vbox;
EABVCardControl *vcard_control = g_new (EABVCardControl, 1);
@@ -263,31 +263,34 @@ eab_vcard_control_new (void)
/* Create the control. */
display = eab_contact_display_new ();
- gtk_widget_show (display);
vcard_control->display = EAB_CONTACT_DISPLAY (display);
- /* This is intentionally not shown. */
- label = gtk_label_new ("");
- vcard_control->label = label;
+ bbox = gtk_hbutton_box_new ();
+ gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_START);
+ gtk_box_set_spacing (GTK_BOX (bbox), 12);
button1 = gtk_button_new_with_label(_("Show Full VCard"));
g_signal_connect (button1, "clicked",
G_CALLBACK (toggle_full_vcard), vcard_control);
- gtk_widget_show (button1);
+ gtk_box_pack_start (GTK_BOX (bbox), button1, FALSE, FALSE, 0);
button2 = gtk_button_new_with_label(_("Save in addressbook"));
g_signal_connect (button2, "clicked",
G_CALLBACK (save_in_addressbook), vcard_control);
- gtk_widget_show (button2);
+ gtk_box_pack_start (GTK_BOX (bbox), button2, FALSE, FALSE, 0);
- table = gtk_table_new (6, 6, FALSE);
- gtk_table_attach (GTK_TABLE (table), display, 0, 6, 3, 6, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
- gtk_table_attach (GTK_TABLE (table), label, 0, 3, 2, 3, GTK_FILL, 0, 0, 0);
- gtk_table_attach (GTK_TABLE (table), button1, 0, 1, 1, 2, 0, 0, 0, 0);
- gtk_table_attach (GTK_TABLE (table), button2, 1, 2, 1, 2, 0, 0, 0, 0);
- gtk_widget_show (table);
+ /* This is intentionally not shown. */
+ vcard_control->label = gtk_label_new ("");
+
+ vbox = gtk_vbox_new (FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), display, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), vcard_control->label, TRUE, TRUE, 0);
+ gtk_widget_show_all (bbox);
+ gtk_widget_show (display);
+ gtk_widget_show (vbox);
- control = bonobo_control_new (table);
+ control = bonobo_control_new (vbox);
g_object_weak_ref (G_OBJECT (control), free_struct, vcard_control);