summaryrefslogtreecommitdiff
path: root/pidgin/pidginnotificationauthorizationrequest.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2023-04-11 00:17:15 -0500
committerGary Kramlich <grim@reaperworld.com>2023-04-11 00:17:15 -0500
commit4f125d62f06af335ca0311a22687ae8e4c9ed5fd (patch)
tree6894bcb341c148f8d0197e204ad8a4fae004185b /pidgin/pidginnotificationauthorizationrequest.c
parent2074dc3febdc0b09bf6d292d85163dd3d789f2fb (diff)
downloadpidgin-4f125d62f06af335ca0311a22687ae8e4c9ed5fd.tar.gz
Use gtk_widget_set_visible for everything
gtk_widget_show and gtk_widget_hide are deprecated in GTK 4.10. However, gtk_widget_set_visible has been around forever so we just need to move to that. I didn't test all of these and there are probably some that can still be removed, but most of those are in code that is going to get refreshed in the future so I didn't bother for now. Testing Done: I tested the join chat, add chat, and add buddy dialogs, as well as the contact added notification. Reviewed at https://reviews.imfreedom.org/r/2430/
Diffstat (limited to 'pidgin/pidginnotificationauthorizationrequest.c')
-rw-r--r--pidgin/pidginnotificationauthorizationrequest.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/pidgin/pidginnotificationauthorizationrequest.c b/pidgin/pidginnotificationauthorizationrequest.c
index eed8d3190f..c4f22b8d87 100644
--- a/pidgin/pidginnotificationauthorizationrequest.c
+++ b/pidgin/pidginnotificationauthorizationrequest.c
@@ -68,9 +68,9 @@ pidgin_notification_authorization_request_update(PidginNotificationAuthorization
gtk_image_set_from_icon_name(GTK_IMAGE(request->icon), NULL);
adw_action_row_set_subtitle(ADW_ACTION_ROW(request), NULL);
- gtk_widget_hide(request->accept);
- gtk_widget_hide(request->deny);
- gtk_widget_hide(request->message);
+ gtk_widget_set_visible(request->accept, FALSE);
+ gtk_widget_set_visible(request->deny, FALSE);
+ gtk_widget_set_visible(request->message, FALSE);
return;
}
@@ -83,9 +83,9 @@ pidgin_notification_authorization_request_update(PidginNotificationAuthorization
gtk_image_set_from_icon_name(GTK_IMAGE(request->icon), NULL);
adw_action_row_set_subtitle(ADW_ACTION_ROW(request), NULL);
- gtk_widget_hide(request->accept);
- gtk_widget_hide(request->deny);
- gtk_widget_hide(request->message);
+ gtk_widget_set_visible(request->accept, FALSE);
+ gtk_widget_set_visible(request->deny, FALSE);
+ gtk_widget_set_visible(request->message, FALSE);
return;
}
@@ -112,9 +112,9 @@ pidgin_notification_authorization_request_update(PidginNotificationAuthorization
message = purple_authorization_request_get_message(purple_request);
adw_action_row_set_subtitle(ADW_ACTION_ROW(request), message);
- gtk_widget_show(request->accept);
- gtk_widget_show(request->deny);
- gtk_widget_show(request->message);
+ gtk_widget_set_visible(request->accept, TRUE);
+ gtk_widget_set_visible(request->deny, TRUE);
+ gtk_widget_set_visible(request->message, TRUE);
}
static void