Commit graph

63 commits

Author SHA1 Message Date
Elias Toivanen
ef72c19ebf Tooltips for the rotation buttons in Displays
When rotating a screen, the user has to first select the kind of
rotation and then press Apply. However, the meaning of the symbolic
icons may not be clear before actually pressing one of them.

This patch adds appropriate tooltips to the buttons so that the user has
a textual clue about what is going to happen.

https://bugzilla.gnome.org/show_bug.cgi?id=743888
2015-02-03 08:40:25 -06:00
Michael Catanzaro
1522790461 displays: Apply buttons should use suggested-action style class
https://bugzilla.gnome.org/show_bug.cgi?id=743216
2015-01-20 07:43:31 -06:00
Rui Matos
dd05918a40 display: Fix deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Rui Matos
30590061fc display: Drop deprecated API usage on FooScrollArea painting
This achieves a very similar result (darkening the background color)
without having to peek into the style context. Note that the stroke
is removed because it isn't really visible anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=740986
2014-12-05 16:13:29 +01:00
Bastien Nocera
d632e5988e display: Use new listbox helpers
https://bugzilla.gnome.org/show_bug.cgi?id=732106
2014-06-24 11:35:31 +02:00
Bastien Nocera
b50e712ac7 display: Remove shadowing variable
https://bugzilla.gnome.org/show_bug.cgi?id=731166
2014-06-05 17:16:41 +02:00
Bastien Nocera
42b1209130 display: Fix problems when left-most monitor is rotated
When rotating the left-most monitor, we could end up with one
of two scenarios:
- Huge gap between monitor one and two when the left monitor is made
to be vertical
- Monitor two overlapping on top of monitor one when monitor is
back to being horizontal.

In addition to adding a bit more debug, we now take the old and new
rotation of monitor one into account when calculating the moving
screen edges.

https://bugzilla.gnome.org/show_bug.cgi?id=731166
2014-06-05 17:16:41 +02:00
Bastien Nocera
27fa69a0ca display: Move apply_rotation_to_geometry()
https://bugzilla.gnome.org/show_bug.cgi?id=731166
2014-06-05 17:16:41 +02:00
Bastien Nocera
4ab4c18219 display: Check whether the rotation changes when relayouting
Consider whether rotation has changed when checking whether
we need to relayout the screens. Before, we would only have changed the
layout if the resolution changed.

This doesn't fix the problem of the relayouting code not taking rotation
into account, but it will at least allow us to run that code when only
the rotation changes.

https://bugzilla.gnome.org/show_bug.cgi?id=731166
2014-06-05 17:16:41 +02:00
Bastien Nocera
1e6ea54aaf display: Split out rotation sanity checking
https://bugzilla.gnome.org/show_bug.cgi?id=731166
2014-06-05 17:16:41 +02:00
Giovanni Campagna
64b3fdc2fc display: make the Apply button unsensitive for invalid configuration
If the configuration is not applicable, due to HW constraints we
know about, make the button insensitive, to avoid an error dialog
later on.

https://bugzilla.gnome.org/show_bug.cgi?id=727023
2014-06-04 16:49:11 +02:00
Yosef Or Boczko
9a62d82399 display: Use header bar in the dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=724299
2014-04-28 17:29:17 +03:00
Debarshi Ray
50b0383913 display: Remove redundant statement and variable definition
https://bugzilla.gnome.org/show_bug.cgi?id=727023
2014-04-02 17:55:43 +02:00
Debarshi Ray
63bf6aaf4b display: Silence -Wmaybe-uninitialized
We create rotate_box only when show_rotation is TRUE, and the
conditions for checking the different kinds of rotation do not make
sense when show_rotation is FALSE.

https://bugzilla.gnome.org/show_bug.cgi?id=727023
2014-04-02 17:45:51 +02:00
Debarshi Ray
71dc845389 Revert "Revert "display: Update for libupower-glib API changes""
This was never meant to be pushed.

This reverts commit f5b6fac376.
2014-02-17 19:57:25 +01:00
Debarshi Ray
f5b6fac376 Revert "display: Update for libupower-glib API changes"
This reverts commit 8ba50267be.
2014-02-17 19:53:29 +01:00
Cosimo Cecchi
d0a832b00f display: show only rotation options if we support them
Use the new libgnome-desktop API and determine if we can show or not
rotation options.

https://bugzilla.gnome.org/show_bug.cgi?id=721673
2014-01-09 09:43:33 -08:00
Cosimo Cecchi
53801be82a display: hide Size label when empty
We currently just display an empty string next to the Size row if we
can't compute that information. Hide it instead.

https://bugzilla.gnome.org/show_bug.cgi?id=721673
2014-01-07 09:50:59 -08:00
Matthias Clasen
732d3e04c3 display: Add an 'upside-down' button
Turn the rotation buttons into toggle buttons, and add one for
'upside-down'.

