Commit graph

17814 commits

Author SHA1 Message Date
Robert Ancell
67d39e497a region: Fix language search crash due to g_auto changes in 79e00c3 2018-06-20 17:07:08 +12:00
Robert Ancell
9ae5f9a667 Fix crash due to g_auto changes in 79e00c3 2018-06-20 16:44:36 +12:00
Georges Basile Stavracas Neto
a4746a90c7 docs: Remove trailing space from code example 2018-06-19 16:29:04 +00:00
Georges Basile Stavracas Neto
baf161085f docs: Document more of the code style 2018-06-19 14:44:57 +00:00
Georges Basile Stavracas Neto
c89a919536 window: Remove unused panel box
Whenever a panel is activated, there is a GtkBox that
is added between the window and the panel itself.

Investigating the history of this field, it originally
appeared at ec7f8c9b when the window started using
widgets rather than page numbers. Apparently, it was a
GtkBox to help dealing with the GtkNotebook (which was
later changed to the current GtkStack).

The field was renamed from 'current_panel' to 'current_panel_box'
at ab435aa9. But since the transition to GtkStack, there
is no real need to use the GtkBox anymore.

This patch removes this GtkBox, and as a consequence, the
code is slightly simplified.
2018-06-18 11:33:02 -03:00
Yi-Jyun Pan
d814d9db02 Update Chinese (Taiwan) translation 2018-06-13 12:51:18 +00:00
Robert Ancell
71383e8b50 power: Use GtkTemplate 2018-06-11 14:30:31 +00:00
Robert Ancell
014e572e9b universal-access: Use GtkTemplate 2018-06-11 14:11:47 +00:00
Benjamin Steinwender
92f73720b6 Update German translation 2018-06-09 08:30:48 +00:00
Jonathan Kang
ca15b9822d wifi: only manage Wi-Fi devices managed by NM
If a Wi-Fi device is unmanaged by NetworkManager, ignore it.
2018-06-08 13:03:53 +00:00
Robert Ancell
86d1d30c63 common: Use g_auto for variables 2018-06-07 01:08:07 +00:00
Robert Ancell
eff88ab2f1 sharing: Use GtkTemplate 2018-06-07 00:58:22 +00:00
Stas Solovey
e072bc5bae Update Russian translation 2018-06-06 10:15:48 +00:00
Marek Cernocky
d4a3d5a180 Updated Czech translation 2018-06-06 10:36:29 +02:00
Jordi Mas
a259f48199 Update Catalan translation 2018-06-03 10:59:36 +02:00
Robert Ancell
122f997493 background: Replace deprecated GSimpleAsyncResult with GTask 2018-06-03 06:46:16 +04:00
Robert Ancell
3622c8ff14 power: Use g_auto for variables 2018-06-03 01:38:43 +00:00
Robert Ancell
3f9337da4e universal-access: Use g_auto for variables 2018-06-03 01:31:26 +00:00
Robert Ancell
a30f660db9 sharing: Use g_auto for variables 2018-06-03 01:11:17 +00:00
Robert Ancell
9a7850a7aa region: Move callbacks into .ui file 2018-06-03 00:41:58 +00:00
Robert Ancell
223087cf39 common: sharing: Replace ifdefs with #pragma once 2018-06-01 21:41:34 +00:00
Robert Ancell
42ea814d72 common: Replace GObject boilerplace with G_DECLARE_TYPE 2018-06-01 21:41:33 +00:00
Robert Ancell
a91ef6c7d7 sharing: Replace ifdefs with #pragma once 2018-06-01 21:21:05 +00:00
Robert Ancell
394797025f sharing: Replace GObject boilerplace with G_DECLARE_TYPE 2018-06-01 21:21:05 +00:00
Robert Ancell
a64ef75ad7 Simplify use of GCancellable
g_cancellable_cancell can be called without checking for a NULL value.
Use g_clear_object instead of g_object_unref
2018-06-01 21:03:19 +00:00
Robert Ancell
dd61d98ec5 datetime: Move callbacks into .ui file 2018-06-01 20:35:30 +00:00
Robert Ancell
c461e436b7 user-accounts: Replace ifdefs with #pragma once 2018-06-01 11:04:18 +00:00
Robert Ancell
678beb6712 user-accounts: Replace GObject boilerplace with G_DECLARE_TYPE 2018-06-01 11:04:18 +00:00
Gun Chleoc
0a47d591eb Update Scottish Gaelic translation
(cherry picked from commit 8c6272d36e)
2018-06-01 10:26:19 +00:00
Robert Ancell
930aff4cc7 background: Fix compile warning about object type
[8/15] Compiling C object 'panels/background/panels@background@@background-chooser@sta/cc-background-xml.c.o'.
In file included from /usr/include/glib-2.0/gobject/gbinding.h:29:0,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from ../panels/background/cc-background-xml.c:22:
../panels/background/cc-background-xml.c: In function ‘cc_background_xml_load_xml_internal’:
/usr/include/glib-2.0/gobject/gobject.h:512:32: warning: passing argument 2 of ‘emit_added_in_idle’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define g_object_ref(Obj)      ((__typeof__(Obj)) (g_object_ref) (Obj))
                                ^
