Blame wireshark-gnome3-msgbox.patch

Jan Safranek 7bfaf9
bz#752559 - Disable the dialog on start
Jan Safranek 7bfaf9
Jan Safranek 7bfaf9
Reported ans accepted upstream as https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6559
Jan Safranek 7bfaf9
Jan Safranek 7bfaf9
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c
Jan Safranek 7bfaf9
index ff7d283..8ee40cf 100644
Jan Safranek 7bfaf9
--- a/gtk/simple_dialog.c
Jan Safranek 7bfaf9
+++ b/gtk/simple_dialog.c
Jan Safranek 7bfaf9
@@ -316,10 +316,11 @@ vsimple_dialog(ESD_TYPE_E type, gint btn_mask, const gchar *msg_format, va_list
Jan Safranek 7bfaf9
     state = gdk_window_get_state(top_level->window);
Jan Safranek 7bfaf9
   }
Jan Safranek 7bfaf9
 
Jan Safranek 7bfaf9
-  /* If we don't yet have a main window or it's iconified, don't show the
Jan Safranek 7bfaf9
-     dialog. If showing up a dialog, while main window is iconified, program
Jan Safranek 7bfaf9
-     will become unresponsive! */
Jan Safranek 7bfaf9
-  if (top_level == NULL || state & GDK_WINDOW_STATE_ICONIFIED) {
Jan Safranek 7bfaf9
+  /* If we don't yet have a main window or it's iconified or hidden (i.e. not
Jan Safranek 7bfaf9
+     yet ready, don't show the dialog. If showing up a dialog, while main
Jan Safranek 7bfaf9
+     window is iconified, program will become unresponsive! */
Jan Safranek 7bfaf9
+  if (top_level == NULL || state & GDK_WINDOW_STATE_ICONIFIED
Jan Safranek 7bfaf9
+          || state & GDK_WINDOW_STATE_WITHDRAWN) {
Jan Safranek 7bfaf9
 
Jan Safranek 7bfaf9
     queued_message = g_malloc(sizeof (queued_message_t));
Jan Safranek 7bfaf9
     queued_message->type = type;