[gnome-control-center] search: Remove unused toplevel window from .ui file



commit 96b9111865e789bf7a0e6b2df771afce1d5f2da7
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Sep 17 17:39:31 2013 +0200

    search: Remove unused toplevel window from .ui file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708286

 panels/search/cc-search-panel.c |    2 +-
 panels/search/search.ui         |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/panels/search/cc-search-panel.c b/panels/search/cc-search-panel.c
index 5d0ddb0..d08e230 100644
--- a/panels/search/cc-search-panel.c
+++ b/panels/search/cc-search-panel.c
@@ -691,7 +691,7 @@ cc_search_panel_init (CcSearchPanel *self)
   populate_search_providers (self);
 
   widget = WID ("search_vbox");
-  gtk_widget_reparent (widget, (GtkWidget *) self);
+  gtk_container_add (GTK_CONTAINER (self), widget);
 }
 
 static void
diff --git a/panels/search/search.ui b/panels/search/search.ui
index cc1d78e..8d42c0a 100644
--- a/panels/search/search.ui
+++ b/panels/search/search.ui
@@ -1,8 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkWindow" id="window1">
-    <child>
       <object class="GtkBox" id="search_vbox">
         <property name="visible">True</property>
         <property name="orientation">vertical</property>
@@ -122,6 +120,4 @@
           </packing>
         </child>
       </object>
-    </child>
-  </object>
 </interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]