[gdm] Force cell renderer to be a specific height
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm] Force cell renderer to be a specific height
- Date: Thu, 22 Oct 2009 21:40:17 +0000 (UTC)
commit 2b49177235ef243056c30533bd8eec32cfb86b63
Author: Ray Strode <rstrode redhat com>
Date: Thu Oct 22 17:39:27 2009 -0400
Force cell renderer to be a specific height
Before it was growing and shrinking all the time causing,
flicker.
gui/simple-greeter/gdm-cell-renderer-timer.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-cell-renderer-timer.c b/gui/simple-greeter/gdm-cell-renderer-timer.c
index 7918b48..9453d7e 100644
--- a/gui/simple-greeter/gdm-cell-renderer-timer.c
+++ b/gui/simple-greeter/gdm-cell-renderer-timer.c
@@ -108,19 +108,11 @@ gdm_cell_renderer_timer_get_size (GtkCellRenderer *cell,
}
if (width != NULL) {
- if (cell->width >= 0) {
- *width = cell->width;
- } else {
- *width = renderer->priv->value <= G_MINDOUBLE? 0 : 64;
- }
+ *width = cell->xpad * 2 + 42;
}
if (height != NULL) {
- if (cell->height >= 0) {
- *height = cell->height;
- } else {
- *height = renderer->priv->value <= G_MINDOUBLE? 0 : 64;
- }
+ *height = cell->ypad * 2 + 42;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]