diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-30 23:13:21 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-30 23:13:21 +0100 |
commit | 70a9d462ec240b59bab82bc46ac60f64cb801a40 (patch) | |
tree | 8afd9003aa95f8dc7ed3e76efbbdc6840f5c6259 /plugins/filebrowser/pluma-file-browser-widget.c | |
parent | 3fa783ec0ec552b91203f713db74d7c5919bfc7c (diff) | |
download | pluma-70a9d462ec240b59bab82bc46ac60f64cb801a40.tar.bz2 pluma-70a9d462ec240b59bab82bc46ac60f64cb801a40.tar.xz |
filebrowser: Improve GTK3 support
Diffstat (limited to 'plugins/filebrowser/pluma-file-browser-widget.c')
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-widget.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c index 8e9a0a84..6e6be102 100644 --- a/plugins/filebrowser/pluma-file-browser-widget.c +++ b/plugins/filebrowser/pluma-file-browser-widget.c @@ -997,7 +997,11 @@ create_toolbar (PlumaFileBrowserWidget * obj, "DirectoryPrevious"); g_object_set (action, "is_important", TRUE, "short_label", _("Previous location"), NULL); +#if GTK_CHECK_VERSION (2, 16, 0) + gtk_activatable_set_related_action (GTK_ACTIVATABLE (widget), action); +#else gtk_action_connect_proxy (action, widget); +#endif gtk_toolbar_insert (GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM (widget), 0); /* Next directory menu tool item */ @@ -1018,7 +1022,11 @@ create_toolbar (PlumaFileBrowserWidget * obj, "DirectoryNext"); g_object_set (action, "is_important", TRUE, "short_label", _("Previous location"), NULL); +#if GTK_CHECK_VERSION (2, 16, 0) + gtk_activatable_set_related_action (GTK_ACTIVATABLE (widget), action); +#else gtk_action_connect_proxy (action, widget); +#endif gtk_toolbar_insert (GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM (widget), 1); gtk_box_pack_start (GTK_BOX (obj), toolbar, FALSE, FALSE, 0); |