finch/gntaccount.c

branch
release-2.x.y
changeset 39653
d42791a830df
parent 39651
4295bcadc936
--- a/finch/gntaccount.c	Thu May 16 23:15:33 2019 -0400
+++ b/finch/gntaccount.c	Fri May 17 00:46:48 2019 -0400
@@ -1100,9 +1100,12 @@
 			aa, 2,
 			_("Authorize"), authorize_and_add_cb,
 			_("Deny"), deny_no_add_cb);
-		gnt_screen_release(widget);
+		/* Since GntWindow is a GntBox, hide it so it's unmapped, then
+		 * add it to the outer window, and make it visible again. */
+		gnt_widget_hide(widget);
 		gnt_box_set_toplevel(GNT_BOX(widget), FALSE);
 		gnt_box_add_widget(GNT_BOX(uihandle), widget);
+		gnt_widget_set_visible(widget, TRUE);
 
 		gnt_box_add_widget(GNT_BOX(uihandle), gnt_hline_new());
 
@@ -1116,9 +1119,13 @@
 				break;
 			}
 		}
+		/* Since GntWindow is a GntBox, hide it so it's unmapped, then
+		 * add it to the outer window, and make it visible again. */
+		gnt_widget_hide(widget);
 		gnt_box_set_toplevel(GNT_BOX(widget), FALSE);
-		gnt_screen_release(widget);
 		gnt_box_add_widget(GNT_BOX(uihandle), widget);
+		gnt_widget_set_visible(widget, TRUE);
+
 		gnt_widget_show(uihandle);
 
 		g_signal_connect_swapped(G_OBJECT(uihandle), "destroy", G_CALLBACK(free_auth_and_add), aa);

mercurial