[Xfce4-commits] <xfce4-panel:devel> Also check for empty string to avoid unneeded errors.

Nick Schermer noreply at xfce.org
Mon Nov 16 15:26:01 CET 2009


Updating branch refs/heads/devel
         to 0088e6709361e595b671345d13893037dbd24602 (commit)
       from 1840213b661e8e65e3bf3362c0e40a5b29bcb22b (commit)

commit 0088e6709361e595b671345d13893037dbd24602
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Oct 30 13:04:41 2009 +0100

    Also check for empty string to avoid unneeded errors.

 panel/panel-window.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index 11f1f47..8203bf9 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -1552,7 +1552,7 @@ panel_window_screen_layout_changed (GdkScreen   *screen,
     }
   else
     {
-      if (window->output_name == NULL)
+      if (exo_str_is_empty (window->output_name))
         {
           normal_monitor_positioning:
 
@@ -1573,12 +1573,12 @@ panel_window_screen_layout_changed (GdkScreen   *screen,
               if (G_UNLIKELY (name == NULL))
                 {
                   /* send a warnings why this went wrong */
-                  g_critical ("An output is set on the panel window (%s), "
-                              "but it looks  like the driver does not "
-                              "support output names. Falling back to normal "
-                              "monitor positioning, you have to set the output "
-                              "again in the preferences to activate this feature.",
-                              window->output_name);
+                  g_message ("An output is set on the panel window (%s), "
+                             "but it looks  like the driver does not "
+                             "support output names. Falling back to normal "
+                             "monitor positioning, you have to set the output "
+                             "again in the preferences to activate this feature.",
+                             window->output_name);
 
                   /* cleanup */
                   g_free (window->output_name);



More information about the Xfce4-commits mailing list