gem-graph-client/hot.c

37 lines
1.4 KiB
C

#include <stdio.h>
#include <gtk-4.0/gtk/gtk.h>
#include "warm.h"
#include "cold.h"
#include "display.h"
#include "contain.h"
#include "texts.h"
// https://docs.gtk.org/gtk4/visual_index.html < widgets gallery
// https://docs.gtk.org/gtk4/section-text-widget.html
// https://docs.gtk.org/gtk4/class.Widget.html#height-for-width-geometry-management
// GTK_ORIENTATION_VERTICAL GTK_ORIENTATION_HORIZONTAL
GtkBox *get_experimental_box_new(){
GtkBox *experimental_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_VERTICAL, 0));
gtk_box_append (experimental_box, GTK_WIDGET(gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
gtk_box_append (experimental_box, GTK_WIDGET(gtk_label_new ("\n\n")));
GtkExpander *hello = GTK_EXPANDER (gtk_expander_new ("hello !"));
gtk_expander_set_expanded (GTK_EXPANDER (hello), TRUE);
gtk_widget_set_margin_start (GTK_WIDGET (hello), 0);
// g_signal_connect(hello, "activate", G_CALLBACK(on_tree_expander_toggled), hello);
gtk_box_append (experimental_box, GTK_WIDGET (hello));
GtkExpander *it_s_me = GTK_EXPANDER (gtk_expander_new ("it's me !"));
gtk_expander_set_expanded (GTK_EXPANDER (it_s_me), FALSE);
gtk_widget_set_margin_start(GTK_WIDGET (it_s_me), 20);
gtk_box_append (experimental_box, GTK_WIDGET (it_s_me));
gtk_box_append (experimental_box, GTK_WIDGET(gtk_label_new ("\n\n")));
return experimental_box;
}