summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-09-05 17:12:20 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-09-05 17:12:20 -0300
commit9fa347d263750b5d351f4632bb5ac63710918c9e (patch)
tree284a768df4de308ca3d0c0c667f8e8a957f72310
parent9aa539e209281201256a71e2ebc434f7fd97262b (diff)
downloadglade-9fa347d263750b5d351f4632bb5ac63710918c9e.tar.gz
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.
-rw-r--r--plugins/gtk+/glade-gtk.c11
-rw-r--r--plugins/gtk+/gtk+.xml.in6
2 files changed, 3 insertions, 14 deletions
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 95d443c2..0d596f7a 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 5c31f6fc..69e477d1 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>