Merge lp:~macslow/notify-osd/fix-559109 into lp:notify-osd/lucid

Proposed by Mirco Müller
Status: Merged
Merged at revision: not available
Proposed branch: lp:~macslow/notify-osd/fix-559109
Merge into: lp:notify-osd/lucid
Diff against target: 23 lines (+8/-2)
1 file modified
src/bubble.c (+8/-2)
To merge this branch: bzr merge lp:~macslow/notify-osd/fix-559109
Reviewer Review Type Date Requested Status
Cody Russell (community) Approve
Review via email: mp+23378@code.launchpad.net

Description of the change

Use an empty region for the non-composite fade instead of gtk_widget_show() and gtk_widget_hide(), fixes LP: #559109

To post a comment you must log in.
Revision history for this message
Cody Russell (bratsche) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/bubble.c'
2--- src/bubble.c 2010-04-07 13:40:24 +0000
3+++ src/bubble.c 2010-04-14 10:07:16 +0000
4@@ -1632,11 +1632,17 @@
5 // we're not-composited, so deal with mouse-over differently
6 if (bubble_is_mouse_over (self))
7 {
8- gtk_widget_hide (priv->widget);
9+ GdkRegion* region = NULL;
10+
11+ region = gdk_region_new ();
12+ gdk_window_shape_combine_region (priv->widget->window,
13+ region,
14+ 0,
15+ 0);
16+ gdk_region_destroy (region);
17 }
18 else
19 {
20- gtk_widget_show (priv->widget);
21 gtk_widget_get_size_request (priv->widget, &width, &height);
22 mask = (GdkBitmap*) gdk_pixmap_new (NULL, width, height, 1);
23 if (mask)

Subscribers

People subscribed via source and target branches

to all changes: