static gboolean
ev_dscwindow_end (GtkWidget *widget, GdkEvent *event)
{
+ EvDSCWindow *ev_dscwindow = EV_DSCWINDOW(widget);
+ EvWindow *ev_window = EV_WINDOW(ev_dscwindow->priv->presentation_window);
+ ev_window_stop_presentation (ev_window, TRUE);
gtk_widget_destroy (widget);
return TRUE;
}
{
EvDSCWindow *ev_dscwindow = EV_DSCWINDOW (obj);
EvDSCWindowPrivate *priv = EV_DSCWINDOW (ev_dscwindow)->priv;
+ EvWindow *ev_window = EV_WINDOW(priv->presentation_window);
+ if(EV_IS_WINDOW (ev_window)) {
+ if (priv->moveback_monitor >= 0) {
+ GtkWindow *presentation_window = GTK_WINDOW (priv->presentation_window);
+ GdkRectangle coords;
- if (priv->moveback_monitor >= 0) {
- GtkWindow *presentation_window = GTK_WINDOW (priv->presentation_window);
- GdkRectangle coords;
-
- gdk_screen_get_monitor_geometry (gtk_window_get_screen (presentation_window),
+ gdk_screen_get_monitor_geometry (gtk_window_get_screen (presentation_window),
priv->moveback_monitor, &coords);
- gtk_window_move (presentation_window, coords.x, coords.y);
+ gtk_window_move (presentation_window, coords.x, coords.y);
+ }
}
- ev_window_stop_presentation (EV_WINDOW(priv->presentation_window), TRUE);
G_OBJECT_CLASS (ev_dscwindow_parent_class)->dispose (obj);
}