~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to docs/reference/glib/html/glib-The-Main-Event-Loop.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-06-27 09:56:08 UTC
  • mfrom: (1.4.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627095608-pi9244lmozmr2cm6
Tags: 2.20.4-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>The Main Event Loop</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
7
7
<link rel="home" href="index.html" title="GLib Reference Manual">
8
8
<link rel="up" href="glib-core.html" title="GLib Core Application Support">
9
9
<link rel="prev" href="glib-core.html" title="GLib Core Application Support">
44
44
                <a href="#glib-The-Main-Event-Loop.description" class="shortcut">Description</a>
45
45
</td></tr>
46
46
</table>
47
 
<div class="refentry" lang="en">
 
47
<div class="refentry" title="The Main Event Loop">
48
48
<a name="glib-The-Main-Event-Loop"></a><div class="titlepage"></div>
49
49
<div class="refnamediv"><table width="100%"><tr>
50
50
<td valign="top">
53
53
</td>
54
54
<td valign="top" align="right"></td>
55
55
</tr></table></div>
56
 
<div class="refsynopsisdiv">
 
56
<div class="refsynopsisdiv" title="Synopsis">
57
57
<a name="glib-The-Main-Event-Loop.synopsis"></a><h2>Synopsis</h2>
58
58
<pre class="synopsis">
59
59
 
222
222
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            <a class="link" href="glib-The-Main-Event-Loop.html#g-source-remove-by-user-data" title="g_source_remove_by_user_data ()">g_source_remove_by_user_data</a>        (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> user_data);
223
223
</pre>
224
224
</div>
225
 
<div class="refsect1" lang="en">
 
225
<div class="refsect1" title="Description">
226
226
<a name="glib-The-Main-Event-Loop.description"></a><h2>Description</h2>
227
227
<p>
228
228
    The main event loop manages all the available sources of events for
274
274
href="http://library.gnome.org/devel/gtk/unstable/gtk-General.html#gtk-events-pending"
275
275
><code class="function">gtk_events_pending()</code></a>.
276
276
  </p>
277
 
<div class="refsect2" lang="en">
278
 
<a name="id486929"></a><h3>Creating new sources types</h3>
 
277
<div class="refsect2" title="Creating new sources types">
 
278
<a name="id548130"></a><h3>Creating new sources types</h3>
279
279
<p>
280
280
      One of the unusual features of the GTK+ main loop functionality
281
281
      is that new types of event source can be created and used in
300
300
    </p>
301
301
</div>
302
302
<hr>
303
 
<div class="refsect2" lang="en">
304
 
<a name="id487007"></a><h3>Customizing the main loop iteration</h3>
 
303
<div class="refsect2" title="Customizing the main loop iteration">
 
304
<a name="id548208"></a><h3>Customizing the main loop iteration</h3>
305
305
<p>
306
306
      Single iterations of a <a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext"><span class="type">GMainContext</span></a> can be run with
307
307
      <a class="link" href="glib-The-Main-Event-Loop.html#g-main-context-iteration" title="g_main_context_iteration ()"><code class="function">g_main_context_iteration()</code></a>. In some cases, more detailed control
323
323
<br class="figure-break">
324
324
</div>
325
325
</div>
326
 
<div class="refsect1" lang="en">
 
326
<div class="refsect1" title="Details">
327
327
<a name="glib-The-Main-Event-Loop.details"></a><h2>Details</h2>
328
 
<div class="refsect2" lang="en">
 
328
<div class="refsect2" title="GMainLoop">
329
329
<a name="GMainLoop"></a><h3>GMainLoop</h3>
330
330
<pre class="programlisting">typedef struct _GMainLoop GMainLoop;</pre>
331
331
<p>
334
334
</p>
335
335
</div>
336
336
<hr>
337
 
<div class="refsect2" lang="en">
 
337
<div class="refsect2" title="g_main_loop_new ()">
338
338
<a name="g-main-loop-new"></a><h3>g_main_loop_new ()</h3>
339
339
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *         g_main_loop_new                     (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
340
340
                                                         <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> is_running);</pre>
366
366
</table></div>
367
367
</div>
368
368
<hr>
369
 
<div class="refsect2" lang="en">
 
369
<div class="refsect2" title="g_main_loop_ref ()">
370
370
<a name="g-main-loop-ref"></a><h3>g_main_loop_ref ()</h3>
371
371
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *         g_main_loop_ref                     (<a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *loop);</pre>
372
372
<p>
390
390
</table></div>
391
391
</div>
392
392
<hr>
393
 
<div class="refsect2" lang="en">
 
393
<div class="refsect2" title="g_main_loop_unref ()">
394
394
<a name="g-main-loop-unref"></a><h3>g_main_loop_unref ()</h3>
395
395
<pre class="programlisting">void                g_main_loop_unref                   (<a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *loop);</pre>
396
396
<p>
408
408
</table></div>
409
409
</div>
410
410
<hr>
411
 
<div class="refsect2" lang="en">
 
411
<div class="refsect2" title="g_main_loop_run ()">
412
412
<a name="g-main-loop-run"></a><h3>g_main_loop_run ()</h3>
413
413
<pre class="programlisting">void                g_main_loop_run                     (<a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *loop);</pre>
414
414
<p>
428
428
</table></div>
429
429
</div>
430
430
<hr>
431
 
<div class="refsect2" lang="en">
 
431
<div class="refsect2" title="g_main_loop_quit ()">
432
432
<a name="g-main-loop-quit"></a><h3>g_main_loop_quit ()</h3>
433
433
<pre class="programlisting">void                g_main_loop_quit                    (<a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *loop);</pre>
434
434
<p>
450
450
</table></div>
451
451
</div>
452
452
<hr>
453
 
<div class="refsect2" lang="en">
 
453
<div class="refsect2" title="g_main_loop_is_running ()">
454
454
<a name="g-main-loop-is-running"></a><h3>g_main_loop_is_running ()</h3>
455
455
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_loop_is_running              (<a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *loop);</pre>
456
456
<p>
474
474
</table></div>
475
475
</div>
476
476
<hr>
477
 
<div class="refsect2" lang="en">
 
477
<div class="refsect2" title="g_main_loop_get_context ()">
478
478
<a name="g-main-loop-get-context"></a><h3>g_main_loop_get_context ()</h3>
479
479
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *      g_main_loop_get_context             (<a class="link" href="glib-The-Main-Event-Loop.html#GMainLoop" title="GMainLoop">GMainLoop</a> *loop);</pre>
480
480
<p>
498
498
</table></div>
499
499
</div>
500
500
<hr>
501
 
<div class="refsect2" lang="en">
 
501
<div class="refsect2" title="g_main_new()">
502
502
<a name="g-main-new"></a><h3>g_main_new()</h3>
503
503
<pre class="programlisting">#define             g_main_new(is_running)</pre>
504
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
504
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
505
505
<h3 class="title">Warning</h3>
506
506
<p><code class="literal">g_main_new</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-loop-new" title="g_main_loop_new ()"><code class="function">g_main_loop_new()</code></a> instead.</p>
507
507
</div>
526
526
</table></div>
527
527
</div>
528
528
<hr>
529
 
<div class="refsect2" lang="en">
 
529
<div class="refsect2" title="g_main_destroy()">
530
530
<a name="g-main-destroy"></a><h3>g_main_destroy()</h3>
531
531
<pre class="programlisting">#define             g_main_destroy(loop)</pre>
532
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
532
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
533
533
<h3 class="title">Warning</h3>
534
534
<p><code class="literal">g_main_destroy</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-loop-unref" title="g_main_loop_unref ()"><code class="function">g_main_loop_unref()</code></a> instead.</p>
535
535
</div>
546
546
</table></div>
547
547
</div>
548
548
<hr>
549
 
<div class="refsect2" lang="en">
 
549
<div class="refsect2" title="g_main_run()">
550
550
<a name="g-main-run"></a><h3>g_main_run()</h3>
551
551
<pre class="programlisting">#define             g_main_run(loop)</pre>
552
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
552
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
553
553
<h3 class="title">Warning</h3>
554
554
<p><code class="literal">g_main_run</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-loop-run" title="g_main_loop_run ()"><code class="function">g_main_loop_run()</code></a> instead.</p>
555
555
</div>
566
566
</table></div>
567
567
</div>
568
568
<hr>
569
 
<div class="refsect2" lang="en">
 
569
<div class="refsect2" title="g_main_quit()">
570
570
<a name="g-main-quit"></a><h3>g_main_quit()</h3>
571
571
<pre class="programlisting">#define             g_main_quit(loop)</pre>
572
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
572
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
573
573
<h3 class="title">Warning</h3>
574
574
<p><code class="literal">g_main_quit</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-loop-quit" title="g_main_loop_quit ()"><code class="function">g_main_loop_quit()</code></a> instead.</p>
575
575
</div>
587
587
</table></div>
588
588
</div>
589
589
<hr>
590
 
<div class="refsect2" lang="en">
 
590
<div class="refsect2" title="g_main_is_running()">
591
591
<a name="g-main-is-running"></a><h3>g_main_is_running()</h3>
592
592
<pre class="programlisting">#define             g_main_is_running(loop)</pre>
593
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
593
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
594
594
<h3 class="title">Warning</h3>
595
595
<p><code class="literal">g_main_is_running</code> has been deprecated since version 2.2 and should not be used in newly-written code. USe <a class="link" href="glib-The-Main-Event-Loop.html#g-main-loop-is-running" title="g_main_loop_is_running ()"><code class="function">g_main_loop_is_running()</code></a> instead.</p>
596
596
</div>
614
614
</table></div>
615
615
</div>
616
616
<hr>
617
 
<div class="refsect2" lang="en">
 
617
<div class="refsect2" title="G_PRIORITY_HIGH">
618
618
<a name="G-PRIORITY-HIGH--CAPS"></a><h3>G_PRIORITY_HIGH</h3>
619
619
<pre class="programlisting">#define G_PRIORITY_HIGH            -100
620
620
</pre>
624
624
</p>
625
625
</div>
626
626
<hr>
627
 
<div class="refsect2" lang="en">
 
627
<div class="refsect2" title="G_PRIORITY_DEFAULT">
628
628
<a name="G-PRIORITY-DEFAULT--CAPS"></a><h3>G_PRIORITY_DEFAULT</h3>
629
629
<pre class="programlisting">#define G_PRIORITY_DEFAULT          0
630
630
</pre>
636
636
</p>
637
637
</div>
638
638
<hr>
639
 
<div class="refsect2" lang="en">
 
639
<div class="refsect2" title="G_PRIORITY_HIGH_IDLE">
640
640
<a name="G-PRIORITY-HIGH-IDLE--CAPS"></a><h3>G_PRIORITY_HIGH_IDLE</h3>
641
641
<pre class="programlisting">#define G_PRIORITY_HIGH_IDLE        100
642
642
</pre>
649
649
</p>
650
650
</div>
651
651
<hr>
652
 
<div class="refsect2" lang="en">
 
652
<div class="refsect2" title="G_PRIORITY_DEFAULT_IDLE">
653
653
<a name="G-PRIORITY-DEFAULT-IDLE--CAPS"></a><h3>G_PRIORITY_DEFAULT_IDLE</h3>
654
654
<pre class="programlisting">#define G_PRIORITY_DEFAULT_IDLE     200
655
655
</pre>
659
659
</p>
660
660
</div>
661
661
<hr>
662
 
<div class="refsect2" lang="en">
 
662
<div class="refsect2" title="G_PRIORITY_LOW">
663
663
<a name="G-PRIORITY-LOW--CAPS"></a><h3>G_PRIORITY_LOW</h3>
664
664
<pre class="programlisting">#define G_PRIORITY_LOW                  300
665
665
</pre>
669
669
</p>
670
670
</div>
671
671
<hr>
672
 
<div class="refsect2" lang="en">
 
672
<div class="refsect2" title="GMainContext">
673
673
<a name="GMainContext"></a><h3>GMainContext</h3>
674
674
<pre class="programlisting">typedef struct _GMainContext GMainContext;</pre>
675
675
<p>
678
678
</p>
679
679
</div>
680
680
<hr>
681
 
<div class="refsect2" lang="en">
 
681
<div class="refsect2" title="g_main_context_new ()">
682
682
<a name="g-main-context-new"></a><h3>g_main_context_new ()</h3>
683
683
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *      g_main_context_new                  (void);</pre>
684
684
<p>
695
695
</table></div>
696
696
</div>
697
697
<hr>
698
 
<div class="refsect2" lang="en">
 
698
<div class="refsect2" title="g_main_context_ref ()">
699
699
<a name="g-main-context-ref"></a><h3>g_main_context_ref ()</h3>
700
700
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *      g_main_context_ref                  (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
701
701
<p>
719
719
</table></div>
720
720
</div>
721
721
<hr>
722
 
<div class="refsect2" lang="en">
 
722
<div class="refsect2" title="g_main_context_unref ()">
723
723
<a name="g-main-context-unref"></a><h3>g_main_context_unref ()</h3>
724
724
<pre class="programlisting">void                g_main_context_unref                (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
725
725
<p>
737
737
</table></div>
738
738
</div>
739
739
<hr>
740
 
<div class="refsect2" lang="en">
 
740
<div class="refsect2" title="g_main_context_default ()">
741
741
<a name="g-main-context-default"></a><h3>g_main_context_default ()</h3>
742
742
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *      g_main_context_default              (void);</pre>
743
743
<p>
756
756
</table></div>
757
757
</div>
758
758
<hr>
759
 
<div class="refsect2" lang="en">
 
759
<div class="refsect2" title="g_main_context_iteration ()">
760
760
<a name="g-main-context-iteration"></a><h3>g_main_context_iteration ()</h3>
761
761
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_context_iteration            (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
762
762
                                                         <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> may_block);</pre>
798
798
</table></div>
799
799
</div>
800
800
<hr>
801
 
<div class="refsect2" lang="en">
 
801
<div class="refsect2" title="g_main_iteration()">
802
802
<a name="g-main-iteration"></a><h3>g_main_iteration()</h3>
803
803
<pre class="programlisting">#define             g_main_iteration(may_block)</pre>
804
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
804
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
805
805
<h3 class="title">Warning</h3>
806
806
<p><code class="literal">g_main_iteration</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-context-iteration" title="g_main_context_iteration ()"><code class="function">g_main_context_iteration()</code></a> instead.</p>
807
807
</div>
828
828
</table></div>
829
829
</div>
830
830
<hr>
831
 
<div class="refsect2" lang="en">
 
831
<div class="refsect2" title="g_main_context_pending ()">
832
832
<a name="g-main-context-pending"></a><h3>g_main_context_pending ()</h3>
833
833
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_context_pending              (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
834
834
<p>
852
852
</table></div>
853
853
</div>
854
854
<hr>
855
 
<div class="refsect2" lang="en">
 
855
<div class="refsect2" title="g_main_pending()">
856
856
<a name="g-main-pending"></a><h3>g_main_pending()</h3>
857
857
<pre class="programlisting">#define             g_main_pending()</pre>
858
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
858
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
859
859
<h3 class="title">Warning</h3>
860
860
<p><code class="literal">g_main_pending</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-context-pending" title="g_main_context_pending ()"><code class="function">g_main_context_pending()</code></a> instead.</p>
861
861
</div>
873
873
</table></div>
874
874
</div>
875
875
<hr>
876
 
<div class="refsect2" lang="en">
 
876
<div class="refsect2" title="g_main_context_find_source_by_id ()">
877
877
<a name="g-main-context-find-source-by-id"></a><h3>g_main_context_find_source_by_id ()</h3>
878
878
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_main_context_find_source_by_id    (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
879
879
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> source_id);</pre>
903
903
</table></div>
904
904
</div>
905
905
<hr>
906
 
<div class="refsect2" lang="en">
 
906
<div class="refsect2" title="g_main_context_find_source_by_user_data ()">
907
907
<a name="g-main-context-find-source-by-user-data"></a><h3>g_main_context_find_source_by_user_data ()</h3>
908
908
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_main_context_find_source_by_user_data
909
909
                                                        (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
936
936
</table></div>
937
937
</div>
938
938
<hr>
939
 
<div class="refsect2" lang="en">
 
939
<div class="refsect2" title="g_main_context_find_source_by_funcs_user_data ()">
940
940
<a name="g-main-context-find-source-by-funcs-user-data"></a><h3>g_main_context_find_source_by_funcs_user_data ()</h3>
941
941
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_main_context_find_source_by_funcs_user_data
942
942
                                                        (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
975
975
</table></div>
976
976
</div>
977
977
<hr>
978
 
<div class="refsect2" lang="en">
 
978
<div class="refsect2" title="g_main_context_wakeup ()">
979
979
<a name="g-main-context-wakeup"></a><h3>g_main_context_wakeup ()</h3>
980
980
<pre class="programlisting">void                g_main_context_wakeup               (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
981
981
<p>
993
993
</table></div>
994
994
</div>
995
995
<hr>
996
 
<div class="refsect2" lang="en">
 
996
<div class="refsect2" title="g_main_context_acquire ()">
997
997
<a name="g-main-context-acquire"></a><h3>g_main_context_acquire ()</h3>
998
998
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_context_acquire              (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
999
999
<p>
1028
1028
</table></div>
1029
1029
</div>
1030
1030
<hr>
1031
 
<div class="refsect2" lang="en">
 
1031
<div class="refsect2" title="g_main_context_release ()">
1032
1032
<a name="g-main-context-release"></a><h3>g_main_context_release ()</h3>
1033
1033
<pre class="programlisting">void                g_main_context_release              (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
1034
1034
<p>
1048
1048
</table></div>
1049
1049
</div>
1050
1050
<hr>
1051
 
<div class="refsect2" lang="en">
 
1051
<div class="refsect2" title="g_main_context_is_owner ()">
1052
1052
<a name="g-main-context-is-owner"></a><h3>g_main_context_is_owner ()</h3>
1053
1053
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_context_is_owner             (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
1054
1054
<p>
1077
1077
<p class="since">Since 2.10</p>
1078
1078
</div>
1079
1079
<hr>
1080
 
<div class="refsect2" lang="en">
 
1080
<div class="refsect2" title="g_main_context_wait ()">
1081
1081
<a name="g-main-context-wait"></a><h3>g_main_context_wait ()</h3>
1082
1082
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_context_wait                 (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1083
1083
                                                         <a class="link" href="glib-Threads.html#GCond" title="GCond">GCond</a> *cond,
1118
1118
</table></div>
1119
1119
</div>
1120
1120
<hr>
1121
 
<div class="refsect2" lang="en">
 
1121
<div class="refsect2" title="g_main_context_prepare ()">
1122
1122
<a name="g-main-context-prepare"></a><h3>g_main_context_prepare ()</h3>
1123
1123
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_main_context_prepare              (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1124
1124
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *priority);</pre>
1151
1151
</table></div>
1152
1152
</div>
1153
1153
<hr>
1154
 
<div class="refsect2" lang="en">
 
1154
<div class="refsect2" title="g_main_context_query ()">
1155
1155
<a name="g-main-context-query"></a><h3>g_main_context_query ()</h3>
1156
1156
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_main_context_query                (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1157
1157
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> max_priority,
1201
1201
</table></div>
1202
1202
</div>
1203
1203
<hr>
1204
 
<div class="refsect2" lang="en">
 
1204
<div class="refsect2" title="g_main_context_check ()">
1205
1205
<a name="g-main-context-check"></a><h3>g_main_context_check ()</h3>
1206
1206
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_main_context_check                (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1207
1207
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> max_priority,
1244
1244
</table></div>
1245
1245
</div>
1246
1246
<hr>
1247
 
<div class="refsect2" lang="en">
 
1247
<div class="refsect2" title="g_main_context_dispatch ()">
1248
1248
<a name="g-main-context-dispatch"></a><h3>g_main_context_dispatch ()</h3>
1249
1249
<pre class="programlisting">void                g_main_context_dispatch             (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
1250
1250
<p>
1261
1261
</table></div>
1262
1262
</div>
1263
1263
<hr>
1264
 
<div class="refsect2" lang="en">
 
1264
<div class="refsect2" title="g_main_context_set_poll_func ()">
1265
1265
<a name="g-main-context-set-poll-func"></a><h3>g_main_context_set_poll_func ()</h3>
1266
1266
<pre class="programlisting">void                g_main_context_set_poll_func        (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1267
1267
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GPollFunc" title="GPollFunc ()">GPollFunc</a> func);</pre>
1293
1293
</table></div>
1294
1294
</div>
1295
1295
<hr>
1296
 
<div class="refsect2" lang="en">
 
1296
<div class="refsect2" title="g_main_context_get_poll_func ()">
1297
1297
<a name="g-main-context-get-poll-func"></a><h3>g_main_context_get_poll_func ()</h3>
1298
1298
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GPollFunc" title="GPollFunc ()">GPollFunc</a>           g_main_context_get_poll_func        (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
1299
1299
<p>
1317
1317
</table></div>
1318
1318
</div>
1319
1319
<hr>
1320
 
<div class="refsect2" lang="en">
 
1320
<div class="refsect2" title="GPollFunc ()">
1321
1321
<a name="GPollFunc"></a><h3>GPollFunc ()</h3>
1322
1322
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                (*GPollFunc)                        (<a class="link" href="glib-The-Main-Event-Loop.html#GPollFD" title="GPollFD">GPollFD</a> *ufds,
1323
1323
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> nfsd,
1356
1356
</table></div>
1357
1357
</div>
1358
1358
<hr>
1359
 
<div class="refsect2" lang="en">
 
1359
<div class="refsect2" title="g_main_context_add_poll ()">
1360
1360
<a name="g-main-context-add-poll"></a><h3>g_main_context_add_poll ()</h3>
1361
1361
<pre class="programlisting">void                g_main_context_add_poll             (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1362
1362
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GPollFD" title="GPollFD">GPollFD</a> *fd,
1392
1392
</table></div>
1393
1393
</div>
1394
1394
<hr>
1395
 
<div class="refsect2" lang="en">
 
1395
<div class="refsect2" title="g_main_context_remove_poll ()">
1396
1396
<a name="g-main-context-remove-poll"></a><h3>g_main_context_remove_poll ()</h3>
1397
1397
<pre class="programlisting">void                g_main_context_remove_poll          (<a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context,
1398
1398
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GPollFD" title="GPollFD">GPollFD</a> *fd);</pre>
1418
1418
</table></div>
1419
1419
</div>
1420
1420
<hr>
1421
 
<div class="refsect2" lang="en">
 
1421
<div class="refsect2" title="g_main_depth ()">
1422
1422
<a name="g-main-depth"></a><h3>g_main_depth ()</h3>
1423
1423
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_main_depth                        (void);</pre>
1424
1424
<p>
1526
1526
</p>
1527
1527
<p>
1528
1528
</p>
1529
 
<div class="orderedlist"><ol type="1">
1530
 
<li><p>
 
1529
<div class="orderedlist"><ol class="orderedlist" type="1">
 
1530
<li class="listitem"><p>
1531
1531
    Use <a
1532
1532
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-set-sensitive"
1533
1533
><code class="function">gtk_widget_set_sensitive()</code></a> or modal dialogs to prevent
1534
1534
    the user from interacting with elements while the main
1535
1535
    loop is recursing.
1536
1536
  </p></li>
1537
 
<li><p>
 
1537
<li class="listitem"><p>
1538
1538
    Avoid main loop recursion in situations where you can't handle
1539
1539
    arbitrary  callbacks. Instead, structure your code so that you
1540
1540
    simply return to the main loop and then get called again when
1553
1553
</table></div>
1554
1554
</div>
1555
1555
<hr>
1556
 
<div class="refsect2" lang="en">
 
1556
<div class="refsect2" title="g_main_current_source ()">
1557
1557
<a name="g-main-current-source"></a><h3>g_main_current_source ()</h3>
1558
1558
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_main_current_source               (void);</pre>
1559
1559
<p>
1572
1572
<p class="since">Since 2.12</p>
1573
1573
</div>
1574
1574
<hr>
1575
 
<div class="refsect2" lang="en">
 
1575
<div class="refsect2" title="g_main_set_poll_func()">
1576
1576
<a name="g-main-set-poll-func"></a><h3>g_main_set_poll_func()</h3>
1577
1577
<pre class="programlisting">#define             g_main_set_poll_func(func)</pre>
1578
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
1578
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1579
1579
<h3 class="title">Warning</h3>
1580
1580
<p><code class="literal">g_main_set_poll_func</code> has been deprecated since version 2.2 and should not be used in newly-written code. Use <a class="link" href="glib-The-Main-Event-Loop.html#g-main-context-set-poll-func" title="g_main_context_set_poll_func ()"><code class="function">g_main_context_set_poll_func()</code></a> instead.</p>
1581
1581
</div>
1593
1593
</table></div>
1594
1594
</div>
1595
1595
<hr>
1596
 
<div class="refsect2" lang="en">
 
1596
<div class="refsect2" title="g_timeout_source_new ()">
1597
1597
<a name="g-timeout-source-new"></a><h3>g_timeout_source_new ()</h3>
1598
1598
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_timeout_source_new                (<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> interval);</pre>
1599
1599
<p>
1622
1622
</table></div>
1623
1623
</div>
1624
1624
<hr>
1625
 
<div class="refsect2" lang="en">
 
1625
<div class="refsect2" title="g_timeout_source_new_seconds ()">
1626
1626
<a name="g-timeout-source-new-seconds"></a><h3>g_timeout_source_new_seconds ()</h3>
1627
1627
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_timeout_source_new_seconds        (<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> interval);</pre>
1628
1628
<p>
1657
1657
<p class="since">Since 2.14</p>
1658
1658
</div>
1659
1659
<hr>
1660
 
<div class="refsect2" lang="en">
 
1660
<div class="refsect2" title="g_timeout_add ()">
1661
1661
<a name="g-timeout-add"></a><h3>g_timeout_add ()</h3>
1662
1662
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_timeout_add                       (<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> interval,
1663
1663
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GSourceFunc" title="GSourceFunc ()">GSourceFunc</a> function,
1716
1716
</table></div>
1717
1717
</div>
1718
1718
<hr>
1719
 
<div class="refsect2" lang="en">
 
1719
<div class="refsect2" title="g_timeout_add_full ()">
1720
1720
<a name="g-timeout-add-full"></a><h3>g_timeout_add_full ()</h3>
1721
1721
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_timeout_add_full                  (<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> priority,
1722
1722
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> interval,
1783
1783
</table></div>
1784
1784
</div>
1785
1785
<hr>
1786
 
<div class="refsect2" lang="en">
 
1786
<div class="refsect2" title="g_timeout_add_seconds ()">
1787
1787
<a name="g-timeout-add-seconds"></a><h3>g_timeout_add_seconds ()</h3>
1788
1788
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_timeout_add_seconds               (<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> interval,
1789
1789
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GSourceFunc" title="GSourceFunc ()">GSourceFunc</a> function,
1830
1830
<p class="since">Since 2.14</p>
1831
1831
</div>
1832
1832
<hr>
1833
 
<div class="refsect2" lang="en">
 
1833
<div class="refsect2" title="g_timeout_add_seconds_full ()">
1834
1834
<a name="g-timeout-add-seconds-full"></a><h3>g_timeout_add_seconds_full ()</h3>
1835
1835
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_timeout_add_seconds_full          (<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> priority,
1836
1836
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> interval,
1915
1915
<p class="since">Since 2.14</p>
1916
1916
</div>
1917
1917
<hr>
1918
 
<div class="refsect2" lang="en">
 
1918
<div class="refsect2" title="g_idle_source_new ()">
1919
1919
<a name="g-idle-source-new"></a><h3>g_idle_source_new ()</h3>
1920
1920
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_idle_source_new                   (void);</pre>
1921
1921
<p>
1939
1939
</table></div>
1940
1940
</div>
1941
1941
<hr>
1942
 
<div class="refsect2" lang="en">
 
1942
<div class="refsect2" title="g_idle_add ()">
1943
1943
<a name="g-idle-add"></a><h3>g_idle_add ()</h3>
1944
1944
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_idle_add                          (<a class="link" href="glib-The-Main-Event-Loop.html#GSourceFunc" title="GSourceFunc ()">GSourceFunc</a> function,
1945
1945
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
1978
1978
</table></div>
1979
1979
</div>
1980
1980
<hr>
1981
 
<div class="refsect2" lang="en">
 
1981
<div class="refsect2" title="g_idle_add_full ()">
1982
1982
<a name="g-idle-add-full"></a><h3>g_idle_add_full ()</h3>
1983
1983
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_idle_add_full                     (<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> priority,
1984
1984
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GSourceFunc" title="GSourceFunc ()">GSourceFunc</a> function,
2028
2028
</table></div>
2029
2029
</div>
2030
2030
<hr>
2031
 
<div class="refsect2" lang="en">
 
2031
<div class="refsect2" title="g_idle_remove_by_data ()">
2032
2032
<a name="g-idle-remove-by-data"></a><h3>g_idle_remove_by_data ()</h3>
2033
2033
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_idle_remove_by_data               (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
2034
2034
<p>
2052
2052
</table></div>
2053
2053
</div>
2054
2054
<hr>
2055
 
<div class="refsect2" lang="en">
 
2055
<div class="refsect2" title="GPid">
2056
2056
<a name="GPid"></a><h3>GPid</h3>
2057
2057
<pre class="programlisting">typedef int GPid;
2058
2058
</pre>
2064
2064
</p>
2065
2065
</div>
2066
2066
<hr>
2067
 
<div class="refsect2" lang="en">
 
2067
<div class="refsect2" title="GChildWatchFunc ()">
2068
2068
<a name="GChildWatchFunc"></a><h3>GChildWatchFunc ()</h3>
2069
2069
<pre class="programlisting">void                (*GChildWatchFunc)                  (<a class="link" href="glib-The-Main-Event-Loop.html#GPid" title="GPid">GPid</a> pid,
2070
2070
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> status,
2095
2095
</table></div>
2096
2096
</div>
2097
2097
<hr>
2098
 
<div class="refsect2" lang="en">
 
2098
<div class="refsect2" title="g_child_watch_source_new ()">
2099
2099
<a name="g-child-watch-source-new"></a><h3>g_child_watch_source_new ()</h3>
2100
2100
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_child_watch_source_new            (<a class="link" href="glib-The-Main-Event-Loop.html#GPid" title="GPid">GPid</a> pid);</pre>
2101
2101
<p>
2144
2144
<p class="since">Since 2.4</p>
2145
2145
</div>
2146
2146
<hr>
2147
 
<div class="refsect2" lang="en">
 
2147
<div class="refsect2" title="g_child_watch_add ()">
2148
2148
<a name="g-child-watch-add"></a><h3>g_child_watch_add ()</h3>
2149
2149
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_child_watch_add                   (<a class="link" href="glib-The-Main-Event-Loop.html#GPid" title="GPid">GPid</a> pid,
2150
2150
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GChildWatchFunc" title="GChildWatchFunc ()">GChildWatchFunc</a> function,
2204
2204
<p class="since">Since 2.4</p>
2205
2205
</div>
2206
2206
<hr>
2207
 
<div class="refsect2" lang="en">
 
2207
<div class="refsect2" title="g_child_watch_add_full ()">
2208
2208
<a name="g-child-watch-add-full"></a><h3>g_child_watch_add_full ()</h3>
2209
2209
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_child_watch_add_full              (<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> priority,
2210
2210
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GPid" title="GPid">GPid</a> pid,
2277
2277
<p class="since">Since 2.4</p>
2278
2278
</div>
2279
2279
<hr>
2280
 
<div class="refsect2" lang="en">
 
2280
<div class="refsect2" title="GPollFD">
2281
2281
<a name="GPollFD"></a><h3>GPollFD</h3>
2282
2282
<pre class="programlisting">typedef struct {
2283
2283
#if defined (G_OS_WIN32) &amp;&amp; GLIB_SIZEOF_VOID_P == 8
2324
2324
</p>
2325
2325
</div>
2326
2326
<hr>
2327
 
<div class="refsect2" lang="en">
 
2327
<div class="refsect2" title="g_poll ()">
2328
2328
<a name="g-poll"></a><h3>g_poll ()</h3>
2329
2329
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_poll                              (<a class="link" href="glib-The-Main-Event-Loop.html#GPollFD" title="GPollFD">GPollFD</a> *fds,
2330
2330
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> nfds,
2382
2382
<p class="since">Since 2.20</p>
2383
2383
</div>
2384
2384
<hr>
2385
 
<div class="refsect2" lang="en">
 
2385
<div class="refsect2" title="GSource">
2386
2386
<a name="GSource"></a><h3>GSource</h3>
2387
2387
<pre class="programlisting">typedef struct {
2388
2388
} GSource;
2393
2393
</p>
2394
2394
</div>
2395
2395
<hr>
2396
 
<div class="refsect2" lang="en">
 
2396
<div class="refsect2" title="GSourceDummyMarshal ()">
2397
2397
<a name="GSourceDummyMarshal"></a><h3>GSourceDummyMarshal ()</h3>
2398
2398
<pre class="programlisting">void                (*GSourceDummyMarshal)              (void);</pre>
2399
2399
<p>
2404
2404
</p>
2405
2405
</div>
2406
2406
<hr>
2407
 
<div class="refsect2" lang="en">
 
2407
<div class="refsect2" title="GSourceFuncs">
2408
2408
<a name="GSourceFuncs"></a><h3>GSourceFuncs</h3>
2409
2409
<pre class="programlisting">typedef struct {
2410
2410
  gboolean (*prepare)  (GSource    *source,
2498
2498
</table></div>
2499
2499
</div>
2500
2500
<hr>
2501
 
<div class="refsect2" lang="en">
 
2501
<div class="refsect2" title="GSourceCallbackFuncs">
2502
2502
<a name="GSourceCallbackFuncs"></a><h3>GSourceCallbackFuncs</h3>
2503
2503
<pre class="programlisting">typedef struct {
2504
2504
  void (*ref)   (gpointer     cb_data);
2535
2535
</table></div>
2536
2536
</div>
2537
2537
<hr>
2538
 
<div class="refsect2" lang="en">
 
2538
<div class="refsect2" title="g_source_new ()">
2539
2539
<a name="g-source-new"></a><h3>g_source_new ()</h3>
2540
2540
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_source_new                        (<a class="link" href="glib-The-Main-Event-Loop.html#GSourceFuncs" title="GSourceFuncs">GSourceFuncs</a> *source_funcs,
2541
2541
                                                         <a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> struct_size);</pre>
2574
2574
</table></div>
2575
2575
</div>
2576
2576
<hr>
2577
 
<div class="refsect2" lang="en">
 
2577
<div class="refsect2" title="g_source_ref ()">
2578
2578
<a name="g-source-ref"></a><h3>g_source_ref ()</h3>
2579
2579
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *           g_source_ref                        (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2580
2580
<p>
2598
2598
</table></div>
2599
2599
</div>
2600
2600
<hr>
2601
 
<div class="refsect2" lang="en">
 
2601
<div class="refsect2" title="g_source_unref ()">
2602
2602
<a name="g-source-unref"></a><h3>g_source_unref ()</h3>
2603
2603
<pre class="programlisting">void                g_source_unref                      (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2604
2604
<p>
2617
2617
</table></div>
2618
2618
</div>
2619
2619
<hr>
2620
 
<div class="refsect2" lang="en">
 
2620
<div class="refsect2" title="g_source_set_funcs ()">
2621
2621
<a name="g-source-set-funcs"></a><h3>g_source_set_funcs ()</h3>
2622
2622
<pre class="programlisting">void                g_source_set_funcs                  (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
2623
2623
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GSourceFuncs" title="GSourceFuncs">GSourceFuncs</a> *funcs);</pre>
2644
2644
<p class="since">Since 2.12</p>
2645
2645
</div>
2646
2646
<hr>
2647
 
<div class="refsect2" lang="en">
 
2647
<div class="refsect2" title="g_source_attach ()">
2648
2648
<a name="g-source-attach"></a><h3>g_source_attach ()</h3>
2649
2649
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_source_attach                     (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
2650
2650
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *context);</pre>
2676
2676
</table></div>
2677
2677
</div>
2678
2678
<hr>
2679
 
<div class="refsect2" lang="en">
 
2679
<div class="refsect2" title="g_source_destroy ()">
2680
2680
<a name="g-source-destroy"></a><h3>g_source_destroy ()</h3>
2681
2681
<pre class="programlisting">void                g_source_destroy                    (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2682
2682
<p>
2695
2695
</table></div>
2696
2696
</div>
2697
2697
<hr>
2698
 
<div class="refsect2" lang="en">
 
2698
<div class="refsect2" title="g_source_is_destroyed ()">
2699
2699
<a name="g-source-is-destroyed"></a><h3>g_source_is_destroyed ()</h3>
2700
2700
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_source_is_destroyed               (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2701
2701
<p>
2787
2787
<p class="since">Since 2.12</p>
2788
2788
</div>
2789
2789
<hr>
2790
 
<div class="refsect2" lang="en">
 
2790
<div class="refsect2" title="g_source_set_priority ()">
2791
2791
<a name="g-source-set-priority"></a><h3>g_source_set_priority ()</h3>
2792
2792
<pre class="programlisting">void                g_source_set_priority               (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
2793
2793
                                                         <a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> priority);</pre>
2814
2814
</table></div>
2815
2815
</div>
2816
2816
<hr>
2817
 
<div class="refsect2" lang="en">
 
2817
<div class="refsect2" title="g_source_get_priority ()">
2818
2818
<a name="g-source-get-priority"></a><h3>g_source_get_priority ()</h3>
2819
2819
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a>                g_source_get_priority               (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2820
2820
<p>
2838
2838
</table></div>
2839
2839
</div>
2840
2840
<hr>
2841
 
<div class="refsect2" lang="en">
 
2841
<div class="refsect2" title="g_source_set_can_recurse ()">
2842
2842
<a name="g-source-set-can-recurse"></a><h3>g_source_set_can_recurse ()</h3>
2843
2843
<pre class="programlisting">void                g_source_set_can_recurse            (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
2844
2844
                                                         <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> can_recurse);</pre>
2866
2866
</table></div>
2867
2867
</div>
2868
2868
<hr>
2869
 
<div class="refsect2" lang="en">
 
2869
<div class="refsect2" title="g_source_get_can_recurse ()">
2870
2870
<a name="g-source-get-can-recurse"></a><h3>g_source_get_can_recurse ()</h3>
2871
2871
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_source_get_can_recurse            (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2872
2872
<p>
2891
2891
</table></div>
2892
2892
</div>
2893
2893
<hr>
2894
 
<div class="refsect2" lang="en">
 
2894
<div class="refsect2" title="g_source_get_id ()">
2895
2895
<a name="g-source-get-id"></a><h3>g_source_get_id ()</h3>
2896
2896
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a>               g_source_get_id                     (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2897
2897
<p>
2918
2918
</table></div>
2919
2919
</div>
2920
2920
<hr>
2921
 
<div class="refsect2" lang="en">
 
2921
<div class="refsect2" title="g_source_get_context ()">
2922
2922
<a name="g-source-get-context"></a><h3>g_source_get_context ()</h3>
2923
2923
<pre class="programlisting"><a class="link" href="glib-The-Main-Event-Loop.html#GMainContext" title="GMainContext">GMainContext</a> *      g_source_get_context                (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source);</pre>
2924
2924
<p>
2945
2945
</table></div>
2946
2946
</div>
2947
2947
<hr>
2948
 
<div class="refsect2" lang="en">
 
2948
<div class="refsect2" title="g_source_set_callback ()">
2949
2949
<a name="g-source-set-callback"></a><h3>g_source_set_callback ()</h3>
2950
2950
<pre class="programlisting">void                g_source_set_callback               (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
2951
2951
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GSourceFunc" title="GSourceFunc ()">GSourceFunc</a> func,
2992
2992
</table></div>
2993
2993
</div>
2994
2994
<hr>
2995
 
<div class="refsect2" lang="en">
 
2995
<div class="refsect2" title="GSourceFunc ()">
2996
2996
<a name="GSourceFunc"></a><h3>GSourceFunc ()</h3>
2997
2997
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            (*GSourceFunc)                      (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> data);</pre>
2998
2998
<p>
3017
3017
</table></div>
3018
3018
</div>
3019
3019
<hr>
3020
 
<div class="refsect2" lang="en">
 
3020
<div class="refsect2" title="g_source_set_callback_indirect ()">
3021
3021
<a name="g-source-set-callback-indirect"></a><h3>g_source_set_callback_indirect ()</h3>
3022
3022
<pre class="programlisting">void                g_source_set_callback_indirect      (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
3023
3023
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> callback_data,
3054
3054
</table></div>
3055
3055
</div>
3056
3056
<hr>
3057
 
<div class="refsect2" lang="en">
 
3057
<div class="refsect2" title="g_source_add_poll ()">
3058
3058
<a name="g-source-add-poll"></a><h3>g_source_add_poll ()</h3>
3059
3059
<pre class="programlisting">void                g_source_add_poll                   (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
3060
3060
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GPollFD" title="GPollFD">GPollFD</a> *fd);</pre>
3084
3084
</table></div>
3085
3085
</div>
3086
3086
<hr>
3087
 
<div class="refsect2" lang="en">
 
3087
<div class="refsect2" title="g_source_remove_poll ()">
3088
3088
<a name="g-source-remove-poll"></a><h3>g_source_remove_poll ()</h3>
3089
3089
<pre class="programlisting">void                g_source_remove_poll                (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
3090
3090
                                                         <a class="link" href="glib-The-Main-Event-Loop.html#GPollFD" title="GPollFD">GPollFD</a> *fd);</pre>
3110
3110
</table></div>
3111
3111
</div>
3112
3112
<hr>
3113
 
<div class="refsect2" lang="en">
 
3113
<div class="refsect2" title="g_source_get_current_time ()">
3114
3114
<a name="g-source-get-current-time"></a><h3>g_source_get_current_time ()</h3>
3115
3115
<pre class="programlisting">void                g_source_get_current_time           (<a class="link" href="glib-The-Main-Event-Loop.html#GSource" title="GSource">GSource</a> *source,
3116
3116
                                                         <a class="link" href="glib-Date-and-Time-Functions.html#GTimeVal" title="GTimeVal">GTimeVal</a> *timeval);</pre>
3139
3139
</table></div>
3140
3140
</div>
3141
3141
<hr>
3142
 
<div class="refsect2" lang="en">
 
3142
<div class="refsect2" title="g_source_remove ()">
3143
3143
<a name="g-source-remove"></a><h3>g_source_remove ()</h3>
3144
3144
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_source_remove                     (<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> tag);</pre>
3145
3145
<p>
3172
3172
</table></div>
3173
3173
</div>
3174
3174
<hr>
3175
 
<div class="refsect2" lang="en">
 
3175
<div class="refsect2" title="g_source_remove_by_funcs_user_data ()">
3176
3176
<a name="g-source-remove-by-funcs-user-data"></a><h3>g_source_remove_by_funcs_user_data ()</h3>
3177
3177
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_source_remove_by_funcs_user_data  (<a class="link" href="glib-The-Main-Event-Loop.html#GSourceFuncs" title="GSourceFuncs">GSourceFuncs</a> *funcs,
3178
3178
                                                         <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> user_data);</pre>
3204
3204
</table></div>
3205
3205
</div>
3206
3206
<hr>
3207
 
<div class="refsect2" lang="en">
 
3207
<div class="refsect2" title="g_source_remove_by_user_data ()">
3208
3208
<a name="g-source-remove-by-user-data"></a><h3>g_source_remove_by_user_data ()</h3>
3209
3209
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a>            g_source_remove_by_user_data        (<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer">gpointer</a> user_data);</pre>
3210
3210
<p>