aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-corba-shortcuts.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-10-03 02:33:34 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-03 02:33:34 +0800
commit11c665c9250652c340c4f9636390f7cdbe1e7565 (patch)
tree3e449e23b7cde1a827a03d5c526af78c398eaeda /shell/e-corba-shortcuts.c
parentdf580510c9788caa00731e6bbd227388b91f4695 (diff)
downloadgsoc2013-evolution-11c665c9250652c340c4f9636390f7cdbe1e7565.tar.gz
gsoc2013-evolution-11c665c9250652c340c4f9636390f7cdbe1e7565.tar.zst
gsoc2013-evolution-11c665c9250652c340c4f9636390f7cdbe1e7565.zip
Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'.
* e-shell-view.c (e_shell_view_construct): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * mail-account-gui.c (launch_signature_editor): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * e-msg-composer.c (setup_ui): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * gui/dialogs/comp-editor.c (setup_widgets): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. svn path=/trunk/; revision=13306
Diffstat (limited to 'shell/e-corba-shortcuts.c')
-rw-r--r--shell/e-corba-shortcuts.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/e-corba-shortcuts.c b/shell/e-corba-shortcuts.c
index 076b49d796..6a583d3b00 100644
--- a/shell/e-corba-shortcuts.c
+++ b/shell/e-corba-shortcuts.c
@@ -179,6 +179,12 @@ impl_addGroup (PortableServer_Servant servant,
corba_shortcuts = E_CORBA_SHORTCUTS (bonobo_object_from_servant (servant));
priv = corba_shortcuts->priv;
+ if (position == 0) {
+ CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
+ ex_GNOME_Evolution_Shortcuts_InvalidPosition, NULL);
+ return;
+ }
+
e_shortcuts_add_group (priv->shortcuts, position, name);
}
@@ -193,6 +199,12 @@ impl_removeGroup (PortableServer_Servant servant,
corba_shortcuts = E_CORBA_SHORTCUTS (bonobo_object_from_servant (servant));
priv = corba_shortcuts->priv;
+ if (group_num == 0) {
+ CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
+ ex_GNOME_Evolution_Shortcuts_CannotRemove, NULL);
+ return;
+ }
+
e_shortcuts_remove_group (priv->shortcuts, group_num);
}