[totem] grilo: GdMainView already contains a scrolled window



commit 67325409760eebb7d835537ceeafbf83218bcb06
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 17 17:30:35 2014 +0100

    grilo: GdMainView already contains a scrolled window
    
    So no need to put it in one already.

 src/plugins/grilo/grilo.ui      |   17 +++++------------
 src/plugins/grilo/totem-grilo.c |    2 +-
 2 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/src/plugins/grilo/grilo.ui b/src/plugins/grilo/grilo.ui
index bb4278a..bc99e6e 100644
--- a/src/plugins/grilo/grilo.ui
+++ b/src/plugins/grilo/grilo.ui
@@ -143,20 +143,13 @@
       </packing>
     </child>
     <child>
-      <object class="GtkScrolledWindow" id="gw_browse_window">
+      <object class="GdMainView" id="gw_browse">
         <property name="visible">True</property>
         <property name="can_focus">True</property>
-        <property name="shadow_type">in</property>
-        <child>
-          <object class="GdMainView" id="gw_browse">
-            <property name="visible">True</property>
-            <property name="can_focus">True</property>
-            <property name="model">gw_browse_store_results</property>
-            <style>
-              <class name="content-view"/>
-            </style>
-          </object>
-        </child>
+        <property name="model">gw_browse_store_results</property>
+        <style>
+          <class name="content-view"/>
+        </style>
       </object>
       <packing>
         <property name="expand">True</property>
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 22aef96..e3d7b02 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -1458,7 +1458,7 @@ setup_browse (TotemGriloPlugin *self,
                          G_CALLBACK (context_button_pressed_cb), self);
 
        /* Loading thumbnails or more search results */
-       adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (gtk_builder_get_object (builder, 
"gw_browse_window")));
+       adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (gtk_builder_get_object (builder, 
"gw_browse")));
        g_signal_connect (adj, "value_changed",
                          G_CALLBACK (adjustment_value_changed_cb), self);
        g_signal_connect (adj, "changed",


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