Scripts for building an interface

2002-10-07 Thread Peter Van Osta

Hi,

I am looking for tools/scripts which would enable me to put a lot of
functions into dialogboxes in a GTK-based interface. I am currently
converting our software from an old Motif-based interface into a
GTK-based interface and one of the jobs to be done is to put a lot of
functions into the menu and to create dialogboxes for setting arguments
for all the C-functions.

As an example I would like to be able to start with int myfunc( int a,
double b, char * c) and buld a dialogbox from this function protototype
in t the C-file into a dialogbox. Additional tools to define the
limits for the arguments would be welcome too.

Best regards,

Peter

http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Scale widget up/down movement vs adjustment value

2002-10-07 Thread Owen Taylor


Thor Harald Johansen [EMAIL PROTECTED] writes:

 I browsed the archive of this mailing list. I found *one* posting about
 the topic at:
 
 http://mail.gnome.org/archives/gtk-list/1999-March/msg00911.html
 
 There were no replies. I hope I'll get more attention than him. I actually
 tried to do the same thing as him. It didn't work. 3 years afterwards!

http://developer.gnome.org/doc/API/2.0/gtk/gtkrange.html#gtk-range-set-inverted

Regards,
Owen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Question about include paths

2002-10-07 Thread Owen Taylor


Carl B. Constantine [EMAIL PROTECTED] writes:

 I'm developing a GTK+ 2 app with Anjuta. For the most part, the glade
 generated files include gnome.h. I have one file where all I really
 want/need is gtk.h. The problem comes with the fact that I have both gtk
 1.2 and gtk 2 installed on my system. So a locate gtk.h comes up thus:
 
 (duckwing@Mallard:src)$ locate gtk.h  
 /usr/share/doc/texmf/help/Catalogue/entries/dvgtk.html
 /usr/share/doc/ebook-dev-ggad/html/cha-gtk.html
 /usr/share/doc/libgtk2.0-doc/gtk/gtk.html
 /usr/share/gimp/1.2/help/C/dialogs/color_selectors/gtk.html
 /usr/share/devhelp/books/gtk-1.2/gtk.html
 /usr/include/gtk-1.2/gtk/gtk.h
 /usr/include/gtk-2.0/gtk/gtk.h
 
 So how should I include gtk.h? should it be:
 
 a) #include gtk/gtk.h
 b) #include gtk-2.0/gtk/gtk.h
 c) #include gtk.h
 
 ?
 
 similarly, gnome.h actually has the first one. should it be changed
 maybe if I want to use gtk2?
 
 Note: I do not have gnome2 installed on this particular system. I do
 have it installed on my laptop though (which is running Gentoo).
 
 any help is appreciated.

You always need to use the compiler flags from:

 GTK+-1.2: gtk-config --cflags
 GTK+-2.0: pkg-config --cflags gtk+-2.0

Once you do that, you can always use gtk/gtk.h. and have it work
appropriately.

See:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html

Regards,
Owen

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: GTK+2.0.6 problem with Freetype

2002-10-07 Thread Owen Taylor


[EMAIL PROTECTED] (Paulo J. Matos) writes:

 Hi all,
 
 After installing atk, pango, glib I'm trying to install gtk+ but
 the problem is that I get an error during configure due to
 freetype. I've already downloaded freetype 2.1.2 and 1.3.1 from
 freetype.sf.net but still same problem. Check:
 
 ...
 checking for freetype-config... /usr/local/bin/freetype-config
 checking for FT_New_Face in -lfreetype... yes
 checking For sufficiently new FreeType (at least 2.0.1)... no
 configure: error: pangoxft Pango backend found but did not find freetype libraries
 pdestroy@localhost:~/gnome-2.0.2rc1/gtk+-2.0.6$ locate freetype-config
 /usr/local/bin/freetype-config
 /usr/X11R6/bin/freetype-config
 pdestroy@localhost:~/gnome-2.0.2rc1/gtk+-2.0.6$ freetype-config --version
 9.1.3
 .0.2rc1/gtk+-2.0.6$ /usr/X11R6/bin/freetype-config --version 
 8.0.2
 
 I find the numbers given by freetype-config very odd, any ideas
 on this situation?

