Commit graph

17024 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
09c202528f network: Turn into a final class
The Network panel is not really a deriverable type, and
since after 61d7abe795 we can use the
utility macros.

Thus, this commit removes all the boilerplate code and
turns CcNetworkPanel into a final class.

https://bugzilla.gnome.org/show_bug.cgi?id=785581
2017-08-07 20:23:40 +01:00
Georges Basile Stavracas Neto
f07c35747c network: Remove Airplane Mode switch
The Network panel does not deal with Wi-Fi devices anymore,
and does not make sense to have the Airplane Mode switch in
there, since it is now available at the Wi-Fi panel.

This commit then removes the Airplane Mode switch from the
Network panel.

https://bugzilla.gnome.org/show_bug.cgi?id=785581
2017-08-07 20:23:40 +01:00
Jeremy Bicha
62c86c7712 power: Restore Power Off option for Power Button
https://bugzilla.gnome.org/show_bug.cgi?id=781108
2017-08-07 13:24:11 -04:00
Fran Dieguez
360e051a3c Update Galician translation 2017-08-07 07:58:15 +00:00
Matej Urbančič
79935d9f9b Updated Slovenian translation 2017-08-07 08:45:28 +02:00
Navaneeth
77059a8002 Update Malayalam translation 2017-08-05 20:09:53 +00:00
Marek Cernocky
6694ec4a59 Updated Czeach translation 2017-08-03 18:03:46 +02:00
Marek Cernocky
72e876b336 Updated Czeach translation 2017-08-03 18:02:01 +02:00
Jordi Mas
df24f0f681 Update Catalan translation 2017-08-02 06:31:27 +02:00
Balázs Meskó
327d15ecc3 Update Hungarian translation 2017-08-01 21:05:24 +00:00
Dušan Kazik
2a42f4769f Update Slovak translation 2017-08-01 18:49:07 +00:00
Marek Cernocky
d668616410 Updated Czech translation 2017-08-01 15:52:01 +02:00
Fabio Tomat
03ee90bc53 Update Friulian translation 2017-07-31 06:39:26 +00:00
Fabio Tomat
8a6523df76 Update Friulian translation 2017-07-31 06:28:00 +00:00
Mario Blättermann
9fe3c26fec Update German translation 2017-07-27 20:14:31 +00:00
Baurzhan Muftakhidinov
d022e5619b Update Kazakh translation 2017-07-27 05:27:25 +00:00
Daniel Mustieles
7533136c6d Update Spanish translation 2017-07-26 07:53:31 +00:00
Pawan Chitrakar
65717d4dbc Update Nepali translation 2017-07-26 06:06:57 +00:00
gogo
ae9f9c8817 Update Croatian translation 2017-07-25 18:32:30 +00:00
gogo
3b04885120 Update Croatian translation 2017-07-25 18:31:19 +00:00
Piotr Drąg
2c39870fb8 Update POTFILES.in and POTFILES.skip 2017-07-25 16:04:57 +02:00
Felipe Borges
756eb883df printers: Fix visibility guard for the printer "Model" label
This is a typo related to the fix at commit 7d25444.
2017-07-25 14:49:41 +02:00
Georges Basile Stavracas Neto
5bc84ae4e3 info: Make margins consistent with other panels
All the new panels have a standard 24px margin now, so
since we're already splitting the info pages into separate
panels, also fix this minor annoyance.

https://bugzilla.gnome.org/show_bug.cgi?id=779216
2017-07-24 23:33:54 -03:00
Georges Basile Stavracas Neto
b4194048de panel-loader: Cosmetic changes
This commit only fixes some very minor cosmetic changes
like int → gint, simplifies the code by using g_autofoo,
et cetera.

https://bugzilla.gnome.org/show_bug.cgi?id=779216
2017-07-24 23:33:41 -03:00
Mohammed Sadiq
6cf52ada03 info: Add desktop files for the split panels
This commit shall show the panels separate.

Some panels are hidden in current design, while some other panels
are hidden in new shell design.

https://bugzilla.gnome.org/show_bug.cgi?id=779216
2017-07-24 22:55:27 -03: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
Florian Müllner
8b09079f34 shell/alt: Always activate panel list after view change
The displayed panel should always match the selection in the panel
list. That implies that after swapping out the list (for instance
by browsing Devices or Details), we need to update the panel rather
than keeping the old one around until the user manually selects a
row. The easiest way to achieve that is to activate the panel list
after a view change when appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=783429
2017-07-24 22:23:23 -03:00
Florian Müllner
796981d390 keyboard: Special-case disabling of multi-bindings shortcuts
For shortcuts that support multiple bindings, the disabled state is
expressed as an empty list rather than a list with a single empty
element. While the latter certainly works as expected as far as the
actual keybinding is concerned, the shortcut will show up as modified
even if it is disabled by default. Explicitly setting bindings to the
empty list when a shortcut is disabled fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=784620
2017-07-24 21:43:24 -03:00
Aurimas Černius
f794fe6cfd Updated Lithuanian translation 2017-07-24 23:43:18 +03:00
Fran Dieguez
9438ffa682 Update Galician translation 2017-07-24 12:46:02 +00:00
Pawan Chitrakar
9160aee403 Update Nepali translation 2017-07-24 07:07:18 +00:00
A S Alam
a733159934 updated Punjabi Translation 2017-07-23 09:05:16 -05:00
Emin Tufan Çetin
d27dcafe6e Update Turkish translation 2017-07-22 12:06:57 +00:00
Kukuh Syafaat
629eef66ad Update Indonesian translation 2017-07-22 05:06:57 +00:00
Jordi Mas
f9d3c5a5f7 Update Catalan translation 2017-07-21 16:59:47 +02:00
Felipe Borges
7d254442a0 printers: Fix visibility guard for the printer "Model" label
We just present the printer "Model" when printer_make_and_model
is different than NULL OR not an empty string.

