guint cheese_thumb_view_get_n_selected (CheeseThumbView *thumbview) { guint count = 0; gtk_icon_view_selected_foreach (GTK_ICON_VIEW (thumbview), cheese_thumb_view_get_n_selected_helper, (&count)); return count; }
static VALUE iview_selected_foreach(VALUE self) { VALUE func = rb_block_proc(); G_RELATIVE(self, func); gtk_icon_view_selected_foreach(_SELF(self), (GtkIconViewForeachFunc)iview_foreach_func, (gpointer)func); return self; }
/** * Print the selected items in an icon view. * @param icon_view icon view to print information about. */ void mk_print_GtkIconView_info(GtkIconView* icon_view) { g_printf("\t"); gtk_icon_view_selected_foreach(icon_view, print_icon_selection, NULL); }