2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_button_press_event),
(ev_view_key_press_event):
Fix critical warnings when there is no document loaded.
svn path=/trunk/; revision=2330
+2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-view.c: (ev_view_button_press_event),
+ (ev_view_key_press_event):
+
+ Fix critical warnings when there is no document loaded.
+
2007-02-15 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-page-action-widget.c:
GdkEventButton *event)
{
EvView *view = EV_VIEW (widget);
+
+ if (!view->document)
+ return FALSE;
if (!GTK_WIDGET_HAS_FOCUS (widget)) {
gtk_widget_grab_focus (widget);
EvView *view = EV_VIEW (widget);
EvPresentationState current;
+ if (!view->document)
+ return FALSE;
+
if (!view->presentation ||
view->presentation_state == EV_PRESENTATION_END)
return gtk_bindings_activate_event (GTK_OBJECT (widget), event);