st-entry: Remove unused set_icon_from_file methods

This lets us ditch some methods in the texture cache.

https://bugzilla.gnome.org/show_bug.cgi?id=672273
This commit is contained in:
Jasper St. Pierre 2012-03-16 23:18:26 -04:00
parent db4b266874
commit 36d20eb1b8
2 changed files with 0 additions and 65 deletions

View File

@ -901,25 +901,6 @@ _st_entry_set_icon (StEntry *entry,
clutter_actor_queue_relayout (CLUTTER_ACTOR (entry)); clutter_actor_queue_relayout (CLUTTER_ACTOR (entry));
} }
static void
_st_entry_set_icon_from_file (StEntry *entry,
ClutterActor **icon,
const gchar *filename)
{
ClutterActor *new_icon = NULL;
if (filename)
{
StTextureCache *cache;
cache = st_texture_cache_get_default ();
new_icon = (ClutterActor*) st_texture_cache_load_file_simple (cache, filename);
}
_st_entry_set_icon (entry, icon, new_icon);
}
/** /**
* st_entry_set_primary_icon: * st_entry_set_primary_icon:
* @entry: a #StEntry * @entry: a #StEntry
@ -960,48 +941,6 @@ st_entry_set_secondary_icon (StEntry *entry,
_st_entry_set_icon (entry, &priv->secondary_icon, icon); _st_entry_set_icon (entry, &priv->secondary_icon, icon);
} }
/**
* st_entry_set_primary_icon_from_file:
* @entry: a #StEntry
* @filename: (allow-none): filename of an icon
*
* Set the primary icon of the entry to the given filename
*/
void
st_entry_set_primary_icon_from_file (StEntry *entry,
const gchar *filename)
{
StEntryPrivate *priv;
g_return_if_fail (ST_IS_ENTRY (entry));
priv = entry->priv;
_st_entry_set_icon_from_file (entry, &priv->primary_icon, filename);
}
/**
* st_entry_set_secondary_icon_from_file:
* @entry: a #StEntry
* @filename: (allow-none): filename of an icon
*
* Set the primary icon of the entry to the given filename
*/
void
st_entry_set_secondary_icon_from_file (StEntry *entry,
const gchar *filename)
{
StEntryPrivate *priv;
g_return_if_fail (ST_IS_ENTRY (entry));
priv = entry->priv;
_st_entry_set_icon_from_file (entry, &priv->secondary_icon, filename);
}
/******************************************************************************/ /******************************************************************************/
/*************************** ACCESSIBILITY SUPPORT ****************************/ /*************************** ACCESSIBILITY SUPPORT ****************************/
/******************************************************************************/ /******************************************************************************/

View File

@ -78,10 +78,6 @@ void st_entry_set_primary_icon (StEntry *entry,
ClutterActor *icon); ClutterActor *icon);
void st_entry_set_secondary_icon (StEntry *entry, void st_entry_set_secondary_icon (StEntry *entry,
ClutterActor *icon); ClutterActor *icon);
void st_entry_set_primary_icon_from_file (StEntry *entry,
const gchar *filename);
void st_entry_set_secondary_icon_from_file (StEntry *entry,
const gchar *filename);
G_END_DECLS G_END_DECLS