return FALSE;
}
+void ev_view_presentation_resize_cb (EvViewPresentation *pview,
+ gpointer data)
+ {
+ GdkScreen *screen = gtk_widget_get_screen (GTK_WIDGET(pview));
+ GdkRectangle monitor;
+ gint monitor_num;
+
+ monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (GTK_WIDGET(pview)));
+ gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
+ g_printf("%d %d\n",monitor.width,monitor.height);
+ }
+
static gboolean
init_presentation (GtkWidget *widget)
{
GdkRectangle monitor;
gint monitor_num;
+ g_signal_connect_swapped(G_OBJECT(screen), "size-changed",
+ G_CALLBACK(ev_view_presentation_resize_cb),G_OBJECT(pview));
+
+
monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (widget));
gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
pview->monitor_width = monitor.width;