summaryrefslogtreecommitdiff
path: root/examples/menu
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-12-12 00:16:14 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-12-12 00:16:14 +0000
commitc819c45ea813d3375a41e0605a9d0c3972286a5c (patch)
tree25872de45e41a30c2db037b49d50fdd9a510f893 /examples/menu
parent5d8f0a69c4ea52cccd471791660527c0ae7d476c (diff)
downloadgtk+-c819c45ea813d3375a41e0605a9d0c3972286a5c.tar.gz
Remove deprecated functions in examples. (#129074, Olexiy Avramchenko)
Fri Dec 12 01:13:34 2003 Matthias Clasen <maclas@gmx.de> * examples/gtkdial/gtkdial.c: * examples/menu/menu.c: * examples/scribble-xinput/scribble-xinput.c: * examples/progressbar/progressbar.c: * docs/tutorial/gtk-tut.sgml: Remove deprecated functions in examples. (#129074, Olexiy Avramchenko) * examples/calendar/Makefile: * examples/rangewidgets/Makefile: * examples/menu/Makefile: Allow deprecated functions in examples which use deprecated widgets.
Diffstat (limited to 'examples/menu')
-rw-r--r--examples/menu/Makefile3
-rw-r--r--examples/menu/menu.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/menu/Makefile b/examples/menu/Makefile
index 290ac17922..1ce3218d8e 100644
--- a/examples/menu/Makefile
+++ b/examples/menu/Makefile
@@ -4,8 +4,7 @@ CC = gcc
CFLAGS = -Wall \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
+ -DGDK_PIXBUF_DISABLE_DEPRECATED
all: menu itemfactory
diff --git a/examples/menu/menu.c b/examples/menu/menu.c
index 970c2fe61e..94271df94d 100644
--- a/examples/menu/menu.c
+++ b/examples/menu/menu.c
@@ -69,7 +69,7 @@ int main( int argc,
/* Now we specify that we want our newly created "menu" to be the menu
* for the "root menu" */
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (root_menu), h);
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (root_menu), menu);
/* A vbox to put a menu and a button in: */
vbox = gtk_vbox_new (FALSE, 0);