You should look at the config.log file to see the exact error messages
that were generated. The most likely possibility is that the
freetype-config from /usr/local/bin was being used, but the linker
found the libraries in /usr/X11R6/lib ... you may well simply
want to delete (make a backup first):

 /usr/X11R6/bin/freetype-config
 /usr/X11R6/lib/libfreetype.so*
 
In my opinion, there is no excuse for X  installing a copy of freetype 
that is publically visible.

Regards,
Owen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Cannot find a rule to create target all-local from dependencies

2002-10-07 Thread Paul Kent Anderson

Trying to install xfce on AIX, which requires atk, glib, pango, gtk, 
etc. make (for all of them) complains about all-local missing

I found a reference to this in the archives, and the solution then was 
to use make -k to continue building on Solaris 2.8. This would resolve 
out of order dependencies. Unfortunately, it's not working for me. 
Anybody know what's going on? I checked the Makefile, and sure enough, 
there isn't an all-local. Did ./configure miss something?

Paul

from atk
snip
Target all is up to date.
Making all in docs
make: 1254-002 Cannot find a rule to create target all-local from 
dependencies.
(continuing)
Target all-am is up to date.
/snip

from glib
snip
Making all in reference
Making all in glib
make: 1254-002 Cannot find a rule to create target all-local from 
dependencies.
(continuing)
Making all in gobject
make: 1254-002 Cannot find a rule to create target all-local from 
dependencies.
(continuing)
Target all-am is up to date.
/snip


__
Inflex Virus Scanner - installed on mailserver for domain @et.byu.edu
Queries to: [EMAIL PROTECTED]
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Problems with compiling Pango 1.0.4

2002-10-07 Thread Broich

Hello,

I have a big Problem with compiling the Pango-1.0.4 to make the gtk+-2.0.
However  I will compile with the command make I get the following Error:

querymodules.o: In function `main':
/home/hbroich/Uninst/GTK/pango-1.0.4/pango/querymodules.c:175: undefined 
reference to `pango_config_key_get'
/home/hbroich/Uninst/GTK/pango-1.0.4/pango/querymodules.c:177: undefined 
reference to `pango_get_lib_subdirectory'
/home/hbroich/Uninst/GTK/pango-1.0.4/pango/querymodules.c:184: undefined 
reference to `pango_split_file_list'
collect2: ld returned 1 exit status
make[3]: *** [pango-querymodules] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis 
»/home/hbroich/Uninst/GTK/pango-1.0.4/pango«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis 
»/home/hbroich/Uninst/GTK/pango-1.0.4/pango«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis 
»/home/hbroich/Uninst/GTK/pango-1.0.4«
make: *** [all-recursive-am] Fehler 2

There are alle the needed *.h files
Can someone help me or is there any Idea for my Problem ?

Thanks

  Hartmut  (from good old Germany  ;-) )


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Nary trees

2002-10-07 Thread Eric M. Monsler

etienne buxin wrote:
 hi,
 
 i'd like to use a structure similar to glib's Nary tree, but with the difference 
that many parent
 nodes can share one or several children nodes.
 any clue?


This is going to be rather difficult.

Unless you enforce a policy that only sibling-nodes can share child 
nodes, you are going to have a lot of trouble.  Even then, any trivial 
operation on a child node (e.g., remove from tree) will require 
searching over the full set of parent-siblings and checking the child 
pointers against the full set of siblings for the child-node.

Don't do it.

If a fellow developer at work suggested such a data-storage approach, I 
would require a tone of convincing that this was a reasonable thing to do.

If you do, I strongly suggest that you do not base it off of the current 
glib n-ary tree implimentation.  At a minimum, I would enforce a policy 
that a node has a numbered depth N, that all children are depth N+1 and 
parents are N-1.  This may seem obvious, but in a multi-parent scenario 
it would be easy to violate if moving a set of nodes within the tree.

A suggested structure:

struct eb_manymany {
   uint node_level;
   uint num_parents;
   uint num_par_max;
   struct eb_manymany   **par_ptr_array;
   uint num_children;
   uint num_child_max;
   struct eb_manymany   **chd_ptr_array;
   gpointer data;
}

That lets you reference count the parents and children, so that, for 
example, when removing a node you can go to all the parents and remove 
that child from their list of children.

The _max allows dynamix allocation of the pointer arrays, if you 
previously allocated space for 12 children and need a 13th, you can 
reallocate that array up to size 24 or somthing, with 13 places occupied.

