[file-roller] initialize the notification system after setting the application name
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] initialize the notification system after setting the application name
- Date: Sun, 9 Oct 2016 06:34:30 +0000 (UTC)
commit 6833c7b9af714de9ecce825a1deb4bb34d953479
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Oct 3 17:59:35 2016 +0200
initialize the notification system after setting the application name
src/fr-application.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/fr-application.c b/src/fr-application.c
index a2442d5..98aac18 100644
--- a/src/fr-application.c
+++ b/src/fr-application.c
@@ -454,6 +454,11 @@ fr_application_startup (GApplication *application)
g_set_application_name (_("Archive Manager"));
gtk_window_set_default_icon_name ("file-roller");
+#ifdef ENABLE_NOTIFICATION
+ if (! notify_init (g_get_application_name ()))
+ g_warning ("Cannot initialize notification system.");
+#endif /* ENABLE_NOTIFICATION */
+
fr_application_register_archive_manager_service (FR_APPLICATION (application));
initialize_data ();
@@ -716,11 +721,6 @@ fr_application_class_init (FrApplicationClass *klass)
static void
fr_application_init (FrApplication *self)
{
-#ifdef ENABLE_NOTIFICATION
- if (! notify_init (g_get_application_name ()))
- g_warning ("Cannot initialize notification system.");
-#endif /* ENABLE_NOTIFICATION */
-
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, FR_TYPE_APPLICATION, FrApplicationPrivate);
self->priv->owner_id = 0;
self->priv->introspection_data = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]