Re: gtk_combo_box_entry_new_text in GTK2 < 2.4
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Kevin DeKorte <kdekorte yahoo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_combo_box_entry_new_text in GTK2 < 2.4
- Date: Tue, 6 Dec 2005 10:06:55 +0100
On Mon, Dec 05, 2005 at 10:22:00PM -0700, Kevin DeKorte wrote:
I've written some code that uses gtk_combo_box_entry_new_text, but I
have some people that are using gtk2 < 2.4 (where
gtk_combo_box_entry_new_text appears). Any idea how I would implement
this functionality in gtk2 2.2?
GtkComboBox itself exist only since 2.4. If you want your
app work with older Gtk+, use GtkOptionMenu.
If you only use the simple text-combo-box interface, it
should be quite easy to write construction, get-active, and
set-active wrapper functions for GtkOptionMenu and
GtkComboBox methods -- so you would use GtkComboBox on
newer Gtk+ and GtkOptionMenu on older without littering the
code with #ifdefs.
Or just use GtkOptionMenu everywhere if you only need the
simple interface. And if you need the advanced GtkComboBox
interface... tell your users to install Gtk 2.6+ or install
it with your app.
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]