Problem with editable cells still editing when i leave them



Here is the code wich sets the editing on, the problem is that the
editing done dosnt comes when pressing enter or leaving the cell.

void
on_ticket_treeview_cursor_changed      (GtkTreeView     *treeview,
                                        gpointer         user_data)
{
 GtkTreePath *path;
 GtkTreeViewColumn *column;
 GList *columns;
 gint column_ix;

 gtk_tree_view_get_cursor(treeview,&path,&column);

 if (path && column)
   {
    columns=gtk_tree_view_get_columns(treeview);
    column_ix=g_list_index(columns,(gpointer)column);
    g_list_free(columns);

    if (column_ix == 1 || column_ix == 3 || column_ix == 5)
      {
       g_signal_handlers_block_by_func (G_OBJECT (treeview),
                                       
G_CALLBACK(on_ticket_treeview_cursor_changed),
                                        user_data);
       gtk_tree_view_set_cursor (treeview, path,
gtk_tree_view_get_column(treeview,column_ix), TRUE);
       g_signal_handlers_unblock_by_func (G_OBJECT (treeview),
                                         
G_CALLBACK(on_ticket_treeview_cursor_changed),
                                          user_data);
     }
   }

 if(path) gtk_tree_path_free(path);

}


Thanks in advance for the help.


Saludos, Juan Pablo.

        
        
                
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 




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