summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2009-11-18 04:14:35 +0100
committerJavier Jardón <jjardon@gnome.org>2010-05-03 01:51:19 +0200
commit6389f13ea53ae49c64b92d4ffb96c922ed5f3cb7 (patch)
tree47b0e4f4be2a4fb43dc7c6626fb738c62cb72601 /modules
parenta27da3239e9d87313b6054f23c15b37263fdbdb7 (diff)
downloadgtk+-6389f13ea53ae49c64b92d4ffb96c922ed5f3cb7.tar.gz
Fix compilation error
Substitute gtk_menu_bar_append() deprecated function by gtk_menu_shell_append() and cast to correct type
Diffstat (limited to 'modules')
-rw-r--r--modules/other/gail/tests/ferret.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/other/gail/tests/ferret.c b/modules/other/gail/tests/ferret.c
index bd2f0b04a1..d6754f2630 100644
--- a/modules/other/gail/tests/ferret.c
+++ b/modules/other/gail/tests/ferret.c
@@ -1683,7 +1683,7 @@ _create_window (void)
gtk_box_pack_start (GTK_BOX (vbox1), menubar, FALSE, TRUE, 0);
gtk_widget_show (menubar);
menutop = gtk_menu_item_new_with_label("Menu");
- gtk_menu_bar_append(GTK_MENU_BAR(menubar), menutop);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menutop);
gtk_widget_show (menutop);
menu = gtk_menu_new();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menutop), menu);
@@ -1977,7 +1977,7 @@ _get_name_value(GroupInfo *group, const gchar *label,
name_value->label = GTK_LABEL(gtk_label_new(label));
name_value->string = gtk_label_new (NULL);
name_value->boolean = gtk_check_button_new ();
- gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (name_value->text), 1000);
+ gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (GTK_ENTRY (name_value->text)), 1000);
name_value->button = GTK_BUTTON(gtk_button_new ());
gtk_box_pack_end(GTK_BOX(name_value->column1),