summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-08-17 15:16:13 +0200
committerJavier Jardón <jjardon@gnome.org>2010-08-23 20:19:44 +0200
commit65a28efc15d136e43933efcdd10dd0fb4aa00c7e (patch)
treee9b3ef1bbf6de06a44b7777d5f0ce1299a6bfc64
parentf05acd707dab87e68ae8cbe59ab17ea7673cab45 (diff)
downloadgtk+-65a28efc15d136e43933efcdd10dd0fb4aa00c7e.tar.gz
gtk/gtkprintunixdialog.c: Use accessor functions to access GtkWindow
-rw-r--r--gtk/gtkprintunixdialog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 8490705362..130c0e35ec 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -467,6 +467,8 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
if (file != NULL &&
g_file_query_exists (file, NULL))
{
+ GtkWindowGroup *group;
+
toplevel = get_toplevel (GTK_WIDGET (print_dialog));
basename = g_file_get_basename (file);
@@ -498,8 +500,9 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_ACCEPT);
- if (toplevel->group)
- gtk_window_group_add_window (toplevel->group,
+ group = gtk_window_get_group (toplevel);
+ if (group)
+ gtk_window_group_add_window (group,
GTK_WINDOW (dialog));
response = gtk_dialog_run (GTK_DIALOG (dialog));