Commit 97cbe801 authored by Javier Jardón's avatar Javier Jardón

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

parent fb4661be
......@@ -700,6 +700,7 @@ error_message_with_parent (GtkWindow *parent,
const gchar *detail)
GtkWidget *dialog;
GtkWindowGroup *group;
dialog = gtk_message_dialog_new (parent,
......@@ -710,8 +711,9 @@ error_message_with_parent (GtkWindow *parent,
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", detail);
if (parent->group)
gtk_window_group_add_window (parent->group, GTK_WINDOW (dialog));
group = gtk_window_get_group (parent);
if (group)
gtk_window_group_add_window (group, GTK_WINDOW (dialog));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (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