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 event

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 __

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 ___

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 ___ gtk-ap

Re: Is it possible to use int in labels?

2005-07-20 Thread The Saltydog
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 you can pack the int into a string with functions like sscanf() and then set the resulting string into the label. ___ gtk-app-dev

Is it possible to use int in labels?

2005-07-20 Thread Søren Juul
Is it possible to use a int in labels? or is it only chars? Søren J ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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 ma

Re: text_view + vscrollbar communication

2005-07-20 Thread Annamalai Gurusami
David Morse <[EMAIL PROTECTED]> writes: > How do I make a gtk_text_view react to a gtk_scrollbar? I am not sure what you want to achieve. But by putting the GtkTextView inside a GtkScrolledWindow, you get a text view in which you can do the scrolling. Is that what you want? GtkTextView *text_v

Re: GScanner - simple manual.

2005-07-20 Thread uzytkownik22
> Is it anywhere gscanner manual? > I found. For people using google ect.: tinyurl.com/9vnk9 How should I add to buffer? I use GsfInput for input stream and: "Some text which content 123" Buffer size 8+1: "Some tex" //Hear is problem "t which " "content " "123" Can I do it(or I must buffer hol

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

Question? Broadcast to widget in a window

2005-07-20 Thread Carsten Rasmussen
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. Some system info! ask:~> uname -a Linux ask 2.4.21 #7 SMP Tue Oct 12 17:08:44 CEST 2004 i686 GNU/Linux ask:~> gtk-config --version 1.2.10 ask:~> gcc --ve

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+ > > applicatio

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 aro

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 http://mail.gnome.org/mailman/listinfo/gtk

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 gtkrc.

Re: GTK_COMBO_BOX_ENTRY activate signal

2005-07-20 Thread Jan-Marek Glogowski
> Now, I'm using the GTK_COMBO_BOX_ENTRY that doesn't have the > "activate" signal, neither let me access the entry inside the combo, > as I used to do with GTK_COMBO. > > Someone know how to do it? GTK_ENTRY( gtk_bin_get_child( GTK_BIN( combo_box ) ) ) Jan-Marek _

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 rem

Re: Removing One Page from GtkNotebook

2005-07-20 Thread Tristan Van Berkom
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 page from GtkNotebook, are the child widgets destr

Re: play wave files in gtk

2005-07-20 Thread Martyn Russell
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, No. > 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. What I ha

Re: GTK_STOCK_CLOSE Button Without Label

2005-07-20 Thread Annamalai Gurusami
Tristan Van Berkom <[EMAIL PROTECTED]> writes: > In 2.4 I guess you can simply: > > button = gtk_button_new (); > image = gtk_image_new_from_stock (...); > gtk_container_add (GTK_CONTAINER (button), image); Thank you very much. This is exactly what I wanted. I actually didn't know about GtkIma

Removing One Page from GtkNotebook

2005-07-20 Thread Annamalai Gurusami
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 page from GtkNotebook, are the child widgets destroyed? Here is a sample code

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 stre

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 st

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 mail

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

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,

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 spam?

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 cr