diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-09-17 23:07:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-09-17 23:07:13 +0800 |
commit | bb7cb1d677117a938ae18d9cae7acc7a56678b6f (patch) | |
tree | b0e4f8354732c23a0ade524fd2036c4ced7275da /shell/test | |
parent | 7d2c28c02c6ecddcf492f385cacbd3d24ac215db (diff) | |
download | gsoc2013-evolution-bb7cb1d677117a938ae18d9cae7acc7a56678b6f.tar.gz gsoc2013-evolution-bb7cb1d677117a938ae18d9cae7acc7a56678b6f.tar.zst gsoc2013-evolution-bb7cb1d677117a938ae18d9cae7acc7a56678b6f.zip |
Massive address book refactoring. Things are mostly working again.
Also, begin documenting the new shell API, and provide a Gtk-Doc framework.
svn path=/branches/kill-bonobo/; revision=36359
Diffstat (limited to 'shell/test')
-rw-r--r-- | shell/test/e-test-shell-view.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/shell/test/e-test-shell-view.c b/shell/test/e-test-shell-view.c index be2a747354..d9d627acbd 100644 --- a/shell/test/e-test-shell-view.c +++ b/shell/test/e-test-shell-view.c @@ -20,6 +20,9 @@ #include "e-test-shell-view.h" +#include <e-shell-content.h> +#include <e-shell-sidebar.h> + #define E_TEST_SHELL_VIEW_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_TEST_SHELL_VIEW, ETestShellViewPrivate)) @@ -34,12 +37,12 @@ static gpointer parent_class; static void test_shell_view_changed (EShellView *shell_view) { - gboolean is_selected; - const gchar *selected; + gboolean is_active; + const gchar *active; - is_selected = e_shell_view_is_selected (shell_view); - selected = is_selected ? "selected" : "not selected"; - g_debug ("%s (%s)", G_STRFUNC, selected); + is_active = e_shell_view_is_active (shell_view); + active = is_active ? "active" : "inactive"; + g_debug ("%s (now %s)", G_STRFUNC, active); } static void @@ -54,8 +57,8 @@ test_shell_view_constructed (GObject *object) G_OBJECT_CLASS (parent_class)->constructed (object); shell_view = E_SHELL_VIEW (object); - shell_content = e_shell_view_get_content (shell_view); - shell_sidebar = e_shell_view_get_sidebar (shell_view); + shell_content = e_shell_view_get_shell_content (shell_view); + shell_sidebar = e_shell_view_get_shell_sidebar (shell_view); widget = gtk_label_new ("Content Widget"); gtk_container_add (GTK_CONTAINER (shell_content), widget); |