summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools: Avoid a deprecation warning with newer GLibEmmanuele Bassi2022-09-281-1/+2
| | | | | | G_APPLICATION_FLAGS_NONE has been deprecated, and replaced with G_APPLICATION_DEFAULT_FLAGS in GLib 2.74. We can simply use zero to avoid a version check.
* build: Don't check for Python 2Emmanuele Bassi2022-09-281-8/+3
| | | | | | | | Aside from the fact that Python 2 is an ex-parrot, and has been pining for the fjords for a while now, we depend on Python3 for building this project. Let's use non-deprecated, idiomatic ways to run a Python script.
* tools: Clean up the core keys generator scriptEmmanuele Bassi2022-09-281-24/+26
| | | | | Make it slightly more Pythonic, starting from the PEP8 coding style, context managers for files, and a slightly more readable regexp.
* build: Fix warning in grilo-inspect build filesBastien Nocera2022-07-041-1/+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
* grilo-test-ui: Exit early when looping over sourcesBastien Nocera2020-09-021-16/+16
| | | | | | That would allow us to add more early exits when debugging, without making the code more complicated. Also tidy up to not have a "source" variable that's actually a GList element.
* grilo-test-ui: Fix tool not working in FlatpakBastien Nocera2020-08-261-1/+26
| | | | | | | | Since commit adc11e54537aff804c6dcd8d26ade0114632157b, it's impossible to use grilo-test-ui in the Flatpak for another application, as it tries to request a D-Bus name that it cannot own. Instead of using our own app-id/D-Bus name, try to own a variant of the real app's name.
* grilo-test-ui: Fix crash if app couldn't get on the busBastien Nocera2020-08-261-0/+2
| | | | | | | | If the application couldn't own a name on the session bus, then it would never setup its UI, and view would be a NULL pointer which we'd dereference, and crash. Exit early from cleanup function if the view was never setup.
* grilo-test-ui: Do not use gtk_show_uri on newer gtkJean Felder2020-05-141-0/+7
| | | | | | | On 3.22.0, gtk_show_uri has been deprecated in favor of gtk_show_uri_on_window. Add a GTK_CHECK_VERSION to prevent depending on a GTK version too recent. It can be removed after bumping GTK to >= 3.22.0
* grilo-test-ui: Do not use deprecated gdk_cursor_newJean Felder2020-05-141-1/+1
| | | | | It has been deprecated since GTK 3.16. Use gdk_cursor_new_for_display instead.
* test-ui: Drop usage of deprecated GTimeValVictor Toso2020-02-211-4/+1
|
* build: Avoid using meson.source_root()Sam Thursfield2019-09-291-1/+1
| | | | | | | | The value of meson.source_root() can't be trusted because if we are embedded via subproject() into a larger project, the source root will be that of the parent project. Instead, use a variable to keep track of the toplevel source directory.
* grl-inspect: Fix core keys extractionBastien Nocera2019-07-161-4/+20
| | | | | | | | | | | | | | This fixes incorrectly duplicated keys in grl-core-keys.h which affected the output of metadata in grl-inspect by removing the C comments prior to processing the file. Before: $ sort grl-core-keys.h | uniq --repeated "GRL_METADATA_KEY_MB_RELEASE_GROUP_ID", After: $ sort grl-core-keys.h | uniq --repeated $
* test-ui: Remove resize grip functionalityJean Felder2018-09-041-2/+0
| | | | It has been deprecated since GTK 3.14
* test-ui: Remove some GTK2 legacy codeJean Felder2018-09-041-4/+0
| | | | | In GTK3 the resize grip functionality has been moved from GtkStatusbar to GtkWindow.
* test-ui: Include api-key for The AudioDB sourceJean Felder2018-09-031-0/+18
|
* build: Remove autotools supportVictor Toso2018-07-304-116/+0
|
* grl-inspect: Add Python3 support to grilo-inspectBastien Nocera2018-07-241-1/+7
| | | | | We need to run a few commands to generate headers before compiling grilo-inspect, make sure to support both Python2 and Python3.
* test-ui: Use GMenu and GAction for application menuveer2018-07-171-64/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following deprecation warnings: | main.c: In function ‘changes_notification_cb’: | main.c:286:3: warning: ‘gtk_toggle_action_get_active’ is deprecated | ui_state->changes_notification = gtk_toggle_action_get_active (action); | ^~~~~~~~ | main.c: In function ‘ui_setup’: | main.c:1878:3: warning: ‘gtk_action_group_new’ is deprecated | GtkActionGroup *actions = gtk_action_group_new ("actions"); | ^~~~~~~~~~~~~~ | main.c:1879:3: warning: ‘gtk_action_group_add_actions’ is deprecated | gtk_action_group_add_actions (actions, entries, G_N_ELEMENTS (entries), NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | main.c:1880:3: warning: ‘gtk_action_group_add_toggle_actions’ is deprecated | gtk_action_group_add_toggle_actions (actions, toggle_entries, G_N_ELEMENTS (toggle_entries), NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | main.c:1882:3: warning: ‘gtk_ui_manager_new’ is deprecated | GtkUIManager *uiman = gtk_ui_manager_new (); | ^~~~~~~~~~~~ | main.c:1883:3: warning: ‘gtk_ui_manager_insert_action_group’ is deprecated | gtk_ui_manager_insert_action_group (uiman, actions, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | main.c:1885:31: warning: ‘gtk_ui_manager_get_accel_group’ is deprecated | gtk_ui_manager_get_accel_group (uiman)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | main.c:1886:3: warning: ‘gtk_ui_manager_add_ui_from_string’ is deprecated | gtk_ui_manager_add_ui_from_string (uiman, ui_definition, -1, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | main.c:1890:23: warning: ‘gtk_ui_manager_get_widget’ is deprecated | gtk_ui_manager_get_widget (uiman, "/MainMenu"), | ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Victor Toso <victortoso@redhat.com>
* test-ui: Fix -Wenum-compareveer2018-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | ../tools/grilo-test-ui/main.c: In function ‘supported_media_to_str’: ../tools/grilo-test-ui/main.c:905:12: warning: comparison between ‘GrlMediaType’ {aka ‘enum <anonymous>’} and ‘enum <anonymous>’ [-Wenum-compare] if (type == GRL_SUPPORTED_MEDIA_NONE) ^~ ../tools/grilo-test-ui/main.c:907:12: warning: comparison between ‘GrlMediaType’ {aka ‘enum <anonymous>’} and ‘enum <anonymous>’ [-Wenum-compare] if (type == GRL_SUPPORTED_MEDIA_ALL) ^~ https://gitlab.gnome.org/GNOME/grilo/issues/7 Signed-off-by: Victor Toso <victortoso@redhat.com>
* test-ui: Fix several leaksChristophe Fergeau2017-09-191-2/+5
| | | | | | | | | Fixing these leaks makes it easier to spot leaks coming from the underlying libraries when running under valgrind. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> https://bugzilla.gnome.org/show_bug.cgi?id=787873
* build: add Meson build supportJuan A. Suarez Romero2017-02-145-0/+114
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=775950
* doc: put manpages in doc/manJuan A. Suarez Romero2017-02-132-43/+0
| | | | | | Put all manpage files together. https://bugzilla.gnome.org/show_bug.cgi?id=775950
* test-ui: Remove setting "guess-video" optionBastien Nocera2016-06-271-14/+0
| | | | It doesn't do anything since title parsing was moved to the Lua plugin.
* test-ui: Include api-key for AcoustID sourceVictor Toso2016-05-301-0/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=732879
* grl-launch: Fix help messages in some localesTing-Wei Lan2016-01-121-0/+3
| | | | | | Call setlocale() first thing in the main() function https://bugzilla.gnome.org/show_bug.cgi?id=760426
* grl-inspect: Fix help messages in some localesTing-Wei Lan2016-01-121-0/+3
| | | | | | Call setlocale() first thing in the main() function https://bugzilla.gnome.org/show_bug.cgi?id=760426
* core: merge GrlMediaBox into GrlMediaJuan A. Suarez Romero2015-12-162-11/+11
| | | | | | | | | Get rid of GrlMediaBox and use instead GrlMedia. Also, all references to "box" are converted to "container", as container is a more suitable name than boxes. https://bugzilla.gnome.org/show_bug.cgi?id=755551
* core: merge GrlMediaImage into GrlMediaJuan A. Suarez Romero2015-12-161-3/+3
| | | | | | Get rid of GrlMediaImage and use instead GrlMedia. https://bugzilla.gnome.org/show_bug.cgi?id=755551
* core: merge GrlMediaVideo into GrlMediaJuan A. Suarez Romero2015-12-161-2/+2
| | | | | | Get rid of GrlMediaVideo and use instead GrlMedia. https://bugzilla.gnome.org/show_bug.cgi?id=755551
* core: merge GrlMediaAudio into GrlMediaJuan A. Suarez Romero2015-12-161-2/+2
| | | | | | Get rid of GrlMediaAudio and use instead GrlMedia. https://bugzilla.gnome.org/show_bug.cgi?id=755551
* core: add GrlMedia media-type propertyJuan A. Suarez Romero2015-12-161-8/+8
| | | | | | | | This property will store the type of media (audio, video, image or container). The type for supported media in source has been renamed to GrlSupportedMedia. https://bugzilla.gnome.org/show_bug.cgi?id=755551
* core: split plugin loading from plugin activationJuan A. Suarez Romero2015-12-153-4/+4
| | | | | | | | | | | | Explicitly separate the loading plugin process from activation process. Thus we can load several plugins from different places, and activate all of them together. Loading the plugin will run the plugin's registering function, while activating will run the plugin's activation function. https://bugzilla.gnome.org/show_bug.cgi?id=759295
* core: remove optional info in pluginsJuan A. Suarez Romero2015-12-151-16/+7
| | | | | | Set only a restricted set of information in plugins. https://bugzilla.gnome.org/show_bug.cgi?id=759295
* grl-launch: Clarify "-T" optionBastien Nocera2015-12-141-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=758655
* grl-inspect: print related keysJuan A. Suarez Romero2015-10-021-1/+12
|
* build: Also bump grl-net and grl-pls to 0.3Bastien Nocera2015-09-222-1/+1
| | | | | | | | | | | | Turns out that grilo-plugins expects grl-net and grl-pls to be the same version as grilo itself, which is likely what a number of applications also do. This is easier to deal with than versions changing, and matches what GLib does for example. This also fixes a number of lingering references to 0.2 as the major version number.
* core: Remove deprecated functionsBastien Nocera2015-09-221-1/+1
|
* grilo-test-ui: Remove GtkStock usageBastien Nocera2015-09-021-10/+10
|
* grilo-test-ui: Fix warning about deprecated gtk-menu-imagesBastien Nocera2015-09-011-5/+5
| | | | | | | | | Menus don't use images in recent versions of GTK+: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version. Remove the icons from the menu items. https://bugzilla.gnome.org/show_bug.cgi?id=754401
* grilo-test-ui: Renew Youtube KeyJuan A. Suarez Romero2015-08-301-1/+1
| | | | | The old key used for the Test UI application has expired, and a new one is required.
* grilo-test-ui: Fix possible uninitialised useBastien Nocera2015-07-101-1/+3
| | | | | | | From coverity: grilo-0.2.12/tools/grilo-test-ui/main.c:776:20: warning: 'next_op_id' may be used uninitialized in this function [-Wmaybe-uninitialized] https://bugzilla.gnome.org/show_bug.cgi?id=749887
* core: Rename GrlOperationOptions "flags" to "resolution-flags"Bastien Nocera2015-02-172-6/+6
| | | | | | | And add the associated functions as well. Deprecate the old functions. https://bugzilla.gnome.org/show_bug.cgi?id=724308
* grilo-test-ui: Changed URLs in order to use HTTPSAdrião Morão2014-10-291-4/+4
| | | | Flickr changed its API to force TLS on requests against the API and using OAuth
* doc: Add manpage for grilo-test-uiAlberto Garcia2014-08-262-0/+43
| | | | Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
* build: remove "INCLUDES" from Makefile.amJuan A. Suarez Romero2014-08-053-7/+4
| | | | Deprecated option.
* grl-inspect: Add media_from_uriJuan A. Suarez Romero2014-07-301-0/+4
| | | | Show if the source supports media_from_uri operation.
* grl-launch: Add media_from_uri operationJuan A. Suarez Romero2014-07-301-1/+51
| | | | Given an URI and a source, it builds the GrlMedia that contains that URI in the source.
* grl-launch: Add test_media_from_uri operationJuan A. Suarez Romero2014-07-301-1/+49
|
* test-ui: Include api-key for The TVDB sourceVictor Toso2014-06-251-0/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672933
* test-ui: Don't remove items from the view when remove failsBastien Nocera2014-05-301-2/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724308