[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Graveman-cvs] Changes to graveman/current/src/callbacks.c
From: |
sylvain cresto |
Subject: |
[Graveman-cvs] Changes to graveman/current/src/callbacks.c |
Date: |
Sat, 28 May 2005 07:33:44 -0400 |
Index: graveman/current/src/callbacks.c
diff -u graveman/current/src/callbacks.c:1.45
graveman/current/src/callbacks.c:1.46
--- graveman/current/src/callbacks.c:1.45 Sat May 28 01:30:50 2005
+++ graveman/current/src/callbacks.c Sat May 28 11:33:41 2005
@@ -521,7 +521,7 @@
GtkTreeView *Lliste = GTK_TREE_VIEW(sc_grave_get_data(Lg, "_current_list"));
GtkTreeSelection *Lselection =
gtk_tree_view_get_selection(GTK_TREE_VIEW(Lliste));
GtkTreeModel *Ltreemodel = gtk_tree_view_get_model(GTK_TREE_VIEW(Lliste));
- GtkWidget *Lfilesel = create_adddirselection(NULL);
+ GtkWidget *Lfilesel = interface_create_adddirselection(NULL);
GtkTreeIter Liter;
GSList *Lfiles, *Lcur;
GtkProgressBar *Lcontenance;
@@ -554,7 +554,7 @@
}
use_last_dir(GTK_FILE_CHOOSER(Lfilesel));
- if (gtk_dialog_run(GTK_DIALOG(Lfilesel))==GTK_RESPONSE_ACCEPT) {
+ if (gtk_dialog_run(GTK_DIALOG(Lfilesel))==10) {
set_cursor(Lwindow1, GDK_WATCH);
save_last_dir(GTK_FILE_CHOOSER(Lfilesel));
@@ -588,7 +588,7 @@
guint64 *Ldatamaxsize;
GtkProgressBar *Lcontenance;
GtkTreeModel *Ltreemodel = gtk_tree_view_get_model(GTK_TREE_VIEW(Lliste));
- GtkWidget *Lfilesel = create_addfileselection(NULL);
+ GtkWidget *Lfilesel = interface_create_addfileselection(NULL);
GtkTreeIter Liter;
GSList *Lfiles, *Lcur;
gint Ltype;
@@ -629,7 +629,10 @@
g_slist_free(Lfiles);
if ((Lpath = gtk_tree_model_get_path(Ltreemodel, &Liter))) {
- gtk_tree_view_expand_row(Lliste, Lpath, TRUE);
+ gtk_tree_view_expand_to_path(GTK_TREE_VIEW(Lliste), Lpath);
+ gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(Lliste), Lpath, NULL, FALSE,
0, 0);
+ gtk_tree_view_set_cursor(GTK_TREE_VIEW(Lliste), Lpath, NULL, TRUE);
+
gtk_tree_path_free(Lpath);
}
}
@@ -1486,6 +1489,17 @@
}
}
+/* click on tooltips menu item */
+void menu_active_tooltips(GtkWidget *Amenuitem, gpointer Adata)
+{
+ Tgrave *Lg = (Tgrave *) Adata;
+ GtkWidget *Lwin = GTK_WIDGET(sc_grave_get_widget(Lg, "topwindow"));
+ gboolean Letat =
gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(Amenuitem));
+
+ conf_store_value("tooltips", _BOOLEAN_CONF(Letat));
+ sc_tooltips(Lwin, Letat);
+}
+
/* activer la boite de dialogue proprietes */
void menu_active_proprietes(GtkWidget *Amenuitem, gpointer Adata)
{
@@ -1505,7 +1519,7 @@
/* recuperation des valeurs a sauver */
Lptr = sc_grave_get_widget(Ldialoghash, "dirtmpvalue");
- conf_store_value("tmpdir", (gchar *)gtk_entry_get_text(GTK_ENTRY(Lptr)));
+ conf_store_value("tmpdir", (gchar
*)gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(Lptr)));
Lptr = sc_grave_get_widget(Ldialoghash, "overburn");
conf_store_value("overburn",
_BOOLEAN_CONF(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(Lptr))));
Lptr = sc_grave_get_widget(Ldialoghash, "fastblank");
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c, sylvain cresto, 2005/05/02
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c, sylvain cresto, 2005/05/03
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c, sylvain cresto, 2005/05/09
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c, sylvain cresto, 2005/05/17
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c, sylvain cresto, 2005/05/22
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c, sylvain cresto, 2005/05/27
- [Graveman-cvs] Changes to graveman/current/src/callbacks.c,
sylvain cresto <=