1 --- mate-settings-daemon-1.5.5/./plugins/xrandr/Makefile.am~ 2013-02-08 01:25:01.000000000 +0200
2 +++ mate-settings-daemon-1.5.5/./plugins/xrandr/Makefile.am 2013-02-18 22:09:42.379069593 +0200
5 libxrandr_la_CFLAGS = \
6 $(SETTINGS_PLUGIN_CFLAGS) \
7 - $(LIBMATENOTIFY_CFLAGS) \
8 + $(LIBNOTIFY_CFLAGS) \
9 $(MATE_DESKTOP_CFLAGS) \
14 libxrandr_la_LIBADD = \
15 $(SETTINGS_PLUGIN_LIBS) \
16 - $(LIBMATENOTIFY_LIBS) \
21 --- mate-settings-daemon-1.5.5/plugins/xrandr/msd-xrandr-manager.c 2013-02-18 22:25:36.719541100 +0200
22 +++ mate-settings-daemon-1.5.5/plugins/xrandr/msd-xrandr-manager.c 2013-02-26 00:46:56.115307180 +0200
24 #include <libmateui/mate-rr.h>
25 #include <libmateui/mate-rr-labeler.h>
27 -#ifdef HAVE_LIBMATENOTIFY
28 -#include <libmatenotify/notify.h>
29 +#ifdef HAVE_LIBNOTIFY
30 +#include <libnotify/notify.h>
33 #include "mate-settings-profile.h"
34 @@ -1079,22 +1079,20 @@
36 error_message (MsdXrandrManager *mgr, const char *primary_text, GError *error_to_display, const char *secondary_text)
38 -#ifdef HAVE_LIBMATENOTIFY
39 +#ifdef HAVE_LIBNOTIFY
40 MsdXrandrManagerPrivate *priv = mgr->priv;
41 NotifyNotification *notification;
43 g_assert (error_to_display == NULL || secondary_text == NULL);
45 if (priv->status_icon)
46 - notification = notify_notification_new_with_status_icon (primary_text,
47 - error_to_display ? error_to_display->message : secondary_text,
48 - MSD_XRANDR_ICON_NAME,
50 + notification = notify_notification_new (primary_text,
51 + error_to_display ? error_to_display->message : secondary_text,
52 + gtk_status_icon_get_icon_name(priv->status_icon));
54 notification = notify_notification_new (primary_text,
55 error_to_display ? error_to_display->message : secondary_text,
56 - MSD_XRANDR_ICON_NAME,
58 + MSD_XRANDR_ICON_NAME);
60 notify_notification_show (notification, NULL); /* NULL-GError */
64 gtk_dialog_run (GTK_DIALOG (dialog));
65 gtk_widget_destroy (dialog);
66 -#endif /* HAVE_LIBMATENOTIFY */
67 +#endif /* HAVE_LIBNOTIFY */
71 --- mate-settings-daemon-1.5.5/./plugins/a11y-keyboard/Makefile.am~ 2013-02-08 01:25:01.000000000 +0200
72 +++ mate-settings-daemon-1.5.5/./plugins/a11y-keyboard/Makefile.am 2013-02-18 22:10:28.794534045 +0200
75 liba11y_keyboard_la_CFLAGS = \
76 $(SETTINGS_PLUGIN_CFLAGS) \
77 - $(LIBMATENOTIFY_CFLAGS) \
78 + $(LIBNOTIFY_CFLAGS) \
81 liba11y_keyboard_la_LDFLAGS = \
83 liba11y_keyboard_la_LIBADD = \
84 $(SETTINGS_PLUGIN_LIBS) \
86 - $(LIBMATENOTIFY_LIBS) \
91 --- mate-settings-daemon-1.5.5/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c 2013-02-18 22:10:59.255932639 +0200
92 +++ mate-settings-daemon-1.5.5/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c 2013-02-18 22:20:31.682202641 +0200
94 #include <X11/extensions/XIproto.h>
97 -#ifdef HAVE_LIBMATENOTIFY
98 -#include <libmatenotify/notify.h>
99 -#endif /* HAVE_LIBMATENOTIFY */
100 +#ifdef HAVE_LIBNOTIFY
101 +#include <libnotify/notify.h>
102 +#endif /* HAVE_LIBNOTIFY */
104 #include "mate-settings-profile.h"
105 #include "msd-a11y-keyboard-manager.h"
110 -#ifdef HAVE_LIBMATENOTIFY
111 +#ifdef HAVE_LIBNOTIFY
112 NotifyNotification *notification;
113 -#endif /* HAVE_LIBMATENOTIFY */
114 +#endif /* HAVE_LIBNOTIFY */
117 static void msd_a11y_keyboard_manager_class_init (MsdA11yKeyboardManagerClass *klass);
119 gtk_status_icon_set_visible (manager->priv->status_icon, show);
122 -#ifdef HAVE_LIBMATENOTIFY
123 +#ifdef HAVE_LIBNOTIFY
125 on_notification_closed (NotifyNotification *notification,
126 MsdA11yKeyboardManager *manager)
127 @@ -558,13 +558,13 @@
131 -#endif /* HAVE_LIBMATENOTIFY */
132 +#endif /* HAVE_LIBNOTIFY */
135 ax_slowkeys_warning_post_bubble (MsdA11yKeyboardManager *manager,
138 -#ifdef HAVE_LIBMATENOTIFY
139 +#ifdef HAVE_LIBNOTIFY
144 msd_a11y_keyboard_manager_ensure_status_icon (manager);
145 manager->priv->notification = notify_notification_new (title,
147 - "preferences-desktop-accessibility",
149 + "preferences-desktop-accessibility");
150 notify_notification_attach_to_status_icon (manager->priv->notification, manager->priv->status_icon);
151 notify_notification_set_timeout (manager->priv->notification, NOTIFICATION_TIMEOUT * 1000);
157 -#endif /* HAVE_LIBMATENOTIFY */
158 +#endif /* HAVE_LIBNOTIFY */
163 ax_stickykeys_warning_post_bubble (MsdA11yKeyboardManager *manager,
166 -#ifdef HAVE_LIBMATENOTIFY
167 +#ifdef HAVE_LIBNOTIFY
172 msd_a11y_keyboard_manager_ensure_status_icon (manager);
173 manager->priv->notification = notify_notification_new (title,
175 - "preferences-desktop-accessibility",
177 + "preferences-desktop-accessibility");
178 notify_notification_attach_to_status_icon (manager->priv->notification, manager->priv->status_icon);
179 notify_notification_set_timeout (manager->priv->notification, NOTIFICATION_TIMEOUT * 1000);
185 -#endif /* HAVE_LIBMATENOTIFY */
186 +#endif /* HAVE_LIBNOTIFY */
190 @@ -1250,9 +1248,9 @@
192 manager->priv = MSD_A11Y_KEYBOARD_MANAGER_GET_PRIVATE (manager);
194 -#ifdef HAVE_LIBMATENOTIFY
195 +#ifdef HAVE_LIBNOTIFY
196 notify_init ("mate-settings-daemon");
197 -#endif /* HAVE_LIBMATENOTIFY */
198 +#endif /* HAVE_LIBNOTIFY */
202 --- mate-settings-daemon-1.5.5/./plugins/housekeeping/Makefile.am~ 2013-02-08 01:25:01.000000000 +0200
203 +++ mate-settings-daemon-1.5.5/./plugins/housekeeping/Makefile.am 2013-02-18 22:11:49.998262432 +0200
205 libhousekeeping_la_CFLAGS = \
206 $(SETTINGS_PLUGIN_CFLAGS) \
208 - $(LIBMATENOTIFY_CFLAGS) \
209 + $(LIBNOTIFY_CFLAGS) \
212 libhousekeeping_la_LDFLAGS = $(MSD_PLUGIN_LDFLAGS)
214 -libhousekeeping_la_LIBADD = $(SETTINGS_PLUGIN_LIBS) $(GIOUNIX_LIBS) $(LIBMATENOTIFY_LIBS)
215 +libhousekeeping_la_LIBADD = $(SETTINGS_PLUGIN_LIBS) $(GIOUNIX_LIBS) $(LIBNOTIFY_LIBS)
217 plugin_in_files = housekeeping.mate-settings-plugin.in
219 --- mate-settings-daemon-1.5.5/./plugins/housekeeping/msd-disk-space.c~ 2013-02-08 01:25:01.000000000 +0200
220 +++ mate-settings-daemon-1.5.5/./plugins/housekeeping/msd-disk-space.c 2013-02-18 22:12:03.545551115 +0200
225 -/* gcc -DHAVE_LIBMATENOTIFY -DTEST -Wall `pkg-config --cflags --libs gobject-2.0 gio-unix-2.0 glib-2.0 gtk+-2.0 libmatenotify` -o msd-disk-space-test msd-disk-space.c */
226 +/* gcc -DHAVE_LIBNOTIFY -DTEST -Wall `pkg-config --cflags --libs gobject-2.0 gio-unix-2.0 glib-2.0 gtk+-2.0 libnotify` -o msd-disk-space-test msd-disk-space.c */
230 --- mate-settings-daemon-1.5.5/./configure.ac~ 2013-02-08 01:25:01.000000000 +0200
231 +++ mate-settings-daemon-1.5.5/./configure.ac 2013-02-18 22:13:56.937424046 +0200
233 GTK_REQUIRED_VERSION=2.24.0
234 GIO_REQUIRED_VERSION=2.26.0
235 MATE_DESKTOP_REQUIRED_VERSION=1.5.0
236 -LIBMATENOTIFY_REQUIRED_VERSION=1.1.0
237 +LIBNOTIFY_REQUIRED_VERSION=0.7.5
239 EXTRA_COMPILE_WARNINGS(yes)
242 PKG_CHECK_MODULES(MATE_DESKTOP, mate-desktop-2.0 >= $MATE_DESKTOP_REQUIRED_VERSION)
244 dnl ---------------------------------------------------------------------------
245 -dnl - Check for libmatenotify
246 +dnl - Check for libnotify
247 dnl ---------------------------------------------------------------------------
249 -have_libmatenotify=no
250 -AC_ARG_WITH(libmatenotify,
251 - AC_HELP_STRING([--without-libmatenotify], [Disable notifications (default: auto)]),
252 - with_libmatenotify=$withval, with_libmatenotify=auto)
254 -if test "x$with_libmatenotify" != "xno"; then
255 - PKG_CHECK_MODULES(LIBMATENOTIFY, libmatenotify >= $LIBMATENOTIFY_REQUIRED_VERSION,
256 - [AC_DEFINE(HAVE_LIBMATENOTIFY, 1, [Define if libmatenotify is available])
257 - have_libmatenotify=yes], have_libmatenotify=no)
258 - if test "x$have_libmatenotify" = xno -a "x$with_libmatenotify" = xyes; then
259 - AC_MSG_ERROR([libmatenotify support requested but libraries not found])
261 +AC_ARG_WITH(libnotify,
262 + AC_HELP_STRING([--without-libnotify], [Disable notifications (default: auto)]),
263 + with_libnotify=$withval, with_libnotify=auto)
265 +if test "x$with_libnotify" != "xno"; then
266 + PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED_VERSION,
267 + [AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define if libnotify is available])
268 + have_libnotify=yes], have_libnotify=no)
269 + if test "x$have_libnotify" = xno -a "x$with_libnotify" = xyes; then
270 + AC_MSG_ERROR([libnotify support requested but libraries not found])
273 -AC_SUBST(LIBMATENOTIFY_CFLAGS)
274 -AC_SUBST(LIBMATENOTIFY_LIBS)
275 +AC_SUBST(LIBNOTIFY_CFLAGS)
276 +AC_SUBST(LIBNOTIFY_LIBS)
278 dnl ---------------------------------------------------------------------------
279 dnl - Check for D-Bus
281 dbus-1 system.d dir: ${DBUS_SYS_DIR}
282 PolicyKit support: ${HAVE_POLKIT}
284 - Libmatenotify support: ${have_libmatenotify}
285 + Libnotify support: ${have_libnotify}
286 GStreamer support: ${have_gstreamer}
287 PulseAudio support: ${have_pulse}
288 Smartcard support: ${have_smartcard_support}