/[pkgs]/devel/metacity/0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch
ViewVC logotype

Contents of /devel/metacity/0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Aug 28 05:39:15 2009 UTC (2 months, 3 weeks ago) by lennart
Branch: MAIN
CVS Tags: metacity-2_28_0-1_fc12, metacity-2_27_1-1_fc12, F-12-split, metacity-2_27_0-8_fc12, metacity-2_27_0-9_fc12, metacity-2_27_0-7_fc12, HEAD
File MIME type: text/x-patch
0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch
1 From 8132127a749b150d188631e03d36462838620a82 Mon Sep 17 00:00:00 2001
2 From: Lennart Poettering <lennart@poettering.net>
3 Date: Fri, 28 Aug 2009 07:29:11 +0200
4 Subject: [PATCH] tooltip: set window type hint for self-drawn tooltips to GDK_WINDOW_TYPE_HINT_TOOLTIP
5
6 libcanberra generates specific tooltip popup sounds and for that
7 recognizes the tooltip windows by the GtkWindowTypeHint set for them.
8
9 This trivial patch simply sets the hint for the self-drawn tooltips
10 metacity uses.
11 ---
12 src/ui/fixedtip.c | 2 ++
13 1 files changed, 2 insertions(+), 0 deletions(-)
14
15 diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
16 index d2b95f2..31a6082 100644
17 --- a/src/ui/fixedtip.c
18 +++ b/src/ui/fixedtip.c
19 @@ -71,6 +71,8 @@ meta_fixed_tip_show (Display *xdisplay, int screen_number,
20 if (tip == NULL)
21 {
22 tip = gtk_window_new (GTK_WINDOW_POPUP);
23 + gtk_window_set_type_hint (GTK_WINDOW(tip), GDK_WINDOW_TYPE_HINT_TOOLTIP);
24 +
25 {
26 GdkScreen *gdk_screen;
27 GdkRectangle monitor;
28 --
29 1.6.4
30

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2