[totem/gnome-3-12] data: Use the correct name for parent widgets in templates



commit dc7618a2ff94622c413bcbbce6f13a301cb12969
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Sat May 3 23:54:22 2014 +0300

    data: Use the correct name for parent widgets in templates
    
    Recent versions of GTK+ started complaining about this, for example:
    (totem:5745): Gtk-CRITICAL **: Error building template class 'TotemMainToolbar' for an instance of type 
'TotemMainToolbar': Template parent type `GtkBox' does not match instance parent type `GtkHeaderBar'.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729479

 src/grilo.ui            |    2 +-
 src/totemmaintoolbar.ui |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/grilo.ui b/src/grilo.ui
index 7b8103d..aa7b9ac 100644
--- a/src/grilo.ui
+++ b/src/grilo.ui
@@ -91,7 +91,7 @@
       <column type="gint"/>
     </columns>
   </object>
-  <template class="TotemGrilo" parent="GtkVBox">
+  <template class="TotemGrilo" parent="GtkBox">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
     <property name="border_width">0</property>
diff --git a/src/totemmaintoolbar.ui b/src/totemmaintoolbar.ui
index a185d42..4a81ada 100644
--- a/src/totemmaintoolbar.ui
+++ b/src/totemmaintoolbar.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface domain="totem">
   <!-- interface-requires gtk+ 3.11 -->
-  <template class="TotemMainToolbar" parent="GtkBox">
+  <template class="TotemMainToolbar" parent="GtkHeaderBar">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <child>


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