summaryrefslogtreecommitdiff
path: root/gtk/gtkinfobar.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-10-16 12:55:27 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-18 00:29:20 +0200
commitcf56decbb43057e75f980f7ebef94352e9152519 (patch)
tree0617ee7bf2e4c227ffbf5fcfff86edd2b4ce8c82 /gtk/gtkinfobar.c
parent301e1a4d55783d18db39a7e759319b696113df71 (diff)
downloadgtk+-cf56decbb43057e75f980f7ebef94352e9152519.tar.gz
infobar: Stop looking at stock items
GtkButton doesn't have a use-stock property anymore anyway.
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r--gtk/gtkinfobar.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 02aa7ccf7f..9974f72bdd 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -615,17 +615,6 @@ gtk_info_bar_add_button (GtkInfoBar *info_bar,
button = gtk_button_new_with_label (button_text);
gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
- if (button_text)
- {
- GtkStockItem item;
- if (gtk_stock_lookup (button_text, &item))
- g_object_set (button, "use-stock", TRUE, NULL);
- }
-
- G_GNUC_END_IGNORE_DEPRECATIONS;
-
gtk_widget_set_can_default (button, TRUE);
gtk_widget_show (button);