[nautilus] places-view: Stop using blocking dialog functions
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-view: Stop using blocking dialog functions
- Date: Thu, 16 Dec 2021 22:30:59 +0000 (UTC)
commit 68f09e5bd6d53bef64f9b4419adf9b986eca1422
Author: Matthew Jakeman <mjakeman26 outlook co nz>
Date: Tue Dec 14 18:01:53 2021 +1300
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
src/nautilus-places-view.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c
index 9a37670aa..a167ce02c 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]