Re: Menuitem



Quoted by a cadre of crazed rats
For `mquezada nlxcorp com' 
On Tuesday, 05 August 2003 (10:33):


in gtk+ 1.2.xx and without using the itemfactory, how does one go about
inerting a separator line/item into a menu?


        Just create an empty GtkMenuItem:

        GtkWidget *separator;
        GtkWidget *menu;

        (...)

        separator = gtk_menu_item_new();
        gtk_widget_show(separator);

        gtk_menu_append(GTK_MENU(menu), separator);


-- 

 Leandro Pereira              (oO)           <leandro linuxmag com br>
                              /||\                  www.mindcrisis.tk

        "O medo é uma coisa boa. Se você não tiver medo, pode
           acabar pulando pela janela" --Keith Richards  




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]