Re: Help installing GTK+-2.0 v 2.4.6

2004-08-22 Thread Ruben Safir Secretary NYLXS
Is the documentation for GTk wrong in the tutorials

It looks like this URL:

http://www.gtk.org/tutorial/sec-events.html has an error when describing
gint callback_func( GtkWidget *widget, GdkEvent  *event, gpointer   callback_data );

Shouldn't there be 4 parameters, including the callback function?


Ruben

-- 
__
Brooklyn Linux Solutions

So many immigrant groups have swept through our town 
that Brooklyn, like Atlantis, reaches mythological 
proportions in the mind of the world  - RI Safir 1998

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://fairuse.nylxs.com

http://www.mrbrklyn.com - Consulting
http://www.inns.net <-- Happy Clients
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from 
around the net
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn

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


GTK Documentation error

2004-08-22 Thread Ruben Safir Secretary NYLXS
On Sun, Aug 22, 2004 at 03:19:13AM -0400, Ruben Safir wrote:
 Is the documentation for GTk wrong in the tutorials
 
 It looks like this URL:
 
 http://www.gtk.org/tutorial/sec-events.html has an error when describing
 gint callback_func( GtkWidget *widget, GdkEvent  *event, gpointer   callback_data );
 
 Shouldn't there be 4 parameters, including the callback function?
 
 
 Ruben
 
 -- 
 __
 Brooklyn Linux Solutions
 
 So many immigrant groups have swept through our town 
 that Brooklyn, like Atlantis, reaches mythological 
 proportions in the mind of the world  - RI Safir 1998
 
 DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
 http://fairuse.nylxs.com
 
 http://www.mrbrklyn.com - Consulting
 http://www.inns.net <-- Happy Clients
 http://www.nylxs.com - Leadership Development in Free Software
 http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from 
around the net
 http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn
 
 1-718-382-0585

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


Re: GTK Documentation error

2004-08-22 Thread Sven Neumann
Hi,

Ruben Safir Secretary NYLXS <[EMAIL PROTECTED]> writes:

>  Is the documentation for GTk wrong in the tutorials
>  
>  It looks like this URL:
>  
>  http://www.gtk.org/tutorial/sec-events.html has an error when
>  describing
>
> gint callback_func (GtkWidget *widget,
> GdkEvent  *event,
> gpointer   callback_data);
>  
>  Shouldn't there be 4 parameters, including the callback function?

No, that's a misunderstanding on your side. Perhaps you want to reread
the chapter about signals once more.


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


Re: GTK Documentation error

2004-08-22 Thread Ruben Safir Secretary NYLXS
Yes

I just reread it.  I was mixing up the callback function and the signal
caller!  That what I get for reading documentation at 3:30AM


Let me ask a more coherent question.

What is the difference between an event like 'button_press_event' and a
signal like 'clicked'?  If the events are unions, why is the tutorial
listing all the second union members?  Are they used in programming or
just utilized internally in gtk_main?

Ruben


On Sun, Aug 22, 2004 at 10:20:45AM +0200, Sven Neumann wrote:
> Hi,
> 
> Ruben Safir Secretary NYLXS <[EMAIL PROTECTED]> writes:
> 
> >  Is the documentation for GTk wrong in the tutorials
> >  
> >  It looks like this URL:
> >  
> >  http://www.gtk.org/tutorial/sec-events.html has an error when
> >  describing
> >
> > gint callback_func (GtkWidget *widget,
> > GdkEvent  *event,
> > gpointer   callback_data);
> >  
> >  Shouldn't there be 4 parameters, including the callback function?
> 
> No, that's a misunderstanding on your side. Perhaps you want to reread
> the chapter about signals once more.
> 
> 
> Sven

-- 
__
Brooklyn Linux Solutions

So many immigrant groups have swept through our town 
that Brooklyn, like Atlantis, reaches mythological 
proportions in the mind of the world  - RI Safir 1998

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://fairuse.nylxs.com

http://www.mrbrklyn.com - Consulting
http://www.inns.net <-- Happy Clients
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from 
around the net
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn

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


Re: GTK Documentation error

2004-08-22 Thread Ruben Safir Secretary NYLXS
Oh yes

What is the favorite GTK irc channel?  Are newbies welcome on it?

Ruben

On Sun, Aug 22, 2004 at 10:20:45AM +0200, Sven Neumann wrote:
> Hi,
> 
> Ruben Safir Secretary NYLXS <[EMAIL PROTECTED]> writes:
> 
> >  Is the documentation for GTk wrong in the tutorials
> >  
> >  It looks like this URL:
> >  
> >  http://www.gtk.org/tutorial/sec-events.html has an error when
> >  describing
> >
> > gint callback_func (GtkWidget *widget,
> > GdkEvent  *event,
> > gpointer   callback_data);
> >  
> >  Shouldn't there be 4 parameters, including the callback function?
> 
> No, that's a misunderstanding on your side. Perhaps you want to reread
> the chapter about signals once more.
> 
> 
> Sven

-- 
__
Brooklyn Linux Solutions

So many immigrant groups have swept through our town 
that Brooklyn, like Atlantis, reaches mythological 
proportions in the mind of the world  - RI Safir 1998

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://fairuse.nylxs.com

http://www.mrbrklyn.com - Consulting
http://www.inns.net <-- Happy Clients
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from 
around the net
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn

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


