How initialize pixmap to something besides NULL?

2002-02-06 Thread Chris Seberino
For various reasons I want to initialize a pixmap (GdkPixmap*) to something besides NULL. Is there another quick and easy thing I can initialize pixmap object too? (There is a command to return a pointer to a new pixmap object but I did not understand the first arg.) Thanks, Chris --

What's purpose of returned boolean in expose/configure event functions?

2002-02-06 Thread Chris Seberino
Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? Thanks, Chris -- === | Dr. Christian Seberino || (619) 553-7940 (office) | |

Please explain 1st arg of configure expose event functions...

2002-02-06 Thread Chris Seberino
Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. Please explain... Here is an example of an expose event function: gint middleMassTimeSeriesPlotPatch(GtkWidget* widget, GdkEventExpose* event) {

vertical or rotated gtk_label_new(TEXT) possible???

2002-02-06 Thread Chris Seberino
Is it possible to have gtk_label_new(TEXT) be vertical or rotated??? Since one cannot put letters in a pixmap this is my only hope for vertical/sideways letters. Thanks, Chris -- === | Dr. Christian Seberino || (619) 553-7940 (office) | |

help!

2002-02-06 Thread Ricky Foo
Hi all, I have this graph that is to show the traffic throughput. It updates every 2 secs. What should be the correct way to do this so that the axes can update dynamically, i.e it progress from right to left, showing the time. The diagram below shows the x-axis. now:

Problem with select_row signal of CList

2002-02-06 Thread inimss
Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to

[INIMSS] Problem with select_row signal of CList

2002-02-06 Thread inimss
Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to

RE: [INIMSS] Problem with select_row signal of CList

2002-02-06 Thread zze-coframi balr001
Title: RE: [INIMSS] Problem with select_row signal of CList Hello, try GTK_SELECTION_BROWSE Isabelle -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoye : mercredi 6 fevrier 2002 10:10 A : [EMAIL PROTECTED] Objet : [INIMSS] Problem with select_row signal

Re: [INIMSS] Problem with select_row signal of CList

2002-02-06 Thread Stephen Witkop
On Wed, 2002-02-06 at 04:10, [EMAIL PROTECTED] wrote: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for

Re: GTK+ equivalent to Motif XtAppProcessEvent()

2002-02-06 Thread John . Cupitt
Ignacio Nodal wrote: I want my aplication to stop the gtk_main() until the user press a button, which change the value of a variable called state: Hi Ignacio, there are two gtk equivalents. First, you can call gtk_main() recursively. In your button callback, call gtk_main_quit(), and the

Re: vertical or rotated gtk_label_new(TEXT) possible???

2002-02-06 Thread Paul Davis
Is it possible to have gtk_label_new(TEXT) be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. if you want to do this, you have to put each letter into a pixmap using tricks that will be

Re: Please explain 1st arg of configure expose event functions...

2002-02-06 Thread Paul Davis
Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the signal receive a pointer to the widget as their first argument.

Re: What's purpose of returned boolean in expose/configure event functions?

2002-02-06 Thread Paul Davis
Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? *all* signal handlers for signals that have a non-void return type must return TRUE or FALSE to indicate whether or not they have

Button press

2002-02-06 Thread David Eduardo Gomez Noguera
Hello. I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to

Re: Button press

2002-02-06 Thread Sven Neumann
Hi, David Eduardo Gomez Noguera [EMAIL PROTECTED] writes: I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times

Re: Button press

2002-02-06 Thread Paul Davis
I wanted to make a button behave lika a keyboard key, in that if i leave the k ey pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment

Re: vertical or rotated gtk_label_new(TEXT) possible???

2002-02-06 Thread Sven Neumann
Hi, Paul Davis [EMAIL PROTECTED] writes: Is it possible to have gtk_label_new(TEXT) be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does

Re: vertical or rotated gtk_label_new(TEXT) possible???

2002-02-06 Thread Paul Davis
Is it possible to have gtk_label_new(TEXT) be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does support rotated glyphs, see

Re: Button press

2002-02-06 Thread David Eduardo Gomez Noguera
On 06 Feb 2002 16:40:22 +0100 Sven Neumann [EMAIL PROTECTED] wrote: Hi, David Eduardo Gomez Noguera [EMAIL PROTECTED] writes: I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal,

Re: Button press

2002-02-06 Thread Paul Davis
Thank you. I was just thinking what would be the best way of action. Have the function registered on a button pressed event, and removed on a butto n realeased event? or have a gtlobal static variable set to TRUE, and the function registered on a button press, and have the button release set

Re: gtk+1.3 library

2002-02-06 Thread Havoc Pennington
satyajit kanungo [EMAIL PROTECTED] writes: Well, I see gtk+ using lot of deprecated calls. I also saw many patches submitted in bugzilla (#52790) but not yet gone into the source. I have replaced all the GtkType GtkTypeInfo to GType GTypeInfo. The attached diff contains the

don't wanna see this CRITICAL

2002-02-06 Thread Ignacio Nodal
Is there any way to avoid this message from being prompt? ** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): assertion `GTK_WIDGET_REALIZED(gl_area)' failed. I just want to call glViewport() in my InitGL() function. I know my gl_area isn't still realized, but I don't

Re: What's purpose of returned boolean in expose/configure event functions?

2002-02-06 Thread Chris Seberino
On Wed, Feb 06, 2002 at 10:09:12AM -0500, Paul Davis wrote: Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? *all* signal handlers for signals that have a non-void return type

Re: What's purpose of returned boolean in expose/configure event functions?

2002-02-06 Thread Paul Davis
Thanks for reply. So it sounds like some signal handlers are only the first of many functions to handle an event. (Most of which we don't see or deal with?) If our function does ALL work then we return TRUE but if it is only one of many then we return FALSE. How are we to know if there are other

Re: don't wanna see this CRITICAL

2002-02-06 Thread Paul Davis
Is there any way to avoid this message from being prompt? ** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): assertion `GTK_WIDGET_REALIZED(gl_area)' failed. I just want to call glViewport() in my InitGL() function. I know my gl_area isn't still realized, but I don't

Re: Please explain 1st arg of configure expose event functions...

2002-02-06 Thread Chris Seberino
On Wed, Feb 06, 2002 at 10:06:24AM -0500, Paul Davis wrote: Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the

Re: Please explain 1st arg of configure expose event functions...

2002-02-06 Thread Paul Davis
This widget that is the first argument seems to be the window that _contains_ the pixmap drawing from what you are saying. no. its the widget for which the event took place and for which the signal is being emitted. this mistake has caused you much later confusion. I'm confused because some

How get NEW value for value_changed event? (from GtkAdjustment object?)

2002-02-06 Thread Chris Seberino
value_changed events are when someone changes value with a slider bar. (I think.) This calls a signal handler that gets the GtkAdjustment object as a parameter. How/where can I pull out the value that slider bar value was changed to. I need to do something with the NEW value! Thanks, Chris

Re: How get NEW value for value_changed event? (from GtkAdjustment object?)

2002-02-06 Thread Paul Davis
value_changed events are when someone changes value with a slider bar. (I think.) This calls a signal handler that gets the GtkAdjustment object as a parameter. How/where can I pull out the value that slider bar value was changed to. I need to do something with the NEW value! sorry chris.

?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ???

2002-02-06 Thread Chris Seberino
I need to sometimes initialize an object to NULL and get this message. How avoid??? warning: ANSI C++ forbids implicit conversion from `void *' in initialization Here is the pixmap class that causes this (outside of main() ) class Pixmaps { private: public: static GdkPixmap*

Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ???

2002-02-06 Thread Paul Davis
I need to sometimes initialize an object to NULL and get this message. How avoid??? this is getting too close to generic programming questions for this list. if you don't understand how to fix this yourself, i worry about future progress on your software. SomeObject *someObject =

Re: don't wanna see this CRITICAL

2002-02-06 Thread Ignacio Nodal
- Original Message - From: Paul Davis [EMAIL PROTECTED] To: Ignacio Nodal [EMAIL PROTECTED] Cc: GTK-List [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 6:13 PM Subject: Re: don't wanna see this CRITICAL Is there any way to avoid this message from being prompt? ** CRITICAL **:

Re: What's purpose of returned boolean in expose/configure event functions?

2002-02-06 Thread Havoc Pennington
Paul Davis [EMAIL PROTECTED] writes: there are also so-called after handlers (connected with gtk_signal_connect_after()) which are called after the default handler. its not clear to me if these will still be called in 1.3/2.0 if a before handler returns TRUE. owen/havoc and others will

wrong location? (n00b question)

2002-02-06 Thread Dexter Filmore
So I installed gtk on my Slack 8 recently for I thought whatever was installed, maybe get the latest version. Then I discovered that 1.2.10 is already enclosured in Slack 8 and friend told me it's not too good having 2 packages of it simultaneously installed. So I kicked the one I installed

How change color, draw border, change other stylistics of SLIDERS???

2002-02-06 Thread Chris Seberino
I have a list of sliders that sort of all blend together. * A nice border around each one would be nice to distinguish different slider components. * Different colors would serve same purpose. * Sliders DO NOT have arrows on each side like scroll bars do!!! How get arrow buttons back?

How change size/font of gtk_label_new(TEXT)???

2002-02-06 Thread Chris Seberino
How change font or size of text for gtk_label_new(TEXT)??? cs -- === | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax)| | 53560 HULL ST || | | SAN

Re: How change color, draw border, change other stylistics of SLIDERS???

2002-02-06 Thread Paul Davis
killing two birds with one stone: 1) How change font or size of text for gtk_label_new(TEXT)??? 2) * Different colors would serve same purpose. GtkWidget *label = gtk_label_new (foo); gtk_widget_set_name (label, SuperlativeLabel); GtkWidget *slider = gtk_hslider_new (); gtk_widget_set_name

Re: don't wanna see this CRITICAL

2002-02-06 Thread Paul Davis
I just want to call glViewport() in my InitGL() function. I know my gl_area isn't still realized, but I don't care... you don't, but gtkglarea.c does. just call gtk_widget_realize() on your glarea before calling InitGL(). --p I know it does, hehehe, but if I call gtk_widget_realize() the

Re: How change color, draw border, change other stylistics of SLIDERS???

2002-02-06 Thread Steph
can't you use gtk_paint_arrow()? - Original Message - From: Paul Davis [EMAIL PROTECTED] To: Chris Seberino [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 2:30 AM Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? killing two