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-view.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-view.c')
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-view.c b/plugins/filebrowser/pluma-file-browser-view.c index eaad61fc..6092248c 100644 --- a/plugins/filebrowser/pluma-file-browser-view.c +++ b/plugins/filebrowser/pluma-file-browser-view.c @@ -323,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); @@ -642,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; } |