mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
gtk/gtkrecentchooserdefault.c: Use accessor functions to access GtkWindow
This commit is contained in:
parent
fb4661be6d
commit
97cbe801c1
@ -700,6 +700,7 @@ error_message_with_parent (GtkWindow *parent,
|
||||
const gchar *detail)
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
GtkWindowGroup *group;
|
||||
|
||||
dialog = gtk_message_dialog_new (parent,
|
||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_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);
|
||||
|
Loading…
Reference in New Issue
Block a user