src/systray/eggtraymanager.c (na_tray_manager_get_child_title):
authorJim Huang <jserv.tw@gmail.com>
Fri, 1 Feb 2008 15:31:39 +0000 (15:31 +0000)
committerJim Huang <jserv.tw@gmail.com>
Fri, 1 Feb 2008 15:31:39 +0000 (15:31 +0000)
  Minor tweak for encoding of title text.

src/systray/eggtraymanager.c

index de7da31..6c8e8b3 100644 (file)
@@ -858,12 +858,10 @@ na_tray_manager_get_child_title (NaTrayManager      *manager,
                               &type, &format, &nitems,
                               &bytes_after, (guchar **)&val);
   
-  if (gdk_error_trap_pop () || result != Success)
+  if (gdk_error_trap_pop () || result != Success || type != utf8_string)
     return NULL;
 
-  if (type != utf8_string ||
-      format != 8 ||
-      nitems == 0)
+  if (format != 8 || nitems == 0)
     {
       if (val)
        XFree (val);