aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
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
parentcfa04689fcf52f407bdbf6a5af8078613ead874b (diff)
downloadgsoc2013-evolution-9d4348036c46232d3cfc728724be8b1d80e1df78.tar.gz
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')
-rw-r--r--calendar/gui/dialogs/alarm-dialog.c10
-rw-r--r--calendar/gui/dialogs/event-page.c21
-rw-r--r--calendar/gui/dialogs/memo-page.c14
-rw-r--r--calendar/gui/dialogs/task-details-page.c4
-rw-r--r--calendar/gui/dialogs/task-page.c14
5 files changed, 43 insertions, 20 deletions
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index 1c76c79d83..b5aaed5093 100644
--- a/calendar/gui/dialogs/alarm-dialog.c
+++ b/calendar/gui/dialogs/alarm-dialog.c
@@ -32,7 +32,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <libedataserver/e-time-utils.h>
-#include "e-util/e-dialog-widgets.h"
#include <libecal/e-cal-util.h>
#include <libecal/e-cal-time-util.h>
#include "e-util/e-util.h"
@@ -553,6 +552,7 @@ alarm_to_palarm_widgets (Dialog *dialog,
ECalComponentAlarm *alarm)
{
ECalComponentText description;
+ GtkEntry *entry;
const gchar *url;
icalattach *attach;
@@ -563,10 +563,12 @@ alarm_to_palarm_widgets (Dialog *dialog,
if (!(url && *url))
return;
- e_dialog_editable_set (dialog->palarm_program, url);
- e_cal_component_alarm_get_description (alarm, &description);
+ entry = GTK_ENTRY (dialog->palarm_program);
+ gtk_entry_set_text (entry, url);
- e_dialog_editable_set (dialog->palarm_args, description.value);
+ entry = GTK_ENTRY (dialog->palarm_args);
+ e_cal_component_alarm_get_description (alarm, &description);
+ gtk_entry_set_text (entry, description.value);
}
/* Fills the procedure alarm data with the values from the widgets */
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index b418898509..11524cdf27 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -325,8 +325,8 @@ clear_widgets (EventPage *epage)
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (epage));
/* Summary, description */
- e_dialog_editable_set (priv->summary, NULL);
- e_dialog_editable_set (priv->location, NULL);
+ gtk_entry_set_text (GTK_ENTRY (priv->summary), "");
+ gtk_entry_set_text (GTK_ENTRY (priv->location), "");
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));
@@ -354,7 +354,7 @@ clear_widgets (EventPage *epage)
e_dialog_combo_box_set (priv->alarm_time_combo, ALARM_NONE, priv->alarm_map);
/* Categories */
- e_dialog_editable_set (priv->categories, NULL);
+ gtk_entry_set_text (GTK_ENTRY (priv->categories), "");
}
static gboolean
@@ -1127,11 +1127,17 @@ event_page_fill_widgets (CompEditorPage *page,
comp_editor_copy_new_attendees (priv->comp, comp);
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), "");
priv->old_summary = g_strdup (text.value);
e_cal_component_get_location (comp, &location);
- e_dialog_editable_set (priv->location, location);
+ if (location != NULL)
+ gtk_entry_set_text (GTK_ENTRY (priv->location), location);
+ else
+ gtk_entry_set_text (GTK_ENTRY (priv->location), "");
event_page_load_locations_list (page, comp);
e_cal_component_get_description_list (comp, &l);
@@ -1326,7 +1332,10 @@ event_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 (
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index cf1e879d1d..3b783d343f 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -167,7 +167,7 @@ clear_widgets (MemoPage *mpage)
CompEditor *editor;
/* Summary */
- e_dialog_editable_set (mpage->priv->summary_entry, NULL);
+ gtk_entry_set_text (GTK_ENTRY (mpage->priv->summary_entry), "");
/* Description */
view = GTK_TEXT_VIEW (mpage->priv->memo_content);
@@ -180,7 +180,7 @@ clear_widgets (MemoPage *mpage)
comp_editor_set_classification (editor, E_CAL_COMPONENT_CLASS_PRIVATE);
/* Categories */
- e_dialog_editable_set (mpage->priv->categories, NULL);
+ gtk_entry_set_text (GTK_ENTRY (mpage->priv->categories), "");
}
static void
@@ -279,7 +279,10 @@ memo_page_fill_widgets (CompEditorPage *page,
/* Summary */
e_cal_component_get_summary (comp, &text);
- e_dialog_editable_set (priv->summary_entry, text.value);
+ if (text.value != NULL)
+ gtk_entry_set_text (GTK_ENTRY (priv->summary_entry), text.value);
+ else
+ gtk_entry_set_text (GTK_ENTRY (priv->summary_entry), "");
e_cal_component_get_description_list (comp, &l);
if (l && l->data) {
@@ -312,7 +315,10 @@ memo_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), "");
e_client_get_backend_property_sync (E_CLIENT (client), CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS, &backend_addr, NULL, NULL);
set_subscriber_info_string (mpage, backend_addr);
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c
index de30baca77..71905ceabb 100644
--- a/calendar/gui/dialogs/task-details-page.c
+++ b/calendar/gui/dialogs/task-details-page.c
@@ -140,7 +140,7 @@ clear_widgets (TaskDetailsPage *tdpage)
e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), -1);
/* URL */
- e_dialog_editable_set (priv->url, NULL);
+ gtk_entry_set_text (GTK_ENTRY (priv->url), "");
}
static void
@@ -297,7 +297,7 @@ task_details_page_fill_widgets (CompEditorPage *page,
/* URL */
e_cal_component_get_url (comp, &url);
- e_dialog_editable_set (priv->url, url);
+ gtk_entry_set_text (GTK_ENTRY (priv->url), url ? url : "");
sensitize_widgets (tdpage);
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 (