title: gtk-get which item is clicked in the liststore treeview
body: <p>I want to get the item that is clicked in the treeview which causes "row-activated" event. I have a list store in a treeview. Clicking any item of it shows another list. But how do I know which item is clicked?
  How do I find that?
  code-</p>
  
  <pre><code>GtkWidget * init_tree()
  {
  
      GtkListStore *liststore = gtk_list_store_new(1, G_TYPE_STRING);
      GtkTreeIter treeiter;
  
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Register", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "New Configuration", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Edit Configuration", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Delete Configuration", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Add location to turn-off place list", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Disable Turn-off Places", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Enable Turn-off Places", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Disable Distance", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Enable Distance", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      gtk_list_store_set(liststore, &amp;treeiter, 0, "Factory Reset", -1);
      gtk_list_store_append(liststore, &amp;treeiter);
      GtkWidget *treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(liststore));
  
      GtkCellRenderer *cellrenderertext = gtk_cell_renderer_text_new();
  
      GtkTreeViewColumn *treeviewcolumn = gtk_tree_view_column_new_with_attributes("Settings",
                                                                                   cellrenderertext,
                                                                                   "text", 0,
                                                                                   NULL);
      gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), treeviewcolumn);
  
      return treeview;
  }
  
  static void replace_tab(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
  {
  ..........
  }
  
  int main(...)
  {
  ....
  g_signal_connect(treeview, "row-activated", G_CALLBACK(replace_tab), (gpointer) parameters);
  
  .....
  }
  </code></pre>