~gilir/+junk/notification-daemon-0.5.0-2

« back to all changes in this revision

Viewing changes to debian/patches/05_notification_spacing.patch

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2007-09-06 18:43:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070906184301-zky30x9v1lvxz6g2
Tags: 0.3.7-1ubuntu8
* 01_ubuntu_theme.patch: 
  - improve shaping (LP: #136660)
* 05_notification_spacing.patch:
  - add a small spacing between two notifications (LP: #137095)
(Thanks to Alex Jones)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- src/daemon/stack.c  2007-02-15 11:05:17.000000000 +0000
 
2
+++ /home/alex/Desktop/stack.c  2007-09-03 19:23:19.000000000 +0100
 
3
@@ -28,6 +28,8 @@
 
4
 #include <X11/Xatom.h>
 
5
 #include <gdk/gdkx.h>
 
6
 
 
7
+#define NOTIFY_STACK_SPACING 2
 
8
+
 
9
 struct _NotifyStack
 
10
 {
 
11
        NotifyDaemon *daemon;
 
12
@@ -229,7 +231,7 @@ notify_stack_shift_notifications(NotifyS
 
13
                        gtk_widget_size_request(GTK_WIDGET(nw2), &req);
 
14
 
 
15
                        translate_coordinates(stack->location, &workarea, &x, &y,
 
16
-                                                                 &shiftx, &shifty, req.width, req.height,
 
17
+                                                                 &shiftx, &shifty, req.width + NOTIFY_STACK_SPACING, req.height + NOTIFY_STACK_SPACING,
 
18
                                                                  index++);
 
19
                        theme_move_notification(nw2, x, y);
 
20
                }
 
21
@@ -250,7 +252,7 @@ notify_stack_add_window(NotifyStack *sta
 
22
 
 
23
        gtk_widget_size_request(GTK_WIDGET(nw), &req);
 
24
        notify_stack_shift_notifications(stack, nw, NULL,
 
25
-                                                                        req.width, req.height, &x, &y);
 
26
+                                                                        req.width + NOTIFY_STACK_SPACING, req.height + NOTIFY_STACK_SPACING, &x, &y);
 
27
        theme_move_notification(nw, x, y);
 
28
 
 
29
        if (new_notification)