infobar: Stop looking at stock items

GtkButton doesn't have a use-stock property anymore anyway.
This commit is contained in:
Timm Bäder 2016-10-16 12:55:27 +02:00 committed by Benjamin Otte
parent 301e1a4d55
commit cf56decbb4

View File

@ -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);