diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-24 06:57:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-12-24 08:49:53 +0800 |
commit | 6feca1bf560b3269555d4f0a890cd192fdaa0f00 (patch) | |
tree | dd77b59b48d803fc095b9ea86dc02dbbd152e0db /e-util | |
parent | 9d4348036c46232d3cfc728724be8b1d80e1df78 (diff) | |
download | gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.tar gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.tar.gz gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.tar.bz2 gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.tar.lz gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.tar.xz gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.tar.zst gsoc2013-evolution-6feca1bf560b3269555d4f0a890cd192fdaa0f00.zip |
Remove e_dialog_editable_get().
Silly function. Use gtk_entry_get_text() for a const string or else
gtk_editable_get_chars() for an allocated string.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-dialog-widgets.c | 18 | ||||
-rw-r--r-- | e-util/e-dialog-widgets.h | 2 |
2 files changed, 0 insertions, 20 deletions
diff --git a/e-util/e-dialog-widgets.c b/e-util/e-dialog-widgets.c index 2b0c20d2c4..a8416ecd00 100644 --- a/e-util/e-dialog-widgets.c +++ b/e-util/e-dialog-widgets.c @@ -70,24 +70,6 @@ index_to_value (const gint *value_map, } /** - * e_dialog_editable_get: - * @widget: A #GtkEditable widget. - * - * Queries the string value inside a #GtkEditable-derived widget. - * - * Return value: String value. You should free it when you are done with it. - * This function can return NULL if the string could not be converted from - * GTK+'s encoding into UTF8. - **/ -gchar * -e_dialog_editable_get (GtkWidget *widget) -{ - g_return_val_if_fail (GTK_IS_EDITABLE (widget), NULL); - - return gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1); -} - -/** * e_dialog_combo_box_set: * @widget: A #GtkComboBox. * @value: Enumerated value. diff --git a/e-util/e-dialog-widgets.h b/e-util/e-dialog-widgets.h index 60c30e76d8..65de4d966a 100644 --- a/e-util/e-dialog-widgets.h +++ b/e-util/e-dialog-widgets.h @@ -27,8 +27,6 @@ #include <gtk/gtk.h> -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); |