On 2013-10-29 17:35Z, narcisse doudieu siewe wrote:
> I don't think so, Gtkbutton can only embed an image and some texte as
> a label
No, you can embed other widgets as well:
#include <gtk/gtk.h>
int main(int argc, char **argv)
{
gtk_init(&argc, &argv);
GtkWidget *win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget *btn = gtk_button_new();
GtkWidget *box = gtk_vbox_new(TRUE, 10);
GtkWidget *top = gtk_button_new_with_label("Top");
GtkWidget *bot = gtk_button_new_with_label("Bottom");
gtk_container_add(GTK_CONTAINER(win), btn);
gtk_container_add(GTK_CONTAINER(btn), box);
gtk_box_pack_start(GTK_BOX(box), top, TRUE, TRUE, 20);
gtk_box_pack_start(GTK_BOX(box), bot, TRUE, TRUE, 20);
gtk_widget_show_all(win);
gtk_main();
return 0;
}