summaryrefslogtreecommitdiff
path: root/src/caja-application.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-10-23 20:24:17 -0400
committerlukefromdc <[email protected]>2016-10-23 20:24:17 -0400
commit6404fa33afc5b4961fea47f8eefd07f5b4ff913a (patch)
tree4118dfcf3bf3e69d12e49b2fb360178e00ef802e /src/caja-application.c
parent30b7ce2e63080fca1db9bdf2dd82955ce7ad2cc7 (diff)
downloadcaja-6404fa33afc5b4961fea47f8eefd07f5b4ff913a.tar.bz2
caja-6404fa33afc5b4961fea47f8eefd07f5b4ff913a.tar.xz
libunique builds: enable eject notifications
We no longer need to use any GtkApplication features for this so enable it in libunique builds too. Tested with and without libunique in GTK 3.22
Diffstat (limited to 'src/caja-application.c')
-rw-r--r--src/caja-application.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index dff984f3..9bd3ef74 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -70,6 +70,7 @@
#include <eel/eel-stock-dialogs.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
+#include <libnotify/notify.h>
#include <libcaja-private/caja-debug-log.h>
#include <libcaja-private/caja-file-utilities.h>
#include <libcaja-private/caja-global-preferences.h>
@@ -90,7 +91,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <libnotify/notify.h>
#else
enum {
COMMAND_0, /* unused: 0 is an invalid command */
@@ -1459,6 +1459,9 @@ caja_application_startup (CajaApplication *application,
/* Load session info if availible */
caja_application_load_session (application);
+ /* Initialize notifications for eject operations */
+ notify_init (GETTEXT_PACKAGE);
+
/* load accelerator map, and register save callback */
accel_map_filename = caja_get_accel_map_file ();
if (accel_map_filename)
@@ -3207,7 +3210,7 @@ caja_application_startup (GApplication *app)
/* attach menu-provider module callback */
menu_provider_init_callback ();
- /* Initialize the UI handler singleton for file operations */
+ /* Initialize notifications for eject operations */
notify_init (GETTEXT_PACKAGE);
/* Watch for unmounts so we can close open windows */