aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-editor.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2001-01-03 02:16:45 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-01-03 02:16:45 +0800
commit59b1e25cfdb4253a94df4392d1e2fb69a6901515 (patch)
tree4bf75e92066b0762ac1653320bc98ca61af1657f /calendar/gui/dialogs/task-editor.c
parent59c0cc7f80c6e5ff909a296fd1dbdaa8af66cda6 (diff)
downloadgsoc2013-evolution-59b1e25cfdb4253a94df4392d1e2fb69a6901515.tar.gz
gsoc2013-evolution-59b1e25cfdb4253a94df4392d1e2fb69a6901515.tar.zst
gsoc2013-evolution-59b1e25cfdb4253a94df4392d1e2fb69a6901515.zip
Do not compose strings so that they can be localized correctly. Also,
2001-01-02 Federico Mena Quintero <federico@helixcode.com> * gui/dialogs/delete-comp.c (delete_component_dialog): Do not compose strings so that they can be localized correctly. Also, convert from UTF8 into the font's encoding. Fixes bug #1030. * gui/e-calendar-table.c (delete_component): Pass the widget argument to delete_component_dialog(). * gui/e-day-view.c (e_day_view_on_delete_appointment): Likewise. * gui/e-week-view.c (e_week_view_on_delete_appointment): Likewise. * gui/event-editor.c (file_delete_cb): Likewise. * gui/calendar-commands.c: Use BONOBO_UI_VERB() instead of BONOBO_UI_UNSAFE_VERB(). Guess what, all of our handler signatures were wrong. * gui/event-editor.c: Likewise. * gui/dialogs/task-editor.c: Likewise. * gui/goto-dialog.glade: Added some spacing between the month/year widgets and the calendar widget. svn path=/trunk/; revision=7211
Diffstat (limited to 'calendar/gui/dialogs/task-editor.c')
-rw-r--r--calendar/gui/dialogs/task-editor.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 6cf73a3a72..ceac6c933d 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -138,12 +138,12 @@ static void set_title_from_comp (TaskEditor *tedit, CalComponent *comp);
static void clear_widgets (TaskEditor *tedit);
static void fill_widgets (TaskEditor *tedit);
-static void file_save_cb (GtkWidget *widget, gpointer data);
-static void file_save_and_close_cb (GtkWidget *widget, gpointer data);
-static void file_delete_cb (GtkWidget *widget, gpointer data);
-static void file_close_cb (GtkWidget *widget, gpointer data);
+static void file_save_cb (BonoboUIComponent *uic, gpointer data, const char *path);
+static void file_save_and_close_cb (BonoboUIComponent *uic, gpointer data, const char *path);
+static void file_delete_cb (BonoboUIComponent *uic, gpointer data, const char *path);
+static void file_close_cb (BonoboUIComponent *uic, gpointer data, const char *path);
-static void debug_xml_cb (GtkWidget *widget, gpointer data);
+static void debug_xml_cb (BonoboUIComponent *uic, gpointer data, const char *path);
static void save_todo_object (TaskEditor *tedit);
static void dialog_to_comp_object (TaskEditor *tedit);
@@ -220,12 +220,12 @@ task_editor_new (void)
static BonoboUIVerb verbs [] = {
- BONOBO_UI_UNSAFE_VERB ("FileSave", file_save_cb),
- BONOBO_UI_UNSAFE_VERB ("FileDelete", file_delete_cb),
- BONOBO_UI_UNSAFE_VERB ("FileClose", file_close_cb),
- BONOBO_UI_UNSAFE_VERB ("FileSaveAndClose", file_save_and_close_cb),
-
- BONOBO_UI_UNSAFE_VERB ("DebugDumpXml", debug_xml_cb),
+ BONOBO_UI_VERB ("FileSave", file_save_cb),
+ BONOBO_UI_VERB ("FileDelete", file_delete_cb),
+ BONOBO_UI_VERB ("FileClose", file_close_cb),
+ BONOBO_UI_VERB ("FileSaveAndClose", file_save_and_close_cb),
+
+ BONOBO_UI_VERB ("DebugDumpXml", debug_xml_cb),
BONOBO_UI_VERB_END
};
@@ -999,7 +999,7 @@ dialog_to_comp_object (TaskEditor *tedit)
}
static void
-debug_xml_cb (GtkWidget *widget, gpointer data)
+debug_xml_cb (BonoboUIComponent *uic, gpointer data, const char *path)
{
TaskEditor *tedit = TASK_EDITOR (data);
TaskEditorPrivate *priv = tedit->priv;
@@ -1009,7 +1009,7 @@ debug_xml_cb (GtkWidget *widget, gpointer data)
/* File/Save callback */
static void
-file_save_cb (GtkWidget *widget, gpointer data)
+file_save_cb (BonoboUIComponent *uic, gpointer data, const char *path)
{
TaskEditor *tedit;
@@ -1019,7 +1019,7 @@ file_save_cb (GtkWidget *widget, gpointer data)
/* File/Save and Close callback */
static void
-file_save_and_close_cb (GtkWidget *widget, gpointer data)
+file_save_and_close_cb (BonoboUIComponent *uic, gpointer data, const char *path)
{
TaskEditor *tedit;
@@ -1030,7 +1030,7 @@ file_save_and_close_cb (GtkWidget *widget, gpointer data)
/* File/Delete callback */
static void
-file_delete_cb (GtkWidget *widget, gpointer data)
+file_delete_cb (BonoboUIComponent *uic, gpointer data, const char *path)
{
TaskEditor *tedit;
TaskEditorPrivate *priv;
@@ -1056,7 +1056,7 @@ file_delete_cb (GtkWidget *widget, gpointer data)
/* File/Close callback */
static void
-file_close_cb (GtkWidget *widget, gpointer data)
+file_close_cb (BonoboUIComponent *uic, gpointer data, const char *path)
{
TaskEditor *tedit;