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