Make stock_size an uint property, to allow custom icon sizes. Also clarify
Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): Make stock_size an uint property, to allow custom icon sizes. Also clarify the blurb. (#130047, Erik Grinaker)
This commit is contained in:
committed by
Matthias Clasen
parent
57e6eef5ae
commit
128c2192cf
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
|
||||||
|
Make stock_size an uint property, to allow custom icon
|
||||||
|
sizes. Also clarify the blurb. (#130047, Erik Grinaker)
|
||||||
|
|
||||||
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
|
||||||
|
Make stock_size an uint property, to allow custom icon
|
||||||
|
sizes. Also clarify the blurb. (#130047, Erik Grinaker)
|
||||||
|
|
||||||
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
|
||||||
|
Make stock_size an uint property, to allow custom icon
|
||||||
|
sizes. Also clarify the blurb. (#130047, Erik Grinaker)
|
||||||
|
|
||||||
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
|
||||||
|
Make stock_size an uint property, to allow custom icon
|
||||||
|
sizes. Also clarify the blurb. (#130047, Erik Grinaker)
|
||||||
|
|
||||||
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 15 00:49:59 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
|
||||||
|
Make stock_size an uint property, to allow custom icon
|
||||||
|
sizes. Also clarify the blurb. (#130047, Erik Grinaker)
|
||||||
|
|
||||||
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
Sat Feb 14 11:05:26 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
* configure.in: Remove unnecessary STRIP_* definitions, and GNU
|
||||||
|
|||||||
@ -164,10 +164,11 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
|
|||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_STOCK_SIZE,
|
PROP_STOCK_SIZE,
|
||||||
g_param_spec_enum ("stock_size",
|
g_param_spec_uint ("stock_size",
|
||||||
P_("Size"),
|
P_("Size"),
|
||||||
P_("The size of the rendered icon"),
|
P_("The GtkIconSize value that specifies the size of the rendered icon"),
|
||||||
GTK_TYPE_ICON_SIZE,
|
0,
|
||||||
|
G_MAXUINT,
|
||||||
GTK_ICON_SIZE_MENU,
|
GTK_ICON_SIZE_MENU,
|
||||||
G_PARAM_READWRITE));
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
@ -231,7 +232,7 @@ gtk_cell_renderer_pixbuf_get_property (GObject *object,
|
|||||||
g_value_set_string (value, priv->stock_id);
|
g_value_set_string (value, priv->stock_id);
|
||||||
break;
|
break;
|
||||||
case PROP_STOCK_SIZE:
|
case PROP_STOCK_SIZE:
|
||||||
g_value_set_enum (value, priv->stock_size);
|
g_value_set_uint (value, priv->stock_size);
|
||||||
break;
|
break;
|
||||||
case PROP_STOCK_DETAIL:
|
case PROP_STOCK_DETAIL:
|
||||||
g_value_set_string (value, priv->stock_detail);
|
g_value_set_string (value, priv->stock_detail);
|
||||||
@ -294,7 +295,7 @@ gtk_cell_renderer_pixbuf_set_property (GObject *object,
|
|||||||
priv->stock_id = g_strdup (g_value_get_string (value));
|
priv->stock_id = g_strdup (g_value_get_string (value));
|
||||||
break;
|
break;
|
||||||
case PROP_STOCK_SIZE:
|
case PROP_STOCK_SIZE:
|
||||||
priv->stock_size = g_value_get_enum (value);
|
priv->stock_size = g_value_get_uint (value);
|
||||||
break;
|
break;
|
||||||
case PROP_STOCK_DETAIL:
|
case PROP_STOCK_DETAIL:
|
||||||
if (priv->stock_detail)
|
if (priv->stock_detail)
|
||||||
|
|||||||
Reference in New Issue
Block a user