WIP: learning menu (cleaning)
This commit is contained in:
parent
e876479810
commit
71c10ce722
2 changed files with 2 additions and 0 deletions
|
@ -402,6 +402,7 @@ void on_clicked_MENU (GtkWidget *btt_reset, gpointer menu_button)
|
||||||
printf ("callback.on_clicked_MENU() button\n");
|
printf ("callback.on_clicked_MENU() button\n");
|
||||||
// presents the text_window and works only once.\nIt should present a menu.\n"); // TODO
|
// presents the text_window and works only once.\nIt should present a menu.\n"); // TODO
|
||||||
learning_how_to_create_a_menu (menu_button);
|
learning_how_to_create_a_menu (menu_button);
|
||||||
|
// https://docs.gtk.org/gtk4/class.ListBox.html
|
||||||
gtk_window_present (GTK_WINDOW (widget_head_get_TEXT_WINDOW()));
|
gtk_window_present (GTK_WINDOW (widget_head_get_TEXT_WINDOW()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,7 @@ GtkWidget *get_menu_anchor()
|
||||||
struct MenuNode_t *item_b = create_user_menu_node("item_b");add_menu_item (menu_root, item_b);
|
struct MenuNode_t *item_b = create_user_menu_node("item_b");add_menu_item (menu_root, item_b);
|
||||||
struct MenuNode_t *item_c = create_user_menu_node("item_c");add_menu_item (menu_root, item_c);
|
struct MenuNode_t *item_c = create_user_menu_node("item_c");add_menu_item (menu_root, item_c);
|
||||||
|
|
||||||
|
GtkWidget* list_box = gtk_list_box_new();
|
||||||
GtkStringList *model = gtk_string_list_new (NULL);
|
GtkStringList *model = gtk_string_list_new (NULL);
|
||||||
gtk_string_list_append (model, menu_root->text);
|
gtk_string_list_append (model, menu_root->text);
|
||||||
GtkSignalListItemFactory *factory = GTK_SIGNAL_LIST_ITEM_FACTORY (gtk_signal_list_item_factory_new());
|
GtkSignalListItemFactory *factory = GTK_SIGNAL_LIST_ITEM_FACTORY (gtk_signal_list_item_factory_new());
|
||||||
|
|
Loading…
Reference in a new issue