Bonjour,
J'ai un tree view qui contient des entiers que je peu changer, enfin non, justement, j'ai une erreur.
Voici mon code :
Code ada : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 procedure Key_Edited (Model : access GObject_Record'Class; Params : Glib.Values.GValues; Plugin : Plugin_access) is M : constant Gtk_Tree_Store := Gtk_Tree_Store (Model); Path_String : constant String := Get_String (Nth (Params, 1)); Text_Value : constant Gvalue := Nth (Params, 2); Iter : constant Gtk_Tree_Iter := Get_Iter_From_String (M, Path_String); begin Set (M, Iter, Keys_Column, Get_Int(Text_Value)); end Key_Edited;
J'ai une erreur au moment du click sur la cellule, la valeur est mise à zéro et j'ai ce message :
Si vou pouviez me filer un coup de pous sur le coup, merci.GLib-GObject-CRITICAL **: g_value_get_int: assertion `G_VALUE_HOLDS_INT (value)' failed
Partager