eog r4878 - in trunk: . src
- From: friemann svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4878 - in trunk: . src
- Date: Sun, 16 Nov 2008 20:51:23 +0000 (UTC)
Author: friemann
Date: Sun Nov 16 20:51:23 2008
New Revision: 4878
URL: http://svn.gnome.org/viewvc/eog?rev=4878&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:
trunk/ChangeLog
trunk/src/eog-window.c
Modified: trunk/src/eog-window.c
==============================================================================
--- trunk/src/eog-window.c (original)
+++ trunk/src/eog-window.c Sun Nov 16 20:51:23 2008
@@ -4516,9 +4516,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]