updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / notification-daemon-offset / notification-daemon-offset.patch
blobdf5ebdcd8b65a2bebf4c83af2fb8df2bfccbcab4
1 diff -crB notification-daemon-0.4.0/src/capplet/notification-properties.c notification-daemon-0.4.0-new/src/capplet/notification-properties.c
2 *** notification-daemon-0.4.0/src/capplet/notification-properties.c 2008-11-20 11:46:16.000000000 +0100
3 --- notification-daemon-0.4.0-new/src/capplet/notification-properties.c 2011-03-19 00:07:28.637459995 +0100
4 ***************
5 *** 434,441 ****
7 dialog->preview = notify_notification_new(_("Notification Test"),
8 _("Just a test"),
9 ! "gnome-util",
10 ! NULL);
12 if (!notify_notification_show(dialog->preview, &error))
14 --- 434,440 ----
16 dialog->preview = notify_notification_new(_("Notification Test"),
17 _("Just a test"),
18 ! "gnome-util");
20 if (!notify_notification_show(dialog->preview, &error))
22 diff -crB notification-daemon-0.4.0/src/daemon/daemon.h notification-daemon-0.4.0-new/src/daemon/daemon.h
23 *** notification-daemon-0.4.0/src/daemon/daemon.h 2008-03-15 00:11:43.000000000 +0100
24 --- notification-daemon-0.4.0-new/src/daemon/daemon.h 2011-03-14 13:29:29.335055086 +0100
25 ***************
26 *** 34,39 ****
27 --- 34,41 ----
28 #define GCONF_KEY_POPUP_LOCATION GCONF_KEY_DAEMON "/popup_location"
29 #define GCONF_KEY_SOUND_ENABLED GCONF_KEY_DAEMON "/sound_enabled"
30 #define GCONF_KEY_DEFAULT_SOUND GCONF_KEY_DAEMON "/default_sound"
31 + #define GCONF_KEY_OFFSET_X GCONF_KEY_DAEMON "/offset_x"
32 + #define GCONF_KEY_OFFSET_Y GCONF_KEY_DAEMON "/offset_y"
34 #define NOTIFY_TYPE_DAEMON (notify_daemon_get_type())
35 #define NOTIFY_DAEMON(obj) \
36 Only in notification-daemon-0.4.0-new/src/daemon: .deps
37 Only in notification-daemon-0.4.0-new/src/daemon: Makefile
38 Only in notification-daemon-0.4.0-new/src/daemon: notificationdaemon-dbus-glue.h
39 diff -crB notification-daemon-0.4.0/src/daemon/stack.c notification-daemon-0.4.0-new/src/daemon/stack.c
40 *** notification-daemon-0.4.0/src/daemon/stack.c 2008-03-15 00:11:43.000000000 +0100
41 --- notification-daemon-0.4.0-new/src/daemon/stack.c 2011-03-18 23:59:10.233877439 +0100
42 ***************
43 *** 209,218 ****
44 --- 209,224 ----
45 GSList *l;
46 gint x, y, shiftx = 0, shifty = 0, index = 1;
48 + GConfClient *client = get_gconf_client();
49 + gint offset_x, offset_y;
50 + offset_x = gconf_client_get_int(client, GCONF_KEY_OFFSET_X, NULL);
51 + offset_y = gconf_client_get_int(client, GCONF_KEY_OFFSET_Y, NULL);
53 get_work_area(GTK_WIDGET(nw), &workarea);
54 get_origin_coordinates(stack->location, &workarea, &x, &y,
55 &shiftx, &shifty, init_width, init_height);
57 + x += offset_x; y += offset_y;
58 if (nw_x != NULL)
59 *nw_x = x;
61 Only in notification-daemon-0.4.0-new/src: Makefile
62 Only in notification-daemon-0.4.0-new/src/themes/bubble: .deps
63 Only in notification-daemon-0.4.0-new/src/themes/bubble: Makefile
64 Only in notification-daemon-0.4.0-new/src/themes: Makefile
65 Only in notification-daemon-0.4.0-new/src/themes/standard: .deps
66 Only in notification-daemon-0.4.0-new/src/themes/standard: Makefile