Re: How to use global and user related files?

2005-04-08 Thread Peter
Well. I'm answering to myself in hope that anybody corrects me if I'm wrong. Also may be somebody is looking for the same questions in this list.:) On Fri, 08 Apr 2005 20:23:37 +0400, Peter wrote: > How to find user related dirrectory? In pan (newsreader) sources I've found g_get_home_dir ().

GTK+ 2.6.5 released

2005-04-08 Thread Matthias Clasen
GTK+ 2.6.5 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.6/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.6/ gtk+-2.6.5.tar.bz2 md5sum: 3f52f64bdbd132eccfee2de5d2124190 gtk+-2.6.5.tar.gzmd5sum: 627775f318bdafede39607fda3ddbc84 This is a bug fix release and is source and

Re: Help Newbie cause updates of Notebook with textview

2005-04-08 Thread stian
> but got the complaint (DUH) "GLIB-WARNING: g_main_context_prepare(): main > loop already active in another thread" > which makes sense, since this call of UpdateDisplay() is on the thread of > my external application. Please read the thread section of the gtk api spec / documentation and the usa

Help Newbie cause updates of Notebook with textview

2005-04-08 Thread Ansell, Larry
Hi All, For my first use of GTK ( I have GTK 2.0 on RedHat 9) I'm building a GUI that uses a notebook widget, where each page of the notebook has a textview. I build up my window, do gtk_widget_show() and run gtk_main() and everything looks fine. I'm trying to cause an update of the text in

Re: Displaying intermediate values in widgets

2005-04-08 Thread Shiraz Baig
This is great! Thanks Stian! bye shiraz --- [EMAIL PROTECTED] wrote: > > Begin: > > A = A + 5 > > Display in an entry_type Widget > > if A > 100 exit > > Goto Begin > > > > In my case, unless it completes the whole loop, it > > does not show intermediate values. I wish to sh

Re: Getting hex string from a GdkColor

2005-04-08 Thread David Necas (Yeti)
On Fri, Apr 08, 2005 at 06:06:34PM +0200, Stefano Esposito wrote: > i've a color button from which i obtain a GdkColor with > gtk_color_button_get_color(). Now i need the hex string representing this > color but all that i find searching in the api docs is a function that obtain > a GdkColor fro

Re: Getting hex string from a GdkColor

2005-04-08 Thread stian
> Hi all, > > i've a color button from which i obtain a GdkColor with > gtk_color_button_get_color(). Now i need the hex string representing this > color but all that i find searching in the api docs is a function that > obtain a GdkColor from an hex string. Any hints? Thanks to you all :) > > Gree

Re: Getting hex string from a GdkColor

2005-04-08 Thread Tim Müller
On Friday 08 April 2005 17:06, Stefano Esposito wrote: > i've a color button from which i obtain a GdkColor with > gtk_color_button_get_color(). Now i need the hex string representing this > color but all that i find searching in the api docs is a function that > obtain a GdkColor from an hex stri

How to use global and user related files?

2005-04-08 Thread Peter
Hello. I have a problem, I don't know how to fight with. :) I want my application to save big amount of data in ~/.appname dir. What is the best way to achieve this? How to find user related dirrectory? Also program may already have some data files in /usr/share/appname dirrectory, so I need to c

Getting hex string from a GdkColor

2005-04-08 Thread Stefano Esposito
Hi all, i've a color button from which i obtain a GdkColor with gtk_color_button_get_color(). Now i need the hex string representing this color but all that i find searching in the api docs is a function that obtain a GdkColor from an hex string. Any hints? Thanks to you all :) Greetings Stefa

Re: Displaying intermediate values in widgets

2005-04-08 Thread stian
> Begin: > A = A + 5 > Display in an entry_type Widget > if A > 100 exit > Goto Begin > > In my case, unless it completes the whole loop, it > does not show intermediate values. I wish to show > values displayed in the widget 5, 10, 15 etc. If you do this, the gui will updat

Displaying intermediate values in widgets

2005-04-08 Thread Shiraz Baig
Sir, I wish to display the values in the widget before the control exits a function call. For example, the pseudo code is: Begin: A = A + 5 Display in an entry_type Widget if A > 100 exit Goto Begin In my case, unless it completes the whole loop, it does not show intermediat

Re: Newbey Question

2005-04-08 Thread stian
> Thanks Marcel for your prompt response. > I did as you suggested, however, I now get an error saying that the > '-lXext' > library was not found. I ran 'find /usr -name *Xext*' and I did find > '/usr/X11R6/bin/cygXext-6.dll'. Is there anything I can do to solve this > problem? I saw you are usin

possible memleak with pangoft2?

2005-04-08 Thread John Cupitt
Hi all, I'm having problems plugging a memleak in a program using pangoft2. This program seems to leak about 250kbytes per loop on my system. Am I doing something stupid, or should I add to bugzilla? This is pango-1.8.1, freetype 2.1.4 John snip --- /* compile with

Re: Newbey Question

2005-04-08 Thread Jamiil Abdullah-Alkadir
Thanks Marcel for your prompt response. I did as you suggested, however, I now get an error saying that the '-lXext' library was not found. I ran 'find /usr -name *Xext*' and I did find '/usr/X11R6/bin/cygXext-6.dll'. Is there anything I can do to solve this problem? TIA From: Marcel Ruff <[EMA

Re: Switching GtkTextBuffer and Child Anchors

2005-04-08 Thread Kent
Okay, thanks...On Apr 6, 2005 10:02 AM, Matthias Clasen <[EMAIL PROTECTED]> wrote:On Wed, 2005-04-06 at 09:48 -0400, Kent wrote:> I sent this on the list last week but never got a reply so I thought> I would try again.>> -->> Hello,>> I have a GtkTextView that I was trying to share between multiple

RE: Newbey Question

2005-04-08 Thread Jamiil Abdullah-Alkadir
Yes, I am aware of the name of the library. I believe that the spelling mistake was driven by my eagerness to finish learning GTK+ so that I can start learning GTKmm, which is my ultimate goal. I, however, am having problems finding a port of GTKmm to MSW-Cygwin. I prefer working with C++ rather

Re: Newbey Question

2005-04-08 Thread Jamiil Abdullah-Alkadir
Thanks Tristan for you prompt response. I did try your suggestion, but to no avail. After making the changes to my .cpp file, I now get a messages saying: "... error: 'GTK_CALLBACK' undeclared ..." Perhaps this macro was not yet included in the 1.2.10 version, but in a later version, do you kn

How to use gdk_draw_rgb_image correctly?

2005-04-08 Thread Demon Zhu
Hi everyone, i use function gdk_draw_rgb_image(widget->,widget->style->fg_gc[GTK_STATE_NORMAL], 0, 0, 100, 100, GDK_RGB_DITHER_MAX, //GDK_RGB_DITHER_NONE, rgb_buf,0); to draw image, but it only display a 100*100 black image no matter

Re: problem in gtk

2005-04-08 Thread Raj
i even tried *'make -lpthread' *option but the errors are still there I do not think you can pass a linker option to the make command. Try hacking the Makefile or try setting LDFLAGS='-lpthread' . Regards, Raj ___ gtk-list mailing list gtk-list@gnome.org

problem in gtk

2005-04-08 Thread vallish sharma
hi, whenever i 'make' a project that uses thread  function calls i get errors as undefined reference to 'pthread_create' etc... for all the calls. am running Red Hat Linux 7.1 with kernel 2.4.2-2 and glade 0.5.9 version. What am i supposed to do? while i run ./autogen.sh there is a message which s