From eb240691223ac8a2fedcce1445db95a4fd35fb64 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 23 Dec 2011 18:18:46 -0500 Subject: Remove e_dialog_append_list_store_text(). Silly function. Do it manually or use a GtkComboBoxText. --- e-util/e-dialog-widgets.c | 22 ---------------------- e-util/e-dialog-widgets.h | 2 -- 2 files changed, 24 deletions(-) (limited to 'e-util') diff --git a/e-util/e-dialog-widgets.c b/e-util/e-dialog-widgets.c index a8416ecd00..2793141da0 100644 --- a/e-util/e-dialog-widgets.c +++ b/e-util/e-dialog-widgets.c @@ -134,25 +134,3 @@ e_dialog_combo_box_get (GtkWidget *widget, 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 (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); -} diff --git a/e-util/e-dialog-widgets.h b/e-util/e-dialog-widgets.h index 65de4d966a..5b3f650ed2 100644 --- a/e-util/e-dialog-widgets.h +++ b/e-util/e-dialog-widgets.h @@ -30,6 +30,4 @@ void e_dialog_combo_box_set (GtkWidget *widget, gint value, const gint *value_map); gint e_dialog_combo_box_get (GtkWidget *widget, const gint *value_map); -void e_dialog_append_list_store_text (GtkTreeModel *list_store, gint text_column, const gchar *text_value); - #endif -- cgit