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

« back to all changes in this revision

Viewing changes to docs/tutorial/html/x1812.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
>Signal Emission and Propagation</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="Advanced Event and Signal Handling"
 
14
HREF="c1799.html"><LINK
 
15
REL="PREVIOUS"
 
16
TITLE="Advanced Event and Signal Handling"
 
17
HREF="c1799.html"><LINK
 
18
REL="NEXT"
 
19
TITLE="Managing Selections"
 
20
HREF="c1836.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="c1799.html"
 
49
ACCESSKEY="P"
 
50
>&#60;&#60;&#60; Previous</A
 
51
></TD
 
52
><TD
 
53
WIDTH="80%"
 
54
ALIGN="center"
 
55
VALIGN="bottom"
 
56
>Advanced Event and Signal Handling</TD
 
57
><TD
 
58
WIDTH="10%"
 
59
ALIGN="right"
 
60
VALIGN="bottom"
 
61
><A
 
62
HREF="c1836.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-SIGNALEMISSIONANDPROPAGATION"
 
77
>Signal Emission and Propagation</A
 
78
></H1
 
79
><P
 
80
>Signal emission is the process whereby GTK runs all handlers for a
 
81
specific object and signal.</P
 
82
><P
 
83
>First, note that the return value from a signal emission is the return
 
84
value of the <I
 
85
CLASS="EMPHASIS"
 
86
>last</I
 
87
> handler executed. Since event signals are
 
88
all of type <TT
 
89
CLASS="LITERAL"
 
90
>GTK_RUN_LAST</TT
 
91
>, this will be the default (GTK supplied)
 
92
handler, unless you connect with gtk_signal_connect_after().</P
 
93
><P
 
94
>The way an event (say "button_press_event") is handled, is:</P
 
95
><P
 
96
></P
 
97
><UL
 
98
><LI
 
99
><P
 
100
>Start with the widget where the event occured.</P
 
101
></LI
 
102
><LI
 
103
><P
 
104
>Emit the generic "event" signal. If that signal handler returns
 
105
a value of TRUE, stop all processing.</P
 
106
></LI
 
107
><LI
 
108
><P
 
109
>Otherwise, emit a specific, "button_press_event" signal. If that
 
110
returns TRUE, stop all processing.</P
 
111
></LI
 
112
><LI
 
113
><P
 
114
>Otherwise, go to the widget's parent, and repeat the above two
 
115
steps.</P
 
116
></LI
 
117
><LI
 
118
><P
 
119
>Continue until some signal handler returns TRUE, or until the
 
120
top-level widget is reached.</P
 
121
></LI
 
122
></UL
 
123
><P
 
124
>Some consequences of the above are:</P
 
125
><P
 
126
></P
 
127
><UL
 
128
><LI
 
129
><P
 
130
>Your handler's return value will have no effect if there is a
 
131
default handler, unless you connect with gtk_signal_connect_after().</P
 
132
></LI
 
133
><LI
 
134
><P
 
135
>To prevent the default handler from being run, you need to
 
136
connect with gtk_signal_connect() and use
 
137
gtk_signal_emit_stop_by_name() - the return value only affects whether
 
138
the signal is propagated, not the current emission.</P
 
139
></LI
 
140
></UL
 
141
></DIV
 
142
><DIV
 
143
CLASS="NAVFOOTER"
 
144
><HR
 
145
ALIGN="LEFT"
 
146
WIDTH="100%"><TABLE
 
147
SUMMARY="Footer navigation table"
 
148
WIDTH="100%"
 
149
BORDER="0"
 
150
CELLPADDING="0"
 
151
CELLSPACING="0"
 
152
><TR
 
153
><TD
 
154
WIDTH="33%"
 
155
ALIGN="left"
 
156
VALIGN="top"
 
157
><A
 
158
HREF="c1799.html"
 
159
ACCESSKEY="P"
 
160
>&#60;&#60;&#60; Previous</A
 
161
></TD
 
162
><TD
 
163
WIDTH="34%"
 
164
ALIGN="center"
 
165
VALIGN="top"
 
166
><A
 
167
HREF="book1.html"
 
168
ACCESSKEY="H"
 
169
>Home</A
 
170
></TD
 
171
><TD
 
172
WIDTH="33%"
 
173
ALIGN="right"
 
174
VALIGN="top"
 
175
><A
 
176
HREF="c1836.html"
 
177
ACCESSKEY="N"
 
178
>Next &#62;&#62;&#62;</A
 
179
></TD
 
180
></TR
 
181
><TR
 
182
><TD
 
183
WIDTH="33%"
 
184
ALIGN="left"
 
185
VALIGN="top"
 
186
>Advanced Event and Signal Handling</TD
 
187
><TD
 
188
WIDTH="34%"
 
189
ALIGN="center"
 
190
VALIGN="top"
 
191
><A
 
192
HREF="c1799.html"
 
193
ACCESSKEY="U"
 
194
>Up</A
 
195
></TD
 
196
><TD
 
197
WIDTH="33%"
 
198
ALIGN="right"
 
199
VALIGN="top"
 
200
>Managing Selections</TD
 
201
></TR
 
202
></TABLE
 
203
></DIV
 
204
></BODY
 
205
></HTML
 
206
>
 
 
b'\\ No newline at end of file'