summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/pixbuf-demo.c2
-rw-r--r--demos/testpixbuf-scale.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/demos/pixbuf-demo.c b/demos/pixbuf-demo.c
index 641bdf3468..11b5e1a15f 100644
--- a/demos/pixbuf-demo.c
+++ b/demos/pixbuf-demo.c
@@ -213,7 +213,7 @@ main (int argc, char **argv)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize (window, back_width, back_height);
- gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, FALSE);
+ gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
diff --git a/demos/testpixbuf-scale.c b/demos/testpixbuf-scale.c
index 68b57a5bca..d2c318d2b2 100644
--- a/demos/testpixbuf-scale.c
+++ b/demos/testpixbuf-scale.c
@@ -1,6 +1,7 @@
#include <gtk/gtk.h>
#include <stdio.h>
+#include <stdlib.h>
GdkInterpType interp_type = GDK_INTERP_BILINEAR;
int overall_alpha = 255;