bnc#600599 - [randr] Label to warn that 'Same image in all monitors' may limit the resolution options

Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Gabriel Burt 2010-09-09 14:46:00 -05:00 committed by Federico Mena Quintero
parent c4ce026c31
commit 110010bb65
2 changed files with 34 additions and 6 deletions

View file

@ -55,6 +55,10 @@
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkCheckButton" id="clone_checkbox">
<property name="label" translatable="yes">Sa_me image in all monitors</property>
@ -70,6 +74,26 @@
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="clone_resolution_warning_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;i&gt;Note: may limit resolution options&lt;/i&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="detect_displays_button">
<property name="label" translatable="yes">_Detect monitors</property>

View file

@ -60,6 +60,7 @@ struct App
GtkWidget *rotation_combo;
GtkWidget *panel_checkbox;
GtkWidget *clone_checkbox;
GtkWidget *clone_label;
GtkWidget *show_icon_checkbox;
/* We store the event timestamp when the Apply button is clicked */
@ -495,6 +496,7 @@ rebuild_mirror_screens (App *app)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (app->clone_checkbox), mirror_is_active);
gtk_widget_set_sensitive (app->clone_checkbox, mirror_is_supported);
gtk_widget_set_sensitive (app->clone_label, mirror_is_supported);
g_signal_handlers_unblock_by_func (app->clone_checkbox, G_CALLBACK (on_clone_changed), app);
}
@ -2459,6 +2461,8 @@ run_application (void)
g_signal_connect (app->clone_checkbox, "toggled",
G_CALLBACK (on_clone_changed), app);
app->clone_label = _gtk_builder_get_widget (builder, "clone_resolution_warning_label");
g_signal_connect (_gtk_builder_get_widget (builder, "detect_displays_button"),
"clicked", G_CALLBACK (on_detect_displays), app);