Mercurial > pidgin.yaz
changeset 19807:970b886f57dd
Trying pidgin_get_toplevel
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sat, 28 Jul 2007 09:38:24 +0000 |
parents | b9f5d8e14794 |
children | e12bf2df9507 |
files | pidgin/gtkdialogs.c pidgin/gtkrequest.c |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkdialogs.c Sat Jul 28 08:50:14 2007 +0000 +++ b/pidgin/gtkdialogs.c Sat Jul 28 09:38:24 2007 +0000 @@ -337,6 +337,7 @@ gtk_window_set_role(GTK_WINDOW(about), "about"); gtk_window_set_resizable(GTK_WINDOW(about), TRUE); gtk_window_set_default_size(GTK_WINDOW(about), 340, 450); + gtk_window_set_transient_for(GTK_WINDOW(about), pidgin_get_toplevel()); hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BORDER); gtk_container_set_border_width(GTK_CONTAINER(hbox), PIDGIN_HIG_BORDER);
--- a/pidgin/gtkrequest.c Sat Jul 28 08:50:14 2007 +0000 +++ b/pidgin/gtkrequest.c Sat Jul 28 09:38:24 2007 +0000 @@ -327,6 +327,7 @@ gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); gtk_dialog_set_default_response(GTK_DIALOG(dialog), 0); + gtk_window_set_transient_for(GTK_WINDOW(dialog), pidgin_get_toplevel()); gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(dialog)->vbox), PIDGIN_HIG_BORDER); /* Setup the main horizontal box */ @@ -470,6 +471,7 @@ /* Create the dialog. */ data->dialog = dialog = gtk_dialog_new(); + gtk_window_set_transient_for(GTK_WINDOW(dialog), pidgin_get_toplevel()); if (title != NULL) gtk_window_set_title(GTK_WINDOW(dialog), title);