[gtk/wip/baedert/for-master: 196/198] nativedialog: Remove unused run state




commit 0d5957b97aad383720a54b78d5d4a00d90885c50
Author: Timm Bäder <mail baedert org>
Date:   Sat Jan 30 16:01:54 2021 +0100

    nativedialog: Remove unused run state

 gtk/gtknativedialog.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/gtk/gtknativedialog.c b/gtk/gtknativedialog.c
index 73ad13ea3a..71cceb4f8c 100644
--- a/gtk/gtknativedialog.c
+++ b/gtk/gtknativedialog.c
@@ -68,10 +68,6 @@ struct _GtkNativeDialogPrivate
 
   guint visible : 1;
   guint modal : 1;
-
-  /* Run state */
-  int run_response_id;
-  GMainLoop *run_loop; /* Non-NULL when in run */
 };
 
 enum {
@@ -347,9 +343,6 @@ gtk_native_dialog_hide (GtkNativeDialog *self)
 
   klass->hide (self);
 
-  if (priv->run_loop && g_main_loop_is_running (priv->run_loop))
-    g_main_loop_quit (priv->run_loop);
-
   g_object_notify_by_pspec (G_OBJECT (self), native_props[PROP_VISIBLE]);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]