Re: gtk+-1.2.10 has memory leak?

2004-01-29 Thread Daniel Haude
On Thu, 29 Jan 2004, qn wang wrote: Here I get some source of a function from the gtkwidget.c. Based on these source I wonder that maybe memory leak will happen, because rev_path is not freed after using g_realloc() to allocate memory for it. From glancing at the code it seems as if your

help me!

2004-01-29 Thread Manoj tr
Havoc Pennington, I see ur mail id in mailing list. I want a small help in gtk. The problem is i cand draw that image with the following code #include gtk/gtk.h

Re: gtk+-1.2.10 has memory leak?

2004-01-29 Thread John Cupitt
Hi Qn, rev_path is declared static, so there is no leak, except for the length of the final string returned by gtk_widget_class_path(). This will not grow over time, so is unimportant. In fact, your suggested change will crash: you need to NULL rev_path as well. But the change will make the

Re: help me!

2004-01-29 Thread Manoj tr
Hai all especially behdad, I am very sorry for my mistake. Actually it happend by my mistake. I remember that i dont change the first few lines in the mail only After i click on the send button. Un fortunately i cant stop the mail because it hase already send. So i beg

pkg-config

2004-01-29 Thread Serdar Ozgur ATA
Hi,as an inexperienced person on Linux platform, I try to build glib-2.2.3also gtk+-2.2.3 but I've received the error"pkg-config not found".for this purpose I've downloded these packages- pkgconfig-0.14.0.tar- glib-2.2.3.tar- gtk+-2.2.3.tarand also- atk-1.2.4.tar- pongo-1.2.5.tarin

Re: gtk+-1.2.10 has memory leak?

2004-01-29 Thread Håvard Kvålen
qn wang [EMAIL PROTECTED] writes: g_free(rev_path);// I wonder if it will be useless to add this line. Thiw will introduce a bug, as rev_path is static. And since rev_path is static, no memory is lost either. - Håvard ___ gtk-list mailing list

Re: pkg-config

2004-01-29 Thread Aaron Neerenberg
Serdar- The reason that setting PKG_CONFIG_PATH=/usr/local/bin isn't working for you is that you need to set PKG_CONFIG when you invoke the configure: sh PKG_CONFIG=/usr/local/bin/pkg-config ./configure The PKG_CONFIG_PATH variable, if you intend to use it, should be set before invoking

Re: pkg-config

2004-01-29 Thread Xavier Ordoquy
Hi. At this point you should use your distribution binary packages. It's a trivial trouble and if you don't know the answer you may think about waiting to get more experience before going further with your own compilation. pkg-config not found means that either you've not installed it correctly

Re: pkg-config

2004-01-29 Thread Sven Neumann
Hi, Serdar Ozgur ATA [EMAIL PROTECTED] writes: as an inexperienced person on Linux platform, I try to build glib-2.2.3 also gtk+-2.2.3 but I've received the error pkg-config not found. You need to make sure pkg-config is in your executable path. Since it was installed to /usr/local/bin, you

Re: pkg-config

2004-01-29 Thread Gene Heskett
On Thursday 29 January 2004 10:49, Sven Neumann wrote: Hi, Serdar Ozgur ATA [EMAIL PROTECTED] writes: as an inexperienced person on Linux platform, I try to build glib-2.2.3 also gtk+-2.2.3 but I've received the error pkg-config not found. You need to make sure pkg-config is in your

Re: pkg-config

2004-01-29 Thread Gene Heskett
On Thursday 29 January 2004 10:10, Serdar Ozgur ATA wrote: Hi, as an inexperienced person on Linux platform, I try to build glib-2.2.3 also gtk+-2.2.3 but I've received the error pkg-config not found. for this purpose I've downloded these packages - pkgconfig-0.14.0.tar - glib-2.2.3.tar -

compiling

2004-01-29 Thread Rui Homem
Hi! This ain't hane much to do with GTK+ but... I started to learn about GTK using Glade since i was not a great programmer and doing so helped me to get some results real fast. Now that i understand GTK a bit more i wold like to build my apps all by myself, the problem is that i cant manage to

Re: gtk+-1.2.10 has memory leak?

2004-01-29 Thread qn wang
Daniel, John Cupitt and havardk ... Thank you all for your answer. Now I know it's no need to free a static string. But how about this one showed blow? It's from gdk.c. The argv_orig will not be freed if this function exit with false.(see ////) Will this lead to a memory leak? gboolean

A problem about multi display!

2004-01-29 Thread ruihua yu
To all: Now I have a problem about display. envirament: system: Red Hat9.0 GTK Version: GTK+-1.2.10 Glib Version: glib1.2.10 Following is what I want to do? One process to show two display(DISPLAY1: 127.0.0.1:1.0 DISPLAY2:

A problem about multi display!

2004-01-29 Thread ruihua yu
To all: Now I have a problem about display. envirament: system: Red Hat9.0 GTK Version: GTK+-1.2.10 Glib Version: glib1.2.10 Following is what I want to do? One process to show two display(DISPLAY1: 127.0.0.1:1.0 DISPLAY2:

glib compilation error

2004-01-29 Thread Greg Turner
Hi Folks, I have the latest version of cygwin installed on my Windows machine and I have tried compiling the latest two versions of glib from the gtk.org site and get the following compile error: bash-2.05b$ /bin/bash ../libtool --mode=link gcc -g -O2 -Wall -o glib-genmars hal.exe

Gtk Themes

2004-01-29 Thread J. Davison de St. Germain
Hi, Hopefully this is a simple question. I am writing a GTK program to run on a Mac (OS X). It works, but now I want to use a fancy theme. I can't figure out how to get a theme to work. I downloaded a theme from the GTK web site... I tried creating a .gtkrc-2.0 file and pointing it at the

Sorry to all

2004-01-29 Thread Manoj tr
Hai all especially behdad, All u see my mail help me!. At first I am very sorry for my mistake. Actually it happend by my mistake. I remember that i dont change the first few lines in the mail only After i click on the send button. Un fortunately i cant stop the mail because