diff options
author | Gary Kramlich <grim@reaperworld.com> | 2021-01-11 00:05:29 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2021-01-11 00:05:29 -0600 |
commit | 926943ff4d2a33bac7c973a344083dc6a876cb3c (patch) | |
tree | 87946d9af6de643a33cb134a2f232afd49540522 /pidgin/gtkutils.c | |
parent | e523d7e4a9c437d545028d8a2ddff2804b0b1852 (diff) | |
download | pidgin-926943ff4d2a33bac7c973a344083dc6a876cb3c.tar.gz |
Replace stock items for dialog buttons with labels
Testing Done:
Compiled and ran locally. Verified many warnings are gone.
Reviewed at https://reviews.imfreedom.org/r/417/
Diffstat (limited to 'pidgin/gtkutils.c')
-rw-r--r-- | pidgin/gtkutils.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c index 202025f2e7..b881cc48d4 100644 --- a/pidgin/gtkutils.c +++ b/pidgin/gtkutils.c @@ -152,15 +152,6 @@ GtkWidget *pidgin_dialog_add_button(GtkDialog *dialog, const char *label, GtkWidget *button = gtk_button_new_with_mnemonic(label); GtkWidget *bbox = pidgin_dialog_get_action_area(dialog); - /* Handle stock labels if passed in until nothing calls this - * expecting a GtkStock button */ - if (label != NULL) { - GtkStockItem item; - if (gtk_stock_lookup(label, &item)) { - g_object_set(button, "use-stock", TRUE, NULL); - } - } - gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); if (callback) g_signal_connect(G_OBJECT(button), "clicked", callback, callbackdata); |