[Xfce4-commits] <thunar:master> Remove unused function thunar_gtk_icon_factory_insert_icon().

Nick Schermer noreply at xfce.org
Sun Dec 20 13:10:01 CET 2009


Updating branch refs/heads/master
         to 9a4900b7e9b8c8abe465d244182a2a8c2a2dd25f (commit)
       from 3072fb532daac4ae8202bcf8521faf577f128fe1 (commit)

commit 9a4900b7e9b8c8abe465d244182a2a8c2a2dd25f
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Dec 15 12:19:18 2009 +0100

    Remove unused function thunar_gtk_icon_factory_insert_icon().

 thunar/thunar-gtk-extensions.c |   38 --------------------------------------
 thunar/thunar-gtk-extensions.h |    4 ----
 2 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/thunar/thunar-gtk-extensions.c b/thunar/thunar-gtk-extensions.c
index 65d0439..42c8f0e 100644
--- a/thunar/thunar-gtk-extensions.c
+++ b/thunar/thunar-gtk-extensions.c
@@ -94,44 +94,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.
  * @widget : a #GtkWidget.
diff --git a/thunar/thunar-gtk-extensions.h b/thunar/thunar-gtk-extensions.h
index 4fe57fe..276394d 100644
--- a/thunar/thunar-gtk-extensions.h
+++ b/thunar/thunar-gtk-extensions.h
@@ -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);
 



More information about the Xfce4-commits mailing list