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