Files
evolution/calendar/gui/dialogs/task-editor.h
JP Rosevear 67336a8d36 Pull up from 0.9 branch
2001-02-08  JP Rosevear  <jpr@ximian.com>

	* gui/event-editor.c: Remove assorted menu/bonobo stuff

	* gui/dialogs/task-editor.c: Remove assorted menu/bonobo stuff
	(task_editor_construct): no longer suck out the glade contents
	into a bonobo win, listen for apply and close signals
	(tedit_apply_event_cb): listen for apply signal and save object
	(tedit_close_event_cb): listen for close signal and prompt to save
	if need be
	(task_editor_focus): new function to bring the dialog to the front

	* gui/dialogs/task-editor.h: new prototype

	* gui/e-meeting-edit.c (schedule_button_clicked_cb): no need to
	update widgets in the event editor since the event editor won't be
	open
	(e_meeting_editor_new): don't need the event editor reference any
	more

	* gui/e-meeting-edit.h: Change prototype

	* gui/e-day-view.c (e_day_view_on_event_right_click): Make
	schedule meeting a new contextual menu item
	(e_day_view_on_schedule_meet): new routine to schedule a meeting
	from the contextual menu

	* gui/e-calendar-table.c (e_calendar_table_open_task): Call
	task_editor_focus

	* gui/event-editor-dialog.glade: Update to be a property box

	* gui/dialogs/task-editor-dialog.glade: Update to be a property
	box

svn path=/trunk/; revision=8115
2001-02-08 20:50:49 +00:00

71 lines
2.0 KiB
C

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Author :
* Damon Chaplin <damon@ximian.com>
*
* Copyright 2000, Helix Code, Inc.
* Copyright 2000, Ximian, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
#ifndef _TASK_EDITOR_H_
#define _TASK_EDITOR_H_
#include <gtk/gtkobject.h>
#include <libgnome/gnome-defs.h>
#include <bonobo.h>
#include <cal-client/cal-client.h>
BEGIN_GNOME_DECLS
#define TASK_EDITOR(obj) GTK_CHECK_CAST (obj, task_editor_get_type (), TaskEditor)
#define TASK_EDITOR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, task_editor_get_type (), TaskEditorClass)
#define IS_TASK_EDITOR(obj) GTK_CHECK_TYPE (obj, task_editor_get_type ())
typedef struct _TaskEditor TaskEditor;
typedef struct _TaskEditorClass TaskEditorClass;
struct _TaskEditor
{
GtkObject object;
/* Private data */
gpointer priv;
};
struct _TaskEditorClass
{
GtkObjectClass parent_class;
};
GtkType task_editor_get_type (void);
TaskEditor* task_editor_construct (TaskEditor *tedit);
TaskEditor* task_editor_new (void);
void task_editor_set_cal_client (TaskEditor *tedit,
CalClient *client);
void task_editor_set_todo_object (TaskEditor *tedit,
CalComponent *comp);
void task_editor_focus (TaskEditor *tedit);
END_GNOME_DECLS
#endif /* _TASK_EDITOR_H_ */