GtkNotebook使用

	GtkWidget *notebook = gtk_notebook_new();
	int count;
	gchar *text;

	for (count = 1; count <= 3; count++)
	{
	    GtkWidget *vbox = gtk_box_new(FALSE, 5);
	    text = g_strdup_printf("Page %d", count);
	    
	    buttomID++;
	    buttoms[buttomID]=gtk_button_new_with_label(text);
	    gtk_container_add(GTK_CONTAINER(vbox), buttoms[buttomID]);
	    
	    GtkWidget *label = gtk_label_new(text);
	    
	    gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
	}

你可能感兴趣的:(gtk3)