]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Register RTL versions of the indent and unindent icons. (#326857, Itai
[~andy/gtk] / ChangeLog.pre-2-10
1 2006-01-14  Matthias Clasen  <mclasen@redhat.com>
2
3         * gtk/gtkiconfactory.c (get_default_icons): Register RTL 
4         versions of the indent and unindent icons.  (#326857,
5         Itai Bar-Haim)
6
7         * gtk/Makefile.am (STOCK_ICONS): And add them here.
8
9         Fix a crash with combo boxes in RESIZE_IMMEDIATE
10         containers.  (#326806, Sebastian Bacher)
11         
12         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate) 
13         (gtk_combo_box_size_request): Don't call 
14         gtk_combo_box_check_appearance() from here, as that 
15         can lead to recursion. 
16         (gtk_combo_box_init): Instead, call it here.
17
18 2006-01-14  Kristian Rietveld  <kris@gtk.org>
19
20         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_iter_children): fix
21         a typo which caused this whole thing to not function ...
22
23 2006-01-14  Kristian Rietveld  <kris@gtk.org>
24
25         * gtk/gtktreeview.c (gtk_tree_view_size_allocate),
26         (validate_visible_area): fixup adjustments and top_row if the
27         current dy + page_size exceeds the new tree view height. (Fixes
28         #316689, reported by Chris Lord).
29
30 2006-01-13  Matthias Clasen  <mclasen@redhat.com>
31
32         * */abicheck.sh: Make this work on more platforms.
33
34 2006-01-13  Kristian Rietveld  <kris@imendio.com>
35
36         * tests/testtreefocus.c (set_indicator_size), (main): add a little
37         test for the newly introduced indicator-size property.
38
39 2006-01-13  Kristian Rietveld  <kris@imendio.com>
40
41         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
42         initialize the inconsistent field in the private structure,
43         (gtk_cell_renderer_toggle_class_init),
44         (gtk_cell_renderer_toggle_{set,get}_property),
45         (gtk_cell_renderer_toggle_get_size): introduce a indicator-size
46         property.
47
48 2006-01-13  Michael Natterer  <mitch@imendio.com>
49
50         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row)
51         (gtk_tree_view_real_collapse_row): don't animate the expander
52         arrows if gtk-enable-animations is FALSE (bug #142582).
53
54 2006-01-12  Matthias Clasen  <mclasen@redhat.com>
55
56         * gtk/gtknotebook.c: Replace hardcoded values for tab-overlap and
57         tab-curvature with style properties.  (#325282, Alexander Nedotsukov)
58
59         * gtk/gtktextview.c (gtk_text_view_commit_text) 
60         (gtk_text_view_delete_from_cursor, gtk_text_view_backspace): 
61         Reset the virtual cursor position.  (#326003, Evert Verhellen)
62
63         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add some docs
64         about RGBA windows. (#326486, Benjamin Otte)
65
66 2006-01-12  Michael Natterer  <mitch@imendio.com>
67
68         * gdk/gdkimage.c (scratch_image_info_for_depth): connect to the
69         display's "closed" signal and free the cached scratch images upon
70         display closing (bug #85715).
71
72 2006-01-12  Michael Natterer  <mitch@imendio.com>
73
74         * gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
75         animation if the gtk-enable-animations setting is FALSE
76         (bug #142582).
77
78 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
79
80         * gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
81
82 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
83
84         * gtk/gtklabel.c: Add some notify batching, always
85         emit notify after setting the new value.
86
87         * gtk/gtkmessagedialog.c: Add properties.  (#311254,
88         Johan Dahlin)
89         (gtk_message_dialog_new): Remove some redundant code, pointed
90         out by Gustavo Carneiro.
91
92         * gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
93         up properly if the grab fails.
94         (finish_drag): Don't leak a reference to moveresize_window
95         here.
96
97 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
98
99         * gdk/x11/gdkevents-x11.c: Fix string offsets.
100
101         Allow falling back to another icon theme before 
102         hicolor.   (#325546, Rodney Dawes)
103         
104         * gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.
105
106         * gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.
107         
108         * gtk/gtkicontheme.c: Consult the fallback icon theme before
109         looking in hicolor. 
110
111 2006-01-10  Matthias Clasen  <mclasen@redhat.com>
112
113         * tests/testgtk.c: Add an expander example.
114
115         * gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
116         when losing the focus.  (#326064, Andrew Conkling)
117
118         * gtk/gtkimmulticontext.c: 
119         * gtk/gtkhsv.c: 
120         * gtk/gtkhandlebox.c: Convert to use instance private data.
121
122         * gtk/gtk.h: Remove duplicate include.  (#326429, 
123         Benoît Carpentier)
124
125         * gtk/gtkpaned.c: Convert to use instance private data.
126
127 2006-01-10  Michael Natterer  <mitch@imendio.com>
128
129         * gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
130         right object ("closed" is emitted by the display, not the screen).
131         (bug #85715)
132
133 2006-01-10  Anders Carlsson  <andersca@imendio.com>
134
135         * gdk/quartz/gdkproperty-quartz.c:
136         (ensure_atom_tables):
137         (intern_atom_internal):
138         (gdk_atom_intern):
139         (gdk_atom_intern_static_string):
140         (gdk_atom_name):
141         Implement local-only atoms.
142
143 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
144
145         * gdk/gdkgc.c (gc_get_foreground): Correct a warning.
146         (#326341, Benoît Carpentier)
147
148         * gtk/gtk.symbols:
149         * gtk/gtkwindow.h:
150         * gtk/gtkwindow.c (gtk_window_get_group): Make this function
151         public API.  (#307099, Todd Berman)
152
153         * gtk/gtkmenu.c: 
154         * gtk/gtkmain.c: 
155         * gtk/gtkentrycompletion.c: 
156         * gtk/gtkcombo.c: 
157         * gtk/gtkcombobox.c: Update all callers.
158
159         * gtk/gtkentry.c (paste_received):  Make GtkEntryCompletion
160         complete on pastes at the end.  (#165714, Christian Neumair)
161
162         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
163         Prevent the first row being focused on map.  (#137351,
164         Niklas Knutsson)
165
166 2006-01-09  Johan Dahlin  <jdahlin@async.com.br>
167
168         * gtk/gtk.symbols:
169         * gtk/gtkeditable.h:
170         * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
171         * gtk/gtksizegroup.h:
172         (struct _GtkSizeGroup): 
173
174         Add gtk_size_group_get_widgets, fixes #326324.
175         Also mark all fields of GtkSizeGroup as private
176
177 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
178
179         * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
180         leak preedit_string and preedit_attrs.  (#322332, Paolo
181         Borelli)
182
183         * gtk/gtk.symbols:
184         * gtk/gtkaction.h: 
185         * gtk/gtkaction.c (gtk_widget_get_action): New function to
186         get the action for a proxy.  (#326288)
187
188         * gtk/gtkaction.c: Go back to the old key for attaching the
189         action to the proxy.  (#326288, Diego González)
190
191 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
192
193         * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
194         empty strings.  (#326200, Christian Stimming)
195
196 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
197
198         * gtk/gtkentry.[hc]: 
199         * gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
200
201         * gtk/gtklabel.c (get_layout_location): Fix label alignment 
202         when width-chars is set.  (#326098, Benjamin Otte)
203
204         * gdk/gdkregion-generic.c (miRegionCopy): Fix this for the 
205         single-rectangle case.  (#326127, Benjamin Berg)
206         (gdk_region_copy): Use miRegionCopy() here.
207
208 2006-01-07  Matthias Clasen  <mclasen@redhat.com>
209
210         Fix actiongroup-action interaction that relied on 
211         actions connecting to notify on themselves:
212         
213         * gtk/gtkaction.[hc]: Factor out the code updating the
214         visibility/sensitivity of proxies into _gtk_action_sync_visible()
215         and _gtk_action_sync_sensible().
216
217         * gtk/gtkactiongroup.c: Call the new functions when the
218         group visibility/sensitivity changes. 
219
220 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
221
222         * gtk/gtkactiongroup.c (gtk_action_group_set_sensitive) 
223         (gtk_action_group_set_visible): Add missing property change
224         notification.
225
226 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
227
228         * gtk/gtkfilechooserbutton.c (model_add_special): Just use the
229         directory name for the home dir.  (#325817, Federico Mena Quintero)
230         
231         * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
232         to TRUE. 
233         (gtk_text_tag_class_init): The default value for the direction 
234         property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
235         of the font and language properties.
236
237         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
238         an action signal.  (#325782, Martyn Russell)
239
240         * gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
241         the old adjustments signals.  (#325869, Jorn Baayen)
242
243 2006-01-06  Hans Breuer  <hans@breuer.org>
244
245         * tests/makefile.msc : added a bunch of tests
246         * tests/testcellrenderertext.c : use g_snprintf()
247         * tests/testfilechooserbutton.c : don't include unistd.h twice.
248         Removed the unconditional one and added direct.h for G_OS_WIN32
249         
250 2006-01-05  Hans Breuer  <hans@breuer.org>
251
252         * gdk/makefile.msc : also recurse into win32 for ::clean
253         * gtk/makefile.msc.in : create gtkbuiltincache.h (most code
254         to simulate links) and file renames
255
256 2006-01-05  Johan Dahlin  <jdahlin@async.com.br>
257
258         * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
259         instead of -G_MAXUINT.
260         
261 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
262
263         * gtk/gtkwindow.c: Only connect to the event if we have
264         a frame, since the handler is only relevant in that case.
265
266         * gtk/gtkaction.c (connect_proxy, disconnect_proxy): 
267         Use a weak reference rather than the destroy signal to track 
268         proxies going away.
269
270         * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
271
272         * gtk/gtkaction.c (gtk_action_sync_property): 
273         (gtk_action_sync_stock_id): Removed.
274
275 2006-01-05  Rodrigo Moya <rodrigo@novell.com>
276
277         * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
278         signal and arguments.
279
280 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
281
282         * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
283         a void function.
284
285 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
286
287         * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
288         changes.
289         
290         * gtk/gtkbindings.c: Use the slice allocator and allocate signal
291         and arguments in one block.
292
293         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
294         a list of NULLs.  (#325723, Steve Chaplin)
295
296 2006-01-04  Rodrigo Moya <rodrigo@novell.com>
297
298         * gtk/gtkbindings.c (binding_signal_new): guard against multiplying
299         by -1 (when n_args is 0).
300
301 2006-01-04  Michael Natterer  <mitch@imendio.com>
302
303         * gtk/gtkmenutoolbutton.c
304         (gtk_menu_tool_button_set_menu)
305         (gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
306         and gtk_menu_detach() instead of reffing/unreffing the menu
307         manually. Also fixes brokenness on screen change (bug #85715).
308
309 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
310
311         * gtk/gtkaccelmap.c: 
312         * gtk/gtkactiongroup.c: 
313         * gtk/gtkdialog.c: 
314         * gtk/gtkfilesystemunix.c: 
315         * gtk/gtkgc.c: 
316         * gtk/gtkkeyhash.c: 
317         * gtk/gtkplug.c: 
318         * gtk/gtktextiter.c: 
319         * gtk/gtktextlayout.c: 
320         * gtk/gtkuimanager.c: 
321         * gtk/gtkwidget.c: 
322         * gtk/gtkwindow.c: 
323         * gtk/gtkxembed.c: Use the slice allocator for many small 
324         allocations.
325
326         * gtk/gtkcolorsel.c: 
327         * gtk/gtktreeview.c: Use IPN.
328
329         * gtk/gtkwidget.c: Remove an unused field from the AccelPath 
330         struct.
331
332 2006-01-04  Tor Lillqvist  <tml@novell.com>
333
334         * gtk-zip.sh.in: Include also the gtk20-properties message catalogs.
335
336 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
337         
338         * gtk/gtkdnd.c: Make it compile
339
340         * gtk/gtkdnd.c (gtk_drag_begin_internal): Call gtk_drag_update
341         for non-motion events.  (#325443, Peter Harvey)
342
343         * gtk/gtkaction.c: Avoid connecting to notify on our own
344         properties. 
345
346 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
347
348         * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
349         words, delete preceding whitespace as well.  (#325358,  Akkana Peck)
350
351 2006-01-02  Anders Carlsson  <andersca@imendio.com>
352
353         * gdk/quartz/GdkQuartzWindow.c:
354         (-[GdkQuartzWindow canBecomeMainWindow]):
355         (-[GdkQuartzWindow canBecomeKeyWindow]):
356         Have these return TRUE
357         
358         * gdk/quartz/gdkevents-quartz.c:
359         (pointer_grab_internal):
360         Remove FIXME
361         
362         (find_child_window_by_point_helper):
363         Fix bug in offset calculation
364         
365         (find_window_for_event):
366         Use grab window toplevel when a grab is in effect
367         
368         (gdk_event_translate):
369         Don't call _gdk_event_button_generate on mouse up
370         
371         * gdk/quartz/gdkgc-quartz.c:
372         (_gdk_quartz_gc_new):
373         Fix indentation
374         
375         * gdk/quartz/gdkwindow-quartz.c:
376         (gdk_window_new):
377         Make TEMP windows borderless
378         
379         (gdk_window_hide):
380         Hide window
381         
382         (gdk_window_get_origin):
383         Implement
384         
385 2006-01-02  Tor Lillqvist  <tml@novell.com>
386
387         * gdk/win32/gdkwindow-win32.c
388         (gdk_window_impl_win32_get_visible_region): Make identical to the
389         X11 implementation. (#322264, John Ehresman)
390
391         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): Get the
392         invalidated region from ScrollWindowEx() instead of an incorrect
393         attempt to calculate it ourselves. Fix by John Ehresman. (#323666)
394
395         * gdkevents-win32.c: Make _gdk_win32_hrgn_to_region() non-static.
396
397         * gdkprivate-win32.h: Declare it.
398
399 2005-12-31  Matthias Clasen  <mclasen@redhat.com>
400
401         * gtk/gtkaction.c: 
402         * gtk/gtkentry.c: Connect to notify instead of multiple
403         detailed signals.
404
405 2005-12-30  Matthias Clasen  <mclasen@redhat.com>
406
407         * gdk/gdk.symbols: 
408         * gdk/gdkcairo.h: 
409         * gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap.  (#318805,
410         Alexander Larsson)
411
412         * gdk/gdkdisplaymanager.c (gdk_display_manager_set_property): Call
413         gdk_display_manager_set_default_display() to change the default
414         display.  (#153623, Stefan Kost)
415
416         * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
417          (setup_type): Alert dialogs should not have titles and should 
418         not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
419         Dennis Cranston)
420
421 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
422
423         * gtk/gtkliststore.c: 
424         * gtk/gtktreestore.c: Always call the get_path and get_iter
425         implementations directly, rather than the current mixture whith
426         some calls going through the GtkTreeModel interface.
427
428         * gtk/gtktreemodelsort.c: 
429         * gtk/gtkliststore.c: 
430         * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks
431         in static functions.
432         
433         * gtk/gtktreedatalist.c: Use the slice allocater for 
434         GtkTreeDataSortHeader.
435
436         * gtk/gtktreedatalist.h: 
437         * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function.
438
439         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): 
440         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): 
441         * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
442
443 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
444
445         * gtk/gtkbindings.h (GtkBindingSignal): 
446         * gtk/gtkbindings.c (binding_signal_new): Make the
447         args a flexible array inside the struct, and allocate them
448         together.
449
450 Wed Dec 28 00:45:46 2005  Tim Janik  <timj@gtk.org>
451
452         * gtk/gtkctree.c (row_delete): delete GtkCTreeRow as GtkCTreeRow, not
453         clist rows which crashes in gslice later on.
454
455 2005-12-27  Federico Mena Quintero  <federico@ximian.com>
456
457         * gtk/gtkfilefilter.c (gtk_file_filter_filter): In the case for
458         FILTER_RULE_PIXBUF_FORMATS, check that filter_info->mime_type is
459         not NULL.  Fixes bug #317687.
460
461 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
462
463         * gdk/x11/gdkevents-x11.c (check_transform): Fix a typo.
464         (gdk_screen_get_setting): Avoid relocations for the settings
465         map.
466
467         * gdk/x11/gdkproperty-x11.c: Avoid relocations for the list
468         of standard atoms.
469
470         * gtk/gtkbindings.c (gtk_binding_set_new): Avoid copying
471         the set_name by interning it.
472
473 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
474
475         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
476         before calling gdk_window_new().
477
478         * gtk/gtktextbtree.c: Use the slice allocator for some other small
479         auxiliary structures as well.
480
481         * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
482         docs.  (#324996)
483
484         * gtk/gtktextbtree.c (gtk_text_btree_get_tag_info) 
485         (gtk_text_btree_remove_tag_info): Use the slice allocator for 
486         tag info.
487
488         * README.in: Mention the stripping of (_F) suffixes.
489
490         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of 
491         the form "(_<single character>)", since this is the preferred way
492         for some languages to indicate accelerators.  (#323956, Yang Hong)
493
494         * gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
495         setting.
496         (gtk_label_grab_focus): And use it here to select the contents of
497         the label when appropriate.
498         (gtk_label_class_init): Use the same keybindings for select all/
499         unselect all as GtkEntry and GtkTextView.
500
501         * gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
502         focus, avoid leaving a selection in a label.
503
504 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
505
506         * gtk/gtkwindow.c: Documentation fixes.  (#324815, 
507         Ross Burton)
508
509         * configure.in: Require GLib 2.9.2
510
511 2005-12-24  Matthias Clasen  <mclasen@redhat.com>
512
513         * gdk/gdkregion-generic.c: 
514         * gdk/gdkpolyreg-generic.c: 
515         * gdk/gdkregion.h: 
516         * gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid 
517         extra allocation for rectangular regions.
518
519 Thu Dec 22 18:53:14 2005  Tim Janik  <timj@gtk.org>
520
521         * gtk/gtkobject.[hc]: renamed GUnowned to GInitiallyUnowned.
522
523 Thu Dec 22 17:55:11 2005  Tim Janik  <timj@gtk.org>
524
525         * gtk/gtkobject.h: parent type fixups in structure declarations.
526
527 Thu Dec 22 16:01:27 2005  Tim Janik  <timj@imendio.com>
528
529         * gtk/gtkobject.c: derive GtkObject from GUnowned,
530         so it initially has a floating reference count.
531         gtk_object_class_init(): installa floating flag handler with
532         libgobject, so for GtkObjects the flag is stored as GTK_FLOATING
533         in the ->flags member.
534
535         * tests/floatingtest.c: test floating flag uses.
536
537 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
538
539         * gdk/gdkregion-generic.c: Use the slice allocator
540         for regions. Still todo: avoid extra allocations for
541         the single-rectangle case.
542
543         * gtk/gtksettings.c (gtk_settings_class_init): Update
544         class_n_properties after installing color-hash, since
545         other classes install settings, too.
546
547         * gtk/gtkctree.c: 
548         * gtk/gtkclist.c: Fix some mistakes in the conversion
549         from mem chunks to slice allocator.
550
551         * gtk/gtkiconview.c (adjust_wrap_width): Adjust the 
552         wrap-width also if an explicit item width is set.  
553         (#322475, Alex Graveley)
554         
555 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
556
557         * gtk/gtkiconview.c (gtk_icon_view_button_press): Reset 
558         pressed_button to -1 after handling a double click, so that
559         motion events occurring between here and the release event
560         don't trigger DND.  (#324588, Dave Andreoli)
561
562 2005-12-19  Matthias Clasen  <mclasen@redhat.com>
563
564         * gtk/gtkcellrenderer.c: 
565         * gtk/gtkselection.c: 
566         * gtk/gtkcalendar.c: 
567         * gtk/gtkitemfactory.c: 
568         * gdk/gtkcombo.c: 
569         * gdk/gdkpixbuf-render.c: Documentation updates
570
571         * gtk/gtktreemodel.c: 
572         * gtk/gtkplug.c: 
573         * gtk/gtkwindow.c: Documentation fixes.
574
575 2005-12-19  Michael Natterer  <mitch@imendio.com>
576
577         * gtk/gtkentry.c: implement boolean property "truncate-multiline"
578         which, when enabled, truncates multi-line pastes or drops to their
579         first line. Fixes bug #322252.
580
581         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): enable
582         truncate-multiline here.
583
584 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
585
586         * gtk/gtksettings.c (get_color_hash): Don't crash if
587         there is no color scheme.  (#324429, Diego Gonzalez)
588
589 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
590
591         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
592         * gtk/gtkimmodule.c (gtk_im_module_load): 
593         * gtk/gtkthemes.c (gtk_theme_engine_load): 
594         * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
595         opening modules.
596
597         * gtk/gtksettings.[hc]: Rework the way the color scheme setting
598         is inherited. Now the overriding is done on a per-color basis,
599         rather than for the setting as a whole. This has the effect
600         that themes can declare defaults for all the symbolic colors they
601         use by specifying a value for the gtk-color-scheme setting in 
602         their rc file, while still allowing the XSetting to override
603         "standard" symbolic colors. The hash table is now available
604         through the color-hash property.
605         
606         * gtk/gtkrc.c: Use the new color-hash property.
607         
608 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
609
610         * gtk/gtkcontainer.c (_gtk_container_focus_sort): Skip unrealized
611         children when doing focus sorting.  (#323995, Dan Winship)
612
613 2005-12-14  Rodney Dawes  <dobey@novell.com>
614
615         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
616         Default to "drive-harddisk" and then fall back to gnome-dev-harddisk
617         (get_icon_for_mime_type): Look up the mime type icons according to the
618         Icon Naming Specification and then fall back to the gnome-mime- prefix
619         for the mime type icons
620
621         Fixes #323655
622         
623 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
624
625         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
626         cannot be loaded.  (#323504, Kjartan Maraas)
627
628         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs 
629         for the row-activated signal.  (#324044, Davyd Madeley)
630
631 2005-12-14  Michael Natterer  <mitch@imendio.com>
632
633         * tests/test-images/valid_jpeg_progressive_test: new test image.
634
635 Tue Dec 13 09:47:20 2005  Tim Janik  <timj@gtk.org>
636
637         * README.in: added a link to the floating reference docs in the
638         2.10 release NEWS section.
639
640 2005-12-12  Matthias Clasen  <mclasen@redhat.com>
641
642         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index): 
643         Speed this function up, using the fact that visibility is 
644         constant across segments. (#321548, Paolo Borelli)
645
646         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
647         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up
648         stepping backwards.  (#320638, Larry Ewing, Paolo Borelli)
649
650         * gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
651         _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
652         upon initial theme load.  (#323876, Peter Lund)
653
654         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Register
655         the size-changed signal correctly.  (#323848, Murray Cumming)
656
657         * gtk/gtkmarshalers.list: Add necessary marshaller.
658
659         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
660         fall thru to the wrong window types.  (#323843)
661
662         Make the gtk-color-scheme setting work.
663         
664         * gtk/gtksettings.h: 
665         * gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
666         that takes care of initializing the color hash if it is not 
667         already there.  
668
669         * gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get): 
670         And use it here.        
671
672 2005-12-10  Matthias Clasen  <mclasen@redhat.com>
673
674         * gdk/gdk.c (gdk_parse_args): Warn if parsing fails,
675         not if it succeeds. 
676
677 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
678
679         * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
680         leak list[0].  (#323629, Markku Vire)
681
682         * gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
683         when freeing the RequestData.  (#323577)
684
685 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
686
687         * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
688         leak text.
689
690         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
691         variable name clash.  (#323475, Ross Burton)
692
693 2005-12-07  Ross Burton  <ross@burtonini.com>
694
695         * docs/reference/gtk/tmpl/gtkenums.sgml:
696         * gtk/gtktoolbutton.c:
697         If the toolbar mode is ICONS and there is no icon set then show
698         the label, and vice versa (#322019)
699
700 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
701
702         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
703         variable name clash.  (#323475, Ross Burton)
704
705         * gtk/gtktreeview.c (gtk_tree_view_key_press): Use the correct
706         window when synthesizing the key event.  (#323077,
707         Sadrul Habib Chowdhury)
708         
709         (gtk_tree_view_search_key_press_event): Also listen for
710         GDK_ISO_Left_Tab.  (#323077, Sadrul Habib Chowdhury)
711
712         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler): 
713         Only scroll if we have focus.  (#316310, Paolo Borelli)
714
715         * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
716         spotted by Crispin Flowerday.
717
718 2005-12-06  Behdad Esfahbod  <behdad@gnome.org>
719
720         * gtk/gtksettings.c (settings_update_font_options): Turn metrics
721         hinting on (part of #307196)
722
723 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
724
725         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't
726         commit from reset, it upstets GtkTextView.
727
728         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more
729         careful when turning blinking on and off.
730         (gtk_text_view_focus_out_event): Make the cursor really invisible
731         when the focus goes away.  (#323087, Sadrul Habib Chowdhury)
732         (cursor_blinks): Check the gtk-cursor-blink setting first.
733
734         * gtk/gtktreeview.c (gtk_tree_view_key_press): Fix refcounting
735         issues with new_event and its window.
736
737         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Accept NULL
738         as a detach func.  (#323386, Jorn Baayen)
739
740         * gtk/gtkcalendar.c: Avoid conflict with win32 headers in
741         the libdate routines.  (#323045, Kazuki Iwamoto)
742
743         * gdk/gdk.c (gdk_parse_args): 
744         * gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
745         from g_option_context_parse(). 
746
747 Tue Dec  6 11:37:59 2005  Tim Janik  <timj@gtk.org>
748
749         * gdk/gdkevents.c (gdk_event_new): fix missing hash table 
750         initialization.
751
752 Tue Dec  6 10:32:17 2005  Tim Janik  <timj@gtk.org>
753
754         * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
755         compiles again.
756
757 2005-12-05  Federico Mena Quintero  <federico@ximian.com>
758
759         * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
760         modifiers", not "event->state && modifiers".  Patch by Sadrul
761         Habib Chowdhury <imadil@gmail.com>.  Fixes bug #323073.
762
763 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
764
765         * gtk/gtkwidget.c: 
766         * gtk/gtkuimanager.c: 
767         * gtk/gtktreedatalist.c: 
768         * gtk/gtktext.c: 
769         * gtk/gtkmain.c: 
770         * gtk/gtkitemfactory.c: 
771         * gtk/gtkseparator.[hc]:
772         * gtk/gtkclist.[hc]: 
773         * gtk/gtkctree.c:
774         * gtk/gtkgc.c: Use g_slice instead of mem chunks.
775
776 2005-12-05  Michael Natterer  <mitch@imendio.com>
777
778         * gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
779         "timeout-initial", "timeout-repeat", "color-scheme" and
780         "enable-animations" to X settings.
781
782 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
783
784         * gdk/gdkevents.c: 
785         * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
786
787         * gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
788         after sending it to the search entry.  (#323209, Crispin Flowerday)
789
790         * README.in: Add a note about GTK_FLOATING.
791
792         * gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
793
794 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
795
796         * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
797         a pixbuf.  (#323024, Paolo Borelli)
798
799 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
800
801         * gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
802         if mime_type is NULL.  (#322998, Sadrul Habib Chowdhury)
803
804 2005-12-02  Michael Natterer  <mitch@imendio.com>
805
806         * gtk/gtkmenu.c: applied modified patch from maemo-gtk which
807         adds a "horizontal-padding" style property. Fixes bug #323036.
808
809 2005-12-01  Michael Natterer  <mitch@imendio.com>
810
811         Merged modified patch from maemo-gtk that allows to disable
812         toolbar animations. Addresses bug #142582.
813
814         * gtk/gtksettings.c: added boolean property "gtk-enable-animations".
815         (patch from Christian Neumair)
816
817         * gtk/gtktoolbar.c: don't animate toolbar changes if the settings
818         property is FALSE. Replaced the individual "notify::foo"
819         connections to GtkSettings by a single "notify" callback and
820         dispatch internally.
821
822 2005-12-01  Michael Natterer  <mitch@imendio.com>
823
824         * gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
825         assignment of widget_class->motion_notify_event.
826
827 2005-11-29  Matthias Clasen  <mclasen@redhat.com>
828
829         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add 
830         an active property.  (#322673, Jorn Baayen)
831
832         Properly handle model changes in GtkTreeSelection: (#322569,
833         Milosz Derezynski)
834         
835         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): 
836         Get a reference to the model, and stop the iteration if the model
837         of the treeview is changed on the way.
838
839         * gtk/gtktreeprivate.h: 
840         * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New 
841         private function to emit the GtkTreeSelection::changed signal.
842
843         * gtk/gtktreeview.c (gtk_tree_view_set_model): Call 
844         _gtk_tree_selection_emit_changed() when the model changes.
845
846 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
847
848         Fixes the critical warnings from bug #317999, thus fixing the bug
849         completely:
850
851         * gtk/gtkfilechooserdefault.c
852         (gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
853         use _gtk_file_chooser_get_current_folder_path() instead of fetching the
854         impl->current_folder directly.  The latter may be null if we are
855         in RELOAD_NONE state.
856
857 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
858
859         Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
860
861         * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
862         current_folder to the pending select paths here; the path bar will
863         give it to us now.
864         (path_bar_clicked): Add the child_path to the pending select paths
865         here.
866         (show_and_select_paths): Don't filter out folders.
867         (show_and_select_paths): Don't take separate arguments for
868         only_one_path and multiple paths.
869
870         * tests/autotestfilechooser.c (test_folder_switch_and_filters):
871         New test about preserving the filters when we change folders.
872
873 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
874
875         * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
876         -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
877
878         * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
879         (connect_proxy): Buttons use the label property for stock ids.  (#322565,
880         Milosz Derezynski)
881
882         * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
883         handle the cell list and indices into it.  (#321856)
884
885 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
886
887         * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
888         the timeout is done.  (#322291, Jean-Yves Lefort)
889
890 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
891
892         * gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
893         F2 work for renaming bookmarks.  (#320822, Jaap A. Haitsma, patch
894         by Paolo Borelli)
895
896 2005-11-28  Tor Lillqvist  <tml@novell.com>
897
898         * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
899         Implement the conditional use of FlashWindowEx() properly for MSVC
900         compilations. The code was confusingly assuming that if compiled
901         with a "new" compiler, it will only be run on "new" Windows
902         versions. We want it to run on "old" versions, too, even if
903         compiled with a "new" compiler. There are two orthogonal issues:
904         whether the compiler defines the necessary API in its headers, and
905         whether it is present at run-time. (#318077)
906
907         * gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
908         Windows to get the localized weekday and month names. strftime()
909         in the Microsoft C library returns strings in the default codepage
910         for the locale of the process, not the system codepage. Thus
911         g_locale_to_utf8() isn't useable on the return value from
912         strftime(). (#322603)
913
914 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
915
916         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup): 
917         Fix an example.  (#322493, Elie De Brauwer)
918         
919         Fix two memory handling problems in GtkTreeView: (#322350, 
920         Søren Sandmann)
921         
922         * gtk/gtktreeview.c (gtk_tree_view_destroy) 
923         (gtk_tree_view_set_model): Remove all references to nodes in
924         the old model.
925         (gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
926         before removing the children.
927
928         * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a 
929         PangoLayout here.  (#322505, Paolo Borelli)
930
931 2005-11-27  Tor Lillqvist  <tml@novell.com>
932
933         Once again rework Win32 window decoration code. Doesn't break
934         #104514. The dialogs in gtk-demo now have the same decorations and
935         behaviour as on X11. Tried to fix #322516 but it seems very hard
936         to make the trivial sample program there behave as expected. OTOH,
937         simply moving the gtk_window_decorate() call in the #322516 sample
938         program after the call to gtk_widget_show() helps...
939             
940         * gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
941         the correct semantics. Each call to gdk_window_set_decorations()
942         which calls this function is supposed to affect all decorations.
943
944         (decorate_based_on_hints): New function, looks at both geometry
945         hints and type hint and sets window decorations based on
946         that. Consolidate code from gdk_window_set_geometry_hints() and
947         gdk_window_set_type_hint() here.
948
949         (gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
950         decorate_based_on_hints().
951
952 2005-11-25  Dom Lachowicz <cinamod@hotmail.com>
953
954         * modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
955         Includes improved menu icon spacing, [+]/[-] expander drawing,
956         status-bar gippie drawing, and notebook tab drawing.
957         
958 2005-11-24  Michael Natterer  <mitch@imendio.com>
959
960         * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
961         that used to hold signal handler IDs to two guint of padding.
962
963         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
964         gulong here.
965
966         (gtk_toolbar_screen_changed): changed accordingly.
967
968 Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
969
970         * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
971         in terms of the GObject floating/sink API.
972
973         * gtk/gtkaboutdialog.c:
974         * gtk/gtkaction.c:
975         * gtk/gtkcellview.c:
976         * gtk/gtkclist.c:
977         * gtk/gtkcolorsel.c:
978         * gtk/gtkcombobox.c:
979         * gtk/gtkfilechooserdefault.c:
980         * gtk/gtkiconview.c:
981         * gtk/gtkinvisible.c:
982         * gtk/gtkitemfactory.c:
983         * gtk/gtklayout.c:
984         * gtk/gtkmenu.c:
985         * gtk/gtkmenutoolbutton.c:
986         * gtk/gtknotebook.c:
987         * gtk/gtkprogress.c:
988         * gtk/gtkrange.c:
989         * gtk/gtkspinbutton.c:
990         * gtk/gtkstatusicon.c:
991         * gtk/gtktext.c:
992         * gtk/gtktextview.c:
993         * gtk/gtktoolbar.c:
994         * gtk/gtktoolbutton.c:
995         * gtk/gtktoolitem.c:
996         * gtk/gtktreeitem.c:
997         * gtk/gtktreeview.c:
998         * gtk/gtktreeviewcolumn.c:
999         * gtk/gtkuimanager.c:
1000         * gtk/gtkviewport.c:
1001         * gtk/gtkwidget.c:
1002         * gtk/gtkwindow.c:
1003         ported to use GObject's g_object_ref_sink().
1004
1005         * gtk/gtkcolorsel.c:
1006         * gtk/gtkfilechooserdefault.c:
1007         * gtk/gtkaboutdialog.c:
1008         fixed compiler warnings.
1009
1010 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
1011
1012         * gtk/gtksettings.c (gtk_settings_class_init): Add some docs
1013         about gtk-color-scheme.
1014
1015 2005-11-23  Behdad Esfahbod  <behdad@gnome.org>
1016
1017         * configure.in (enable_explicit_deps): Fix typo when checking
1018         libtool config deplibs_check_method. Moreover, enable explicit
1019         deps if we get anything other than pass_all from libtool. (part of
1020         #318750)
1021
1022 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
1023
1024         * gtk/updateiconcache.c (write_csource): Don't create a big
1025         string, since Visual C++ doesn't like strings longer than 64k. 
1026         (#322238, Kazuki IWAMOTO
1027
1028         * gtk/gtkentry.c: Include gtkimcontextsimple.h  (#322235,
1029         Kazuki IWAMOTO)
1030
1031 2005-11-23  Michael Natterer  <mitch@imendio.com>
1032
1033         * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
1034         windows on other screens (correctly remove all temporary
1035         references).
1036
1037 2005-11-23  Michael Natterer  <mitch@imendio.com>
1038
1039         Added symbolic themable colors. Patch is a merged version of
1040         proposals from Matthias and maemo-gtk. Fixes bug #114355.
1041
1042         * configure.in: require glib >= 2.9.1 for refcountable hashtables.
1043
1044         * gtk/gtksettings.c: added property "color-scheme" which is a
1045         string defining colors like "foreground:black\nbackground:grey".
1046         Automatically provide a name->GdkColor hash table mapping for the
1047         color scheme.
1048
1049         * gtk/gtkrc.[ch]: added list of color hashes that works like the
1050         list of icon factories. Append the color scheme hash from
1051         GtkSettings if it exists. Extended gtkrc syntax to allow defining
1052         and referencing of logical colors. Also allow to modulate colors
1053         in gtkrc by using arbitrary expressions of mix(), shade(),
1054         lighter() and darker(). Added internal function
1055         _gtk_rc_style_get_color_hashes().
1056
1057         * gtk/gtkstyle.[ch]: keep a private list of color hashes around.
1058         Get the list from _gtk_rc_style_get_color_hashes(). Export
1059         internal function _gtk_style_shade() (used by above color
1060         expressions). Added public API gtk_style_lookup_color() which
1061         looks up a logical color by name.
1062
1063         * gtk/gtk.symbols: add gtk_style_lookup_color
1064
1065         * tests/testgtkrc: use symbolic colors for making
1066         the scrollbars red.
1067
1068 2005-11-22  Michael Natterer  <mitch@imendio.com>
1069
1070         Made button-press timeouts which work like key repeat timeouts
1071         configurable. Addresses bug #142582:
1072
1073         * gtk/gtksettings.c: added properties "gtk-timeout-initial" and
1074         "gtk-timeout-repeat" which defalt to 200/20 (ms).
1075
1076         Use the values from GtkSettings instead of hardcoding them
1077         (the repeat value is either taken as-is for fast repeat or
1078         multiplied by 5 for slow repeat). Changed all places to use these
1079         two standard initial/repeat timings:
1080
1081         * gtk/gtkcalendar.c (unchanged 200/20)
1082         * gtk/gtknotebook.c (unchanged 200/100)
1083         * gtk/gtkpathbar.c (changed from 300/150 to 200/100)
1084         * gtk/gtkrange.c (changed from 250/100 to 200/100)
1085         * gtk/gtkspinbutton.c (unchanged 200/20)
1086
1087 2005-11-21  Anders Carlsson  <andersca@imendio.com>
1088
1089         * configure.in:
1090         * gtk/Makefile.am:
1091         * gdk/Makefile.am:
1092         * gdk/quartz/*:
1093         Add quartz backend.
1094         
1095         * docs/tools/Makefile.am:
1096         Only build docshooter when the X11 backend is used.
1097         
1098         * gtk/gtkplug-stub.c:
1099         Include gtkplug.h here.
1100         
1101         * gtk/gtksocket-stub.c:
1102         Include gtksocket.h here.
1103         
1104 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
1105
1106         * gtk/gtkinputdialog.c: Convert GtkInputDialog to 
1107         g_type_class_add_private.
1108
1109         * gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
1110
1111         * gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
1112
1113         * gtk/gtk.symbols:
1114         * gtk/gtkcombobox.[hc]: Add a tearoff-title property,
1115         with getter and setter.  (#316482, Olexiy Avramchenko)
1116
1117         * tests/testcombo.c (main): Test gtk_combo_box_set_title
1118
1119         * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
1120         pointed out by Michael Natterer.
1121
1122         Fix for bug #321542, Benedikt Meurer:
1123         
1124         * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
1125         Emit notify::active.
1126         
1127         (gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
1128         g_signal_emit, not g_signal_emit_by_name.
1129
1130 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
1131
1132         Fix crashes in connection with pathbar scrolling (#321560,
1133         Bogdan Nicula)
1134         
1135         * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons): 
1136         Stop scrolling when desensitising slider buttons.
1137         (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press): 
1138         And use it here.  
1139
1140         * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
1141         scrolling_down flag.
1142
1143 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
1144
1145         * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
1146         (#321777, Jens Granseuer)
1147
1148         * gtk/gtkaction.c (disconnect_proxy): Disconnect the
1149         sync callback for the visibility property.  (#321761,
1150         Philip Langdale)
1151
1152         Turn off input methods in invisible entries, since
1153         they are confusing.  (#317002, James Su)
1154         
1155         * gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
1156         methods if visibility changes.
1157         (popup_targets_received): Don't show the input method
1158         menu if the entry is invisible.  
1159
1160 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
1161
1162         * README.in: Add a note about range arrow sensitivity.
1163
1164         * perf/treeview.c: const correctness fixes
1165         found by Arjan van de Ven and gcc.
1166
1167 2005-11-16  Michael Natterer  <mitch@imendio.com>
1168
1169         * gtk/gtkimage.c (animation_timeout): call
1170         gtk_window_process_updates() so the animation keeps running even
1171         if the main loop is busy with sources that eat a lot of cpu with
1172         high priority. Fixes bug #321444.
1173
1174         (gtk_image_new_from_animation): document the fact that the
1175         animation will stop running if the main loop is busy with sources
1176         that have priorities higher than G_PRIORITY_DEFAULT.
1177
1178         * tests/testimage.c: added test case that shows an animation even
1179         though a cpu-eating idle function is running.
1180
1181 2005-11-16  Michael Natterer  <mitch@imendio.com>
1182
1183         * gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
1184         function which destroys the display's event source. Also removes
1185         the source from the global display_sources list and unrefs it.
1186
1187         * gdk/x11/gdkprivate-x11.h: declare the function.
1188
1189         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
1190         instead of half-destroying the source here.
1191
1192 2005-11-15  Matthias Clasen  <mclasen@redhat.com>
1193
1194         * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
1195         leak.  (#321032, Peter Zelezny)
1196
1197 2005-11-15  Michael Natterer  <mitch@imendio.com>
1198
1199         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
1200         display->xid_ht as late as possible (right before XCloseDisplay)
1201         because it still needs to be around when the display's screens are
1202         finalized. (#85715)
1203
1204 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
1205
1206         * gtk/gtkselection.c (gtk_selection_data_set_uris): Don't
1207         leak result.  (#321441, Tommi Komulainen)
1208
1209 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
1210
1211         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
1212         Don't crash if there is no builtin icon.
1213
1214 2005-11-14  Michael Natterer  <mitch@imendio.com>
1215
1216         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
1217         removed redundant calls to g_object_notify().
1218
1219 2005-11-13  Matthias Clasen  <mclasen@redhat.com>
1220
1221         * gdk/gdkcolor.c (gdk_color_parse): Documentation 
1222         improvements.  (#321338)
1223
1224         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
1225         limit an inclusive boundary.  (#321299)
1226
1227 2005-11-12  Michael Natterer  <mitch@imendio.com>
1228
1229         * gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
1230         rebuilt if needed.
1231
1232 2005-11-12  Dom Lachowicz <cinamod@hotmail.com>
1233
1234         * modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32 
1235         theme's handling of toolbars, handleboxes, and menubars more in-line
1236         with Microsoft's IE style.
1237         * modules/engines/ms-windows/*.c: Indentation cleanups
1238         
1239 2005-11-12  Matthias Clasen  <mclasen@redhat.com>
1240
1241         Make builtin icons work in gtk_window_set_icon_name() 
1242         (#321046, Maxim Udushlivy)
1243
1244         * gtk/gtkicontheme.c (insert_theme): Always insert the default
1245         theme.
1246         (ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
1247         from here.
1248         (theme_lookup_icon, find_builtin_icon): ...and not from here.
1249         (gtk_icon_theme_lookup_icon): Remove an unncessary assert.
1250         (gtk_icon_theme_get_icon_sizes): Also check builtin icons.
1251
1252 2005-11-12  Tor Lillqvist  <tml@novell.com>
1253
1254         * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
1255         dotfiles, no such convention on Win32. Just hide files with the
1256         hidden attribute. (#314627)
1257
1258 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
1259
1260         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
1261         check whether the path is a folder.  It is useful to bookmark
1262         files as well (e.g. todo.txt), and this will also help
1263         performance.
1264         (shortcuts_add_bookmark_from_path): Likewise.
1265         (shortcuts_activate_iter): Change folders or select files, as
1266         appropriate.
1267
1268 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
1269
1270         * tests/autotestfilechooser.c (main): Use
1271         g_log_set_default_handler() instead of explicitly setting a
1272         handler for each domain.
1273
1274         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
1275         the base path of the volume if it is mounted.
1276
1277 2005-11-11  Michael Natterer  <mitch@imendio.com>
1278
1279         Added per-stepper API for GtkRange's stepper sensitivity as
1280         discussed in bug #321056:
1281
1282         * gtk/gtkenums.h: added GtkSensitivityType which can be
1283         { AUTO, ON, OFF }.
1284
1285         * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
1286         and "upper-stepper-sensitivity" and public getters/setters for
1287         them. Changed stepper drawing to honor the new properties.
1288
1289         * gtk/gtk.symbols: added the new symbols.
1290
1291 2005-11-10  Matthias Clasen  <mclasen@redhat.com>
1292
1293         * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
1294         emit them when the popup is shown or hidden.  (#162531, Tommi
1295         Komulainen)
1296
1297         * tests/testcombo.c: Add an example of popuplating a combobox
1298         on click.
1299
1300         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
1301         erroneous semicolon.
1302
1303         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
1304         semicolon. 
1305
1306         Don't corrupt odd keymaps (#316638, Kean Johnston)
1307         
1308         * gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
1309         handle frobbing keymaps with odd numbers of syms/code.
1310         
1311         * gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to 
1312         frob the keymap.
1313
1314         Improve navigation to parent folders.  (#318444, Andrei Yurkevich)
1315         
1316         * gtk/gtkpathbar.[hc]: Add a child_path argument to
1317         the path_clicked signal.
1318         * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
1319         child_path, if it is provided.
1320         * gtk/marshalers.list (path_bar_clicked): Add the necessary
1321         glue.
1322
1323         * gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
1324         Kjartan Maraas)
1325         
1326         * gtk/gtk.symbols: 
1327         * gtk/gtktreeview.h: 
1328         * gtk/gtktreeview.c: Implement a getter for headers-clickable.
1329         (#163851, Richard Hult)
1330
1331 2005-11-10  Michael Natterer  <mitch@imendio.com>
1332
1333         Applied patch from maemo-gtk that addresses many issues wrt
1334         display migration and display closing (bug #85715).
1335
1336         * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
1337         default display to NULL when it's closed. Instead set the most
1338         recently opened display as new default (if one exists).
1339
1340         * gdk/gdkpango.c (on_renderer_display_closed): fixed signature
1341         of this callback.
1342
1343         * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
1344         exist before unrefing them.
1345
1346         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
1347         is closed, allow destruction of the root window.
1348
1349         * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
1350         dispose(), free stuff that was leaked before.
1351
1352         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
1353         the xsettings_client still exists before destroying it.
1354
1355         * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
1356         X resources.
1357
1358         * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
1359         dispose() implementation.
1360
1361         * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
1362         dispose() and check if it still exists before unrefing it. Set
1363         their pointers to NULL/None *after* upchaining in dispose(),
1364         because X11 implementations of members of the parent class still
1365         need them for their own destruction.
1366
1367         * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
1368         was g_error()ing when finalizing a visual.
1369
1370         * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
1371         get_clipboard_widget() because it would create the widget if it
1372         doesn't exist. Use g_object_get_data() directly instead.
1373
1374         * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
1375         of this callback.
1376
1377 2005-11-10  Simos Xenitellis  <simos@gnome.org>
1378
1379         * configure.in: Added Tatar (tt) to ALL_LINGUAS.
1380
1381 Wed Nov  9 16:29:42 2005  Tim Janik  <timj@imendio.com>
1382
1383         * gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
1384         to render its arrows insensitive when the adjustment is in
1385         its min or max position. this makes range arrow behaviour 
1386         consistent with spin button behaviour. (#321056)
1387
1388 2005-11-09  Tor Lillqvist  <tml@novell.com>
1389
1390         * gdk/gdkinternals.h
1391         * gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
1392         the GdkDebugFlag enum.
1393
1394         * gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
1395         this file instead of MISC. Now asking for MISC will give mainly
1396         window manipulation debugging output with the Win32 backend.
1397
1398 2005-11-09  Tor Lillqvist  <tml@novell.com>
1399
1400         * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
1401
1402         (_gdk_win32_get_adjusted_client_rect): Remove this two-line
1403         function which was used only in one place.
1404
1405         (get_outer_rect): Use _gdk_win32_adjust_client_rect().
1406
1407         (gdk_window_set_geometry_hints): If we have identical minimum and
1408         maximum size hints, remove the resize and maximize
1409         decorations/functions. (#104514)
1410
1411         If we have a maximum size hint, remove the maximize
1412         decoration/function but ensure the resize decoration/function is
1413         available. Otherwise ensure both resize and maximize
1414         decorations/functions are there.
1415
1416         (set_or_clear_style_bits): Factored out common code from
1417         gdk_window_set_decorations() and gdk_window_set_functions(). 
1418
1419         Hack the window style setting once more: Only touch the window
1420         style bits corresponding to the GdkWMDecoration or GdkWMFunction
1421         parameter bitmasks. Hopefully this finally is the correct thing to
1422         do. We used to clear all other bits than those that were being
1423         set, or set all other bits than those that were being cleared.
1424
1425         Take into account that adding or removing decorations leaves the
1426         window's outer size unchanged, i.e., the client area's size and
1427         position change. This is apparently not what we want, so change
1428         also the window's (outer) position and size appropriately so that
1429         the client area's position and size stay constant.
1430
1431         gtk-demo's color selector dialog is now non-resizable like on X11
1432         (I tested with metacity in GNOME). Torn off menus are shrinkable
1433         vertically but have a maximum size, and are not maximizable or
1434         minimizable, like on X11.
1435
1436         (gdk_window_set_decorations, gdk_window_set_functions): Let
1437         set_or_clear_decorations() do most of the job.
1438
1439         * gdk/win32/gdkprivate-win32.h: Remove declaration of
1440         _gdk_win32_get_adjusted_client_rect().
1441
1442 2005-11-09  Tor Lillqvist  <tml@novell.com>
1443
1444         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
1445         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
1446         gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
1447         type hint. Implement gdk_window_get_type_hint() by just returning
1448         the hint stored.
1449
1450 2005-11-09  Tor Lillqvist  <tml@novell.com>
1451
1452         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
1453         Remove code that has been permanently ifdeffed out for two years.
1454
1455 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
1456
1457         * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
1458         finalizing a gc.  (#320789, Nickolay V. Shmyrev)
1459
1460         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
1461         icons if they would make the request large enough to cause
1462         Xlib to loose the connection.  (#320909, Claudio Saavedra)
1463
1464 2005-11-08  Michael Natterer  <mitch@imendio.com>
1465
1466         * gdk/gdk.symbols
1467         * gdk/gdkwindow.h
1468         * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
1469         extracted from maemo-gtk). Fixes bug #320872.
1470
1471 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
1472
1473         * gtk/gtkfilechooserdefault.c (shortcuts_reorder): Don't
1474         looks the bookmark label when reordering.  (#320720, Jeremy Cook)
1475
1476         * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons.
1477         Don't grab focus when a slider button is pressed, instead, use
1478         a bit in the pathbar struct to determine whether to scroll up
1479         or down.  (#314486, Carlos Garnacho)
1480
1481         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
1482         Don't popup the completions if the focus has already been
1483         moved somewhere else.  (#319914, Christian Persch)
1484
1485         * gtk/gtktoolitem.c (_gtk_tool_item_toolbar_reconfigured): 
1486         Raise the drag_window after reconfiguring the 
1487         toolbar.  (#320803, Christian Persch)
1488
1489         * gtk/gtk.symbols: 
1490         * gtk/gtkfilechooserbutton.h: 
1491         * gtk/gtkfilechooserbutton.c: Add a focus-on-click property
1492         with setter and getter.  (#318945, Christian Persch)
1493         
1494 Mon Nov  7 16:15:16 2005  Tim Janik  <timj@imendio.com>
1495
1496         * configure.in: fixed missing $X_CFLAGS setup in case x11.pc is present.
1497
1498 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
1499
1500         * configure.in: Adjust to the stock icon changes.
1501         
1502 2005-11-07  Tor Lillqvist  <tml@novell.com>
1503
1504         * gdk/win32/gdkcursor-win32.c (pixbuf_to_hbitmaps_normal):
1505         Correct the calculation of maskstride. (#320152, Peter Zelezny)
1506         
1507 2005-11-06  Michael Natterer  <mitch@imendio.com>
1508
1509         * gtk/Makefile.am (icons): fixed rule to actually create the
1510         symlinks, erroring out if anything goes wrong.
1511
1512 2005-11-06  Tor Lillqvist  <tml@novell.com>
1513
1514         * gtk/updateiconcache.c (build_cache): Can't rename a file if the
1515         target exists on Win32. First rename the target temporarily, then
1516         if the renaming of the source to target fails, restore the
1517         original name for the target.
1518
1519         * gtk/Makefile.am: Use EXEEXT in the dependency on gtk-update-icon-cache.
1520
1521 2005-11-06  Tor Lillqvist  <tml@novell.com>
1522
1523         (pixbuf_to_hbitmaps_alpha_winxp): Use an 1-bit mask bitmap,
1524         like pixbuf_to_hbitmaps_normal().
1525         (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
1526         G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
1527         setting the G_WIN32_PRETEND_WIN9X environment variable.
1528         
1529 2005-11-06  Tor Lillqvist  <tml@novell.com>
1530
1531         Make icon masks work on Win98 (#320152, Peter Zelezny)
1532
1533         * gdk/win32/gdkcursor-win32.c (create_color_bitmap): Take also a
1534         parameter for the depth of the bitmap, so that this function can
1535         be used to create 1-bit bitmaps, too.
1536         (pixbuf_to_hbitmaps_normal): Create an 1-bit bitmap for the mask,
1537         and initialize it properly.
1538
1539 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
1540
1541         Store builtin stock icons in an icon cache, instead of
1542         populating a hash table with pixbufs at startup, to save both
1543         memory and startup time.
1544
1545         * gtk/stock-icons/*: Reorganize the icons in a directory structure
1546         suitable for gtk-update-icon-cache, and rename them to match the
1547         stock ids.
1548
1549         * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
1550         add _gtk_icon_cache_has_icon_in_directory().
1551
1552         * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
1553         to store the contents of the icon cache in a C header.
1554
1555         * gtk/gtkbuiltincache.h: Generated private header which contains 
1556         the icon cache for the builtin icons.
1557
1558         * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
1559         icons, and use that in addition to the hash table whenever
1560         builtin icons are searched.
1561
1562         * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
1563         use it for static stock ids. 
1564         (get_default_icons): Don't add the builtin
1565         icons to the icon theme, just register the stock ids.
1566         (render_fallback_image): Take the fallback image out of the
1567         builtin icon cache.
1568         
1569         * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add 
1570         the necessary machinery to rebuild gtkbuiltincache.h.
1571
1572 2005-11-04  Michael Natterer  <mitch@imendio.com>
1573
1574         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): applied patch
1575         from maemo-gtk that changes the mtime check for rc files from
1576         '>' to '!=', otherwise theme changes go unnoticed when turning
1577         back the clock (Tommi Komulainen).
1578
1579 2005-11-04  Tor Lillqvist  <tml@novell.com>
1580
1581         * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
1582         leak on Win32.
1583
1584 2005-11-03  Tor Lillqvist  <tml@novell.com>
1585
1586         * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
1587         the Win32 backend, check that GdkDisplay* parameters are equal to
1588         _gdk_display instead of using the unnecessarily general
1589         GDK_IS_DISPLAY().
1590
1591         (pixbuf_to_hbitmaps_alpha_winxp): Rename the variables for the
1592         color bitmap to have "color" in their name, for similarity with
1593         pixbuf_to_hbitmaps_normal(). Create a color bitmap for the mask,
1594         too, instead of creating a b&w bitmap with CreateBitmap(). Set up
1595         the mask bitmap's contents, ones for those pixels in the color
1596         bitmap where the alpha is zero, zero for other pixels. We used to
1597         use an uninitialized mask bitmap! This meant that icons and
1598         cursors created presumably worked more or less by accident.
1599         Totally blank icons with zero alpha everywhere (as used by
1600         gtktrayicon.c) definitely did not work as expected.
1601
1602         * gtk/Makefile.am: Include gtkstatusicon.c on all platforms.
1603
1604         * gtk/gtkstatusicon.c: Implement for Win32. Use code from
1605         gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
1606         necessary and can be removed from CVS. It has never been mentioned
1607         in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
1608         are used on Win32. One label widget is used (but never shown) as
1609         gtk_widget_render_icon() needs a widget.
1610
1611         Ifdefs used as necessary in several places. It might be cleaner to
1612         split out the backend-specific parts to separate files, or at
1613         least collect them into separate blocks in the file.
1614
1615         (wndproc): New function. Window procedure to monitor mouse events
1616         in the system tray icon. Call gtk_status_icon_button_press() as
1617         needed.
1618         (create_tray_observer): New function. Creates a hidden window that
1619         only serves as a tray icon message observer.
1620
1621         * tests/teststatusicon.c (icon_activated): Position the dialog
1622         with GTK_WIN_POS_CENTER.
1623         (do_quit): New function, hide and unref the GtkStatusIcon, and
1624         call gtk_main_quit().
1625         (popup_menu): Add a Quit menu item that calls do_quit().
1626         
1627 2005-11-02  Tor Lillqvist  <tml@novell.com>
1628
1629         * gdk/win32/gdkcolor-win32.c
1630         * gdk/win32/gdkscreen-win32.c
1631         * gdk/win32/gdkwindow-win32.c: Whitespace consistency
1632         fixes. Remove superfluous test for GdkWindow* parameters being
1633         non-NULL. Testing GDK_IS_WINDOW() is enough. As there is only one
1634         GdkScreen and one GdkDisplay in the Win32 backend, use those
1635         variables instead of the getter functions. For GdkDisplay* and
1636         GdkScreen* parameters, check that they are equal to the
1637         corresponding singleton variables instead of the more general
1638         GDK_IS_DISPLAY() or GDK_IS_SCREEN().
1639
1640 2005-11-02  Matthias Clasen  <mclasen@redhat.com>
1641
1642         * gtk/gtktextview.c: Remove some g_return_if_fail() from
1643         static functions, replace some others by g_assert().
1644         
1645         * gtk/gtktextview.c (selection_motion_event_handler) 
1646         (gtk_text_view_start_selection_drag): Keep track of the original
1647         selection boundaries during a drag selection, in order to correctly
1648         decide when to extend or shrink the selection.  (#320167,
1649         reported by Arvind S N, patch by Paolo Borelli)
1650
1651         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
1652         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace
1653         manual offset calculations by g_utf8_offset_to_pointer().
1654         (#320360, Paolo Borelli)
1655
1656 Tue Nov  1 16:18:24 2005  Tim Janik  <timj@imendio.com>
1657
1658         * gtk/gtkrbtree.[hc]: get rid of GAllocator usage, allocate and free 
1659         nodes via the g_slice_*() API.
1660         _gtk_rbtree_new(): fixed wrong node allocation via g_new().
1661
1662 2005-11-01  Tor Lillqvist  <tml@novell.com>
1663
1664         * gdk/win32/gdkprivate-win32.h
1665         * gdk/win32/gdkglobals-win32.c
1666         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
1667         pre-interned GdkAtoms and pre-registered clipboard formats. Sort
1668         their declarations, definitions and assignments into a more
1669         logical and consistent order.
1670
1671         * gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
1672         CF_ prefix for the predefined clipboard format names. Put quotes
1673         around registered format names to distinguish them.
1674         
1675         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
1676         immediately with a warning if the property type is STRING, TEXT,
1677         COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
1678         should never pretend to handle on Win32. Handle only UTF8_STRING
1679         here, other formats with delayed rendering. Use \uc1 instead of
1680         \uc0 when generating Rich Text Format for easier testability on
1681         XP, where WordPad misinterprets \uc0 encoded characters. Add more
1682         GDK_NOTE debugging output for Clipboard operations.
1683
1684         * gdk/win32/gdkselection-win32.c: Debugging printout improvements.
1685         (gdk_selection_convert): Don't pretent to handle STRING, just
1686         UTF8_STRING. Streamline error handling, don't unnecessarily have a
1687         GError which then isn't used for anything anyway if it gets set.
1688         (gdk_win32_selection_add_targets): Skip also STRING, TEXT,
1689         COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
1690
1691         * config.h.win32.in: Sync with what configure produces.
1692
1693         * configure.in: Don't look for X_PACKAGES unless building for
1694         x11. (#313986, John Ehresman)
1695
1696 2005-10-28  Erdal Ronahi  <erdal.ronahi@gmail.com>
1697
1698         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
1699                         Wondered why there was no ku there before??
1700
1701 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
1702
1703         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup
1704         window to the toplevels window group.  (#319912, Christian Persch)
1705
1706 2005-10-28  Kristian Rietveld  <kris@gtk.org>
1707
1708         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): fix
1709         stupid thinko.
1710
1711 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
1712
1713         * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix the anchor of the default
1714         drag cursors.  (#319200, Federico Mena Quintero)
1715
1716         * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
1717         Shift-G to go to the previous match, like firefox.  (#320061, Christian 
1718         Neumair)
1719
1720         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
1721         C99ism.  (#320000, Kazuki Iwamoto)
1722
1723         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Add the little 
1724         stars.  (#319985, Bastien Nocera)
1725
1726         * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): Return
1727         FALSE, so we don't flush repeatedly.  (#319151, Alexander Larsson)
1728
1729 2005-10-26  Michael Natterer  <mitch@imendio.com>
1730
1731         Fix bug #319974:
1732
1733         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
1734         make sure that setting any of pixbuf/stock-id/icon-name resets the
1735         others because they are mutually exclusive, and that unsetting any
1736         of them only resets the pixbuf and nothing else. Also added
1737         some missing g_object_notify().
1738
1739         (gtk_cell_renderer_pixbuf_get_property): simplified calls to
1740         g_value_set_object().
1741
1742         (gtk_cell_renderer_pixbuf_create_stock_pixbuf)
1743         (gtk_cell_renderer_pixbuf_create_named_icon_pixbuf): added
1744         g_object_notify ("pixbuf").
1745
1746 2005-10-27  Matthias Clasen  <mclasen@redhat.com>
1747
1748         * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more 
1749         careful about initializing cell_area.  (#319382, Tommi
1750         Komulainen)
1751
1752         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
1753         Ctrl-PageUp/PageDown.  (#318670, Christian Neumair)
1754
1755         * demos/gtk-demo/clipboard.c (paste_received): Only set the
1756         text if it is not NULL.  (#319930, Thomas Klausner)
1757
1758         * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
1759         loader before trying to get the pixbuf.  (#319930, Thomas Klausner)
1760
1761 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
1762
1763         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
1764         * gtk/gtkthemes.c (gtk_theme_engine_load): 
1765         * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY
1766         when dlopening modules.  (#319557, Laszlo Peter)
1767
1768 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
1769
1770         * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text
1771         segments when determining text direction.  (#319065, Tommi Komulainen)
1772
1773         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
1774         on duplicate destroy.  (#318953, Gustavo Carneiro)
1775
1776         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog): 
1777         Point out that destroy-with-parent is a bad idea for the dialog
1778         passed to this function.  (#318943, Christian Persch)
1779
1780         * */Makefile.am: use $(GLIB_MKENUMS) instead of 
1781         glib-mkenums.  (#318582, Damien Carbery)
1782
1783         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Clarify
1784         docs.  (#317682, Christian Neumair)
1785
1786         * gdk/x11/gdkdnd-x11.c: Remove an extra const which doesn't
1787         seem to affect the placement of the data in the readonly 
1788         section, and causes problems with some compilers.  (#317844)
1789
1790 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
1791
1792         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1793         Fix some issues with background drawing in RTL.  (#318781,
1794         Eric Cazeaux)
1795
1796         * tests/Makefile.am:
1797         * tests/testentrycompletion.c: Apply a patch by Christian
1798         Persch to add property editors.
1799
1800         * gtk/gtkstatusicon.c: Emit activate on single-click,
1801         not on double-click, change proposed by Milosz Derezynski.
1802
1803 2005-10-25  Kristian Rietveld  <kris@gtk.org>
1804
1805         Fixes #311955, reported by Markku Vire; and a lot more.
1806
1807         * gtk/gtktreemodelfilter.c: Made this thing work correctly.
1808         Levels can now have invisible nodes cached, functions have been
1809         rewritten/refactored to take this into account; also the logic in
1810         some functions has been corrected.
1811         
1812         Each referenced node now references all visible children or a single
1813         invisible child, in order to be able to monitor all changes in the
1814         child model required for correct operation.
1815
1816         When a virtual root is set, all nodes on the virtual root level are
1817         referenced.
1818
1819         At last, a bunch of random bug fixes and comment updates.
1820
1821 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
1822
1823         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
1824         more docs.  (#319722, Paolo Borelli)
1825
1826         * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the 
1827         initialization of screen_x11->xft_rgba more explicit.  (#319627,
1828         Bogdan Nicula)
1829
1830         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
1831         in a blurb.  (#319499, Francisco Javier F. Serrador)
1832
1833 2005-10-24  Matthias Clasen  <mclasen@redhat.com>
1834
1835         Add settings to hide the input method and Unicode control character
1836         submenus in the context menus of GtkEntry and GtkTextView.  
1837         
1838         * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
1839         
1840         * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
1841
1842         * gtk/gtktextview.c (popup_targets_received): 
1843         * gtk/gtkentry.c (popup_targets_received): Use the settings here.
1844
1845 2005-10-24  Kristian Rietveld  <kris@gtk.org>
1846
1847         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
1848         row-has-child-toggled when the level is not in the cache does not
1849         make sense.  (This bug probably crept in during the early stages
1850         of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
1851         implementation yet),
1852         (gtk_tree_model_sort_real_unref_node): only get the child iter
1853         when we will actually also use it.
1854
1855 2005-10-22  Michael Natterer  <mitch@imendio.com>
1856
1857         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
1858         widget being realized, in addition to being visible, to avoid
1859         running into precondition check in gtk_tree_view_get_cell_area().
1860         (approved by Kris).
1861
1862 2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
1863
1864         * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
1865         Experimentally, scrollbar steppers can shrink to 8 pixels on 
1866         Win32. Reflect that in the theme.
1867         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
1868         there is a 1-pixel border between a scrollbar and its child
1869         in ScrolledWindows on Win32. Reflect that in the theme.
1870         
1871 2005-10-20  Matthias Clasen  <mclasen@redhat.com>
1872
1873         * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
1874         for the selection window.  (#318806, Alex Larsson)
1875
1876 2005-10-18  Federico Mena Quintero  <federico@ximian.com>
1877
1878         Fixes bug #317999:
1879
1880         * tests/autotestfilechooser.c
1881         (test_button_folder_states_for_action): Test that we have either
1882         $cwd or the explicitly-set folder.
1883         (test_reload_sequence): Likewise.
1884
1885         * gtk/gtkfilechooserdefault.c
1886         (gtk_file_chooser_default_get_current_folder): If our reload_state
1887         is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
1888
1889 2005-10-14  Tor Lillqvist  <tml@novell.com>
1890
1891         * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
1892         It didn't really do anything useful, and was just confusing and
1893         incomplete. Comments claimed we don't do delayed rendering, but in
1894         fact we do, for images. (The delayed rendering code has other
1895         problems, though, see #168173.) The clipboard viewer code was
1896         probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
1897         the message when necessary). It was just test code, it said so in
1898         a comment. Add something similar back later if necessary.
1899
1900         (_win32_on_clipboard_change,
1901         _gdk_win32_register_clipboard_notification): Remove.
1902
1903         (gdk_display_supports_selection_notification,
1904         gdk_display_request_selection_notification): Always just return
1905         FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
1906
1907 2005-10-13  Tor Lillqvist  <tml@novell.com>
1908
1909         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
1910         Alt-Enter specially. It does not have any special meaning and
1911         should be passed on to the application. (#318378, Tim Evans)
1912
1913 2005-10-13  Tor Lillqvist  <tml@novell.com>
1914
1915         Set visual depth to 24 for 32 bits-per-pixel devices on
1916         Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
1917         optimized composite_0888() function rather than the slower image
1918         dithering functions to draw pixbufs (#313993, John Ehresman)
1919
1920         * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
1921         _gdk_windowing_get_bits_for_depth() to initialize
1922         GdkImage::bits_per_pixel.
1923         (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
1924
1925         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
1926         _gdk_windowing_get_bits_for_depth() to initialize
1927         BITMAPINFOHEADER::biBitCount.
1928
1929         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
1930         GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
1931         32.
1932
1933 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
1934
1935         * demos/gtk-demo/appwindow.c: (about_cb):
1936           use PACKAGE_VERSION,bump year (#318654)
1937
1938 2005-10-11  Matthias Clasen  <mclasen@redhat.com>
1939
1940         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off 
1941         toggle here with the matching on toggle if it immediately follows. 
1942         This is a common case, and handling it here prevents quadratic blowup 
1943         in cleanup_line() below.  (#317125)
1944
1945         * gtk/gtktextsegment.h: 
1946         * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
1947         the character counts into this function instead of computing them
1948         again.
1949
1950 2005-10-10  Tommi Komulainen  <tommi.komulainen@iki.fi>
1951
1952         * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
1953         code.
1954         * gtk/gtkfilechooserdefault.c
1955         (gtk_file_chooser_default_add_shortcut_folder): Return an error code
1956         when the shortcut already exists in the sidebar.  (#147521)
1957
1958 2005-10-09  Matthias Clasen  <mclasen@redhat.com>
1959
1960         * tests/testcombo.c: Demonstrate how to use custom widgets in
1961         a GtkComboBox.  
1962
1963 2005-10-07  Federico Mena Quintero  <federico@ximian.com>
1964
1965         Fixes bug #317999:
1966
1967         * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
1968         the the result of gtk_file_chooser_get_folder() is NULL or
1969         non-NULL at the right times.  Log the tests.
1970         (test_button_folder_states): New test for the initial states of
1971         the current folder in GtkFileChooserButton.
1972         (main): Test that the number of warnings/errors/critical errors is
1973         zero.
1974
1975         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
1976         Clarify the documentation on when this can return NULL.
1977         (gtk_file_chooser_get_current_folder_uri): Likewise.
1978
1979         * gtk/gtkfilechooserbutton.c (struct
1980         _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
1981         we use it to keep track of whether a folder has been set.
1982         (gtk_file_chooser_button_map):  Implement.  If no folder has been
1983         loaded before, we at least try to load $cwd here.
1984         (gtk_file_chooser_button_constructor): If the construct-time
1985         dialog already has a folder set, turn on our folder_has_been_set
1986         flag.
1987         (dialog_current_folder_changed_cb): Turn on our
1988         folder_has_been_set flag.
1989
1990 2005-10-07  Michael Natterer  <mitch@gimp.org>
1991
1992         * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
1993         PROFILE_FILE_CHOOSER because they break compilation after the
1994         removal of <unistd.h>.
1995
1996 2005-10-07   Matthias Clasen  <mclasen@redhat.com>
1997
1998         * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
1999         by moving it out of the profiling ifdef.
2000
2001         * gtk/gtkfilechooserdefault.c: Remove a redundant (and
2002         unconditional) include of unistd.h  (#318211, Kazuki Iwamoto)
2003
2004         * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
2005         g_return_val_if_fail(), not g_return_if_fail().  (#318412,
2006         Kazuki Iwamoto)
2007
2008 2005-10-06  Matthias Clasen  <mclasen@redhat.com> 
2009                 
2010         * gtk/gtk.symbols:
2011         * gtk/gtktextbuffer.h:
2012         * gtk/gtktextbuffer.c: Add a readonly has-selection property
2013         with a getter.  (#318161, Paolo Borelli)
2014
2015 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
2016
2017         * README.in: Start collecting release notes for 2.10.
2018
2019         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
2020         leak fix, since the assertion failures were traced to 
2021         an xchat bug.  (#314696)
2022         
2023         * gtk/gtkstyle.c (gtk_style_detach):
2024         (gtk_style_attach):  Documentation improvements.
2025         (gtk_style_detach): Assert that the attach_count is > 0.
2026
2027 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
2028
2029         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
2030         shortcut position, not a ShortcutsIndex, to make the function more
2031         generic.
2032         (home_folder_handler): Pass the resolved index to
2033         switch_to_shortcut(), rather than just SHORTCUTS_HOME.
2034         (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
2035         (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
2036         binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0.  These
2037         make the respective key switch to the first, second, ..., tenth
2038         bookmark.
2039         (quick_bookmark_handler): Implement.
2040
2041 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
2042
2043         * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
2044         Desktop; just use their real names on the file system for the
2045         user-visible names.
2046
2047         * gtk/gtkfilechooserdefault.c
2048         (gtk_file_chooser_default_class_init): Add a "desktop-folder"
2049         binding signal, and bind it to M-d by default.
2050         (desktop_folder_handler): Implement the default handler.
2051         (home_folder_handler): Use a helper function.
2052         (switch_to_shortcut): New helper function.
2053         (shortcuts_append_home): Don't special-case the name of "Home";
2054         just use the folder name.
2055
2056 2005-10-04  Tor Lillqvist  <tml@novell.com>
2057
2058         * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
2059         HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
2060
2061 2005-10-04  Matthias Clasen  <mclasen@redhat.com>
2062
2063         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
2064         from yesterday, since it leads to assertion failures.  (#317879,
2065         Sebastian Bacher)
2066
2067 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
2068
2069         * gtk/gtkcalendar.c (gtk_calendar_init): Call 
2070         calendar_compute_days() after setting priv->week_start.
2071
2072 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
2073
2074         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
2075         removing it from the hash table.  (#314696, Benjamin Berg)
2076
2077 2005-10-01  Tor Lillqvist  <tml@novell.com>
2078
2079         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
2080         BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
2081         is that the the desktop isn't visible because the session has been
2082         switched, the screen is locked, or a terminal server session
2083         disconnected, so no error message necessary. (#137796)
2084
2085         It is of course remotely possible that BitBlt() failing with
2086         ERROR_INVALID_HANDLE might also be caused by some other
2087         problem. We could strive for perfection and track whether the
2088         desktop is visible by using WTSRegisterSessionNotification() and
2089         handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
2090         this issue, though. If we would track desktop visibility, we
2091         should then avoid even trying to update the display at all while
2092         the desktop isn't visible.
2093
2094 2005-09-30  Matthias Clasen  <mclasen@redhat.com>
2095
2096         * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
2097         to correct the calculations for the first week day. We may
2098         just have to remove this code if too many locales turn out 
2099         to have broken data. 
2100
2101         * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
2102         some cases.  (#317611, Tommi Komulainen)
2103
2104         * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
2105         Prevent overflow when storing size hints in an unsigned
2106         short variable. Tracked down by Ray Strode and Søren Sandmann.
2107
2108 2005-09-29  Matthias Clasen  <mclasen@redhat.com>
2109
2110         * gtk/gtkbutton.c (gtk_button_set_image): Check arguments.  (#317491,
2111         Paolo Borelli)
2112
2113         * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
2114         grab shadowed.  (#317332)
2115
2116 2005-09-29  Tor Lillqvist  <tml@novell.com>
2117
2118         * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
2119
2120 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
2121
2122         * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
2123         if the unmap test fails.
2124         (test_reload_sequence): Use gtk_widget_show_now() instead of
2125         gtk_widget_show() for the dialog.
2126         Thanks to Tim Janik for noticing these.
2127
2128 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
2129
2130         * tests/testcellrenderertext.c: New file with a set of tests for
2131         GtkCellRendererText.  The idea is to run a text renderer through
2132         most of its interesting property values to see that it works
2133         correctly.
2134
2135         * tests/Makefile.am: Added testcellrenderertext.
2136
2137         * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
2138         entry/exit of this function for profiling.
2139         (gtk_file_chooser_default_style_set): Mark the start/end of the
2140         calls to the parent class and the the signal emission for profiling.
2141
2142 2005-09-29  Tor Lillqvist  <tml@novell.com>
2143
2144         * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
2145         passed to bindtextdomain() which isn't UTF-8-aware, so convert to
2146         system codepage using g_win32_locale_filename_from_utf8().
2147         (#317457, Kazuki Iwamoto)
2148
2149 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
2150
2151         * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms 
2152         here. (#317039, Paolo Borelli)
2153
2154         * gtk/gtktexttag.h: 
2155         * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
2156         to make this function work as boxed copy function.  (#317455,
2157         Gustavo Carneiro)
2158
2159         * gtk/gtkclipboard.c (request_image_received_func): Don't unref
2160         NULL.  (#316828, Tor Lillqvist)
2161
2162 2005-09-28  Tor Lillqvist  <tml@novell.com>
2163
2164         * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
2165         Iwamoto)
2166
2167 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
2168
2169         Don't reload the current folder unnecessarily on ::map().
2170
2171         * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
2172         the reloading state.
2173         (struct _GtkFileChooserDefault): Added a "reload_state" field.
2174
2175         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2176         Initialize impl->reload_state.
2177         (gtk_file_chooser_default_map): Check the impl->reload_state; load
2178         a default folder if no folder has been set, or reload the current
2179         one only if we had been unmapped first.
2180         (gtk_file_chooser_default_update_current_folder): Set the
2181         reload_state to RELOAD_HAS_FOLDER.
2182         (gtk_file_chooser_default_unmap): Implement, and set the
2183         reload_state to RELOAD_WAS_UNMAPPED.
2184         (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
2185         here; they'll get (re)loaded on ::map() anyway.
2186
2187         * gtk/gtkfilechooserwidget.c
2188         (gtk_file_chooser_widget_constructor): Don't set a default folder here.
2189
2190         * tests/autotestfilechooser.c (test_action_widgets): Don't take in
2191         a dialog; build it ourselves.
2192         (test_reload): New test to ensure that we don't load the default
2193         folder more than once, and that we reload it when
2194         unmapping/remapping.
2195         (get_impl_from_dialog): New utility function.
2196         (test_widgets_for_current_action): Use get_impl_from_dialog().
2197
2198 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
2199
2200         * gtk/gtkfilechooserdefault.c
2201         (gtk_file_chooser_default_constructor): Mark the entry/exit of
2202         this function for profiling.
2203         (check_icon_theme): Likewise.
2204         (change_icon_theme): Likewise.
2205         (settings_notify_cb): Likewise.
2206         (gtk_file_chooser_default_screen_changed): Likewise.
2207         (update_chooser_entry): If the selection is empty, clear the file
2208         name entry only if we are in CREATE_FOLDER mode.  In SAVE mode,
2209         nothing will be selected when the user starts typeahead in the
2210         treeview, and we don't want to clear the file name entry in that
2211         case --- the user could be typing-ahead to look for a folder name.
2212         Fixes bug #308332, patch by Jürg Billeter.
2213
2214 2005-09-27  Matthias Clasen  <mclasen@redhat.com>
2215
2216         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2217         Pop below the entry if there's more free space below the entry
2218         than above.  (#316948, Tommi Komulainen)
2219
2220 2005-09-26  Federico Mena Quintero  <federico@ximian.com>
2221
2222         Do not create the save mode-specific widgets in the open modes, so
2223         that we don't carry their baggage around.
2224
2225         * gtk/gtkfilechooserdefault.c
2226         (gtk_file_chooser_default_constructor): Don't create the
2227         save_widgets here.
2228         (save_widgets_create): Set the impl->save_widgets directly here,
2229         instead of passing the widgets back to the caller.  Also, pack
2230         them into the impl's box.
2231         (update_appearance): Create or destroy the save widgets as
2232         appropriate.  Set the action of the save_file_name_entry here.
2233         (shortcuts_add_current_folder): Set the active item in the
2234         save_folder_combo only if it exists.
2235         (gtk_file_chooser_default_set_property): Don't set the action of
2236         the save_file_name_entry here.
2237         (gtk_file_chooser_default_update_current_folder): Set the base
2238         folder of the save_file_name_entry only if the entry exists.
2239         (shortcuts_drag_data_received_cb): Cast the selection_data->data
2240         to (const char *) since that's what shortcuts_drop_uris() expects.
2241         (file_list_drag_data_received_cb): Likewise, for
2242         g_uri_list_extract_uris().
2243
2244 2005-09-26  Tor Lillqvist  <tml@novell.com>
2245
2246         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
2247         the shaped flag here, too. (#316871)
2248         (gdk_window_shape_combine_region): Currently unimplemented, so
2249         don't do anything to the shaped flag here.
2250
2251 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
2252
2253         Fix #316871, reported by Dan Winship:
2254         
2255         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
2256
2257         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
2258         (gdk_window_shape_combine_region): Set it here.
2259
2260         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2261         remove the child area for shaped windows.
2262
2263 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
2264
2265         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
2266         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
2267
2268 2005-09-22  Michael Natterer  <mitch@imendio.com>
2269
2270         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
2271         consistent with GTK+ terminology:
2272
2273         * gtk/gtkcellrendererkeys.[ch]
2274         * tests/testkeys.c: removed...
2275
2276         * gtk/gtkcellrendereraccel.[ch]
2277         * tests/testaccel.c: ...and added.
2278
2279         * gtk/Makefile.am
2280         * gtk/gtk.h
2281         * gtk/gtk.symbols
2282         * tests/Makefile.am: changed accordingly.
2283
2284 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
2285
2286         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
2287         for the grab-broken-event signal, noticed by Damon Chaplin.
2288
2289 2005-09-21  Tor Lillqvist  <tml@novell.com>
2290
2291         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
2292         gdk_text_property_to_text_list_for_display,
2293         gdk_text_property_to_utf8_list_for_display,
2294         gdk_win32_selection_add_targets,
2295         _gdk_win32_selection_convert_to_dib): Free return value from
2296         gdk_atom_name().
2297         (gdk_text_property_to_text_list_for_display): Drop GError variable
2298         that isn't actually used after being set.
2299
2300 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
2301
2302         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
2303         documentation.
2304
2305 2005-09-20  Tor Lillqvist  <tml@novell.com>
2306
2307         * gdk/win32/gdkselection-win32.c
2308         (gdk_selection_owner_get_for_display): Do return the correct owner
2309         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
2310         a window GDK knows about). The reason to return NULL seems to have
2311         gone when in the fix for bug #163702 the artificial
2312         GDK_SELECTION_CLEAR event generation was removed from
2313         gdk_selection_send_notify_for_display(). Fixes bug #316552.
2314
2315 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
2316
2317         Avoid unnecessary XkbGetState() calls and XkbStateNotify
2318         events.  (#151555, Søren Sandmann)
2319
2320         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
2321         XkbSelectEventDetails() to select XkbStateNotify events
2322         for only the state we care about.
2323
2324         * gdk/x11/gdkprivate-x11.h:
2325         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
2326         the event into the function and update the keymap state from
2327         the state information contained in the event. Adjust all callers.
2328         
2329 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
2330
2331         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
2332         in multiple places to avoid segfaults if the index is out of range.  
2333         (#316422, Guillaume Cottenceau)
2334         (gtk_icon_view_set_drag_dest_item): 
2335         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
2336         #316424, Guillaume Cottenceau)
2337
2338 2005-09-18  Hans Breuer  <hans@breuer.org>
2339
2340         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
2341         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
2342
2343 2005-09-18  Hans Breuer  <hans@breuer.org>
2344
2345         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
2346         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
2347         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
2348         the icon and is blinking with teststatusicon. More to come ...
2349
2350 2005-09-18  Hans Breuer  <hans@breuer.org>
2351
2352         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
2353         cause gtkprogressbar.c has #include <config.h> conditionally; less
2354         noise from generated gtk.def
2355         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
2356         
2357         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
2358         For me it works as well as the *NIX implemenation, that is not at all.
2359
2360         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
2361
2362         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
2363         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
2364         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
2365         again - if compiled properly.
2366
2367         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
2368         already coming with Gtk+. Makes it compile on win32.
2369
2370 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
2371
2372         * README.cvs-commits: fixed some tiny typos
2373
2374 2005-09-16  Tor Lillqvist  <tml@novell.com>
2375
2376         * modules/engines/ms-windows/msw_style.c (draw_extension,
2377         draw_box_gap): Check whether the widget actually is a GtkNotebook
2378         before treating it as such. Drop some unneeded local variables,
2379         use parameter with same information instead. (#316412)
2380
2381 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
2382
2383         * tests/autotestfilechooser.c: Start a set of automated tests for
2384         the file chooser.  The only test in there right now doesn't pass
2385         yet.  It specifies the intended behavior of the first optimization
2386         of a series which I'll do on the file chooser (see
2387         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
2388         details of this optimization).
2389
2390         * tests/Makefile.am: Added autotestfilechooser.c.
2391
2392         * gtk/gtkfilechooserprivate.h (struct
2393         _GtkFileChooserDialogPrivate): Move all the file chooser's private
2394         structures to here, so that they can be accessed by
2395         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
2396         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
2397
2398         * gtk/gtkfilechooserdialog.c: See above.
2399
2400         * gtk/gtkfilechooserwidget.c: See above.
2401
2402         * gtk/gtkfilechooserdefault.c: See above.
2403
2404 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
2405
2406         * gtk/gtkwindow.c: 
2407         gtk_window_map_event(): new function to work around lost unmap requests.
2408         fixes bug #316180.
2409
2410 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
2411
2412         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
2413         an easy-to-find profiling marker when starting to create a file
2414         chooser.
2415         (browse_files_model_finished_loading_cb): Likewise, for when the
2416         chooser is finished loading.
2417
2418 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
2419
2420         * gtk/gtkcolorbutton.c: Check "color" argument in 
2421         gtk_color_button_set_color ()
2422
2423 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
2424
2425         * gtk/gtklabel.c (gtk_label_get_type): 
2426         * gtk/gtkbutton.c (gtk_button_get_type): 
2427         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
2428         using a mem chunk for window groups, buttons, labels.
2429
2430         * gtk/updateiconcache.c (foreach_remove_func): Fix
2431         a use-after-free bug.  (#316256, Alexander Nedotsukov)
2432
2433 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
2434
2435         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
2436
2437         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
2438         
2439 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
2440
2441         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2442         Let GDK_Return pass through in some more cases.
2443
2444         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
2445         activating the entry. 
2446
2447         * gtk/gtkiconview.c (gtk_icon_view_class_init):
2448         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
2449         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
2450
2451         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
2452         (#316001, Guillaume Cottenceau)
2453
2454         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
2455         mistake in the docs.  (#315993, Guillaume Cottenceau)
2456
2457         * tests/testentrycompletion.c (create_simple_completion_model): Add
2458         some strings containing multibyte characters.
2459
2460         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
2461         Fix prefix insertion for multibyte characters.  (#316095,
2462         Tommi Komulainen)
2463
2464         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
2465         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
2466         return NULL if the widget is not realized.  (#316023,
2467         Guillaume Cottenceau)
2468
2469 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
2470
2471         * gdk/gdk.symbols: 
2472         * gdk/gdkproperty.h: 
2473         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
2474         New function to avoid pointless strdups when creating atoms
2475         from static strings.  
2476
2477         * gdk/x11/*.c:
2478         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
2479         appropriate.
2480
2481 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2482
2483         * gtk/gtkcellrendererkeys.h: 
2484         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
2485         and editing accelerators, a port of EggCellRendererKeys .
2486
2487         * gtk/gtk.symbols:
2488         * gtk/gtk.h:
2489         * gtk/Makefile.am: Add the keys cell renderer.
2490
2491         * tests/Makefile.am: 
2492         * tests/testkeys.c: Test GtkCellRendererKeys
2493
2494 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2495
2496         Make it possible to determine if a key event is for a
2497         modifier key:
2498         
2499         * gdk/x11/gdkprivate-x11.h: 
2500         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
2501         New function to determine if a keycode is mapped to a modifier.
2502         (get_xkb): Get the modmap.
2503
2504         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
2505         is_modifier bit by calling _gdk_keymap_key_is_modifier().
2506
2507         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
2508         bit.
2509
2510 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2511
2512         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
2513         unused variable, noticed by Kjartan Maraas.
2514
2515 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2516
2517         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
2518         Make drag reordering work properly for columns other than the
2519         first.  (#315054, Dan Winship)
2520         
2521         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
2522         invalid fontnames better. (#136926, Michael R. Walton)
2523         
2524         Stop cursor blinking in non-editable regions of a text view.
2525         (#311508, Torbjörn Andersson)
2526         
2527         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
2528         (cursor_blinks): Take editability into account when deciding
2529         whether the cursor blinks.
2530         (gtk_text_view_button_release_event): 
2531         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
2532
2533         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
2534         Use connect_after to connect to the focus_out event. This
2535         ensures that the entry has already stopped blinking by the time
2536         we emit the edited signal.  (#315229, Thomas Leonard)
2537
2538         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
2539
2540         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
2541         unsigned ints to -1.  (#315481, Kjartan Maraas)
2542
2543         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
2544         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
2545         (#314473, Stanislav Brabec)
2546
2547 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2548
2549         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
2550         memory handling.  (#314975, Torsten Schoenfeld)
2551
2552         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
2553         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
2554         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2555         * gtk/gtklabel.c (gtk_label_class_init): 
2556         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
2557         Stylistic improvements and clarifications for some blurbs. 
2558         (#315520, Clytie Siddall)
2559
2560 2005-09-09  Tor Lillqvist  <tml@novell.com>
2561
2562         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
2563         display name. There is only one GdkDisplay on Win32, and
2564         constructing the display name isn't entirely trivial, so cacheing
2565         is probably worth it. For instance GIMP calls this function a lot.
2566         (gdk_display_open): Call gdk_display_get_name() to prime the
2567         cached name.
2568         (gdk_display_get_n_screens, gdk_display_get_screen,
2569         gdk_display_get_default_screen): Verify parameter correctness like
2570         the X11 backend does.
2571
2572         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
2573         Return a freshly allocated string, as the API specifies. Fixes a
2574         heap corruption problem that caused random errors and crashes in
2575         GIMP, for instance.
2576
2577 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
2578
2579         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2580         Make C-u commit and restart hex input if we are already in a
2581         hex sequence.
2582
2583 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
2584
2585         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
2586         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
2587         if they are mapped to the same modifier.
2588
2589         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
2590         to gtkstatusicon.c and gtktrayicon-x11.c
2591
2592         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
2593         default accel mod mask.
2594
2595         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
2596         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
2597         Don't use GDK_ALT_MASK.
2598
2599         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
2600
2601 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
2602
2603         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
2604         
2605         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
2606         modifiers.
2607
2608         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
2609         Mod2 - Mod5 and against Super, Hyper, Meta.
2610
2611         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
2612         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
2613         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
2614
2615         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
2616         modmap to maintain the information which X modifiers map to
2617         virtual modifiers.
2618         (get_xkb): Set up the modmap from the XKB tables.
2619         (update_keymaps): Set up the modmap from the information returned
2620         by XGetModifierMapping in the non-XKB case.
2621
2622         * gdk/x11/gdkprivate-x11.h: 
2623         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
2624         function to set the virtual modifiers in the state.
2625
2626         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
2627         _gdk_keymap_add_virtual_modifiers here.
2628
2629         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
2630         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
2631         for GDK_MOD1_MASK.
2632
2633 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
2634
2635         * gtk/gtkaction.c (connect_proxy): Set the label of a button
2636         if it has no child.  (#315253, John Finlay)
2637
2638 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
2639
2640         * gtkimcontextsimple.h: Add a modifiers_dropped bit
2641
2642 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
2643
2644         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
2645         on destroy to avoid problems when they are called on a destroyed
2646         widget.  (#315135, John Cupitt)
2647         
2648         * gtk/gtkentry.c (gtk_entry_class_init):
2649         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
2650         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
2651
2652         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
2653         code. Now we only steal a single key combination, Ctrl-Shift-U,
2654         instead of sixteen. 
2655         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
2656         by a sequence of hex digits entered with Ctrl-Shift still held.
2657         Releasing one of the modifiers or pressing space while the modifiers
2658         are still held commits the character. It is possible to erase
2659         digits using backspace.
2660         As an extension to the above, we also allow to start the sequence
2661         with Ctrl-Shift-U, then release the modifiers before typing any
2662         digits, and enter the digits without modifiers.
2663         (#82011, Owen Taylor)
2664         
2665 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
2666
2667         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
2668         we still need to deliver the destroy event.  (#314980, Chris Lahey)
2669
2670         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
2671         im context before committing \n or \t.
2672
2673 2005-09-02  Alexander Larsson  <alexl@redhat.com>
2674
2675         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
2676         (shortcuts_activate_volume):
2677         Handle base_path being null in the rest of the cases (#310270)
2678
2679 2005-09-02  Tor Lillqvist  <tml@novell.com>
2680
2681         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
2682         cursor position also in root window coordinates. Prune out
2683         superfluous WM_MOUSEMOVE events even earlier, based on root window
2684         coordinates. Windows sends WM_MOUSEMOVE messages after a new
2685         window has ben mapped below the cursor even if the mouse doesn't
2686         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
2687         confused at least gtk_menu_motion_notify(). (#314995)
2688
2689         * gtk/gtkintl.h: No need to include config.h here. It caused
2690         warnings about GTK_LOCALEDIR being redefined on Win32 when
2691         compiling files where gtkintl.h is included after gtkprivate.h
2692         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
2693
2694         * gtk/gtkplug.c: Include config.h.
2695
2696 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
2697
2698         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
2699         xdg_mime_get_mime_type_for_file() where possible, to avoid
2700         useless re-stating.  
2701         
2702         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
2703         typo.  (#314921, Guillaume Cottenceau)
2704
2705         * gdk/*.c: Intern some more strings.
2706         * gtk/gtkintl.h: 
2707         * gtk/*.c: Define an I_() macro and use it instead of the 
2708         bulky g_intern_static_string().
2709
2710 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
2711
2712         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
2713         instead of copying it.
2714
2715         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
2716
2717         * gtk/*.c: Also intern static strings passed to 
2718         g_object_set_data().
2719
2720         * gdk/Makefile.am: 
2721         * gtk/Makefile.am: Intern type names in code generated by 
2722         glib-mkenums, too.
2723
2724         * gtk/*.c: 
2725         * gdk/x11/*.c: 
2726         * gdk/*.c: Intern type names before registering the type to avoid 
2727         unnecessary copies.
2728
2729         * configure.in: Require GLib 2.9.0
2730
2731 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
2732
2733         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
2734         and add icon-size and icon-size-set properties.  (#314172)      
2735
2736         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
2737         groups across transient parents.  (#312918, Christian Persch)
2738
2739         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
2740         Guillaume Cottenceau)
2741
2742         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
2743         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
2744
2745 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
2746
2747         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
2748         make C-/ select all and C-\ unselect all.  (#309301,
2749         Kathy Fernandez)
2750
2751         * gtk/gtkimcontextsimple.c: Change the compose sequence for
2752         soft hyphen to be multi_key-minus-minus-space, and add
2753         compose sequences multi_key-minus-minus-period and 
2754         multi_key-minus-minus-minus for en dash and em dash.
2755         (#172653, Christian Lohmaier)
2756
2757         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
2758         code.  (#313946, Christian Persch)
2759
2760         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
2761         fix for the default value of the "ui" property.
2762
2763 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
2764
2765         * gtk/gtk.symbols: 
2766         * gtk/gtkselection.h:
2767         * gtk/gtkselection.c: Add functions which look for text, image
2768         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
2769
2770         * gtk/gtk.symbols: 
2771         * gtk/gtkselection.h:
2772         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
2773         Add a function to check wether targets include uri.  
2774         (#314092, Mark Wielaard)
2775         
2776         * gtk/gtk.symbols: 
2777         * gtk/gtkwindow.h: 
2778         * gtk/gtkwindow.c: Add a deletable property with getter
2779         and setter, to control the close button in the window 
2780         frame.  (#59718, Havoc Pennington)
2781
2782 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
2783
2784         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
2785         to the arrow keys for menu navigation.  (#162825, Carl Worth)
2786
2787         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
2788
2789         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
2790
2791         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
2792         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
2793         refer to nonexisting stock ids.
2794
2795         * gtk/gtktextview.c (popup_targets_received): 
2796         * gtk/gtkentry.c (popup_targets_received): Construct
2797         the "Select All" menuitem from stock.
2798
2799         * gtk/stock-icons/stock_select_all_{16,24}.png:
2800         * gtk/stock-icons/Makefile.am: 
2801         * gtk/gtkiconfactory.c:
2802         * gtk/gtkstock.h: 
2803         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
2804         Calum Benson)
2805
2806         * gtk/gtktrayicon.c: Add a pointer to the spec.
2807
2808         * gtk/gtkstatusicon-x11.c: Add docs.
2809
2810         * gtk/gtkstatusicon.h: Fix a typo.
2811
2812         Add a cross-platform "tray icon" API, by
2813         porting EggStatusIcon/EggTrayIcon (#105101)
2814         
2815         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
2816         displays an icon in a notification area.
2817
2818         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
2819         X11, using GtkTrayIcon.
2820
2821         * gtk/gtktrayicon.h: 
2822         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
2823         system tray specification, not public API.
2824
2825         * gtk/gtk.symbols: Add new exported functions.
2826
2827         * gtk/gtk.h: Include gtkstatusicon.h.
2828
2829         * gtk/Makefile.am: Add new files.
2830
2831         * tests/Makefile.am:
2832         * tests/teststatusicon.c: Test for GtkStatusIcon.
2833
2834 2005-08-29  Christopher Aillon  <caillon@redhat.com>
2835
2836         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
2837         and GTK_STOCK_DISCONNECT
2838         
2839 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
2840
2841         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
2842         Use XFixesChangeSaveSet if available.  (#314682)
2843
2844         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
2845         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
2846
2847 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
2848
2849         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
2850         accidentally leftover duplicate pixbuf creation.  (#314700,
2851         Kjartan Maraas)
2852
2853         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
2854         leak the cursor theme name.  (#314693, Kjartan Maraas)
2855
2856         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
2857         state.children in all cases.  (#313862, Kjartan Maraas)
2858
2859 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
2860
2861         * po/POTFILES.in, po-properties/POTFILES.in:
2862         Add gdk/gdkscreen.c
2863
2864 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
2865
2866         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
2867         value of the ui property. (#314532, Yong Wang)
2868
2869         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
2870         when G_MAXLONG is passed as length.  
2871
2872 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
2873
2874         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
2875         to avoid overloading --force.  (JP Rosevaar)
2876
2877 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
2878
2879         * configure.in: Bump version to 2.9.0
2880
2881         * gdk/gdk.symbols: 
2882         * gdk/gdkscreen.h: 
2883         * gdk/gdkscreen.c: Make the GdkScreen font options api
2884         public, and add properties GdkScreen::font-options and
2885         GdkScreen::resolution.  (#314004)
2886
2887         * gdk/gdkpango.c:
2888         * gtk/gtksettings.c:
2889         * gtk/gtkwidget.c: Adjust all callers.
2890         
2891         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
2892         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
2893         * gdk/gdkscreen.c: Include gdkintl.h.
2894
2895         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
2896         variable warning, pointed out by Colin Walters. (#314585)
2897
2898 2005-08-26  Tor Lillqvist  <tml@novell.com>
2899
2900         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
2901         printouts.
2902         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
2903
2904 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
2905
2906         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
2907         of week_start.  (#314473, JP Rosevaar)
2908
2909 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
2910
2911         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
2912         lock.  (#314533, Thomas Fitzsimmons)
2913
2914 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
2915
2916         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
2917         NULL gracefully.  (#314523, Ed Catmur)
2918
2919 2005-08-25  Owen Taylor  <otaylor@redhat.com>
2920
2921         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
2922         Handle theme == NULL.
2923
2924 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
2925
2926         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
2927         y offset into account when positioning the popup.  (#314470,
2928         Christian Persch)
2929
2930 2005-08-25  Owen Taylor  <otaylor@redhat.com>
2931
2932         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
2933         as instance_init, not base_init! (#314452, Fix from Frederic
2934         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
2935         rather than 1 for a negative flag value.
2936
2937 2005-08-24  Owen Taylor  <otaylor@redhat.com>
2938
2939         * gdk/gdkpango.c (draw_error_underline): Add a note about
2940         cut-and-paste between here and Pango.
2941
2942 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
2943
2944         * === Released 2.8.2 ===
2945
2946         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
2947         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
2948         Wielaard)
2949
2950         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
2951         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
2952         Sebastien Bacher)
2953         
2954         * NEWS: Updates
2955
2956         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
2957         and cursor settings get propagated down to the screen initially.
2958         Pointed out by Frederic Crozat.
2959
2960         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
2961         message if the screen is NULL. Noticed by Kjartan Maraas.
2962
2963 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
2964
2965         * Bump version
2966
2967         * === Released 2.8.1 ===
2968
2969         * NEWS: Updates
2970         
2971 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
2972
2973         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
2974         against lazy filterers which return values other than TRUE or
2975         FALSE from their visible func.  (#314335)
2976
2977 2005-08-23  Owen Taylor  <otaylor@redhat.com>
2978
2979         Fix for #314004, reported by Michael Reinsch:
2980
2981         * gdk/gdk.symbols:
2982         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
2983         Add gdk_screen_get/set_resolution_libgtk_only()
2984
2985         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
2986         the options for the screen on the newly created context.
2987
2988         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
2989         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
2990         the font options on the screen.
2991
2992         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
2993         the font options from the screen and set them on the context.
2994
2995 2005-08-23  Kristian Rietveld  <kris@gtk.org>
2996
2997         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
2998         bother inserting new rows in a level with a zero refcount and
2999         immediately free the level. (Fixes #312350, reported by Markku Vire).
3000
3001 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
3002
3003         * gtk/updateiconcache.c: Complain when there is no index.theme file
3004         in the specified directory, unless --force is used. Also add an
3005         --index-only option to create caches without image data.
3006
3007         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
3008         C99ism.  (#314262, Robert Jeff Mitchell)
3009         
3010 2005-08-22  Manish Singh  <yosh@gimp.org>
3011
3012         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
3013
3014         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
3015
3016 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
3017
3018         * gtk/gtkwindow.c (gtk_window_client_event): 
3019         * gtk/gtkicontheme.c (ensure_valid_themes) 
3020         (_gtk_icon_theme_check_reload): Implement a clientmessage based
3021         scheme for makeing sure that all GTK+ applications notice if an
3022         icon theme has been updated. This should prevent multiple versions
3023         of an icon theme cache to be mapped in memory at the same time,
3024         which can cause excessive memory consumption.  (#313156, Chris 
3025         Lahey)
3026
3027 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
3028
3029         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
3030         regarding icon theme changes.
3031
3032         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
3033         pixbufs which are backed by the mmapped memory of an icon cache,
3034         increase the refcount of the icon cache, so that the memory is not
3035         munmapped away underneath the pixbuf upon icon theme changes.  
3036         (#314170, Kjartan Maraas)
3037
3038         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
3039         to link against Xext.  (#314062)
3040
3041         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
3042         overruns.  (#314081, Hans Breuer)
3043
3044 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
3045
3046         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
3047         returned layout must not be modified.
3048
3049 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
3050
3051         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
3052         scroll_to_path if the model changes.
3053
3054         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
3055         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
3056         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
3057         we're realized, #312798
3058         (gtk_icon_view_set_model): clear scroll_to_path if the model
3059         changes.
3060
3061 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
3062
3063         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
3064         (gtk_range_adjustment_value_changed):  Don't queue a draw
3065         if the layout has not changed.  (#313991, Benjamin Berg)
3066
3067 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
3068
3069         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
3070         Benoit Carpentier)
3071
3072         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
3073         Fix a typo. 
3074
3075         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
3076         (model_add_special, model_add_special, model_add_volumes):
3077         Handle pixbuf being NULL without warnings. Also, don't
3078         leak pixbuf references when the icon theme is changed.
3079
3080         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
3081         the user data on destroyed windows, since at best
3082         it can be a stale pointer.  (#313953, Robin Green)      
3083
3084 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
3085
3086         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
3087         (#313900, Sebastien Bacher)
3088
3089         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
3090         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
3091
3092         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
3093         (xdnd_read_actions, get_client_window_at_coords_recurse): 
3094         Free data returned from XGetWindowProperty. 
3095
3096         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
3097         Free data returned from XGetWindowProperty.  (313867, Kjartan
3098         Maraas)
3099         
3100         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
3101         children in all cases.  (#313862, Kjartan Maraas)
3102
3103         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
3104         in the per-directory hash, even if they come from the icon cache. 
3105         We tried to avoid that before, but as a result leaked icon data
3106         structs.  (#313852, Kjartan Maraas)
3107
3108 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
3109
3110         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
3111         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
3112
3113 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3114
3115         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
3116         files for x11/xext. (Jonas Bonn)
3117
3118 2005-08-15  Tor Lillqvist  <tml@novell.com>
3119
3120         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
3121         inside GTK_NOTE.
3122
3123 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3124
3125         * configure.in: Fix have_base_pc / have_base_x_pc typo.
3126
3127         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
3128         (#313417, James Andrewartha)
3129
3130         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
3131         FcNameConstant(). (More of #313417)
3132
3133 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
3134
3135         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
3136         modal dialogs, make sure to inherit the window group from 
3137         the parent, since we don't inherit window groups across
3138         transient parents currently.  (#312918, Christian Persch)
3139
3140         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
3141         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
3142
3143         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
3144         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
3145         gracefully.  (#312796, Jonathan Blandford)
3146
3147         * tests/testtoolbar.c: Add some more tests for menu placement.
3148
3149         * gtk/gtkmenutoolbutton.c (menu_position_func): 
3150         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
3151         of toolbutton menus and of the overflow menu.  (#312937, 
3152         #153870, Christian Persch, Paolo Borelli)
3153
3154 2005-08-15  Tor Lillqvist  <tml@novell.com>
3155
3156         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
3157         the nonportable <libgen.h> and dirname().
3158
3159 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
3160
3161         * gtk/gtksizegroup.c: Use object data to mark widgets and
3162         groups as visited, so that we avoid constant extra list
3163         traversals. Also allocate quarks in class_init.  (#311618,
3164         Michael Natterer)
3165
3166         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
3167         download location for the hicolor icon theme. (#313475, Olexiy 
3168         Avramchenko)
3169
3170         * gtk/gtkicontheme.c: Remove debug spew. 
3171
3172 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3173
3174         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
3175         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
3176         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
3177         Handle pixmap == NULL when checking for a colormap.
3178         (Allin Cottrell).
3179
3180 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
3181
3182         * gtk/updateiconcache.c: Store only one copy of the pixel data
3183         for symlinked icons. To achieve this, maintain a hashtable 
3184         mapping pathnames to pixel data, and share the pixel data for
3185         all symlinks resolving to the same pathname. When writing out
3186         the image data, write out the pixel data only the first time
3187         it is met, and store the offset pointing to the first copy
3188         for use in all later cases.
3189         This reduces the size of the Bluecurve icon cache from 40
3190         to 13MB. (#312972)
3191