1495 GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
1496 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
1497 GtkBindingSet *binding_set;
1513 #if GTK_CHECK_VERSION(3, 20, 0)
1514 gtk_widget_class_set_css_name (widget_class,
"evpresentationview");
1521 g_object_class_install_property (gobject_class,
1523 g_param_spec_object (
"document",
1528 G_PARAM_CONSTRUCT_ONLY |
1529 G_PARAM_STATIC_STRINGS));
1530 g_object_class_install_property (gobject_class,
1532 g_param_spec_uint (
"current-page",
1538 G_PARAM_STATIC_STRINGS));
1539 g_object_class_install_property (gobject_class,
1541 g_param_spec_uint (
"rotation",
1543 "Current rotation angle",
1547 G_PARAM_STATIC_STRINGS));
1548 g_object_class_install_property (gobject_class,
1550 g_param_spec_boolean (
"inverted-colors",
1552 "Whether presentation is displayed with inverted colors",
1555 G_PARAM_CONSTRUCT_ONLY |
1556 G_PARAM_STATIC_STRINGS));
1559 g_signal_new (
"change_page",
1560 G_OBJECT_CLASS_TYPE (gobject_class),
1561 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
1564 g_cclosure_marshal_VOID__ENUM,
1566 GTK_TYPE_SCROLL_TYPE);
1568 g_signal_new (
"finished",
1569 G_OBJECT_CLASS_TYPE (gobject_class),
1570 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
1573 g_cclosure_marshal_VOID__VOID,
1577 g_signal_new (
"external-link",
1578 G_TYPE_FROM_CLASS (gobject_class),
1579 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
1582 g_cclosure_marshal_VOID__OBJECT,
1586 binding_set = gtk_binding_set_by_class (klass);
1591 gtk_binding_entry_add_signal (binding_set, GDK_KEY_space, 0,
1593 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD);
1594 gtk_binding_entry_add_signal (binding_set, GDK_KEY_space, GDK_SHIFT_MASK,
1596 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD);
1597 gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, 0,
1599 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD);
1600 gtk_binding_entry_add_signal (binding_set, GDK_KEY_Page_Down, 0,
1602 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD);
1603 gtk_binding_entry_add_signal (binding_set, GDK_KEY_Page_Up, 0,
1605 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD);
1606 gtk_binding_entry_add_signal (binding_set, GDK_KEY_J, 0,
1608 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD);
1609 gtk_binding_entry_add_signal (binding_set, GDK_KEY_H, 0,
1611 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD);
1612 gtk_binding_entry_add_signal (binding_set, GDK_KEY_L, 0,
1614 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD);
1615 gtk_binding_entry_add_signal (binding_set, GDK_KEY_K, 0,
1617 GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD);