From fa65a5177e3045d1ddd3f0c7d60b831a5134d57a Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Fri, 08 Apr 2005 05:28:38 +0000 Subject: Big reworking to make completions work iff we have >= GTK-2.7.0 Fri Apr 8 01:12:24 2005 Jonathan Blandford * shell/ev-page-action.h: * shell/ev-page-action.c: (ev_page_action_widget_init), (ev_page_action_widget_class_init), (page_changed_cb), (create_tool_item), (update_page_cache), (build_new_tree_cb), (get_filter_model_from_model), (match_selected_cb), (display_completion_text), (match_completion), (update_model), (connect_proxy), (ev_page_action_set_property), (ev_page_action_get_property), (ev_page_action_set_document), (ev_page_action_set_model), (ev_page_action_class_init): Big reworking to make completions work iff we have >= GTK-2.7.0 * shell/ev-sidebar-links.c: (ev_sidebar_links_set_property), (ev_sidebar_links_get_property), (ev_sidebar_links_class_init), (job_finished_cb): We now have a 'model' property that is set when the links are loaded. This can be caught with "notify::model" * shell/ev-window.c: (sidebar_widget_model_set), (ev_window_init): listen for the model to be set, and propagate it to the action. --- (limited to 'shell/ev-page-action.h') diff --git a/shell/ev-page-action.h b/shell/ev-page-action.h index 295c358..636a24d 100644 --- a/shell/ev-page-action.h +++ b/shell/ev-page-action.h @@ -23,6 +23,7 @@ #define EV_PAGE_ACTION_H #include +#include #include G_BEGIN_DECLS @@ -54,9 +55,11 @@ struct _EvPageActionClass int page_number); }; -GType ev_page_action_get_type (void); -void ev_page_action_set_document (EvPageAction *page_action, - EvDocument *document); +GType ev_page_action_get_type (void); +void ev_page_action_set_document (EvPageAction *page_action, + EvDocument *document); +void ev_page_action_set_model (EvPageAction *page_action, + GtkTreeModel *model); G_END_DECLS -- cgit v0.9.1