aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-24 01:47:35 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-24 01:47:35 +0800
commit92d5ddd3b17ffd521be156b1b8ed472d07889084 (patch)
tree2f269ef1b73b232ee183bd58f64f1dbc3c01f128 /shell/e-shell-view.c
parentf23683363bc57fa208e29ae88810c52799b34096 (diff)
downloadgsoc2013-evolution-92d5ddd3b17ffd521be156b1b8ed472d07889084.tar.gz
gsoc2013-evolution-92d5ddd3b17ffd521be156b1b8ed472d07889084.tar.zst
gsoc2013-evolution-92d5ddd3b17ffd521be156b1b8ed472d07889084.zip
Stylistical changes: move
e_shell_view_{get,set}_current_shortcuts_group_num() at the bottom of the file, add pre-conditions to them, and reindent the header file slightly. svn path=/trunk/; revision=10444
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c66
1 files changed, 36 insertions, 30 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index e929c122ef..fac392e19b 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -738,36 +738,6 @@ setup_statusbar_hints (EShellView *shell_view)
}
-void
-e_shell_view_set_current_shortcuts_group_num (EShellView *shell_view, int group_num)
-{
- /* This function could become static */
- EShellViewPrivate *priv;
- EShortcutsView *shortcuts_view;
-
- priv = shell_view->priv;
-
- shortcuts_view = E_SHORTCUTS_VIEW (priv->shortcut_bar);
-
- e_group_bar_set_current_group_num (E_GROUP_BAR (E_SHORTCUT_BAR (shortcuts_view)), group_num, FALSE);
-}
-
-int
-e_shell_view_get_current_shortcuts_group_num (EShellView *shell_view)
-{
- EShellViewPrivate *priv;
- EShortcutsView *shortcuts_view;
- int group;
-
- priv = shell_view->priv;
-
- shortcuts_view = E_SHORTCUTS_VIEW (priv->shortcut_bar);
-
- group = e_group_bar_get_current_group_num (E_GROUP_BAR (E_SHORTCUT_BAR (shortcuts_view)));
-
- return group;
-}
-
static void
setup_widgets (EShellView *shell_view)
{
@@ -2233,6 +2203,42 @@ e_shell_view_load_settings (EShellView *shell_view,
return TRUE;
}
+
+/* FIXME: This function could become static */
+void
+e_shell_view_set_current_shortcuts_group_num (EShellView *shell_view, int group_num)
+{
+ EShellViewPrivate *priv;
+ EShortcutsView *shortcuts_view;
+
+ g_return_if_fail (shell_view != NULL);
+ g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
+
+ priv = shell_view->priv;
+
+ shortcuts_view = E_SHORTCUTS_VIEW (priv->shortcut_bar);
+
+ e_group_bar_set_current_group_num (E_GROUP_BAR (E_SHORTCUT_BAR (shortcuts_view)), group_num, FALSE);
+}
+
+int
+e_shell_view_get_current_shortcuts_group_num (EShellView *shell_view)
+{
+ EShellViewPrivate *priv;
+ EShortcutsView *shortcuts_view;
+ int group;
+
+ g_return_val_if_fail (shell_view != NULL, -1);
+ g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), -1);
+
+ priv = shell_view->priv;
+
+ shortcuts_view = E_SHORTCUTS_VIEW (priv->shortcut_bar);
+
+ group = e_group_bar_get_current_group_num (E_GROUP_BAR (E_SHORTCUT_BAR (shortcuts_view)));
+
+ return group;
+}
E_MAKE_TYPE (e_shell_view, "EShellView", EShellView, class_init, init, BONOBO_TYPE_WINDOW)