GtkIconView items



Hello,

I have a gtkiconview in my C/gtk+ application. In this GtkIconView i
load images from GList like thumbnails. How can i get selecting item
in this GtkIconView? I try so:

....
g_signal_connect(mw->view,"selection-changed",G_CALLBACK(thumbnail_selected),mw);
....


void thumbnail_selected(GtkWidget* widget, MainWin* mw)
{
   GList* list = gtk_icon_view_get_selected_items(mw->view);

  // And i try for example:
   printf(a->data);
}

But nothing output. How can i get access to GtkIconView items?

Thank you



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