Re: Contextual menus and realtime graphics

2002-03-27 Thread Pavel Rousnak
> > Then I'll need to put in my window some realtime graphic stuff, what is > the > > best widget available (I mean, is there a Xshm widget available, is there > > some DGA stuff available through gtk, etc etc ?) > > gdk_draw_rgb_image() paints an RGB image as quickly as possible ... is > that

RE: How center a small button horizontally like in this picture....

2002-03-27 Thread hunchback
>use a GtkAlignment with xalign and yalign set to 0.5. or you can simply use a GtkFixed instead, in which you define the exact position of the Widget: GtkWidget *button = gtk_button_new_with_label("Hello"); gtk_widget_set_usize(button, 80, 25); gtk_widget_show(button); GtkWidget *fixed = gtk_

Re: Having problems with gtk_editable_copy_clipboard

2002-03-27 Thread Bradley F. Hartman
> copy_clipboard signal is emitted when you call > gtk_editable_copy_clipboard(), and you call > gtk_editable_copy_clipboard() from the signal handler. Whew... The documentation indicates that this function "Causes the characters in the current selection to be copied to the clipboard." This i

Re: GTK+ (embarrassing) Makefile question...

2002-03-27 Thread Christian Seberino
I think I just got it. When I add 2 things on same rule line /your way/ it seems to only "catch" files that have both a .cpp AND .h version. It seems that .cpp files with NO .h analog EACH need a separate rule for them. A Chris On Wed, Mar 27, 2002 at 10:59:18AM -0800, Christian Sebe

Re: Want slider/scrollbar AND box to enter value in by hand if de sired - how do this?

2002-03-27 Thread Christian Seberino
John Thanks! I saw your jpeg and it is pretty similar to what I am trying to do. I noticed you don't have the value above your sliders. How does user know what value he is getting when he uses your sliders??? There are lots of related widgets... sliders, scrollbars, hscales, etc. and they all

Re: How center a small button horizontally like in this picture....

2002-03-27 Thread Sven Neumann
Hi, Christian Seberino <[EMAIL PROTECTED]> writes: > I want a button to be centered horizontally in a vbox like this: > > > -- > | -- |<--- vbox > | |Button|| > | -- | > -- > > > Notice empty space abo

Re: how to know width and height of a pixmap

2002-03-27 Thread Christian Seberino
Something like this? gint width = drawingArea->allocation.width; gint height = drawingArea->allocation.height; drawingArea = window in your terminology I think. Chris On Wed, Mar 27, 2002 at 07:44:20PM +0100, Elisa Manara wrote: > Hi all, > > I create a pixmap from a XPM file: > > g

Re: GTK+ (embarrassing) Makefile question...

2002-03-27 Thread Christian Seberino
Ron Thanks for reply. I was getting desperate to get this Makefile question answered since it was slowing down my GTK+ work and I didn't know of any make mailing lists. I hope this one post was OK. :) I made the changes you mentioned to rules but now mysteriously Main.cpp doesn't get flags when

Re: Want slider/scrollbar AND box to enter value in by hand if desired - how do this?

2002-03-27 Thread John . Cupitt
Christian Seberino wrote: > slider/scrollbars are good to enter values with a MOUSE... > > It will sometimes be nice to just type the number in >with a KEYBOARD into some little BOX (whatever this widget is called) > > How do BOTH and what is the name of widget(s) to do this? You can

how to know width and height of a pixmap

2002-03-27 Thread Elisa Manara
Hi all, I create a pixmap from a XPM file: gdk_pixmap = gdk_pixmap_create_from_xpm( window->window, &mask, &style->bg[GTK_STATE_NORMAL], "my_pixmap_file"); pixmap = gtk_pixmap_new( gdk_pixmap, mask ); How can I get width and height of a pixmap created as shown? Thanks, Elisa. ___

Re: How center a small button horizontally like in this picture....

2002-03-27 Thread Ralph Walden
Playing around with glade, here is what I found to work: vbox hbox <-- noexpand, nofill button <-- expand, nofill - | | | || | | | -- |<-hbox|<--- vbox | ||Button|| | | | -- | |

