Re: Using the combobox
- From: Tristan Van Berkom <tvb gnome org>
- To: Steven Boyls <sboyls tuckerenergy com>
- Cc: GTK App-Dev <gtk-app-devel-list gnome org>
- Subject: Re: Using the combobox
- Date: Mon, 28 Aug 2006 12:41:16 -0400
Steven Boyls wrote:
I'm using Glade to design a front-end for my application. My question is
how to I get the answer from
the combobox? The gtk documentation for the functions that I'm trying to
use tell me that I can only use these
functions if the combobox was created using gtk_combo_box_new_text().
Well, if I'm using Glade to create these
combobox's and not gtk_combo_box_new_text() how do I get the chosen text
from the widget?
Hi Steven,
if you set any items in the combobox from glade (i.e. the "items" property),
then libglade will construct your combobox as if it were created with
gtk_combo_box_new_text(), otherwise libglade will assume you are setting up
your combo box with your own GtkTreeModel and your own GtkCellRenderers.
So in the most practicle case, you can just go ahead and use
gtk_combo_box_get_active_text().
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]