Commit Graph

222 Commits

Author SHA1 Message Date
Jean Sirmai e1e3d64371
WIP: attention: déclaration implicite de la fonction « gtk_tree_expander_set_expanded » << remove'tree_' (line 58) and it runs (without widgets...) 2024-02-11 09:50:06 +01:00
Jean Sirmai 0c9ff6c82e
WIP: Allo Houston ? « GtkExpander * » attendu mais l'argument est de type « GtkTreeExpander * » <<< 2024-02-11 09:42:16 +01:00
Jean Sirmai faa7ddc14c
WIP: premier 'arbre' obtenu à partir du code de Christian Hegert (to clean) 2024-02-11 09:33:45 +01:00
Jean Sirmai 6d4c076f98
WIP: ^c^v pas à pas, suite (DON'T read this commit) 2024-02-11 09:16:11 +01:00
Jean Sirmai d9689373d8
WIP: integration pas à pas (DON'T read this commit) 2024-02-11 09:02:03 +01:00
Jean Sirmai 0c711b570b
WIP: Christian Hegert code <<< before inclusion 2024-02-11 08:52:30 +01:00
Jean Sirmai 13cb8099aa
WIP: GListStore is a simple implementation of GListModel that stores all items in memory. <<< Diego C Sampaio passe par là... 2024-02-08 12:01:39 +01:00
Jean Sirmai 01ab47fc1c
WIP: How to 'translate' : >>> row = item.get_item() <<< (in : on_bind_cb() 2024-02-07 23:15:07 +01:00
Jean Sirmai 7bd92fad23
WIP: on_bind_cb() Bind data from the store object to the widget << adapting from the kriptolix example 2024-02-07 13:41:55 +01:00
Jean Sirmai cfa46b6a2a
WIP: on_setup_cb() adapted from the kriptolix example 2024-02-07 13:33:04 +01:00
Jean Sirmai f76784de06
WIP: expanders + labels (illegible) + lots of warnings (invalid casts) 2024-02-06 23:11:09 +01:00
Jean Sirmai 9972b60ce2
A S I M P L E L I S T 2024-02-06 20:49:54 +01:00
Jean Sirmai 17cd257fb1
WIP: avant de revenir au commit >>> fe7ad2488a <<< clean 2024-02-06 19:58:07 +01:00
Jean Sirmai ad8ff7d711
WIP: trying to copy : https://github.com/kriptolix/gtk4_python3_exemples/blob/main/ListView/tree_view.py try if(1) line 65 2024-02-04 00:11:12 +01:00
Jean Sirmai ef3e64dbc3
WIP: comment 72 instead of 71 to observe the list 2024-02-03 23:57:53 +01:00
Jean Sirmai a2fa3852e3
WIP: https://github.com/kriptolix/gtk4_python3_exemples/blob/main/ListView/tree_view.py Diego C Sampaio Fortaleza 2024-02-02 10:11:06 +01:00
Jean Sirmai d53dbbd15f
WIP: assertion 'GTK_IS_TREE_LIST_MODEL (self)' failed (ligne 69) in gtk_tree_list_model_get_row() 2024-02-01 23:46:41 +01:00
Jean Sirmai f8aa2caa76
WIP: Comment apprivoiser ÇA ? > https://docs.gtk.org/gtk4/class.TreeListRow.html ? 2024-02-01 23:22:28 +01:00
Jean Sirmai 6c7b70103c
WIP: affiche une liste simple (non deprec) voir ligne 49 en ajoutant _editable_ 2024-02-01 23:05:32 +01:00
Jean Sirmai 07d6798083
WIP: first use of : on_setup_cb (...) <> to insert a new label 2024-02-01 09:36:11 +01:00
Jean Sirmai a844b79fb8
WIP: impossible de remplacer gtk_expander_set_child() par gtk_tree_expander_set_child() 2024-01-31 21:46:15 +01:00
Jean Sirmai e36c859089
WIP: Que se passe-t-il quand 'autoexpand' est TRUE, ligne 120 <> gtk_tree_list_model_new() ? 2024-01-31 21:29:04 +01:00
Jean Sirmai fe7ad2488a
WIP: gtk_tree_list_model_new() < how to use it,now ? 2024-01-31 15:14:14 +01:00
Jean Sirmai a4e9bb8fcc
WIP: une Erreur de segmentation décidement bien interessante... 2024-01-31 15:06:51 +01:00
Jean Sirmai 561adc8b85
WIP: cleaned (alittle more) > can now go on : gtk_tree_list_model_new() 2024-01-31 14:57:13 +01:00
Jean Sirmai 55f5dd461d
WIP: cleaned (at least previous work) > can now go on : gtk_tree_list_model_new() 2024-01-31 13:50:17 +01:00
Jean Sirmai 393f3d81ba
WIP: j'apprivoise : gtk_tree_list_model_new(...) dans l'espoir d'ajouter des enfants à des items de ma liste 2024-01-31 13:08:59 +01:00
Jean Sirmai 667a9c83c7
WIP: Tiens ? J'imprime des '1' jusqu'à l'erreur de segmentation. Pourquoi ? 2024-01-31 12:36:16 +01:00
Jean Sirmai 104455593f
WIP: micro commit 2024-01-30 22:57:22 +01:00
Jean Sirmai d221074f2e
WIP: gchar *my_child_array[] = {1, 2, 3, NULL};... trying to append that to a parent item. 2024-01-30 12:45:34 +01:00
Jean Sirmai 348d4877cb
WIP: cleaning 2024-01-30 00:00:32 +01:00
Jean Sirmai 2d64975c22
WIP: GtkTreeListModel *my_tree_list_model = gtk_tree_list_model_new (...) (110) 2024-01-29 22:51:09 +01:00
Jean Sirmai 22d127d1c0
WIP: cleaning 2024-01-24 11:53:58 +01:00
Jean Sirmai e9f147a60a
WIP: static void on_activating_this_expander (GtkExpander *my_expander, gpointer my_data){} 2024-01-24 10:24:56 +01:00
Jean Sirmai b1fc18d941
WIP: GtkWidget *my_expander = gtk_expander_new (my_expander); < OK 2024-01-24 10:11:24 +01:00
Jean Sirmai 9260e2f7ff
WIP: Matthias Clasen (compiled) Note that the model is never populated with data — that is left as an exercise for the reader. 2024-01-24 09:18:59 +01:00
Jean Sirmai 30b754cc28
WIP: bonne doc : https://docs.gtk.org/gtk4/section-tree-widget.html 2024-01-24 00:02:46 +01:00
Jean Sirmai 81007820bf
WIP: (from list to tree) Many questions (but only few answers) 2024-01-23 23:02:50 +01:00
Jean Sirmai a54454556a
WIP: unbind_cb() and teardown_cb() seems to have no effect. Why ? 2024-01-23 12:10:37 +01:00
Jean Sirmai 8094259bb2
WIP: item value (a string) = gtk_string_object_get_string (g_list_model_get_item (selection_model, position)) 2024-01-23 11:44:00 +01:00
Jean Sirmai baf6263d15
WIP: on_selection_change() affiche le premier élement ayant changé d'état et le nombre d'éléments ayant changé d'état 2024-01-22 21:11:51 +01:00
Jean Sirmai 556a7f0c69
WIP: How to get the selected item(s) values ? (here are some unsatisfactory results) 2024-01-22 09:54:03 +01:00
Jean Sirmai 06ed50bf61
WIP: learning how to use selections (clumsy: await next commit) 2024-01-22 08:40:19 +01:00
Jean Sirmai 1a57b936c3
WIP: printf(%sn, gtk_string_object_get_string (strobj)); line 44 2024-01-22 08:04:50 +01:00
Jean Sirmai 56b592e075
gtk_multi_selection_new < this one works fine too: use ctrl (& see line 60 in the sand_box) 2024-01-22 00:53:47 +01:00
Jean Sirmai aff067662d
gtk_single_selection_new < it works fine ! (see line 60 in the sand_box) 2024-01-22 00:49:06 +01:00
Jean Sirmai f44c7d1f1e
F I R S T L I S T I N G T K 4 2024-01-21 21:14:02 +01:00
Jean Sirmai e9c1146b55
STEP ! STEP ! First GTK4 list 2024-01-21 20:13:07 +01:00
Jean Sirmai 682178afae
WIP: cleaning before : and_now_let_s_climb_that_tree (my_box_in_that_window); (sand_box 99) 2024-01-21 13:22:51 +01:00
Jean Sirmai 148460db0f
WIP: GtkSelectionModel *my_select_model = gtk_selection_model_select_all (my_string_list); 2024-01-21 12:49:38 +01:00