summaryrefslogtreecommitdiff
path: root/shell
Commit message (Collapse)AuthorAgeFilesLines
* CcPanelList: center sidebar row when activating a panelNelson Benítez León2023-05-161-0/+51
| | | | | | | | When activating a panel from Search or from commandline let's scroll the sidebar so the row for that panel is revealed and vertically centered on the list. Closes #2098
* CcPanelList: don't activate first row panel unnecesarilyNelson Benítez León2023-05-111-7/+6
| | | | | | | | Don't activate first row panel (i.e. 'Wifi') when: - Canceling search view (pressing ESC or deleting all query text). - Activating a search result from search view. Closes #2472
* Set last-panel only for noncrashing panelsOndrej Kolin2023-05-051-2/+2
|
* general: Add placeholder text to various search entriessunflowerskater2023-04-211-0/+1
| | | | | | | | Acc. HIG, "text fields should have placeholder text or a label". https://developer.gnome.org/hig/patterns/controls/text-fields.html Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2190
* Resolving suggestionsMaksym Hazevych2023-03-292-2/+1
|
* Replace all occurrences of 'gtk_widget_hide'Maksym Hazevych2023-03-292-2/+2
| | | | | Replace all occurrences of 'gtk_widget_hide(smth)' with 'gtk_widget_set_visible(smth, FALSE)'.
* Replace all occurrences of 'gtk_widget_show'Maksym Hazevych2023-03-291-3/+3
| | | | | Replace all occurrences of 'gtk_widget_show(smth)' with 'gtk_widget_set_visible(smth, TRUE)'.
* shell/style: Add workaround to make disabled pictures are painted as suchMarco Trevisan (Treviño)2023-03-281-0/+8
| | | | See: https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/814
* search: Add tooltipHari Rana2023-03-151-0/+1
|
* panel-list: Switch to main list if custom sidebar is not setMohammed Sadiq2023-03-031-0/+4
| | | | | | | | | | | | | | If the previously shown panel had a custom sidebar, we were not switching back to the main list if the currently shown panel doesn't have one. This will result in the sidebar having empty content. Fix it by always switching to main sidebar view if no custom sidebar widget is set. Closes #2261 Closes #2292
* primary-menu: Rename to Main MenuHari Rana2023-02-141-1/+2
| | | | This renames the accessibility label of the primary menu to "Main Menu", and adds a tooltip text under that name, per https://developer.gnome.org/hig/patterns/controls/menus.html#primary-menus
* shell: Refuse to run under unsupported desktopsBastien Nocera2023-02-102-1/+38
| | | | Closes: #945
* log: Show logs from Bluetooth panelMohammed Sadiq2023-01-251-1/+4
| | | | | Logs from Bluetooth panel have "Bluetooth" as G_LOG_DOMAIN. Show them by default on -v
* Replace "application" with "app"Jake Dane2023-01-232-2/+2
| | | | | | | | | | | | | | | | | | | | | 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.
* shell: Let libX11 initialise threads itselfBastien Nocera2023-01-231-11/+0
| | | | | | | Require a version of libX11 new enough that it will initialise threads support itself. See https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/afcdb6fb0045c6186aa83d9298f327a7ec1b2cb9
* Revert "panel-list: Switch to main list if custom sidebar is not set"Georges Basile Stavracas Neto2023-01-091-4/+0
| | | | This reverts commit bc919b82c03ab3595b3ac0cf49c9e29aef9bde9a.
* cc-window: Don't trigger main search when pressing CTRL+Ssunflowerskater2023-01-061-2/+0
| | | | | | | | | CTRL+S is reserved for the "Save" action. HIG recommends to use CTRL+F to trigger search: https://developer.gnome.org/hig/reference/keyboard.html?highlight=Find Since CTRL+F already triggers main search, this commit just removes the CTRL+S shortcut. Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2280
* panel-list: Switch to main list if custom sidebar is not setMohammed Sadiq2023-01-061-0/+4
| | | | | | | | | | | | If the previously shown panel had a custom sidebar, we were not switching back to the main list if the currently shown panel doesn't have one. This will result in the sidebar having empty content. Fix it by always switching to main sidebar view if no custom sidebar widget is set. Fixes #2261
* Drop most uses of deprecated gtk_style_context_add/remove_classFelipe Borges2023-01-052-2/+2
| | | | | | | | GtkStyleContext will be deprecated in gtk 4.10. https://docs.gtk.org/gtk4/class.StyleContext.html This preserves code blocks where additional GtkStyleContext operations were used, such as gtk_style_context_save/restore.
* thunderbolt: Hide panel if there's no thunderbolt hardwareFelipe Borges2022-12-151-1/+4
| | | | | | Same logic as the Wacom tablet panel. Fixes #612
* log: Improve loggingMohammed Sadiq2022-12-018-296/+517
| | | | | The 'tracing' build option is no longer needed. And the verbosity of logs can be set by providing '-v' multiple times.
* help-overlay: remove visible property namessabriunal2022-11-301-9/+0
| | | | | | | Due to widgets are visible by default on GTK4 remove visible property names. Source: https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwidget.c#L1275
* help-overlay: Add missing shortcutssabriunal2022-11-291-0/+12
| | | | | | | | | This patch adds two missing shortcuts to help-overlay - Help (F1) - Keyboard Shortcuts (CTRL+?) Fixes: #839
* flatpak, shell: Make desktop file honor "Devel" app_idFelipe Borges2022-11-244-7/+22
|
* desktop: Remove obsolete Bugzilla entriesJake Dane2022-10-203-15/+1
| | | | | | | | | | | | | | | | 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.
* object-cache: Avoid use after free of task errorBarnabás Pőcze2022-10-191-1/+1
| | | | | | | | | | | | The error should not be touched after passing it to `g_task_return_error()` as noted by its documentation: Note that since the task takes ownership of @error, and since the task may be completed before returning from g_task_return_error(), you cannot assume that @error is still valid after calling this. However, previously, the code did try to free error since the `local_error` was defined with `g_autoptr(GError)`.
* panel-list: Select panel iff non-folded when search is cancelledMohammed Sadiq2022-08-171-3/+13
| | | | | If the window is folded, the previous panel shouldn’t be shown when search is cancelled. The panel selection list should be shown instead.
* shell: Remove no longer used iconMohammed Sadiq2022-08-172-3/+0
|
* Panels: Rename lock panel into screen panelMarco Trevisan (Treviño)2022-07-281-2/+2
| | | | | | | | | | This was designed some time ago [1] but never actually implemented, so: - Change the screen lock section to "screen" - Move the screen section up, so it's next to the other types of hardware - Added a Screen lock section in there [1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/909#note_737827
* firmware-security: Hide the panel when using a VMRichard Hughes2022-07-211-1/+2
| | | | Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1972
* Add Firmware Security panelKate Hsuan2022-06-272-0/+3
| | | | | | | | | | | | | | | The Firmware Security panel exposes the host security levels and details. The information is generated by fwupd. The panel also exposes hardware configuration changes to pinpoint the configuration changing time. Currently this panel shows: - HSI and secure boot status - Details of HSI and secure boot - Configuration changelog - Digested security level - Extended protection
* shell: Deactivate old panel before creating new oneBenjamin Berg2022-06-203-0/+12
| | | | | | | | | | | We need to cancel internal operations before starting to create a new panel, otherwise panels might be creating the same object for the cache in parallel and this is not supported by the object cache. The alternative to this would be to handle this inside the object store to allow parallel creation of the same key. Fixes: #1685
* Make the presentation of the main panel list a little bit nicer by adding an ↵Lukáš Tyrychtr2022-06-191-0/+3
| | | | a11y label
* info-overview-panel: Use the external link icon for the updates linkAdrien Plazas2022-05-122-0/+3
| | | | | This makes it explicit it opens another application to perform the action.
* online-accounts: Rename panel class to match filenameRobert Ancell2022-05-111-2/+2
|
* shell: Initialise locale earlyBastien Nocera2022-05-111-0/+3
| | | | | | | | | | | | | | | | | | | | Otherwise glib will make internal calls before setlocale is called: ** (process:1124144): WARNING **: 10:16:58.983: dcgettext("(null)", "", 5) called before setlocale() #0 0x00007ffff7c80f77 in g_logv () at /lib64/libglib-2.0.so.0 #1 0x00007ffff7c81233 in g_log () at /lib64/libglib-2.0.so.0 #2 0x00007ffff7fbb6c6 in dcgettext (__domainname=<optimized out>, __msgid=0x7ffff7ce6c5a "", __category=<optimized out>) at ../../../../Projects/jhbuild/gettext-pseudolocale/gettext-pseudolocale.c:194 #3 0x00007ffff7c6478e in _g_dgettext_should_translate () at /lib64/libglib-2.0.so.0 #4 0x00007ffff7c6484b in g_dgettext () at /lib64/libglib-2.0.so.0 #5 0x00007ffff7e98974 in g_application_class_intern_init () at /lib64/libgio-2.0.so.0 #6 0x00007ffff7d9cfb8 in g_type_class_ref () at /lib64/libgobject-2.0.so.0 #7 0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0 #8 0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0 #9 0x00007ffff7d9cc95 in g_type_class_ref () at /lib64/libgobject-2.0.so.0 #10 0x00007ffff7d8671a in g_object_new_valist () at /lib64/libgobject-2.0.so.0 #11 0x00007ffff7d867fd in g_object_new () at /lib64/libgobject-2.0.so.0 #12 0x0000000000449bcc in cc_application_new () at ../../../../Projects/jhbuild/gnome-control-center/shell/cc-application.c:294 #13 0x0000000000448fa6 in main (argc=1, argv=0x7fffffffd138) at ../../../../Projects/jhbuild/gnome-control-center/shell/main.c:55
* appdata: Correct name of launchableSimon McVittie2022-04-151-1/+1
| | | | | | Fixes: acd59aec "Rename app-id to org.gnome.Settings" Resolves: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1766 Signed-off-by: Simon McVittie <smcv@debian.org>
* appdata: Update screenshotsSophie Herold2022-03-189-8/+4
|
* user-accounts: Port to gtk4/libadwaita implementing the new designFelipe Borges2022-02-081-2/+2
| | | | https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/users/users.png
* Rename app-id to org.gnome.SettingsGeorges Basile Stavracas Neto2022-01-2111-15/+15
| | | | | | | | | | Rename the app-id to org.gnome.Settings since this is what we've been calling it for many years now. Adjust all files that derive from the app-id, such as the desktop file, D-Bus service file names, search providers, GSettings schemas, to match that. Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/344
* window: Improve transition between panelsGeorges Basile Stavracas Neto2022-01-202-5/+27
| | | | | | | | | | Moving the headerbar to the panels accentuated a pre-existing problem: transitioning between panels is flickery because we immediately remove the old panel, while the new panel fades in. Improve this transition by delaying the removal of the old panel to after the stack transition finishes.
* window: Remove unnecessary calls to gtk_widget_showGeorges Basile Stavracas Neto2022-01-201-2/+0
| | | | | Widgets are visible by default on GTK4, and we certainly don't hide panels by default, so remove them.
* window: Install action to navigate main leafletGeorges Basile Stavracas Neto2022-01-202-0/+15
| | | | | This allows implementing the back button of panel titlebars trivially, which is also done in this commit.
* window: Remove panel headerbar widgetryGeorges Basile Stavracas Neto2022-01-202-67/+0
| | | | | Now that panels handle their own titlebars, remove the corresponding widgetry from CcWindow.
* shell: Remove cc_shell_set_custom_titlebarGeorges Basile Stavracas Neto2022-01-203-41/+0
| | | | This is now unused.
* shell: Remove cc_shell_embed_widget_in_headerGeorges Basile Stavracas Neto2022-01-203-91/+0
| | | | It is now unused.
* panel: Remove cc_panel_get_title_widgetGeorges Basile Stavracas Neto2022-01-203-21/+0
| | | | This is now unused.
* panel: Add titlebar to panelsGeorges Basile Stavracas Neto2022-01-203-2/+165
| | | | | | | | | | Make CcPanel override GtkBuildable, and special-case two types of children: "content" for the main content, and "titlebar" for the titlebar. Those two child types exist merely for convenience, since it's still possible to override the entire panel with adw_bin_set_child(). For now, no panel is using any of these conveniences.
* panel: Add empty UI template fileGeorges Basile Stavracas Neto2022-01-203-0/+10
| | | | | The UI file currently has nothing, but we'll increment it soon with the headerbar.
* panel: Add "title" propertyGeorges Basile Stavracas Neto2022-01-204-1/+19
| | | | Will be used by the panel titlebar to have the proper title.