Re: Gnome Desktop Only
Thomas Dodd <[email protected]> Wed, 25 Sep 2002 18:53:14 -0500
| Newsgroups | gmane.linux.redhat.release.limbo |
|---|---|
| Message-ID | <[email protected]> |
Miloslav Trmac wrote: > The *big* one is making GNOME developer-friendly, if it is possible at > all. If you know C, look up how to get a current value of GtkOptionMenu Is there a C interface for QT and/or KDE? I thought it required C++? I can us GTK-- and get a C++ interface to GTK+. I'd use Gtk::OptionMenu methods to get_menu() and remove_menu(), and probably use set_menu() to add the new menu. Following the inheritence for a Gtk::Menu, you find the append(), prepend(), and insert() methods to create the menu to use in set_menu() above. This is in the docs from gtkmm(-devel)-1.2.10 and took me 5 minutes to find. I don't normaly program for X. Now for the Gtk+ C interface, you probably right. But, take a look at other X11 C interfaces. There are just about as bad, one of the reasons I don't programm for X. > GTK+, libgnomeui etc. are excellent C libraries and I also poke > at object internals when writing in C, but at the scale of the > GNOME libraries, this means that in order to be able to write > a good application you have to spent an enormous (comparatively > to the size of the program) amount of time understanding the libraries. For C, the interface is similar, just uses the typical X11 object style. Lots of info, crossreferenced, in /usr/share/gtk-doc/html/gtk/ -Thomas