[gnome-panel/wip/geiger/geometry: 7/10] add some logging statements



commit 032cc3d208231f707e8b00f3220b19920c15c3aa
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 ++
 gnome-panel/panel-multiscreen.c |    2 ++
 3 files changed, 17 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 77d46a3..4463459 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);
 
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index 4316af7..366271f 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -76,6 +76,8 @@ panel_multiscreen_queue_reinit (void)
 void
 panel_multiscreen_init (void)
 {
+  g_debug ("multi screen init");
+
   GdkScreen *screen;
 
   screen = gdk_screen_get_default ();


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