Bug 65392
Summary: | gtk_timeout_add does not work. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Joe Acosta <josepha48> |
Component: | gtk+ | Assignee: | Owen Taylor <otaylor> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-05-23 03:36:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joe Acosta
2002-05-23 03:36:15 UTC
gtk_timeout_add(UPDATE_TIME, (GtkFunction)uptime_update, widget); [...] void uptime_update (GtkWidget *widget); But gtk_timeout_add() takes a function returning a boolean result, see: http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD (TRUE indicates continue running, FALSE means stop running). So whether your timeout continues running is depending on random memory contents. Did this change in gtk 1.2.<something> ? It seems that this used to take a void function? Maybe you are thinking of gdk_input_add() which takes a void-returning callback? (That inconsistency was fixed in the replacement g_io_add_watch().) gtk_timeout_add() has taking a boolean-returning-function for at least five years (as far back as GTK+ CVS goes) and my memory says "forever". :-) |