summaryrefslogtreecommitdiff
path: root/src/plugins/totem-plugin.h
Commit message (Collapse)AuthorAgeFilesLines
* preferences: Move the plugins settingsKrifa752022-11-231-1/+0
| | | | | | | Libpeas-gtk will not be ported to Gtk4, so let's remove the dependency and build the list of plugins ourselves. Closes: #548
* plugins: Simplify TOTEM_PLUGIN_REGISTER() macroBastien Nocera2022-11-171-19/+5
| | | | Type and register codes aren't used anymore.
* plugins: Remove support for configurable pluginsBastien Nocera2022-11-171-21/+0
| | | | We don't use them internally, and they usually make for bad UI anyway.
* all: Clean up headersBastien Nocera2022-03-311-9/+1
| | | | Use #pragma once and remove G_BEGIN_DECLS/G_END_DECLS
* plugins: Always include top-level totem.hBastien Nocera2022-03-301-0/+1
| | | | Rather than require every plugin to do it to define TotemObject.
* plugins: Don't use intermediate private structBastien Nocera2022-02-211-6/+0
|
* plugins: Replace deprecated g_type_class_add_private()Gabor Karsay2019-09-261-2/+2
| | | | g_type_class_add_private has been deprecated since GObject 2.58.
* plugins: Fix GIR compiler warningBastien Nocera2012-04-281-1/+1
| | | | plugins/totem-plugin.h:144: Warning: Totem: multiple comment blocks documenting 'TOTEM_PLUGIN_REGISTER:' identifier.
* Move plugin struct and init functions to totem-plugin.hPhilip Withnall2010-09-051-1/+21
| | | | | | If all plugins are forced to use private data structs correctly, their instance structs and init functions become very standard, so can be moved into _TOTEM_PLUGIN_REGISTER to save code.
* Move plugin class struct and type function definitions to totem-plugin.hPhilip Withnall2010-09-051-0/+4
| | | | | They should all be very standard, so we same some clutter by putting them in the _TOTEM_PLUGIN_REGISTER macro.
* Factor out common code in plugin macros to a new _TOTEM_PLUGIN_REGISTER macroPhilip Withnall2010-09-051-71/+21
|
* Add missing include for configurable pluginsBastien Nocera2010-09-031-0/+1
| | | | Otherwise they'd need to include libpeas-gtk themselves.
* Port to libpeas 0.5.5Bastien Nocera2010-08-191-6/+6
| | | | With its renaming of PeasUI to PeasGtk
* Require libpeas 0.5.4Bastien Nocera2010-08-061-4/+76
| | | | And update the helper macros.
* Re-add support for configurable pluginsPhilip Withnall2010-07-111-0/+51
|
* Add missing documentationPhilip Withnall2010-06-191-0/+9
|
* Add helper macro for registering pluginsBastien Nocera2010-06-161-293/+35
|
* Bug 578387 – Remaining API documentation additionsPhilip Withnall2009-04-301-5/+79
| | | | | | | | | | | | | | This adds a load of .h files to the ignore list, and documents the remaining functions which would be useful to plugins. It makes TOTEM_MAX_RECENT_ITEM_LEN private to totem-menu.c, since that was the only file which used it. It also removes a completely unused declaration of bacon_cd_selection_create from totem-preferences.h. See the changes to totem-sections.txt for the list of API I've considered useful to expose (by way of documentation) to plugins.
* Documentation updates and fixes: all documented and plugin-visible API isPhilip Withnall2009-02-071-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-02-07 Philip Withnall <philip@tecnocode.co.uk> * configure.in: * docs/reference/Makefile.am: * docs/reference/totem-docs.sgml: * docs/reference/totem-docs.xml: * docs/reference/totem-sections.txt: * src/plugins/totem-plugin.c: * src/plugins/totem-plugin.h: * src/totem-cell-renderer-video.c (totem_cell_renderer_video_class_init): * src/totem-cell-renderer-video.h: * src/totem-interface.c: * src/totem-object.c (totem_object_class_init): * src/totem-video-list.c (totem_video_list_class_init): * src/totem-video-list.h: * src/totem.h: Documentation updates and fixes: all documented and plugin-visible API is now listed in the documentation, and the section titles/descriptions have all been updated. The documentation layout has been tidied up, and recent gtk-doc features have been taken advantage of (http://live.gnome.org/DocumentationProject/GtkDocGnomeGoal). svn path=/trunk/; revision=5950
* Move most of totem.c into totem-object.c and break the core of Totem outPhilip Withnall2009-02-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-02-07 Philip Withnall <philip@tecnocode.co.uk> * src/Makefile.am: * src/plugins/totem-plugin.c: * src/plugins/totem-plugin.h: * src/totem-object.c (reset_seek_status), (totem_action_error), (totem_action_error_and_exit), (totem_action_save_size), (totem_action_save_state), (totem_action_wait_force_exit), (totem_action_exit), (totem_action_menu_popup), (main_window_destroy_cb), (play_pause_set_label), (totem_action_eject), (totem_action_show_properties), (totem_action_play), (totem_action_seek), (totem_action_set_mrl_and_play), (totem_action_open_dialog), (totem_dvb_setup_result), (totem_action_load_media), (totem_action_load_media_device), (totem_action_play_media_device), (totem_action_play_media), (totem_action_stop), (totem_action_play_pause), (totem_action_pause), (window_state_event_cb), (totem_action_fullscreen_toggle), (totem_action_fullscreen), (fs_exit1_activate_cb), (totem_action_open), (totem_open_location_destroy), (totem_open_location_response_cb), (totem_action_open_location), (totem_get_nice_name_for_stream), (update_mrl_label), (totem_action_set_mrl_with_warning), (totem_action_set_mrl), (totem_time_within_seconds), (totem_action_direction), (totem_action_previous), (totem_action_next), (totem_seek_time_rel), (totem_action_seek_relative), (totem_action_seek_time), (totem_action_zoom), (totem_action_zoom_relative), (totem_action_zoom_reset), (totem_action_volume_relative), (totem_action_volume_toggle_mute), (totem_action_toggle_aspect_ratio), (totem_action_set_aspect_ratio), (totem_action_get_aspect_ratio), (totem_action_set_scale_ratio), (totem_action_show_help), (totem_action_drop_files), (drop_video_cb), (drag_motion_video_cb), (drop_playlist_cb), (drag_motion_playlist_cb), (drag_video_cb), (on_got_redirect), (on_title_change_event), (on_channels_change_event), (on_playlist_change_name), (on_got_metadata_event), (on_error_event), (on_buffering_event), (update_seekable), (update_current_time), (volume_button_value_changed_cb), (update_volume_sliders), (property_notify_cb_volume), (property_notify_cb_logo_mode), (property_notify_cb_seekable), (seek_slider_pressed_cb), (seek_slider_changed_cb), (seek_slider_released_cb), (totem_action_open_files), (totem_action_open_files_list), (show_controls), (totem_action_toggle_controls), (totem_action_next_angle), (totem_action_set_playlist_index), (totem_action_remote), (totem_action_remote_set_setting), (totem_action_remote_get_setting), (playlist_changed_cb), (item_activated_cb), (current_removed_cb), (subtitle_changed_cb), (playlist_repeat_toggle_cb), (playlist_shuffle_toggle_cb), (totem_is_fullscreen), (totem_is_playing), (totem_is_paused), (totem_is_seekable), (on_mouse_click_fullscreen), (on_video_button_press_event), (on_eos_event), (totem_action_handle_key_release), (totem_action_handle_seek), (totem_action_handle_key_press), (totem_action_handle_scroll), (window_key_press_event_cb), (window_scroll_event_cb), (update_media_menu_items), (update_buttons), (main_pane_size_allocated), (totem_setup_window), (totem_callback_connect), (playlist_widget_setup), (video_widget_create): * src/totem-private.h: * src/totem.c: Move most of totem.c into totem-object.c and break the core of Totem out to a noinst library, libtotem_main.la. This allows gtk-doc to be run on it. (Helps: #570861) svn path=/trunk/; revision=5948
* Remove unused and broken error-shown property.Philip Withnall2009-02-061-2/+7
| | | | | | | | | | | | | | | | | | | | | 2009-02-06 Philip Withnall <philip@tecnocode.co.uk> * src/totem-object.c (totem_object_class_init), (totem_object_get_property): Remove unused and broken error-shown property. * src/plugins/totem-plugin.c (totem_plugin_class_init): * src/plugins/totem-plugin.h: * src/totem-cell-renderer-video.c (totem_cell_renderer_video_class_init): * src/totem-interface.c: * src/totem-video-list.c (totem_video_list_class_init): * src/totem.h: Add the rest of the plugin-visible API documentation. (Closes: #524119) svn path=/trunk/; revision=5947
* Cleanups to fix a few warnings when building with more gcc warning flagsPhilip Withnall2009-01-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-04 Philip Withnall <philip@tecnocode.co.uk> * data/mime-type-include.sh: * lib/totem-scrsaver.c: * src/backend/bacon-resize.c: * src/backend/bvw-test.c (test_bvw_set_mrl): * src/backend/video-utils.c (totem_time_to_string): * src/plugins/gromit/totem-gromit.c (totem_gromit_ensure_config_file): * src/plugins/media-player-keys/totem-media-player-keys.c: * src/plugins/ontop/totem-ontop.c: * src/plugins/properties/bacon-video-widget-properties.c: * src/plugins/properties/totem-movie-properties.c: * src/plugins/screensaver/totem-screensaver.c: * src/plugins/screenshot/totem-gallery-progress.c: * src/plugins/screenshot/totem-gallery.c: * src/plugins/screenshot/totem-screenshot-plugin.c: * src/plugins/screenshot/totem-screenshot.c: * src/plugins/sidebar-test/totem-sidebar-test.c: * src/plugins/skipto/totem-skipto-plugin.c: * src/plugins/skipto/totem-skipto.c: * src/plugins/thumbnail/totem-thumbnail.c: * src/plugins/totem-module.c: * src/plugins/totem-plugin.h: * src/plugins/totem-plugins-engine.c (garbage_collect_cb): * src/plugins/totem-python-module.c (totem_python_module_init_python), (totem_python_garbage_collect), (totem_python_shutdown): * src/plugins/tracker/totem-tracker-widget.c: * src/plugins/tracker/totem-tracker.c: * src/totem-fullscreen.c: * src/totem-menu.c: * src/totem-open-location.c: * src/totem-options.c (option_version_cb): * src/totem-playlist.c: * src/totem-preferences.c (tpw_color_reset_clicked_cb): * src/totem-properties-view.c: * src/totem-resources.c: * src/totem-session.c: * src/totem-statusbar.c: * src/totem-subtitle-encoding.c: * src/totem-time-label.c: * src/totem-uri.c (totem_uri_get_subtitle_for_uri): * src/totem-video-indexer.c: * src/totem.c (main_window_destroy_cb): Cleanups to fix a few warnings when building with more gcc warning flags than normal. (Closes: #565874) svn path=/trunk/; revision=5895
* A bunch of cleanups of various sorts.Kjartan Maraas2007-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-21 Kjartan Maraas <kmaraas@gnome.org> * bindings/python/override_common.c: (_helper_wrap_boxed_gptrarray): * browser-plugin/totemPlugin.cpp: * src/backend/bacon-video-widget-gst-0.10.c: (get_stream_info_objects_for_type): * src/plugins/gromit/totem-gromit.c: (totem_gromit_plugin_finalize): * src/plugins/totem-plugin.c: * src/plugins/totem-plugin.h: * src/plugins/totem-plugins-engine.c: * src/plugins/totem-python-plugin.c: (totem_python_object_get_type): * src/totem-fullscreen.c: * src/totem-object.c: (totem_remote_command_get_type), (totem_disc_media_type_get_type): * src/totem-playlist.c: (totem_playlist_save_files), (totem_playlist_move_files): * src/totem-uri.c: (totem_add_files): * src/totem.c: (totem_action_exit), (totem_action_remote), (video_widget_create), (main): A bunch of cleanups of various sorts. svn path=/trunk/; revision=4880
* upd for the changed belowBastien Nocera2007-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-23 Bastien Nocera <hadess@hadess.net> * src/plugins/skipto/*: upd for the changed below * src/plugins/totem-plugin.c: (totem_plugin_load_interface): * src/plugins/totem-plugin.h: Add totem_plugin_load_interface to allow plugins to load their interfaces from their own directory * src/totem-interface.c: (totem_interface_load), (totem_interface_load_with_full_path): * src/totem-interface.h: Implement helper functions to load GtkBuilder UI files * src/totem-statusbar.h: * src/totem-time-label.h: Remove unnecessary glade helper functions This change and above from a patch by Sunil Mohan Adapa <sunilmohan@gnu.org.in> * src/totem-object.c: (totem_object_class_init), (totem_object_get_property), (totem_get_current_time): Fix totem_get_current_time to return the current time, and not the length of the stream, add a "current-time" property as well svn path=/trunk/; revision=4454
* Add support for Python and Vala plugins (Closes: #439557)Philip Withnall2007-06-111-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Philip Withnall <pwithnall@svn.gnome.org> * Makefile.am: * bindings/Makefile.am: * bindings/python/Makefile.am: * bindings/python/override_common.c: (_helper_wrap_gobject_glist), (_helper_wrap_pointer_glist), (_helper_wrap_boxed_glist), (_helper_wrap_string_glist), (_helper_wrap_boxed_gptrarray), (_helper_unwrap_pointer_pylist), (_helper_unwrap_string_pylist): * bindings/python/override_common.h: * bindings/python/totem.defs: * bindings/python/totem.override: * bindings/vala/Makefile.am: * bindings/vala/totem.deps: * bindings/vala/totem.vala: * configure.in: * py-compile: * src/Makefile.am: * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_can_play), (bacon_video_widget_get_mrls): * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_can_play), (bacon_video_widget_get_mrls): * src/backend/bacon-video-widget.h: * src/disc-test.c: (main): * src/plparse/totem-disc.c: (cd_cache_disc_is_cdda), (totem_cd_detect_type_from_dir), (totem_cd_detect_type_with_url), (totem_cd_get_human_readable_name): * src/plparse/totem-disc.h: * src/plparse/totem-pl-parser-media.c: (totem_pl_parser_add_directory), (totem_pl_parser_add_block): * src/plugins/Makefile.am: * src/plugins/sample-python/Makefile.am: * src/plugins/sample-python/sample-python.py: * src/plugins/sample-python/sample-python.totem-plugin.in: * src/plugins/sample-vala/Makefile.am: * src/plugins/sample-vala/sample-vala.totem-plugin.in: * src/plugins/sample-vala/totem-sample-vala-plugin.vala: * src/plugins/totem-plugin.h: * src/plugins/totem-plugins-engine.c: (totem_plugins_engine_load), (totem_plugins_engine_init), (totem_plugins_engine_garbage_collect), (totem_plugins_engine_shutdown), (load_plugin_module): * src/plugins/totem-python-module.c: (pyg_value_g_value_as_pyobject), (pyg_value_g_value_from_pyobject), (totem_python_module_init_python), (totem_python_module_load), (totem_python_module_unload), (totem_python_module_new_object), (totem_python_module_init), (totem_python_module_finalize), (totem_python_module_get_property), (totem_python_module_set_property), (totem_python_module_class_init), (totem_python_module_new), (run_gc), (totem_python_garbage_collect), (finalise_collect_cb), (totem_python_shutdown): * src/plugins/totem-python-module.h: * src/plugins/totem-python-plugin.c: (call_python_method), (check_py_object_is_gtk_widget), (impl_deactivate), (impl_activate), (impl_create_configure_dialog), (impl_is_configurable), (totem_python_object_init), (totem_python_object_finalize), (totem_python_object_class_init), (totem_python_object_get_type): * src/plugins/totem-python-plugin.h: * src/totem-object.c: (totem_remote_command_quark), (totem_remote_command_get_type), (totem_disc_media_type_quark), (totem_disc_media_type_get_type): * src/totem.c: (totem_action_load_media), (totem_action_load_media_device), (totem_action_play_media): * src/totem.h: Add support for Python and Vala plugins (Closes: #439557) svn path=/trunk/; revision=4367
* Move the skipto dialog into a new plugin. (Closes #428293)Philip Withnall2007-05-141-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-14 Philip Withnall <pwithnall@svn.gnome.org> * configure.in: * data/Makefile.am: * data/skip_to.glade: * data/totem-ui.xml: * src/Makefile.am: * src/plugins/skipto/Makefile.am: * src/plugins/skipto/skip_to.glade: * src/plugins/skipto/skipto.totem-plugin.in: * src/plugins/skipto/totem-skipto-plugin.c: (totem_skipto_plugin_class_init), (totem_skipto_plugin_init), (destroy_dialog), (totem_skipto_plugin_finalize), (totem_skipto_update_from_state), (property_notify_cb), (skip_to_response_callback), (run_skip_to_dialog), (skip_to_action_callback), (on_window_key_press_event), (impl_activate), (impl_deactivate): * src/plugins/skipto/totem-skipto.c: (totem_skipto_class_init), (totem_skipto_response_cb), (totem_skipto_init), (totem_skipto_finalize), (totem_skipto_update_range), (totem_skipto_get_range), (totem_skipto_set_seekable), (totem_skipto_set_current), (spin_button_activate_cb), (spin_button_value_changed_cb), (totem_skipto_new): * src/plugins/skipto/totem-skipto.h: * src/plugins/totem-plugin.h: * src/totem-menu.c: * src/totem-object.c: (totem_object_class_init), (totem_object_get_property), (totem_get_ui_manager), (totem_get_current_time), (totem_remove_sidebar_page): * src/totem-private.h: * src/totem-skipto.c: * src/totem-skipto.h: * src/totem.c: (update_mrl_label), (totem_action_seek_relative), (totem_action_seek_time), (update_seekable), (update_current_time), (totem_is_fullscreen), (totem_is_playing), (totem_is_seekable), (totem_action_handle_key_press), (totem_callback_connect): * src/totem.h: Move the skipto dialog into a new plugin. (Closes #428293) svn path=/trunk/; revision=4308
* Add exception clauses to the above mentioned filed, thanks to theBastien Nocera2007-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-13 Bastien Nocera <hadess@hadess.net> * license_change: * src/plugins/totem-module.c: * src/plugins/totem-module.h: * src/plugins/totem-plugin-manager.c: * src/plugins/totem-plugin-manager.h: * src/plugins/totem-plugin.c: * src/plugins/totem-plugin.h: * src/plugins/totem-plugins-engine.c: * src/plugins/totem-plugins-engine.h: Add exception clauses to the above mentioned filed, thanks to the copyright holders for agreeing to the relicensing (Closes: #435523) * src/plugins/screensaver/totem-screensaver.c: * src/plugins/media-player-keys/totem-media-player-keys.c: * src/plugins/sidebar-test/totem-sidebar-test.c: * src/plugins/galago/totem-galago.c: * src/plugins/ontop/totem-ontop.c: Remove wrong mention of a relicensing date, all those files date from after the relicensing, just mention the license_change file instead * src/plparse/totem-disc.c: Update copyright, fix excemption/exception again svn path=/trunk/; revision=4301
* Add support for plugin activation failure. Fix an uninitialized variable.Jan Arne Petersen2007-04-261-4/+16
| | | | | | | | | | | | | | | | | | | | | | 2007-04-26 Jan Arne Petersen <jpetersen@jpetersen.org> * src/plugins/galago/totem-galago.c: (totem_galago_plugin_finalize), (impl_activate): * src/plugins/lirc/totem-lirc.c: (impl_activate): * src/plugins/media-player-keys/totem-media-player-keys.c: (impl_activate): * src/plugins/ontop/totem-ontop.c: (impl_activate): * src/plugins/screensaver/totem-screensaver.c: (impl_activate): * src/plugins/totem-plugin.c: (totem_plugin_error_quark), (totem_plugin_activate): * src/plugins/totem-plugin.h: * src/plugins/totem-plugins-engine.c: (totem_plugins_engine_activate_plugin_real), (totem_plugins_engine_activate_plugin): Add support for plugin activation failure. Fix an uninitialized variable. (Closes #433371) svn path=/trunk/; revision=4269
* Patch from Christian Persch <chpe@gnome.org> to avoid relocations (Closes:Bastien Nocera2007-04-191-21/+19
| | | | | | | | | | 2007-04-19 Bastien Nocera <hadess@hadess.net> * src/plugins/totem-plugin.h: Patch from Christian Persch <chpe@gnome.org> to avoid relocations (Closes: #430272) svn path=/trunk/; revision=4240
* Turn Totem into a TotemObject, remove calling the screensaver directly,Bastien Nocera2007-04-031-0/+208
2007-04-04 Bastien Nocera <hadess@hadess.net> * Makefile.am: * configure.in: * data/Makefile.am: * data/plugins.glade: * data/totem-ui.xml: * data/totem.schemas.in: * src/Makefile.am: * src/plugins/*: * src/totem-menu.c: (totem_plugins_window_delete_cb), (totem_plugins_response_cb), (plugins_action_callback): * src/totem-object.c: (totem_object_class_init), (totem_object_init), (totem_object_finalize), (totem_object_set_property), (totem_object_get_property): * src/totem-private.h: * src/totem.c: (play_pause_set_label), (totem_action_play), (totem_action_seek), (totem_action_stop), (totem_action_play_pause), (totem_action_pause), (window_state_event_cb), (totem_action_seek_relative), (commit_hide_skip_to), (totem_is_playing), (on_eos_event), (video_widget_create), (main): * src/totem.h: Turn Totem into a TotemObject, remove calling the screensaver directly, and emit property notifies when switching to fullscreen, or playing/stopping playing, Add a plugin system, Move the screensaver handling to a builtin plugin. * src/totem-scrsaver.c: * src/totem-scrsaver.h: Move to... * lib/*: ...here * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_class_init): Some cleanups * src/totem-interface.c: (totem_interface_boldify_label): * src/totem-interface.h: Add totem_interface_boldify_label() * src/totem-uri.c: (totem_dot_dir): * src/totem-uri.h: Add the totem_dot_dir svn path=/trunk/; revision=4190