display: remove the primary display checkbox

We'll add a graphical representation instead.
This commit is contained in:
William Jon McCann 2010-11-14 15:44:36 -05:00
parent ad13352fbc
commit 16f45eb8a7
2 changed files with 42 additions and 57 deletions

View file

@ -27,7 +27,7 @@
<object class="GtkVBox" id="display-panel">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<property name="spacing">12</property>
<child>
<object class="GtkAlignment" id="align">
<property name="visible">True</property>
@ -42,6 +42,7 @@
<child>
<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>
@ -133,7 +134,7 @@
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_rows">3</property>
<property name="n_columns">2</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
@ -147,8 +148,8 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options"></property>
<property name="y_options"></property>
</packing>
@ -208,23 +209,6 @@
<property name="y_options"></property>
</packing>
</child>
<child>
<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>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">GTK_FILL</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<placeholder/>
</child>
@ -301,6 +285,10 @@
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="top_padding">10</property>
<child>
<object class="GtkHButtonBox" id="hbuttonbox1">
<property name="visible">True</property>
@ -338,8 +326,11 @@
</packing>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>

View file

@ -59,7 +59,6 @@ struct App
GtkWidget *resolution_combo;
GtkWidget *rotation_combo;
GtkWidget *clone_checkbox;
GtkWidget *primary_display_checkbox;
GtkWidget *clone_label;
GtkWidget *show_icon_checkbox;
@ -668,7 +667,6 @@ 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;
}
@ -2372,13 +2370,9 @@ 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->rotation_combo, -1);
g_assert (app->primary_display_checkbox);
/* Scroll Area */
app->area = (GtkWidget *)foo_scroll_area_new ();