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



commit c98a3c5a8d32893a0835d038eb8d7ec33faeaa06
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]