Commit graph

31 commits

Author SHA1 Message Date
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
Yuri Chornoivan
e7050ab6f4 Fix minor typos 2020-07-20 10:38:09 +03:00
Robert Ancell
5dbbc20918 shell: Show the submenu icon hint for the applications panel
The panel swarms details/devices/privacy show this icon. Since the applications
panel is not made from sub-panels, this doesn't show. For consistency this shows
the icon so the transition isn't as jarring for the user.

Add a flat into the panel .desktop file to enable this - other panels might
require this in the future
2019-11-28 11:20:41 +13:00
Robert Ancell
c6965d9e30 shell: Use g_autofree for strings 2019-10-02 17:04:15 +00:00
Florian Müllner
d5de9d86c9 model: Convert panel icons to symbolic variants if possible
Panel icons should be consistent between the app and corresponding
search results in GNOME Shell, but currently the former uses the
symbolic variant while the latter uses the colored version.

Address this by converting icons to their symbolic variants when
building the model rather than later when consuming them.

https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/151
2018-07-29 21:45:38 +00:00
Georges Basile Stavracas Neto
a78cbe3963 model: Add visibility field
This field can be used to communicate the visibility of the
panel from a static context (i.e. without any instances of
a CcPanel nor any access to CcShell).
2018-05-29 16:09:51 -03:00
Georges Basile Stavracas Neto
36af5e51d1 shell-model: Remove boilerplate and update code style 2018-05-02 23:11:48 -03:00
Georges Basile Stavracas Neto
16f06665dd window, shell-model: Silence warnings
A fallback from the previous commit.
2018-05-02 22:34:23 -03:00
Benjamin Berg
f547d9129d shell: Only try to select an existing panel on startup
When selecting the panel on startup based on the "last-panel" settings,
we need to make sure that the panel exists.

Note that this is a special case which does not use the internal
set_active_panel_from_id API. Using it is currently not possible because
the API does not report back the error and we would end up not selecting
any panel.
2018-04-30 14:02:25 +00:00
Rui Matos
13abc75273 shell: Make search results sorting smarter
Instead of just sorting by the name the sort order will now be:

1. Panels whose name match a search term
2. Panels whose keywords match the most search terms
3. Panels whose description match the most search terms
4. The remaining panels by name

https://bugzilla.gnome.org/show_bug.cgi?id=729027
2014-05-16 11:59:48 +02:00
Giovanni Campagna
eb3dfe9b77 shell: Use CcShellMode to do the panels filtering
https://bugzilla.gnome.org/show_bug.cgi?id=690577
2013-01-15 11:37:24 +01:00
Giovanni Campagna
0139f68416 shell: replace GMenu loading code with an hardcoded list of panels
Now that we don't allow or load external panels, using libgnome-menu is just
overengineering. We can get the same results with less code by keeping a static
list of function pointers.
This reduces the number of places one needs to patch to add a new panel.
Also, this way we avoid registering all types at startup, and if we want
we can switch to load panel desktop files in a separate thread.

https://bugzilla.gnome.org/show_bug.cgi?id=690165
2012-12-18 16:46:27 +01:00
Giovanni Campagna
68bfa875cf shell: fix refcounting in GMenu code (1/2)
gmenu_tree_entry_get_app_info() does not return a new reference

https://bugzilla.gnome.org/show_bug.cgi?id=690117
2012-12-13 15:41:43 +01:00
Bastien Nocera
4dd36b4279 shell: Simplify desktop file loading
By using known patterns for the desktop file name.
2012-12-11 17:09:04 +01:00
Bastien Nocera
ae24773740 shell: Print the name of the missing icon 2012-12-03 14:57:42 +01:00
Jon McCann
599f19a595 Increase icon size to 48px
https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-05-08 17:03:55 +01:00
William Jon McCann
d009a3fc35 Revert "Increase icon size to 48px"
This reverts commit c8c8720d72.
2012-05-01 14:55:43 -04:00
Jon McCann
c8c8720d72 Increase icon size to 48px
https://bugzilla.gnome.org/show_bug.cgi?id=673869
2012-04-30 15:35:28 -04:00
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Christian Persch
e1dbaef587 shell: Don't crash when loading the icon fails
https://bugzilla.gnome.org/show_bug.cgi?id=660513
2011-10-17 13:57:42 +01:00
Bastien Nocera
93d7d6b6ea shell: Don't repeat the item title when searching
https://bugzilla.gnome.org/show_bug.cgi?id=657020
2011-08-26 13:59:23 +01:00
Vincent Untz
48dec984db shell: Do not add a trailing dash in search target when comment is empty
When the comment is empty, we do not want to add a dash to the search
target, as it will be a trailing one.

https://bugzilla.gnome.org/show_bug.cgi?id=655487
2011-08-02 10:16:11 +02:00
Vincent Untz
c635d8e875 shell: Port to new gnome-menus API
https://bugzilla.gnome.org/show_bug.cgi?id=655110
2011-08-01 19:41:36 +02:00
Thomas Wood
6c0cbc9d40 shell: sort the icons alphabetically 2011-02-12 19:21:43 +00:00
Matthias Clasen
62e2bd6e75 Correct a comment 2011-01-27 08:16:03 -05:00
Bastien Nocera
4b80e08055 shell: Reload icons when icon theme changes
https://bugzilla.gnome.org/show_bug.cgi?id=639268
2011-01-14 17:04:10 +00:00
Matthias Clasen
aef8513752 shell: Add keyword search
This commit makes search look at the X-GNOME-Keywords key. The key
is expected to hold a list of strings, and is translatable.

http://bugzilla.gnome.org/show_bug.cgi?id=634926
2010-11-15 18:04:57 -05:00
Bastien Nocera
4ec7801cbb shell: Show settings without a panel in Other
Add the X-GNOME-Settings-Panel category. You need a control-center
panel to add this to your desktop file. Desktop entries with this
category but that aren't actually panels will be ignored (no cheating).

If the desktop file for your settings isn't a panel, it will show in the
"Other" section of the control-center shell

https://bugzilla.gnome.org/show_bug.cgi?id=630998
2010-09-30 13:48:29 +01:00
Thomas Wood
b8d094cad7 shell: load the X-GNOME-Settings-Panel ID into the data model
Load the panel id from the .desktop file into the model so that it does not
need to be loaded again later.
2010-06-04 16:34:52 +01:00
Thomas Wood
27bf283683 shell: set the window name and icon when opening an embedded settings panel
This involves storing the default window title and icon name and resetting
the title and icon name when an embedded settings panel is closed.

The icon name and title for each panel is retrieved from the desktop file
information and stored in the CcShellModel.
2010-05-25 14:38:36 +01:00
Thomas Wood
4ea04c81dc shell: add a new settings shell
The new shell provides an implementation of CcShell and also removes the
dependency on libslab.
2010-05-19 11:11:26 +01:00