From: <sea...@us...> - 2007-01-19 01:57:58
|
Revision: 18159 http://svn.sourceforge.net/gaim/?rev=18159&view=rev Author: seanegan Date: 2007-01-18 17:57:56 -0800 (Thu, 18 Jan 2007) Log Message: ----------- How's this, Mark? Modified Paths: -------------- trunk/gtk/gaimcombobox.c trunk/gtk/gaimcombobox.h Modified: trunk/gtk/gaimcombobox.c =================================================================== --- trunk/gtk/gaimcombobox.c 2007-01-18 20:19:41 UTC (rev 18158) +++ trunk/gtk/gaimcombobox.c 2007-01-19 01:57:56 UTC (rev 18159) @@ -3557,7 +3557,21 @@ gtk_list_store_remove (store, &iter); } +static gchar * +gtk_combo_box_get_active_text (GtkComboBox *combo_box) +{ + GtkTreeIter iter; + gchar *text = NULL; + g_return_val_if_fail (GTK_IS_LIST_STORE (combo_box->priv->model), NULL); + + if (gtk_combo_box_get_active_iter (combo_box, &iter)) + gtk_tree_model_get (combo_box->priv->model, &iter, + 0, &text, -1); + return text; +} + + static gboolean gtk_combo_box_mnemonic_activate (GtkWidget *widget, gboolean group_cycling) Modified: trunk/gtk/gaimcombobox.h =================================================================== --- trunk/gtk/gaimcombobox.h 2007-01-18 20:19:41 UTC (rev 18158) +++ trunk/gtk/gaimcombobox.h 2007-01-19 01:57:56 UTC (rev 18159) @@ -98,6 +98,7 @@ const gchar *text); void gtk_combo_box_remove_text (GtkComboBox *combo_box, gint position); +gchar *gtk_combo_box_get_active_text (GtkComboBox *combo_box); /* programmatic control */ void gtk_combo_box_popup (GtkComboBox *combo_box); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |