Re: Typing Right-To-Left language characters in GtkEntry

2005-06-14 Thread Viraj Chatterjee
It should work with gnome-terminal. -vc - Original Message - From: "Gaurav Jain" <[EMAIL PROTECTED]> To: "Mohammed Sameer" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, June 15, 2005 10:53 AM Subject: Re: Typing Right-To-Left language characters in GtkEntry I'm using Xterm. On 6/11/05,

Re: Typing Right-To-Left language characters in GtkEntry

2005-06-14 Thread Gaurav Jain
I'm using Xterm. On 6/11/05, Mohammed Sameer <[EMAIL PROTECTED]> wrote: > On Thu, Jun 09, 2005 at 12:29:02PM +0530, Gaurav Jain wrote: > > Yes, this time it worked! In fact even without setting the font to > > the Code2000 font for the GtkEntry, I'm able to type Arabic text into > > the entry. T

Fwd: C & P event from x

2005-06-14 Thread Arx Henrique
thanks a lot i'll read more about clipboard :) On 6/14/05, Muthiah Annamalai <[EMAIL PROTECTED]> wrote: > Hello! > > --- Arx Henrique <[EMAIL PROTECTED]> wrote: > > i'm newbie in gtk, and i'm making a simple program > > Welcome to GTK! > Explore documents at > > 1. Www.gtk.org/ | tutorials | artic

Re: C & P event from x

2005-06-14 Thread Muthiah Annamalai
Hello! --- Arx Henrique <[EMAIL PROTECTED]> wrote: > i'm newbie in gtk, and i'm making a simple program Welcome to GTK! Explore documents at 1. Www.gtk.org/ | tutorials | articles | code 2. $ gtk-demo & | A simple & powerful demo of GTK+ 3. http://developer.gnome.org | GTK+ & GNOME programming

RE: Delete a gtktextbuffer to fill it again

2005-06-14 Thread Freddie Unpenstein
> I use gtk_text_buffer_delete this way: > if (textbuf != NULL) { > gtk_text_buffer_get_start_iter (textbuf,&start); > gtk_text_buffer_get_end_iter (textbuf,&end); > gtk_text_buffer_delete (textbuf,&start,&end); > } As an aside, there is a function that will get both iters at th

Problem: Multithread Application and gtk_widget_show with gtk-2.0

2005-06-14 Thread Rita Shrivastava
Hi all, I have a application that was build using the gtk-1.2 readhat 9.0. The application has two threads. The main thread is the display thread, while the second one updates the display on sometimes. When the secons thread updated the display , The following error occurs:

Re: using autoconf

2005-06-14 Thread Johannes Tanzler
Am Dienstag, den 14.06.2005, 21:31 +0530 schrieb Mohit Gogia: > i am new to autotools. i have made gnome applet which uses gtk,gtkhtml > and libpanelapplet2 libraries.i want to use autoconf and automake to > make a ditsribution package of this applet..can somebody give me > sample configure.in and

Re: casting macros question

2005-06-14 Thread Paul Pogonyshev
Aleksandr Koltsoff wrote: > This might sound like a stupid question to some one, but a simple yes/no > answer will do :-) > > Should the following code be caught at compile-time (rather than run-time): > > gtk_layout_set_adjustment(layout, GTK_ADJUSTMENT(widget)); > > layout is GtkLayout and widget

Re: casting macros question

2005-06-14 Thread David Necas (Yeti)
On Tue, Jun 14, 2005 at 10:24:27PM +0300, Aleksandr Koltsoff wrote: > This might sound like a stupid question to some one, but a simple yes/no > answer will do :-) > > Should the following code be caught at compile-time (rather than run-time): > > gtk_layout_set_adjustment(layout, GTK_ADJUSTMENT

casting macros question

2005-06-14 Thread Aleksandr Koltsoff
This might sound like a stupid question to some one, but a simple yes/no answer will do :-) Should the following code be caught at compile-time (rather than run-time): gtk_layout_set_adjustment(layout, GTK_ADJUSTMENT(widget)); layout is GtkLayout and widget is GtkWidget. ak. __

Re: GtkListStore and Threads problems

2005-06-14 Thread Peter Bloomfield
On 06/14/2005 02:20:16 PM Tue, Lorena Salinas wrote: Hi, This is what I do inside the worker_thread function (create_and_start_worker_thread ()) every time I want to update the model: gdk_threads_enter();/* get GTK thread lock */ gtk_list_store_set (GTK_LIST_STORE (host_model), &i

C & P event from x

2005-06-14 Thread Arx Henrique
Hi, i'm newbie in gtk, and i'm making a simple program here, and i want know how can i get copy and paste event from x in my gtk app ? -- "A fé remove montanas, mas eu prefiro a dinamite" ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.or

Re: GtkListStore and Threads problems

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 15:20 -0300, Lorena Salinas wrote: > Hi, > > This is what I do inside the worker_thread function > (create_and_start_worker_thread ()) every time I want to update the > model: > > > gdk_threads_enter(); /* get GTK thread lock */ > > gtk_list_store_set (GTK_LIST_ST

Re: [gsf] stdin/stdout + "tee"

2005-06-14 Thread Jody Goldberg
On Tue, Jun 14, 2005 at 08:08:13PM +0200, Uzytkownik wrote: > > 2. Can I create one GsfOutput, which automatically send to two(or more) > another? We haven't written such an output, but you could easily whip up something. I'd be happy to include that in future versions. _

Re: GtkListStore and Threads problems

2005-06-14 Thread Lorena Salinas
Hi, This is what I do inside the worker_thread function (create_and_start_worker_thread ()) every time I want to update the model: gdk_threads_enter();/* get GTK thread lock */ gtk_list_store_set (GTK_LIST_STORE (host_model), &iter, MYMODEL_COL_STATUS, STATUS

Re: [gsf] stdin/stdout + "tee"

2005-06-14 Thread Hubert Sokołowski
On Tue, 14 Jun 2005 20:08:13 +0200 Uzytkownik <[EMAIL PROTECTED]> wrote: > 1. How I should access to std{in,out,err} is recommended? > By FILE * or IOChannel *? better use GIOChannel. I experienced strange problems on windows platform when using FILE in a gtk application.

Re: GtkTreeView issues (porting from GtkCList)

2005-06-14 Thread André Pedralho
I was trying to port a GTK1 app toward a GTK2 app. In my GTK1 app I was using a CTree and I had to implement a TreeView in my GTK2 app to show my old tree. I have two questions: 1) There is a way to set the root of the tree? e.g: root > child 1 > child 2 What I want is: in this example,

[gsf] stdin/stdout + "tee"

2005-06-14 Thread Uzytkownik
1. How I should access to std{in,out,err} is recommended? By FILE * or IOChannel *? 2. Can I create one GsfOutput, which automatically send to two(or more) another? Best regards -- Linux user: #376500 (see http://counter.li.org/) ___ gtk-app-devel-list

Re: GtkListStore and Threads problems

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 14:40 -0300, Lorena Salinas wrote: > Hi, > > This is my app's main function: > > int main (int argc, char **argv) > > { > > /* init threads */ > g_thread_init(NULL); > > gdk_threads_init(); > > /* init gtk */ > gtk_init (&argc, &

Re: GtkListStore and Threads problems

2005-06-14 Thread Lorena Salinas
Hi, This is my app's main function: int main (int argc, char **argv) { /* init threads */ g_thread_init(NULL); gdk_threads_init(); /* init gtk */ gtk_init (&argc, &argv); /* create the model and fill with data */

using autoconf

2005-06-14 Thread Mohit Gogia
i am new to autotools. i have made gnome applet which uses gtk,gtkhtml and libpanelapplet2 libraries.i want to use autoconf and automake to make a ditsribution package of this applet..can somebody give me sample configure.in and Makefile.am files which will help me in this reagrd.. thanx. -- __

Re: GtkTreeView issues (porting from GtkCList)

2005-06-14 Thread Jan-Marek Glogowski
Hi Yury > Yury Aliaev wrote: > > > 2) When pressing the left mouse button and moving the cursor vertically > > the selection in GtkCList follow the cursor. In GtkTreeView -- not. How > > can I obtain in GtkTreeView the same behavior as in GtkCList? Not the same problem, but you may be able to ada

Re: GtkListStore and Threads problems

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 09:59 -0300, Lorena Salinas wrote: > Hello, > > I'm having problems with threads and a gtkliststore model. > > My working thread updates a column value of a gtkliststore model using > gtk_list_store_set() (every call surrounded by gdk_threads_enter() and > gdk_threads_leav

Re: g_main_context_prepare(): main loop already active in another thread

2005-06-14 Thread Owen Taylor
On Tue, 2005-06-14 at 13:03 +0200, Colossus wrote: > Hi, > > I red the gtk_threads html page. I put the pair gdk_threads_enter() / > gdk_threads_leave() inside a function outside the gtk_main loop as > showed below: > > void signalhandler (int signum) > { > int status; > waitpid ( -

Re: GTK and the stressed vowels ( à è ì ò ù )

2005-06-14 Thread Peter Bloomfield
On 06/14/2005 09:52:19 AM Tue, Colossus wrote: Hi, I have to insert in a liststore some filenames containing stressed vowels. I get a Pango layout warning message in the console and the GUI hangs. How to avoid this ? See

GTK and the stressed vowels ( à è ì ò ù )

2005-06-14 Thread Colossus
Hi, I have to insert in a liststore some filenames containing stressed vowels. I get a Pango layout warning message in the console and the GUI hangs. How to avoid this ? Thanks, -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/

GtkListStore and Threads problems

2005-06-14 Thread Lorena Salinas
Hello, I'm having problems with threads and a gtkliststore model. My working thread updates a column value of a gtkliststore model using gtk_list_store_set() (every call surrounded by gdk_threads_enter() and gdk_threads_leave ()). That seems to be working right. The problem is, when the main t

Re: Delete a gtktextbuffer to fill it again

2005-06-14 Thread Eduardo M KALINOWSKI
Colossus wrote: > Hi, > > I use gtk_text_buffer_delete this way: > > if (textbuf != NULL) > { > gtk_text_buffer_get_start_iter (textbuf,&start); > gtk_text_buffer_get_end_iter (textbuf,&end); > gtk_text_buffer_delete (textbuf,&start,&end); > } Have you tried using gtk_text_buffer_set_

g_main_context_prepare(): main loop already active in another thread

2005-06-14 Thread Colossus
Hi, I red the gtk_threads html page. I put the pair gdk_threads_enter() / gdk_threads_leave() inside a function outside the gtk_main loop as showed below: void signalhandler (int signum) { int status; waitpid ( -1, &status, WNOHANG ); gdk_threads_enter(); if (

Re: Delete a gtktextbuffer to fill it again

2005-06-14 Thread Muthiah Annamalai
Hello Giant{colossus}! --- Colossus <[EMAIL PROTECTED]> wrote: > I use gtk_text_buffer_delete this way: > > if (textbuf != NULL) > { > gtk_text_buffer_get_start_iter (textbuf,&start); > gtk_text_buffer_get_end_iter (textbuf,&end); > gtk_text_buffer_delete (textbuf,&start,&end);

Re: Determining the number of visible lines in a GtkTextView

2005-06-14 Thread Stephen Kennedy
> > > Well, besides determining the width of the > > > GtkTextView in > > > characters, I also need to determine its height in > > > lines, or the number > > > of visible lines. I've tried a solution with font > > > metrics, but the value Here's an outline. It's pygtk, but I'm sure you can fi

Re: Delete a gtktextbuffer to fill it again

2005-06-14 Thread Colossus
Colossus wrote: I fill the text gtk_text_buffer this way: if (line != NULL) gtk_text_buffer_insert(textbuf, &enditer, line, strlen( line ) ); As it always happens after sending this email to the list I got the solution: I forgot to call gtk_text_buffer_get_start_iter(textbuf, &enditer); after

Delete a gtktextbuffer to fill it again

2005-06-14 Thread Colossus
Hi, I use gtk_text_buffer_delete this way: if (textbuf != NULL) { gtk_text_buffer_get_start_iter (textbuf,&start); gtk_text_buffer_get_end_iter (textbuf,&end); gtk_text_buffer_delete (textbuf,&start,&end); } However the very second time I try to fill the gtktextbuffer wi