Re: Question of GtkMenuFactory
- From: Owen Taylor <otaylor redhat com>
- To: Ana Gutierrez Pascual <al004180 anubis uji es>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: Question of GtkMenuFactory
- Date: 10 Mar 2003 09:48:10 -0500
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]