Re: Best way to copy a GString object

2004-07-05 Thread Michael Torrie
On Mon, 2004-07-05 at 17:30, Sven Neumann wrote: > Read the docs again or, even better, take a look at the source. > g_string_new_len() will of course NULL-terminate the string for you. Right. I just misread the docs. It says that the source string need not be null-terminated. Thanks. Micha

Re: jpeg-6b

2004-07-05 Thread Tim Flechtner
look at the generated file 'config.log'. i suspect you need to add a directory to either your include directories or library directories to pick up jpeg's headers and/or libraries. ./configure will listen to the environmental variables CFLAGS, CPPFLAGS and LDFLAGS, so you can set directives i

jpeg-6b

2004-07-05 Thread Jerry Pringle
Hello All, Further to my earlier question (regarding Pango). I have compiled and installed Pango, but now when running configure for GTK+ I get the following error: checking for jpeg_destroy_decompress in -ljpeg... no configure: WARNING: *** JPEG loader will not be built (JPEG library not found

Re: Best way to copy a GString object

2004-07-05 Thread Sven Neumann
Hi, Michael Torrie <[EMAIL PROTECTED]> writes: > What is the best way to copy a GString object in glib (plain c)? There > doesn't seem to be any copy constructor. My current guess is to use > g_string_new_len(src->str,src-len). However that won't put in a > terminating null character which I'd

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Sven, not a bad idea about FC2 and debian sid. I thought RH9 was reasonably new but it had been lying around for a while until I found time to dive into the Linux adventure. It's a bit a shame that it is so difficult, because that will put of average desktop users (which I am in this exercise). Th

Best way to copy a GString object

2004-07-05 Thread Michael Torrie
What is the best way to copy a GString object in glib (plain c)? There doesn't seem to be any copy constructor. My current guess is to use g_string_new_len(src->str,src-len). However that won't put in a terminating null character which I'd like to have so it will be easier to manipulate this str

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, "Andreas Hagele" <[EMAIL PROTECTED]> writes: > and if I would go down that path of installing the development packages, > where do I find them? > > ftp://ftp.gtk.org/pub/gtk/v2.2/ doesn't seem to have anything there. Of course not. It's not the job of the GTK+ developers to provide you with

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Sven, I do use the precompiled rpms. But the glib2-2.4.1.rpm did complain about the devel of 2.2.1. And I do compile quite a bit in my daytime job, however I did not plan to get all the way there with that gimp install, because I just want to be a simple user of an application. The install process

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Sven, and if I would go down that path of installing the development packages, where do I find them? ftp://ftp.gtk.org/pub/gtk/v2.2/ doesn't seem to have anything there. And the various version of glib2.tar don't mention anything of that either. so back to the basics: I want gimp2 installed (whi

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, "Andreas Hagele" <[EMAIL PROTECTED]> writes: > I don't want to develop software that uses gtk+ at all. I just want > to USE gimp as an ordinary user. No programming, nothing. just use > the application. You said you want to compile it. Thus you will need the header files which is what the de

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Sven, thanks for that. I don't want to develop software that uses gtk+ at all. I just want to USE gimp as an ordinary user. No programming, nothing. just use the application. Andreas -Original Message- From: Sven Neumann [mailto:[EMAIL PROTECTED] Behalf Of Sven Neumann Sent: Tuesday, 6 J

Re: Pango 1.4.0

2004-07-05 Thread Sven Neumann
Hi, Jerry Pringle <[EMAIL PROTECTED]> writes: > Looking over the output, the first error appears to be: > > pangox.c:26:22: X11/Xlib.h: No such file or directory > In file included from pangox.c:32: > pangox.h:31:22: X11/Xlib.h: No such file or directory > > Does this mean tha

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, "Andreas Hagele" <[EMAIL PROTECTED]> writes: > > Did you also install the development RPM packages? > > Do I need to. Well, you said you want to compile gimp and were looking for installing the required packages to do that. Since your goal is to develop software that uses gtk+ and friends, y

Pango 1.4.0

2004-07-05 Thread Jerry Pringle
Hello All Sorry if this is not the correct place for this post, if it is not please could someone tell where to address this question! I am trying to build the GTK+ 2.4.3 on a G4 Powerbook running Mac OS X 10.3.4 using the standard Apple developer tools. I have built all of the dependencies, ex

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Russell, I did start off installing from source but the fault was pretty much the same. I briefly looked at uninstalling but there are a million other packages that require glib. So I don't think it would be wise to remove it altogether. Regards Andreas -Original Message- From: [EMAIL P

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Do I need to. And would that be the devel for 2.2.1 or for 2.4.2? I just installed Redhat 9 off the CDs and that must have put the 2.2.1 on there but in a kind that I can't upgrade to 2.4.2. Andreas -Original Message- From: Sven Neumann [mailto:[EMAIL PROTECTED] Behalf Of Sven Neumann Sent

Error whilst compiling gtk on Solaris

2004-07-05 Thread Ian King [ES]
Hi. I'm trying to get Gtk 2.4.1 to compile on Solaris but I receive the following errors after I run make. The same source compiles fine on Redhat 7.0 so I was wondering if anyone could give me pointers as to why it doesn't work on Solaris. Thanks for your time Ian King bash-2.03$ make make al

Re: GTK Apis unicode support ?

2004-07-05 Thread Peter \"Firefly\" Lund
On Mon, 5 Jul 2004, Dipak G Patil wrote: > Hi, > > I am new to Linux and porting a application from windows to linux using > GTK. > As in windows there are always two versions of any API one for Ascii (e.g > CreateWindowExA) and other for unicode(el CreateWindowExW). No, it is not for ASCII but f

Re: passing 3 widgets as parameters to g_signal_connect (Working)

2004-07-05 Thread Leslie Harlley Watter
Thanks to all! It Works! Just for history I'm pasting here the code that works for me. Many thanks, LEslie -- typedef struct { GtkWidget *op1; GtkWidget *op2; GtkWidget *res; }CALC; GtkWidget* create_window1 (void) { GtkWidget *window1; GtkWidget *table1; GtkWidget *vezes;

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Russell Shaw
Sven Neumann wrote: Hi, Russell Shaw <[EMAIL PROTECTED]> writes: G_CONST_RETURN gchar *oper1,*oper2; oper1 = gtk_entry_get_text(GTK_ENTRY(elem->op1)); oper2 = gtk_entry_get_text(GTK_ENTRY(elem->op2)); Why would you use G_CONST_RETURN here? The right thing to do is to use the const qualifier di

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Sven Neumann
Hi, Russell Shaw <[EMAIL PROTECTED]> writes: >G_CONST_RETURN gchar *oper1,*oper2; > > oper1 = gtk_entry_get_text(GTK_ENTRY(elem->op1)); > > oper2 = gtk_entry_get_text(GTK_ENTRY(elem->op2)); Why would you use G_CONST_RETURN here? The right thing to do is to use the const qualifier direct

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Russell Shaw
Leslie Harlley Watter wrote: Hi Andrei, Thanks for the answer, but it only changes the error. Now I get: warning: assignment discards qualifiers from pointer target type Ah, BTW I'm using gcc -o calc main.c `pkg-config --cflags --libs gtk+-2.0` main.c: In function `on_vezes_clicked': main.c:217:

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Sven Neumann
Hi, Leslie Harlley Watter <[EMAIL PROTECTED]> writes: > warning: assignment discards qualifiers from pointer target type well, the return value of gtk_entry_get_text() is a const gchar *, so you better assign it to a variable of that type. Sven ___ g

Re: GLIB / Pango install

2004-07-05 Thread Russell Shaw
Andreas Hagele wrote: Russell, running rpm -i glib3-2.4.2-1.i386.rpm produces: file /usr/lib/libglib-2.0.so.0 from install of glib2-2.4.2-1 conflicts with file from package glib2-2.2.1-1 file /usr/lib/libgmodule-2.0.so.0 from install of glib2-2.4.2-1 conflicts with file from package

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Leslie Harlley Watter
Hi Andrei, Thanks for the answer, but it only changes the error. Now I get: warning: assignment discards qualifiers from pointer target type Ah, BTW I'm using gcc -o calc main.c `pkg-config --cflags --libs gtk+-2.0` main.c: In function `on_vezes_clicked': main.c:217: warning: assignment disca

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Andrei Yurkevich
Leslie Harlley Watter wrote: I'm having problems with my program. When I pass the structure I have the following warning warning: passing arg 1 of `gtk_entry_get_text' from incompatible pointer type Here is a snippet from my code: typedef struct { GtkWidget *op1; GtkWidget *op2; GtkWidget *re

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Leslie Harlley Watter
Hi, Thanks Pedro. I'm having problems with my program. When I pass the structure I have the following warning warning: passing arg 1 of `gtk_entry_get_text' from incompatible pointer type Here is a snippet from my code: ___

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Pedro Villaviencio
On Mon, 2004-07-05 at 09:33, Leslie Harlley Watter wrote: > Hi, > > How can I pass 3 widgets as a parameter to g_signal_connect? > > Example, If I have a single calculator with > > GtkWidget *op1; /* First operand */ > GtkWidget *op2; /* Secont operand */ > GtkWidget *res; /* result */ you can

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Russell, running rpm -i glib3-2.4.2-1.i386.rpm produces: file /usr/lib/libglib-2.0.so.0 from install of glib2-2.4.2-1 conflicts with file from package glib2-2.2.1-1 file /usr/lib/libgmodule-2.0.so.0 from install of glib2-2.4.2-1 conflicts with file from package glib2-2.2.1-1

RE: GLIB / Pango install

2004-07-05 Thread Andreas Hagele
Russell, pkg-config returns 2.2.1 (as expected) but glib 2.4.2. I updated pkg-config (compiled the source pkgconfig-0.15.0) and that produced the same result. The rpm install for glib 2.4.2 still fails with unlocatable package glib2 = 2.2.1 required by glib2-devel (I'm running rpm from Nautilus GU

Re: passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread David Necas (Yeti)
On Mon, Jul 05, 2004 at 10:33:27AM -0300, Leslie Harlley Watter wrote: > > How can I pass 3 widgets as a parameter to g_signal_connect? The answer to ,how can I pass more than one anything` is to create a struct (or array) and pass a pointer to that as user_data. Yeti -- Do not use tab charact

passing 3 widgets as parameters to g_signal_connect

2004-07-05 Thread Leslie Harlley Watter
Hi, How can I pass 3 widgets as a parameter to g_signal_connect? Example, If I have a single calculator with GtkWidget *op1; /* First operand */ GtkWidget *op2; /* Secont operand */ GtkWidget *res; /* result */ all these widgets are gtk_entry's and I want to pass they as a parameter because I n

Re: GTK Apis unicode support ?

2004-07-05 Thread Dipak G Patil
Thanks David for your quick and important reply... That solves my problem... I will have to do nothing more. :-) "David Necas (Yeti)" <[EMAIL PROTECTED]> Sent by: David Necas (Yeti) <[EMAIL PROTECTED]> 07/05/2004 02:38 PM To Dipak G Patil/India/[EMAIL PROTECTED] cc [EMAIL PROTECTED]

Re: gdk_draw_drawable

2004-07-05 Thread Jan-Marek Glogowski
Quoting the GDK Docs: gdk_draw_drawable (GdkDrawable *drawable, GdkGC *gc, GdkDrawable *src, ...) src : the source GdkDrawable, which may be the same as drawable Jan-Marek ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/lis

Re: GTK Apis unicode support ?

2004-07-05 Thread David Necas (Yeti)
On Mon, Jul 05, 2004 at 02:33:02PM +0530, Dipak G Patil wrote: > > I am new to Linux and porting a application from windows to linux using GTK. > As in windows there are always two versions of any API one for Ascii (e.g > CreateWindowExA) and other for unicode(el CreateWindowExW). > > Does the AP

GTK Apis unicode support ?

2004-07-05 Thread Dipak G Patil
Hi, I am new to Linux and porting a application from windows to linux using GTK. As in windows there are always two versions of any API one for Ascii (e.g CreateWindowExA) and other for unicode(el CreateWindowExW). Does the APIs of GTK library support both unicode and ASCII or I will have to do

Re: GTK+ - pango and xfs missing

2004-07-05 Thread Sven Neumann
Hi, Mariusz <[EMAIL PROTECTED]> writes: > configure: error: Pango 1.2.0 and Xft backend is required for x11 target > > I check pango and xft: > > [EMAIL PROTECTED] gtk+-2.4.3]# pkg-config --modversion pango > 1.4.0 > [EMAIL PROTECTED] gtk+-2.4.3]# pkg-config --modversion xft > 2.1.2 Well, what

Re: GLIB / Pango install

2004-07-05 Thread Sven Neumann
Hi, "Andreas Hagele" <[EMAIL PROTECTED]> writes: > I must say I read the INSTALLs for glib,pango, gtk and gimp several > times over. And I went so far that I started completely from > scratch. Re-installed RedHat 9 again (with all options on to make > sure all the required tools are handy). And