widgetbowl: Add some more widget types

This commit is contained in:
Timm Bäder 2017-12-03 19:03:48 +01:00
parent 78832732c4
commit 1ed364a000

View File

@ -36,6 +36,24 @@ create_level_bar (void)
return w;
}
static GtkWidget *
create_spinner (void)
{
GtkWidget *w = gtk_spinner_new ();
gtk_spinner_start (GTK_SPINNER (w));
return w;
}
static GtkWidget *
create_spinbutton (void)
{
GtkWidget *w = gtk_spin_button_new_with_range (0, 10, 1);
return w;
}
static GtkWidget *
create_label (void)
{
@ -55,6 +73,8 @@ static const struct {
{ "Fontbutton", create_font_button },
{ "Levelbar" , create_level_bar },
{ "Label" , create_label },
{ "Spinner" , create_spinner },
{ "Spinbutton", create_spinbutton },
};
static int selected_widget_type = -1;