Commit graph

198 commits

Author SHA1 Message Date
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
4c85135171 CcRRLabeler: don't crash when not running under X
If running under wayland, we can't use an X property notify
to look at workarea changes.
Currently, workarea is not part of the wayland protocol, so don't
bother and just don't crash.

https://bugzilla.gnome.org/show_bug.cgi?id=705573
2013-08-19 09:58:05 +02: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
Alexander Larsson
79371feec6 display: Fix input for new gtk+ drawing model
The coordinates of the cairo_t in GtkWidget::draw() is always
based on the origin of the widget, i.e. the allocation, even
for drawing on subwindows or whatnot. So, we can delete
all the user_to_device() code.

This also fixed input when the new Gtk+ drawing model changes,
as that will change the device coordinates reported (but not the
user coordinates).
2013-05-07 16:06:47 +02:00
Allan Day
db2f62082d display: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01:00
Bastien Nocera
9f29551a1e display: Remove the non-composited drawing paths
As they won't be used any more.
2013-02-18 19:13:34 +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
8d5f2908b5 panels: add --sourcedir=$(srcdir) when generating resource list
Like b8e93fb333 but for all panels.
2013-01-07 16:23:57 -05: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
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +01:00
Bastien Nocera
2a6b12d540 display: Remove 2 unused variables 2012-12-11 17:09:05 +01:00
Bastien Nocera
c6ee7e0b95 display: Remove custom marshallers 2012-12-11 17:09:05 +01:00
Bastien Nocera
e419ee7d4e panels: Remove unused X-GNOME-Settings-Panel key 2012-12-11 17:09:04 +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
Benjamin Berg
a61f0654b9 display: Fix coordinate calculations
https://bugzilla.gnome.org/show_bug.cgi?id=681475
2012-09-16 17:09:45 -04:00
Benjamin Berg
c1857b0f9c display: Fix mouse events not working in preview
We need to save event areas with the correct transformation.

The following things need to be take into account:
 * Current cairo matrix (translations)
 * Widget allocation because it is painting on the parents widgets window
 * Cairo device offset, which GTK+ sets (but not for a full window redraw)

https://bugzilla.gnome.org/show_bug.cgi?id=681475
2012-09-06 14:16:27 +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
Bastien Nocera
f75c06b979 display: Use symbolic name 2012-03-07 17:15:41 +01:00
Bastien Nocera
6b6e17788e display: Simplify add_key() calls and function 2012-03-07 17:15:41 +01:00
Michael Terry
49f9de6182 display: Fix crash when the screen setup changes
after the Display panel has been closed.

https://bugzilla.gnome.org/show_bug.cgi?id=670570
2012-03-01 16:00:09 +00:00
Javier Jardón
1070762478 configure.ac: Do not use GNOME_MAINTAINER_MODE_DEFINES
We have compilation warnings now for deprecated api
2012-01-23 14:35:16 +00:00
Robert Ancell
89bbb0a73a display: Use GDBus instead of dbus-glib
https://bugzilla.gnome.org/show_bug.cgi?id=667685
2012-01-12 15:41:47 +00:00
Florian Müllner
4cd7b6c6dc .desktop: Drop prefix from X-GNOME-Keywords
The field has now been included in the spec, so use the standardized
name.
2011-12-19 16:26:40 +01:00
Cosimo Cecchi
33747351a8 display: use dim-label style and right align for description labels
gnome-control-center (inconsistently) uses right-aligned dim-label
widgets for description labels (for example, in the System Info, User
Accounts and Printer panels)
Use them in the Display panel here as well.

https://bugzilla.gnome.org/show_bug.cgi?id=665057
2011-11-28 10:23:50 -05:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Alberto Ruiz
3630015d94 Update icon cache only on MAINTAINER_MODE 2011-10-05 16:45:13 +01:00
Bastien Nocera
5a5a037d09 display: Add context for the rotation labels 2011-09-12 12:05:33 +01:00
Bastien Nocera
71d01174d5 display: Remove duplicate/unused translations
"Normal" was translated 3 times when it only needed one,
and the translation in the .ui file weren't used at all.
2011-09-12 12:05:29 +01:00
Bastien Nocera
f33080ac1b display: Clean up signal handling when finalized
Otherwise we might crash if the display panel was opened
and the window focus changes.

https://bugzilla.gnome.org/show_bug.cgi?id=657919
2011-09-01 13:54:44 +01:00
Bastien Nocera
dceae5f79a display: Prefer higher frequency modes
And prefer the preferred mode to other modes with the
same resolution (even if they have a lower resolution).

https://bugzilla.gnome.org/show_bug.cgi?id=655041
2011-08-26 21:15:21 +01:00
Bastien Nocera
2baf442366 display: Remove use of idle_free()
It's just bizarre, and error-prone.
2011-08-26 21:15:21 +01:00
Bastien Nocera
886801c97c display: Use symbolic names for columns
Eeek...
2011-08-26 21:15:21 +01:00