[glade] Removed reveal-child-test-proxy property. We always show up the widget in the workspace.



commit 8daa0ce03c02f4275afe448cf457678ce23c7205
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Wed Aug 7 10:28:05 2013 -0300

    Removed reveal-child-test-proxy property. We always show up the widget in the workspace.

 plugins/gtk+/glade-gtk-revealer.c |   16 ++--------------
 plugins/gtk+/gtk+.xml.in          |    9 +--------
 2 files changed, 3 insertions(+), 22 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-revealer.c b/plugins/gtk+/glade-gtk-revealer.c
index 4085c30..827a8fd 100644
--- a/plugins/gtk+/glade-gtk-revealer.c
+++ b/plugins/gtk+/glade-gtk-revealer.c
@@ -22,7 +22,6 @@
  */
 
 #include <config.h>
-#include <glib/gi18n-lib.h>
 #include <gladeui/glade.h>
 
 void
@@ -34,18 +33,7 @@ glade_gtk_revealer_post_create (GladeWidgetAdaptor *adaptor,
     {
       gtk_container_add (GTK_CONTAINER (container), glade_placeholder_new ());
     }
-  gtk_revealer_set_reveal_child (GTK_REVEALER (container), TRUE);
-}
 
-void
-glade_gtk_revealer_set_property (GladeWidgetAdaptor *adaptor,
-                                 GObject            *object,
-                                 const gchar        *id,
-                                 const GValue       *value)
-{
-  if (!g_strcmp0 (id, "glade-test-reveal"))
-    gtk_revealer_set_reveal_child (GTK_REVEALER (object),
-                                   g_value_get_boolean (value));
-  else
-    GWA_GET_CLASS (GTK_TYPE_CONTAINER)->set_property (adaptor, object, id, value);
+  /* We always show the widget in the workspace, and ignore reveal-child prop */
+  gtk_revealer_set_reveal_child (GTK_REVEALER (container), TRUE);
 }
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 251c0d5..3abc2a4 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -1952,15 +1952,8 @@ range of values</_tooltip>
 
     <glade-widget-class name="GtkRevealer" generic-name="revealer" _title="Revealer" since="3.10">
       <post-create-function>glade_gtk_revealer_post_create</post-create-function>
-      <set-property-function>glade_gtk_revealer_set_property</set-property-function>
       <properties>
-        <property id="reveal-child" ignore="True"/>
-           <property id="glade-test-reveal" _name="Reveal Child Test Proxy" save="False" default="True">
-             <parameter-spec>
-               <type>GParamBoolean</type>
-             </parameter-spec>
-             <_tooltip>Proxy property to test revealing child in the workspace</_tooltip>
-           </property>
+        <property id="reveal-child" default="True" ignore="True"/>
         <property id="transition-type" default="GTK_REVEALER_TRANSITION_TYPE_NONE">
           <displayable-values>
             <value id="GTK_REVEALER_TRANSITION_TYPE_NONE"        _name="None" />


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