From e0337b5b7acf03320f9591363d879bc52412edec Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 8 May 2020 14:18:39 -0700 Subject: [PATCH] select_item() now checks for expanders --- src/wofi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index a5153fb..a5a9b4b 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -838,6 +838,9 @@ static void select_item(GtkFlowBox* flow_box, gpointer data) { GList* selected_children = gtk_flow_box_get_selected_children(flow_box); GtkWidget* box = gtk_bin_get_child(GTK_BIN(selected_children->data)); g_list_free(selected_children); + if(GTK_IS_EXPANDER(box)) { + box = gtk_expander_get_label_widget(GTK_EXPANDER(box)); + } flag_box(GTK_BOX(box), GTK_STATE_FLAG_SELECTED); gtk_widget_set_name(box, "selected"); previous_selection = box;