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