[gnome-contacts] No drop shadow at the top
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] No drop shadow at the top
- Date: Mon, 19 Dec 2011 15:01:31 +0000 (UTC)
commit a8d2ad6ef7399181e2d1ae3b64c365ccd39fa2b4
Author: Alexander Larsson <alexl redhat com>
Date: Mon Dec 19 15:43:38 2011 +0100
No drop shadow at the top
src/contacts-app.vala | 2 +-
src/gtk-notification.c | 46 +++-------------------------------------------
2 files changed, 4 insertions(+), 44 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index f03fa12..33fdaca 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -141,7 +141,7 @@ public class Contacts.App : Gtk.Application {
notification.show ();
ulong id;
id = notification.destroy.connect ( () => {
- contacts_store.aggregator.remove_individual (c.individual);
+ //contacts_store.aggregator.remove_individual (c.individual);
});
notification.actioned.connect ( () => {
notification.disconnect (id);
diff --git a/src/gtk-notification.c b/src/gtk-notification.c
index 4b3eeea..6fdb4a6 100644
--- a/src/gtk-notification.c
+++ b/src/gtk-notification.c
@@ -285,26 +285,12 @@ static void draw_shadow_box(cairo_t *cr, GdkRectangle rect, double radius, doubl
x3 = rect.x + rect.width;
y0 = rect.y;
- y1 = rect.y + radius;
y2 = rect.y + rect.height - radius;
y3 = rect.y + rect.height;
/* Fill non-border part */
cairo_set_source_rgba(cr, 0, 0, 0, transparency);
- cairo_rectangle(cr, x1, y1, x2 - x1, y2 - y1);
- cairo_fill(cr);
-
- /* Upper border */
-
- pattern = cairo_pattern_create_linear(0, y0, 0, y1);
-
- cairo_pattern_add_color_stop_rgba(pattern, 0.0, 0.0, 0, 0, 0.0);
- cairo_pattern_add_color_stop_rgba(pattern, 1.0, 0.0, 0, 0, transparency);
-
- cairo_set_source(cr, pattern);
- cairo_pattern_destroy(pattern);
-
- cairo_rectangle(cr, x1, y0, x2 - x1, y1 - y0);
+ cairo_rectangle(cr, x1, y0, x2 - x1, y2 - y0);
cairo_fill(cr);
/* Bottom border */
@@ -330,7 +316,7 @@ static void draw_shadow_box(cairo_t *cr, GdkRectangle rect, double radius, doubl
cairo_set_source(cr, pattern);
cairo_pattern_destroy(pattern);
- cairo_rectangle(cr, x0, y1, x1 - x0, y2 - y1);
+ cairo_rectangle(cr, x0, y0, x1 - x0, y2 - y0);
cairo_fill(cr);
/* Right border */
@@ -343,33 +329,7 @@ static void draw_shadow_box(cairo_t *cr, GdkRectangle rect, double radius, doubl
cairo_set_source(cr, pattern);
cairo_pattern_destroy(pattern);
- cairo_rectangle(cr, x2, y1, x3 - x2, y2 - y1);
- cairo_fill(cr);
-
- /* NW corner */
-
- pattern = cairo_pattern_create_radial(x1, y1, 0, x1, y1, radius);
-
- cairo_pattern_add_color_stop_rgba(pattern, 0.0, 0.0, 0, 0, transparency);
- cairo_pattern_add_color_stop_rgba(pattern, 1.0, 0.0, 0, 0, 0.0);
-
- cairo_set_source(cr, pattern);
- cairo_pattern_destroy(pattern);
-
- cairo_rectangle(cr, x0, y0, x1 - x0, y1 - y0);
- cairo_fill(cr);
-
- /* NE corner */
-
- pattern = cairo_pattern_create_radial(x2, y1, 0, x2, y1, radius);
-
- cairo_pattern_add_color_stop_rgba(pattern, 0.0, 0.0, 0, 0, transparency);
- cairo_pattern_add_color_stop_rgba(pattern, 1.0, 0.0, 0, 0, 0.0);
-
- cairo_set_source(cr, pattern);
- cairo_pattern_destroy(pattern);
-
- cairo_rectangle(cr, x2, y0, x3 - x2, y1 - y0);
+ cairo_rectangle(cr, x2, y0, x3 - x2, y2 - y0);
cairo_fill(cr);
/* SW corner */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]