summaryrefslogtreecommitdiff
path: root/pidgin/gtknotify.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/gtknotify.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/gtknotify.c')
-rw-r--r--pidgin/gtknotify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pidgin/gtknotify.c b/pidgin/gtknotify.c
index 30aa690424..53f5734767 100644
--- a/pidgin/gtknotify.c
+++ b/pidgin/gtknotify.c
@@ -223,7 +223,7 @@ pidgin_notify_message(PurpleNotifyMessageType type, const char *title,
purple_request_cpar_get_parent_from(cpar));
pidgin_auto_parent_window(dialog);
- gtk_widget_show(dialog);
+ gtk_widget_set_visible(dialog, TRUE);
return dialog;
}
@@ -321,7 +321,7 @@ pidgin_notify_formatted(const char *title, const char *primary,
/* Show the window */
pidgin_auto_parent_window(window);
- gtk_widget_show(window);
+ gtk_widget_set_visible(window, TRUE);
return window;
}
@@ -524,7 +524,7 @@ pidgin_notify_searchresults(PurpleConnection *gc, const char *title,
/* Show the window */
pidgin_auto_parent_window(window);
- gtk_widget_show(window);
+ gtk_widget_set_visible(window, TRUE);
return data;
}