<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=GTK_basic_setup_with_timer_in_main_thread</id>
	<title>GTK basic setup with timer in main thread - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.acrodus.uk/index.php?action=history&amp;feed=atom&amp;title=GTK_basic_setup_with_timer_in_main_thread"/>
	<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=GTK_basic_setup_with_timer_in_main_thread&amp;action=history"/>
	<updated>2026-04-04T02:37:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://wiki.acrodus.uk/index.php?title=GTK_basic_setup_with_timer_in_main_thread&amp;diff=109&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;Hello future Alex,  This is extract of your GTK rail control system application. Past Alex has added this as refer rence on how to setup with GTK4. This also attaches a timer in the main thread.  Not everything is in the below extract, however should jog your memory on the function calls to use.  &lt;pre&gt; int main(int argc, char **argv){          gtk_init();         gboolean done = FALSE;                  GMainLoop *loop =NULL;         loop = g_main_loop_new(NULL, FALSE);...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.acrodus.uk/index.php?title=GTK_basic_setup_with_timer_in_main_thread&amp;diff=109&amp;oldid=prev"/>
		<updated>2025-02-05T20:06:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Hello future Alex,  This is extract of your GTK rail control system application. Past Alex has added this as refer rence on how to setup with GTK4. This also attaches a timer in the main thread.  Not everything is in the below extract, however should jog your memory on the function calls to use.  &amp;lt;pre&amp;gt; int main(int argc, char **argv){          gtk_init();         gboolean done = FALSE;                  GMainLoop *loop =NULL;         loop = g_main_loop_new(NULL, FALSE);...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Hello future Alex,&lt;br /&gt;
&lt;br /&gt;
This is extract of your GTK rail control system application. Past Alex has added this as refer&lt;br /&gt;
rence on how to setup with GTK4. This also attaches a timer in the main thread.&lt;br /&gt;
&lt;br /&gt;
Not everything is in the below extract, however should jog your memory on the function calls to use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
int main(int argc, char **argv){&lt;br /&gt;
&lt;br /&gt;
        gtk_init();&lt;br /&gt;
        gboolean done = FALSE;&lt;br /&gt;
        &lt;br /&gt;
        GMainLoop *loop =NULL;&lt;br /&gt;
        loop = g_main_loop_new(NULL, FALSE);&lt;br /&gt;
&lt;br /&gt;
        source = g_timeout_source_new(1000/FPS);&lt;br /&gt;
        g_source_set_name(source, &amp;quot;redraw&amp;quot;);&lt;br /&gt;
        g_source_set_priority(source, G_PRIORITY_DEFAULT);&lt;br /&gt;
        id = g_source_attach(source, NULL);&lt;br /&gt;
        g_source_set_callback(source, G_SOURCE_FUNC(timeout_cb), &amp;amp;cbdata, NULL);&lt;br /&gt;
&lt;br /&gt;
        g_main_loop_run(loop);&lt;br /&gt;
        g_main_loop_unref(loop);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>