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
This commit is contained in:
parent
3350111679
commit
64b3fdc2fc
1 changed files with 7 additions and 0 deletions
|
@ -1114,6 +1114,13 @@ update_apply_button (CcDisplayPanel *panel)
|
|||
gboolean config_equal;
|
||||
GnomeRRConfig *current_configuration;
|
||||
|
||||
if (!gnome_rr_config_applicable (priv->current_configuration,
|
||||
priv->screen, NULL))
|
||||
{
|
||||
gtk_widget_set_sensitive (priv->apply_button, FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
current_configuration = gnome_rr_config_new_current (priv->screen, NULL);
|
||||
|
||||
/* this checks if the same modes will be set on the outputs */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue