rpms/gtk2/devel tooltip-compat.patch, NONE, 1.1 gtk2.spec, 1.249, 1.250
Matthias Clasen (mclasen)
fedora-extras-commits at redhat.com
Wed Aug 8 14:57:32 UTC 2007
- Previous message: rpms/python-exif import.log,1.1,1.2
- Next message: rpms/python-exif/devel python-exif.spec, NONE, 1.1 setup.py, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/extras/rpms/gtk2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14260
Modified Files:
gtk2.spec
Added Files:
tooltip-compat.patch
Log Message:
improve tooltip compatibility
tooltip-compat.patch:
--- NEW FILE tooltip-compat.patch ---
--- trunk/gtk/gtktooltips.c 2007/07/21 13:19:11 18520
+++ trunk/gtk/gtktooltips.c 2007/08/07 13:32:19 18587
@@ -103,6 +103,8 @@
private->tips_data_table =
g_hash_table_new_full (NULL, NULL, NULL,
(GDestroyNotify) gtk_tooltips_destroy_data);
+
+ gtk_tooltips_force_window (tooltips);
}
static void
@@ -144,6 +146,12 @@
g_return_if_fail (tooltips != NULL);
+ if (tooltips->tip_window)
+ {
+ gtk_widget_destroy (tooltips->tip_window);
+ tooltips->tip_window = NULL;
+ }
+
g_hash_table_remove_all (private->tips_data_table);
GTK_OBJECT_CLASS (gtk_tooltips_parent_class)->destroy (object);
@@ -154,7 +162,18 @@
{
g_return_if_fail (GTK_IS_TOOLTIPS (tooltips));
- /* nop */
+ if (!tooltips->tip_window)
+ {
+ tooltips->tip_window = gtk_window_new (GTK_WINDOW_POPUP);
+ g_signal_connect (tooltips->tip_window,
+ "destroy",
+ G_CALLBACK (gtk_widget_destroyed),
+ &tooltips->tip_window);
+
+ tooltips->tip_label = gtk_label_new (NULL);
+ gtk_container_add (GTK_CONTAINER (tooltips->tip_window),
+ tooltips->tip_label);
+ }
}
void
Index: gtk2.spec
===================================================================
RCS file: /cvs/extras/rpms/gtk2/devel/gtk2.spec,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -r1.249 -r1.250
--- gtk2.spec 5 Aug 2007 06:03:17 -0000 1.249
+++ gtk2.spec 8 Aug 2007 14:57:00 -0000 1.250
@@ -16,7 +16,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk2
Version: %{base_version}
-Release: 5%{?dist}
+Release: 6%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://download.gnome.org/sources/gtk+/2.11/gtk+-%{version}.tar.bz2
@@ -35,6 +35,8 @@
Patch4: silence-icon-cache-validator.patch
# fixed in upstream svn
Patch5: systray-tooltips.patch
+# fixed in upstream svn
+Patch6: tooltip-compat.patch
BuildRequires: atk-devel >= %{atk_version}
BuildRequires: pango-devel >= %{pango_version}
@@ -124,6 +126,7 @@
%patch3 -p0 -b .authstring
%patch4 -p1 -b .silence
%patch5 -p1 -b .tooltips
+%patch6 -p0 -b .tooltip-compat
for i in config.guess config.sub ; do
test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
@@ -294,6 +297,9 @@
%{_datadir}/gtk-2.0
%changelog
+* Wed Aug 8 2007 Matthias Clasen <mclasen at redhat.com> - 2.11.6-6
+- Improve tooltip compatibility to make acroread work again
+
* Sun Aug 5 2007 Matthias Clasen <mclasen at redhat.com> - 2.11.6-5
- Really move gtk-demo over
- Previous message: rpms/python-exif import.log,1.1,1.2
- Next message: rpms/python-exif/devel python-exif.spec, NONE, 1.1 setup.py, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list