https://bugzilla.gnome.org/show_bug.cgi?id=715092
2013-12-05 17:14:57 -05:00
Yosef Or Boczko
5ac88138b9 display: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:27:27 +02:00
Bastien Nocera
8ba50267be display: Update for libupower-glib API changes
There's no "changed" signal anymore.
2013-10-30 12:10:59 +01:00
Thomas Wood
17126cc740 display: always label the built in display as "1"
https://bugzilla.gnome.org/show_bug.cgi?id=709168
2013-10-04 15:02:20 +01:00
Rui Matos
ea4f2b157d display: Remove no longer used .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Thomas Wood
34c43203ba display: add an option to turn off the display
https://bugzilla.gnome.org/show_bug.cgi?id=707570
2013-09-20 17:45:29 -04:00
Thomas Wood
02930b74e0 display: ensure the display labels remain visible when dialogs are open
https://bugzilla.gnome.org/show_bug.cgi?id=707930
2013-09-12 14:34:52 +01:00
Thomas Wood
75f6a84999 display: close any open dialog if the panel is destroyed 2013-09-11 15:56:43 +01:00
Thomas Wood
6192dd7fe3 display: disable the "Apply" button until a change has been made
https://bugzilla.gnome.org/show_bug.cgi?id=600225
2013-09-11 14:24:37 +01:00
Debarshi Ray
531989217e display: Silence -Wmaybe-uninitialized 2013-09-09 16:17:56 +02:00
Thomas Wood
183e31801d display: improve the display previews
Add the current background to the display previews and improve the
display number indicators.

https://bugzilla.gnome.org/show_bug.cgi?id=706429
2013-08-30 12:29:04 +01:00
Thomas Wood
b4a16be646 display: initial implementation of the new design
Add an initial implementation of the new design for the display panel. The
display previews and presentation mode are not yet fully implemented.

https://bugzilla.gnome.org/show_bug.cgi?id=706115
2013-08-20 18:25:44 +01:00
Giovanni Campagna
150466cdb6 display: adapt to the new model for display configuration
The way we apply the new configuration changed, in that we are
expected to call the apply() method of GnomeRRConfig ourselves,
and that takes care to call to mutter, show the confirmation
dialog, etc.

https://bugzilla.gnome.org/show_bug.cgi?id=705573
2013-08-19 09:58:05 +02:00
Thomas Wood
32a00a066a display: prevent the built-in display being turned on if the lid is closed
https://bugzilla.gnome.org/show_bug.cgi?id=704487
2013-07-19 17:14:56 +01:00
Thomas Wood
76c30cd6ef display: use the preferred width and height when moving inactive displays
Inactive displays have a width and height of zero, so use the preferred
width and height to allow correct positioning.

https://bugzilla.gnome.org/show_bug.cgi?id=704404
2013-07-17 17:44:03 +01:00
Thomas Wood
30f590952b display: Fix floating screens and subsequent errors
While a screen is being dragged, use the previous position if no new
snapped position was found.

https://bugzilla.gnome.org/show_bug.cgi?id=704390
2013-07-17 14:47:58 +01:00
Thomas Wood
0a938e815d display: prevent a crash if the screen being dragged is removed
https://bugzilla.gnome.org/show_bug.cgi?id=704389
2013-07-17 13:52:26 +01:00
Bastien Nocera
9dee75e76a display: Use unicode characters directly
Instead of using their escape sequences.
2013-01-16 15:07:21 +01:00
Stéphane Graber
66576dfe24 display: Add support for 21:9 displays
https://bugzilla.gnome.org/show_bug.cgi?id=691803
2013-01-16 11:18:20 +01:00
Cosimo Cecchi
b7571896aa display: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:05 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Bastien Nocera
905a7b1bec display: Don't translate the resolutions list
There's no good translation and the string is just too complicated
without translator comment.
2012-11-27 11:19:12 +01:00
Matthias Clasen
9f87704faf Display: Typographically pimp up the resolutions
These look a bit nicer with proper Unicode characters.

https://bugzilla.gnome.org/show_bug.cgi?id=689111
2012-11-27 10:54:22 +01:00
Bastien Nocera
e35a109d29 display: Move GnomeRRLabeler here
And rename to CcRRLabeler.
2012-11-21 22:14:52 +01:00
Federico Mena Quintero
f0be9146d4 displays: bgo#592412 - Make 'Mirrored Displays' string consistent with GnomeRRLabeler
We had 'Mirror displays' as a command in the control center, but 'Mirror screens' as a description in
GnomeRRLabeler.  Now we have 'Mirrored Displays' as a description of the current state.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2012-09-03 14:07:29 -05:00
Bastien Nocera
f4c3d190bc display: Avoid possible warning on exit
(gnome-control-center:8728): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gnome-control-center:8728): GLib-GObject-CRITICAL **: g_signal_handler_disconnect: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
2012-08-23 14:22:19 +01:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Cyrus Lien
15bcc03b40 display: Do not add preferred mode to drop down in clone mode.
Use preferred resolution to switch to mirror mode will popup error
messages if preferred resolution is not a common resolution.

https://bugzilla.gnome.org/show_bug.cgi?id=680969
2012-08-07 15:37:23 +01:00
Florian Müllner
4e374a27f0 display: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:37 +02:00
William Jon McCann
cd867b1158 Adapt to gnome-desktop API change for display labels
GdkColor -> GdkRGBA
2012-05-08 16:28:43 -04:00
Gabor Kelemen
80fdb0bee2 display: Translate the rotation drop-down again
The rotation combo box items on the Displays panel do not appear
translated.  This is because the items got translation context support
in 5a5a037d09, but to get the localized
strings, one needs to use g_dpgettext2()[1], not gettext().

https://bugzilla.gnome.org/show_bug.cgi?id=673766
2012-04-10 16:03:26 +01:00
Bastien Nocera
048a9bc85e display: Sort resolutions by width first
https://bugzilla.gnome.org/show_bug.cgi?id=671465
2012-03-08 10:44:37 +01:00