[gtk+] Removed checks in gtksizerequest.c
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Removed checks in gtksizerequest.c
- Date: Wed, 29 Dec 2010 07:51:58 +0000 (UTC)
commit 7fab89d93f51da02b362660bd0073a12f711d056
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Dec 29 16:12:11 2010 +0900
Removed checks in gtksizerequest.c
Checks were in place to ensure that widgets never request taller
or wider than screen size. This was there to test a theory about
scrolled window children functioning correctly with dynamic content
however it breaks GtkViewport children which can generally return a
value taller than screen height intentionally, GtkViewport uses this
value to update the adjustments.
gtk/gtksizerequest.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c
index 41ec259..c5e49e7 100644
--- a/gtk/gtksizerequest.c
+++ b/gtk/gtksizerequest.c
@@ -239,14 +239,6 @@ compute_size_for_orientation (GtkWidget *widget,
&min_size, &nat_size);
pop_recursion_check (widget, orientation);
}
-#ifndef G_DISABLE_CHECKS
- if (gtk_widget_get_screen (widget))
- {
- guint screen_width = gdk_screen_get_width (gtk_widget_get_screen (widget));
- min_size = MIN (min_size, screen_width);
- nat_size = MIN (nat_size, screen_width);
- }
-#endif
}
else
{
@@ -280,14 +272,6 @@ compute_size_for_orientation (GtkWidget *widget,
&min_size, &nat_size);
pop_recursion_check (widget, orientation);
}
-#ifndef G_DISABLE_CHECKS
- if (gtk_widget_get_screen (widget))
- {
- guint screen_height = gdk_screen_get_height (gtk_widget_get_screen (widget));
- min_size = MIN (min_size, screen_height);
- nat_size = MIN (nat_size, screen_height);
- }
-#endif
}
if (min_size > nat_size)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]