aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2004-04-01 01:05:52 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-04-01 01:05:52 +0800
commit331fe02266408da756dcde94702a23c2bee5162a (patch)
tree1bb6b286dbe287d52135ed8ab15ac12140065d4c /shell/main.c
parent2ab629886e8850257ffe7681fcfdf73648278b4b (diff)
downloadgsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.tar
gsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.tar.gz
gsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.tar.bz2
gsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.tar.lz
gsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.tar.xz
gsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.tar.zst
gsoc2013-evolution-331fe02266408da756dcde94702a23c2bee5162a.zip
Remove dialog separators Change the border with of the dialog's vbox and
2004-03-31 Rodney Dawes <dobey@ximian.com> * e-shell-importer.c (choose_importer_from_list): (start_import): (prepare_intelligent_page): Remove dialog separators * e-shell-offline-handler.c (pop_up_confirmation_dialog): Change the border with of the dialog's vbox and action area to be HIG-compliant * e-shell-settings-dialog.c (init): Remove the dialog separator * e-shell-startup-wizard.c (prepare_importer_page): Remove the dialog separator to be more HIG-compliant (key_press_event_callback): Fix compile warnings and cast to the correct widget types for calling various gtk api Remove the dialog separator to be more HIG-compliant * main.c (show_development_warning): Make the devel warning dialog that pops up for unstable versions be HIG-compliant * glade/e-active-connection-dialog.glade: Make the active connection dialog for going off-line be HIG-compliant * importer/intelligent.c (create_gui): Remove the dialog separator and set the dialog's vbox and action area border widths to be more compliant with the HIG svn path=/trunk/; revision=25267
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c31
1 files changed, 21 insertions, 10 deletions
diff --git a/shell/main.c b/shell/main.c
index 18762df621..1fee5219bf 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -192,6 +192,7 @@ warning_dialog_response_callback (GtkDialog *dialog,
static void
show_development_warning (GtkWindow *parent)
{
+ GtkWidget *vbox;
GtkWidget *label;
GtkWidget *warning_dialog;
GtkWidget *dont_bother_me_again_checkbox;
@@ -208,9 +209,22 @@ show_development_warning (GtkWindow *parent)
g_object_unref (client);
- warning_dialog = gtk_dialog_new_with_buttons("Ximian Evolution " VERSION, parent,
- GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
+ warning_dialog = gtk_dialog_new ();
+ gtk_window_set_title (GTK_WINDOW (warning_dialog), "Ximian Evolution " VERSION);
+ gtk_window_set_modal (GTK_WINDOW (warning_dialog), TRUE);
+ gtk_dialog_add_button (GTK_DIALOG (warning_dialog), GTK_STOCK_OK, GTK_RESPONSE_OK);
+ e_dialog_set_transient_for (GTK_WINDOW (warning_dialog), GTK_WIDGET (parent));
+
+ gtk_dialog_set_has_separator (GTK_DIALOG (warning_dialog), FALSE);
+
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (warning_dialog)->vbox), 0);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (warning_dialog)->action_area), 12);
+
+ vbox = gtk_vbox_new (FALSE, 12);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox), vbox,
+ TRUE, TRUE, 0);
+
text = g_strdup_printf(
/* xgettext:no-c-format */
/* Preview/Alpha/Beta version warning message */
@@ -234,26 +248,23 @@ show_development_warning (GtkWindow *parent)
g_free(text);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox),
- label, TRUE, TRUE, 4);
+ gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
label = gtk_label_new (_("Thanks\n"
"The Ximian Evolution Team\n"));
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
gtk_misc_set_alignment(GTK_MISC(label), 1, .5);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox),
- label, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
dont_bother_me_again_checkbox = gtk_check_button_new_with_label (_("Don't tell me again"));
- /* GTK sucks. (Just so you know.) */
alignment = gtk_alignment_new (0.0, 0.0, 0.0, 0.0);
gtk_container_add (GTK_CONTAINER (alignment), dont_bother_me_again_checkbox);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox),
- alignment, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), alignment, TRUE, TRUE, 0);
gtk_widget_show_all (warning_dialog);