[frogr] Do not force showing all widgets in dialogs during creation.



commit 4e7a13c696c514649f1e55ff19ad5b728c88c5e4
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Mon May 2 12:58:33 2011 +0200

    Do not force showing all widgets in dialogs during creation.
    
    This causes some weird effects sometimes, specially noticeable when
    using GTK3 (dialog first appears shifted and then centers itself).

 src/frogr-add-tags-dialog.c       |    3 ---
 src/frogr-add-to-group-dialog.c   |    3 ---
 src/frogr-add-to-set-dialog.c     |    3 ---
 src/frogr-create-new-set-dialog.c |    2 --
 src/frogr-details-dialog.c        |    3 ---
 src/frogr-settings-dialog.c       |    2 --
 6 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/frogr-add-tags-dialog.c b/src/frogr-add-tags-dialog.c
index 7a4bb29..d5e9ccf 100644
--- a/src/frogr-add-tags-dialog.c
+++ b/src/frogr-add-tags-dialog.c
@@ -369,9 +369,6 @@ frogr_add_tags_dialog_init (FrogrAddTagsDialog *self)
 
   g_signal_connect (G_OBJECT (self), "response",
                     G_CALLBACK (_dialog_response_cb), NULL);
-
-  /* Show the UI */
-  gtk_widget_show_all (GTK_WIDGET (self));
 }
 
 /* Public API */
diff --git a/src/frogr-add-to-group-dialog.c b/src/frogr-add-to-group-dialog.c
index 2f658aa..cfb9d35 100644
--- a/src/frogr-add-to-group-dialog.c
+++ b/src/frogr-add-to-group-dialog.c
@@ -556,9 +556,6 @@ frogr_add_to_group_dialog_init (FrogrAddToGroupDialog *self)
   gtk_window_set_default_size (GTK_WINDOW (self),
                                MINIMUM_WINDOW_WIDTH,
                                MINIMUM_WINDOW_HEIGHT);
-
-  /* Show the UI */
-  gtk_widget_show_all (GTK_WIDGET (self));
 }
 
 /* Public API */
diff --git a/src/frogr-add-to-set-dialog.c b/src/frogr-add-to-set-dialog.c
index 8b24cbe..d9a1b5c 100644
--- a/src/frogr-add-to-set-dialog.c
+++ b/src/frogr-add-to-set-dialog.c
@@ -556,9 +556,6 @@ frogr_add_to_set_dialog_init (FrogrAddToSetDialog *self)
   gtk_window_set_default_size (GTK_WINDOW (self),
                                MINIMUM_WINDOW_WIDTH,
                                MINIMUM_WINDOW_HEIGHT);
-
-  /* Show the UI */
-  gtk_widget_show_all (GTK_WIDGET (self));
 }
 
 /* Public API */
diff --git a/src/frogr-create-new-set-dialog.c b/src/frogr-create-new-set-dialog.c
index 8e64e21..fd4284e 100644
--- a/src/frogr-create-new-set-dialog.c
+++ b/src/frogr-create-new-set-dialog.c
@@ -378,8 +378,6 @@ frogr_create_new_set_dialog_init (FrogrCreateNewSetDialog *self)
   hints.min_height = MINIMUM_WINDOW_HEIGHT;
   gtk_window_set_geometry_hints (GTK_WINDOW (self), NULL,
                                  &hints, GDK_HINT_MIN_SIZE);
-  /* Show the UI */
-  gtk_widget_show_all (GTK_WIDGET (self));
 }
 
 /* Public API */
diff --git a/src/frogr-details-dialog.c b/src/frogr-details-dialog.c
index 6e2f9fb..3d0b863 100644
--- a/src/frogr-details-dialog.c
+++ b/src/frogr-details-dialog.c
@@ -1069,9 +1069,6 @@ frogr_details_dialog_init (FrogrDetailsDialog *self)
 
   gtk_dialog_set_default_response (GTK_DIALOG (self),
                                    GTK_RESPONSE_OK);
-
-  /* Show the UI */
-  gtk_widget_show_all (GTK_WIDGET (self));
 }
 
 
diff --git a/src/frogr-settings-dialog.c b/src/frogr-settings-dialog.c
index 8b48df8..8258a36 100644
--- a/src/frogr-settings-dialog.c
+++ b/src/frogr-settings-dialog.c
@@ -791,8 +791,6 @@ frogr_settings_dialog_init (FrogrSettingsDialog *self)
                     G_CALLBACK (_on_dialog_delete_event),
                     NULL);
 
-  /* Show the UI */
-  gtk_widget_show_all (GTK_WIDGET (self));
   gtk_dialog_set_default_response (GTK_DIALOG (self),
                                    GTK_RESPONSE_OK);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]