gtk_timeout_change() solution

2001-10-29 Thread David J. Topper
Hi folks, Ok, this works. It doesn't solve problems with using the GUI event scheulder, but I'll take it for now. Basically, I have my function return FALSE, which terminates the current "timer." But before doing that, I have it set a timer with the current interval value. Makes nice smooth t

Re: gtk_timeout_change()?

2001-10-29 Thread David J. Topper
Paul Davis wrote: > yes, this makes sense, but its still a bad practice to use the GUI > event loop to deliver precisely timed events. you'd be much better off > using sigitimer(), although alas the obvious method is to use > sigitimer and threads, and thats a problematic area (pthreads + POSIX >

changing a combo's popdown strings from select-list callback?

2001-10-29 Thread Skip Montanaro
I can stimulate a segmentation violation if I change the popdown strings of a GtkCombo while it is popped up. This simple Python script is sufficient to generate a core file: #!/usr/bin/env python import gtk recursive = 0 def fill_new(l, item, combo): global recursive

gdk_pointer_grab() problem

2001-10-29 Thread Vladimir Ivaschenko
Hi All, I've been trying to write an application (using Glade) which grabs the mouse as soon as it starts. However I've been unable to reach any success. If I try to do gtk_widget_show (window1); grab_widget = lookup_widget(window1, "fixed1"); gdk_pointer_grab(grab_widget->window,

GTK Application Builder

2001-10-29 Thread Oliver Singla
Hi, I've put a new version of GLG, Application Builder for the GTK and/or Gnome. Many bug fixes, cscope support, styles support, etc. Looking forward to hear suggestions, problems, etc. Source and/or binaries can be downloaded from http://glg.sourceforge.net/ Olivier _

Re: gtk_timeout_change()?

2001-10-29 Thread Paul Davis
>If I have a timeout pulsing every 0.3 seconds, then change that to >something else, I have removed the 0.3 second pulse. So of course it >won't be smooth. While I'm updating my timer pulse via a slider or any >other mechanism, unless the delay between the update is LESS than the >pulse interval

gtk_timeout_change()?

2001-10-29 Thread Esteban Quijano Vincenzi
Title: gtk_timeout_change()? > -Original Message- > From: David J. Topper [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 10:57 AM > To: Paul Davis > Cc: Havoc Pennington; [EMAIL PROTECTED] > Subject: Re: gtk_timeout_change()? > > > Hi folks, > > Well, at least I know wh

Re: gtk_timeout_change()?

2001-10-29 Thread David J. Topper
Hi folks, Well, at least I know what's possible. The problem I'm having isn't because of GUI latency or anything like that. It's due to the nature of gtk_timeout_add() and gtk_timeout_remove(). It's a different paradigm. If I have a timeout pulsing every 0.3 seconds, then change that to somet

New version of GLG (GTK Application Builder)

2001-10-29 Thread Olivier Singla
Hi, I've put a new version of GLG, Application Builder for the GTK and/or Gnome. Many bug fixes, cscope support, styles support, etc. Looking forward to hear suggestions, problems, etc. Source and/or binaries can be downloaded from http://glg.sourceforge.net/ Olivier _

Re: gtk_timeout_change()?

2001-10-29 Thread rsteinke
From: "David J. Topper" <[EMAIL PROTECTED]> > > Havoc Pennington wrote: > > > There isn't a way to change it, other than add/remove. The add/remove > > should work fine though, it's only a couple more lines of code to > > type. > > It does "work" just not smoothly. Basically, I'm working on a sim

Re: gtk_timeout_change()?

2001-10-29 Thread Paul Davis
>> There isn't a way to change it, other than add/remove. The add/remove >> should work fine though, it's only a couple more lines of code to >> type. > >It does "work" just not smoothly. Basically, I'm working on a simple audio >app. where I use gtk_timeout_add() to trigger a pulse or beat. I t

FW: Attaching functions to widgets

2001-10-29 Thread Lourdes Maldonado
-Original Message- From: Lourdes Maldonado Sent: Monday, October 29, 2001 10:22 AM To: Gtk-List (E-mail) Subject: Attaching functions to widgets Hi, I have a library that implements several dialog boxes. This library gets linked in by two applications (say 1 and 2). One of the di

Re: gtk_timeout_change()?

2001-10-29 Thread David J. Topper
Havoc Pennington wrote: > There isn't a way to change it, other than add/remove. The add/remove > should work fine though, it's only a couple more lines of code to > type. It does "work" just not smoothly. Basically, I'm working on a simple audio app. where I use gtk_timeout_add() to trigger a

Attaching functions to widgets

2001-10-29 Thread Lourdes Maldonado
Hi, I have a library that implements several dialog boxes. This library gets linked in by two applications (say 1 and 2). One of the dialog boxes in the library contains Continue and Cancel options, when Continue is selected, depending on the application running, a function from application 1

Looking 4 a Matrix Widget with Multi-Selection

2001-10-29 Thread Jean-Christophe Berthon
Hello, I need a Matrix Widget with the following features : - being able to select multiple-cells (not necesserily contiguous - meaning that they can be spread and not in one block) - displaying Titles menu for each column - displaying at least numbers (or char*) in each cells. I've tryed the