diff options
Diffstat (limited to 'plugins/filebrowser/pluma-file-browser-view.c')
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-view.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-view.c b/plugins/filebrowser/pluma-file-browser-view.c index e2488415..6092248c 100644 --- a/plugins/filebrowser/pluma-file-browser-view.c +++ b/plugins/filebrowser/pluma-file-browser-view.c @@ -22,7 +22,11 @@ #include <string.h> #include <gio/gio.h> #include <pluma/pluma-plugin.h> +#include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> +#if GTK_CHECK_VERSION (3, 0, 0) +#include <gdk/gdkkeysyms-compat.h> +#endif #include "pluma-file-browser-store.h" #include "pluma-file-bookmarks-store.h" @@ -319,7 +323,7 @@ set_click_policy_property (PlumaFileBrowserView *obj, obj->priv->hover_path = NULL; } - if (GTK_WIDGET_REALIZED (GTK_WIDGET (obj))) { + if (gtk_widget_get_realized (GTK_WIDGET (obj))) { win = gtk_widget_get_window (GTK_WIDGET (obj)); gdk_window_set_cursor (win, NULL); @@ -638,7 +642,11 @@ key_press_event (GtkWidget *widget, handled = FALSE; break; } +#if GTK_CHECK_VERSION (3, 0, 0) + if (!gtk_widget_has_focus (widget)) { +#else if (!GTK_WIDGET_HAS_FOCUS (widget)) { +#endif handled = FALSE; break; } |