Bug 224454 Add the prompt to the windo group if there is one.

r=marco sr=blizzard
This commit is contained in:
marco%gnome.org 2005-02-07 12:40:57 +00:00
Родитель bb1ee0458d
Коммит 3b75a60f66
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -104,6 +104,12 @@ EmbedPrompter::Create(PromptType aType, GtkWindow* aParentWindow)
GTK_DIALOG_DESTROY_WITH_PARENT,
NULL);
// only add the dialog to the window group if the parent already has a window group,
// so as not to break app's expectations about modal dialogs.
if (aParentWindow && aParentWindow->group) {
gtk_window_group_add_window (aParentWindow->group, GTK_WINDOW (mWindow));
}
// gtk will resize this for us as necessary
gtk_window_set_default_size(GTK_WINDOW(mWindow), 100, 50);