From a18b6d6f35bdb808d704a532f4e34b98733bb2e1 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 13 Jun 2011 11:10:39 +0200
Subject: Start making a replacement for LdLibraryToolbar.
The main advantages are the lack of need to create an icon
for each category there is in the library and faster workflow.
---
src/ld-window-main.c | 8 ++++++++
1 file changed, 8 insertions(+)
(limited to 'src')
diff --git a/src/ld-window-main.c b/src/ld-window-main.c
index 9ca680a..2f2559e 100644
--- a/src/ld-window-main.c
+++ b/src/ld-window-main.c
@@ -27,6 +27,7 @@ struct _LdWindowMainPrivate
GtkWidget *menu;
GtkWidget *toolbar;
GtkWidget *library_toolbar;
+ GtkWidget *library_pane;
LdLibrary *library;
@@ -271,6 +272,8 @@ ld_window_main_init (LdWindowMain *self)
gtk_toolbar_set_orientation (GTK_TOOLBAR (priv->library_toolbar),
GTK_ORIENTATION_VERTICAL);
+ priv->library_pane = ld_library_pane_new ();
+
priv->view = LD_DIAGRAM_VIEW (ld_diagram_view_new ());
priv->scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window),
@@ -290,6 +293,8 @@ ld_window_main_init (LdWindowMain *self)
FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (priv->hbox), priv->scrolled_window,
TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (priv->hbox), priv->library_pane,
+ TRUE, TRUE, 0);
priv->vbox = gtk_vbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (priv->vbox), priv->menu, FALSE, FALSE, 0);
@@ -334,6 +339,9 @@ ld_window_main_init (LdWindowMain *self)
ld_library_toolbar_set_view (LD_LIBRARY_TOOLBAR (priv->library_toolbar),
priv->view);
+ ld_library_pane_set_library (LD_LIBRARY_PANE (priv->library_pane),
+ priv->library);
+
g_signal_connect_after (priv->library_toolbar, "symbol-selected",
G_CALLBACK (on_symbol_selected), self);
g_signal_connect_after (priv->library_toolbar, "symbol-deselected",
--
cgit v1.2.3-70-g09d2