diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-06-13 11:10:39 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2012-10-08 00:12:58 +0200 |
commit | a18b6d6f35bdb808d704a532f4e34b98733bb2e1 (patch) | |
tree | a7e607f7babf4183297c97cb072f59ffe8695478 /src | |
parent | 6a24ede141b5168ba80b928941f00aa5eed871ea (diff) | |
download | logdiag-a18b6d6f35bdb808d704a532f4e34b98733bb2e1.tar.gz logdiag-a18b6d6f35bdb808d704a532f4e34b98733bb2e1.tar.xz logdiag-a18b6d6f35bdb808d704a532f4e34b98733bb2e1.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ld-window-main.c | 8 |
1 files changed, 8 insertions, 0 deletions
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", |