[eog] Stop having EogWindow react on focus-in event in fullscreen



commit 165f3032de5384ab4073b0433b70a9aa7411b14d
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 36f2771..87af06b 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4713,24 +4713,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)
@@ -4849,7 +4831,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]