[gtk+/wip/baedert/box: 53/68] infobar: Stop looking at stock items
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box: 53/68] infobar: Stop looking at stock items
- Date: Mon, 17 Oct 2016 15:45:53 +0000 (UTC)
commit 44b81bcbf845f6ce401232ae77fb626718fe9c51
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]