From 9bd1641646ba98139dcd1fac959165c871e0f979 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 24 Jan 2011 13:30:38 +0100 Subject: Various critical warnings about comp-editor-pages and date edit --- e-util/e-dialog-widgets.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'e-util/e-dialog-widgets.c') diff --git a/e-util/e-dialog-widgets.c b/e-util/e-dialog-widgets.c index a847960eb2..87821acd71 100644 --- a/e-util/e-dialog-widgets.c +++ b/e-util/e-dialog-widgets.c @@ -161,3 +161,25 @@ e_dialog_combo_box_get (GtkWidget *widget, const gint *value_map) } return i; } + +/** + * e_dialog_append_list_store_text: + * @list_store: A #GtkListStore + * @text_column: A string column ID, where to write @text_value + * @text_value: A string to be added to the @list_store + **/ +void +e_dialog_append_list_store_text (GtkTreeModel *list_store, gint text_column, const gchar *text_value) +{ + GtkTreeIter iter; + GtkListStore *store; + + g_return_if_fail (list_store != NULL); + g_return_if_fail (GTK_IS_LIST_STORE (list_store)); + g_return_if_fail (text_column >= 0); + g_return_if_fail (text_value != NULL); + + store = GTK_LIST_STORE (list_store); + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, text_column, text_value, -1); +} -- cgit v1.2.3