Re: what is the function name that you can send a function to be running every n milliseconds

2005-07-15 Thread y g
On 7/15/05, zhanglei [EMAIL PROTECTED] wrote: y g wrote: Hello, I remember using some kind of function that allowed me to send another function to the background and be called every some milliseconds passed as parameter, but I can't remember its name or where the documentation lies

what is the function name that you can send a function to be running every n milliseconds

2005-07-14 Thread y g
Hello, I remember using some kind of function that allowed me to send another function to the background and be called every some milliseconds passed as parameter, but I can't remember its name or where the documentation lies If someone has a quick answer to that please help... Cheers

Re: GtkButton set pressed

2005-06-17 Thread y g
On 6/17/05, Jirka Pirko [EMAIL PROTECTED] wrote: it works fine to me - BUT if i have button in fixed contrainer i don see (event handlers are called properly) the button pressed (only if i have mouse over) - elsewhere it works ok Jirka has just described the problem. I wanted to see them

remove some of the buttons in the decoration of the window

2005-06-17 Thread y g
Hello, I was looking the documentation of the GtkWindow and I cannot find anything on how to hide/insensitive the buttons on the decoration frame (min, max, destroy). However, the about dialog widget has only one destroy button so there should be a way of hiding them. Does anyone have a clue?

keyboard signals

2005-06-16 Thread y g
Hello, I want to have keys of keyboard mapped to certain things. To make it clear what I am exactry trying to do is while you keep a key pressed down then you move forward and you stop when it is released. Accelerators won't do Can someone give me some directions? Cheers.

GtkButton set pressed

2005-06-16 Thread y g
Hi, I was looking the API documentation of the GtkButton (http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html) and I cannot find a function to set the button pressed or released like gtk_toggle_button_set_mode() of a toggle button.

Re: GtkButton set pressed

2005-06-16 Thread y g
On 6/16/05, David Necas (Yeti) [EMAIL PROTECTED] wrote: gtk_toggle_button_set_mode() affects appearance of radio and check buttons. What it should do with normal buttons? The method to set pressed/released state is called gtk_toggle_bu tton_set_active() sorry rush mistake. and it makes

GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
Hi, after following the scribble example on the Gtk tutorial I try to save the image produced. Looking on the documentation of GdkPixbuf I found I could use the following which however gives me a segmentation fault in my program. static GdkPixmap *pixmap = NULL;

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
On 6/6/05, David Necas (Yeti) [EMAIL PROTECTED] wrote: On Mon, Jun 06, 2005 at 03:22:51PM +0100, y g wrote: after following the scribble example on the Gtk tutorial I try to save the image produced. Looking on the documentation of GdkPixbuf I found I could use the following which however

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
On 6/6/05, David Necas (Yeti) [EMAIL PROTECTED] wrote: On Mon, Jun 06, 2005 at 03:52:32PM +0100, y g wrote: I already did as I realised that neither is a child of the other as you say. But I am still get seg fault with the following: static void save_image(GtkWidget* widget, gpointer

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
Well, I can't see why this variant crashes -- so I compiled it and run under valgrind, and it didn't crash and valgrind even didn't print any (relevant) error. If other image formats crash too for you, you probably have to use debugger to find out what's going on... OK, lets start from

libglade question for page 1

2005-06-05 Thread y g
hi, i have a simple window with a button which when clicked prints to stdout a message. using libglade to interpret the xml file. compiles fine but when i running it i get a warning that signal handler for the button cannot be found. sorry for this trivial question but i think i followed exactly

Re: libglade question for page 1

2005-06-05 Thread y g
sorry, just found the solution with a bit more of googling search. need the -export-dynamic flag to the linker flags. http://galactus.ximian.com/pipermail/glade-users/2003-March/001226.html On 6/5/05, y g [EMAIL PROTECTED] wrote: hi, i have a simple window with a button which when clicked

how to search for a widget in the object hierarchy tree

2005-05-26 Thread y g
hi, is there any way with pure gtk to look for a widget just like the glade lookup_widget function does? cheers, y ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: root windows

2005-05-26 Thread y g
On 5/26/05, Hubert Sokoowski [EMAIL PROTECTED] wrote: Hi! On Thu, 26 May 2005 14:19:16 +0200 Maciej Katafiasz [EMAIL PROTECTED] wrote: Unless by build of glade you mean autogenerated C code, which is bad, bad, bad thing to use. Use libglade, really. why it is bad? I use it and it

lock focus

2005-05-20 Thread y g
hi, i have a confirmation dialog that needs to stay on focus and on top with all the other windows deactivated. Browsed the documentation of the api reference for widget and window but none of the functions rings a bell... as the interface is created with glade there is no parent window to the