Commit 65a28efc authored by Javier Jardón's avatar Javier Jardón

gtk/gtkprintunixdialog.c: Use accessor functions to access GtkWindow

parent f05acd70
...@@ -467,6 +467,8 @@ error_dialogs (GtkPrintUnixDialog *print_dialog, ...@@ -467,6 +467,8 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
if (file != NULL && if (file != NULL &&
g_file_query_exists (file, NULL)) g_file_query_exists (file, NULL))
{ {
GtkWindowGroup *group;
toplevel = get_toplevel (GTK_WIDGET (print_dialog)); toplevel = get_toplevel (GTK_WIDGET (print_dialog));
basename = g_file_get_basename (file); basename = g_file_get_basename (file);
...@@ -498,8 +500,9 @@ error_dialogs (GtkPrintUnixDialog *print_dialog, ...@@ -498,8 +500,9 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
gtk_dialog_set_default_response (GTK_DIALOG (dialog), gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_ACCEPT); GTK_RESPONSE_ACCEPT);
if (toplevel->group) group = gtk_window_get_group (toplevel);
gtk_window_group_add_window (toplevel->group, if (group)
gtk_window_group_add_window (group,
GTK_WINDOW (dialog)); GTK_WINDOW (dialog));
response = gtk_dialog_run (GTK_DIALOG (dialog)); response = gtk_dialog_run (GTK_DIALOG (dialog));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment