Re: Using drag and drop to set where data should be saved

Stephen Watson <[email protected]>
Newsgroups gmane.comp.desktop.rox.user
Message-ID <[email protected]>
Jim Lesurf <[email protected]> wrote:

> In article <[email protected]>, Stephen
> Watson <[email protected]> wrote:
> > Jim Lesurf <[email protected]> wrote:
> 
> > > Hi,
> > > 
> > > I would like to be able to have some of my ROX apps use drag-and-drop
> > > to set where generated results are to be saved. 
> [snip]
> 
> > What you want is ROX-CLib http://roscidus.com/desktop/ROX-CLib and the
> > GtkSavebox widget it provides.
> 
> Thanks for pointing this out to me, alas, it seems to be showing my lack
of
> understanding yet again!...
> 
> I've just been trying to use the latest version from the above. Attempts
to
> use it open an xterm that - I assume - is trying to build or compile the
> relevant support. But this fails.
> 
> I get a lost list of 'checking' items. Some seem to be looking for f77
> (i.e. fortran... eh??) and report a 'no'. Then it gets to saying I don't
> have GCC 4... This also says 'no'.
> 
> I then get told that pkg-config is missing and I can get this from the
> development downloads from gtk.org. Then the process fails to continue.

That should have been installed with the gtk-devel packages with your
distro.  If it's working then
  pkg-config --modversion gtk+-2.0
will print your version of GTK.

> Puzzled for various reasons.
> 
> Firstly the apparent reference to fortran. I guess I am totally
> misunderstanding that!

That's just standard autoconf output where it tries to figure out everything
about your development environment.  It may be safely ignored.

> Then, I *do* have GCC. Version 4.3.3 according to gcc -dumpversion.

That bit is optional, and the test seems to get confused by the current
output from gcc --version, so just ignore it for now.

> Then, I've visited gtk.org but can't find what I am supposed to download
or
> install. I've tried using search phrases on that site (and with synaptic)
> like 'pkg-config' and variations on gtk+. But can't identify what I'd
need.
> 
> I think I do have gtk+ on the machine since I think other programs use it.
> So I guess what is missing is some specific aspects of the development
> support. But I am currently puzzled.

Are you installing GTK from source?  If not, which distro are you using as
pkg-config must be a dependency of gtk-devel (and most of the other -devel
packages).  If you are installing from source, please reconsider.  It's not
for the faint of heart, or the inexperienced.

If you have been developing with GTK already, how have you managed to link
it in?

> Also, whilst reporting, can I please check the following? Am I correct to
> think that a user would not need to install ROX-CLib to be able to use
what
> I compiled using it? Or does using it mean the program I write will only
> work OK for ROX users who have (unlike myself at this point! :-) )
> successfully installed ROX-CLib? My worry here is that although I want if
I
> can to make the apps easier to use, I want to avoid other barriers to use.
> At present non-ROX users can exec my AppRun followed by any relevant input
> filenames.

It acts like a shared library by default, so the end users must have it
installed.  You could try linking to the static library, then they wouldn't
need to install ROX-CLib, but I've not tried that to see if it works.

-- 
Stephen Watson     http://www.kerofin.demon.co.uk/
If you read this on a mailing list, send any reply back to the list and not
to me.  Not even CC.
That's wierd, new teeth!

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.