eog r4877 - in branches/gnome-2-24: . src



Author: friemann
Date: Sun Nov 16 20:25:24 2008
New Revision: 4877
URL: http://svn.gnome.org/viewvc/eog?rev=4877&view=rev

Log:
2008-11-16  Felix Riemann  <friemann svn gnome org>

	* src/eog-window.c: (eog_window_key_press): Fix broken keyboard
	keys if the toolbar is hidden and no image being displayed yet.
	Fixes bug #560396 (Frederic Peters).


Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/eog-window.c

Modified: branches/gnome-2-24/src/eog-window.c
==============================================================================
--- branches/gnome-2-24/src/eog-window.c	(original)
+++ branches/gnome-2-24/src/eog-window.c	Sun Nov 16 20:25:24 2008
@@ -4445,9 +4445,10 @@
 
 	/* If the focus is not in the toolbar and we still haven't handled the
 	   event, give the scrollview a chance to do it.  */
-	if ((tbcontainer->focus_child == NULL) && result == FALSE) {
-		result = gtk_widget_event (GTK_WIDGET (EOG_WINDOW (widget)->priv->view),
-					   (GdkEvent *) event);
+	if (tbcontainer->focus_child == NULL && result == FALSE && 
+		GTK_WIDGET_REALIZED(GTK_WIDGET (EOG_WINDOW (widget)->priv->view))) {
+			result = gtk_widget_event (GTK_WIDGET (EOG_WINDOW (widget)->priv->view),
+						   (GdkEvent *) event);
 	}
 
 	if (result == FALSE && GTK_WIDGET_CLASS (eog_window_parent_class)->key_press_event) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]