diff options
author | Alberto Garcia <agarcia@igalia.com> | 2009-10-20 15:12:24 +0200 |
---|---|---|
committer | Xabier Rodriguez Calvar <xrcalvar@igalia.com> | 2009-10-21 16:17:01 +0200 |
commit | ea77ef5b385de7db87a4bfb20bc4f37090444b82 (patch) | |
tree | f1f5cbb66c2e7d423736d7a4a069ad4222f6a035 /hildon/hildon-banner.c | |
parent | 10f382a14d24991f0bb6f449f84a37e8ea882ae3 (diff) |
Make sure that the banner has the minimum size needed before showing it
Fixes: NB#120613 (Size of HildonBanner varies depending on previously
opened banners)
Diffstat (limited to 'hildon/hildon-banner.c')
-rw-r--r-- | hildon/hildon-banner.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hildon/hildon-banner.c b/hildon/hildon-banner.c index b3e9aa9..1858e17 100644 --- a/hildon/hildon-banner.c +++ b/hildon/hildon-banner.c @@ -955,10 +955,8 @@ hildon_banner_set_override_flag (HildonBanner *banner) static void reshow_banner (HildonBanner *banner) { - if (GTK_WIDGET_VISIBLE (banner)) { - gint width = gdk_screen_get_width (gtk_widget_get_screen (GTK_WIDGET (banner))); - gtk_window_resize (GTK_WINDOW (banner), width, 1); - } + gint width = gdk_screen_get_width (gtk_widget_get_screen (GTK_WIDGET (banner))); + gtk_window_resize (GTK_WINDOW (banner), width, 1); force_to_wrap_truncated (banner); gtk_widget_show_all (GTK_WIDGET (banner)); } |