[gnome-control-center] power: Remove unused toplevel window from .ui file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] power: Remove unused toplevel window from .ui file
- Date: Tue, 1 Oct 2013 08:07:22 +0000 (UTC)
commit 7c58167899020a4ae4f90133172c18336b5080c2
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Sep 17 16:50:43 2013 +0200
power: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
panels/power/cc-power-panel.c | 3 ---
panels/power/power.ui | 6 ------
2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 1316e76..aceda6f 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -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);
diff --git a/panels/power/power.ui b/panels/power/power.ui
index aacb3f6..0f3441f 100644
--- a/panels/power/power.ui
+++ b/panels/power/power.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]