[evolution-data-server] Identify factory processes with call of g_set_prgname



commit 31ec90a20a6e9b85abaa6d648a5f374382e46706
Author: Milan Crha <mcrha redhat com>
Date:   Thu Dec 17 12:53:25 2009 +0100

    Identify factory processes with call of g_set_prgname

 addressbook/libedata-book/Makefile.am           |    1 +
 addressbook/libedata-book/e-data-book-factory.c |    3 +++
 calendar/libedata-cal/Makefile.am               |    1 +
 calendar/libedata-cal/e-data-cal-factory.c      |    3 +++
 4 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libedata-book/Makefile.am b/addressbook/libedata-book/Makefile.am
index b11b0e2..f21594c 100644
--- a/addressbook/libedata-book/Makefile.am
+++ b/addressbook/libedata-book/Makefile.am
@@ -71,6 +71,7 @@ e_addressbook_factory_CPPFLAGS = \
 	$(AM_CPPFLAGS)				\
 	$(EVOLUTION_ADDRESSBOOK_CFLAGS)		\
 	-DG_LOG_DOMAIN=\"libedata-book\"	\
+	-DE_PRGNAME=\"e-addressbook-factory\"	\
 	-I$(top_srcdir)				\
 	-I$(top_builddir)			\
 	-I$(top_srcdir)/addressbook		\
diff --git a/addressbook/libedata-book/e-data-book-factory.c b/addressbook/libedata-book/e-data-book-factory.c
index c420163..88a755c 100644
--- a/addressbook/libedata-book/e-data-book-factory.c
+++ b/addressbook/libedata-book/e-data-book-factory.c
@@ -410,6 +410,7 @@ main (gint argc, gchar **argv)
 	EOfflineListener *eol;
 
 	g_type_init ();
+	g_set_prgname (E_PRGNAME);
 	if (!g_thread_supported ()) g_thread_init (NULL);
 	dbus_g_thread_init ();
 
@@ -447,6 +448,8 @@ main (gint argc, gchar **argv)
 	offline_state_changed_cb (eol, factory);
 	g_signal_connect (eol, "changed", G_CALLBACK (offline_state_changed_cb), factory);
 
+	printf ("Server is up and running...\n");
+
 	g_main_loop_run (loop);
 
 	g_object_unref (eol);
diff --git a/calendar/libedata-cal/Makefile.am b/calendar/libedata-cal/Makefile.am
index d9ba08d..31851da 100644
--- a/calendar/libedata-cal/Makefile.am
+++ b/calendar/libedata-cal/Makefile.am
@@ -103,6 +103,7 @@ e_calendar_factory_SOURCES = \
 e_calendar_factory_CPPFLAGS = \
 	$(AM_CPPFLAGS)					\
 	-DG_LOG_DOMAIN=\"libedata-cal\"			\
+	-DE_PRGNAME=\"e-calendar-factory\"		\
 	-I$(top_srcdir)					\
 	-I$(top_builddir)				\
 	-I$(top_srcdir)/calendar			\
diff --git a/calendar/libedata-cal/e-data-cal-factory.c b/calendar/libedata-cal/e-data-cal-factory.c
index 7bedc9a..e7b6b44 100644
--- a/calendar/libedata-cal/e-data-cal-factory.c
+++ b/calendar/libedata-cal/e-data-cal-factory.c
@@ -691,6 +691,7 @@ main (gint argc, gchar **argv)
 	EOfflineListener *eol;
 
 	g_type_init ();
+	g_set_prgname (E_PRGNAME);
 	if (!g_thread_supported ()) g_thread_init (NULL);
 	dbus_g_thread_init ();
 
@@ -728,6 +729,8 @@ main (gint argc, gchar **argv)
 	offline_state_changed_cb (eol, factory);
 	g_signal_connect (eol, "changed", G_CALLBACK (offline_state_changed_cb), factory);
 
+	printf ("Server is up and running...\n");
+
 	g_main_loop_run (loop);
 
 	dbus_g_connection_unref (connection);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]