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

« back to all changes in this revision

Viewing changes to docs/tutorial/html/x1772.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
>Monitoring IO</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="UP"
 
13
TITLE="Timeouts, IO and Idle Functions"
 
14
HREF="c1761.html"><LINK
 
15
REL="PREVIOUS"
 
16
TITLE="Timeouts, IO and Idle Functions"
 
17
HREF="c1761.html"><LINK
 
18
REL="NEXT"
 
19
TITLE="Idle Functions"
 
20
HREF="x1792.html"></HEAD
 
21
><BODY
 
22
CLASS="SECT1"
 
23
BGCOLOR="#FFFFFF"
 
24
TEXT="#000000"
 
25
LINK="#0000FF"
 
26
VLINK="#840084"
 
27
ALINK="#0000FF"
 
28
><DIV
 
29
CLASS="NAVHEADER"
 
30
><TABLE
 
31
SUMMARY="Header navigation table"
 
32
WIDTH="100%"
 
33
BORDER="0"
 
34
CELLPADDING="0"
 
35
CELLSPACING="0"
 
36
><TR
 
37
><TH
 
38
COLSPAN="3"
 
39
ALIGN="center"
 
40
>GTK+ 2.0 Tutorial</TH
 
41
></TR
 
42
><TR
 
43
><TD
 
44
WIDTH="10%"
 
45
ALIGN="left"
 
46
VALIGN="bottom"
 
47
><A
 
48
HREF="c1761.html"
 
49
ACCESSKEY="P"
 
50
>&#60;&#60;&#60; Previous</A
 
51
></TD
 
52
><TD
 
53
WIDTH="80%"
 
54
ALIGN="center"
 
55
VALIGN="bottom"
 
56
>Timeouts, IO and Idle Functions</TD
 
57
><TD
 
58
WIDTH="10%"
 
59
ALIGN="right"
 
60
VALIGN="bottom"
 
61
><A
 
62
HREF="x1792.html"
 
63
ACCESSKEY="N"
 
64
>Next &#62;&#62;&#62;</A
 
65
></TD
 
66
></TR
 
67
></TABLE
 
68
><HR
 
69
ALIGN="LEFT"
 
70
WIDTH="100%"></DIV
 
71
><DIV
 
72
CLASS="SECT1"
 
73
><H1
 
74
CLASS="SECT1"
 
75
><A
 
76
NAME="SEC-MONITORINGIO"
 
77
>Monitoring IO</A
 
78
></H1
 
79
><P
 
80
>A nifty feature of GDK (the library that underlies GTK), is the
 
81
ability to have it check for data on a file descriptor for you (as
 
82
returned by open(2) or socket(2)). This is especially useful for
 
83
networking applications. The function:</P
 
84
><TABLE
 
85
BORDER="0"
 
86
BGCOLOR="#E0E0E0"
 
87
WIDTH="100%"
 
88
><TR
 
89
><TD
 
90
><PRE
 
91
CLASS="PROGRAMLISTING"
 
92
>gint gdk_input_add( gint              source,
 
93
                    GdkInputCondition condition,
 
94
                    GdkInputFunction  function,
 
95
                    gpointer          data );</PRE
 
96
></TD
 
97
></TR
 
98
></TABLE
 
99
><P
 
100
>Where the first argument is the file descriptor you wish to have
 
101
watched, and the second specifies what you want GDK to look for. This
 
102
may be one of:</P
 
103
><P
 
104
></P
 
105
><UL
 
106
><LI
 
107
><P
 
108
><TT
 
109
CLASS="LITERAL"
 
110
>GDK_INPUT_READ</TT
 
111
> - Call your function when there is data
 
112
ready for reading on your file descriptor.</P
 
113
></LI
 
114
><LI
 
115
><P
 
116
><TT
 
117
CLASS="LITERAL"
 
118
>GDK_INPUT_WRITE</TT
 
119
> - Call your function when the file
 
120
descriptor is ready for writing.</P
 
121
></LI
 
122
></UL
 
123
><P
 
124
>As I'm sure you've figured out already, the third argument is the
 
125
function you wish to have called when the above conditions are
 
126
satisfied, and the fourth is the data to pass to this function.</P
 
127
><P
 
128
>The return value is a tag that may be used to stop GDK from monitoring
 
129
this file descriptor using the following function.</P
 
130
><TABLE
 
131
BORDER="0"
 
132
BGCOLOR="#E0E0E0"
 
133
WIDTH="100%"
 
134
><TR
 
135
><TD
 
136
><PRE
 
137
CLASS="PROGRAMLISTING"
 
138
>void gdk_input_remove( gint tag );</PRE
 
139
></TD
 
140
></TR
 
141
></TABLE
 
142
><P
 
143
>The callback function should be declared as:</P
 
144
><TABLE
 
145
BORDER="0"
 
146
BGCOLOR="#E0E0E0"
 
147
WIDTH="100%"
 
148
><TR
 
149
><TD
 
150
><PRE
 
151
CLASS="PROGRAMLISTING"
 
152
>void input_callback( gpointer          data,
 
153
                     gint              source, 
 
154
                     GdkInputCondition condition );</PRE
 
155
></TD
 
156
></TR
 
157
></TABLE
 
158
><P
 
159
>Where <TT
 
160
CLASS="LITERAL"
 
161
>source</TT
 
162
> and <TT
 
163
CLASS="LITERAL"
 
164
>condition</TT
 
165
> are as specified above.</P
 
166
></DIV
 
167
><DIV
 
168
CLASS="NAVFOOTER"
 
169
><HR
 
170
ALIGN="LEFT"
 
171
WIDTH="100%"><TABLE
 
172
SUMMARY="Footer navigation table"
 
173
WIDTH="100%"
 
174
BORDER="0"
 
175
CELLPADDING="0"
 
176
CELLSPACING="0"
 
177
><TR
 
178
><TD
 
179
WIDTH="33%"
 
180
ALIGN="left"
 
181
VALIGN="top"
 
182
><A
 
183
HREF="c1761.html"
 
184
ACCESSKEY="P"
 
185
>&#60;&#60;&#60; Previous</A
 
186
></TD
 
187
><TD
 
188
WIDTH="34%"
 
189
ALIGN="center"
 
190
VALIGN="top"
 
191
><A
 
192
HREF="book1.html"
 
193
ACCESSKEY="H"
 
194
>Home</A
 
195
></TD
 
196
><TD
 
197
WIDTH="33%"
 
198
ALIGN="right"
 
199
VALIGN="top"
 
200
><A
 
201
HREF="x1792.html"
 
202
ACCESSKEY="N"
 
203
>Next &#62;&#62;&#62;</A
 
204
></TD
 
205
></TR
 
206
><TR
 
207
><TD
 
208
WIDTH="33%"
 
209
ALIGN="left"
 
210
VALIGN="top"
 
211
>Timeouts, IO and Idle Functions</TD
 
212
><TD
 
213
WIDTH="34%"
 
214
ALIGN="center"
 
215
VALIGN="top"
 
216
><A
 
217
HREF="c1761.html"
 
218
ACCESSKEY="U"
 
219
>Up</A
 
220
></TD
 
221
><TD
 
222
WIDTH="33%"
 
223
ALIGN="right"
 
224
VALIGN="top"
 
225
>Idle Functions</TD
 
226
></TR
 
227
></TABLE
 
228
></DIV
 
229
></BODY
 
230
></HTML
 
231
>
 
 
b'\\ No newline at end of file'