Getting a nultiple selection from a CList

2002-03-27 Thread Neil Hodge
All: I can't find any documentation regarding how to get the results from a multiple selection in a CList. Any help would be much appreciated. Thanks. Neil Hodge __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movi

Re: GTK+ (embarrassing) Makefile question...

2002-03-27 Thread rsteinke
From: Christian Seberino <[EMAIL PROTECTED]> > > This Makefile will recreate GTK+ object file if header file > is "touched" with touch command which is good > > It will NOT recreate object file when *.cpp file is > "touched" the same way. > > WHY IS the "%.o: %.h" rule working > but the "%.o:

Re: GTK+ (embarrassing) Makefile question...

2002-03-27 Thread Mark Leisher
Christian> WHY IS the "%.o: %.h" rule working but the "%.o: %.cpp" rule IS Christian> NOT!!??!?!? You need to add the following line: .SUFFIXES: .cpp - Mark Leisher Computing Research LabTele

Want slider/scrollbar AND box to enter value in by hand if desired - how do this?

2002-03-27 Thread Christian Seberino
slider/scrollbars are good to enter values with a MOUSE... It will sometimes be nice to just type the number in with a KEYBOARD into some little BOX (whatever this widget is called) How do BOTH and what is the name of widget(s) to do this? Thanks, Chris -- ==

How center a small button horizontally like in this picture....

2002-03-27 Thread Christian Seberino
I want a button to be centered horizontally in a vbox like this: -- | -- |<--- vbox | |Button|| | -- | -- Notice empty space above, below and to right and left. How do this I created a hbox and pac

Want slider/scrollbar AND box to enter value in by hand if desired - how do this?

2002-03-27 Thread Christian Seberino
slider/scrollbars are good to enter values with a MOUSE... It will sometimes be nice to just type the number in with a KEYBOARD into some little BOX (whatever this widget is called) How do BOTH and what is the name of widget(s) to do this? Thanks, Chris -- ==

GTK+ (embarrassing) Makefile question...

2002-03-27 Thread Christian Seberino
This Makefile will recreate GTK+ object file if header file is "touched" with touch command which is good It will NOT recreate object file when *.cpp file is "touched" the same way. WHY IS the "%.o: %.h" rule working but the "%.o: %.cpp" rule IS NOT!!??!?!? Here is makefile... PROGRAM =

How center a small button horizontally like in this picture....

2002-03-27 Thread Christian Seberino
I want a button to be centered horizontally in a vbox like this: -- | -- |<--- vbox | |Button|| | -- | -- Notice empty space above, below and to right and left. How do this I created a hbox and pac

GTK+ (embarrassing) Makefile question...

2002-03-27 Thread Christian Seberino
This Makefile will recreate GTK+ object file if header file is "touched" with touch command which is good It will NOT recreate object file when *.cpp file is "touched" the same way. WHY IS the "%.o: %.h" rule working but the "%.o: %.cpp" rule IS NOT!!??!?!? Here is makefile... PROGRAM =

Re: Having problems with gtk_editable_copy_clipboard

2002-03-27 Thread Havoc Pennington
"Bradley F. Hartman" <[EMAIL PROTECTED]> writes: > I just don't understand why my signal handler is called ~5K times before > the program dumps core when I select "Copy" after right clicking in the > text entry field. Any ideas? > copy_clipboard signal is emitted when you call gtk_editable_

Re: Having problems with gtk_editable_copy_clipboard

2002-03-27 Thread Owen Taylor
"Bradley F. Hartman" <[EMAIL PROTECTED]> writes: > Owen, > > Thanks for the response. > > > What are you trying to achieve? > > Being relatively new to GTK, I am experimenting with different methods of > accomplishing different tasks. I found that the default copy/paste > methods worked wel

Re: Having problems with gtk_editable_copy_clipboard

2002-03-27 Thread Bradley F. Hartman
Owen, Thanks for the response. > What are you trying to achieve? Being relatively new to GTK, I am experimenting with different methods of accomplishing different tasks. I found that the default copy/paste methods worked well but wanted to try my own copy/paste handler to ramp up on the avail

