[gtk+/wip/baedert/box: 52/67] infobar: Stop looking at stock items



commit f043926ff4c357dd68b13dc0c262059ebdcb4894
Author: Timm Bäder <mail baedert org>
Date:   Sun Oct 16 12:55:27 2016 +0200

    infobar: Stop looking at stock items
    
    GtkButton doesn't have a use-stock property anymore anyway.

 gtk/gtkinfobar.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 02aa7cc..9974f72 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]