[Xfce4-commits] <thunar:master> Fix Gtk 2.16 function.
Nick Schermer
noreply at xfce.org
Thu Dec 9 20:02:01 CET 2010
Updating branch refs/heads/master
to 1156873bf20e9a777ddf13593d23747d0d001c91 (commit)
from d6e30c7e140b375fab4f78751e6436a6329f8c17 (commit)
commit 1156873bf20e9a777ddf13593d23747d0d001c91
Author: Nick Schermer <nick at xfce.org>
Date: Thu Dec 9 19:59:24 2010 +0100
Fix Gtk 2.16 function.
plugins/thunar-uca/thunar-uca-provider.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/plugins/thunar-uca/thunar-uca-provider.c b/plugins/thunar-uca/thunar-uca-provider.c
index 3ac481d..21e3c24 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);
More information about the Xfce4-commits
mailing list