diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-03 01:09:41 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-03 01:09:41 +0000 |
commit | 2c5d938ff81480846539d9659dd92ca90cfb9e40 (patch) | |
tree | 023e97fe3fa238c3a2104859ac082b5f52505a43 /demos | |
parent | cc00e1c5ee5c8bb971d00b7bca465f257b989424 (diff) | |
download | gtk+-2c5d938ff81480846539d9659dd92ca90cfb9e40.tar.gz |
CVS is doing its broken pipe thing, this is more of the previous commit
2001-02-02 Havoc Pennington <hp@redhat.com>
Diffstat (limited to 'demos')
-rw-r--r-- | demos/Makefile.am | 1 | ||||
-rw-r--r-- | demos/gtk-demo/Makefile.am | 1 | ||||
-rw-r--r-- | demos/testpixbuf-drawable.c | 6 | ||||
-rw-r--r-- | demos/testpixbuf.c | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/demos/Makefile.am b/demos/Makefile.am index f6c8b4ae93..8a43035b55 100644 --- a/demos/Makefile.am +++ b/demos/Makefile.am @@ -6,6 +6,7 @@ INCLUDES = @STRIP_BEGIN@ \ -I$(top_srcdir) \ -I$(top_builddir)/gdk \ -DGTK_DISABLE_COMPAT_H \ + -DGTK_DISABLE_DEPRECATED \ @GTK_DEBUG_FLAGS@ \ @GTK_XIM_FLAGS@ \ @GTK_LOCALE_FLAGS@ \ diff --git a/demos/gtk-demo/Makefile.am b/demos/gtk-demo/Makefile.am index d3548fb5a7..2327c53e9b 100644 --- a/demos/gtk-demo/Makefile.am +++ b/demos/gtk-demo/Makefile.am @@ -15,6 +15,7 @@ INCLUDES = @STRIP_BEGIN@ \ -I$(top_srcdir) \ -I$(top_builddir)/gdk \ -DGTK_DISABLE_COMPAT_H \ + -DGTK_DISABLE_DEPRECATED \ @GTK_DEBUG_FLAGS@ \ @GTK_XIM_FLAGS@ \ @GTK_LOCALE_FLAGS@ \ diff --git a/demos/testpixbuf-drawable.c b/demos/testpixbuf-drawable.c index 7b3170520c..aee537459b 100644 --- a/demos/testpixbuf-drawable.c +++ b/demos/testpixbuf-drawable.c @@ -98,9 +98,9 @@ int main(int argc, char **argv) gtk_container_add(GTK_CONTAINER(window), vbox); drawing_area = gtk_drawing_area_new(); - gtk_drawing_area_size(GTK_DRAWING_AREA(drawing_area), - gdk_pixbuf_get_width (pixbuf), - gdk_pixbuf_get_height (pixbuf)); + gtk_widget_set_usize(GTK_WIDGET(drawing_area), + gdk_pixbuf_get_width (pixbuf), + gdk_pixbuf_get_height (pixbuf)); gtk_signal_connect(GTK_OBJECT(drawing_area), "expose_event", GTK_SIGNAL_FUNC(expose_cb), NULL); diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c index 8a5d8f2ddc..0af6d368e9 100644 --- a/demos/testpixbuf.c +++ b/demos/testpixbuf.c @@ -393,7 +393,7 @@ new_testrgb_window (GdkPixbuf *pixbuf, gchar *title) drawing_area = gtk_drawing_area_new (); temp_box = gtk_hbox_new (FALSE, 0); - gtk_drawing_area_size (GTK_DRAWING_AREA(drawing_area), w, h); + gtk_widget_set_usize (GTK_WIDGET(drawing_area), w, h); gtk_box_pack_start (GTK_BOX (temp_box), drawing_area, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), temp_box, FALSE, FALSE, 0); |