[gtk+/gtk-2-90: 129/156] Fix compilation error



commit e8e46e0a45bb152ddd9814815526011c3702042c
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Nov 18 04:14:35 2009 +0100

    Fix compilation error
    
    Substitute gtk_menu_bar_append() deprecated function by
    gtk_menu_shell_append() and cast to correct type

 modules/other/gail/tests/ferret.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/other/gail/tests/ferret.c b/modules/other/gail/tests/ferret.c
index f6de779..ec52683 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),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]