Magellan Linux

Contents of /trunk/mozilla-firefox/patches/mozilla-firefox-1.0.7-embed-prompt-crash.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 1346 byte(s)
-import

1 Index: embedding/browser/gtk/src/EmbedPrompter.cpp
2 ===================================================================
3 RCS file: /cvsroot/mozilla/embedding/browser/gtk/src/EmbedPrompter.cpp,v
4 retrieving revision 1.16
5 diff -p -u -u -p -U10 -r1.16 EmbedPrompter.cpp
6 --- embedding/browser/gtk/src/EmbedPrompter.cpp 7 Feb 2005 12:40:57 -0000 1.16
7 +++ embedding/browser/gtk/src/EmbedPrompter.cpp 13 Jun 2005 21:52:31 -0000
8 @@ -94,21 +94,21 @@ EmbedPrompter::EmbedPrompter(void)
9 EmbedPrompter::~EmbedPrompter(void)
10 {
11 if (mItemList)
12 delete[] mItemList;
13 }
14
15 nsresult
16 EmbedPrompter::Create(PromptType aType, GtkWindow* aParentWindow)
17 {
18 mWindow = gtk_dialog_new_with_buttons(mTitle.get(), aParentWindow,
19 - GTK_DIALOG_DESTROY_WITH_PARENT,
20 + (GtkDialogFlags)0,
21 NULL);
22
23 // only add the dialog to the window group if the parent already has a window group,
24 // so as not to break app's expectations about modal dialogs.
25 if (aParentWindow && GTK_WINDOW (aParentWindow)->group) {
26 gtk_window_group_add_window (GTK_WINDOW (aParentWindow)->group, GTK_WINDOW (mWindow));
27 }
28
29 // gtk will resize this for us as necessary
30 gtk_window_set_default_size(GTK_WINDOW(mWindow), 100, 50);