Skip to content

Instantly share code, notes, and snippets.

@onlyshk
Created August 15, 2010 05:29
Show Gist options
  • Save onlyshk/525123 to your computer and use it in GitHub Desktop.
Save onlyshk/525123 to your computer and use it in GitHub Desktop.
GList* elements = gtk_icon_view_get_selected_items (mw->view);
int i = atoi(gtk_tree_path_to_string(elements->data));
const char* del_path = g_list_nth_data(thumbnail_path_list, i);
GtkTreeIter iter;
GtkTreePath* path = g_list_nth_data(elements,0);
gtk_tree_model_get_iter((GtkTreeModel*)mw->model, &iter, path);
gtk_list_store_remove(mw->model, &iter);
gtk_tree_path_free(path);
g_list_free(elements);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment