about button_press_signal?

2002-01-17 Thread changan
/*function first*/ #include gtk/gtk.h #include stdio.h gint response(GtkWidget *widget,GdkEvent* event,gpointer data) { printf(button was pressed\n); } int main(int argc,char *argv[]) { GtkWidget *window; gtk_init(argc,argv);

Text-View-Width

2002-01-17 Thread Alberto Manuel Brandao Simoes
Same problem with the 'mono' face! -- f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

need statistics

2002-01-17 Thread azra yasin
hello , i am working on a GUI project of GCC for linux , i want to know some statistics about the need to develop the GUI for linux command line compiler. can any one provide me such statistics. thanks in advance. azra Do You Yahoo!? Send FREE video emails in Yahoo! Mail.

Re: need statistics

2002-01-17 Thread Jeff Creem
Yes...66% of the people don't understand your question. 33% are not sure if there is a question in the statements below. - Original Message - From: azra yasin To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 4:48 AM Subject: need statistics hello ,

Re: need statistics

2002-01-17 Thread Appar
Team, All these days we were using this email service effectitivly. I request allnot to miss use it. If you still want to have communication with one person which is not relevant to gtk, please send him/her email directly. I sorry to say this. Thanks RegardsAppar - Original Message

Re: need statistics

2002-01-17 Thread Michael Natterer
Hi, Would you please stop sending HTML mail to the list? thnaks, --Mitch ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), without success. Is it necesary to use XCopyPlane in lieu of some gdk routine? Basically all I want to do is a binary OR between the data in the 2 bitmaps. TIA, Edscott Wilson Garcia

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), without success. Is it necesary to use XCopyPlane in lieu of some gdk routine? When you say without success, what happens? It should work fine. Basically all I want to

Re: need statistics

2002-01-17 Thread Valdis . Kletnieks
On Thu, 17 Jan 2002 01:48:31 PST, azra yasin [EMAIL PROTECTED] said: i am working on a GUI project of GCC for linux , i want to know some statistics about the need to develop the GUI for linux command line compiler. can any one provide me such statistics. GCC is almost always used in a

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
On Thu 17 Jan 2002 10:01, Havoc Pennington wrote: Edscott Wilson García [EMAIL PROTECTED] writes: I've been trying to copy a bitmap into a bitmap with gdk_draw_pixmap(), without success. Is it necesary to use XCopyPlane in lieu of some gdk routine? When you say without success, what

change the colour of widget after it has been shown

2002-01-17 Thread Rahul Pande
Hi, please give me some hint on how to solve this... the problem is that i have already drawn an (arrow) widget, and after gtk_main has been called, i will monitor a file for input. when there is input, a function will be called, and I have the address of the arrow widget, and now at this

Re: change the colour of widget after it has been shown

