From 1c77b5f9269a9841b100664dae61a95e1810da38 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 7 Apr 1998 23:59:25 +0000 Subject: Removed, because that's what a NULL comparison function means. And it Tue Apr 7 19:36:48 1998 Owen Taylor * gutils.c (g_direct_compare): Removed, because that's what a NULL comparison function means. And it wasn't 64 bit safe. Tue Apr 7 19:14:03 1998 Owen Taylor * gdk/gdkpixmap.c: Added maximum field widths to prevent possible '%s' scanf overflows. Replaced scanf("%c") with getc(), Don't interpret /*/ as a full comment. Use g_realloc/g_new. * gtk/gtkwidget.h gtk/gtkprivate.h: Changed all flag tests to check for ((GTK_WIDGET_FLAGS(widget) & FLAG) != 0) instead of (GTK_WIDGET_FLAGS(widget) & FLAG) * gtk/gtkfilesel.c: Use getwd() instead of getcwd() on SunOS, because getcwd() hangs up in a wait4(). (Found by David Monniaux ) - Check device/inode/mtime not just inode/mtime, when caching scanned directories. (From: scottk@ig.utexas.edu (Scott Kempf)) * gdk/gdkpixmap.c: Check for 0 width/height when creating pixmaps. * gtk/*.c: Global substitution of recently introduced "MAX (0," for allocations to "MAX (1,", since creating a backing pixmap with a zero width or height fails. * gdk/gdkwindow.c (gdk_window_new): Don't set all the WM properties for child windows. Don't set the base size, since the value we set will be taken as a minimum size. --- gtk/gtkwindow.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkwindow.c') diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 502cc3cdf2..a177fe0acf 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -1283,6 +1283,7 @@ gtk_window_set_hints (GtkWidget *widget, GtkWidgetAuxInfo *aux_info; gint flags; gint ux, uy; + gint min_width, min_height; g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_WINDOW (widget)); @@ -1303,6 +1304,7 @@ gtk_window_set_hints (GtkWidget *widget, uy = aux_info->y; flags |= GDK_HINT_POS; } + if (!window->allow_shrink) flags |= GDK_HINT_MIN_SIZE; if (!window->allow_grow) -- cgit v1.2.1