Commit b8e2fd92 authored by Jonathan Kang's avatar Jonathan Kang Committed by Robert Ancell

power: set no-show-all to TRUE on wifi and mobile rows

The Wi-Fi and mobile broadband row's visibility depends on related
device status. But calling gtk_widget_show_all on the whole list box
makes them visible even related device is not avialbe. Fix that by
setting no-show-all of these two widgets as TRUE.

#189
parent 0c1c5570
Pipeline #35226 passed with stages
in 3 minutes and 29 seconds
......@@ -1893,6 +1893,8 @@ add_power_saving_section (CcPowerPanel *self)
gtk_label_set_mnemonic_widget (GTK_LABEL (label), self->wifi_switch);
gtk_container_add (GTK_CONTAINER (widget), row);
gtk_size_group_add_widget (self->row_sizegroup, row);
gtk_widget_show_all (row);
gtk_widget_set_no_show_all (self->wifi_row, TRUE);
self->mobile_row = row = no_prelight_row_new ();
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 50);
......@@ -1923,6 +1925,8 @@ add_power_saving_section (CcPowerPanel *self)
gtk_label_set_mnemonic_widget (GTK_LABEL (label), self->mobile_switch);
gtk_container_add (GTK_CONTAINER (widget), row);
gtk_size_group_add_widget (self->row_sizegroup, row);
gtk_widget_show_all (row);
gtk_widget_set_no_show_all (self->mobile_row, TRUE);
g_signal_connect (G_OBJECT (self->mobile_switch), "notify::active",
G_CALLBACK (mobile_switch_changed), self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment