Re: changing the model in a treeview

2005-07-20 Thread The Saltydog
On 7/19/05, Roger Leigh [EMAIL PROTECTED] wrote: Yes. Just call gtk_tree_view_set_model(). Yes, but what if the alternative model requires a different column-layout of the treeview? Can I change dynamically the layout when switching to other model, or should I keep things separated and

play wave files in gtk

2005-07-20 Thread Yogesh M
Is there a way i can play wave files or sound using gtk, and more importantly it should be portable. atleast working in linux and windows. ie I want a sound effect to be played when the user interacts with the UI. __ Do You Yahoo!? Tired of

How to convert file names from

2005-07-20 Thread Christian Schneider
Hallo, I changed from GTK 2.2.x to 2.6.x. Now my program does not convert selected files after file selection. Here my code which did what I want with GTK 2.2.x: iso_string = (gchar *) gtk_file_selection_get_filename(filesel ); utf_string = g_convert (iso_string, -1, UTF-8, ISO-8859-1, NULL,

Re: play wave files in gtk

2005-07-20 Thread Kristof Vansant
I think gstreamer is what you need or sdl. On Wed, 2005-07-20 at 02:29 -0700, Yogesh M wrote: Is there a way i can play wave files or sound using gtk, and more importantly it should be portable. atleast working in linux and windows. ie I want a sound effect to be played when the user

Re: How to convert file names from

2005-07-20 Thread The Saltydog
On 7/20/05, Christian Schneider [EMAIL PROTECTED] wrote: file == Null if a german special charakter is involved! You should use g_filename_to_utf8() or g_locale_to_utf8() before displaying the string in a gtkwidget.. ___ gtk-app-devel-list mailing

Re: How to convert file names from

2005-07-20 Thread Hubert Sokołowski
On Wed, 20 Jul 2005 13:22:52 +0200 (CEST) Christian Schneider [EMAIL PROTECTED] wrote: /* Open file with iso_string */ file = fopen (iso_string, rb); file == Null if a german special charakter is involved! it is better to use GIOChannel for operations on files. I have experienced strange

Re: How to convert file names from

2005-07-20 Thread Colossus
Hubert Sokołowski wrote: it is better to use GIOChannel for operations on files. I have experienced strange problems on win32 when using fopen and the family. I use GIOChannel in my forthcoming GTK2 only frontend to command line archive tools but is really a mess when an archive contains

Re: Removing One Page from GtkNotebook

2005-07-20 Thread Annamalai Gurusami
Tristan Van Berkom [EMAIL PROTECTED] writes: Annamalai Gurusami wrote: Hello All, In my GTK+ application, I am having a GtkNotebook. I am adding one page, with a GtkScrolledWindow as a child, and a GtkHBox as a label. I remove this page from GtkNotebook. My question is when I remove this

GScanner - simple manual.

2005-07-20 Thread uzytkownik22
Is it anywhere gscanner manual? Please don't say yacc, becouse: - I'd like to use it in library, and yacc take in all programs namespace. - I'd like to can use it in f. ex. 3 diffrent call of function in the same time (threads). - I'd like to learn GSanner just for lern. I'll try to read

libwww

2005-07-20 Thread The Saltydog
I was looking at libwww, but it doesn't seem to be suitable for gtk+ applications.. Is there any equivalent library with the same functionalities? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: libwww

2005-07-20 Thread The Saltydog
On 7/20/05, The Saltydog [EMAIL PROTECTED] wrote: I was looking at libwww, but it doesn't seem to be suitable for gtk+ applications.. Is there any equivalent library with the same functionalities? More on this... I have found libsoup, that is glib-based. But there is no documentation around.

Re: libwww

2005-07-20 Thread Arx Henrique
libcurl is very good too i'm using here to get html content from one pabe and write in gtkhtml widget. On 7/20/05, The Saltydog [EMAIL PROTECTED] wrote: On 7/20/05, The Saltydog [EMAIL PROTECTED] wrote: I was looking at libwww, but it doesn't seem to be suitable for gtk+ applications.. Is

Re: Question? Broadcast to widget in a window

2005-07-20 Thread Tristan Van Berkom
Carsten Rasmussen wrote: I am new in GUI programming! I just want to know if the is a function in GTK which can broadcast a signal to all member widget of the Window. What do you mean by broadcast a signal ? Do you just want a function to be called for every widget in a container ? You can

Re: libwww

2005-07-20 Thread The Saltydog
On 7/20/05, Arx Henrique [EMAIL PROTECTED] wrote: libcurl is very good too i'm using here to get html content from one pabe and write in gtkhtml widget. Thanks you.. And where can I get the API reference for libgtkhtml? ___ gtk-app-devel-list

Re: Is it possible to use int in labels?

2005-07-20 Thread Kenneth Østby
On 7/20/05, Søren Juul [EMAIL PROTECTED] wrote: Is it possible to use a int in labels? or is it only chars? Søren J take a look at the g_sprintf() function to convert it into a char*, or the g_string_sprintf to convert it into GString ___

Re: Is it possible to use int in labels?

2005-07-20 Thread Allin Cottrell
On Wed, 20 Jul 2005, Søren Juul wrote: Is it possible to use a int in labels? or is it only chars? Only chars. GtkWidget *lbl; gchar *numstr; numstr = g_strdup_printf(%d, number); lbl = gtk_label_new(numstr); g_free(numstr); Allin Cottrell

adjustments and text_views

2005-07-20 Thread David Morse
I read that text_views have native support for scrolling, if so, is there some way I can coax an adjustment out of a text_view and pass it to a freshly created vscrollbar? Or am I supposed to learn to love the hairy details of adjustments and signals and stuff myself

GtkSocket seems to block key events. How to unblock?

2005-07-20 Thread Van H Tran
Hi all, I have this GtkSocket embedded as a child (among a few other children) to a parent window. Whenver the focus is on the Socket, all the key events are not caught and therefore the parent window doesn't respond to these key events. Is there any way for the parent window to catch these