void on_cellrender_edited(object sender, EditedArgs args)
            {
                // root group can't be edited
                if (selected_id == root_group.ID)
                {
                    return;
                }

                BookmarkBase bk = null;

                BookmarkManager.GetBookmarkBase(root_group, selected_id, ref bk);

                if (bk == null)
                {
                    Console.WriteLine("error, could not retrieve bookmark:{0}", selected_id);
                    return;
                }

                // it is not a bookmark
                bk.Name = args.NewText;


                //refreshing tree_view
                BookmarkManager.Refresh();
                BuildTreeView();
            }
 void OnDeleteClicked(object o, EventArgs args)
 {
     if (selected_id != string.Empty)
     {
         BookmarkManager.DeleteBookmarkBase(root_group, selected_id);
         BookmarkManager.Refresh();
         BuildTreeView();
     }
 }
 public void on_AddButton_clicked(object o, EventArgs args)
 {
     BookmarkManager.AddBookmark(root, combo_to_id [combo.Entry.Text] as string, name_entry.Text, url);
     add_bookmark_dialog.Hide();
     BookmarkManager.Refresh();
 }
 void on_NewFolderButton_clicked(object sender, EventArgs args)
 {
     BookmarkManager.AddBookmarkGroup(root_group, selected_id, UNTITLED);
     BookmarkManager.Refresh();
     BuildTreeView();
 }