[evolution] Bug 736824 - Status bar Cancel button image cut with certain themes
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 736824 - Status bar Cancel button image cut with certain themes
- Date: Wed, 4 Mar 2015 17:49:20 +0000 (UTC)
commit 8b38c2bc6395c181e2e73f0571861f252ad6f55e
Author: Milan Crha <mcrha redhat com>
Date: Wed Mar 4 17:24:00 2015 +0100
Bug 736824 - Status bar Cancel button image cut with certain themes
shell/e-shell-taskbar.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/shell/e-shell-taskbar.c b/shell/e-shell-taskbar.c
index 0910ea9..53685cf 100644
--- a/shell/e-shell-taskbar.c
+++ b/shell/e-shell-taskbar.c
@@ -364,13 +364,16 @@ shell_taskbar_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
EShellTaskbar *shell_taskbar;
- gint fixed_height;
+ gint fixed_height, minimum_height = 0, natural_height = 0;
+
+ if (GTK_WIDGET_CLASS (e_shell_taskbar_parent_class)->get_preferred_height)
+ GTK_WIDGET_CLASS (e_shell_taskbar_parent_class)->get_preferred_height (widget,
&minimum_height, &natural_height);
shell_taskbar = E_SHELL_TASKBAR (widget);
/* Maximum height allocation sticks. */
fixed_height = shell_taskbar->priv->fixed_height;
- fixed_height = MAX (fixed_height, allocation->height);
+ fixed_height = MAX (fixed_height, MAX (allocation->height, minimum_height));
shell_taskbar->priv->fixed_height = fixed_height;
/* Chain up to parent's size_allocate() method. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]