aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-01-24 20:30:38 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:26 +0800
commitfd695a3677d41d145709f69eb2f8335df5178098 (patch)
treec90b60224247981d91221d04136501488433a3f0 /e-util
parent7da22c1960fb1516963429fe9827af2624af7c98 (diff)
downloadgsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.tar
gsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.tar.gz
gsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.tar.bz2
gsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.tar.lz
gsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.tar.xz
gsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.tar.zst
gsoc2013-evolution-fd695a3677d41d145709f69eb2f8335df5178098.zip
Various critical warnings about comp-editor-pages and date edit
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-dialog-widgets.c22
-rw-r--r--e-util/e-dialog-widgets.h4
2 files changed, 26 insertions, 0 deletions
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);
+}
diff --git a/e-util/e-dialog-widgets.h b/e-util/e-dialog-widgets.h
index 6e9f798db7..5b2585c62a 100644
--- a/e-util/e-dialog-widgets.h
+++ b/e-util/e-dialog-widgets.h
@@ -25,10 +25,14 @@
#ifndef E_DIALOG_WIDGETS_H
#define E_DIALOG_WIDGETS_H
+#include <gtk/gtk.h>
+
void e_dialog_editable_set (GtkWidget *widget, const gchar *value);
gchar *e_dialog_editable_get (GtkWidget *widget);
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