This adds a "Make Default" button in gnome-display-properties, which is used
to set up a systemwide default RANDR configuration. For users which don't have
a personal ~/.config/monitors.xml, then that systemwide configuration will
be used instead.
There is a PolicyKit helper program, gnome-display-properties-install-systemwide,
which is used to create the file
/etc/gnome-settings-daemon/xrandr/monitors.xml
in a secure fashion.
This button will use a PolicyKit helper to save the display configuration
to a systemwide file.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Now that the label with instructions is gone, let's have
a tooltip with better instructions.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Cross-with-arrows means 'you can move me', while hand means 'you can click me'
in this day and age. Pointed out by Ka-Hing Cheung <kahing@gmail.com>
Signed-off-by: Federico Mena Quintero <federico@novell.com>
The new window fits in 640x480 without any adjustments to the size of the
FooScrollArea, so we don't need to adjust that size anymore.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
This should make it more obvious that outputs are in fact draggable
in the FooScrollArea, and it will let us remove the ugly label
with instructions for how to drag the monitors.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
We simply hack the FooScrollArea for the monitor display to be shorter.
We can get fancier in the future by really computing the size based
on the monitor into which the window eventually gets mapped.
Patch by Takashi Iwai <tiwai@novell.com> - https://bugzilla.novell.com/show_bug.cgi?id=564579
Signed-off-by: Federico Mena Quintero <federico@novell.com>
This makes it even more obvious that you don't need to turn on
individual outputs for Mirror Screens to work properly.
It also means that we don't support "combined" setups like two mirrored
screens and one extended screen. It seems that the majority of people only care about a few cases:
- Laptop plus projector or monitor showing the same thing.
- Computer plus secondary monitor(s) with an extended desktop.
- Laptop plus docking station with external monitor only (built-in LCD turned off).
For more exotic combinations, people can use the xrandr(1) tool.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Previously it was always sensitive, even if there were not enough connected outputs
for mirroring, or if those those outputs didn't support the same resolution for
mirroring.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Previously, outputs could remain off if the user just selected Mirror Screens.
Now we automatically turn on all the outputs which support the clone mode,
to avoid extra work on the part of the user.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
The labels would get clipped if the monitor rectangles were too small,
thus making the labels unreadable. Now we ensure that the ink_rect of
the text fits, and we center the text based on its logical_rect.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
We used to sort the outputs by their X coordinate, maybe to display a list of them in a
reasonable order. However, we don't display such a list at all, so it doesn't make
sense to sort the outputs. This also makes the capplet use the same ordering for outputs
as gnome-settings-daemon for GnomeRRLabeler's purposes, so that the colors for the outputs
match in both the capplet and g-s-d.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Previously we were picking the output's highest-supported resolution, which is not
always the same as its preferred resolution. We also do this while actually turning
the output on, not as a side effect of rebuilding the resolution combo.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
In case the RANDR configuration cannot be applied, gnome-settings-daemon already
pops up an error message. So, don't pop up another error of our own.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
There is no timestamp available when the dialog returns from gtk_dialog_run().
So, we save the timestamp at the time the Apply button is clicked.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
The horizontal coordinate was not always being updated.
Also, ensure that outputs are at y=0.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
The labels are always painted against a light pastel background. Using
the theme's colors makes the label hard to read on 'inverse' themes.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
so that it can make its confirmation window a child of the parent.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9376
2009-03-11 Gabor Kelemen <kelemeng@gnome.hu>
* xrandr-capplet.c: Make the strings of the Rotation dialog appear
translated. Bug #574693.
svn path=/trunk/; revision=9336
We'll need this to maintain state for the D-bus async callback.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9241
2009-02-04 Federico Mena Quintero <federico@novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=434729 - Realign the
outputs when changing the resolution of one of them, so one
doesn't get overlapping monitors (when the resolution becomes
bigger) or disjoint monitors (when the resolution becomes smaller).
* xrandr-capplet.c (on_resolution_changed): Align the monitors.
(realign_outputs_after_resolution_change): New function. The
algorithm here could certainly be improved...
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9238
2008-12-18 Federico Mena Quintero <federico@novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=433939 - It's not
obvious how to turn on a new monitor.
* display-capplet.glade: Add On/Off radio buttons for the selected
monitor, as it is hard to find that the on/off state is actually
set by the Resolution combo.
* xrandr-capplet.c (rebuild_gui): Don't set sensitivity of
resolution_combo here...
(rebuild_resolution_combo): ... but do it here instead. This is
so that we can match the state of the monitor on/off buttons.
(rebuild_on_off_radios): New function. We set the on/off radio
buttons based on the "on" state of the current output.
(monitor_on_off_toggled_cb): New callback; we toggle the current
output's on/off state.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9186
2008-12-18 Federico Mena Quintero <federico@novell.com>
* xrandr-capplet.c (select_current_output_from_dialog_position):
Fix the type of the "output" variable.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9185
2008-12-16 Federico Mena Quintero <federico@novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=450141 - Help button
in the Display capplet does nothing.
* xrandr-capplet.c (run_application): Hide the Help button as we
have no help to show for this capplet yet.
(hide_help_button): New function.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9176
2008-12-15 Federico Mena Quintero <federico@novell.com>
* xrandr-capplet.c (on_screen_changed): Use
select_current_output_from_dialog_position() instead of selecting
an output ourselves.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9171
2008-12-15 Federico Mena Quintero <federico@novell.com>
* xrandr-capplet.c (select_current_output_from_dialog_position):
New function.
(dialog_map_event_cb): New GtkWidget::map-event handler for the
toplevel dialog. When the dialog gets mapped, we make the current
output be the one which actually contains the dialog window, so
that the user can edit the monitor which he's looking at.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=9170