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

« back to all changes in this revision

Viewing changes to docs/faq/html/x902.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
>Memory does not seem to be released when I free the
 
6
list nodes I've allocated</TITLE
 
7
><META
 
8
NAME="GENERATOR"
 
9
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
10
REL="HOME"
 
11
TITLE="GTK+ FAQ"
 
12
HREF="book1.html"><LINK
 
13
REL="UP"
 
14
TITLE="About GLib"
 
15
HREF="c876.html"><LINK
 
16
REL="PREVIOUS"
 
17
TITLE="How can I use the doubly linked lists?"
 
18
HREF="x895.html"><LINK
 
19
REL="NEXT"
 
20
TITLE="Why use g_print, g_malloc, g_strdup and fellow glib
 
21
functions?"
 
22
HREF="x909.html"></HEAD
 
23
><BODY
 
24
CLASS="SECT1"
 
25
BGCOLOR="#FFFFFF"
 
26
TEXT="#000000"
 
27
LINK="#0000FF"
 
28
VLINK="#840084"
 
29
ALINK="#0000FF"
 
30
><DIV
 
31
CLASS="NAVHEADER"
 
32
><TABLE
 
33
SUMMARY="Header navigation table"
 
34
WIDTH="100%"
 
35
BORDER="0"
 
36
CELLPADDING="0"
 
37
CELLSPACING="0"
 
38
><TR
 
39
><TH
 
40
COLSPAN="3"
 
41
ALIGN="center"
 
42
>GTK+ FAQ</TH
 
43
></TR
 
44
><TR
 
45
><TD
 
46
WIDTH="10%"
 
47
ALIGN="left"
 
48
VALIGN="bottom"
 
49
><A
 
50
HREF="x895.html"
 
51
ACCESSKEY="P"
 
52
>&#60;&#60;&#60; Previous</A
 
53
></TD
 
54
><TD
 
55
WIDTH="80%"
 
56
ALIGN="center"
 
57
VALIGN="bottom"
 
58
>About GLib</TD
 
59
><TD
 
60
WIDTH="10%"
 
61
ALIGN="right"
 
62
VALIGN="bottom"
 
63
><A
 
64
HREF="x909.html"
 
65
ACCESSKEY="N"
 
66
>Next &#62;&#62;&#62;</A
 
67
></TD
 
68
></TR
 
69
></TABLE
 
70
><HR
 
71
ALIGN="LEFT"
 
72
WIDTH="100%"></DIV
 
73
><DIV
 
74
CLASS="SECT1"
 
75
><H1
 
76
CLASS="SECT1"
 
77
><A
 
78
NAME="AEN902"
 
79
>Memory does not seem to be released when I free the
 
80
list nodes I've allocated</A
 
81
></H1
 
82
><P
 
83
>GLib tries to be "intelligent" on this special issue: it
 
84
assumes that you are likely to reuse the objects, so caches
 
85
the allocated memory. If you do not want to use this behavior,
 
86
you'll probably want to set up a special allocator.</P
 
87
><P
 
88
>To quote Tim Janik:</P
 
89
><P
 
90
><SPAN
 
91
CLASS="QUOTE"
 
92
>"If you have a certain portion of code that uses *lots*
 
93
of GLists or GNodes, and you know you'd better want to release
 
94
all of them after a short while, you'd want to use a
 
95
GAllocator. Pushing an allocator into g_list will make all
 
96
subsequent glist operations private to that allocator's memory
 
97
pool (and thus you have to take care to pop the allocator
 
98
again, before making any external calls): "</SPAN
 
99
></P
 
100
><TABLE
 
101
BORDER="0"
 
102
BGCOLOR="#E0E0E0"
 
103
WIDTH="100%"
 
104
><TR
 
105
><TD
 
106
><PRE
 
107
CLASS="PROGRAMLISTING"
 
108
>GAllocator *allocator;
 
109
GList *list = NULL;
 
110
guint i;
 
111
 
 
112
/* set a new allocation pool for GList nodes */
 
113
allocator = g_allocator_new ("list heap", 1024);
 
114
g_list_push_allocator (allocator);
 
115
 
 
116
/* do some list operations */
 
117
for (i = 0; i &#60; 4096; i++)
 
118
  list = g_list_prepend (list, NULL);
 
119
list = g_list_reverse (list);
 
120
 
 
121
/* beware to pop allocator befor calling external functions */
 
122
g_list_pop_allocator ();
 
123
gtk_label_set_text (GTK_LABEL (some_label), "some text");
 
124
 
 
125
/* and set our private glist pool again */
 
126
g_list_push_allocator (allocator);
 
127
 
 
128
/* do some list operations */
 
129
g_list_free (list);
 
130
list = NULL;
 
131
for (i = 0; i &#60; 4096; i++)
 
132
  list = g_list_prepend (list, NULL);
 
133
  
 
134
/* and back out (while freeing all of the list nodes in our pool) */
 
135
g_list_pop_allocator ();
 
136
g_allocator_free (allocator);</PRE
 
137
></TD
 
138
></TR
 
139
></TABLE
 
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="x895.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="x909.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
>How can I use the doubly linked lists?</TD
 
186
><TD
 
187
WIDTH="34%"
 
188
ALIGN="center"
 
189
VALIGN="top"
 
190
><A
 
191
HREF="c876.html"
 
192
ACCESSKEY="U"
 
193
>Up</A
 
194
></TD
 
195
><TD
 
196
WIDTH="33%"
 
197
ALIGN="right"
 
198
VALIGN="top"
 
199
>Why use g_print, g_malloc, g_strdup and fellow glib
 
200
functions?</TD
 
201
></TR
 
202
></TABLE
 
203
></DIV
 
204
></BODY
 
205
></HTML
 
206
>
 
 
b'\\ No newline at end of file'