[sysprof/wip/gtk4-port: 55/125] batteryaid: port to GTK 4




commit 9120f2d2a945c038013203f4b5905c6cb686033a
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]