[eog/gnome-2-32] Stop having EogWindow react on focus-in event in fullscreen
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gnome-2-32] Stop having EogWindow react on focus-in event in fullscreen
- Date: Wed, 11 Aug 2010 17:41:54 +0000 (UTC)
commit e86b081699e55e2591244edc0a810c0e8014964a
Author: Felix Riemann <friemann gnome org>
Date: Wed Aug 11 19:05:54 2010 +0200
Stop having EogWindow react on focus-in event in fullscreen
There appears to be no actual use case for doing this.
Fixes the toolbar appearing after regaining focus (e.g. after deleting
an image or ALT+TABing). Fixes bug 626569.
src/eog-window.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index e3c373b..d6eadb8 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -5189,24 +5189,6 @@ eog_window_unrealize (GtkWidget *widget)
GTK_WIDGET_CLASS (eog_window_parent_class)->unrealize (widget);
}
-static gboolean
-eog_window_focus_in_event (GtkWidget *widget, GdkEventFocus *event)
-{
- EogWindow *window = EOG_WINDOW (widget);
- EogWindowPrivate *priv = window->priv;
- gboolean fullscreen;
-
- eog_debug (DEBUG_WINDOW);
-
- fullscreen = priv->mode == EOG_WINDOW_MODE_FULLSCREEN ||
- priv->mode == EOG_WINDOW_MODE_SLIDESHOW;
-
- if (fullscreen) {
- show_fullscreen_popup (window);
- }
-
- return GTK_WIDGET_CLASS (eog_window_parent_class)->focus_in_event (widget, event);
-}
static gboolean
eog_window_focus_out_event (GtkWidget *widget, GdkEventFocus *event)
@@ -5311,7 +5293,6 @@ eog_window_class_init (EogWindowClass *class)
widget_class->configure_event = eog_window_configure_event;
widget_class->window_state_event = eog_window_window_state_event;
widget_class->unrealize = eog_window_unrealize;
- widget_class->focus_in_event = eog_window_focus_in_event;
widget_class->focus_out_event = eog_window_focus_out_event;
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]