RANDR - Desensitize the on/off radio buttons if we are in Mirror Screens mode

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>
This commit is contained in:
Federico Mena Quintero 2009-12-10 12:09:24 -06:00
parent 32cd3a9d39
commit 0f0e35d509

View file

@ -542,7 +542,11 @@ rebuild_on_off_radios (App *app)
g_signal_handlers_block_by_func (app->monitor_on_radio, G_CALLBACK (monitor_on_off_toggled_cb), app);
g_signal_handlers_block_by_func (app->monitor_off_radio, G_CALLBACK (monitor_on_off_toggled_cb), app);
if (app->current_output)
sensitive = FALSE;
on_active = FALSE;
off_active = FALSE;
if (!app->current_configuration->clone && app->current_output)
{
if (count_active_outputs (app) > 1 || !app->current_output->on)
sensitive = TRUE;
@ -552,12 +556,6 @@ rebuild_on_off_radios (App *app)
on_active = app->current_output->on;
off_active = !on_active;
}
else
{
sensitive = FALSE;
on_active = FALSE;
off_active = FALSE;
}
gtk_widget_set_sensitive (app->monitor_on_radio, sensitive);
gtk_widget_set_sensitive (app->monitor_off_radio, sensitive);