[gnome-control-center] info: Fix incorrect virtualisation technology



commit 4b995ec22b0bc8b6a1aeda855dbff69f99e676f6
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 27 14:31:19 2014 +0100

    info: Fix incorrect virtualisation technology
    
    g_strcmp0() == 0, or g_str_equal(), not g_str_equal() == 0...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727161

 panels/info/cc-info-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index e82c6e8..58ed617 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -809,7 +809,7 @@ set_virtualization_label (CcInfoPanel  *self,
   display_name = NULL;
   for (i = 0; i < G_N_ELEMENTS (virt_tech); i++)
     {
-      if (g_str_equal (virt_tech[i].id, virt) == 0)
+      if (g_str_equal (virt_tech[i].id, virt))
         {
           display_name = _(virt_tech[i].display);
           break;


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