GTK4: Bug fix Reduce the use of gtk_widget_destroy
authorColin Clark <colin.clark@cclark.uk>
Sun, 1 Oct 2023 13:17:42 +0000 (14:17 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 1 Oct 2023 13:17:42 +0000 (14:17 +0100)
GTK4 migration

src/collect-table.cc

index 0f882bd..c2f4c26 100644 (file)
@@ -598,7 +598,7 @@ static void tip_show(CollectTable *ct)
 
 static void tip_hide(CollectTable *ct)
 {
-       if (ct->tip_window) g_object_unref(ct->tip_window);
+       if (ct->tip_window) gq_gtk_widget_destroy(ct->tip_window);
        ct->tip_window = nullptr;
 }