summaryrefslogtreecommitdiff
path: root/src/totem-time-label.c
Commit message (Collapse)AuthorAgeFilesLines
* gst: Add more time display optionsBastien Nocera2013-04-041-4/+4
| | | | | Add options to force the hour to be shown, and whether to show the time as "remaining" time.
* build: Fix pkg-config usageBastien Nocera2012-07-131-1/+1
| | | | | | | | | | | We shouldn't be concatenating outputs from pkg-config, it ends up listing libraries twice and making a mess. This commit also cleans up the dependencies for the thumbnailer, audio preview and nautilus tabs, as they don't need clutter for example. https://bugzilla.gnome.org/show_bug.cgi?id=679461
* main: Fix up coding styleBastien Nocera2012-04-131-4/+5
|
* Fix various compiler warningsPhilip Withnall2010-02-181-1/+0
| | | | | | | Various small compiler warnings (such as variable shadowing, constness, etc.) fixed, plus some more serious ones which could've caused crashes: * potentially passing 0 to g_source_remove() due to a bad comparison * passing by value, not reference, to g_object_get()
* Fixed some strict gcc warningsPhilip Withnall2009-07-181-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-07-18 Philip Withnall <philip@tecnocode.co.uk> * src/backend/bacon-resize.c (bacon_resize_resize), (bacon_resize_restore): * src/backend/bacon-video-widget-gst-0.10.c (bacon_video_widget_open), (bacon_video_widget_seek_time), (bacon_video_widget_set_logo): * src/backend/bacon-video-widget.h: * src/backend/bvw-test.c (test_bvw_set_mrl), (on_redirect), (on_eos_event), (main): * src/backend/video-utils.c (totem_time_to_string), (totem_time_to_string_text): * src/plugins/brasero-disc-recorder/totem-disc-recorder.c (totem_disc_recorder_plugin_start_burning): * src/plugins/properties/bacon-video-widget-properties.c (bacon_video_widget_properties_from_time): * src/plugins/properties/bacon-video-widget-properties.h: * src/plugins/publish/totem-publish.c (totem_publish_plugin_playlist_cb): * src/plugins/screenshot/totem-gallery.c (dialog_response_callback): * src/plugins/screenshot/totem-screenshot.c (drag_data_get): * src/plugins/skipto/totem-skipto-plugin.c (totem_skipto_update_from_state): * src/plugins/skipto/totem-skipto.c (totem_skipto_update_range), (totem_skipto_get_range), (totem_skipto_set_current): * src/plugins/skipto/totem-skipto.h: * src/plugins/totem-plugins-engine.c (load_plugin_module), (totem_plugins_engine_plugin_active_cb), (totem_plugins_engine_plugin_visible_cb): * src/plugins/youtube/totem-youtube.c (starting_video_cb): * src/totem-menu.c (add_lang_action), (totem_action_add_recent): * src/totem-object.c (totem_get_title_at_playlist_pos), (totem_action_load_media), (window_state_event_cb), (totem_action_set_mrl_with_warning), (totem_time_within_seconds), (totem_seek_time_rel), (drop_video_cb), (drag_motion_video_cb), (drop_playlist_cb), (drag_motion_playlist_cb), (drag_video_cb), (seek_slider_changed_cb), (totem_action_set_playlist_index), (totem_action_remote), (totem_action_handle_key_release), (window_key_press_event_cb): * src/totem-options.c (totem_options_process_late): * src/totem-options.h: * src/totem-playlist.c (drop_cb), (playlist_show_popup_menu), (totem_playlist_set_reorderable), (totem_playlist_clear_with_compare), (totem_playlist_get_title), (totem_playlist_get_current), (totem_playlist_set_current): * src/totem-playlist.h: * src/totem-preferences.c (totem_setup_preferences): * src/totem-private.h: * src/totem-session.c (totem_save_state_cb): * src/totem-statusbar.c (totem_statusbar_update_time), (totem_statusbar_set_time), (totem_statusbar_set_time_and_length): * src/totem-subtitle-encoding.c (subtitle_encoding_get_charset), (subtitle_encoding_create_store), (totem_subtitle_encoding_get_selected), (totem_subtitle_encoding_set): * src/totem-time-label.c (totem_time_label_init), (totem_time_label_set_time): * src/totem-video-thumbnailer.c (create_gallery), (main): * src/totem.c (totem_message_received_cb), (main): * src/totem.h: Fixed some strict gcc warnings.
* Patch from Shixin Zeng <zeng.shixin@gmail.com> to add G_MODULE_EXPORT toPhilip Withnall2009-04-081-0/+2
| | | | | | | | | | | | | | | | | | | 2009-04-08 Philip Withnall <philip@tecnocode.co.uk> * src/plugins/totem-plugin-manager.c: * src/totem-fullscreen.c: * src/totem-menu.c: * src/totem-object.c: * src/totem-playlist.c: * src/totem-preferences.c: * src/totem-statusbar.c: * src/totem-time-label.c: * src/totem-video-list.c: Patch from Shixin Zeng <zeng.shixin@gmail.com> to add G_MODULE_EXPORT to signal handlers and *_get_type functions. (Helps: #342926) svn path=/trunk/; revision=6248
* Cleanups to fix a few warnings when building with more gcc warning flagsPhilip Withnall2009-01-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Clean up a couple of memory leaks, clean up disposal/finalization on a fewPhilip Withnall2008-02-051-20/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-05 Philip Withnall <pwithnall@svn.gnome.org> * src/plugins/properties/totem-movie-properties.c: (totem_movie_properties_plugin_class_init): * src/plugins/skipto/totem-skipto.c: (totem_skipto_class_init), (totem_skipto_dispose): * src/plugins/totem-module.c: (totem_module_finalize): * src/plugins/totem-plugin.c: (totem_get_plugin_paths): * src/plugins/totem-plugins-engine.c: (totem_plugins_engine_load): * src/plugins/tracker/totem-tracker-widget.c: (populate_result): * src/totem-fullscreen.c: (totem_fullscreen_move_popups), (totem_fullscreen_new), (totem_fullscreen_set_video_widget), (totem_fullscreen_set_parent_window), (totem_fullscreen_init), (totem_fullscreen_dispose), (totem_fullscreen_finalize), (totem_fullscreen_class_init): * src/totem-fullscreen.h: * src/totem-menu.c: (add_device_to_menu), (show_controls_action_callback): * src/totem-open-location.c: (totem_open_location_class_init), (totem_open_location_init), (totem_open_location_dispose), (totem_open_location_new): * src/totem-time-label.c: (totem_time_label_init), (totem_time_label_new), (totem_time_label_class_init), (totem_time_label_set_time): * src/totem-time-label.h: * src/totem-uri.c: (totem_setup_file_filters), (totem_destroy_file_filters): * src/totem-video-list.c: (totem_video_list_new), (totem_video_list_class_init), (totem_video_list_init), (totem_video_list_dispose): Clean up a couple of memory leaks, clean up disposal/finalization on a few classes, and fix some style issues. Also, fix user plugins being disabled when enabled in GConf. (Closes: #513757) svn path=/trunk/; revision=5071
* Patch from Philip Withnall <pwithnall@svn.gnome.org> to use GtkBuilderBastien Nocera2007-07-051-12/+0
| | | | | | | | | | 2007-07-05 Bastien Nocera <hadess@hadess.net> * Load of files: Patch from Philip Withnall <pwithnall@svn.gnome.org> to use GtkBuilder instead of libglade (Closes: #450635) svn path=/trunk/; revision=4427
* Plenty of code cleanups by Kjartan Maraas <kmaraas@broadpark.no>Bastien Nocera2007-04-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-12 Bastien Nocera <hadess@hadess.net> * browser-plugin/totem-plugin-viewer.c: (totem_embedded_construct): * src/backend/bacon-resize.c: * src/backend/bacon-video-widget-common.c: * src/backend/bacon-video-widget-gst-0.10.c: (bacon_video_widget_class_init), (bacon_video_widget_finalize), (bacon_video_widget_close), (bacon_video_widget_get_current_frame): * src/backend/bacon-video-widget-xine.c: (bacon_video_widget_play), (bacon_video_widget_can_set_volume), (bacon_video_widget_is_playing), (bacon_video_widget_is_seekable), (bacon_video_widget_get_mrls): * src/backend/bvw-test.c: * src/bacon-message-connection.c: * src/test-properties-page.c: * src/totem-interface.c: (totem_gtk_plug_get_toplevel), (totem_interface_get_license): * src/totem-menu.c: (totem_action_add_recent): * src/totem-playlist.c: (totem_playlist_get_current_mrl), (totem_playlist_get_current_title): * src/totem-screenshot.c: * src/totem-skipto.c: * src/totem-statusbar.c: (totem_statusbar_init): * src/totem-subtitle-encoding.c: (subtitle_encoding_init): * src/totem-time-label.c: * src/totem-video-indexer.c: Plenty of code cleanups by Kjartan Maraas <kmaraas@broadpark.no> svn path=/trunk/; revision=4220
* Patch from Julien MOUTTE <julien@moutte.net> to show the "Seek to" labelBastien Nocera2006-03-081-2/+15
| | | | | | | | | | | | 2006-03-05 Bastien Nocera <hadess@hadess.net> * src/totem-time-label.c: (totem_time_label_init), (totem_time_label_set_time), (totem_time_label_set_seeking): * src/totem-time-label.h: * src/totem.c: (seek_slider_pressed_cb), (seek_slider_changed_cb), (seek_slider_released_cb): Patch from Julien MOUTTE <julien@moutte.net> to show the "Seek to" label when seeking in fullscreen (Closes: #333541)
* Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>Ronald Bultje2005-08-071-1/+1
| | | | | | * src/totem-time-label.c: (totem_time_label_set_time): Do not display length if it is unknown (0:00) in fullscreen-mode, fixing #312680.
* Move the playlist dialog to a sidebar, remove the labels for the playlistBastien Nocera2005-07-041-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-04 Bastien Nocera <hadess@hadess.net> * data/Makefile.am: * data/playlist-16.png: * data/playlist-24.png: * data/playlist.glade: * data/totem.glade: * data/totem.schemas.in: * src/Makefile.am: * src/ev-sidebar.[ch]: * src/totem-menu.h: * src/totem-playlist.c: (totem_playlist_get_toplevel), (totem_playlist_error), (totem_playlist_add_files), (totem_playlist_save_files), (update_repeat_cb), (update_shuffle_cb), (init_config), (totem_playlist_init), (totem_playlist_new), (totem_playlist_set_repeat), (totem_playlist_set_shuffle), (totem_playlist_class_init): * src/totem-playlist.h: * src/totem-private.h: * src/totem-sidebar.c: (totem_sidebar_toggle), (on_sidebar_button_toggled), (on_show_sidebar1_activate), (toggle_sidebar_from_sidebar), (totem_sidebar_is_visible), (totem_sidebar_setup): * src/totem-sidebar.h: * src/totem-statusbar.c: (totem_statusbar_new_from_glade): * src/totem-statusbar.h: * src/totem-stock-icons.c: (totem_set_default_icons), (totem_named_icons_init): * src/totem-time-label.c: (totem_time_label_new_from_glade): * src/totem-time-label.h: * src/totem.c: (totem_action_fullscreen_toggle), (update_mrl_label), (totem_action_set_mrl_with_warning), (totem_action_handle_key), (totem_callback_connect), (playlist_widget_setup), (video_widget_create), (main): * src/totem.h: Move the playlist dialog to a sidebar, remove the labels for the playlist buttons
* only update the time label if the time has actually changedBastien Nocera2005-01-061-1/+18
| | | | | | | | | 2005-01-06 Bastien Nocera <hadess@hadess.net> * src/totem-time-label.c: (totem_time_label_init), (totem_time_label_set_time): * src/totem-time-label.h: only update the time label if the time has actually changed
* updates first try at updated controls popup emit the "changed" signal whenBastien Nocera2004-12-261-4/+4
| | | | | | | | | | | | | | | | | | 2004-12-26 Bastien Nocera <hadess@hadess.net> * NEWS: updates * data/totem.glade: first try at updated controls popup * src/totem-playlist.c: (treeview_row_changed): emit the "changed" signal when double-clicking on an entry * src/totem-time-label.c: (totem_time_label_init), (totem_time_label_new): move most of new() code to init() * src/totem.c: (totem_action_restore_pl), (totem_action_set_mrl_with_warning), (totem_action_set_mrl), (on_recent_file_activate), (playlist_changed_cb), (move_popups), (on_video_motion_notify_event), (on_eos_event), (label_create): don't show a warning when opening the file when rewinding, or restoring a playlist, show an error message when trying to play a file that can't be opened
* Move the time to string functions to the video-utils.[ch], update the codeBastien Nocera2004-07-041-1/+28
| | | | | | | | | | | | | | | | | | | | | 2004-07-04 Bastien Nocera <hadess@hadess.net> * src/bacon-video-widget-properties.c: (bacon_video_widget_properties_set_from_current): * src/totem-private.h: * src/totem-statusbar.c: (totem_statusbar_update_time): * src/totem-time-label.c: (totem_time_label_new), (totem_time_label_class_init), (totem_time_label_set_time): * src/totem-time-label.h: * src/totem.c: (update_current_time), (spin_button_value_changed_cb), (totem_action_handle_key), (main): * src/video-utils.c: (totem_time_to_string), (totem_time_to_string_text): * src/video-utils.h: Move the time to string functions to the video-utils.[ch], update the code taking that into account, finish the TotemTimeLabel code and hook it up in totem.c, make Shift+Right/Left arrow do shorter seeks
* added a time label for the fullscreen controls updBastien Nocera2004-07-031-0/+37
2004-07-04 Bastien Nocera <hadess@hadess.net> * data/totem.glade: added a time label for the fullscreen controls * src/Makefile.am: upd * src/bacon-video-widget-xine.c: (bacon_video_widget_open), (bacon_video_widget_play), (bacon_video_widget_get_metadata_int), (bacon_video_widget_get_metadata): * src/bacon-video-widget.h: removed the unused FOURCC metadata, removed unused struct members * src/rb-ellipsizing-label.c: more G_DEFINE_TYPE * src/totem-pl-parser.c: fix a warning * src/totem-statusbar.c: (totem_statusbar_update_time): fix an LTR/RTL issue with the time display, as well as a possible i18n problem * src/totem-time-label.[ch]: new widget to display the current position, not quite finished * src/totem.c: (on_got_metadata_event), (totem_statusbar_create), (totem_time_display_create): cleanups * src/totem.h: TotemTimeTable creation