../panels/background/cc-background-xml.c:310:34: note: in expansion of macro ‘g_object_ref’
         emit_added_in_idle (xml, g_object_ref (item));
                                  ^~~~~~~~~~~~
../panels/background/cc-background-xml.c:138:1: note: expected ‘GObject * {aka struct _GObject *}’ but argument is of type ‘CcBackgroundItem * {aka struct _CcBackgroundItem *}’
 emit_added_in_idle (CcBackgroundXml *xml,
 ^~~~~~~~~~~~~~~~~~
2018-06-01 14:29:28 +12:00
Gunnar Hjalmarsson
0bd90ca34b region: Show scrollbars if needed
If we are initially showing more entries than can be fit, we should
scroll then too rather than deciding in code when to do this.

https://bugzilla.gnome.org/show_bug.cgi?id=793861
2018-05-31 12:36:54 +12:00
Robert Ancell
59e420b774 search: Fix crash introduced in 58a6432 2018-05-31 12:16:04 +12:00
Robert Ancell
233111b264 search: Use GtkTemplate 2018-05-30 23:40:00 +00:00
Robert Ancell
6b2ed3a4bc universal-access: Replace ifdefs with #pragma once 2018-05-30 23:33:25 +00:00
Robert Ancell
85eeebb5c5 universal-access: Replace GObject boilerplace with G_DECLARE_TYPE 2018-05-30 23:33:25 +00:00
Robert Ancell
58a64323c4 search: Use g_auto for variables 2018-05-30 23:24:21 +00:00
Robert Ancell
d2959e4fe7 power: Simplify GPtrArray memory management 2018-05-30 23:17:08 +00:00
Robert Ancell
ed6ac15b5c power: Simplify cancellable destruction 2018-05-30 23:17:07 +00:00
Robert Ancell
27a64cd04b power: Replace ifdefs with #pragma once 2018-05-30 23:17:07 +00:00
Robert Ancell
f51932978f power: Replace GObject boilerplace with G_DECLARE_TYPE 2018-05-30 23:17:07 +00:00
Robert Ancell
3dc77a68e6 mouse: Connect signal handlers swapped 2018-05-31 09:16:00 +12:00
Robert Ancell
41d98fdf3f mouse: Move callbacks into .ui file 2018-05-31 09:13:47 +12:00
Georges Basile Stavracas Neto
4627e847af notifications: Remove unused variable 2018-05-30 17:45:28 -03:00
Georges Basile Stavracas Neto
d357f1de9e region: Remove unused variable 2018-05-30 17:42:07 -03:00
Robert Ancell
5ea7632b83 color: Use GtkTemplate 2018-05-30 16:27:46 +12:00
Robert Ancell
490bee5a23 color: Use g_auto for variables 2018-05-30 15:46:01 +12:00
Robert Ancell
04e36953ff color: Replace ifdefs with #pragma once 2018-05-30 15:09:55 +12:00
Robert Ancell
770a3b1df6 color: Replace GObject boilerplace with G_DECLARE_TYPE 2018-05-30 15:08:44 +12:00
Georges Basile Stavracas Neto
6d3ed43e74 window: Remove custom widgets at the correct time
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.
2018-05-29 20:46:03 -03:00
Georges Basile Stavracas Neto
1d8faa2a73 window: Instrument some functions
This will help in debugging.
2018-05-29 20:44:21 -03:00