Commit graph

18 commits

Author SHA1 Message Date
Lukáš Tyrychtr
75b4d0b2bc default-apps: Don't crash when there are no apps for a mimetype
When a mimetype has no apps, we get a selection notification anyway, but the selected item is NULL.
So, account for that and don't crash.
2023-06-06 13:07:46 +00:00
Christopher Davis
bd069bee92 default-apps: Use new adwaita widgetry, drop deprecated API
GTK has deprecated the AppChooser interface and related widgets.
These APIs will be gone in GTK5, so we should move away from
them as soon as possible.

This MR takes the opportunity to change the design to match newer
mockups while dropping deprecated APIs.
2023-06-06 03:32:59 +00:00
Pablo Correa Gómez
7f7b65545c all: meson: do not specify resources from gresource files as dependencies
Meson extracts them by itself and add them as dependencies for the target.
It means one less location to keep track of files, and a lot less boilerplate
around the meson files
2023-05-24 08:34:14 +00:00
Jake Dane
37a579b6b0 Replace "application" with "app"
This is part of an initiative to use "app" instead of "applications",
see: https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123

Redo of !1539 that was closed by a ghosting user.

Replaces "application" with "app" in user facing strings in these
panels:

- applications
- camera, location, microphone
- default-apps
- multitasking
- notifications
- removable-media
- search
- usage
- user-accounts

Fixes: #2208.
2023-01-23 11:10:28 +00:00
Marco Melorio
a9e2dc6c84 default-apps: Remove usage of deprecated gtk_widget_show/hide 2023-01-02 22:10:39 +00:00
Pablo Correa Gómez
ab7d752de9 default-apps: Show SMS and Calls conditional to modem being present
This avoids coggling the UI for those devices for which a modem
is not present, as x-scheme-handler/tel and x-scheme-hanlder/sms
are of no use in such cases
2022-10-21 14:35:40 +02:00
Pablo Correa Gómez
f1e46f0983 default-apps: Add default app to handle x-scheme-handler/sms 2022-10-21 11:48:41 +02:00
Newbyte
ea534c48d8 default-apps: Add default app to handle x-scheme-handler/tel 2022-10-21 11:48:41 +02:00
Pablo Correa Gómez
843c12c2e2 default-apps: Increase readability by using default GtkGrid naming 2022-10-21 11:48:41 +02:00
Pablo Correa Gómez
bbdb641b3d default-apps: Remove unnecessary blank labels
These labels were introduced in an ancient time (pre 2011) when
the panel still consisted in a table. They are unnecessary
and have no UI impact at this point
2022-10-21 11:48:41 +02:00
Jake Dane
89443fe550 desktop: Remove obsolete Bugzilla entries
The `X-GNOME-Bugzilla-*` entries were for use by bug-buddy, a GNOME 2
technology that's been gone for over a decade. These entries are
obsolete and can be removed from all desktop files.

The `X-GNOME-Settings-Panel` entry is also obsolete as far as I can
tell and only these panels had it in their desktop file: notifications,
sharing, sound and user-accounts. These entries can also be removed.

After removing the `X-GNOME-Bugzilla-*` entries, the desktop files have
no more variables in them. The meson `configure_file` step is therefor
pointless—there are no variables to configure. As such the
`*.desktop.in.in` files are renamed to `*.desktop.in` to reflect this
and `meson.build` files are modified to remove `configure_file` step.
2022-10-20 13:20:09 +00:00
Amy
ea635be532 default-apps: switch away from deprecated function
cc-default-apps-panel.c:101 uses g_pattern_match_string, which is now
considered deprecated in Glib. It is better to use the 2.70+
g_pattern_spec_match_string, which works as a drop-in replacement. This
helps with function organization, as the original was created as a
general Glib function while g_pattern_spec_match_string works under the
PatternSpec module.

This patch swaps the usage to the newer function, creating no functional
difference and resolving a deprecated functions warning.
2022-06-10 18:08:41 +00:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00
Georges Basile Stavracas Neto
0ab20af9ba panels: Switch to CcPanel content
Start porting panels to the new panel format. This commit
temporarily makes panels have two titlebar, which will be
fixed soon.
2022-01-20 02:23:42 +00:00
Jan Beich
37b29c32cb meson: drop unused argument for i18n.merge_file()
Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.

panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/background/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments.
[...]
2022-01-07 17:22:43 +00:00
Georges Basile Stavracas Neto
b9064cf2f6 default-apps: Port to GTK4
An easy one, mostly removing code from the UI file.
2021-12-14 22:34:21 -03:00
Robert Ancell
7b0dc2ecee default-apps: Connect signals with g_signal_connect_object in swapped form 2020-03-30 16:18:49 +13:00
Robert Ancell
e743b8efd7 info: Split default-apps into its own panel 2019-09-09 21:52:07 +00:00