summaryrefslogtreecommitdiff
path: root/data
Commit message (Collapse)AuthorAgeFilesLines
* data: Easier labels for skip actions in shortcutswip/hadess/shortcuts-labelsAllan Day2022-02-141-12/+12
| | | | | | | | | | Users shouldn't have to do maths to understand how the actions relate to each other. Simple descriptions are much easier to understand. https://bugzilla.gnome.org/show_bug.cgi?id=759548 Closes: #155
* main: Add Shift+V to toggle subtitlesBastien Nocera2022-02-111-8/+20
| | | | Closes: #130
* main: Add "V" keyboard shortcut to cycle through subtitlesBastien Nocera2022-02-111-0/+7
|
* menu: Remove the use of submenus in subtitle menuBastien Nocera2022-02-111-15/+13
| | | | This means that we now always show content in the subtitles menu.
* main: Move subtitles and audio tracks to a separate menuBastien Nocera2022-02-111-17/+21
|
* main: Use template to create TotemOpenLocationBastien Nocera2022-02-103-34/+68
|
* playlist: Use GtkBuilder templateBastien Nocera2022-02-103-6/+7
| | | | And remove some UI niceties in the (hidden) debug window.
* main: Move fullscreen toolbar to GtkBuilderBastien Nocera2022-02-101-0/+17
|
* data: Fix volume button iconsBastien Nocera2022-02-101-3/+3
| | | | | The icons need to be in a specific format for GtkBuilder to parse them properly.
* main: Merge controls.ui into totem.uiBastien Nocera2022-02-093-185/+185
|
* main: Move spinner to GtkBuilderBastien Nocera2022-02-091-0/+16
|
* main: Move bvw_grid to GtkBuilderBastien Nocera2022-02-091-0/+7
|
* main: Move video widget creation to GtkBuilderBastien Nocera2022-02-091-0/+8
|
* backend: Move internal icons to GResourceBastien Nocera2022-02-083-16/+0
|
* main: Remove yet another intermediate box widgetBastien Nocera2022-02-081-17/+0
| | | | tmw_bvw_box contained the video widget and an unused revealer.
* data: Remove another intermediate box widgetBastien Nocera2022-02-081-22/+11
| | | | totem_main_vbox wasn't used anymore, so remove it from the hierarchy.
* data: Remove intermediate box widgetBastien Nocera2022-02-081-27/+16
| | | | tmw_main_vbox wasn't used anymore, so remove it from the hierarchy.
* backend: Use better placeholder when there's no videoBastien Nocera2022-02-043-0/+16
| | | | | | | | When there's no video because we're playing an audio-only file, or because a plugin is missing, show a placeholder that corresponds to that type of media. See https://gitlab.gnome.org/Teams/Design/icon-development-kit/-/issues/44
* backend: Port to gtkglsinkBastien Nocera2022-02-041-0/+5
| | | | | | | | | | | | | | | | | | | | | Replace the clutter-gtk based video widget with a native GL GStreamer widget, "gtkglsink". - Display aspect-ratio support for non-square pixels was removed. While it still worked correctly (you can try setting your display's resolution to a different aspect ratio), things like text and icons, and everything else in every application and the shell chrome would have been looked broken, including the video player. Except the video in the video player. - Video aspect ratio, pillar-boxing, letter-boxing and automatic rotation is now handled in the GStreamer widget - The placeholder logos, when playing files with unsupported video, or no video tracks have been changed. - Handling of mouse events has been simplified Some functionality could not be brought forward at this time: - Crop-zooming (available using the R/T keys) isn't implemented yet - Gestures support, which never worked properly anyway, wasn't reimplemented
* main: Allow translation of development branch app nameBastien Nocera2022-02-032-1/+2
| | | | | | | | Rather than using an icon, use a string that can be translated as the app name. "Preview" will the suffix for that app name until we agree on a common name in https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/155
* data: Fix appdata application IDBastien Nocera2022-02-021-2/+2
| | | | | | We were using the wrong configuration to substitute the application ID. But appstream-glib validate should have caught this, but didn't: https://github.com/hughsie/appstream-glib/issues/426
* data: Fix appdata filename in devel profileBastien Nocera2022-02-023-84/+12
|
* data: Process subdirs after the current oneBastien Nocera2022-02-021-3/+3
| | | | So we can reuse variables declared locally in the appdata subfolder.
* data: Fix desktop filename in devel profileBastien Nocera2022-02-022-4/+84
|
* main: Hide Zoom shortcuts and menu itemBastien Nocera2022-01-282-18/+0
| | | | It won't be implemented in the first pass at porting to gtkglsink.
* build: Remove unused i18n.merge_file() "name"Bastien Nocera2022-01-062-2/+0
| | | | | data/meson.build:78:0: ERROR: Function does not take positional arguments. data/appdata/meson.build:3:0: ERROR: Function does not take positional arguments.
* build: Add check kwarg to run_command() callsBastien Nocera2022-01-061-2/+2
| | | | | | | WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300
* preferences-dialog: Remove GtkAlignment alignment3Georges Basile Stavracas Neto2021-07-011-116/+103
| | | | Same as previous commits.
* preferences-dialog: Remove GtkAlignment alignment3_1Georges Basile Stavracas Neto2021-07-011-11/+5
| | | | Same as previous commits.
* preferences-dialog: Remove GtkAlignment alignment7Georges Basile Stavracas Neto2021-07-011-52/+39
| | | | Identical to the previous commit.
* preferences-dialog: Remove GtkAlignment alignment6Georges Basile Stavracas Neto2021-06-301-210/+197
| | | | | | Despite the large diff, the only relevant change here is the same of the previous commit: "left-padding" is replaced by "margin-start".
* preferences-dialog: Remove GtkAlignment alignment9Georges Basile Stavracas Neto2021-06-301-15/+10
| | | | | | GtkAlignment is a deprecated widget. This particular one is an easy case, where we only need to replace the "left-padding" property by the "margin-start" property in the child.
* preferences-dialog: Replace GtkTable table2 by GtkGridGeorges Basile Stavracas Neto2021-06-301-38/+28
| | | | | | Almost identically to previous commit, except that the "hexpand" property was set to all children to make sure the grid is pixel-by-pixel similar to the current state.
* preferences-dialog: Replace GtkTable table3 by GtkGridGeorges Basile Stavracas Neto2021-06-301-23/+11
| | | | | | | | | | | | | Remove the "homogeneous" property, since it's set to false and GtkGrid's column-homogeneous and row-homogeneous are false by default. Replace the "right_attach" and "bottom_attach" packing properties by "width" and "height", respectively, since that's what GtkGrid supports. Next GtkTable -> GtkGrid conversions will look similar to this commit.
* preferences-dialog: Remove GtkTable table3_1Georges Basile Stavracas Neto2021-06-301-16/+4
| | | | | | | GtkTable is deprecated in favour of GtkGrid. In addition to that, in this case, table3_1 only contains a single widget, and doesn't have any particularly relevant property set, so it can be simply removed without further consequences.
* preferences-dialog: Remove GtkHButtonBoxGeorges Basile Stavracas Neto2021-06-301-21/+8
| | | | | | | | | | | This button box has a single child, a GtkButton, and is effectively only used to horizontally align the button at the end. This property can be trivially set in the button itself nowadays. Remove the GtkHButtonBox holding the "Reset to Defaults" button, and preserve the end alignment of the button by setting the "halign" to "end" in the button itself.
* preferences-dialog: Replace GtkHScale by GtkScaleGeorges Basile Stavracas Neto2021-06-301-4/+4
| | | | Another easy one since horizontal is the default.
* preferences-dialog: Replace GtkVBox by GtkBoxGeorges Basile Stavracas Neto2021-06-301-10/+11
| | | | | | | Surprisingly, all but one GTKVBoxes already have the orientation property set to vertical, which saves us some work. While at it, cleanup object ids that are not used.
* preferences-dialog: Replace GtkHBox by GtkBoxGeorges Basile Stavracas Neto2021-06-301-2/+2
| | | | | | No other changes are needed besides changing the class, since GtkBox defaults to horizontal. While at it, remove the object ids, since they're unused.
* preferences: Rename preferences to totem-preferences-dialog.*Georges Basile Stavracas Neto2021-06-292-1/+1
| | | | | Rename these files to match the class name they implement. Rename the .ui file to match them.
* preferences: Add TotemPreferencesDialogGeorges Basile Stavracas Neto2021-06-291-5/+5
| | | | | | | | | | | | | | Most of the code is what was there in preferences.c, but with a twist: it now has a GtkDialog subclass handling the preferences. The laborious part of this change is replacing the old GtkBuilder-based mechanism to retrieve widgets by their name with binding template children. Signal callbacks can now be static, and be passed explicitly instead of using G_MODULE_EXPORT to preserve their symbols. This commit is the smallest possible way to achieve this, and doesn't make use of various niceties and good practices of GTK development. Next commits will cleanup and improve preferences to actually use more modern GTK practices.
* preferences: Remove unused adjustmentGeorges Basile Stavracas Neto2021-06-291-10/+0
| | | | Seems to be a copy-paste mistake.
* preferences: Bind some labels' visibility to their corresponding rangesGeorges Basile Stavracas Neto2021-06-291-4/+4
| | | | | | | | | The hue, brightness, saturation, and contrast labels have their visibility programatically tied to their corresponding ranges. We can do that in the .ui file more easily. Bind these labels' visibility to their corresponding ranges' in the preferences.ui file itself.
* preferences: Move hide-on-delete signals to preferences.uiGeorges Basile Stavracas Neto2021-06-291-0/+2
| | | | They can easily be declared in the .ui file.
* preferences: Set font chooser button title in preferences.uiGeorges Basile Stavracas Neto2021-06-291-0/+1
| | | | | Move yet another property that can be defined in the .ui file directly to preferences.ui.
* preferences: Embed preferences.ui as a GResourceGeorges Basile Stavracas Neto2021-06-292-1/+14
| | | | | | | | | | Instead of installing preferences.ui and opening the file, embed it as a GResource and load it using gtk_builder_new_from_resource(). We don't need extra caution because the file is now guaranteed to be embedded into the application. This will be very handy for the next commit where we start using a GtkBuilder template for the preferences dialog.
* preferences: Set dialog modality in the .ui fileGeorges Basile Stavracas Neto2021-06-291-1/+1
| | | | | | | There's no need to programatically set it when it can be done declaratively in the .ui file. Set the 'modal' property of the preferences dialog at preferences.ui.
* data: Fix file validationwip/hadess/backend-fixesBastien Nocera2021-04-302-0/+2
| | | | | | | Because the file to validate wasn't created yet. /run/build/totem/_flatpak_build/data/appdata/org.gnome.Totem.appdata.xml: /run/build/totem/_flatpak_build/data/appdata/org.gnome.Totem.appdata.xml could not be read: Failed to open file “/run/build/totem/_flatpak_build/data/appdata/org.gnome.Totem.appdata.xml”: No such file or directory /run/build/totem/_flatpak_build/data/org.gnome.Totem.desktop: file does not exist
* Remove compulsory_for_desktopMichael Catanzaro2020-11-231-1/+0
| | | https://gitlab.gnome.org/GNOME/gnome-software/-/issues/445
* data: Remove application/ogg from the supported mime-typesBastien Nocera2020-11-101-1/+1
| | | | | | | | | | Both the audio/ogg and video/ogg mime-types are subclasses of application/ogg. Seeing as we only support the video subclass (see e4a1aaf7d9d3b2c50e2540d5d7f0059ffa30c26b), remove application/ogg from the supported mime-types. This will also stop the “Default Applications” panel in GNOME's Settings from listing Videos as a potential audio player.