2002-01-17 Thread Paul Davis
please give me some hint on how to solve this... first of all, please turn off the automatic use of MIME by your email system. there is no reason to use attachments to bind a disclaimer. its also a highly inappropriate disclaimer given that you are writing to a public mailing list asking for

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: After looking at a book by Barkakati, (X Window System Programming, 1991) he says that bitmaps should be copied into pixmaps by XCopyPlane(), not XCopyArea() (the latter being used by gdk_draw_pixmap()). That's right, but I thought you were

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
On Thu 17 Jan 2002 13:38, Havoc Pennington wrote: Edscott Wilson García [EMAIL PROTECTED] writes: After looking at a book by Barkakati, (X Window System Programming, 1991) he says that bitmaps should be copied into pixmaps by XCopyPlane(), not XCopyArea() (the latter being used by

Re: change the colour of widget after it has been shown

2002-01-17 Thread Flávio Alberto Lopes Soares
I create 2 pixmaps equals and put a gtk_timeout_add to swap these pixmaps (I change the function create_pixmap from support.c from gladefiles to make this swap), I believe that works, in this way the pixmap seems to blink. I don't know if it is the better way, but...works. The function that make

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: But isn't a bitmap nothing more than a pixmap of depth 1? If gdk_pixmap_new(window,pix_w,pix_h,1); is not the correct way to create an empty bitmap with gtk, how should it be created? That is the right way. One of us is missing some detail.

Re: change the colour of widget after it has been shown

2002-01-17 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: http://pobox.com/~hp/gtk-colors.html and Havoc - can we get a link to this document added to the GTK+ FAQ? it and the threads questions are the 2 most common queries here, and being able to just tell people to look at the FAQ would be good. Yeah,

How to render text to a drawable? (gtk+ 1.3)

2002-01-17 Thread Jason Tackaberry
Hi everyone, I'd done a bit of programming with gtk+ 1.2 (but not much), and I am working on a new project using gtk 1.3. I have a pixmap that I simply need to render some text to. gdk_draw_text is deprecated, so I assume we are supposed to use pango. I see a pango_x_render, which lets you

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Edscott Wilson García
On Thu 17 Jan 2002 14:21, Havoc Pennington wrote: Edscott Wilson García [EMAIL PROTECTED] writes: But isn't a bitmap nothing more than a pixmap of depth 1? If gdk_pixmap_new(window,pix_w,pix_h,1); is not the correct way to create an empty bitmap with gtk, how should it be created? That

How to set the combo box item

2002-01-17 Thread Andy Schmidgall
I'm using a combo box in one of my applications. I can set it up fine, and it works ok. I am just wondering if there is a way to set what item is selected? For example, I might want the combo box to automatically select a certain item based input from other widgets. I looked through the docs and

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Paul Davis
On Thu 17 Jan 2002 14:21, Havoc Pennington wrote: Edscott Wilson García [EMAIL PROTECTED] writes: But isn't a bitmap nothing more than a pixmap of depth 1? If gdk_pixmap_new(window,pix_w,pix_h,1); is not the correct way to create an empty bitmap with gtk, how should it be created? That

got it:bitmaps

2002-01-17 Thread Edscott Wilson García
From the docs: The created GC must always be used with drawables of the same depth as this one. The gc I am using during bitmap copy does not have depth 1. This must be the problem. I probably have to use create the gc using the original bitmap, not the window. Thank you much for your help,

Re: How to render text to a drawable? (gtk+ 1.3)

2002-01-17 Thread Havoc Pennington
Jason Tackaberry [EMAIL PROTECTED] writes: I see a pango_x_render, which lets you render to an X drawable, but I don't see any gdk equivalent. I suppose I could fetch the X drawable from gdk but it seems to me the _right_ way to do this shouldn't be that convoluted. I'm convinced I'm

Re: Copying bitmaps into bitmaps

2002-01-17 Thread Havoc Pennington
Edscott Wilson García [EMAIL PROTECTED] writes: gc = gdk_gc_new (h-window); Try using one of the bitmaps here instead of the window, the bad match may be a GC/drawable issue rather than src/dest drawable. Havoc ___ gtk-list mailing list [EMAIL

Re: How to render text to a drawable? (gtk+ 1.3)

2002-01-17 Thread Jason Tackaberry
On Thu, 2002-01-17 at 17:17, Havoc Pennington wrote: Yep, you want gdk_draw_layout(). Too easy. Thanks, Havoc. Regards, Jason. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: How to set the combo box item

2002-01-17 Thread Skip Montanaro
Andy I'm using a combo box in one of my applications. I can set it up Andy fine, and it works ok. I am just wondering if there is a way to Andy set what item is selected? For example, I might want the combo box Andy to automatically select a certain item based input from other

How do other non GUI stuff during gtk_main? (Parallel process?...)

2002-01-17 Thread Chris Seberino
gtk_main makes program wait for GTK+ events. What if I want to have a math program also running **at the same time**??? I want this math program to keep streaming numbers that cause pictures to change on GUI. Likewise, I want events to affect behavior of math program. How can I have GUI and

Why some code for certain events declared to be static???

2002-01-17 Thread Chris Seberino
GTK+ Tutorial has scribble.c code that has many subroutines that are tied to events. Many of these are static. Please explain what static gives you in C. Sincerely, Chris -- === | Dr. Christian Seberino || (619) 553-7940 (office) | |

Drawing on pixmap good just because expose event handled faster?

2002-01-17 Thread Chris Seberino
Is the only reason why drawing on pixmaps is preferred because portion of window to be redrawn can be done faster with regards to an expose event??? Is the sole purpose of inventing a pixmap object scribbl.c in GTK+ tutorial has a pixmap object to be global I think and defined to be static.

configure event just means resized or first displayed right?

2002-01-17 Thread Chris Seberino
Does the configure event just imply window was resized and/or just created??? Chris -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST ||

Re: Why some code for certain events declared to be static???

2002-01-17 Thread Skip Montanaro
Chris GTK+ Tutorial has scribble.c code that has many subroutines that Chris are tied to events. Chris Many of these are static. Please explain what static gives you Chris in C. In a small standalone application like scribble it doesn't really buy you much, but if you are

Re: How do other non GUI stuff during gtk_main? (Parallel process?...)

2002-01-17 Thread rsteinke
From: Chris Seberino [EMAIL PROTECTED] gtk_main makes program wait for GTK+ events. What if I want to have a math program also running **at the same time**??? I want this math program to keep streaming numbers that cause pictures to change on GUI. Likewise, I want events to affect

Re: configure event just means resized or first displayed right?

2002-01-17 Thread Havoc Pennington
Hi, Configure event means the drawing area got a new size. This always happens at least once when the drawing area first comes onscreen. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Any toy code showing use of fork pipes GTK+ together anywhere? (e.g. real time EKG simulation!!!)

2002-01-17 Thread Chris Seberino
This list is giving me great advice on lots of stuff but I am nowhere near some of the GTK+ gods on this list and won't be for a long time if ever. Does anyone know of any sample GTK+ programs that fork off a data generating program and then collect that data with pipes to affect GUI e.g.