[gnome-control-center] Readd the checkbox to set primary display
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Readd the checkbox to set primary display
- Date: Fri, 8 Oct 2010 00:21:18 +0000 (UTC)
commit 75a7dbfed01a5582263d81b2748753bc6e71c8ae
Author: William Jon McCann <jmccann redhat com>
Date: Thu Oct 7 20:18:09 2010 -0400
Readd the checkbox to set primary display
It doesn't currently seem to do anything however.
panels/display/display-capplet.ui | 5 +++--
panels/display/xrandr-capplet.c | 6 ++++++
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/panels/display/display-capplet.ui b/panels/display/display-capplet.ui
index 78868cd..25cecf4 100644
--- a/panels/display/display-capplet.ui
+++ b/panels/display/display-capplet.ui
@@ -218,8 +218,9 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="panel_checkbox">
- <property name="label" translatable="yes">Include _panel</property>
+ <object class="GtkCheckButton" id="primary_display_checkbox">
+ <property name="label" translatable="yes">_Include Top Menu Bar</property>
+ <property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c
index a1bd6bc..07d5e88 100644
--- a/panels/display/xrandr-capplet.c
+++ b/panels/display/xrandr-capplet.c
@@ -61,6 +61,7 @@ struct App
GtkWidget *refresh_combo;
GtkWidget *rotation_combo;
GtkWidget *clone_checkbox;
+ GtkWidget *primary_display_checkbox;
GtkWidget *clone_label;
GtkWidget *show_icon_checkbox;
@@ -686,6 +687,7 @@ rebuild_gui (App *app)
#if 0
g_debug ("sensitive: %d, on: %d", sensitive, app->current_output->on);
#endif
+ gtk_widget_set_sensitive (app->primary_display_checkbox, sensitive);
app->ignore_gui_changes = FALSE;
}
@@ -2405,10 +2407,14 @@ run_application (void)
g_signal_connect (_gtk_builder_get_widget (builder, "detect_displays_button"),
"clicked", G_CALLBACK (on_detect_displays), app);
+ app->primary_display_checkbox = _gtk_builder_get_widget (builder, "primary_display_checkbox");
+
make_text_combo (app->resolution_combo, 4);
make_text_combo (app->refresh_combo, 3);
make_text_combo (app->rotation_combo, -1);
+ g_assert (app->primary_display_checkbox);
+
/* Scroll Area */
app->area = (GtkWidget *)foo_scroll_area_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]