A couple of questions



Hi all

i've two questions:

1)About GtkTreeView widgets

Is it correct using the following two calls

gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(view), gtk_tree_model_get_path(model, &iter), NULL, FALSE, 0.5, 0); gtk_tree_view_set_cursor (GTK_TREE_VIEW(view), gtk_tree_model_get_path(model, &iter), NULL, FALSE);

to scroll a gtktreeview to a desired row and then put focus over that row (actually it works, but i'm not sure this is the right way to do it)

2) On key binding
I need to make so that by pressing the ESC key a GtkButton gets "clicked", what functions should i use?

thanks in advance

attilio



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]