Re: gmenu.c compile fails with gtk+ 1.1.13



[Lyndon Drake]
>  Here's the output (this is gnome-core-0.99.3.2):
>	... gmenu.c:356: warning: implicit declaration of
>		function `gtk_ctree_set_reorderable' ...
>	gmenu.c:356: Undefined symbol `_gtk_ctree_set_reorderable'
>		referenced from text segment ...
> Removing the call makes things OK.

  If you had read a little farther in the changelog, you would have
seen that it was depreciated and replaced with another function.
I made this patch and it seemed happy, and presumably didn't lose any
functionality.

  The gnome-admin-0.99.1 module has a similar problem.
								--- john
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--- ./gmenu/gmenu.c.OLD	Tue Jan 12 15:45:02 1999
+++ ./gmenu/gmenu.c	Tue Jan 19 21:05:26 1999
@@ -353,7 +353,7 @@
 	gtk_clist_set_row_height(GTK_CLIST(menu_tree_ctree),22);
 	gtk_clist_set_column_width(GTK_CLIST(menu_tree_ctree),0,300);
 	gtk_clist_set_selection_mode(GTK_CLIST(menu_tree_ctree),GTK_SELECTION_SINGLE);
-	gtk_ctree_set_reorderable(GTK_CTREE(menu_tree_ctree),TRUE);
+	gtk_clist_set_reorderable(GTK_CTREE(menu_tree_ctree),TRUE);
 	gtk_ctree_set_drag_compare_func(GTK_CTREE(menu_tree_ctree), tree_move_test_cb);
 	gtk_signal_connect_after(GTK_OBJECT(menu_tree_ctree),"button_release_event", GTK_SIGNAL_FUNC(tree_item_selected),NULL);
 	gtk_signal_connect(GTK_OBJECT(menu_tree_ctree),"tree_move", GTK_SIGNAL_FUNC(tree_moved),"before");



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