[gtk+/wip/cssvalue: 148/164] container: Only resize if a resize is needed
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 148/164] container: Only resize if a resize is needed
- Date: Wed, 11 Apr 2012 14:52:21 +0000 (UTC)
commit 88418e76b0d29f4b0e195230e8a9b65015ea43b6
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 9 21:15:06 2012 +0200
container: Only resize if a resize is needed
This is helpful now that we can get into this function from just style
invalidations and not only from queue_resize() calls.
gtk/gtkcontainer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 2bba490..a9a1643 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1769,7 +1769,8 @@ gtk_container_check_resize (GtkContainer *container)
{
g_return_if_fail (GTK_IS_CONTAINER (container));
- g_signal_emit (container, container_signals[CHECK_RESIZE], 0);
+ if (_gtk_widget_get_alloc_needed (GTK_WIDGET (container)))
+ g_signal_emit (container, container_signals[CHECK_RESIZE], 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]