[gnome-shell] st-texture-cache: Remove load_icon_name
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-texture-cache: Remove load_icon_name
- Date: Tue, 16 Oct 2012 15:01:34 +0000 (UTC)
commit b7acb1d488eab6c4869aa78a7f1d5c0ca6ac91ab
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Oct 2 17:55:24 2012 -0300
st-texture-cache: Remove load_icon_name
With the St.Icon bug fixed, we have removed the last use of load_icon_name.
Celebration time!
src/st/st-texture-cache.c | 35 -----------------------------------
src/st/st-texture-cache.h | 5 -----
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index 2111432..0508006 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -1162,41 +1162,6 @@ st_texture_cache_load_sliced_image (StTextureCache *cache,
}
/**
- * st_texture_cache_load_icon_name:
- * @cache: The texture cache instance
- * @theme_node: (allow-none): a #StThemeNode
- * @name: Name of a themed icon
- * @size: Size of themed icon
- *
- * Load a themed icon into a texture. The colors used for symbolic
- * icons are derived from @theme_node.
- *
- * Return Value: (transfer none): A new #ClutterTexture for the icon
- */
-ClutterActor *
-st_texture_cache_load_icon_name (StTextureCache *cache,
- StThemeNode *theme_node,
- const char *name,
- gint size)
-{
- ClutterActor *texture;
- GIcon *themed;
-
- themed = g_themed_icon_new_with_default_fallbacks (name);
- texture = load_gicon_with_colors (cache, themed, size,
- theme_node ? st_theme_node_get_icon_colors (theme_node) : NULL);
- g_object_unref (themed);
-
- if (texture == NULL)
- {
- texture = (ClutterActor *) create_default_texture ();
- clutter_actor_set_size (texture, size, size);
- }
-
- return texture;
-}
-
-/**
* st_texture_cache_load_uri_async:
* @cache: The texture cache instance
* @uri: uri of the image file from which to create a pixbuf
diff --git a/src/st/st-texture-cache.h b/src/st/st-texture-cache.h
index b5c563b..ce9857d 100644
--- a/src/st/st-texture-cache.h
+++ b/src/st/st-texture-cache.h
@@ -81,11 +81,6 @@ ClutterActor *st_texture_cache_bind_pixbuf_property (StTextureCache *cache,
GObject *object,
const char *property_name);
-ClutterActor *st_texture_cache_load_icon_name (StTextureCache *cache,
- StThemeNode *theme_node,
- const char *name,
- gint size);
-
ClutterActor *st_texture_cache_load_gicon (StTextureCache *cache,
StThemeNode *theme_node,
GIcon *icon,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]