int img_y_offset = (item_height - img_alloc.height - label_alloc.height) / 2;
int label_x_offset = (item_width - label_alloc.width) / 2;
-
+ size_t selection_count = 0;
int x = 0;
int y = 0;
gtk_snapshot_append_node(snapshot, highlight_clip_node);
} else {
view->items[i].isselected = 1;
+ selection_count++;
}
} else if (view->update_selection == 1) {
view->items[i].isselected = 0;
y++;
}
}
+
+ if(view->update_selection) {
+ view->selection_count = selection_count;
+ printf("selection_count: %d\n", (int)selection_count);
+ }
}
// draw children