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-searchbar.c | |
parent | a74acbf19734f875d8b0bd5abf2570c762d5626c (diff) | |
download | gsoc2013-evolution-e17db00f41d85ef48088fd29c2c55f82875682bd.tar.gz 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-searchbar.c')
-rw-r--r-- | shell/e-shell-searchbar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c index 85a75da862..24a4ea096a 100644 --- a/shell/e-shell-searchbar.c +++ b/shell/e-shell-searchbar.c @@ -784,12 +784,14 @@ shell_searchbar_constructed (GObject *object) EShellView *shell_view; EShellWindow *shell_window; EShellSearchbar *searchbar; + GtkSizeGroup *size_group; GtkAction *action; GtkWidget *widget; searchbar = E_SHELL_SEARCHBAR (object); shell_view = e_shell_searchbar_get_shell_view (searchbar); shell_window = e_shell_view_get_shell_window (shell_view); + size_group = e_shell_view_get_size_group (shell_view); g_signal_connect ( shell_view, "clear-search", @@ -855,6 +857,9 @@ shell_searchbar_constructed (GObject *object) widget, "primary-icon-tooltip-text", G_BINDING_SYNC_CREATE); + widget = GTK_WIDGET (searchbar); + gtk_size_group_add_widget (size_group, widget); + e_extensible_load_extensions (E_EXTENSIBLE (object)); /* Chain up to parent's constructed() method. */ |