Commit 7c581678 authored by Rui Matos's avatar Rui Matos Committed by Bastien Nocera
Browse files

power: Remove unused toplevel window from .ui file

https://bugzilla.gnome.org/show_bug.cgi?id=708286
parent 4494045c
......@@ -2240,10 +2240,7 @@ cc_power_panel_init (CcPowerPanel *self)
G_CALLBACK (on_content_size_changed), NULL);
gtk_widget_show (box);
gtk_container_add (GTK_CONTAINER (self), box);
g_object_ref (widget);
gtk_widget_unparent (widget);
gtk_container_add (GTK_CONTAINER (box), widget);
g_object_unref (widget);
priv->focus_adjustment = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (box));
gtk_container_set_focus_vadjustment (GTK_CONTAINER (widget), priv->focus_adjustment);
......
......@@ -111,10 +111,6 @@
</row>
</data>
</object>
<object class="GtkWindow" id="window_power">
<property name="can_focus">False</property>
<property name="resizable">False</property>
<child>
<object class="GtkBox" id="vbox_power">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -123,8 +119,6 @@
<property name="orientation">vertical</property>
<property name="spacing">3</property>
</object>
</child>
</object>
<object class="GtkDialog" id="automatic_suspend_dialog">
<property name="can_focus">False</property>
......
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