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