aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-04-24 11:10:30 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-04-24 11:10:30 +0800
commit7c309e43b25b9de136c5329d7fc041baeaf841c6 (patch)
treea97f3dbc1e924cbd1f6e2caa66ebffb337cc1b58 /shell/e-shell-view.c
parent0fe51af01075beb777894bacca9e98aeef3f860a (diff)
downloadgsoc2013-evolution-7c309e43b25b9de136c5329d7fc041baeaf841c6.tar.gz
gsoc2013-evolution-7c309e43b25b9de136c5329d7fc041baeaf841c6.tar.zst
gsoc2013-evolution-7c309e43b25b9de136c5329d7fc041baeaf841c6.zip
+ * widgets/Makefile.am: Added e-paned directory.
+ + * default_user/Makefile.am: new file. + + * default_user/Main_Shortcuts.xml: New file; is used to fill the + shortcut bar's "main shortcuts" pane. + + * default_user/Other_Shortcuts.xml: New file, used to fill the + shortcut bar's "other shortcuts" pane. + + * default_user/Inbox.mbox: New file. This is the first message a + new user will see when they fire up Evolution. Needs work. + + * Makefile.am: added default_user directory. + * configure.in: same. + + * e-paned.c: New file. Makes a GtkPaned with more than two + children. + * e-paned.h: same. + + * Makefile.am: added e-paned.[ch]. + + * e-shell-view.h: Added hpaned and treeview widgets to + EShellView. Added e_shell_view_toggle_shortcut_bar() and + e_shell_view_toggle_treeview(). + + * e-shell-view.c (e_shell_view_setup_shortcut_display): Use EPaned + widget to house our shortcut bar. + (e_shell_view_toggle_shortcut_bar): New function; toggles whether + the shortcut bar is showing. + (e_shell_view_toggle_treeview): Same, for the treeview (NYI). + (e_shell_view_new): Put the notebook view in our EPaned widget. + + * e-shell-view-menu.c (esv_cmd_toggle_shortcut_bar): New function; + toggles whether the shortcut bar is viewed. + (esv_cmd_toggle_treeview): Same, but with the treeview. Added + menuitems in the "view" menu to allow access to the above. + svn path=/trunk/; revision=2575
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c56
1 files changed, 39 insertions, 17 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index e18af8550d..d6f4eeed2b 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -96,20 +96,25 @@ e_shell_view_setup (EShellView *eshell_view)
gtk_window_set_default_size (GTK_WINDOW (eshell_view), 600, 600);
}
+
+
+
static void
e_shell_view_setup_shortcut_display (EShellView *eshell_view)
{
- eshell_view->shortcut_bar = e_shortcut_bar_view_new (eshell_view->eshell->shortcut_bar);
+ eshell_view->shortcut_bar =
+ e_shortcut_bar_view_new (eshell_view->eshell->shortcut_bar);
- eshell_view->shortcut_hpaned = gtk_hpaned_new ();
- gtk_widget_show (eshell_view->shortcut_hpaned);
- gtk_paned_set_position (GTK_PANED (eshell_view->shortcut_hpaned), 100);
+ eshell_view->hpaned = e_paned_new (TRUE);
- gtk_paned_pack1 (GTK_PANED (eshell_view->shortcut_hpaned),
- eshell_view->shortcut_bar, FALSE, FALSE);
- gtk_widget_show (eshell_view->shortcut_bar);
+ e_paned_insert (eshell_view->hpaned, 0,
+ eshell_view->shortcut_bar,
+ 100);
- gnome_app_set_contents (GNOME_APP (eshell_view), eshell_view->shortcut_hpaned);
+ gtk_widget_show_all (eshell_view->hpaned);
+
+ gnome_app_set_contents (GNOME_APP (eshell_view),
+ eshell_view->hpaned);
gtk_signal_connect (
GTK_OBJECT (eshell_view->shortcut_bar), "item_selected",
@@ -221,6 +226,25 @@ get_view (EShellView *eshell_view, EFolder *efolder, Bonobo_UIHandler uih)
return w;
}
+void e_shell_view_toggle_shortcut_bar (EShellView *eshell_view)
+{
+ GtkWidget *shortcut_bar = eshell_view->shortcut_bar;
+ GtkWidget *hpaned = eshell_view->hpaned;
+
+ if (shortcut_bar->parent) {
+ gtk_widget_ref (shortcut_bar);
+ e_paned_remove (hpaned, shortcut_bar);
+ }
+ else
+ e_paned_insert (hpaned, 0, shortcut_bar,
+ 100);
+ gtk_widget_show_all (GTK_WIDGET (hpaned));
+}
+
+void e_shell_view_toggle_treeview (EShellView *eshell_view)
+{
+
+}
void
@@ -322,15 +346,13 @@ e_shell_view_new (EShell *eshell, EFolder *efolder, gboolean show_shortcut_bar)
gtk_widget_show (eshell_view->priv->notebook);
- if (eshell_view->shortcut_displayed){
- gtk_paned_pack2 (
- GTK_PANED (eshell_view->shortcut_hpaned),
- eshell_view->priv->notebook, TRUE, TRUE);
- }
- else {
- gnome_app_set_contents (GNOME_APP (eshell_view),
- eshell_view->priv->notebook);
- }
+ e_paned_insert (E_PANED (eshell_view->hpaned),
+ 1,
+ eshell_view->priv->notebook,
+// gtk_button_new_with_label ("foobar"),
+ 500);
+
+ gtk_widget_show_all (GTK_WIDGET (eshell_view->hpaned));
}
e_shell_view_set_view (eshell_view, efolder);