コード例 #1
0
ファイル: cheese-thumb-view.c プロジェクト: Cobra-Kao/ropon
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;
}
コード例 #2
0
ファイル: rbgtkiconview.c プロジェクト: benolee/ruby-gnome2
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;
}
コード例 #3
0
ファイル: gobject_info.c プロジェクト: samdemers/mkapp
/**
 * 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);
}