aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-12-24 06:05:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-12-24 08:49:52 +0800
commit9d4348036c46232d3cfc728724be8b1d80e1df78 (patch)
treeb6957157dc736399d423c8d890abfe4438cea404 /calendar/gui/dialogs/task-page.c
parentcfa04689fcf52f407bdbf6a5af8078613ead874b (diff)
downloadgsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar
gsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar.gz
gsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar.bz2
gsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar.lz
gsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar.xz
gsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar.zst
gsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.zip
Remove e_dialog_editable_set().
Silly function. Use gtk_entry_set_text().
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index a533505a05..493af6f28c 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -201,7 +201,7 @@ clear_widgets (TaskPage *tpage)
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (tpage));
/* Summary, description */
- e_dialog_editable_set (priv->summary, NULL);
+ gtk_entry_set_text (GTK_ENTRY (priv->summary), "");
gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->description)), "", 0);
e_buffer_tagger_update_tags (GTK_TEXT_VIEW (priv->description));
@@ -213,7 +213,7 @@ clear_widgets (TaskPage *tpage)
comp_editor_set_classification (editor, E_CAL_COMPONENT_CLASS_PUBLIC);
/* Categories */
- e_dialog_editable_set (priv->categories, NULL);
+ gtk_entry_set_text (GTK_ENTRY (priv->categories), "");
}
static gboolean
@@ -521,7 +521,10 @@ task_page_fill_widgets (CompEditorPage *page,
/* Summary, description(s) */
e_cal_component_get_summary (comp, &text);
- e_dialog_editable_set (priv->summary, text.value);
+ if (text.value != NULL)
+ gtk_entry_set_text (GTK_ENTRY (priv->summary), text.value);
+ else
+ gtk_entry_set_text (GTK_ENTRY (priv->summary), "");
e_cal_component_get_description_list (comp, &l);
if (l && l->data) {
@@ -614,7 +617,10 @@ task_page_fill_widgets (CompEditorPage *page,
/* Categories */
e_cal_component_get_categories (comp, &categories);
- e_dialog_editable_set (priv->categories, categories);
+ if (categories != NULL)
+ gtk_entry_set_text (GTK_ENTRY (priv->categories), categories);
+ else
+ gtk_entry_set_text (GTK_ENTRY (priv->categories), "");
/* Source */
e_source_combo_box_set_active (