repacking boxes and keeping a handle on the toplevel window and all it's chidren

2004-08-22 Thread Ruben Safir Secretary NYLXS
Is it possible to change the contents of a box from a signal handlers?

I want to have a 2 paned box, with all the widgets of the screen in a 
static global struct, and then repack the lower box on the click event.
and then repopulate it will text fields and lables.

Is this possible?

Ruben

-- 
__
Brooklyn Linux Solutions

So many immigrant groups have swept through our town 
that Brooklyn, like Atlantis, reaches mythological 
proportions in the mind of the world  - RI Safir 1998

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://fairuse.nylxs.com

http://www.mrbrklyn.com - Consulting
http://www.inns.net <-- Happy Clients
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from 
around the net
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn

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


beg for help - writing a custom tree model

2004-08-22 Thread D M

Hello,.

For few days now I'm struggling with GtkTreeView. I'm
trying to implement my own GtkTreeModel, which would contain
massive amount of data located in LDAP ( in fact my
model would be just a proxy to a LDAP).
The main problem is that GtkTreeView behavior makes it
impossible. First of all: when a user expands a node GtkTreeView asks
me to create iterators for each child, then every child is referenced
(accordingly to the manual that means that an item is to be displayed -
which is wrong because even if there are 5000 children it's refernecing
all of them at once). Then - what is even more ridiculous - I'm asked
to provide values for all children elements - which is total
madness.

My question is:
Have I just gone insane or Treeview behaves as described 
above?

Thank you.

PS. Can anyone give me some hints how can I achieve my goal?

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


glib problmes

2004-08-22 Thread Jim Maas




I've just spent two days
trying to compile a version of garnome, and the biggest single problem
is glib conflicts.  Yet I get nonsensical error messages about files
that don't exist.  

Today I went to the gtk+ website, followed all the instructions,
downloaded all the tarballs and set out to try and fix it.

Glib can't even find libiconv so I went and downloaded it and installed
it.  Tried again it still cannot be found.  Is this logical?  How can
you keep putting out packages that clearly don't work together?  Or if
it is distro differences, one like of instructions would alert users to
potential problems they might have.  Lots and lots of people are having
the same problems but getting no resolution or constructive help.  I
would very much like to continue to use gnome but this is getting quite
silly.

Now after my little tirade Can someone please help me get Glib to
compile, says it can't find libiconv.

thanks

Jim

-- 


==
Jim Maas
[EMAIL PROTECTED]


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


ATK installation problem

2004-08-22 Thread ORANGE-CDL-
I'm attempting to upgrade GIMP to 2.0 from 1.2 and had to upgrade gtk+ and such.

I can install GLIB fine but then I go to install ATK and this appears
at the end.  Do have an idea on what I might be doing wrong.  I follow
the ./configure, make, make install, process.  If you need any more
information let me know. Thanks.

checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.4.6, but GLIB (2.0.6)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

-- 
--
CDL - www.dragonwolves.com
Planetside-Universe - www.planetside-universe.com
Planetside-Idealab - www.planetside-idealab.com
New Site - www.cdl-orange.netfirms.com
My Photobucket - http://photobucket.com/albums/v355/cdlorange/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: glib problmes

2004-08-22 Thread Daniel Nilsson
On Sat, Aug 21, 2004 at 02:21:01PM +0100, Jim Maas wrote:
> Now after my little tirade Can someone please help me get Glib to 
> compile, says it can't find libiconv.

You might find some help in this thread:

http://mail.gnome.org/archives/gtk-list/2004-August/msg00095.html

Although garnome might override this stuff in order to separate out
the libraries built by garnome with the system ones. The problems you
are having might be related to garnome.

What kind of system are you on ?

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


Data to Callback Functions

2004-08-22 Thread Ruben Safir Secretary NYLXS


Hello

I'm trying to write a program for the clinical pharmacy department at
the hospital.  I hoped to create a top_level window with a vbox.  The top
of the vbox has some buttons and the bottom has a frame.  Depending on
which button is clicked, a different 'form' would desplay below.

In order to do this I created several files, clinical.c clinical.h
forms.c forms.h calculations.c calculations.h, so I could use the
calculations for a future project.

In order to retain access to everything, in fomrs.h I has a struct definition

struc s1, which has membership of GtkWidgets which I hoped to assign to
structure instances to pass to callback functions attacts as gpoint data,
with is the last argument in g_signal_connect, such as follows

g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (lbw_screen), &handle);

where handle is my structure with the GtkWidgets stored.

However, this is not working, and when I call the signal by clicking on
the button, the structure is converted to a null pointer by the 
gpointer cast and the screen almost looks like it goes out of scope in the
debugger.

How can I do this other than make the entire structure global?
How can I get a callback fuction to gain access to it's parent
windows and widgets?


Ruben

-- 
__
Brooklyn Linux Solutions

So many immigrant groups have swept through our town 
that Brooklyn, like Atlantis, reaches mythological 
proportions in the mind of the world  - RI Safir 1998

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://fairuse.nylxs.com

http://www.mrbrklyn.com - Consulting
http://www.inns.net <-- Happy Clients
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from 
around the net
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn

1-718-382-0585

NYLXS: New Yorker Free Software Users Scene
Fair Use -
because it's either fair use or useless
NYLXS is a trademark of NYLXS, Inc

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