Re: Checking if a program in path

2005-05-15 Thread David Necas (Yeti)
On Mon, May 16, 2005 at 08:40:03AM +0200, Colossus wrote: > I need to know if > a program is available, so I thought to try open the > file with the -e flags, but maybe there is already something > inside glib ?? Maybe you are looking for g_find_program_in_path(): http://developer.gnome.org/doc/A

Checking if a program in path

2005-05-15 Thread Colossus
Hi, I'm building an app with the GTK for the first time, I'm just moving the first steps. I need to know if a program is available, so I thought to try open the file with the -e flags, but maybe there is already something inside glib ?? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed

gtk_clist_append

2005-05-15 Thread srinivas
hi while appending the text to clist i got this warning, and itz not appending to the list. Gtk-CRITICAL **: file gtkclist.c: line 2673 (gtk_clist_append): assertion `GTK_IS_CLIST (clist)' failed. how can i resolve this and how to append to the clist. thanks; vasu. _

Re: How to detect window resize

2005-05-15 Thread Gabriel de Perthuis
Hello, Le dimanche 15 mai 2005 Ã 18:34 +0200, [EMAIL PROTECTED] a Ãcrit : > How do i actually detect a window resize. I looked through the API > reference, but were unable to find a signal to this. You can use the "size-allocate" signal in class GtkWidget: g_signal_connect (object, "size-allocate",

Re: Simple XML Subset Parser

2005-05-15 Thread Cst
Thanks for the reply. That's what I need. _ Check All Email Accounts Anywhere! Check your POP3 and webmail account from any PC. With no ads http://www.fusemail.com ___ gtk-app-devel-list mailing list gtk-app-devel-lis

re: Simple XML Subset Parser

2005-05-15 Thread Gyözö Both
hi, here's a short example with manually defined tags: http://cvs.sourceforge.net/viewcvs.py/bygfoot/bygfoot2-unstable/src/xml_country.c?view=markup and a corresponding xml file that can be parsed: http://cvs.sourceforge.net/viewcvs.py/bygfoot/bygfoot2-unstable/support_files/definitions/england

How to detect window resize

2005-05-15 Thread lulf
How do i actually detect a window resize. I looked through the API reference, but were unable to find a signal to this. Any help will be appreciated. - Ulf Lilleengen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.o

network transparent GTK apps

2005-05-15 Thread Henry Gomersall
Hi, Firstly, I should give some context to the problem that I trying to solve. We have multiple machines in our room (its a shared student room and its not just me working on this). One of the machines tends to act as a media storage and playback device, with a projector connected to this box (he

Re: How to get GtkWindow associed with XID?

2005-05-15 Thread jacktm
Owen Taylor wrote: >On Sun, 2005-05-15 at 13:16 +0200, jacktm wrote: > > >>Hello. >> >>I need do get the GtkWidget associated with XID. I thought >>I can do it using gdk_window_foreign_new, but it doesn't >>work for me. I tried many things, after googling I found >>something like that: >> >>

Re: How to get GtkWindow associed with XID?

2005-05-15 Thread Owen Taylor
On Sun, 2005-05-15 at 13:16 +0200, jacktm wrote: > Hello. > > I need do get the GtkWidget associated with XID. I thought > I can do it using gdk_window_foreign_new, but it doesn't > work for me. I tried many things, after googling I found > something like that: > > GtkWidget *toplevel = gtk_w

Re: nested gdk_threads_enter() hangs: linux/gcc vs. win32/mingw?

2005-05-15 Thread Owen Taylor
On Sat, 2005-05-14 at 12:26 +0200, Felix Kater wrote: > Hi, > > I am using the same code on win32/mingw and linux/gcc, however, when I > execute the code on linux, the programm hangs at the second (nested) call of > gdk_threads_enter(), see below. > > Am I doing something illegal to use nested

Re: Missing pango_render_part_get_type in Win32 Pango?

2005-05-15 Thread Owen Taylor
On Thu, 2005-05-12 at 22:44 -0300, Daniel K. O. wrote: > I'm wondering if the function pango_render_part_get_type() should be > exported on Pango Win32 1.8.0. > > Right now I'm trying to compile GTKmm 2.6.2, and getting this error: > > --- > Creating library file: .libs/libpangomm-1.4.dll.a > .l

How to get GtkWindow associed with XID?

2005-05-15 Thread jacktm
Hello. I need do get the GtkWidget associated with XID. I thought I can do it using gdk_window_foreign_new, but it doesn't work for me. I tried many things, after googling I found something like that: GtkWidget *toplevel = gtk_window_new(GTK_WINDOW_TOPLEVEL); GdkWindow *gdk_win = gdk_wind

Simple XML Subset Parser

2005-05-15 Thread Cst
Hello, I am trying to figure out how to use "Simple XML Subset Parser" (http://developer.gnome.org/doc/API/2.0/glib/glib-Simple-XML-Subset-Parser.html). Can somebody point me to a simple example code? I don't know how to start. Thanks. _ Check All Email Accoun

Re: A litle problem with RGB images

2005-05-15 Thread Mateusz Misiorny
On 5/15/05, Juergen Dankoweit <[EMAIL PROTECTED]> wrote: > Hello, > > Am Sonntag, den 15.05.2005, 10:50 +0300 schrieb [EMAIL PROTECTED]: > > Hi. > > In the past, I wrote a program ( in DOS), to display a > > signal collected from ADC. I use 2 video pages - 1 is > > visible, second is hidden (to dr

The thin red GtkTextView line...

2005-05-15 Thread Freddie Unpenstein
Greetings again... Geeze I'm asking a lot today. ;) Back onto the GtkTextViews... After the wonderful responces from my query re: drawing a line across a text view, I now have a reasonably simple piece of code to do it automagically, except that it only supports one line per GtkTreeView at

Re: A litle problem with RGB images

2005-05-15 Thread Juergen Dankoweit
Hello, Am Sonntag, den 15.05.2005, 10:50 +0300 schrieb [EMAIL PROTECTED]: > Hi. > In the past, I wrote a program ( in DOS), to display a > signal collected from ADC. I use 2 video pages - 1 is > visible, second is hidden (to draw), and switch they very > fast. The result is very smooth animated g

Re: A litle problem with RGB images

2005-05-15 Thread Daniel Pekelharing
Hi, This is not entirely related, but if you are familiar with OpenGL you could use GtkGLExt (http://gtkglext.sourceforge.net/) to create a OpenGL drawable context and then display the images using simple OpenGL textures or something... Just an idea though. Daniel On Sun, 2005-05-15 at 10:50 +03

Approximate size of GtkTextBuffer

2005-05-15 Thread Freddie Unpenstein
I've looked through the GTK2 API, and I've poked around in this forum, but I'll be stuffed if I can find a way to figure out aproximately how much memory the text in a GtkTextBuffer is taking up. I'm storing a log file, and it's almost all ASCII, so the byte and character counts should be almo