| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When changing panels, CcWindow can only remove the previous
panel's header widgets after making sure the new panel was
successfully set.
However, this is not the case, and when the current panel
fails to be set, the previous panel's header widget is
removed.
Fix that by waiting to remove the header widgets until the
panel is successfully set.
|
| |
|
|
|
|
| |
It's WIP.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Static init functions are functions that initialize resources
or monitor daemons without needing any contextual information,
such as a CcPanel instance or access to a CcShell implementation.
These functions are meant to be used for monitoring a panel's
visibility, when it makes sense. Usually, panels that represent
hardware that potentially is not available or is not supported
should hide itself.
Following this commit, the Wi-Fi panel panel will be adapted as
the first user of this new API. Other panels that require this
functionality will be adapted later.
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
| |
In order be able to modify panel information statically,
we need to have access to the CcShellModel from static
functions. CcApplication, thus, is a better place for the
model to live, since we can access it outside any scope
using g_application_get_default().
It also makes sense from the modeling point of view, since
the model is not tied to the shell anymore.
|
|
|
|
|
| |
This is just an almost-trivial commit that ports
CcPanel to use the latest code practices around.
|
|
|
|
|
|
| |
I probably have OCD. Seeing these files
with this poor alignment gives me physical
pain.
|
| |
|
|
|
|
|
|
| |
The maintainers listed there aren't maintaining it anymore,
and shouldn't be pinged about Settings. Please let me know
if any of you want your maintainership status back again.
|
|
|
|
| |
And also update the README file.
|
|
|
|
| |
A fallback from the previous commit.
|
| |
|
|
|
|
|
|
| |
There is no need to install g-c-c to run the tests, and in fact, we
should ensure that this is the case as it simplifies testing for e.g.
distributions.
|
|
|
|
|
|
|
| |
This adds tests for the network panel based on the test service found in
NetworkManager. Another possible solution may be to use the one from
dbusmock, however NetworkManager already has readily available code to
write tests in C which makes checking the widget hierarchy easier.
|
|
|
|
|
|
|
|
|
| |
This makes running glib based tests inside a dbusmock environment easier
and more beautiful (i.e. output is supressed unless an error occurs).
This helper has been submitted for inclusion in dbusmock. If it cannot$
live there in some form, then we should try to find a home in the GNOME$
project for it.$
|
|
|
|
|
|
| |
This helper has been submitted for inclusion in dbusmock. If it cannot
live there in some form, then we should try to find a home in the GNOME
project for it.
|
|
|
|
|
| |
This is in preparation for testing which requires an X server.
mesa-dri-drivers is required for the OpenGL software renderer.
|
|
|
|
|
| |
This just fixes a simple deprecation warning in the NetworkManager test
service.
|
|
|
|
|
|
| |
This adds a bit of new functionality to the test service to set the
status and reason for the status change as well as whether the carrier
is connected.
|
|
|
|
|
| |
This copies a number of files from network manager in preparation of
adding network panel tests.
|
|
|
|
|
| |
Export shell functionality which panels may require for testing purposes
into a static library.
|
|
|
|
|
|
|
| |
When a device is removed the callback handler could still be called
because it was connected using g_signal_connect rather than
g_signal_connect_object. This fixes crashes in the UI after a device has
been removed again.
|
|
|
|
|
|
| |
The "removed" callback from NMObject is never called when the object is
simply finalised because the UI drops the reference. Explicitly call the
handler so that UI elements are removed.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
Currently if a network connection's name is long enough, there will
be no space between the name label widget and the switch button widget
next to it.
Fix that by setting the end margin of label widget as 6 to keep some
space between those two widgets.
|
|
|
|
| |
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
|
|
|
|
| |
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
When a setting is set to a value that's not in the list of options, add
that custom value to the drop-down for the duration of the run, so as to
avoid the last item being selected and causing confusion.
https://bugzilla.gnome.org/show_bug.cgi?id=793448
|
|
|
|
|
|
|
| |
When there's a battery-level property (new in UPower 0.99.5), don't show
the percentage, as it's a rough approximation of the truth.
https://bugzilla.gnome.org/show_bug.cgi?id=780360
|
|
|
|
|
| |
This commit only improves the style of the main Meson
file, and makes the output message a bit more friendlier.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This creates a new static library called libwidget which the shell links
against.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
meson defines `USER_DIR_MODE` with a raw octal value to be used as
the default permissions when creating the user's configuration
directory.
However, meson does not support raw octal values[0], so the define
misses the initial `0` value. Due to this, the directory is created
with wrong permissions.
This has been changed to use the octal value as a string in meson,
so the definition has the proper value.
Fixes #49
[0] https://github.com/mesonbuild/meson/issues/2047
|
| |
|
| |
|
|
|
|
| |
Not everything was fixed, but why bother.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The 'Devices' page is a fitting place for the thunderbolt, being
an IO technology. It is expected that people that need to go to
that page will be sent there via a gnome-shell notification, so
there is no need for it to be on the main page.
Ok'ed by the design team (jimmac).
|