Re: PB compile sane-0.71

Hugo van der Kooij (hvdkooij@caiw.nl)
Tue, 10 Mar 1998 21:03:45 +0100 (MET)

On Tue, 10 Mar 1998, Fabrice Pollet wrote:

> I use gtk+-0.99.4 and when I want to compile sane-0.71 I have the following
> message :
>
> gtkglue.o: In function `set_tooltip':
> /mnt/jaz1/tmp/sane-0.71/frontend/gtkglue.c:74: undefined reference to
> `gtk_tooltips_set_tips'
> gtkglue.o: In function `panel_destroy':
> /mnt/jaz1/tmp/sane-0.71/frontend/gtkglue.c:811: undefined reference to
> `gtk_tooltips_unref'
> make[1]: *** [xscanimage] Error 1
> make[1]: Leaving directory `/mnt/jaz1/tmp/sane-0.71/frontend'
> make: *** [all-recursive] Error 1

Here is the patch that I did send only some days ago. The changes were
made by Bucher Christian. I just made a patch file out of it.

On Sat, 7 Mar 1998, Bucher Christian wrote:

> Probably my request is already out of date, but maybe itīs saving some
> of your time. There is a new gtk version 0.99.4 with some functions
> changed. Here is the a list of changes I made to make sane-0.71 compile:

<Fixes were here>

The patch:
--------------------B<-----------------------
--- gtkglue.c.olf Tue Jan 27 08:38:36 1998
+++ gtkglue.c Sun Mar 8 00:02:46 1998
@@ -71,7 +71,7 @@
set_tooltip (GtkTooltips *tooltips, GtkWidget *widget, const char *desc)
{
if (desc && desc[0])
- gtk_tooltips_set_tips (tooltips, widget, (char *) desc);
+ gtk_tooltips_set_tip (tooltips, widget, (char *) desc, (char *)
desc);
}

int
@@ -808,7 +808,8 @@
GSGDialogElement *elem;
int i, j;

- gtk_tooltips_unref (dialog->tooltips);
+ gtk_object_unref (GTK_OBJECT (dialog->tooltips));
+ dialog->tooltips = NULL;
gtk_widget_destroy (dialog->main_hbox);

/* free the menu labels of integer/fix-point word-lists: */
--- xcam.c.olf Tue Jan 20 08:39:51 1998
+++ xcam.c Sat Mar 7 23:54:29 1998
@@ -896,7 +896,7 @@

sane_init (NULL, 0);

- gdk_set_debug_level (0);
+ /* gdk_set_debug_level (0); */
gdk_set_show_events (0);
gtk_init (&argc, &argv);

--------------------B<-----------------------

And xscanimage works like a charme this way on my Alpha system with RedHat
5.0 (GNU libc).

Hugo.

+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com