[Xfce4-commits] [xfce/xfce4-settings] 57/67: display: Ensure that the primary label is shown/hidden
noreply at xfce.org
noreply at xfce.org
Sat Sep 22 11:23:48 CEST 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-settings.
commit b754ca503edc90b1889c931807b8001a84a1ed93
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Fri Sep 7 19:03:31 2018 +0200
display: Ensure that the primary label is shown/hidden
---
dialogs/display-settings/main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 51ec233..6e31f62 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1767,7 +1767,7 @@ display_settings_dialog_new (GtkBuilder *builder)
{
GObject *combobox;
GtkCellRenderer *renderer;
- GObject *label, *check, *primary, *mirror, *identify;
+ GObject *label, *check, *primary, *primary_label, *mirror, *identify;
GtkWidget *button;
GtkTreeSelection *selection;
@@ -1794,6 +1794,7 @@ display_settings_dialog_new (GtkBuilder *builder)
/* Setup the combo boxes */
check = gtk_builder_get_object (builder, "output-on");
primary = gtk_builder_get_object (builder, "primary");
+ primary_label = gtk_builder_get_object (builder, "label-primary");
mirror = gtk_builder_get_object (builder, "mirror-displays");
g_signal_connect (G_OBJECT (check), "state-set", G_CALLBACK (display_setting_output_toggled), builder);
g_signal_connect (G_OBJECT (primary), "state-set", G_CALLBACK (display_setting_primary_toggled), builder);
@@ -1802,12 +1803,14 @@ display_settings_dialog_new (GtkBuilder *builder)
{
gtk_widget_show (GTK_WIDGET (check));
gtk_widget_show (GTK_WIDGET (primary));
+ gtk_widget_show (GTK_WIDGET (primary_label));
gtk_widget_show (GTK_WIDGET (mirror));
}
else
{
gtk_widget_hide (GTK_WIDGET (check));
gtk_widget_hide (GTK_WIDGET (primary));
+ gtk_widget_hide (GTK_WIDGET (primary_label));
gtk_widget_hide (GTK_WIDGET (mirror));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list