From 697f8281271c5d992829c83ba54c4f45ec62a0b0 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Mon, 2 Aug 2004 18:03:04 +0000 Subject: Make the main dialog here be an actual GtkDialog instead of a GtkWindow 2004-08-02 Rodney Dawes * gui/component/ldap-config.glade: Make the main dialog here be an actual GtkDialog instead of a GtkWindow Fix up a few small spacing issues with the UI Change "Contacts Group" to "Address Book" * gui/component/addressbook-config.c (query_for_supported_bases): Use gtk_widget_ensure_style instead of gtk_widget_realize (addressbook_add_server_dialog): Use gtk_widget_ensure_style on the dialog and fix the spacing and border width of the dialog containers Fixes #61365 svn path=/trunk/; revision=26795 --- addressbook/gui/component/addressbook-config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/component/addressbook-config.c') diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c index 60d0afe432..6c1d1fc9cc 100644 --- a/addressbook/gui/component/addressbook-config.c +++ b/addressbook/gui/component/addressbook-config.c @@ -716,7 +716,7 @@ query_for_supported_bases (GtkWidget *button, AddressbookSourceDialog *sdialog) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (sdialog->window)); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); - gtk_widget_realize (dialog); + gtk_widget_ensure_style (dialog); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), 0); gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 12); @@ -933,6 +933,10 @@ addressbook_add_server_dialog (void) sdialog->window = glade_xml_get_widget (sdialog->gui, "account-add-window"); + gtk_widget_ensure_style (sdialog->window); + gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (sdialog->window)->vbox), 0); + gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (sdialog->window)->action_area), 12); + sdialog->display_name = glade_xml_get_widget (sdialog->gui, "display-name-entry"); g_signal_connect (sdialog->display_name, "changed", G_CALLBACK (add_folder_modify), sdialog); -- cgit