[gnome-panel/wip/geiger/geometry: 5/8] add some logging statements



commit b33e3dc25ac5b9eea41afab0352ea1e7db9138f4
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..edbafe7 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 1ca1159..c9c070d 100644
--- a/gnome-panel/panel-layout.c
+++ b/gnome-panel/panel-layout.c
@@ -1030,6 +1030,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]