[gnome-software: 18/24] gs-category-page: Don’t connect signals to placeholder tiles




commit c95167b3e2869aaf74bf79388665b388bf574db0
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Apr 22 15:53:12 2021 +0100

    gs-category-page: Don’t connect signals to placeholder tiles
    
    Or gnome-software will crash if the user clicks a placeholder tile while
    the page is still loading.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-category-page.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index 29fd3aa15..170e8fe87 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -112,8 +112,6 @@ gs_category_page_set_featured_placeholders (GsCategoryPage *self)
        gs_container_remove_all (GTK_CONTAINER (self->featured_flow_box));
        for (guint i = 0; i < 3; ++i) {
                GtkWidget *tile = gs_summary_tile_new (NULL);
-               g_signal_connect (tile, "clicked",
-                                 G_CALLBACK (app_tile_clicked), self);
                gtk_container_add (GTK_CONTAINER (self->featured_flow_box), tile);
                gtk_widget_set_can_focus (gtk_widget_get_parent (tile), FALSE);
        }


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