gobject_class->finalize = gtk_icon_finalize;
}
-/**
- * gtk_icon_get_base_size:
- * @self: a #GtkIcon
- *
- * Gets the base size for the icon. The base size
- * is a size for the icon that was specified by
- * the icon theme creator. This may be different
- * than the actual size of image;
- * These icons will be given
- * the same base size as the larger icons to which
- * they are attached.
- *
- * Note that for scaled icons the base size does
- * not include the base scale.
- *
- * Returns: the base size, or 0, if no base
- * size is known for the icon.
- */
-gint
-gtk_icon_get_base_size (GtkIcon *icon)
-{
- g_return_val_if_fail (icon != NULL, 0);
-
- return icon->dir_size;
-}
-
-/**
- * gtk_icon_get_base_scale:
- * @self: a #GtkIcon
- *
- * Gets the base scale for the icon. The base scale is a scale
- * for the icon that was specified by the icon theme creator.
- * For instance an icon drawn for a high-dpi monitor with window
- * scale 2 for a base size of 32 will be 64 pixels tall and have
- * a base scale of 2.
- *
- * Returns: the base scale
- */
-gint
-gtk_icon_get_base_scale (GtkIcon *icon)
-{
- g_return_val_if_fail (icon != NULL, 0);
-
- return icon->dir_scale;
-}
-
/**
* gtk_icon_get_filename:
* @self: a #GtkIcon
GDK_AVAILABLE_IN_ALL
GType gtk_icon_get_type (void) G_GNUC_CONST;
-GDK_AVAILABLE_IN_ALL
-gint gtk_icon_get_base_size (GtkIcon *self);
-GDK_AVAILABLE_IN_ALL
-gint gtk_icon_get_base_scale (GtkIcon *self);
GDK_AVAILABLE_IN_ALL
const gchar * gtk_icon_get_filename (GtkIcon *self);
GDK_AVAILABLE_IN_ALL
{
GdkPaintable *paintable = GDK_PAINTABLE (icon);
- g_print ("Base size: %d, Scale: %d\n", gtk_icon_get_base_size (icon), gtk_icon_get_base_scale (icon));
g_print ("texture size: %dx%d\n", gdk_paintable_get_intrinsic_width (paintable), gdk_paintable_get_intrinsic_height (paintable));
g_object_unref (icon);