gnome-control-center r9188 - trunk/capplets/display
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r9188 - trunk/capplets/display
- Date: Wed, 7 Jan 2009 23:28:25 +0000 (UTC)
Author: federico
Date: Wed Jan 7 23:28:25 2009
New Revision: 9188
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9188&view=rev
Log:
Let the user turn on outputs which were off
Signed-off-by: Federico Mena Quintero <federico novell com>
Modified:
trunk/capplets/display/xrandr-capplet.c
Modified: trunk/capplets/display/xrandr-capplet.c
==============================================================================
--- trunk/capplets/display/xrandr-capplet.c (original)
+++ trunk/capplets/display/xrandr-capplet.c Wed Jan 7 23:28:25 2009
@@ -476,15 +476,13 @@
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 (count_active_outputs (app) <= 1)
+ if (app->current_output)
{
- sensitive = FALSE;
- on_active = app->current_output ? app->current_output->on : FALSE;
- off_active = app->current_output ? !on_active : FALSE;
- }
- else if (app->current_output)
- {
- sensitive = TRUE;
+ if (count_active_outputs (app) > 1 || !app->current_output->on)
+ sensitive = TRUE;
+ else
+ sensitive = FALSE;
+
on_active = app->current_output->on;
off_active = !on_active;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]