GTK+ FAQ
<<< Previous | Development with GTK+: widget specific questions | Next >>>

# How can I define a separation line in a menu?

See the Tutorial for information on how to create menus. However, to create a separation line in a menu, just insert an empty menu item:

    menuitem = gtk_menu_item_new();
    gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
    gtk_widget_show(menuitem);

<<< Previous | Home | Next >>>
How do I catch a combo box change? | Up | How can I right justify a menu, such as Help?