[eog: 2/6] Make Show Gallery not grab focus
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 2/6] Make Show Gallery not grab focus
- Date: Tue, 13 Nov 2018 22:29:31 +0000 (UTC)
commit 178e1610a4fd2c7764678a4f4e0b6fe9ee3259a4
Author: p3732 <p3732 users noreply github com>
Date: Fri Oct 26 15:42:18 2018 +0200
Make Show Gallery not grab focus
Prevent the menu pop-up from being closed after the image gallery is activated. This way all the View
submenu options behave the same way.
src/eog-window.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 268a5eff..74ef61de 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2556,7 +2556,6 @@ eog_window_action_show_hide_bar (GSimpleAction *action,
gtk_widget_realize (window->priv->thumbview);
gtk_widget_show (priv->nav);
- gtk_widget_grab_focus (priv->thumbview);
} else {
/* Make sure the focus widget is realized to
* avoid warnings on keypress events.
@@ -2567,9 +2566,6 @@ eog_window_action_show_hide_bar (GSimpleAction *action,
gtk_widget_realize (priv->view);
gtk_widget_hide (priv->nav);
-
- if (gtk_widget_get_realized (priv->view))
- gtk_widget_grab_focus (priv->view);
}
g_simple_action_set_state (action, state);
g_settings_set_boolean (priv->ui_settings,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]