From df9b3d5711cbeff7857144aeff80ab1bce675559 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 4 Jan 2008 11:40:50 +0000 Subject: ** Fix for bug #504480 2008-01-04 Matthew Barnes ** Fix for bug #504480 * e-task-bar.c: (e_task_bar_init): Increases the height of the ETaskBar to eliminate the constant resizing. svn path=/trunk/; revision=34758 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-task-bar.c | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index c880937751..9372303125 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2008-01-04 Matthew Barnes + + ** Fix for bug #504480 + + * e-task-bar.c: (e_task_bar_init): Increases the height + of the ETaskBar to eliminate the constant resizing. + 2007-12-14 Milan Crha ** Part of fix for bug #211353 diff --git a/widgets/misc/e-task-bar.c b/widgets/misc/e-task-bar.c index ff18cf7bdb..a03b58c2fa 100644 --- a/widgets/misc/e-task-bar.c +++ b/widgets/misc/e-task-bar.c @@ -26,6 +26,7 @@ #include "e-task-bar.h" +#include #include #include @@ -94,6 +95,7 @@ static void e_task_bar_init (ETaskBar *task_bar) { GtkWidget *label, *hbox; + gint height; task_bar->priv = g_new (ETaskBarPrivate, 1); @@ -108,6 +110,12 @@ e_task_bar_init (ETaskBar *task_bar) hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (task_bar), hbox); task_bar->priv->hbox = GTK_HBOX (hbox); + + /* Make the task bar large enough to accomodate a small icon. + * XXX The "* 2" is a fudge factor to allow for some padding. + * The true value is probably buried in a style property. */ + gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &height); + gtk_widget_set_size_request (GTK_WIDGET (task_bar), -1, height * 2); } -- cgit