[glade/glade-3-8] Fixed Bug 694081 "Glade loses widget's tooltips on Cut/Paste"



commit 9fa347d263750b5d351f4632bb5ac63710918c9e
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Thu Sep 5 17:12:20 2013 -0300

    Fixed Bug 694081 "Glade loses widget's tooltips on Cut/Paste"
    
    As a simple workaround we simply make glade ignore all tooltip related properties at runtime.
    You can still edit them as normal, but you just wont be able to see the tooltips in the workspace.

 plugins/gtk+/glade-gtk.c |   11 -----------
 plugins/gtk+/gtk+.xml.in |    6 +++---
 2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 95d443c..0d596f7 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -992,12 +992,6 @@ glade_gtk_widget_set_property (GladeWidgetAdaptor *adaptor,
                               const gchar        *id,
                               const GValue       *value)
 {
-        /* FIXME: is this still needed with the new gtk+ tooltips? */
-       if (!strcmp (id, "tooltip"))
-       {
-                id = "tooltip-text";
-        }
-
         GWA_GET_CLASS (G_TYPE_OBJECT)->set_property (adaptor, object, id, value);
 }
 
@@ -1007,11 +1001,6 @@ glade_gtk_widget_get_property (GladeWidgetAdaptor *adaptor,
                               const gchar        *id,
                               GValue             *value)
 {
-       if (!strcmp (id, "tooltip"))
-       {
-                id = "tooltip-text";
-       }
-       
         GWA_GET_CLASS (G_TYPE_OBJECT)->get_property (adaptor, object, id, value);
 }
 
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 5c31f6f..69e477d 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -52,10 +52,10 @@
       <properties>
        <!-- Disable tooltip-text & tooltip-markup in libglade since we do
             conversions of the "tooltip" fake property -->
-       <property id="tooltip-text" since="2.12" weight="4.2" translatable="True" libglade-unsupported="True">
+       <property id="tooltip-text" since="2.12" weight="4.2" translatable="True" libglade-unsupported="True" 
ignore="True">
          <visible-lines>2</visible-lines>
        </property>
-       <property id="tooltip-markup" since="2.12" weight="4.1" libglade-unsupported="True"/>
+       <property id="tooltip-markup" since="2.12" weight="4.1" libglade-unsupported="True" ignore="True"/>
         <property id="can-focus" common="True" save-always="True"/>
        <property id="has-default" common="True" ignore="True"/>
        <property id="can-default" common="True" />
@@ -65,7 +65,7 @@
        <property id="no-show-all" weight="4.6" ignore="True"/>
 
        <property common="True" id="tooltip" _name="Tooltip" default="" translatable="True" weight="4.5" 
-                 libglade-only="True">
+                 libglade-only="True" ignore="True">
          <parameter-spec>
            <type>GParamString</type>
          </parameter-spec>


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