[gedit/gnome-3-12] File browser: fix GeditView grab focus when opening a file
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-12] File browser: fix GeditView grab focus when opening a file
- Date: Wed, 28 May 2014 15:21:52 +0000 (UTC)
commit 90da2f0d892b11a448a78eb50ce85554b106d373
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 26 17:15:36 2014 +0200
File browser: fix GeditView grab focus when opening a file
All the details:
https://bugzilla.gnome.org/show_bug.cgi?id=706900
plugins/filebrowser/gedit-file-browser-view.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-view.c b/plugins/filebrowser/gedit-file-browser-view.c
index c12148b..52acf76 100644
--- a/plugins/filebrowser/gedit-file-browser-view.c
+++ b/plugins/filebrowser/gedit-file-browser-view.c
@@ -580,21 +580,16 @@ button_press_event (GtkWidget *widget,
if (event->type == GDK_2BUTTON_PRESS)
{
- /* Chain up, must be before activating the selected
- items because this will cause the view to grab focus */
- widget_parent->button_press_event (widget, event);
-
- if (view->priv->double_click_path[1] &&
- gtk_tree_path_compare (view->priv->double_click_path[0],
view->priv->double_click_path[1]) == 0)
- {
- activate_selected_items (view);
- }
+ /* Do not chain up. The row-activated signal is normally
+ * already sent, which will activate the selected item
+ * and open the file.
+ */
}
else
{
/* We're going to filter out some situations where
* we can't let the default code run because all
- * but one row would be would be deselected. We don't
+ * but one row would be deselected. We don't
* want that; we want the right click menu or single
* click to apply to everything that's currently selected. */
selected = gtk_tree_selection_path_is_selected (selection, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]