diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-09 11:19:45 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-09 11:21:54 +0800 |
commit | e17db00f41d85ef48088fd29c2c55f82875682bd (patch) | |
tree | c3009f98e42556ab6950102b29a3142ec6221615 /shell/e-shell-sidebar.c | |
parent | a74acbf19734f875d8b0bd5abf2570c762d5626c (diff) | |
download | gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar.gz gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar.bz2 gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar.lz gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar.xz gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar.zst gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.zip |
Add e_shell_view_get_size_group().
Returns a GtkSizeGroup used to keep the search bar and sidebar banner
vertically aligned.
Diffstat (limited to 'shell/e-shell-sidebar.c')
-rw-r--r-- | shell/e-shell-sidebar.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/e-shell-sidebar.c b/shell/e-shell-sidebar.c index 0707008119..a2fa399d77 100644 --- a/shell/e-shell-sidebar.c +++ b/shell/e-shell-sidebar.c @@ -201,14 +201,20 @@ shell_sidebar_constructed (GObject *object) { EShellView *shell_view; EShellSidebar *shell_sidebar; + GtkSizeGroup *size_group; GtkAction *action; + GtkWidget *widget; gchar *label; gchar *icon_name; shell_sidebar = E_SHELL_SIDEBAR (object); shell_view = e_shell_sidebar_get_shell_view (shell_sidebar); + size_group = e_shell_view_get_size_group (shell_view); action = e_shell_view_get_action (shell_view); + widget = shell_sidebar->priv->event_box; + gtk_size_group_add_widget (size_group, widget); + g_object_get (action, "icon-name", &icon_name, NULL); e_shell_sidebar_set_icon_name (shell_sidebar, icon_name); g_free (icon_name); |