Commit 9a4900b7 authored by Nick Schermer's avatar Nick Schermer

Remove unused function thunar_gtk_icon_factory_insert_icon().

parent 3072fb53
......@@ -93,44 +93,6 @@ thunar_gtk_action_group_set_action_sensitive (GtkActionGroup *action_group,
/**
* thunar_gtk_icon_factory_insert_icon:
* @icon_factory : a #GtkIconFactory.
* @stock_id : the stock id of the icon to be inserted.
* @icon_name : the name of the themed icon or an absolute
* path to an icon file.
*
* Inserts an entry into the @icon_factory, with the specified
* @stock_id, for the given @icon_name, which can be either an
* icon name (of a themed icon) or an absolute path to an icon
* file.
**/
void
thunar_gtk_icon_factory_insert_icon (GtkIconFactory *icon_factory,
const gchar *stock_id,
const gchar *icon_name)
{
GtkIconSource *icon_source;
GtkIconSet *icon_set;
_thunar_return_if_fail (GTK_IS_ICON_FACTORY (icon_factory));
_thunar_return_if_fail (icon_name != NULL);
_thunar_return_if_fail (stock_id != NULL);
icon_set = gtk_icon_set_new ();
icon_source = gtk_icon_source_new ();
if (G_UNLIKELY (g_path_is_absolute (icon_name)))
gtk_icon_source_set_filename (icon_source, icon_name);
else
gtk_icon_source_set_icon_name (icon_source, icon_name);
gtk_icon_set_add_source (icon_set, icon_source);
gtk_icon_factory_add (icon_factory, stock_id, icon_set);
gtk_icon_source_free (icon_source);
gtk_icon_set_unref (icon_set);
}
/**
* thunar_gtk_label_set_a11y_relation:
* @label : a #GtkLabel.
......
......@@ -32,10 +32,6 @@ void thunar_gtk_action_group_set_action_sensitive (GtkActionGroup *a
const gchar *action_name,
gboolean sensitive);
void thunar_gtk_icon_factory_insert_icon (GtkIconFactory *icon_factory,
const gchar *stock_id,
const gchar *icon_name);
void thunar_gtk_label_set_a11y_relation (GtkLabel *label,
GtkWidget *widget);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment