[sysprof/wip/gtk4-port: 62/132] batteryaid: port to GTK 4




commit 3426b01b856ba320c6037e13457216d969ec178e
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 30 19:16:39 2021 -0700

    batteryaid: port to GTK 4

 src/libsysprof-ui/sysprof-battery-aid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-battery-aid.c b/src/libsysprof-ui/sysprof-battery-aid.c
index 8bef1979..6adca861 100644
--- a/src/libsysprof-ui/sysprof-battery-aid.c
+++ b/src/libsysprof-ui/sysprof-battery-aid.c
@@ -218,7 +218,7 @@ sysprof_battery_aid_present_finish (SysprofAid    *aid,
       if (found > 0)
         sysprof_display_add_group (present->display, group);
       else
-        gtk_widget_destroy (GTK_WIDGET (group));
+        g_object_unref (group);
     }
 
   return counters != NULL;


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