diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-09-27 17:25:32 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-10-11 11:00:56 +0200 |
commit | 54b74317e51ce02665afee7d7fe85e475839492a (patch) | |
tree | a78ca181dbf5ea5f66612137ab7f621231809b4f /plugins/print-notifications | |
parent | f5ef6bd9d1166a9457304409f58b6f0d2ba15cd4 (diff) | |
download | gnome-settings-daemon-54b74317e51ce02665afee7d7fe85e475839492a.tar.gz |
build: Add separate GTK+ skeleton
And simplify library requirements for each helper. This should allow
us to trim the number of dependencies for each one of the helpers. This
also moves the libnotify initialisation directly into the plugins that
need it.
https://bugzilla.gnome.org/show_bug.cgi?id=772370
Diffstat (limited to 'plugins/print-notifications')
-rw-r--r-- | plugins/print-notifications/Makefile.am | 21 | ||||
-rw-r--r-- | plugins/print-notifications/gsd-print-notifications-manager.c | 2 | ||||
-rw-r--r-- | plugins/print-notifications/main.c | 2 |
3 files changed, 11 insertions, 14 deletions
diff --git a/plugins/print-notifications/Makefile.am b/plugins/print-notifications/Makefile.am index 98b105dd..0e6b6d70 100644 --- a/plugins/print-notifications/Makefile.am +++ b/plugins/print-notifications/Makefile.am @@ -13,15 +13,13 @@ gsd_printer_SOURCES = \ gsd-printer.c gsd_printer_CFLAGS = \ - $(SETTINGS_PLUGIN_CFLAGS) \ - $(LIBNOTIFY_CFLAGS) \ -DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \ + $(PRINT_NOTIFICATIONS_CFLAGS) \ $(AM_CFLAGS) -gsd_printer_LDADD = \ - $(SETTINGS_PLUGIN_LIBS) \ - $(CUPS_LIBS) \ - $(LIBNOTIFY_LIBS) +gsd_printer_LDADD = \ + $(PRINT_NOTIFICATIONS_LIBS) \ + $(CUPS_LIBS) libexec_PROGRAMS += gsd-print-notifications @@ -39,17 +37,14 @@ gsd_print_notifications_CPPFLAGS = \ $(AM_CPPFLAGS) \ $(CUPS_CPPFLAGS) -gsd_print_notifications_CFLAGS = \ - $(PLUGIN_CFLAGS) \ - $(SETTINGS_PLUGIN_CFLAGS) \ - $(AM_CFLAGS) +gsd_print_notifications_CFLAGS = \ + $(PLUGIN_CFLAGS) \ + $(PRINT_NOTIFICATIONS_CFLAGS) gsd_print_notifications_LDADD = \ $(top_builddir)/gnome-settings-daemon/libgsd.la \ - $(SETTINGS_DAEMON_LIBS) \ - $(SETTINGS_PLUGIN_LIBS) \ $(CUPS_LIBS) \ - $(LIBNOTIFY_LIBS) + $(PRINT_NOTIFICATIONS_LIBS) EXTRA_DIST = \ $(desktop_in_files) diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c b/plugins/print-notifications/gsd-print-notifications-manager.c index c322f841..6ffa9790 100644 --- a/plugins/print-notifications/gsd-print-notifications-manager.c +++ b/plugins/print-notifications/gsd-print-notifications-manager.c @@ -1473,6 +1473,8 @@ gsd_print_notifications_manager_class_init (GsdPrintNotificationsManagerClass *k object_class->finalize = gsd_print_notifications_manager_finalize; + notify_init ("gnome-settings-daemon"); + g_type_class_add_private (klass, sizeof (GsdPrintNotificationsManagerPrivate)); } diff --git a/plugins/print-notifications/main.c b/plugins/print-notifications/main.c index a0dd4069..57155d04 100644 --- a/plugins/print-notifications/main.c +++ b/plugins/print-notifications/main.c @@ -4,4 +4,4 @@ #define MANAGER GsdPrintNotificationsManager #include "gsd-print-notifications-manager.h" -#include "daemon-skeleton.h" +#include "daemon-skeleton-gtk.h" |