[gtk+/wip/otte/icon-size: 9/20] cellrendererpixbuf: Remove stock-detail property
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/icon-size: 9/20] cellrendererpixbuf: Remove stock-detail property
- Date: Fri, 10 Nov 2017 21:04:50 +0000 (UTC)
commit e5c973a99142ded8fcbfc180521f2f7ff20adc42
Author: Benjamin Otte <otte redhat com>
Date: Sat Jan 21 00:45:22 2017 +0100
cellrendererpixbuf: Remove stock-detail property
GTK3 didn't use that property already...
gtk/gtkcellrendererpixbuf.c | 20 --------------------
testsuite/gtk/notify.c | 3 +--
2 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 675f8b3..e342289 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -90,8 +90,6 @@ struct _GtkCellRendererPixbufPrivate
GdkPixbuf *pixbuf_expander_open;
GdkPixbuf *pixbuf_expander_closed;
-
- gchar *stock_detail;
};
G_DEFINE_TYPE_WITH_PRIVATE (GtkCellRendererPixbuf, gtk_cell_renderer_pixbuf, GTK_TYPE_CELL_RENDERER)
@@ -121,8 +119,6 @@ gtk_cell_renderer_pixbuf_finalize (GObject *object)
if (priv->pixbuf_expander_closed)
g_object_unref (priv->pixbuf_expander_closed);
- g_free (priv->stock_detail);
-
G_OBJECT_CLASS (gtk_cell_renderer_pixbuf_parent_class)->finalize (object);
}
@@ -186,15 +182,6 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
GTK_ICON_SIZE_MENU,
GTK_PARAM_READWRITE));
- g_object_class_install_property (object_class,
- PROP_STOCK_DETAIL,
- g_param_spec_string ("stock-detail",
- P_("Detail"),
- P_("Render detail to pass to the theme engine"),
- NULL,
- GTK_PARAM_READWRITE));
-
-
/**
* GtkCellRendererPixbuf:icon-name:
*
@@ -260,9 +247,6 @@ gtk_cell_renderer_pixbuf_get_property (GObject *object,
case PROP_STOCK_SIZE:
g_value_set_uint (value, priv->icon_size);
break;
- case PROP_STOCK_DETAIL:
- g_value_set_string (value, priv->stock_detail);
- break;
case PROP_ICON_NAME:
g_value_set_string (value, gtk_image_definition_get_icon_name (priv->image_def));
break;
@@ -352,10 +336,6 @@ gtk_cell_renderer_pixbuf_set_property (GObject *object,
case PROP_STOCK_SIZE:
priv->icon_size = g_value_get_uint (value);
break;
- case PROP_STOCK_DETAIL:
- g_free (priv->stock_detail);
- priv->stock_detail = g_value_dup_string (value);
- break;
case PROP_ICON_NAME:
take_image_definition (cellpixbuf, gtk_image_definition_new_icon_name (g_value_get_string (value)));
break;
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 3f36913..9f6f3ff 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -523,8 +523,7 @@ test_type (gconstpointer data)
if (g_type_is_a (pspec->owner_type, GTK_TYPE_CELL_RENDERER_PIXBUF) &&
(g_str_equal (pspec->name, "follow-state") ||
g_str_equal (pspec->name, "stock-id") ||
- g_str_equal (pspec->name, "stock-size") ||
- g_str_equal (pspec->name, "stock-detail")))
+ g_str_equal (pspec->name, "stock-size")))
continue;
if (g_type_is_a (pspec->owner_type, GTK_TYPE_MENU) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]