tint2conf : double clic to applied, config file.

git-svn-id: http://tint2.googlecode.com/svn/trunk@236 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2009-10-25 18:59:59 +00:00
parent 698f253f96
commit 41d6518a41

View file

@ -313,7 +313,29 @@ static void menuSaveAs (GtkWindow *parent)
static void menuDelete (void)
{
printf("menuDelete\n");
GtkTreeSelection *sel;
GtkTreeIter iter;
GtkTreeModel *model;
char *value, *name1, *name2;
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(themeView));
//model = GTK_TREE_MODEL(window->liststore);
if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) {
gtk_tree_model_get(model, &iter, LIST_ITEM, &value, -1);
name1 = g_build_filename (g_get_user_config_dir(), "tint2", value, NULL);
name2 = g_strdup_printf("%s.tint2rc", name1);
g_free(name1);
//g_remove(name2);
/*
GtkListStore *store;
GtkTreeIter iter;
store = GTK_LIST_STORE(model);
gtk_list_store_remove(store, &iter);
*/
g_free(value);
g_free(name2);
}
}
@ -326,6 +348,7 @@ static void menuProperties (void)
static void menuRename (void)
{
printf("menuRename\n");
// g_rename
}
@ -382,7 +405,7 @@ static void onPopupMenu(GtkWidget *self, GdkEventButton *event)
static void viewRowActivated(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
{
//action_activate("show-torrent-properties");
menuApply();
}