1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
static void setFocus(char *row){
GtkTreeViewColumn *col;
GtkTreePath *path = NULL;
path = gtk_tree_path_new_from_string(row);
g_print ("path is %s \n", gtk_tree_path_to_string(path));
col = gtk_tree_view_get_column (GTK_TREE_VIEW(getGrid2Ref()->listView), getGrid2Ref()->b2Name = DATE);
gtk_tree_view_set_cursor (GTK_TREE_VIEW (getGrid2Ref()->listView), path, col, FALSE);
gtk_tree_path_free (path);
if (gtk_widget_get_can_focus(getGrid2Ref()->listView) == TRUE){
g_print ("yes for focus \n");
gtk_widget_grab_focus (GTK_WIDGET(getGrid2Ref()->listView));[/INDENT]
}
} |
Partager