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:
parent
db4b266874
commit
36d20eb1b8
@ -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 ****************************/
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user