summaryrefslogtreecommitdiff
path: root/demos/testgtk
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2000-11-09 12:15:40 +0000
committerAlexander Larsson <alexl@src.gnome.org>2000-11-09 12:15:40 +0000
commit8898529c12e0d2d4a5dd4e3b9917a6a1272f4882 (patch)
treea39b6ae3282377218c9f7f85c764fcbef8499222 /demos/testgtk
parent8ced8f9d842a75dda1ed650a83b1465f868d50f6 (diff)
downloadgtk+-8898529c12e0d2d4a5dd4e3b9917a6a1272f4882.tar.gz
Changes to make the new testgtk compile after gtk_menu_append was removed.
2000-11-09 Alexander Larsson <alexl@redhat.com> * demos/testgtk/menus.c: Changes to make the new testgtk compile after gtk_menu_append was removed. * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth, gdk_fb_get_visual, gdk_drawable_impl_fb_class_init): Implement these drawable functions. Now GtkImages work again. * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype. * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype. * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode, gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new); Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE, GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
Diffstat (limited to 'demos/testgtk')
-rw-r--r--demos/testgtk/menus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/testgtk/menus.c b/demos/testgtk/menus.c
index 8c394cd284..03ce18d1bd 100644
--- a/demos/testgtk/menus.c
+++ b/demos/testgtk/menus.c
@@ -30,7 +30,7 @@ create_menu (gint depth, gboolean tearoff)
if (tearoff)
{
menuitem = gtk_tearoff_menu_item_new ();
- gtk_menu_append (GTK_MENU (menu), menuitem);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
}
@@ -41,7 +41,7 @@ create_menu (gint depth, gboolean tearoff)
group = gtk_radio_menu_item_group (GTK_RADIO_MENU_ITEM (menuitem));
if (depth % 2)
gtk_check_menu_item_set_show_toggle (GTK_CHECK_MENU_ITEM (menuitem), TRUE);
- gtk_menu_append (GTK_MENU (menu), menuitem);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
if (i == 3)
gtk_widget_set_sensitive (menuitem, FALSE);
@@ -120,7 +120,7 @@ do_menus (void)
gtk_menu_set_accel_group (GTK_MENU (menu), accel_group);
menuitem = gtk_check_menu_item_new_with_label ("Accelerate Me");
- gtk_menu_append (GTK_MENU (menu), menuitem);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
gtk_widget_add_accelerator (menuitem,
"activate",
@@ -129,7 +129,7 @@ do_menus (void)
0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_SIGNAL_VISIBLE);
menuitem = gtk_check_menu_item_new_with_label ("Accelerator Locked");
- gtk_menu_append (GTK_MENU (menu), menuitem);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
gtk_widget_add_accelerator (menuitem,
"activate",
@@ -138,7 +138,7 @@ do_menus (void)
0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_check_menu_item_new_with_label ("Accelerators Frozen");
- gtk_menu_append (GTK_MENU (menu), menuitem);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
gtk_widget_show (menuitem);
gtk_widget_add_accelerator (menuitem,
"activate",