If the above doesn't make sense after a few readings, you're not ready 
to tackle this.  I have done a two-level parent-child that was 
many-to-many, where entities were by definitions either parents or 
children, and by the time I had the appropriate API and error checking 
all in place it was very cumersome.

For example, what policy do you generically implement if a the last 
parent of a node is freed?  In my application, that meant that the child 
was now a discard and could be freed, but that may or may not be 
appropriate for a generic storage library.  Specify a calllback for the 
child node in that situation, defaulting to freeing?  Complexity!

If you do get it working as infinite level many-to-many, please post the 
code. :)

Eric

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Can't configure

2002-10-07 Thread Paul Thomas


Hi,

I'm trying to compile glib-2.0.6 and get the following  error:

checking for iconv_open... no
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
configure: error: *** No iconv() implementation found in C library or
libiconv



What do I need to update here?

Thanks,

--Paul


--
William J. Broad: The crux... is that the vast majority of the mass
of the universe seems to be missing.


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: GTK+2.0.6 problem with Freetype

2002-10-07 Thread Paulo J. Matos

 
Hi,

 You should look at the config.log file to see the exact error messages
 that were generated. The most likely possibility is that the
 freetype-config from /usr/local/bin was being used, but the linker
 found the libraries in /usr/X11R6/lib ... you may well simply
 want to delete (make a backup first):
 
  /usr/X11R6/bin/freetype-config
  /usr/X11R6/lib/libfreetype.so*
  

I've done that, same situation happens. Now:
pdestroy@localhost:~/gnome-2.0.2rc1/gtk+-2.0.6$ which freetype-config
/usr/local/bin/freetype-config
pdestroy@localhost:~/gnome-2.0.2rc1/gtk+-2.0.6$ freetype-config --version
9.1.3

I'm compiling it with gcc2.95.3, can that be the situation?

Config.log says:
configure:14393: found /usr/local/bin/freetype-config
configure:14406: result: /usr/local/bin/freetype-config
configure:14417: checking for FT_New_Face in -lfreetype
configure:14450: gcc -o conftest -g -O2 -Wall   conftest.c -lfreetype -L/usr/loc
al/lib -lfreetype   5
configure:14453: $? = 0
configure:14456: test -s conftest
configure:14459: $? = 0
configure:14470: result: yes
configure:14484: checking For sufficiently new FreeType (at least 2.0.1)
configure:14508: gcc -c -g -O2 -Wall  -I/usr/local/include -I/usr/local/include/
freetype2 conftest.c 5
configure:14489: `#include' expects FILENAME or FILENAME
configure:14511: $? = 1
configure: failed program was:
#line 14486 configure
#include confdefs.h

#include freetype/freetype.h
#include FT_ERRORS_H

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
 extern C
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
(void)1;
  ;
  return 0;
}
configure:14530: result: no
configure:14561: error: pangoxft Pango backend found but did not find freetype l
ibraries


Any ideas?

Best regards,

Paulo
 In my opinion, there is no excuse for X  installing a copy of freetype 
 that is publically visible.
 
 Regards,
 Owen
 

-- 
Paulo J. Matos : pocm(_at_)mega.ist.utl.pt
Instituto Superior Tecnico - Lisbon
Software  Computer Engineering - A.I.
 -  http://mega.ist.utl.pt/~pocm 
 ---
Yes, God had a deadline...
So, He wrote it all in Lisp!

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Weird GtkEntry behavior in GTK 1.2.10

2002-10-07 Thread Eric M. Monsler

All,

I am seeing a very strange behaviour with a GtkEntry widget.

The application had previously been working normally; well enough that I 
had not done any maintenance on it in months.

During that time, the compiler on the Solaris box was upgraded from gcc 
2.95.x to gcc 3.2, without my knowledge.

I made a minor code change, rebuilt my application, and discovered that 
the GtkEntry widget was not working properly.  It was swallowing certain 
characters.  In some cases, the n was never displayed, but repeated 
button presses would result in an n being shown.  The s character 
was even stranger, with the keystroke sometimes working, sometimes 
producing no visible effect, and with sometimes a Beta characer being 
shown instead.

Investigating, I found aout about the gcc change.  I then rebuilt glib, 
gtk, and gtkextra with no apparent errors, and then rebuilt my 
application.  The exact same results occurred.

I tried having another user run the application, and he observed the 
same effect.

Any ideas?


Eric Monsler

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list