aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-01-04 19:40:50 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-01-04 19:40:50 +0800
commitdf9b3d5711cbeff7857144aeff80ab1bce675559 (patch)
tree4c3ab4691eb07546d50eb7885ee52ad2ea64bea2 /widgets
parent036169949ca80b44f978be2847ab050a1ba94ddb (diff)
downloadgsoc2013-evolution-df9b3d5711cbeff7857144aeff80ab1bce675559.tar.gz
gsoc2013-evolution-df9b3d5711cbeff7857144aeff80ab1bce675559.tar.zst
gsoc2013-evolution-df9b3d5711cbeff7857144aeff80ab1bce675559.zip
** Fix for bug #504480
2008-01-04 Matthew Barnes <mbarnes@redhat.com> ** 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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-task-bar.c8
2 files changed, 15 insertions, 0 deletions
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 <mbarnes@redhat.com>
+
+ ** 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 <mcrha@redhat.com>
** 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 <gtk/gtkiconfactory.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkmisc.h>
@@ -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);
}