]> www.fi.muni.cz Git - evince.git/commitdiff
initial sidebar boilerplate.
authorJonathan Blandford <jrb@redhat.com>
Tue, 21 Dec 2004 22:21:16 +0000 (22:21 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Tue, 21 Dec 2004 22:21:16 +0000 (22:21 +0000)
Tue Dec 21 17:20:16 2004  Jonathan Blandford  <jrb@redhat.com>

        * shell/ev-sidebar.[ch]: initial sidebar boilerplate.

ChangeLog
shell/Makefile.am
shell/ev-window.c

index 6c4ea852a6bcf430c52c25b5f136e5333c726148..def529d8d0082e056df7297d3035720a7609ac21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Dec 21 17:20:16 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * shell/ev-sidebar.[ch]: initial sidebar boilerplate.
+
 Tue Dec 21 16:30:58 2004  Owen Taylor  <otaylor@redhat.com>
 
        * pdf/**: Import of xpdf code from gpdf. 
index 10e4930bc4316a82ef559f13bbaf00390f7dcbbc..876da854cdf218dc718017b9c1afd4256f87d601 100644 (file)
@@ -15,6 +15,8 @@ evince_SOURCES=                               \
        ev-application.h                \
        ev-window.c                     \
        ev-window.h                     \
+       ev-sidebar.c                    \
+       ev-sidebar.h                    \
        main.c                          \
        $(NULL)
 
index 7dad33013e14f65df8643ffae2aeb9c03f0aa6fd..ca753bff08d5f2c13e25bfc6a1107e50e86c77f5 100644 (file)
 #endif
 
 #include "ev-window.h"
+#include "ev-sidebar.h"
 
-#include <glib.h>
-#include <glib-object.h>
 #include <glib/gi18n.h>
-#include <gtk/gtkaboutdialog.h>
-#include <gtk/gtkaccelgroup.h>
-#include <gtk/gtkactiongroup.h>
-#include <gtk/gtkmain.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkstatusbar.h>
-#include <gtk/gtkstock.h>
-#include <gtk/gtktoggleaction.h>
-#include <gtk/gtkuimanager.h>
-#include <gtk/gtkvbox.h>
+#include <gtk/gtk.h>
 #include <libgnomevfs/gnome-vfs-mime-utils.h>
 
 #include <string.h>
@@ -59,6 +49,8 @@ enum {
 
 struct _EvWindowPrivate {
        GtkWidget *main_box;
+       GtkWidget *hpaned;
+       GtkWidget *sidebar;
        GtkWidget *bonobo_widget;
        GtkUIManager *ui_manager;
        GtkWidget *statusbar;
@@ -637,6 +629,7 @@ ev_window_init (EvWindow *ev_window)
        GError *error = NULL;
        GtkWidget *menubar;
        GtkWidget *toolbar;
+       GtkWidget *darea;
 
        ev_window->priv = EV_WINDOW_GET_PRIVATE (ev_window);
 
@@ -684,6 +677,24 @@ ev_window_init (EvWindow *ev_window)
        gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box), toolbar,
                            FALSE, FALSE, 0);
 
+       /* Add the main area */
+       ev_window->priv->hpaned = gtk_hpaned_new ();
+       gtk_widget_show (ev_window->priv->hpaned);
+       gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box), ev_window->priv->hpaned,
+                           TRUE, TRUE, 0);
+
+       ev_window->priv->sidebar = ev_sidebar_new ();
+       gtk_widget_show (ev_window->priv->sidebar);
+       gtk_paned_add1 (GTK_PANED (ev_window->priv->hpaned),
+                       ev_window->priv->sidebar);
+
+       /* Stub widget, for now */
+       darea = gtk_drawing_area_new ();
+       gtk_widget_show (darea);
+       gtk_paned_add2 (GTK_PANED (ev_window->priv->hpaned),
+                       darea);
+
+
        ev_window->priv->statusbar = gtk_statusbar_new ();
        gtk_widget_show (ev_window->priv->statusbar);
        gtk_box_pack_end (GTK_BOX (ev_window->priv->main_box),