* Evolution-Shell.idl: add "cancel" to FolderSelectionListener. * evolution-shell-client.c (impl_FolderSelectionListener_cancel): Implement cancel (set *uri and *physical_uri to NULL). (evolution_shell_client_user_select_folder): document %NULL uri and physical_uri return values. * e-shell.c (folder_selection_dialog_clicked_cb): If the user clicked "Cancel" or used the wm to close the dialog, call _cancel instead of _selected. svn path=/trunk/; revision=3831
37 lines
804 B
Plaintext
37 lines
804 B
Plaintext
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* Interface for the Evolution shell.
|
|
*
|
|
* Authors:
|
|
* Ettore Perazzoli <ettore@helixcode.com>
|
|
*
|
|
* Copyright (C) 2000 Helix Code, Inc.
|
|
*/
|
|
|
|
#include <Bonobo.idl>
|
|
|
|
module Evolution {
|
|
interface ShellComponent;
|
|
|
|
interface FolderSelectionListener;
|
|
|
|
interface Shell : Bonobo::Unknown {
|
|
exception NotFound {};
|
|
exception Busy {};
|
|
|
|
ShellComponent get_component_for_type (in string type)
|
|
raises (NotFound);
|
|
|
|
/* FIXME: Parent "transient_for" window. */
|
|
void user_select_folder (in FolderSelectionListener listener,
|
|
in string title,
|
|
in string default_folder)
|
|
raises (Busy);
|
|
};
|
|
|
|
interface FolderSelectionListener {
|
|
void selected (in string uri, in string physical_uri);
|
|
void cancel ();
|
|
};
|
|
};
|