forked from AuroraMiddleware/gtk
infobar: Stop looking at stock items
GtkButton doesn't have a use-stock property anymore anyway.
This commit is contained in:
parent
301e1a4d55
commit
cf56decbb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user