pepe1977 / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

Timer widget #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Timer widget.

Maybe something like:

<timer interval="1000">
    <variable>TIMER</variable>
    <action>Tick</action>
</timer>

Some of the action functions could be made use of, such as enable, disable, 
clear or removeselected (delete).

g_timeout_add and maybe g_timeout_add_seconds (choice)

http://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout
-add

Original issue reported on code.google.com by thunor...@hotmail.com on 20 Jul 2011 at 10:32

GoogleCodeExporter commented 9 years ago
GtkInvisible

http://developer.gnome.org/gtk/2.24/GtkInvisible.html

Original comment by thunor...@hotmail.com on 10 Aug 2011 at 5:02

GoogleCodeExporter commented 9 years ago
Done. Used a GtkLabel in the end with an attached timer and a custom "tick" 
signal. Couldn't use GtkInvisible as it is toplevel, but then it's nice to be 
able to see the timer when developing anyway.

Original comment by thunor...@hotmail.com on 11 Aug 2011 at 11:03