aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodney Dawes <dobey@novell.com>2005-02-02 01:30:49 +0800
committerRodney Dawes <dobey@src.gnome.org>2005-02-02 01:30:49 +0800
commit120c73f4ef38f8ba87593767986b37443293616d (patch)
treec19d9c27f86b5d7b1f7c8f61cc7128884c5b1fbf /calendar/gui
parent706fbced1af8945fb9a2553d9ad99977be5f54ca (diff)
downloadgsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.tar
gsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.tar.gz
gsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.tar.bz2
gsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.tar.lz
gsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.tar.xz
gsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.tar.zst
gsoc2013-evolution-120c73f4ef38f8ba87593767986b37443293616d.zip
Clean up the spacing and padding, and shove the notebook and expander
2005-02-01 Rodney Dawes <dobey@novell.com> * gui/dialogs/comp-editor.c (setup_widgets): Clean up the spacing and padding, and shove the notebook and expander arrow into a vbox so that we can be HIG compliant (comp_editor_init): Remove the separator from the "dialog" and set the border width for the internal dialog widgets appropriately to be compliant with the HIG for dialog borders svn path=/trunk/; revision=28662
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/comp-editor.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 3658500e7f..6a2be0a6c5 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -498,16 +498,22 @@ static void
setup_widgets (CompEditor *editor)
{
CompEditorPrivate *priv;
- GtkWidget *expander_hbox;
+ GtkWidget *expander_hbox, *vbox;
GdkPixbuf *attachment_pixbuf;
priv = editor->priv;
+ /* Useful vbox */
+ vbox = gtk_vbox_new (FALSE, 12);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (editor)->vbox), vbox, TRUE, TRUE, 0);
+ gtk_widget_show (vbox);
+
/* Notebook */
priv->notebook = GTK_NOTEBOOK (gtk_notebook_new ());
gtk_widget_show (GTK_WIDGET (priv->notebook));
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (editor)->vbox), GTK_WIDGET (priv->notebook),
- TRUE, TRUE, 6);
+ gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (priv->notebook),
+ TRUE, TRUE, 0);
/* Buttons */
gtk_dialog_add_button (GTK_DIALOG (editor), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
@@ -561,7 +567,7 @@ setup_widgets (CompEditor *editor)
gtk_container_add (GTK_CONTAINER (priv->attachment_expander),
priv->attachment_scrolled_window);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (editor)->vbox), priv->attachment_expander,
+ gtk_box_pack_start (GTK_BOX (vbox), priv->attachment_expander,
FALSE, FALSE, GNOME_PAD_SMALL);
gtk_widget_show (priv->attachment_expander);
e_expander_set_expanded (E_EXPANDER (priv->attachment_expander), FALSE);
@@ -592,6 +598,11 @@ comp_editor_init (CompEditor *editor)
priv->is_group_item = FALSE;
gtk_window_set_type_hint (GTK_WINDOW (editor), GDK_WINDOW_TYPE_HINT_NORMAL);
+ gtk_dialog_set_has_separator (GTK_DIALOG (editor), FALSE);
+
+ gtk_widget_ensure_style (GTK_WIDGET (editor));
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (editor)->vbox), 0);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (editor)->action_area), 12);
}