X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-sidebar-page.c;h=8e6a33d2e07fc422dfd7cc59582df27386530523;hb=f343927df4325959193353c52cff1ea4b20b2286;hp=dfd21d3e4c8025b1a3d2ec2fc3bdfa1a002bbc03;hpb=e6e647fb236b236df1399ff4dba8faf0172002a1;p=evince.git diff --git a/shell/ev-sidebar-page.c b/shell/ev-sidebar-page.c index dfd21d3e..8e6a33d2 100644 --- a/shell/ev-sidebar-page.c +++ b/shell/ev-sidebar-page.c @@ -23,6 +23,9 @@ #endif #include "ev-sidebar-page.h" +#include + +static void ev_sidebar_page_iface_init (gpointer iface); GType ev_sidebar_page_get_type (void) @@ -31,12 +34,12 @@ ev_sidebar_page_get_type (void) if (G_UNLIKELY (type == 0)) { - static const GTypeInfo sidebar_page_info = + const GTypeInfo sidebar_page_info = { - sizeof (EvDocumentIface), + sizeof (EvSidebarPageIface), NULL, NULL, - NULL + (GClassInitFunc)ev_sidebar_page_iface_init, }; type = g_type_register_static (G_TYPE_INTERFACE, @@ -96,3 +99,13 @@ ev_sidebar_page_get_label (EvSidebarPage *sidebar_page) return iface->get_label (sidebar_page); } + +static void ev_sidebar_page_iface_init (gpointer iface) +{ + g_object_interface_install_property (iface, + g_param_spec_object ("main-widget", + "Main Widget", + "Main page widget, used to handle focus", + GTK_TYPE_WIDGET, + G_PARAM_READABLE)); +}