We were using the wrong logic operator in the conditional that
toggles the visibility of this info.
2017-07-20 13:35:38 +02:00
Daniel Mustieles
05a063e20e Update Spanish translation 2017-07-20 08:09:09 +00:00
Fabio Tomat
0850f0b223 Update Friulian translation 2017-07-19 15:45:46 +00:00
Rui Matos
8c2968085d 3.25.4 2017-07-18 22:56:26 +02:00
Piotr Drąg
476968b5c0 Update POTFILES.in and POTFILES.skip 2017-07-18 18:45:00 +02:00
Georges Basile Stavracas Neto
4ffb8606c0 project: Update POTFILES.in
With the new Wi-Fi panel.
2017-07-18 13:33:00 -03:00
Georges Basile Stavracas Neto
016efdfac8 wifi: Introduce Wi-Fi panel
The glory moment has come. The new Wi-Fi panel is finally
introduced using a different code style from the rest of
the Network panel, since Control Center itself is written
using the GTK+ C code style.

The Wi-Fi panel uses modern GTK+ features like template
classes and new widgets. The files are stored together
with the Network panel so that we can reuse the abstraction
layer that the Network panel has to manage devices.

https://bugzilla.gnome.org/show_bug.cgi?id=784818
2017-07-18 13:30:46 -03:00
Fabio Tomat
0e3895031f Update Friulian translation 2017-07-18 11:41:23 +00:00
Fabio Tomat
226f1061a1 Update Friulian translation 2017-07-18 08:54:54 +00:00
Georges Basile Stavracas Neto
b12a56d97c network: Add Wi-Fi widgets using device product as title
When there are multiple Wi-Fi devices, we must show a stack
switcher in the header of the Wi-Fi panel with the name of
the device.

The problem is that, currently, NetDeviceWifi does not add
its widgets to the main stack setting a stack title, and so
the stack switcher is empty.

Fix that by always adding the widgets to the stack using the
device product name as title.

https://bugzilla.gnome.org/show_bug.cgi?id=784818
2017-07-17 23:41:36 -03:00
Georges Basile Stavracas Neto
cf62c0abb7 network: Rework NetDeviceWifi interface
The UI definitions of the Wi-Fi devices currently contain many
widgets in the stack, such as the tower icon, the enable/disable
switch and the status.

In the new Wi-Fi panel, all those widgets will clutter the
interface and break the entire UI.

Fix that by splitting those widgets in two different containers:

  1. The header_box container, with the menu button and the
     enable/disable switch.
  2. The center_box widget, with the title and status labels,
     which will be consumed by the Wi-Fi panel to be the center
     widget of the headerbar.

This commit also introduces two getters that expose those two
containers. With that, another load of code could be simplified.

https://bugzilla.gnome.org/show_bug.cgi?id=784818
2017-07-17 23:41:25 -03:00
Georges Basile Stavracas Neto
3317e88de8 network: Don't manage Wi-Fi devices
The Wi-Fi devices are going to be managed with the
to-be-introduced Wi-Fi panel, and don't need to
be available in the Network panel anymore.

This patch then blacklists Wi-Fi devices and doesn't
let the Network panel manage them.

https://bugzilla.gnome.org/show_bug.cgi?id=784818
2017-07-17 23:41:08 -03:00
Georges Basile Stavracas Neto
158591a346 network: Replace the notebook with a stack
The Network panel uses a GtkNotebook internally to manage
the different setup pages of the network devices. While it
does the job, we now have a modern widget for that: GtkStack.

With GtkStack, managing the pages becomes a lot easier and
we gain almost for free the nice transition between pages,
besides of course being a widget that consumes slightly less
resources.

Besides all these gains, using a GtkStack will allow us to
implement the new Wi-Fi panel in a more cohesive manner,
sharing large portions of code and avoiding copy pasta.

This commit then turns the GtkNotebook into a GtkStack, and
renames and adapts the code to reflect that. Fortunately,
the code got actually simpler with the move.

https://bugzilla.gnome.org/show_bug.cgi?id=784818
2017-07-17 23:40:58 -03:00
Jonas Ådahl
c37ce6fcb4 display: Add is_interlaced() D-Bus implementation
Whether a mode is interlaced or not is now exported by adding a
'is-interlaced' (b) value to the mode properties variant. Implement the
is_interlaced() vfunc using this information.
2017-07-14 18:32:55 +02:00
Jonas Ådahl
252fd31762 display: Update to the new D-Bus API mode format
The mode format communicated via the new D-Bus API changed to
specifying modes using a per monitor unique mode ID string. The uint
'flags' was also changed to more flexible a{sv} 'properties' structure.
2017-07-14 18:32:55 +02:00