static void
search_item_activated_cb(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer data)
{
-#if 0
search_dialog *s=(search_dialog *)data;
+GtkTreeIter iter;
+GtkTreeModel *model;
+guint id;
+
+if (!gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(tree_view)), NULL, &iter))
+ return;
+
+model=gtk_tree_view_get_model(GTK_TREE_VIEW(tree_view));
+if (!model)
+ return;
+
+gtk_tree_model_get(model, &iter, ITEM_ID, &id, -1);
+g_printf("Item %d\n", id);
+
+#if 0
gtk_widget_destroy(sd.dialog);
#endif
}