From bd2f1603e5eb577e9b57ecf02701e5bfbfebb9b0 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 5 Aug 2001 04:33:57 +0000 Subject: Add some padding to the label so that the title doesn't move around when * e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct): Add some padding to the label so that the title doesn't move around when you switch between pop-up and non-pop-up folder bar. Also, change all the GtkLabels to be GtkClippedLabels instead. (e_shell_folder_title_bar_set_title): Updated to use EClippedLabels instead of GtkLabels. (e_shell_folder_title_bar_set_folder_bar_label): Likewise. * e-shell.c (impl_Shell__get_displayName): New, implementation for the `displayName' attribute. * Evolution-Shell.idl: Added readonly attribute `displayName' to get the canonicalized X11 display name for the shell. * e-shell.c (e_shell_construct): Ooops. Return `E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER' if the OAF registration fails, not `E_SHELL_CONSTRUCT_RESULT_GENERICERROR'. * e-shortcuts-view.c (rename_group_cb): Get the toplevel from the shortcuts view, not the widget. (rename_shortcut_cb): Likewise. (show_new_group_dialog): Changed to use `e_request_string()'. * evolution-test-component.c: Add the %FALSE value for the `user_creatable' field in the `folder_types' entry. * evolution-shell-client.c: New member `shortcuts_interface' in `EvolutionShellClientPrivate'. (destroy): Unref it if not CORBA_OBJECT_NIL. (init): Init to CORBA_OBJECT_NIL. (query_shell_interface): New helper function to query an interface on the shell and spit out warnings if it fails. (evolution_shell_client_construct): Use it to query the ::Activity interface. Also query the ::Shortcuts interface and set the `shortcuts_interface' member to point to it. * e-shell.c: New member `corba_shortcuts' in `EShellPrivate'. (init): Init to NULL. (setup_shortcuts_interface): Helper function to add the ::Shortcuts CORBA interface to the shell. (e_shell_construct): Call it. * e-corba-shortcuts.c, e-corba-shortcuts.h: New objects implementing the `Evolution::Shortcuts' CORBA interface. * Evolution-Shortcuts.idl: New interface for accessing the shortcuts in the shell. * e-shell.c (e_shell_get_config_db): Moved down. svn path=/trunk/; revision=11689 --- shell/Evolution-Shortcuts.idl | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 shell/Evolution-Shortcuts.idl (limited to 'shell/Evolution-Shortcuts.idl') diff --git a/shell/Evolution-Shortcuts.idl b/shell/Evolution-Shortcuts.idl new file mode 100644 index 0000000000..7ffb55a164 --- /dev/null +++ b/shell/Evolution-Shortcuts.idl @@ -0,0 +1,51 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Interface for the Evolution shortcuts. + * + * Authors: + * Ettore Perazzoli + * + * Copyright (C) 2001 Ximian, Inc. + */ + +#include + +module GNOME { +module Evolution { + + interface Shortcuts : Bonobo::Unknown { + + struct Shortcut { + string uri; + string name; + string type; + }; + typedef sequence ShortcutList; + + struct Group { + string name; + ShortcutList shortcuts; + }; + typedef sequence GroupList; + + exception NotFound {}; + + readonly attribute GroupList groups; // FIXME: Could be non-readonly + + void add (in short group_num, in short position, in Shortcut shortcut) + raises (NotFound); + void remove (in short group_num, in short item_num) + raises (NotFound); + Shortcut get (in short group_num, in short item_num) + raises (NotFound); + + void addGroup (in short position, in string name); + void removeGroup (in short group_num) + raises (NotFound); + Group getGroup (in short group_num) + raises (NotFound); + + }; + +}; +}; -- cgit v1.2.3