Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-page-action.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch for case unsensitive page label match by Michael Lee. See bugNickolay V. Shmyrev2008-09-071-0/+4
| | | | | | | | | | | | | | | | | | | | 2008-09-07 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-page-cache.c (ev_page_cache_set_page_label): Patch for case unsensitive page label match by Michael Lee. See bug #550136. * shell/ev-page-action.c (create_tool_item): * test/Makefile.am: * test/test1.py: * test/test4.py: * test/test5.py: Added test for the above and updated other tests. svn path=/trunk/; revision=3161
* More #include cleanups. Again: reordering, single gtk.h includes and otherWouter Bolsterlee2008-08-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org> * backend/impress/impress-document.c: * backend/impress/render.h: * libdocument/ev-document-factory.c: * libdocument/ev-document-factory.h: * libdocument/ev-document-links.h: * libdocument/ev-document-misc.c: * libdocument/ev-document-misc.h: * properties/ev-properties-main.c: * properties/ev-properties-view.c: * properties/ev-properties-view.h: * shell/eggfindbar.c: * shell/eggfindbar.h: * shell/ev-application.c: * shell/ev-application.h: * shell/ev-jobs.h: * shell/ev-message-area.h: * shell/ev-navigation-action.c: * shell/ev-navigation-action.h: * shell/ev-open-recent-action.c: * shell/ev-open-recent-action.h: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-page-action.h: * shell/ev-page-cache.h: * shell/ev-password-view.h: * shell/ev-password.h: * shell/ev-pixbuf-cache.h: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-links.c: * shell/ev-sidebar-links.h: * shell/ev-sidebar-thumbnails.c: * shell/ev-sidebar-thumbnails.h: * shell/ev-sidebar.c: * shell/ev-sidebar.h: * shell/ev-stock-icons.c: * shell/ev-tooltip.h: * shell/ev-view.c: * shell/ev-view.h: * shell/ev-window.c: * shell/ev-window.h: * shell/main.c: More #include cleanups. Again: reordering, single gtk.h includes and other stuff. svn path=/trunk/; revision=3095
* Cleanup many #include statements: reorder so that a generic-to-specificWouter Bolsterlee2008-08-031-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-03 Wouter Bolsterlee <wbolster@svn.gnome.org> * shell/eggfindbar.c: * shell/ev-application.c: * shell/ev-message-area.c: * shell/ev-navigation-action.c: * shell/ev-open-recent-action.c: * shell/ev-page-action-widget.c: * shell/ev-page-action.c: * shell/ev-password-view.c: * shell/ev-properties-dialog.c: * shell/ev-properties-fonts.c: * shell/ev-sidebar-attachments.c: * shell/ev-sidebar-page.c: * shell/ev-sidebar-thumbnails.c: * shell/ev-stock-icons.c: * shell/ev-tooltip.c: * shell/ev-view.c: * shell/ev-window.c: * shell/main.c: Cleanup many #include statements: reorder so that a generic-to-specific order is used, use single gtk.h includes, and some other cleanups. svn path=/trunk/; revision=3094
* Only grab the focus for the current visible proxy widget. Fixes bugCarlos Garcia Campos2008-03-311-1/+3
| | | | | | | | | | | 2008-03-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-page-action.c: (ev_page_action_grab_focus): Only grab the focus for the current visible proxy widget. Fixes bug #521224. svn path=/trunk/; revision=2984
* Scroll pages in page entry with mouse wheel. Fixes bug #324122. Thanks toNickolay V. Shmyrev2007-12-201-0/+17
| | | | | | | | | | | | 2007-12-21 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-page-action.c: (page_scroll_cb), (create_tool_item): Scroll pages in page entry with mouse wheel. Fixes bug #324122. Thanks to David Turner <cillian64@googlemail.com>. svn path=/trunk/; revision=2776
* History finally works as expected.Nickolay V. Shmyrev2007-01-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-28 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-navigation-action.c: (activate_menu_item_cb), (ev_navigation_action_class_init): * shell/ev-navigation-action.h: * shell/ev-page-action.c: (activate_cb): * shell/ev-page-cache.c: (ev_page_cache_class_init), (ev_page_cache_set_current_page_history): * shell/ev-page-cache.h: * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (ev_sidebar_icon_selection_changed), (page_changed_cb): * shell/ev-view-private.h: * shell/ev-view.c: (ev_view_handle_link), (ev_view_class_init): * shell/ev-view.h: * shell/ev-window.c: (page_changed_cb), (history_changed_cb), (ev_window_setup_document), (ev_window_load_job_cb): * shell/ev-window.h: History finally works as expected. svn path=/trunk/; revision=2259
* Remove activate_link signal, not required.Nickolay V. Shmyrev2007-01-281-28/+11
| | | | | | | | | | | | | | | | | 2007-01-28 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-marshal.list: * shell/ev-page-action.c: (activate_cb), (ev_page_action_class_init): * shell/ev-page-action.h: * shell/ev-page-cache.c: (ev_page_cache_set_page_label): * shell/ev-window.c: Remove activate_link signal, not required. svn path=/trunk/; revision=2256
* Check if text inserted in page entry is a valid page number when itCarlos Garcia Campos2006-12-151-6/+23
| | | | | | | | 2006-12-15 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-page-action.[ch]: (activate_cb): * shell/ev-window.c: (activate_label_cb): Check if text inserted in page entry is a valid page number when it doesn't match to any document page label. Fixes bug #383165.
* Preliminary history implementationNickolay V. Shmyrev2006-11-191-305/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-11-19 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * data/evince-toolbar.xml: * po/POTFILES.in: * shell/Makefile.am: * shell/ev-navigation-action-widget.c: (ev_navigation_action_widget_init), (ev_navigation_action_widget_class_init), (menu_deactivate_cb), (menu_detacher), (ev_navigation_action_widget_set_menu), (menu_position_func), (popup_menu_under_arrow), (ev_navigation_action_widget_toggled), (ev_navigation_action_widget_button_press_event): * shell/ev-navigation-action-widget.h: * shell/ev-navigation-action.c: (ev_navigation_action_set_history), (ev_navigation_action_set_window), (activate_menu_item_cb), (new_history_menu_item), (new_empty_history_menu_item), (build_menu), (menu_activated_cb), (connect_proxy), (create_tool_item), (ev_navigation_action_init), (ev_navigation_action_finalize), (ev_navigation_action_class_init): * shell/ev-navigation-action.h: * shell/ev-page-action-widget.c: (ev_page_action_widget_init), (ev_page_action_widget_set_page_cache), (ev_page_action_widget_finalize), (ev_page_action_widget_class_init), (match_selected_cb), (display_completion_text), (match_completion), (build_new_tree_cb), (get_filter_model_from_model), (ev_page_action_widget_update_model): * shell/ev-page-action-widget.h: * shell/ev-page-action.c: (activate_link_cb), (update_model), (connect_proxy): * shell/ev-page-action.h: * shell/ev-stock-icons.c: * shell/ev-stock-icons.h: * shell/ev-window.c: (ev_window_setup_action_sensitivity), (page_changed_cb), (ev_window_setup_document), (ev_window_dispose), (register_custom_actions): * shell/main.c: Preliminary history implementation
* Rework links system, it adds support for remote links now and it makesCarlos Garcia Campos2006-05-021-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | 2006-05-02 Carlos Garcia Campos <carlosgc@gnome.org> * backend/Makefile.am: * backend/ev-document-links.[ch]: * backend/ev-document.[ch]: * backend/ev-link-action.[ch]: * backend/ev-link-dest.[ch]: * backend/ev-link.[ch]: * pdf/ev-poppler.cc: (pdf_document_find_link_dest), (ev_link_dest_from_dest), (ev_link_from_action), (build_tree): * shell/ev-page-action.c: (build_new_tree_cb): * shell/ev-sidebar-links.c: (get_page_from_dest), (print_section_cb), (links_page_num_func), (update_page_callback): * shell/ev-view.[ch]: (ev_view_goto_dest), (ev_view_handle_link), (tip_from_link): * shell/ev-jobs.c: * shell/ev-window.[ch]: (ev_window_open_uri), (sidebar_links_link_activated_cb), (ev_view_popup_cmd_open_link): * shell/ev-application.[ch]: (ev_application_open_window), (ev_application_open_uri): Rework links system, it adds support for remote links now and it makes easier to add new kinds of actions and destinations. Fixes bug #317292
* Fix for the bug #325067 with more intelligent selection of current link inNickolay V. Shmyrev2005-12-281-1/+1
| | | | | | | | | | | | | | | | | * backend/ev-link.c: (ev_link_get_page), (ev_link_init): * shell/ev-page-action.c: (build_new_tree_cb): * shell/ev-sidebar-links.c: (links_page_num_func), (update_page_callback_foreach), (update_page_callback): * shell/ev-view.c: (scroll_to_current_page): Fix for the bug #325067 with more intelligent selection of current link in sidebar. Make sidebar handle links of FITR-like type more correctly. * dvi/pixbuf-device.c: (dvi_pixbuf_draw_rule), (dvi_pixbuf_put_pixel): Fix memory consumtion with disabled alpha channel.
* "marco, maybe we should be crazy and jump right to 6! :)"Marco Pesenti Gritti2005-09-221-1/+1
| | | | | | | | | | 2005-09-22 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (page_changed_cb): "marco, maybe we should be crazy and jump right to 6! :)" Bryan Clark, Sep 2005
* Point to the correct function in constructor of the activate_label signalCrispin Flowerday2005-08-111-1/+1
| | | | | | | | | 2005-08-11 Crispin Flowerday <gnome@flowerday.cx> * shell/ev-page-action.c (ev_page_action_class_init): Point to the correct function in constructor of the activate_label signal
* Unref the completion after setting it to the entryNickolay V. Shmyrev2005-07-041-1/+2
|
* Fix for Bug 309080: crash on window close.Nickolay V. Shmyrev2005-06-281-2/+3
| | | | | | | | | | | * pdf/ev-poppler.cc: Fix for Bug 309080: crash on window close. * shell/ev-page-action.c: (page_changed_cb): Fix for Bug 309168: Fix build with gcc 2.95. Thanks to jensgr@gmx.net (Jens Granseuer).
* Fix memory leakNickolay V. Shmyrev2005-06-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | * cut-n-paste/recent-files/egg-recent-view-gtk.c: (egg_recent_view_gtk_finalize): Fix memory leak * cut-n-paste/toolbar-editor/Makefile.am: Fix location of cursor icon. * pdf/ev-poppler.cc: * shell/ev-page-action.c: (build_new_tree_cb), (match_selected_cb), (display_completion_text), (match_completion): * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), (selection_changed_callback), (create_loading_model), (print_section_cb), (links_page_num_func), (update_page_callback_foreach): * shell/ev-window.c: (ev_window_dispose): Small memory fixes. Links model now store objects instead of pointers to improve memory management.
* Fixed lot's of memory leaks, for example, memory leak on reload, describedNickolay V. Shmyrev2005-06-181-1/+10
| | | | | | | | | | | | | | | * shell/ev-page-action.c: (match_selected_cb), (display_completion_text), (match_completion), (update_model): * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), (expand_open_links): * shell/ev-sidebar.c: (ev_sidebar_destroy), (ev_sidebar_menu_item_activate_cb), (ev_sidebar_add_page), (ev_sidebar_set_document): * shell/ev-window.c: (ev_window_xfer_job_cb), (sidebar_widget_model_set), (sidebar_page_main_widget_update_cb): Fixed lot's of memory leaks, for example, memory leak on reload, described in bug 307793.
* Use a GtkIconView in certain situations. That situation is that you'reJonathan Blandford2005-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | Wed Jun 8 01:04:22 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-thumbnails.c: Use a GtkIconView in certain situations. That situation is that you're using GTK+-HEAD with the patch at #306726 is applied, and you have a document with < 1500 pages in it. It's not quite as uniformly nice as the TreeView, but should be better in the long run. I'm pretty sure I guarded against breaking compilation with HAVE_GTK_ICON_VIEW_GET_VISIBLE_RANGE gaurds, though it's possible I missed some. * shell/ev-window.c (ev_window_init): We don't have our tree/list widget yet, so I commented that code out enable_view_actions_for_widget() for now. Need to figure this out. * shell/ev-page-action.c (match_selected_cb): emit the right signals. Our cool C-l completion now works.
* PageCache and EvJobs are moved from backend to shell. Two new jobs toNickolay V. Shmyrev2005-06-071-1/+2
| | | | | load document in background and a statusbar to display this process. FileChooser now can select multiple uris.
* Set page action entry width depending on labels width. Fix for 305202Nickolay V. Shmyrev2005-05-311-0/+6
|
* Use signals to notify action activation. Hopefully I did not breakMarco Pesenti Gritti2005-05-111-2/+63
| | | | | | | | | | | | | | | | | | | 2005-05-11 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-marshal.list: * shell/ev-page-action.c: (ev_page_action_widget_class_init), (activate_cb), (match_selected_cb), (activate_link_cb), (connect_proxy), (ev_page_action_class_init): * shell/ev-page-action.h: Use signals to notify action activation. Hopefully I did not break completion since I cant test... * shell/ev-window.c: (activate_link_cb), (activate_label_cb), (register_custom_actions): Connect to page selector actions and also grab focus on the view when activated.
* Update label when connecting proxy. Fix a warning with NULL page_cache.Marco Pesenti Gritti2005-05-101-1/+3
| | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (update_pages_label), (connect_proxy): Update label when connecting proxy. Fix a warning with NULL page_cache.
* Add mnemonic for edit toolbar. ctrl+l focus the page entry.Marco Pesenti Gritti2005-05-101-0/+14
| | | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * data/evince-ui.xml: * shell/ev-page-action.c: (ev_page_action_grab_focus): * shell/ev-page-action.h: * shell/ev-window.c: (ev_window_cmd_focus_page_selector): Add mnemonic for edit toolbar. ctrl+l focus the page entry.
* Keep a weak reference on proxy->page_cache so that we dont try toMarco Pesenti Gritti2005-05-101-2/+31
| | | | | | | | | | | | | 2005-05-10 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (ev_page_action_widget_set_page_cache), (ev_page_action_widget_finalize), (ev_page_action_widget_class_init), (update_page_cache): Keep a weak reference on proxy->page_cache so that we dont try to disconnect the signal if the object is already gone. Maybe there is a better way to cleanup reference handling in page action though...
* Use connect_object rather than explicitly disconnect on dispose.Marco Pesenti Gritti2005-04-291-5/+4
| | | | | | | | | | | | 2005-04-29 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (update_page_cache), (ev_page_action_dispose): * shell/ev-window.c: (destroy_fullscreen_popup), (ev_window_create_fullscreen_popup): Use connect_object rather than explicitly disconnect on dispose.
* Fix for 173185. Number of pages is simply "of ..." when there is noNickolay V. Shmyrev2005-04-281-1/+5
| | | | page labels
* Update current page while scrolling in continuous modeNickolay V. Shmyrev2005-04-271-0/+1
| | | | CVSr ----------------------------------------------------------------------
* Put back total number of pages as (1 of 1234)Marco Pesenti Gritti2005-04-221-2/+28
| | | | | | | | | 2005-04-22 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-page-action.c: (update_pages_label), (page_changed_cb), (create_tool_item): Put back total number of pages as (1 of 1234)
* Remove some assertions, documents can have 0 pages. Make initial currentMarco Pesenti Gritti2005-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | 2005-04-16 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-page-cache.c: (ev_page_cache_init), (_ev_page_cache_new): Remove some assertions, documents can have 0 pages. Make initial current page -1. * shell/ev-page-action.c: (page_changed_cb): Show "" if current page is -1 * shell/ev-window.c: (update_action_sensitivity), (ev_window_setup_document): When document has 0 pages do not set the view and make nearly everything insensitive.
* Fix logic.Jonathan Blandford2005-04-091-2/+3
| | | | | | Sat Apr 9 00:05:36 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-page-action.c: Fix logic.
* Big reworking to make completions work iff we have >= GTK-2.7.0Jonathan Blandford2005-04-081-36/+284
| | | | | | | | | | | | | | | | | | | | | | | Fri Apr 8 01:12:24 2005 Jonathan Blandford <jrb@redhat.com> * 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.
* Changed to use page labels now. Rewrote completely because I didn'tJonathan Blandford2005-04-011-164/+125
| | | | | | | | | | | Fri Apr 1 01:59:39 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-page-action.c: Changed to use page labels now. Rewrote completely because I didn't understand GtkActions. I should read Marco's code more carefully in the future. * backend/ev-page-cache.h (ev_page_cache_set_page_label): New function
* Use an entry for the page control instead of spinbuttonsMarco Pesenti Gritti2005-02-281-33/+68
| | | | | | | | | | 2005-02-28 Marco Pesenti Gritti <marco@gnome.org> * shell/ev-page-action.c: (update_entry), (sync_entry), (activate_cb), (entry_size_request_cb), (create_tool_item), (connect_proxy): Use an entry for the page control instead of spinbuttons
* use G_DEFINE_TYPE-supplied ev_sidebar_thumbnails_parent_class variable,Martin Kretzschmar2005-01-281-6/+2
| | | | | | | | | | | | | | | | * shell/ev-sidebar-thumbnails.c (ev_sidebar_thumbnails_destroy) (ev_sidebar_thumbnails_class_init): use G_DEFINE_TYPE-supplied ev_sidebar_thumbnails_parent_class variable, don't define another parent_class variable. * shell/ev-page-action.c (connect_proxy, ev_page_action_finalize) (ev_page_action_class_init): ditto. * pixbuf/pixbuf-document.c (pixbuf_document_finalize) (pixbuf_document_class_init): ditto. * backend/ev-link.c (ev_window_dispose, ev_link_class_init): ditto.
* Set the spin button limits correctly.Anders Carlsson2005-01-131-1/+12
| | | | | | | | | | | | 2005-01-13 Anders Carlsson <andersca@gnome.org> * shell/ev-page-action.c: (update_spin), (total_pages_changed_cb), (create_tool_item): Set the spin button limits correctly. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (ev_sidebar_thumbnails_init): Support changing pages by clicking on the thumbnails.
* Change the layout to match clarkbw design.Marco Pesenti Gritti2005-01-041-0/+263
2005-01-04 Marco Pesenti Gritti <marco@gnome.org> * data/evince-ui.xml: Change the layout to match clarkbw design. * shell/Makefile.am: * shell/ev-navigation-action.c: (build_menu), (menu_activated_cb), (set_tooltip_cb), (connect_proxy), (ev_navigation_action_init), (ev_navigation_action_finalize), (ev_navigation_action_set_property), (ev_navigation_action_get_property), (ev_navigation_action_class_init): * shell/ev-navigation-action.h: Implement clarkbw toolbar navigation controls (incomplete) * shell/ev-page-action.c: (update_label), (update_spin), (value_changed_cb), (create_tool_item), (connect_proxy), (ev_page_action_init), (ev_page_action_finalize), (ev_page_action_set_property), (ev_page_action_get_property), (ev_page_action_set_current_page), (ev_page_action_set_total_pages), (ev_page_action_class_init): * shell/ev-page-action.h: Implement a page switcher in the toolbar * shell/ev-view.c: (ev_view_scroll_view): * shell/ev-window.c: (update_total_pages), (ev_window_open), (update_current_page), (view_page_changed_cb), (goto_page_cb), (register_custom_actions), (ev_window_init): Change page on PageUp/Down.