diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2010-09-17 18:48:02 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2010-09-17 18:53:57 +0200 |
commit | db46ae550527f1a36101f613dafdb15e0b6ac530 (patch) | |
tree | b08db8ba53a77936c70dd17969b8d3ec52153ce6 /src/window-main.c | |
parent | 55c25ae1bd95b9956952a4fe0c9699bb62251079 (diff) | |
download | logdiag-db46ae550527f1a36101f613dafdb15e0b6ac530.tar.gz logdiag-db46ae550527f1a36101f613dafdb15e0b6ac530.tar.xz logdiag-db46ae550527f1a36101f613dafdb15e0b6ac530.zip |
Started implementing the canvas and the document.
Diffstat (limited to 'src/window-main.c')
-rw-r--r-- | src/window-main.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/window-main.c b/src/window-main.c index 43ce429..89714a5 100644 --- a/src/window-main.c +++ b/src/window-main.c @@ -13,8 +13,11 @@ #include "config.h" #include "window-main.h" +#include "canvas.h" +#include "document.h" #include "symbol-library.h" #include "symbol-category.h" +#include "symbol.h" /** @@ -37,11 +40,19 @@ struct _LogdiagWindowMainPrivate GtkWidget *toolbar; LogdiagSymbolLibrary *library; + LogdiagCanvas *canvas; GtkWidget *statusbar; guint statusbar_menu_context_id; }; +struct DocumentData +{ + LogdiagDocument *document; + const gchar *file_name; + /* Canvas viewport settings (for multitabbed) */ +}; + /* Define the type. */ G_DEFINE_TYPE (LogdiagWindowMain, logdiag_window_main, GTK_TYPE_WINDOW); @@ -219,6 +230,11 @@ logdiag_window_main_init (LogdiagWindowMain *self) load_toolbar (self); + /* Canvas. */ + priv->canvas = logdiag_canvas_new (); + gtk_box_pack_start (GTK_BOX (priv->hbox), GTK_WIDGET (priv->canvas), + FALSE, FALSE, 0); + /* TODO: GtkHPaned */ priv->statusbar = gtk_statusbar_new (); @@ -227,7 +243,7 @@ logdiag_window_main_init (LogdiagWindowMain *self) gtk_box_pack_end (GTK_BOX (priv->vbox), priv->statusbar, FALSE, FALSE, 0); - /* Do this on disposal. */ + /* TODO: Do this on disposal. */ /* g_object_unref(ui_manager); */ /* Proceed to showing the window. */ |