From 9e512a3d7ac225ddda0579a0a5a1dfca11189157 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 25 Jul 2007 17:50:52 +0000 Subject: [PATCH] fix systray icon tooltips --- gtk2.spec | 8 +++++++- systray-tooltips.patch | 12 ++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 systray-tooltips.patch diff --git a/gtk2.spec b/gtk2.spec index ca39e9a..83ebd48 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -16,7 +16,7 @@ Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Name: gtk2 Version: %{base_version} -Release: 2%{?dist} +Release: 3%{?dist} License: LGPL Group: System Environment/Libraries Source: http://download.gnome.org/sources/gtk+/2.11/gtk+-%{version}.tar.bz2 @@ -33,6 +33,8 @@ Patch1: gtk+-2.11.1-set-invisible-char-to-bullet.patch Patch3: cups-authstring.patch # fixed in upstream svn Patch4: silence-icon-cache-validator.patch +# fixed in upstream svn +Patch5: systray-tooltips.patch BuildRequires: atk-devel >= %{atk_version} BuildRequires: pango-devel >= %{pango_version} @@ -121,6 +123,7 @@ docs for the GTK+ widget toolkit. #%patch2 -p1 -b .fam %patch3 -p0 -b .authstring %patch4 -p1 -b .silence +%patch5 -p1 -b .tooltips for i in config.guess config.sub ; do test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i . @@ -291,6 +294,9 @@ rm -rf $RPM_BUILD_ROOT %doc tmpdocs/examples %changelog +* Wed Jul 25 2007 Matthias Clasen - 2.11.6-3 +- Fix the behaviour of tooltips on system tray icons + * Tue Jul 24 2007 Matthias Clasen - 2.11.6-2 - Silence the icon cache validator (#248789) diff --git a/systray-tooltips.patch b/systray-tooltips.patch new file mode 100644 index 0000000..bfdc451 --- /dev/null +++ b/systray-tooltips.patch @@ -0,0 +1,12 @@ +diff -up gtk+-2.11.6/gtk/gtktooltip.c.systray-tooltips gtk+-2.11.6/gtk/gtktooltip.c +--- gtk+-2.11.6/gtk/gtktooltip.c.systray-tooltips 2007-07-25 13:46:43.000000000 -0400 ++++ gtk+-2.11.6/gtk/gtktooltip.c 2007-07-25 13:47:05.000000000 -0400 +@@ -1116,7 +1116,7 @@ _gtk_tooltip_handle_event (GdkEvent *eve + /* Hide the tooltip when there's no new tooltip widget */ + if (!has_tooltip_widget) + { +- if (current_tooltip && GTK_TOOLTIP_VISIBLE (current_tooltip)) ++ if (current_tooltip) + gtk_tooltip_hide_tooltip (current_tooltip); + + return;