[gnome-panel/wip/geiger/geometry: 4/8] add some logging statements
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/geiger/geometry: 4/8] add some logging statements
- Date: Sun, 7 Jan 2018 18:59:56 +0000 (UTC)
commit d3b928034163a698826baeb93d6f99f09bdd38fb
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Jan 6 15:11:28 2018 +0100
add some logging statements
gnome-panel/main.c | 13 +++++++++++++
gnome-panel/panel-layout.c | 2 ++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/main.c b/gnome-panel/main.c
index 3f3ad06..8abfacb 100644
--- a/gnome-panel/main.c
+++ b/gnome-panel/main.c
@@ -165,6 +165,8 @@ main (int argc, char **argv)
return EXIT_SUCCESS;
}
+ g_info ("Registering DBus Own Name. Replace: %s", replace ? "true" : "false");
+
session = panel_session_new (replace);
if (session == NULL)
return 1;
@@ -172,9 +174,16 @@ main (int argc, char **argv)
g_set_application_name (_("Panel"));
gtk_window_set_default_icon_name (PANEL_ICON_PANEL);
+ g_info ("Initializing action protocol");
+
panel_action_protocol_init ();
+
+ g_info ("Initializing multiscreen");
+
panel_multiscreen_init ();
+ g_info ("Loading panel layout");
+
if (!panel_layout_load ()) {
panel_cleanup_do ();
return 1;
@@ -184,6 +193,8 @@ main (int argc, char **argv)
* immediate after (eg, the nautilus desktop). */
gdk_flush ();
+ g_info ("Registering with session manager");
+
/* Do this at the end, to be sure that we're really ready when
* connecting to the session manager */
panel_session_register_client (session);
@@ -202,6 +213,8 @@ main (int argc, char **argv)
gtk_main ();
+ g_info ("Panel shutting down");
+
g_object_unref (g_settings);
g_object_unref (session);
diff --git a/gnome-panel/panel-layout.c b/gnome-panel/panel-layout.c
index c92a4cd..7fa73f2 100644
--- a/gnome-panel/panel-layout.c
+++ b/gnome-panel/panel-layout.c
@@ -1031,6 +1031,8 @@ panel_layout_load_toplevel (const char *toplevel_id)
if (PANEL_GLIB_STR_EMPTY (toplevel_id))
return;
+ g_info ("Loading toplevel: %s", toplevel_id);
+
path = g_strdup_printf ("%s%s/",
PANEL_LAYOUT_TOPLEVEL_PATH, toplevel_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]