pidgin/pidgin

Remove GtkDialog handling in pidgin_widget_decorate_account.

15 months ago, Elliott Sales de Andrade
a8bdd1227991
Parents 9acdbd51e504
Children d3b870b30eb9
Remove GtkDialog handling in pidgin_widget_decorate_account.

This function is only ever called with a Gtk[H]Box, so this squelches
warnings about deprecated functions.
--- a/pidgin/gtknotify.c Sun Nov 10 04:20:11 2019 -0500
+++ b/pidgin/gtknotify.c Sun Nov 10 04:20:32 2019 -0500
@@ -510,12 +510,7 @@
gtk_widget_set_tooltip_text(image,
purple_account_get_username(account));
- if (GTK_IS_DIALOG(cont)) {
- gtk_box_pack_start(GTK_BOX(gtk_dialog_get_action_area(
- GTK_DIALOG(cont))), image, FALSE, TRUE, 0);
- gtk_box_reorder_child(GTK_BOX(gtk_dialog_get_action_area(
- GTK_DIALOG(cont))), image, 0);
- } else if (GTK_IS_BOX(cont)) {
+ if (GTK_IS_BOX(cont)) {
gtk_widget_set_halign(image, GTK_ALIGN_START);
gtk_widget_set_valign(image, GTK_ALIGN_START);
gtk_box_pack_end(GTK_BOX(cont), image, FALSE, TRUE, 0);
--- a/pidgin/gtkrequest.c Sun Nov 10 04:20:11 2019 -0500
+++ b/pidgin/gtkrequest.c Sun Nov 10 04:20:32 2019 -0500
@@ -104,12 +104,7 @@
gtk_widget_set_tooltip_text(image, purple_account_get_username(account));
- if (GTK_IS_DIALOG(cont)) {
- gtk_box_pack_start(GTK_BOX(gtk_dialog_get_action_area(GTK_DIALOG(cont))),
- image, FALSE, TRUE, 0);
- gtk_box_reorder_child(GTK_BOX(gtk_dialog_get_action_area(GTK_DIALOG(cont))),
- image, 0);
- } else if (GTK_IS_BOX(cont)) {
+ if (GTK_IS_BOX(cont)) {
gtk_widget_set_halign(image, GTK_ALIGN_START);
gtk_widget_set_valign(image, GTK_ALIGN_START);
gtk_box_pack_end(GTK_BOX(cont), image, FALSE, TRUE, 0);