summaryrefslogtreecommitdiff
path: root/finch/gntaccount.c
diff options
context:
space:
mode:
authorElliott Sales de Andrade <qulogic@pidgin.im>2019-05-17 00:46:48 -0400
committerElliott Sales de Andrade <qulogic@pidgin.im>2019-05-17 00:46:48 -0400
commit8bac985a148fe44640cf251f129d495f1168b6fa (patch)
tree65a726e949204d761e64d94e52fad77613c114ab /finch/gntaccount.c
parent7789b561ee4d7d282b2e0d2ac6173ff36f1aab5d (diff)
downloadpidgin-8bac985a148fe44640cf251f129d495f1168b6fa.tar.gz
Avoid using internal gnt_screen_release.
This is now deprecated in libgnt.
Diffstat (limited to 'finch/gntaccount.c')
-rw-r--r--finch/gntaccount.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/finch/gntaccount.c b/finch/gntaccount.c
index 856a245760..e0f28347bb 100644
--- a/finch/gntaccount.c
+++ b/finch/gntaccount.c
@@ -1108,9 +1108,12 @@ finch_request_authorize(PurpleAccount *account,
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());
@@ -1124,9 +1127,13 @@ finch_request_authorize(PurpleAccount *account,
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);