* gui/component/addressbook-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/calendar-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/tasks-component.c (impl_createControls): Pass a label for the status bar control for now. * mail-component.c (impl_createControls): Pass a label for the status bar control for now. * e-shell.c (struct _EShellPrivate): Remove member activity_handler. (setup_activity_interface): Remove. (e_shell_init): Don't call. (create_window): Don't attach the task bar to the activity handler. * e-shell-window.c (struct _ComponentView): New member statusbar_widget. (struct _EShellWindowPrivate): Remove member task_bar. (init_view): Get the status bar control from createControls and put it in the ComponentView struct. (setup_task_bar): New. (setup_statusbar_notebook): New. (switch_view): Switch the statusbar notebook too. (impl_dispose): Add missing GTK_OBJECT() cast. (e_shell_window_peek_task_bar): Remove. * Evolution-Component.idl (Component::createControls): New out arg "statusbar_control"; this way components can provide their own status bar. * e-activity-handler.c, e-activity-handler.h: Turn into a plain GObject; translate all the CORBA methods into plain C methods. * Makefile.am: Move e-activity-handler to libeshell instead of it being in the shell. svn path=/trunk/; revision=23555
85 lines
2.2 KiB
Plaintext
85 lines
2.2 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* Interface for the Evolution components.
|
|
*
|
|
* Authors:
|
|
* Ettore Perazzoli <ettore@ximian.com>
|
|
*
|
|
* Copyright (C) 2003 Ximian, Inc.
|
|
*/
|
|
|
|
#include <Bonobo.idl>
|
|
|
|
module GNOME {
|
|
module Evolution {
|
|
|
|
/* A type of item that the component can create when asked by the user,
|
|
e.g. a mail message or an appointment. */
|
|
struct CreatableItemType {
|
|
string id;
|
|
string description;
|
|
string menuDescription;
|
|
string tooltip;
|
|
char menuShortcut;
|
|
string iconName;
|
|
};
|
|
typedef sequence <CreatableItemType> CreatableItemTypeList;
|
|
|
|
interface Component : Bonobo::Unknown {
|
|
exception Failed {};
|
|
exception UnknownType {};
|
|
|
|
|
|
/*** Upgrade path. ***/
|
|
|
|
boolean upgradeFromVersion (in short major, in short minor, in short revision);
|
|
|
|
|
|
/*** Basic functionality. ***/
|
|
|
|
/* Create the controls for embedding in the shell. */
|
|
void createControls (out Bonobo::Control sidebar_control,
|
|
out Bonobo::Control view_control,
|
|
out Bonobo::Control statusbar_control)
|
|
raises (Failed);
|
|
|
|
/* Request the component to quit. The component will reply
|
|
with an event named "quit", with a boolean value of TRUE if
|
|
the component agrees to quit and FALSE if it doesn't want
|
|
to. */
|
|
void requestQuit (in Bonobo::Listener listener);
|
|
|
|
/* Notify the component of whether the shell is currently
|
|
running in interactive mode or not. (I.e. basically,
|
|
whether there are any Evolution windows on the screen.)
|
|
@new_view_xid is an X Window ID ("None" if @now_interactive
|
|
is FALSE) */
|
|
void interactive (in boolean now_interactive,
|
|
in unsigned long new_view_xid);
|
|
|
|
|
|
/*** The following stuff is needed to build the "New" toolbar
|
|
item as well as the "File -> New" submenu. ***/
|
|
|
|
/* List of creatable items. */
|
|
readonly attribute CreatableItemTypeList userCreatableItems;
|
|
|
|
/* Pop up a new editing dialog for the item with the specified
|
|
@item_type_name. */
|
|
void requestCreateItem (in string item_type_name)
|
|
raises (UnknownType);
|
|
|
|
|
|
/*** URI handling (e.g. for the command-line, "evolution
|
|
mailto:foo@bar.org") ***/
|
|
void handleURI (in string uri);
|
|
|
|
|
|
/*** Send/receive. ***/
|
|
|
|
void sendAndReceive ();
|
|
};
|
|
|
|
};
|
|
};
|