From 120c73f4ef38f8ba87593767986b37443293616d Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Tue, 1 Feb 2005 17:30:49 +0000 Subject: Clean up the spacing and padding, and shove the notebook and expander 2005-02-01 Rodney Dawes * 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 --- calendar/gui/dialogs/comp-editor.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'calendar/gui') 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); } -- cgit v1.2.3