Commit graph

17 commits

Author SHA1 Message Date
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
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
Georges Basile Stavracas Neto
c13de500b7 shell-model: Remove hidden category
No more panels are hidden now.

https://bugzilla.gnome.org/show_bug.cgi?id=790923
2017-11-28 17:03:51 -02:00
Georges Basile Stavracas Neto
b23ef59926 shell-model: Remove old categories
Since we don't maintain two different shells anymore, there
is no need to maintain the two different sets of categories
in the desktop files.

This commit also drops the "#ifdef CC_ENABLE_ALT_CATEGORIES"
blocks, since the previous commit removed that define.

https://bugzilla.gnome.org/show_bug.cgi?id=790923
2017-11-28 17:03:51 -02:00
Georges Basile Stavracas Neto
d5c4436869 project: Switch to the new shell
This is the bomb dropping commit. It does so simply by
changing the compiled files, and adjusting the build
projects proper.
2017-08-09 19:31:41 +02:00
Mohammed Sadiq
1485b50a7a shell-model: Add hidden settings
Some panels shall be shown only in current design, And some other panels
shall be shown only in new Shell design. So let's have a code that
would help us do that

https://bugzilla.gnome.org/show_bug.cgi?id=779216
2017-07-24 22:54:58 -03:00
Georges Basile Stavracas Neto
27ce5b388f shell-model: introduce new categories
Following the previous set of patches for implementing
the next generation Shell, a new set of categories must
be added.

These new categories will reflect on the ordering of the
panels and subpages in the sidelist.

This patch adds these new categories and conditionally
compiles them, to not break the current icon-based Shell.

https://bugzilla.gnome.org/show_bug.cgi?id=767301
2016-06-14 12:16:43 -03: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
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
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
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
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
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