summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* power: Simplify cancellable destructionRobert Ancell2018-05-301-6/+2
|
* power: Replace ifdefs with #pragma onceRobert Ancell2018-05-301-5/+1
|
* power: Replace GObject boilerplace with G_DECLARE_TYPERobert Ancell2018-05-302-350/+284
|
* mouse: Connect signal handlers swappedRobert Ancell2018-05-314-32/+22
|
* mouse: Move callbacks into .ui fileRobert Ancell2018-05-314-14/+12
|
* notifications: Remove unused variableGeorges Basile Stavracas Neto2018-05-301-1/+0
|
* region: Remove unused variableGeorges Basile Stavracas Neto2018-05-301-2/+0
|
* color: Use GtkTemplateRobert Ancell2018-05-302-460/+379
|
* color: Use g_auto for variablesRobert Ancell2018-05-305-358/+176
|
* color: Replace ifdefs with #pragma onceRobert Ancell2018-05-306-27/+6
|
* color: Replace GObject boilerplace with G_DECLARE_TYPERobert Ancell2018-05-3010-706/+516
|
* window: Remove custom widgets at the correct timeGeorges Basile Stavracas Neto2018-05-291-22/+22
| | | | | | | | | | | The correct time to remove custom widgets is precisely after we checked if the panel can be activated, and before creating the panel. We were not following that, and it was causing the panels with header widgets to never actually show their custom widgets. Fix that by calling remove_all_custom_widgets() at the correct point in panel creation.
* window: Instrument some functionsGeorges Basile Stavracas Neto2018-05-291-0/+8
| | | | This will help in debugging.
* display: Use g_auto for variablesRobert Ancell2018-05-295-96/+67
|
* panel-list: Properly select panels when changing viewsGeorges Basile Stavracas Neto2018-05-291-1/+1
| | | | | | | | | When moving from and to different views, the first row might be activated due to focus going to the listbox. This wasn't a problem before because we couldn't hit that code path, but now we can. Fix that by always selecting the first visible row.
* display: Replace ifdefs with #pragma onceRobert Ancell2018-05-296-25/+6
|
* display: Replace GObject boilerplace with G_DECLARE_TYPERobert Ancell2018-05-292-267/+186
|
* search: Replace ifdefs with #pragma onceRobert Ancell2018-05-292-8/+2
|
* search: Replace GObject boilerplace with G_DECLARE_TYPERobert Ancell2018-05-293-114/+71
|
* panel-list: Improve search behaviorGeorges Basile Stavracas Neto2018-05-291-2/+33
| | | | | | | | There are a couple of small problems with the search behavior here. First, if we select a panel from search and leave it, it will continue to stay there forever. Second, if panels change their visibility status during runtime, the panel list wouldn't respond accordingly.
* window: Don't remove header widgets before changing panelsGeorges Basile Stavracas Neto2018-05-291-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-291-1/+0
|
* wifi: Hide when no Wi-Fi adapter is availableGeorges Basile Stavracas Neto2018-05-293-1/+71
| | | | It's WIP.
* panel-loader: Add support for static init functionsGeorges Basile Stavracas Neto2018-05-292-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-296-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-294-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-292-83/+50
| | | | | This is just an almost-trivial commit that ports CcPanel to use the latest code practices around.
* nofications: Use g_auto for variablesRobert Ancell2018-05-292-87/+60
|
* notifications: Replace ifdefs with #pragma onceRobert Ancell2018-05-292-8/+2
|
* notifications: Replace GObject boilerplace with G_DECLARE_TYPERobert Ancell2018-05-291-6/+1
|
* keyboard: Update code styleGeorges Basile Stavracas Neto2018-05-292-42/+51
| | | | | No functional changes were introduced. This is purely aesthetical.
* docs: Improve code style guidelineGeorges Basile Stavracas Neto2018-05-291-0/+42
|
* datetime: Use GtkTemplateRobert Ancell2018-05-296-431/+441
|
* keyboard: Replace ifdefs with #pragma onceRobert Ancell2018-05-295-20/+5
|
* keyboard: Replace GObject boilerplace with G_DECLARE_TYPERobert Ancell2018-05-299-138/+192
|
* night-light: Rework implementationGeorges Basile Stavracas Neto2018-05-297-388/+259
| | | | | | | | | | | | | | This commit improves the Night Light code in various ways: * Turn it into a template class, subclass of GtkDialog, and adapts all the code to reflect that. * Update the code style in various places, to make it more conformant with the documented code style. * Reorganize the code a bit, moving functions around, to make it more conformant with the documented order.
* night-light: Use "#pragma once" in headerGeorges Basile Stavracas Neto2018-05-291-4/+1
| | | | Let's use modern code practices around.
* tests: Add VPN related testsBenjamin Berg2018-05-291-0/+293
| | | | | This adds tests for the VPN section. Note that the tests to check sorting are disabled currently as sorting is not implemented.
* tests: Also wait for ConnectionAdded signal from NetworkManagerBenjamin Berg2018-05-291-1/+1
| | | | | | Also wait for the connection-added signal instead of only waiting for the property notification for the connections. While not neccessary, this is more correct.
* tests: Add helper to find a parent widget to network testBenjamin Berg2018-05-291-0/+14
| | | | | In preparation for testing VPN sorting. Looks for a parent of a specific type.
* tests: Check that Bluetooth section is not shownBenjamin Berg2018-05-291-1/+11
| | | | | This simply ensure the section does not randomly show up after making unrelated changes.
* tests: Use g_assert_nonnull rather than testing for != NULLBenjamin Berg2018-05-291-1/+1
| | | | Just a small code cleanup in the network panel test code.
* tests: Add delete_cb for network panel testingBenjamin Berg2018-05-291-0/+16
| | | | | Having a delete_cb to handle connection removal is useful for other tests. Add the function in preparation for VPN testing.
* tests: Return NMRemoteConnection from add_cbBenjamin Berg2018-05-292-6/+6
| | | | | The add_cb can be useful in other tests. Return the remote connection in the info struct to allow its use in other situations.
* tests: Use the same NMClient as the panelBenjamin Berg2018-05-291-0/+4
| | | | | | | | Doing so means we handle the same events as the panel. This probably makes no difference, but this way it is guaranteed we are not getting weird inconsistencies during testing. Also fixes a NMClient memory leak in the process.
* tests: Improve helpers to wait for NM eventsBenjamin Berg2018-05-291-10/+73
| | | | | This adds support for waiting on an NMConnection object and also allows waiting for both signals and properties.
* tests: Allow creating VPNs in the NM test serviceBenjamin Berg2018-05-291-1/+1
| | | | This is in preparation for adding VPN related tests.
* tests: Add trivial test to check empty network panelBenjamin Berg2018-05-291-0/+24
| | | | | | If there are no connections or devices then we should not be showing e.g. the Bluetooth list. Add a simple check that this is handled correctly.
* tests: Do not show_all the network panelBenjamin Berg2018-05-292-1/+3
| | | | | | This has the side effect of showing UI elements that should not be visible at startup. Just add the correct gtk_widget_show calls to show all relevant widgets.
* tests: Unset wayland display environment variable correctlyBenjamin Berg2018-05-291-1/+1
| | | | | Otherwise the test might run on a develpers wayland session rather than using the created X11 server.