diff options
author | Nick Schermer <nick@xfce.org> | 2010-12-09 19:59:24 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2010-12-09 19:59:40 +0100 |
commit | 1156873bf20e9a777ddf13593d23747d0d001c91 (patch) | |
tree | d16c4dd2b3485581f038fa7d779531c7bacdf501 | |
parent | d6e30c7e140b375fab4f78751e6436a6329f8c17 (diff) | |
download | thunar-1156873bf20e9a777ddf13593d23747d0d001c91.tar.gz |
Fix Gtk 2.16 function.
-rw-r--r-- | 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 3ac481dd..21e3c243 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); |