From 1156873bf20e9a777ddf13593d23747d0d001c91 Mon Sep 17 00:00:00 2001
From: Nick Schermer <nick@xfce.org>
Date: Thu, 9 Dec 2010 19:59:24 +0100
Subject: [PATCH] Fix Gtk 2.16 function.

---
 plugins/thunar-uca/thunar-uca-provider.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/thunar-uca/thunar-uca-provider.c b/plugins/thunar-uca/thunar-uca-provider.c
index 3ac481dd9..21e3c243c 100644
--- a/plugins/thunar-uca/thunar-uca-provider.c
+++ b/plugins/thunar-uca/thunar-uca-provider.c
@@ -220,7 +220,11 @@ thunar_uca_provider_get_file_actions (ThunarxMenuProvider *menu_provider,
 
           /* create the new action with the given parameters */
           action = gtk_action_new (name, label, tooltip, NULL);
+#if GTK_CHECK_VERSION (2, 16, 0)
           gtk_action_set_icon_name (action, icon_name);
+#else
+          g_object_set (G_OBJECT (action), "icon-name", icon_name, NULL);
+#endif
 
           /* grab a tree row reference on the given path */
           row = gtk_tree_row_reference_new (GTK_TREE_MODEL (uca_provider->model), lp->data);
-- 
GitLab