Mercurial > pidgin
diff src/gtkstatusbox.c @ 10649:3353656c119e
[gaim-migrate @ 12167]
Killed Napster. Some status changes. I may be making some status API changes
CVS : ----------------------------------------------------------------------
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 02 Mar 2005 20:36:52 +0000 |
parents | 868aafbe859b |
children | f02873d475dc |
line wrap: on
line diff
--- a/src/gtkstatusbox.c Wed Mar 02 11:54:08 2005 +0000 +++ b/src/gtkstatusbox.c Wed Mar 02 20:36:52 2005 +0000 @@ -473,3 +473,21 @@ box->typing = g_timeout_add(3000, (GSourceFunc)remove_typing_cb, box); gtk_gaim_status_box_refresh(box); } + +const char *gtk_gaim_status_box_get_active_type(GtkGaimStatusBox *status_box) +{ + GtkTreeIter iter; + char *type; + gtk_combo_box_get_active_iter(GTK_COMBO_BOX(status_box), &iter); + gtk_tree_model_get(GTK_TREE_MODEL(status_box->dropdown_store), &iter, + TYPE_COLUMN, &type, -1); + return type; +} + +const char *gtk_gaim_status_box_get_message(GtkGaimStatusBox *status_box) +{ + if (status_box->imhtml_visible) + return gtk_imhtml_get_markup(GTK_IMHTML(status_box->imhtml)); + else + return NULL; +}