/[pkgs]/devel/metacity/0001-sound-ask-libcanberra-to-cache-alert-desktop-switch-.patch
ViewVC logotype

Contents of /devel/metacity/0001-sound-ask-libcanberra-to-cache-alert-desktop-switch-.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Aug 28 04:11:49 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-6_fc12, metacity-2_27_0-7_fc12, HEAD
File MIME type: text/x-patch
Apply to trivial patches for bell/sound
- http://bugzilla.gnome.org/show_bug.cgi?id=593356
- http://bugzilla.gnome.org/show_bug.cgi?id=593355
1 From 84e14cd8587c470e925e2fbf1a5a13c63686bcd4 Mon Sep 17 00:00:00 2001
2 From: Lennart Poettering <lennart@poettering.net>
3 Date: Fri, 28 Aug 2009 05:38:17 +0200
4 Subject: [PATCH] sound: ask libcanberra to cache alert/desktop switch sounds
5
6 These sounds are good candidates for caching in the sound server, to
7 save a bit of CPU and make reaction faster. Hence, tell libcanberra to
8 cache them.
9 ---
10 src/core/bell.c | 1 +
11 src/core/workspace.c | 1 +
12 2 files changed, 2 insertions(+), 0 deletions(-)
13
14 diff --git a/src/core/bell.c b/src/core/bell.c
15 index 92d1dbd..676ebac 100644
16 --- a/src/core/bell.c
17 +++ b/src/core/bell.c
18 @@ -292,6 +292,7 @@ meta_bell_notify (MetaDisplay *display,
19 ca_proplist_create (&p);
20 ca_proplist_sets (p, CA_PROP_EVENT_ID, "bell-window-system");
21 ca_proplist_sets (p, CA_PROP_EVENT_DESCRIPTION, _("Bell event"));
22 + ca_proplist_sets (p, CA_PROP_CANBERRA_CACHE_CONTROL, "permanent");
23
24 window = meta_display_lookup_x_window (display, xkb_bell_event->window);
25 if (!window && (display->focus_window) && (display->focus_window->frame))
26 diff --git a/src/core/display.c b/src/core/display.c
27 index 55c374a..b1661e3 100644
28 diff --git a/src/core/workspace.c b/src/core/workspace.c
29 index a0170a6..063f867 100644
30 --- a/src/core/workspace.c
31 +++ b/src/core/workspace.c
32 @@ -358,6 +358,7 @@ static void workspace_switch_sound(MetaWorkspace *from,
33 ca_context_play(ca_gtk_context_get(), 1,
34 CA_PROP_EVENT_ID, e,
35 CA_PROP_EVENT_DESCRIPTION, "Desktop switched",
36 + CA_PROP_CANBERRA_CACHE_CONTROL, "permanent",
37 NULL);
38
39 finish:
40 --
41 1.6.4
42

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2