1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-07-05 01:41:28 +00:00

places-view: Stop using blocking dialog functions

Replaces gtk_dialog_run() with equivalent non-blocking
behaviour for error messages in the places sidebar.

Part of #1992
This commit is contained in:
Matthew Jakeman 2021-12-14 18:01:53 +13:00 committed by Matt Jakeman
parent c4028e317e
commit 68f09e5bd6

View File

@ -137,9 +137,8 @@ show_error_message_cb (NautilusGtkPlacesView *view,
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", secondary);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
gtk_widget_show_all (dialog);
}
static void