Re: Having problems with gtk_editable_copy_clipboard

2002-03-27 Thread Owen Taylor
"Bradley F. Hartman" <[EMAIL PROTECTED]> writes: > Hello, > > I am having problems with the function, gtk_editable_copy_clipboard, on the > Solaris 2.6 platform. I created a very simple program, which creates a > GtkEntry (for text input), as shown below: > >entry = gtk_entry_new (); >

Having problems with gtk_editable_copy_clipboard

2002-03-27 Thread Bradley F. Hartman
Hello, I am having problems with the function, gtk_editable_copy_clipboard, on the Solaris 2.6 platform. I created a very simple program, which creates a GtkEntry (for text input), as shown below: entry = gtk_entry_new (); gtk_entry_set_max_length (GTK_ENTRY (entry), 50); I then attached

Re: Contextual menus and realtime graphics

2002-03-27 Thread Jean-Yves Lamoureux
Le Mercredi 27 Mars 2002 11:24, Paul Davis a écrit : > >Le Mercredi 27 Mars 2002 14:47, vous avez écrit : > you probably didn't set the events to be received by the widget. see > gtk_widget_set_events(). gtk_signal_connect (GTK_OBJECT (window), "event", GTK_SIGNAL_FUNC (MyHandler), GTK_OBJEC

GTK+ 2.0 linux-fb: gtk-demo segmentation fault in key_hash_insert_entry

2002-03-27 Thread zze-maeva balr010
Title: GTK+ 2.0 linux-fb: gtk-demo segmentation fault in key_hash_insert_entry Hi all, Platform: x86, kernel 2.4.4 including a framebuffer driver. Installation:    GLIB-2.0.0 standard    ATK-1.0.0 standard    PANGO-1.0.0 configured with "--without-x"    GTK+-2.0.0 configured with "--with-gdkta

Re: Contextual menus and realtime graphics

2002-03-27 Thread Paul Davis
>Le Mercredi 27 Mars 2002 14:47, vous avez écrit : > >> Make a menu and use gtk_menu_popup() to display it when you get a click. > >Yes, it works, thanks. But ... :)) (there's always a 'but' :) > >To connect my Drawing Area (RGB Image), I use that : > >gtk_signal_connect_object (GTK_OBJECT (Drawi

Re: Contextual menus and realtime graphics

2002-03-27 Thread Jean-Yves Lamoureux
Le Mercredi 27 Mars 2002 14:47, vous avez écrit : > Make a menu and use gtk_menu_popup() to display it when you get a click. Yes, it works, thanks. But ... :)) (there's always a 'but' :) To connect my Drawing Area (RGB Image), I use that : gtk_signal_connect_object (GTK_OBJECT (DrawingArea),

Re: Contextual menus and realtime graphics

2002-03-27 Thread John . Cupitt
Jean-Yves Lamoureux wrote: > I will soon be interessted with contextual menus, what is the concerned > widget ? (or a source/tutorial/doc that can explain me) Make a menu and use gtk_menu_popup() to display it when you get a click. > Then I'll need to put in my window some realtime graphic st

Contextual menus and realtime graphics

2002-03-27 Thread Jean-Yves Lamoureux
Hi all I will soon be interessted with contextual menus, what is the concerned widget ? (or a source/tutorial/doc that can explain me) Then I'll need to put in my window some realtime graphic stuff, what is the best widget available (I mean, is there a Xshm widget available, is there some D

Gdk-ERROR **: BadLength (poly request too large or internal Xlib length erro

2002-03-27 Thread Lourdes Maldonado
I was running my application overnight on three different machines (all with the same configuration) and one of them crashed with the following message: Gdk-ERROR **: BadLength (poly request too large or internal Xlib length erro serial 1294146 error_code 16 request_code 74 minor_code 0 I hav

applet-widget.h ???

2002-03-27 Thread [EMAIL PROTECTED]
Hi every one, please can someone send me or tell me where to get the applet-widget.h file ? And if possible how to use this widget? Thank you in advance ! Good Time, Yours, Youssa ! Faites un voeu et puis Voila ! www.voila.f