Re: Question of GtkMenuFactory



On Fri, 2003-03-07 at 05:14, Ana Gutierrez Pascual wrote:
> Hi,
> I've compiled the example GtkMenuFactory of the tutorial GTK 1.2, and
> I've obtain two errors, I want to know if anybody can help me.
> 
> --------------------------------------------------------------------
> menufactory.c: In function `get_main_menu':
> menufactory.c:49: warning: implicit declaration of function
> `gtk_window_add_accelerator_table'
> /tmp/cc9OOlUT.o: In function `get_main_menu':
> /home/ana/menus/menufactory.c:49: undefined reference to
> `gtk_window_add_accelerator_table'
> collect2: ld returned 1 exit status
> make: *** [menufactory] Error 1
> ----------------------------------------------------------------
> 
> and if I erase the instruction of the line 49
> 
> //gtk_window_add_accelerator_table(GTK_WINDOW(window),
> subfactory->table); //subfactory->table
> 
> I can execute the program but the first message I've obtain is:
> 
> Gtk-WARNING **: gtk_menu_factory_new(): GtkMenuFactory is deprecated and
> will shortly vanish
> 
> Gtk-WARNING **: gtk_menu_factory_new(): GtkMenuFactory is deprecated and
> will shortly vanish
> 
> And after that, the program goes well.
> Any suggestions?
> 
> thanks in advance,

Don't use GtkMenuFactory, it is deprecated and will shortly vanish :-)

GtkItemFactory is the current menu creation system in GTK+... there
is an example of it's usage in gtk-demo.

Regards,
                                           Owen





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