~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/tutorial/html/c1761.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-05-04 12:24:25 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070504122425-0m8midgzrp40y8w2
Tags: 2.10.12-1ubuntu1
* Sync with Debian
* New upstream version:
  Fixed bugs:
  - 379414 file chooser warnings when changing path in the entry
  - 418585 GtkFileChooserDefault sizing code is not DPI independent
  - 419568 Crash in search if start with special letter
  - 435062 build dies with icon cache validation
  - 379399 Segfault to call gtk_print_operation_run twice.
  - 387889 cups backend has problems when there are too many printers
  - 418531 invalid read to gtkicontheme.c gtk_icon_theme_lookup_icon...
  - 423916 crash in color scheme code
  - 424042 Segmentation fault while quickly pressing Alt+arrows
  - 415260 Protect against negative indices when setting values in G...
  - 419171 XGetVisualInfo() may not set nxvisuals
  - 128852 Gdk cursors don't look good on win32
  - 344657 Ctrl-H doesn't toggle "Show Hidden Files" setting
  - 345345 PrintOperation::paginate is not emitted for class handler
  - 347567 GtkPrintOperation::end-print is not emitted if it's cance...
  - 369112 gtk_ui_manager_add_ui should accept unnamed separator
  - 392015 Selected menu item invisible on Windows Vista
  - 399253 MS-Windows Theme Bottom Tab placement rendering glitches
  - 399425 gtk_input_dialog_fill_axes() adds child to gtkscrolledwin...
  - 403251 [patch] little memory leak in GtkPrintJob
  - 403267 [patch] memory leak in GtkPageSetupUnixDialog
  - 403470 MS-Windows Theme tab placement other than on top leaks a ...
  - 404506 Windows system fonts that have multi-byte font names cann...
  - 405089 Incorrect window placement for GtkEventBox private window
  - 405515 Minor leak in gtkfilesystemmodel.c
  - 405539 gdk_pixbuf_save() for PNG saver can return FALSE without ...
  - 415681 gdk_window_clear_area includes an extra line and column o...
  - 418219 GtkRecentChooser should apply filter before sorting and c...
  - 418403 Scroll to printer after selecting it from settings
  - 421985 _gtk_print_operation_platform_backend_launch_preview
  - 421990 gtk_print_job_get_surface
  - 421993 gtk_print_operation_init
  - 423064 Conditional jump or move depends on uninitialised value(s...
  - 423722 Fix printing header in gtk-demo
  - 424168 gtk_print_operation_run on async preview
  - 425655 Don't install gtk+-unix-print-2.0.pc on non-UNIX platforms
  - 425786 GDK segfaults if XineramaQueryScreens fails
  - 428665 Lpr Backend gets stuck in infinite loop during gtk_enumer...
  - 429902 GtkPrintOperation leaks cairo contextes
  - 431997 First delay of GdkPixbufAnimationIter is wrong
  - 433242 Inconsistent scroll arrow position calculations
  - 433972 Placing gtk.Expander inside a gtk.TextView() changes gtk....
  - 434261 _gtk_toolbar_elide_underscores incorrectly handles some s...
  - 383354 ctrl-L should make 'Location' entry disappear
  - 418673 gtk_recent_manager_add_item
  - 429732 gtk_accel_group_finalize accesses invalid memory
  - 435028 WM_CLIENT_LEADER is wrong on the leader_window
  - 431067 Background of the header window is not updated
  - 338843 add recent files support inside the ui manager
  - 148535 add drop shadow to menus, tooltips, etc. under Windows XP
* debian/control.in:
  - Conflicts on ubuntulooks (<= 0.9.11-1)
* debian/patches/15_default-fallback-icon-theme.patch:
  - patch from Debian, fallback on gnome icon theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Timeouts, IO and Idle Functions</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
9
REL="HOME"
 
10
TITLE="GTK+ 2.0 Tutorial"
 
11
HREF="book1.html"><LINK
 
12
REL="PREVIOUS"
 
13
TITLE="Setting Widget Attributes"
 
14
HREF="c1756.html"><LINK
 
15
REL="NEXT"
 
16
TITLE="Monitoring IO"
 
17
HREF="x1772.html"></HEAD
 
18
><BODY
 
19
CLASS="CHAPTER"
 
20
BGCOLOR="#FFFFFF"
 
21
TEXT="#000000"
 
22
LINK="#0000FF"
 
23
VLINK="#840084"
 
24
ALINK="#0000FF"
 
25
><DIV
 
26
CLASS="NAVHEADER"
 
27
><TABLE
 
28
SUMMARY="Header navigation table"
 
29
WIDTH="100%"
 
30
BORDER="0"
 
31
CELLPADDING="0"
 
32
CELLSPACING="0"
 
33
><TR
 
34
><TH
 
35
COLSPAN="3"
 
36
ALIGN="center"
 
37
>GTK+ 2.0 Tutorial</TH
 
38
></TR
 
39
><TR
 
40
><TD
 
41
WIDTH="10%"
 
42
ALIGN="left"
 
43
VALIGN="bottom"
 
44
><A
 
45
HREF="c1756.html"
 
46
ACCESSKEY="P"
 
47
>&#60;&#60;&#60; Previous</A
 
48
></TD
 
49
><TD
 
50
WIDTH="80%"
 
51
ALIGN="center"
 
52
VALIGN="bottom"
 
53
></TD
 
54
><TD
 
55
WIDTH="10%"
 
56
ALIGN="right"
 
57
VALIGN="bottom"
 
58
><A
 
59
HREF="x1772.html"
 
60
ACCESSKEY="N"
 
61
>Next &#62;&#62;&#62;</A
 
62
></TD
 
63
></TR
 
64
></TABLE
 
65
><HR
 
66
ALIGN="LEFT"
 
67
WIDTH="100%"></DIV
 
68
><DIV
 
69
CLASS="CHAPTER"
 
70
><H1
 
71
><A
 
72
NAME="CH-TIMEOUTS"
 
73
></A
 
74
>Timeouts, IO and Idle Functions</H1
 
75
><DIV
 
76
CLASS="SECT1"
 
77
><H1
 
78
CLASS="SECT1"
 
79
><A
 
80
NAME="SEC-TIMEOUTS"
 
81
>Timeouts</A
 
82
></H1
 
83
><P
 
84
>You may be wondering how you make GTK do useful work when in gtk_main.
 
85
Well, you have several options. Using the following function you can
 
86
create a timeout function that will be called every "interval"
 
87
milliseconds.</P
 
88
><TABLE
 
89
BORDER="0"
 
90
BGCOLOR="#E0E0E0"
 
91
WIDTH="100%"
 
92
><TR
 
93
><TD
 
94
><PRE
 
95
CLASS="PROGRAMLISTING"
 
96
>gint g_timeout_add (guint32     interval,
 
97
                    GtkFunction function,
 
98
                    gpointer    data);</PRE
 
99
></TD
 
100
></TR
 
101
></TABLE
 
102
><P
 
103
>The first argument is the number of milliseconds between calls to your
 
104
function. The second argument is the function you wish to have called,
 
105
and the third, the data passed to this callback function. The return
 
106
value is an integer "tag" which may be used to stop the timeout by
 
107
calling:</P
 
108
><TABLE
 
109
BORDER="0"
 
110
BGCOLOR="#E0E0E0"
 
111
WIDTH="100%"
 
112
><TR
 
113
><TD
 
114
><PRE
 
115
CLASS="PROGRAMLISTING"
 
116
>void g_source_remove (gint tag);</PRE
 
117
></TD
 
118
></TR
 
119
></TABLE
 
120
><P
 
121
>You may also stop the timeout function by returning zero or FALSE from
 
122
your callback function. Obviously this means if you want your function
 
123
to continue to be called, it should return a non-zero value,
 
124
i.e., TRUE.</P
 
125
><P
 
126
>The declaration of your callback should look something like this:</P
 
127
><TABLE
 
128
BORDER="0"
 
129
BGCOLOR="#E0E0E0"
 
130
WIDTH="100%"
 
131
><TR
 
132
><TD
 
133
><PRE
 
134
CLASS="PROGRAMLISTING"
 
135
>gint timeout_callback (gpointer data);</PRE
 
136
></TD
 
137
></TR
 
138
></TABLE
 
139
></DIV
 
140
></DIV
 
141
><DIV
 
142
CLASS="NAVFOOTER"
 
143
><HR
 
144
ALIGN="LEFT"
 
145
WIDTH="100%"><TABLE
 
146
SUMMARY="Footer navigation table"
 
147
WIDTH="100%"
 
148
BORDER="0"
 
149
CELLPADDING="0"
 
150
CELLSPACING="0"
 
151
><TR
 
152
><TD
 
153
WIDTH="33%"
 
154
ALIGN="left"
 
155
VALIGN="top"
 
156
><A
 
157
HREF="c1756.html"
 
158
ACCESSKEY="P"
 
159
>&#60;&#60;&#60; Previous</A
 
160
></TD
 
161
><TD
 
162
WIDTH="34%"
 
163
ALIGN="center"
 
164
VALIGN="top"
 
165
><A
 
166
HREF="book1.html"
 
167
ACCESSKEY="H"
 
168
>Home</A
 
169
></TD
 
170
><TD
 
171
WIDTH="33%"
 
172
ALIGN="right"
 
173
VALIGN="top"
 
174
><A
 
175
HREF="x1772.html"
 
176
ACCESSKEY="N"
 
177
>Next &#62;&#62;&#62;</A
 
178
></TD
 
179
></TR
 
180
><TR
 
181
><TD
 
182
WIDTH="33%"
 
183
ALIGN="left"
 
184
VALIGN="top"
 
185
>Setting Widget Attributes</TD
 
186
><TD
 
187
WIDTH="34%"
 
188
ALIGN="center"
 
189
VALIGN="top"
 
190
>&nbsp;</TD
 
191
><TD
 
192
WIDTH="33%"
 
193
ALIGN="right"
 
194
VALIGN="top"
 
195
>Monitoring IO</TD
 
196
></TR
 
197
></TABLE
 
198
></DIV
 
199
></BODY
 
200
></HTML
 
201
>
 
 
b'\\ No newline at end of file'