summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* window: Don't remove header widgets before changing panelsgbsneto/dynamic-panelsGeorges Basile Stavracas Neto2018-05-031-5/+8
| | | | | | | | | | | | | 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.
* wi-fi: Remove unused headerGeorges Basile Stavracas Neto2018-05-031-1/+0
|
* wifi: Hide when no Wi-Fi adapter is availableGeorges Basile Stavracas Neto2018-05-033-1/+71
| | | | It's WIP.
* panel-loader: Add support for static init functionsGeorges Basile Stavracas Neto2018-05-032-27/+55
| | | | | | | | | | | | | | | 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.
* model: Add visibility fieldGeorges Basile Stavracas Neto2018-05-036-63/+246
| | | | | | 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).
* window: Delegate model creation to CcApplicationGeorges Basile Stavracas Neto2018-05-034-30/+81
| | | | | | | | | | | 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.
* panel: Update code styleGeorges Basile Stavracas Neto2018-05-032-83/+50
| | | | | This is just an almost-trivial commit that ports CcPanel to use the latest code practices around.
* project: Update meson filesGeorges Basile Stavracas Neto2018-05-0311-130/+129
| | | | | | I probably have OCD. Seeing these files with this poor alignment gives me physical pain.
* shell-model: Remove boilerplate and update code styleGeorges Basile Stavracas Neto2018-05-022-73/+34
|
* project: Update DOAP fileGeorges Basile Stavracas Neto2018-05-021-23/+2
| | | | | | 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.
* project: Add coding style and contribution guidelinesGeorges Basile Stavracas Neto2018-05-023-23/+281
| | | | And also update the README file.
* window, shell-model: Silence warningsGeorges Basile Stavracas Neto2018-05-022-4/+4
| | | | A fallback from the previous commit.
* project: Add issue templatesGeorges Basile Stavracas Neto2018-05-023-0/+66
|
* ci: Do not run install for testingBenjamin Berg2018-05-021-1/+0
| | | | | | 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.
* tests/network: Add basic testing of network panelBenjamin Berg2018-05-0210-1/+1000
| | | | | | | 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.
* tests: Add helper for glib based test binariesBenjamin Berg2018-05-021-0/+113
| | | | | | | | | 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.$
* tests: Add dbusmock helper starting X server and system/session bussesBenjamin Berg2018-05-021-0/+101
| | | | | | 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.
* ci: Add dbusmock and Xvfb dependencyBenjamin Berg2018-05-021-0/+1
| | | | | This is in preparation for testing which requires an X server. mesa-dri-drivers is required for the OpenGL software renderer.
* tests/network: Fix deprecation warning in NM test serviceBenjamin Berg2018-05-021-1/+1
| | | | | This just fixes a simple deprecation warning in the NetworkManager test service.
* tests/network: Add status and carrier setting to NM test serviceBenjamin Berg2018-05-021-1/+105
| | | | | | 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.
* tests/network: Copy files from network manager for network panel testingBenjamin Berg2018-05-0212-0/+4027
| | | | | This copies a number of files from network manager in preparation of adding network panel tests.
* shell: Add static shell library for testing purposesBenjamin Berg2018-05-021-0/+22
| | | | | Export shell functionality which panels may require for testing purposes into a static library.
* network: Fix crash on connection change after device removalBenjamin Berg2018-05-021-2/+2
| | | | | | | 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.
* network: Ensure devices are removed from UI when disappearingBenjamin Berg2018-05-021-0/+2
| | | | | | 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.
* shell: Only try to select an existing panel on startupbenzea/startup-fixBenjamin Berg2018-04-303-1/+28
| | | | | | | | | | 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.
* Update Romanian translationDaniel Șerbănescu2018-04-301-82/+282
|
* sharing: set end margin for labels in Networks list boxJonathan Kang2018-04-261-0/+2
| | | | | | | | | 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.
* user-accounts: Port UmRealmManager to GTaskwip/oholy/port-user-accounts-to-gtaskOndrej Holy2018-04-253-183/+87
| | | | https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
* user-accounts: Port UmAccountDialog to GTaskOndrej Holy2018-04-251-23/+15
| | | | https://gitlab.gnome.org/GNOME/gnome-control-center/issues/20
* Updated Spanish translationDaniel Mustieles2018-04-231-422/+675
|
* Update Romanian translationDaniel Șerbănescu2018-04-221-263/+271
|
* power: Automatically add values to drop-down when necessaryBastien Nocera2018-04-191-1/+62
| | | | | | | | 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
* power: Don't show approximate percentagesBastien Nocera2018-04-191-4/+28
| | | | | | | 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
* trivial: Improve meson fileGeorges Basile Stavracas Neto2018-04-171-17/+17
| | | | | This commit only improves the style of the main Meson file, and makes the output message a bit more friendlier.
* Update POTFILES.inPiotr Drąg2018-04-171-1/+1
|
* Move datetime tests into tests subdirectoryBenjamin Berg2018-04-176-21/+35
|
* Move info panel test to tests subdirectoryBenjamin Berg2018-04-175-20/+24
|
* Move printers panel tests into tests folderBenjamin Berg2018-04-177-24/+25
|
* Move panel/common tests into new tests subdirectoryBenjamin Berg2018-04-177-22/+26
|
* Move common panel code from shell/ to panel/commonBenjamin Berg2018-04-1751-73/+88
| | | | | This creates a new static library called libwidget which the shell links against.
* shell: Remove CcEditableEntry, it is not used anywhereBenjamin Berg2018-04-174-729/+0
|
* build: Fix `USER_DIR_MODE` value in config.hIñigo Martínez2018-04-171-1/+3
| | | | | | | | | | | | | | | | | 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
* Update Croatian translationgogo2018-04-161-8/+8
|
* Update Croatian translationgogo2018-04-161-391/+590
|
* thunderbolt: Fix coding styleGeorges Basile Stavracas Neto2018-04-147-920/+951
| | | | Not everything was fixed, but why bother.
* Update POTFILES.inPiotr Drąg2018-04-131-0/+1
|
* thunderbolt: fix grammar in a translatable stringPiotr Drąg2018-04-131-2/+2
|
* thunderbolt: add a translator comment to the .desktop filePiotr Drąg2018-04-131-0/+1
|
* Update POTFILES.inPiotr Drąg2018-04-131-0/+5
|
* thunderbolt: move to the 'Devices' pageChristian Kellner2018-04-132-2/+2
| | | | | | | | 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).