[gnome-control-center] notifications: Remove unused toplevel window from .ui file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] notifications: Remove unused toplevel window from .ui file
- Date: Tue, 1 Oct 2013 08:07:07 +0000 (UTC)
commit f83c66154e7be9b7929c6183b3b3f262dec7cec8
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Sep 17 16:34:47 2013 +0200
notifications: Remove unused toplevel window from .ui file
https://bugzilla.gnome.org/show_bug.cgi?id=708286
panels/notifications/cc-notifications-panel.c | 2 +-
panels/notifications/notifications.ui | 5 -----
2 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index e149bee..a18a309 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -160,7 +160,7 @@ cc_notifications_panel_init (CcNotificationsPanel *panel)
w = GTK_WIDGET (gtk_builder_get_object (panel->builder,
"ccnotify-main-grid"));
- gtk_widget_reparent (w, GTK_WIDGET (panel));
+ gtk_container_add (GTK_CONTAINER (panel), w);
gtk_widget_show (w);
}
diff --git a/panels/notifications/notifications.ui b/panels/notifications/notifications.ui
index b7442e2..91f558f 100644
--- a/panels/notifications/notifications.ui
+++ b/panels/notifications/notifications.ui
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkWindow" id="ccnotify-main-window">
- <property name="can_focus">False</property>
- <child>
<object class="GtkGrid" id="ccnotify-main-grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -91,6 +88,4 @@
</packing>
</child>
</object>
- </child>
- </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]