]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Link with -luuid for IID_IUnknown that gtkprintoperation-win32.o needs.
[~andy/gtk] / ChangeLog.pre-2-10
1 2006-08-17  Tor Lillqvist  <tml@novell.com>
2
3         * gtk/Makefile.am (libgtk_win32_2_0_la_LIBADD): Link with -luuid
4         for IID_IUnknown that gtkprintoperation-win32.o needs.
5
6 2006-08-17  Matthias Clasen  <mclasen@redhat.com>
7
8         * modules/printbackends/file/gtkprintbackendfile.c: Improve
9         the handling of the default output filename, to ensure
10         that we default to output.ps when only PostScript output
11         is possible.  (#348236, Don Scorgie)
12
13         * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_manual_capabilities): 
14         Re-select the current printer to update per-printer ui. 
15         (#348245, Don Scorgie)
16
17         * gtk/gtkfilechooserbutton.c (set_info_get_info_cb) 
18         (model_add_special_get_info_cb): Handle the case where the
19         filechooser button is destroyed quickly.
20
21 2006-08-17  Paolo Borelli  <pborelli@katamail.com>
22
23         * gtk/gtktextbuffer.c: make sure the has-selection property is
24         updated when the delection is deleted. Bug #329752
25         * tests/testtext.c: add a copy menu item and show how to
26         update its sensitivity tracking the has-selection property.
27
28 2006-08-17  Michael Emmel  <mike.emmel@gmail.com>
29
30         * configure.in:
31         Changed  to use cairo-directfb.pc bug #351519
32
33 2006-08-17  Kristian Rietveld  <kris@gtk.org>
34
35         * demos/gtk-demo/main.c (window_closed_cb), (row_activated_cb),
36         (create_tree): move the ITALIC_COLUMN over to a STYLE_COLUMN
37         which sets the style attribute.  Makes drawing the active demos
38         in italic work again.
39
40 2006-08-16  Matthias Clasen  <mclasen@redhat.com>
41
42         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Add some
43         docs to the row-deleted signal.  (#349128, Benedikt Meurer)
44
45         * gtk/gtkiconview.c: Update background upon style-set and
46         state-changed.  (#348634, Thomas Rydzynski)
47
48         * gtk/gtkentry.c (paste_received): Popup completion if paste
49         is at the end (patch was already in 2.8.x).  (#165714, 
50         Christian Persch)
51
52         * gtk/gtknotebook.c (gtk_notebook_set_current_page): Explain
53         some quirks of this function.  (#351112)
54
55 2006-08-16  Kristian Rietveld  <kris@gtk.org>
56
57         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
58         take the cell spacing into account when calculating the available
59         extra space. (#350938, patch from Peter Johanson).
60
61 2006-08-16  Kristian Rietveld  <kris@gtk.org>
62
63         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
64         update the refs from children to parents for all nodes, since
65         they may all have been moved by the insert operation. (#346800,
66         patch from Jonathan Matthew).
67
68 2006-08-15  Matthias Clasen <mclasen@redhat.com>
69
70         * gtk/gtkrecentfilter.c (gtk_recent_filter_filter):
71         * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item):
72         Add Since tags.  (#351581, Brian Cameron)
73
74 2006-08-15  Michael Emmel  <mike.emmel@gmail.com>
75
76         * configure.in  
77         Added cairo flag patch to fix directfb build from bug #351519
78
79 2006-08-15  Richard Hult  <richard@imendio.com>
80
81         * gdk/quartz/gdkevents-quartz.c: (get_event_mask_from_ns_event): 
82         Add GDK button mask for NS dragging events.
83         (create_scroll_event): Remove obsolete comment.
84         (_gdk_quartz_get_current_event_mask), (gdk_event_translate): Keep
85         track of the latest event mask here...
86
87         * gdk/quartz/gdkwindow-quartz.c: 
88         (_gdk_windowing_window_get_pointer): And use it here. Patch from
89         Kristian Rietveld.
90         (gdk_window_quartz_update_idle): Rename to make things clearer.
91
92 2006-08-15  Matthias Clasen  <mclasen@redhat.com>
93
94         * gtk/gtkprintoperationpreview.c: 
95         * gtk/gtkprintoperation.c (gtk_print_operation_class_init): Add
96         more docs.
97
98         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Set CAN_DEFAULT
99         on all buttons.  (#168737, fix proposed by Benjamin Berg)
100
101         * gtk/gtkentryprivate.h: 
102         * gtk/gtkentry.c (_gtk_entry_effective_inner_border): Export 
103         privately. Adjust all callers.
104
105         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use it
106         here to get the actual inner border.  (#349429, Benjamin Berg)
107
108         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Don't
109         store GSource pointers, but ids.
110         (gtk_file_chooser_entry_dispose): Remove idles.
111         (idle_add, idle_add): Factor this out.
112         (gtk_file_chooser_entry_maybe_update_directory): 
113         (add_completion_idle): And use it here. (#350039, Chris Wilson)
114
115         * gtk/gtkicontheme.c (do_theme_change): Run the reset_styles
116         idle at a priority higher than size negotiation.  (#350517,
117         Søren Sandmann)
118         
119         * gtk/gtkfilesystem.c (gtk_file_info_render_icon) 
120         (gtk_file_system_volume_render_icon): Do better fallbacks
121         if the icon theme does not have icons.  (#345666,
122         Kazuki Iwamoto)
123
124         * gtk/gtkruler.c (gtk_ruler_unrealize): Don't leak
125         no_gr_exp_gc.  (#350050, Chris Wilson)
126
127         * gdk/x11/gdkdrawable-x11.c (get_shm_pixmap_for_image): Don't
128         leak ShmPixmapInfo.  (#349858, Chris Wilson)
129
130         * gtk/Makefile.am (GTK_PRINT_PREVIEW_COMMAND): Call evince
131         with the --preview option.  (#350139, Carlos Garcia Campos)
132
133         * modules/printbackends/cups/gtkprintbackendcups.c (create_pickone_option): 
134         Simplify, make it build against cups 1.1.  (#350329)    
135
136         * gtk/gtkliststore.c (gtk_list_store_insert_with_values): 
137         Fix a typo in the docs.  (#349501, Carlos GUSLiBu)
138
139         * gtk/gtkcolorsel.c (palette_paint): Remove a leftover
140         debug statement. (#350072, Iago Rubio)
141
142         * gtk/gtktextbufferserialize.c (check_id_or_name): Fix
143         warning text.  (#349277)
144
145         * gtk/gtknotebook.c (gtk_notebook_enter_notify): Remove.
146         (gtk_notebook_motion_notify): Instead, update the arrow
147         state here.  (#349570, Benjamin Otte)
148
149         * gdk/x11/gdkwindow-x11.c (gdk_window_get_geometry_hints):
150         Use XAllocSizeHints to allocate the XSizeHints struct.
151         (#249285, David Baron)
152
153         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd):
154         * gdk/x11/gdkwindow-x11.c (gdk_window_set_decorations):
155         (gdk_window_set_functions): Zero out some stack-allocated
156         X structures, to avoid valgrind warnings about uninitialized
157         memory.  (#349382, David Baron)
158
159 2006-08-14  Emmanuele Bassi  <ebassi@gnome.org>
160
161         * gtk/gtkrecentchooser.c:
162         (gtk_recent_chooser_add_filter),
163         (gtk_recent_chooser_remove_filter),
164         (gtk_recent_chooser_set_filter): Add a check on the
165         filter argument, instead of blindly passing it to
166         underlying implementation.
167
168         * gtk/gtkrecentchoosermenu.c:
169         (gtk_recent_chooser_menu_add_filter),
170         (gtk_recent_chooser_menu_remove_filter),
171         (gtk_recent_chooser_menu_list_filters): Implement
172         these GtkRecentChooser methods, by setting and
173         returning the only GtkRecentFilter object supported
174         by a GtkRecentChooserMenu. (#347856, reported by Rod
175         Butcher)
176
177 2006-08-14  Matthias Clasen  <mclasen@redhat.com>
178
179         * gtk/gtkcombobox.c (gtk_combo_box_remove): Null the
180         cell_view pointer if the internal cell view is removed. 
181         (#348828, Rolando Espinoza La Fuente)
182
183         * gtk/gtkentry.c (gtk_entry_drag_data_received): Don't leak
184         in the non-editable case.  (#350258, Colin Leroy)
185
186 2006-08-10  Michael Emmel  <mike.emmel@gmail.com>
187
188         * gdk/directfb/gdkdrawable-directfb.c
189         Remove gdk_directfb_update_region and calls 
190         * gdk/directfb/gdkwindow-directfb.c
191         Code cleanup 
192         * gdk/directfb/gdkgeometry-directfb.c
193         Fix scroll call to use region
194
195 2006-08-10  Emmanuele Bassi  <ebassi@gnome.org>
196
197         * gtk/gtkrecentchoosermenu.c:
198         (gtk_recent_chooser_menu_finalize): Remove the idle
199         source in ::finalize...
200         
201         (idle_populate_func),
202         (idle_populate_clean_up): ...and reset the idle source
203         id at the end of the idle loop while we hold the GDK mutex
204         lock. (#350605, reported by Wouter Bolsterlee, patch by
205         Chris Wilson)
206
207 2006-08-10  Michael Natterer  <mitch@imendio.com>
208
209         * gdk/quartz/gdkwindow-quartz.c
210         (gdk_window_maximize)
211         (gdk_window_unmaximize)
212         (gdk_window_iconify)
213         (gdk_window_deiconify): don't try to set the state of unmapped
214         windows, call gdk_synthesize_window_state() instead. Also added
215         autorelease pools back, seems they are needed after all.
216
217         * gdk/quartz/gdkwindow-quartz.c (show_window_internal): maximize
218         and iconify windows here if the state says so.
219
220 2006-08-09  Michael Natterer  <mitch@imendio.com>
221
222         * gdk/quartz/gdkwindow-quartz.c (gdk_window_set_geometry_hints):
223         implement MIN_SIZE, MAX_SIZE and RESIZE_INC.
224
225 2006-08-08  Richard Hult  <richard@imendio.com>
226
227         * gtk/gtkdnd-quartz.c: Implement get/set_track_motion.
228         
229 2006-08-08  Richard Hult  <richard@imendio.com>
230
231         * gdk/quartz/gdkevents-quartz.c: (poll_func): Whitespace cleanup.        
232         (synthesize_crossing_events): Add comments and prevent a crash.
233
234 2006-08-08  Michael Natterer  <mitch@imendio.com>
235
236         * gdk/quartz/gdkwindow-quartz.c
237         (gdk_window_maximize)
238         (gdk_window_unmaximize): implement.
239
240         (gdk_window_iconify)
241         (gdk_window_deiconify): remove unneeded autorelease pools.
242
243 2006-08-08  Richard Hult  <richard@imendio.com>
244
245         * gdk/quartz/GdkQuartzView.c: Just expose the minimal region 
246         instead of the whole rect.
247
248         * gdk/quartz/gdkwindow-quartz.c:
249         (gdk_window_quartz_process_all_updates), (gdk_window_update_idle),
250         (gdk_window_impl_quartz_invalidate_maybe_recurse),
251         (gdk_window_impl_quartz_process_updates),
252         (_gdk_windowing_window_destroy): Rework the expose handling so that
253         it works like the X11 backend, using an idle with the right
254         priority instead of relying on quartz to do it.
255         (gdk_window_set_type_hint): Use tornoff instead of submenu as the
256         documentation (and Mitch) suggests.
257
258 2006-08-08  Michael Natterer  <mitch@imendio.com>
259
260         * gdk/quartz/gdkdrawable-quartz.c: some whitespace and indentation
261         cleanup.
262
263         (gdk_quartz_draw_rectangle)
264         (gdk_quartz_draw_arc)
265         (gdk_quartz_draw_polygon)
266         (gdk_quartz_draw_points): for pixel-prefect drawing, stroked
267         coordinates need to go through pixel centers, while filled ones
268         need to go along pixel boundaries. Moved +0.5 adjusting to the
269         if(!filled) branches and added/removed some adjustments where they
270         were wrong.
271
272 2006-08-07  Richard Hult  <richard@imendio.com>
273
274         * gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_points): Don't
275         get and release the context for each point, just once, speeds up
276         drawing many points a lot.
277
278 2006-08-07  Michael Natterer  <mitch@imendio.com>
279
280         * gtk/gtkdnd-quartz.c (gtk_drag_dest_unset): need to disconnect
281         from signals connected in gtk_drag_dest_set() here.
282
283         * gtk/gtkdnd-quartz.c (gtk_drag_dest_set): call gtk_drag_dest_unset()
284         instead of disconnecting the old signal connections here.
285
286 2006-08-07  Emmanuele Bassi  <ebassi@gnome.org>
287
288         * gtk/gtkrecentchooserdefault.c:
289         (_gtk_recent_chooser_default_init): Show non existing
290         resources by default.
291         (recent_meta_data_func): Do not mark non existing
292         resources as insensitive.
293
294         * gtk/gtkrecentchoosermenu.c:
295         (gtk_recent_chooser_menu_init): Show non existing
296         resources by default.
297         (gtk_recent_chooser_menu_create_item): Do not mark
298         non existing resources as insensitive.
299
300 2006-08-06  Matthias Clasen  <mclasen@redhat.com>
301
302         * gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_finalize): Free
303         all XKB data. (#349997, Chris Wilson)
304
305         * gtk/gtkstyle.c (option_menu_get_props): Only get the
306         indicator-size and indicator-spacing style properties
307         for GtkOptionMenu.  (#349859, Benjamin Otte)
308
309         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines) 
310         (gtk_tree_view_set_enable_tree_lines): Be more careful
311         when creating gcs, also emit change notification.
312         (gtk_tree_view_unrealize): Free the gcs here.  (#349834,
313         Chris Wilson)
314
315         * gtk/gtkcalendar.c (calendar_start_spinning, calendar_timer): 
316         Use G_PRIORITY_DEFAULT_IDLE for the month/year-change timer,
317         so that the caller will have a chance to redraw/resize itself
318         between every change.  (#348824, Federico Mena Quintero, patch
319         by Michael Meeks)
320         
321         * gtk/gtkfontbutton.c (gtk_font_button_update_font_info): 
322         Add a missing initialization.  (#348787, Leonardo Boshell)
323         
324         * configure.in: Use $PKG_CONFIG consistently.  (#348740,
325         Jeremy Lainé)
326         
327         * gtk/gtknotebook.c (gtk_notebook_drag_motion): Don't allow
328         dragging a notebook tab to one of its children.  (#348626,
329         Benjamin Otte)
330         (gtk_notebook_drag_motion): Don't accept drops on 
331         arrows.  (#348706, Benjamin Otte)
332
333         * tests/testnotebookdnd.c: Test more corner cases.
334
335 2006-08-05  Matthias Clasen  <mclasen@redhat.com>
336
337         * docs/tutorial/gtk-tut.sgml: Remove outdated lists of
338         authors and maintainers.  (#348538, Owen Taylor)
339
340         * gtk/gtkentry.c:
341         * gtk/gtkentryprivate.h: Export gtk_entry_reset_im_context
342         privately.
343         
344         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_button_press): 
345         * gtk/gtkentry.c (gtk_entry_completion_key_press): Reset the
346         entry's im context here.  (#348478, Nguyen Thai Ngoc Duy, Christian
347         Persch) 
348
349         * gtk/gtktextview.c (gtk_text_view_style_set): Create new
350         PangoContexts and set them on the layout, to catch changes in
351         font options.  (#348278, Behdad Esfahbod)
352
353         * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add a 
354         missing initialization.  (#349863, Benjamin Berg)
355
356         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_reorder): 
357         Protect against tree_view being NULL.  (#348652, Patrick K. O'Brian,
358         Chris Wilson)
359
360 2006-08-03  Emmanuele Bassi  <ebassi@gnome.org>
361
362         * gtk/gtkrecentchoosermenu.c:
363         (set_recent_managet), (gtk_recent_chooser_menu_populate),
364         (idle_populate_func), (idle_populate_clean_up),
365         (manager_changed_cb): Lazily populate the menu when creating
366         it and after the manager emits the "changed" signal; this
367         fixes the initial bad placing of the GtkRecentChooserMenu
368         widget when its set as the menu of a GtkMenuToolButton.
369
370         (gtk_recent_chooser_menu_map),
371         (gtk_recent_chooser_menu_class_init): Remove the ::map method
372         override, since it's not needed anymore.
373
374 2006-08-03  Michael Natterer  <mitch@imendio.com>
375
376         * gtk/gtkrc.c (gtk_rc_parse_assignment): reset scanner config to
377         default values while checking if an expression(foobar) follows,
378         because if no expression follows the scanner's "next token" must
379         be usable for the caller of this function (fixes bug #349552).
380
381 2006-08-03  Michael Natterer  <mitch@imendio.com>
382
383         * gtk/gtkstyle.c: removed the "widget &&" part from
384         "widget && GTK_IS_FOO (widget)" checks.
385
386 2006-07-13  Michael Emmel  <mike.emmel@gmail.com>
387
388         * gdk/directfb/gdkwindow-directfb.c
389         Remove unused call to GetPosition 
390
391 2006-07-31  Richard Hult  <richard@imendio.com>
392
393         * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_draw_drawable):
394         * gdk/quartz/gdkwindow-quartz.c:
395         (gdk_window_impl_quartz_begin_paint_region): Patch from Erik van
396         Pienbroek to implement drawing bg_pixmaps (#348145).
397
398 2006-07-29  Richard Hult  <richard@imendio.com>
399
400         * gdk/quartz/gdkcolor-quartz.c (gdk_colormap_alloc_colors): Always
401         set success to TRUE.
402         (gdk_color_change): Implement.
403
404         * gdk/quartz/GdkQuartzWindow.c
405         ([GdkQuartzWindow -canBecomeKeyWindow]): Add comment.
406
407         * gdk/quartz/gdkevents-quartz.c (gdk_screen_get_setting): Make the
408         default font a bit smaller until we have made this get the system
409         setting.
410
411         * gdk/quartz/gdkwindow-quartz.c (gdk_window_set_type_hint): Enable
412         shadows for the right window types.
413
414         * gdk/quartz/gdkprivate-quartz.h:
415         * gdk/quartz/gdkgc-quartz.c:
416         * gdk/quartz/gdkdrawable-quartz.c:
417         * gdk/quartz/gdkcolor-quartz.c: Expose the CGContext functions,
418         update callers.
419
420         * gdk/quartz/gdkmain-quartz.c: (_gdk_windowing_init): No need to
421         get the current process ID, use the right constant instead.
422
423 2006-07-28  Emmanuele Bassi  <ebassi@gnome.org>
424
425         * gtk/gtkrecentmanager.c (gtk_recent_manager_init): Add the
426         timeout for polling the file; change the default polling
427         delta to 2000 msec.
428
429 2006-07-27  Michael Natterer  <mitch@imendio.com>
430
431         * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): cast the
432         return value of XGetWindowProperty() correctly so we don't return
433         garbage type hints. Pointed out by Tommi Komulainen, patch taken
434         from https://maemo.org/bugzilla/show_bug.cgi?id=724
435
436 2006-07-27  Matthias Clasen  <mclasen@redhat.com>
437
438         * gtk/gtksettings.c (gtk_settings_finalize): Move the
439         _gtk_rc_context_destroy call to the right spot.  (#348096,
440         Chris Wilson)
441
442 2006-07-24  Richard Hult  <richard@imendio.com>
443
444         * gdk/quartz/gdkevents-quartz.c (gdk_screen_get_setting): Implement
445         getting the double click threshold.
446
447 2006-07-24  Richard Hult  <richard@imendio.com>
448
449         * gdk/quartz/gdkwindow-quartz.c (gdk_window_set_type_hint): Set the
450         window level depending on the type hint.
451
452         * gdk/quartz/gdkevents-quartz.c (gdk_keyboard_grab,
453         pointer_ungrab_internal): Only break the grab if the new window is
454         a different one.
455         (gdk_event_translate): Catch the case where the entire app loses 
456         focus and break any grabs. Only do implicit grabs when the event
457         mask has both press and release.
458
459         * gdk/quartz/gdkkeys-quartz.c (translate_keysym):
460         * gdk/quartz/gdkselection-quartz.c:
461
462         * gdk/quartz/GdkQuartzWindow.c
463         ([GdkQuartzWindow -windowDidResignKey:]): Use this to update the
464         focus window instead of resignMain, fixes the case where other apps
465         uses focus follows mouse (like the terminal can).
466
467 2006-07-23  Matthias Clasen  <mclasen@redhat.com>
468
469         * configure.in: Bump version
470         
471         * === Released 2.10.1 ===
472
473         *  NEWS: Updates
474
475         * gtk/gtkstyle.c (gtk_default_draw_box_gap): Draw
476         gaps on the left/right properly.  (#348134, Benjamin Otte)
477
478         * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
479         Fix a memory leak.  (#348424, Carlos Garcia Campos)
480
481 2006-07-21  Matthias Clasen  <mclasen@redhat.com>
482
483         * gtk/gtkrc.h:
484         * gtk/gtkrc.c (_gtk_rc_context_destroy): New function to
485         destroy an rc context.
486
487         * gtk/gtksettings.c (gtk_settings_finalize): Destroy the rc context.
488         (gtk_settings_get_for_screen): Unref the settings when the screen
489         goes away. (#348096, Chris Wilson)
490
491 2006-07-21  Richard Hult  <richard@imendio.com>
492
493         * gdk/quartz/gdkgc-quartz.c: (gdk_quartz_gc_get_values),
494         (gdk_quartz_gc_set_values), (_gdk_windowing_gc_copy),
495         (gdk_gc_get_screen): Implement.
496
497         * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_back_pixmap):
498         Implement.
499
500 2006-07-21  Matthias Clasen  <mclasen@redhat.com>
501
502         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_get_preedit_string): 
503         0-terminate outbuf in all cases.  (#348227, Nguyen Thái Ngoc Duy)
504
505 2006-07-21  Michael Natterer  <mitch@imendio.com>
506
507         Enable symbolic colors and color expressions in style
508         properties. Fixes bug #346751.
509
510         * gtk/gtkrc.c (rc_parse_token_or_compound): add GtkRcStyle
511         parameter and replace symbolic colors by color constants.
512
513         (gtk_rc_parse_assignment): likewise. Also support parsing of
514         expressions of the form identifier(compound).
515
516         (gtk_rc_parse_style): pass the GtkRcStyle to
517         gtk_rc_parse_assignment().
518
519         (gtk_rc_parse_statement): pass NULL since we don't have a
520         GtkRcStyle here.
521
522 2006-07-21  Michael Natterer  <mitch@imendio.com>
523
524         * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize):
525         remove accidential 2nd parameter to g_object_unref().
526
527 2006-07-21  Matthias Clasen  <mclasen@redhat.com>
528
529         * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize):
530         Don't leak the action_view.  (#348120, Chris Wilson)
531
532         * gtk/gtknotebook.c (gtk_notebook_paint): Improve drawing
533         of tabs while reordering.  (#348115, Benjamin Otte)
534
535         * gtk/gtkiconview.c (gtk_icon_view_destroy): Don't
536         leak the adjustments.  (#348094, Chris Wilson)
537
538         * gtk/gtknotebook.c (gtk_notebook_stop_reorder): Unset
539         the during_reorder flag.  (#348049, Sven Herzberg, patch
540         by Benjamin Otte)
541
542 2006-07-20  Matthias Clasen  <mclasen@redhat.com>
543
544         * gtk/gtkmenu.c (gtk_menu_destroy): Just remove the scroll
545         timeout here, don't access settings.  (#348095, Chris Wilson)
546
547         * gtk/gtktextlayout.c (gtk_text_layout_set_contexts): Fix
548         messed up refcounting.  (#348090, Chris Wilson)
549
550         * gtk/gtkicontheme.h: 
551         * gtk/gtkicontheme.c (_gtk_icon_theme_ensure_builtin_cache): 
552         Export this privately.
553
554         * gtk/gtkiconfactory.c (render_fallback_image): And call it
555         here to initialize the builtin cache before using it.  (#348063,
556         Diego Pettenò)
557
558 2006-07-19  Federico Mena Quintero  <federico@novell.com>
559
560         * tests/autotestfilechooser.c (test_black_box): Argh, initialize
561         "passed"!
562         (set_filename_timeout_cb): Renamed from timeout_cb().
563         (test_confirm_overwrite): New function, test confirmation before
564         overwriting a file in SAVE mode.
565
566 2006-07-20  Michael Natterer  <mitch@imendio.com>
567
568         * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_finalize):
569         fix typo to make it compile again.
570
571 2006-07-20  Emmanuele Bassi  <ebassi@gnome.org>
572
573         * gtk/gtkrecentchoosermenu.c:
574         (gtk_recent_chooser_menu_finalize): Correctly chain up the
575         finalization vfunc. (#348089, Chris Wilson)
576
577 2006-07-20  Richard Hult  <richard@imendio.com>
578
579         * gdk/quartz/gdkevents-quartz.c: (generate_grab_broken_event):
580         Append the event to the queue instead of using gdk_event_put.
581         (_gdk_quartz_get_mouse_window, find_current_keyboard_window):
582         Handle grabs.
583         (get_event_mask_from_ns_event, create_focus_event)
584         (convert_window_coordinates_to_root, find_window_for_event)
585         (gdk_event_translate): Improve readability (style changes).
586         (gdk_flush, gdk_display_sync, gdk_display_flush)
587         (gdk_event_send_client_message_for_display),
588         (gdk_screen_broadcast_client_message): Remove FIXMEs.   
589         (gdk_screen_get_setting): Reindent.
590         Also move find_child_window_by_point to gdkwindow-quartz.c.
591         
592         * gdk/quartz/gdkwindow-quartz.c:
593         (find_child_window_by_point_helper),
594         (_gdk_quartz_find_child_window_by_point): Move here from 
595         gdkevents-quartz.c
596         (_gdk_windowing_window_get_pointer): Handle destroyed windows and
597         imlement the return value.
598         (_gdk_windowing_window_at_pointer): Implement.
599
600 2006-07-19  Richard Hult  <richard@imendio.com>
601
602         * gtk/gtkdnd-quartz.c (register_types): Reindent.
603         
604         * gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
605         autorelease pool.
606
607 2006-07-19  Richard Hult  <richard@imendio.com>
608
609         * gdk/quartz/GdkQuartzWindow.c
610         ([GdkQuartzWindow -windowDidResignMain:]):
611         * gdk/quartz/gdkevents-quartz.c (_gdk_quartz_update_focus_window):
612         Listen to windowDidResignMain notifications and properly update the
613         focus window when windows are unfocused.
614
615 2006-07-19  Kristian Rietveld  <kris@imendio.com>
616
617         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init),
618         (gtk_cell_renderer_text_[gs]et_property), (get_layout): add
619         align_set field to keep track whether the align property was
620         set by the user, if not we will use the alignment by looking
621         at the direction of the widget. (#157439)
622
623 2006-07-19  Matthias Clasen  <mclasen@redhat.com>
624
625         * modules/printbackends/file/gtkprintbackendfile.c 
626         (file_printer_get_settings_from_options): Check if option
627         is NULL before using it.  (#348014, Christian Persch)
628
629         * gdk/x11/gdkx.h (gdk_font_lookup_for_display): When looking
630         up a font XID, add the XID_FONT_BIT.  (#348001)
631
632 2006-07-19  Richard Hult  <richard@imendio.com>
633
634         * gdk/quartz/GdkQuartzView.c ([GdkQuartzView -drawRect:]):
635         * gdk/quartz/gdkpixmap-quartz.c (gdk_pixmap_new): Remove unused
636         variables to fix compiler warnings.
637
638 2006-07-19  Richard Hult  <richard@imendio.com>
639
640         * gdk/quartz/gdkwindow-quartz.c (gdk_window_impl_quartz_init)
641         (gdk_window_set_type_hint, gdk_window_get_type_hint):
642         * gdk/quartz/GdkQuartzWindow.c
643         ([GdkQuartzWindow -canBecomeMainWindow])
644         ([GdkQuartzWindow -canBecomeKeyWindow]): Implement type hints and
645         use them to determine which windows should be allowed to become
646         main and key windows.
647
648 2006-07-19  Richard Hult  <richard@imendio.com>
649
650         * gdk/quartz/gdkwindow-quartz.c:
651         (_gdk_windowing_window_get_pointer): Get the position correctly
652         for the root window. Fixes bug #347976, patch by Dave Vasilevsky.
653
654 2006-07-18  Matthias Clasen  <mclasen@redhat.com>
655
656         * NEWS: Updates
657
658         * gtk/gtkdnd.c: Make the ipc widgets GtkWindows instead
659         of GtkInvisibles, and put them in the same window group
660         as the drag source, to avoid interactions between DND
661         and window groups.  (#347277, Michael Wu, analysis by
662         Owen Taylor)
663
664 2006-07-18  John (J5) Palmieri  <johnp@redhat.com>
665
666         * modules/printbackends/cups/gtkprintbackendcups.c:
667         Make bits from my last commit are conditionally compiled
668         only if cups 1.2 is available. 
669
670 2006-07-18  John (J5) Palmieri  <johnp@redhat.com>
671
672         * gtk/gtkprinteroption.h:
673         * gtk/gtkprinteroptionwidget.c:
674         * modules/printbackends/cups/gtkprintbackendcups.c:
675         add GTK_PRINTER_OPTION_TYPE_PICKONE_PASSWORD,
676         GTK_PRINTER_OPTION_TYPE_PICKONE_PASSCODE,
677         GTK_PRINTER_OPTION_TYPE_PICKONE_REAL,
678         GTK_PRINTER_OPTION_TYPE_PICKONE_INT,
679         and GTK_PRINTER_OPTION_TYPE_PICKONE_STRING options to support a subset
680         of the new CUPS 1.2 custom options spec
681
682 2006-07-18  Federico Mena Quintero  <federico@novell.com>
683
684         Fix https://bugzilla.novell.com/show_bug.cgi?id=184875 - make the
685         location entry in Save mode preserve the stuff from
686         set_filename(); it was overwriting it with $cwd.
687
688         This is the same fix for
689         http://bugzilla.gnome.org/show_bug.cgi?id=347066
690
691         * tests/autotestfilechooser.c: (test_black_box): Added black-box
692         test for set_filename() and set_current_name().
693
694         * gtk/gtkfilechooser.c (gtk_file_chooser_get_type): Cast to
695         GClassInitFunc in the call to g_type_register_static_simple(), to
696         avoid a compiler warning.
697
698         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
699         Added a browse_files_last_selected_name field.  We'll copy the
700         logic from gtkfilesel.c to see when to clear the location entry.
701         (struct _GtkFileChooserDefault): Removed the
702         processing_pending_selections field.
703
704         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
705         Free impl->browse_files_last_selected_name.
706         (pending_select_paths_process): Don't use
707         impl->processing_pending_selections.
708         (update_chooser_entry): Keep track of the name that was last
709         selected in the file list.  We use this to know when to clear the
710         location entry.  The logic is similar to that of
711         gtkfilesel.c:gtk_file_selection_file_changed().  This also lets us
712         get rid of the processing_pending_selections flag.
713         (update_chooser_entry): Clear the entry if we didn't have a
714         selection before.
715         (location_switch_to_filename_entry): Do not set $cwd as the
716         contents of the location entry here...
717         (location_popup_handler): ... but do it here instead, only as the
718         result of the user asking to turn on the location entry.
719         (gtk_file_chooser_default_get_paths): If the location entry is
720         empty, do the fallback of seeing if it is sensible to say that
721         $cwd is the selected path.
722         (gtk_file_chooser_default_update_current_folder): Don't set the
723         text of the location entry; this is no longer needed with the
724         fixes above.
725         (shortcuts_activate_iter): Clear the location entry when
726         activating a shortcut if we are not in SAVE mode.  This keeps the
727         contents of the location entry consistent even when switching
728         folders via the shortcuts.
729
730 2006-07-18  Michael Natterer  <mitch@imendio.com>
731
732         * gtk/gtkrange.c: remember the sensitivity of the steppers in
733         GtkRangeLayout, update it in gtk_range_calc_layout() and check for
734         changes in layout_changed(), so adjustment changes that leave the
735         slider position unchanged are still able to update the steppers'
736         sensitivity. Fixes bug #347902.
737
738 2006-07-18  Kristian Rietveld  <kris@imendio.com>
739
740         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
741         oooops.
742
743 2006-07-18  Kristian Rietveld  <kris@imendio.com>
744
745         Fix for #335012, reported by Matteo Nastasi.
746
747         * gtk/gtktreeview.c (gtk_tree_view_real_start_editing): if the
748         requested space of the editable is smaller than the cell area,
749         put it up above the middle of the cell area.
750
751         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing):
752         configure the inner border to cover the cell area if the 
753         entry requisition is smaller than the cell_area.
754
755 2006-07-18  Kristian Rietveld  <kris@imendio.com>
756
757         Another fix for #164884.
758
759         * gtk/gtktreeprivate.h: add in_grab field.
760
761         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save press
762         to possibly begin a drag when there's no grab pending,
763         (gtk_tree_view_grab_notify): toggle in_grab field.
764
765 2006-07-18  Kristian Rietveld  <kris@imendio.com>
766
767         * gtk/gtktreeview.c (gtk_tree_view_realize): use MAX
768         priv->width, alloc.width when allocating the bin_window,
769         (gtk_tree_view_bin_expose): don't overrun bin_window when drawing
770         the flat box.
771
772 2006-07-17  Richard Hult  <richard@imendio.com>
773
774         * gtk/gtkdnd-quartz.c: (gtk_drag_begin_internal): Set an empty
775         NSImage if there is none, covers the cases where applications try
776         to set a pixmap which is not supported by the quartz backend.
777
778 2006-07-17  Richard Hult  <richard@imendio.com>
779
780         * gdk/quartz/gdkevents-quartz.c: (create_key_event):
781         * gdk/quartz/gdkkeys-quartz.c: (_gdk_quartz_key_event_type),
782         (_gdk_quartz_key_is_modifier):
783         * gdk/quartz/gdkprivate-quartz.h: Fill in string, length and
784         is_modifier for key events. Map some more keys into gdk keyvals.
785
786 2006-07-17  Matthias Clasen  <mclasen@redhat.com>
787
788         * gtk/gtknotebook.c (gtk_notebook_stop_reorder): Don't undo
789         reordering if we haven't been reordering.  (#346836, Ed Catmur)
790
791 2006-07-17  Richard Hult  <richard@imendio.com>
792
793         * gdk/quartz/gdkkeys-quartz.c: Add escape to the list of special
794         keys, to get the escape key working.
795
796 2006-07-17  Richard Hult  <richard@imendio.com>
797
798         * gdk/quartz/gdkdisplay-quartz.c (gdk_display_open): Initialize
799         GdkInput.
800         
801 2006-07-17  Kristian Rietveld  <kris@imendio.com>
802
803         * gtk/gtktreeview.c (gtk_tree_view_build_tree): check if the iter
804         still has children after running the test-expand-row func,
805         (gtk_tree_view_real_expand_row): ditto. (#302127, Billy Biggs).
806
807 2006-07-17  Michael Natterer  <mitch@imendio.com>
808
809         * gtk/gtkcalendar.c (calendar_timer): use 5 * gtk-timeout-repeat,
810         just as many other widgets. Makes the calendar arrow buttons
811         usable for quick month/year skipping (#142582).
812
813 2006-07-17  Richard Hult  <richard@imendio.com>
814
815         * gdk/quartz/gdkwindow-quartz.c:
816         (_gdk_windowing_window_destroy_foreign): Fix comment.
817         (gdk_window_set_title): Surround by release pool macros.
818         (gdk_window_get_type_hint): Fix return value.
819         (gdk_window_get_frame_extents): Implement.
820         (gdk_window_iconify): Use the release pool macros.
821         (gdk_window_deiconify): Likewise. 
822         (_gdk_windowing_get_pointer): Implement.
823         (gdk_window_get_deskrelative_origin, gdk_window_get_root_origin): 
824         Implement.
825
826         * gdk/quartz/gdkevents-quartz.c (create_crossing_event) 
827         (create_scroll_event, convert_window_coordinates_to_root): 
828         Set coordinates and root coordinates for crossing and scroll 
829         events.
830
831         * gdk/quartz/gdkcursor-quartz.c (gdk_cursor_new_for_display): 
832         Map some more cursors.
833
834 2006-07-17  Matthias Clasen  <mclasen@redhat.com>
835
836         * gdk/gdkwindow.c (gdk_window_get_pointer): Add some more
837         detail to the docs.  (#311399, Nikos Kouremenos)
838
839         * gtk/gtkentrycompletion.c (gtk_entry_completion_set_match_func): 
840         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_set_text_column): 
841         Fix typos in the docs.
842
843 2006-07-16  Matthias Clasen  <mclasen@redhat.com>
844
845         * gtk/gtkassistant.c: Some small documentation
846         fixups.  (#347711, Guillaume Cottenceau)
847
848         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark
849         the text of the location label as translatable.  
850
851         * gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in 
852         the docs.  (#347211, Kouhei Sutou)   
853
854         * configure.in: Make the test for the sync extension
855         more robust.  (#347315, Tommi Komulainen)
856
857 2006-07-13  Michael Emmel  <mike.emmel@gmail.com>
858
859         * gdk/directfb/gdkdrawable-directfb.c
860         Remove +1 in fill and draw rect this may be wrong.
861         Commented out update calls left for reference the should not be needed.
862         Comment out subsurface for cairo remove when proved its not needed
863         * gdk/directfb/gdkkeys-directfb.c
864         Allow multiple calls and return if initalized
865         * gdk/directfb/gdkmain-directfb.c
866         Make sure string is malloced since its freed by apps
867         * gdk/directfb/gdkprivate-directfb.c
868         Added back pointer to window for paintable impl
869         * gdk/directfb/gdkvisual-directfb.c
870         Fix for Bug 346733 make sure visual list is populated
871         * gdk/directfb/gdkwindow-directfb.c
872         Finally removed uneeded pixmap buffering now implements GdkPainter
873
874 2006-07-11  Emmanuele Bassi  <ebassi@gnome.org>
875
876         * gtk/gtkrecentchooser.c (gtk_recent_chooser_set_show_numbers),
877         (gtk_recent_chooser_get_show_numbers): Check if the chooser
878         implementation supports the "show-number" property and use a
879         meaningful warning in case it doesn't; tell developers not to
880         use these functions.
881
882 2006-07-10  Matthias Clasen  <mclasen@redhat.com>
883
884         * gtk/gtkaction.c:
885         * gtk/gtkiconview.c:
886         * gtk/gtkprintbackend.c:
887         * gtk/gtkprintoperation-unix.c:
888         * gtk/gtkscrolledwindow.c:
889         * gtk/gtktoolbar.c: Fix some typos with inline property
890         docs.  (#347065, John Finlay)
891
892         * gtk/gtkfilechooserbutton.c: Fix some memory handling
893         issues.  (#347043, Chris Wilson)
894
895 2006-07-10  Emmanuele Bassi  <ebassi@gnome.org>
896
897         * gtk/gtkrecentchooserdefault.c (scan_for_uri_cb): Do not
898         leak the URI returned by the model; select the row when
899         calling gtk_recent_chooser_set_current_uri(). (patch by
900         Torsten Schoenfeld)
901
902 2006-07-10  Matthias Clasen  <mclasen@redhat.com>
903
904         * gtk/gtkpapersize.c (gtk_paper_size_is_equal): Fix a 
905         typo in the docs.  (#347041, Kouhei Sutou)
906
907         * gtk/gtkprintcontext.c (gtk_print_context_get_height): Fix
908         a typo in the docs.  (#347032, Kouhei Sutou)
909
910         * gtk/gtkassistant.c (gtk_assistant_focus): Don't assume
911         that priv->current_page is non-NULL.  (#347048, Guillaume 
912         Cottenceau)
913
914         * gtk/gtk.symbols: Add some missing deprecation guards.
915
916         * gdk/directfb/gdkwindow-directfb.c: Don't confuse gtk-doc.
917
918 2006-07-10  Richard Hult  <richard@imendio.com>
919
920         * gdk/quartz/gdkpixmap-quartz.c: (gdk_bitmap_create_from_data): 
921         Account for alignment when reading xbm data. (#346721, patch
922         by Dave Vasilevsky)
923
924 2006-07-09  Richard Hult  <richard@imendio.com>
925
926         * gdk/quartz/gdkgeometry-quartz.c:
927         * gdk/quartz/gdkmain-quartz.c:
928         * gdk/quartz/gdkpixmap-quartz.c:
929         * gdk/quartz/gdkwindow-quartz.c:
930         * gtk/gtkclipboard-quartz.c: Implement some more stubs for pygtk, 
931         bug #346713.
932
933 2006-07-09  Richard Hult  <richard@imendio.com>
934
935         * gdk/quartz/gdkwindow-quartz.c (gdk_window_new): Release the pool
936         in all cases.
937         (move_resize_window_internal): Surround by alloc/release pool.
938         Patch from Brian Tarricone, fixes bug #347018.
939
940 2006-07-08  Matthias Clasen  <mclasen@redhat.com>
941
942         * gtk/gtkfilechooserbutton.c (update_label_and_image): Don't
943         leak an empty list.  (#346970, Chris Wilson)
944
945 2006-07-08  Behdad Esfahbod  <behdad@gnome.org>
946
947         * gdk/gdkpango.c (layout_iter_get_line_clip_region),
948         (gdk_pango_layout_line_get_clip_region),
949         (gdk_pango_layout_get_clip_region): Fix quadratic implementation of
950         gdk_pango_layout_get_clip_region into a linear one. (#337910, patch
951         by Priit Laes)
952
953 2006-07-07  Richard Hult  <richard@imendio.com>
954
955         * gdk/quartz/gdkevents-quartz.c: Generate a grab broken event when
956         appropriate. Fixes bug #346603, patch from Dave Vasilevsky.
957         
958         * gdk/quartz/gdkevents-quartz.c:
959         * gdk/quartz/gdkkeys-quartz.c:
960         * gdk/quartz/gdkprivate-quartz.c: Another patch from Dave Vasilevsky,
961         fixes bug #346605. Makes modifier key events being sent properly.
962
963 2006-07-07  Michael Natterer  <mitch@imendio.com>
964
965         * gtk/gtkrc.c
966         * gtk/gtksettings.c: fix canonicalization of property names which
967         was broken after recent constant string cleanup.
968
969 2006-07-07  Matthias Clasen  <mclasen@redhat.com>
970
971         * gtk/gtkicontheme.c: Small memory savings.
972
973 2006-07-06  Matthias Clasen  <mclasen@redhat.com>
974
975         * gtk/gtkfilechooserbutton.c: Get the display name
976         for the home directory.  (#346498, Dennis Cranston,
977         patch by Andreas Köhler)
978
979 2006-07-06  Behdad Esfahbod  <behdad@gnome.org>
980
981         * configure.in: Drop required Pango version down to 1.12.0. (#346597)
982
983 2006-07-06  John (J5) Palmieri  <johnp@redhat.com>
984
985         * modules/printbackends/cups/gtkprintbackendcups.c: 
986         (cups_request_printer_list_cb): Get the name of the first printer
987         in a class to use when requesting a PPD
988         (cups_request_ppd_cb, cups_request_ppd): Fix the parameters of
989         the "details-acquired" signal emittion
990         (cups_request_ppd): get the ppd name from the cups printer
991
992         * modules/printbackends/cups/gtkprintercups.c (gtk_printer_cups_get_ppd_name):
993         New method for getting the name of the ppd we should request
994
995 2006-07-06  Michael Natterer  <mitch@imendio.com>
996
997         * gtk/gtkrc.c: added a bunch of utility functions to copy
998         icon_factories and color_hashes between GtkRcStyles and make sure
999         that newly created, duplicated and merged styles have access to
1000         all icon_factories and color_hashes they need. Fixes bug #346668.
1001
1002 2006-07-06  Matthias Clasen  <mclasen@redhat.com>
1003
1004         * gtk/*.c: Improve the -/_ consistency in signal and
1005         property names, reducing the amount of near-duplicate strings.
1006
1007 2006-07-05  Matthias Clasen  <mclasen@redhat.com>
1008
1009         * gtk/gtktreeview.c (gtk_tree_view_set_enable_tree_lines): Don't
1010         leak dash_list.  (#346639, Christian Persch)
1011
1012         * gtk/gtkwindow.c (gtk_window_unmap, gtk_window_set_keep_above) 
1013         (gtk_window_set_keep_below): Fix some assignments involving
1014         booleans.  (#346467, Christian Persch)
1015
1016 2006-07-03  Matthias Clasen <mclasen@redhat.com>
1017
1018         * gtk/gtkgamma.c: Use serialized pixbufs instead of xpms.
1019         
1020 2006-07-03  Runa Bhattacharjee <runabh@gmail.com>
1021
1022         * configure.in: Added Bengali India (bn_IN) to ALL_LINGUAS.
1023
1024 2006-06-26  Michael Emmel  <mike.emmel@gmail.com>
1025         
1026         * gdk/directfb/gdkdirectfb.h: changed ifdef to compile with api introduced
1027         in directfb 0.9.25 
1028         * gdk/directfb/gdkwindow-directfb.c: changed ifdef to 0.9.25 
1029
1030 2006-07-03  Matthias Clasen  <mclasen@redhat.com>
1031
1032         * configure.in: Bump version
1033
1034 2006-07-02  Matthias Clasen  <mclasen@redhat.com>
1035         
1036         * === Released 2.10.0 ===
1037
1038         * gtk/gtkmenubar.c (window_key_press_handler): Treat
1039         "" like NULL when parsing the menu-bar-accel setting.   
1040         * gtk/gtkmenu.c (gtk_menu_key_press): Here too.  
1041         (#346420, Yevgen Muntyan)
1042
1043         * configure.in: Require cairo 1.2 and GLib 2.12,
1044         set version to 2.10
1045
1046 2006-06-30  Matthias Clasen  <mclasen@redhat.com>
1047         
1048         * gtk/gtknotebook.c (gtk_notebook_tab_space): Remove
1049         redundant assignments to page, which may cause NULL
1050         dereferences.  (#346334, Dave Vasilevsky)
1051
1052         * demos/gtk-demo/editable_cells.c: Portability fix.
1053         (#346375, Thomas Klausner)
1054
1055         * NEWS, README.in, INSTALL.in: Updates
1056
1057         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize):
1058         Don't leak default_sort_data.  (#346341, Christian Weiske)
1059
1060         * gtk/Makefile.am: Make sure all win32-specific printing
1061         sources are distributed.  (#346312, Erik van Pienbroek)
1062         
1063         * gtk/gtkprinter.c (gtk_enumerate_printers): Always call the
1064         destroy notify.  (#346027, Christian Persch)
1065
1066         * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
1067         Documentation updates.
1068
1069         * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings):
1070         Don't leak the ranges.  (#346237, Carolyn MacLeod)
1071
1072         * gtk/gtkprintjob.[hc]: Add a PREVIEW capability to hide
1073         the preview button.  (#346113, Christian Persch)
1074
1075         * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities):
1076         Hide the preview button depending on the capability.
1077
1078         * gtk/gtkprintoperation-unix.c: Set the PREVIEW capability.
1079
1080 2006-06-29  Bill Skaggs  <weskaggs@primate.ucdavis.edu>
1081
1082         * gtk/gtkprogress.h: revert last change by Matthias -- it broke the
1083         build of gtkprogressbar.
1084
1085 2006-06-29  Matthias Clasen  <mclasen@redhat.com>
1086
1087         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Update the 
1088         size of the drawable for the root window when the screen size 
1089         changes.  (#346102, Sven Herzberg)
1090
1091 2006-06-29  Matthias Clasen  <mclasen@redhat.com>
1092
1093         * NEWS: Updates
1094
1095         * gtk/gtkprintoperation.c: Clarify docs for the allow-async
1096         property.  (#346108, Christian Persch)
1097
1098 2006-06-28  Matthias Clasen  <mclasen@redhat.com>
1099
1100         * gtk/gtkprinter.c: 
1101         * gtk/gtkprintunixdialog.c: 
1102         * gtk/gtkprintoperationpreview.c: 
1103         * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context): 
1104         * gtk/gtklabel.c (gtk_label_set_line_wrap_mode): 
1105         * gtk/gtkentry.c (gtk_entry_new):       
1106         * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label): 
1107         * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
1108         additions and fixes.
1109
1110         * gtk/gtkaspectframe.h:
1111         * gtk/gtkaboutdialog.c:
1112         * gtk/gtkcalendar.c:
1113         * gtk/gtkinputdialog.c: 
1114         * gtk/gtk.symbols: Remove unnecessary includes.
1115         
1116         * gtk/gtkprogress.[hc]: 
1117         * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
1118         remove unnecessary includes.
1119
1120         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Only select the
1121         XKB event details we actually care about.  (#346079, Ryan Lortie)
1122
1123 2006-06-27  Kristian Rietveld  <kris@gtk.org>
1124
1125         * gtk/gtktreeview.c (gtk_tree_view_set_model): cancel the
1126         expand collapse timeout when unsetting the model (Fixes #327164,
1127         reported by Daichi Kawahata).
1128
1129 2006-06-26  Michael Emmel  <mike.emmel@gmail.com>
1130         
1131         * gdk/directfb/gdkdirectfb.h: added ifdef to compile with directfb 0.9.24 
1132         * gdk/directfb/gdkwindow-directfb.c: ifdef depend on directfb cvs 
1133
1134 2006-06-26  Kristian Rietveld  <kris@gtk.org>
1135
1136         Make the insert and set functions somewhat more convenient.
1137         (#343841, David Necas).
1138
1139         * gtk/gtkliststore.c (gtk_list_store_insert_with_values): allow
1140         a NULL iter,
1141         (gtk_list_store_insert_with_valuesv): likewise.
1142
1143         * gtk/gtktreestore.c (gtk_tree_store_insert_with_values): ditto,
1144         (gtk_tree_store_insert_with_valuesv): likewise.
1145
1146 2006-06-26  Michael Natterer  <mitch@imendio.com>
1147
1148         * gtk/gtktextview.c (gtk_text_view_size_allocate): revert "keep
1149         cursor visible when size changes" since it breaks things (#344874).
1150
1151 2006-06-26  Matthias Clasen  <mclasen@redhat.com>
1152
1153         * gtk/gtkcombobox.c (gtk_cell_view_menu_item_new): Avoid
1154         a refcounting leak in the python bindings.  (#344876, Phil Dumont)
1155
1156 2006-06-25  Matthias Clasen  <mclasen@redhat.com>
1157
1158         * gtk/gtkprinter.c (gtk_enumerate_printers): Make
1159         this work when the enumeration is stopped early.  (#344074,
1160         Felipe Heidrich)
1161
1162 2006-06-24  Matthias Clasen  <mclasen@redhat.com>
1163
1164         * gtk/gtkcombobox.c: Update the height as well
1165         when changing fonts.  (#321393, Billy Biggs)
1166 `
1167 2006-06-23  Christian Rose  <menthos@menthos.com>
1168
1169         * configure.in: Added "ur" to ALL_LINGUAS.
1170
1171 2006-06-22  Matthias Clasen  <mclasen@redhat.com>
1172
1173         Fix #345663, reported by Kazuki Iwamoto
1174         
1175         * gtk/gtkaction.c: Include gtkiconfactory.h
1176
1177         * gtk/gtkactiongroup.c: Include gtkicontheme.h
1178
1179 2006-06-22  Michael Natterer  <mitch@imendio.com>
1180
1181         * gtk/gtktextview.c (gtk_text_view_size_allocate): keep the cursor
1182         visible when the size changes. Fixes bug #344874.
1183
1184 2006-06-22  Matthias Clasen  <mclasen@redhat.com>
1185
1186         * gtk/gtkpintjob.h: Add a note about updating the registration.
1187         * gtk/gtkprintjob.c (gtk_print_capabilites_get_type): Add missing
1188         capabilitites. 
1189
1190         * modules/printbackends/cups/gtkprintbackendcups.c: Remove
1191         an unused variable and make it compile with Cups 1.1.  (#345644,
1192         Joseph Sacco)
1193
1194 2006-06-21  Matthias Clasen  <mclasen@redhat.com>
1195
1196         * configure.in: Bump version
1197         
1198         * === Released 2.9.4 ===
1199
1200         * modules/printbackends/file/gtkprintbackendfile.c: 
1201         Apply a patch by Christian Persch to support PostScript and PDF
1202         output.
1203
1204         * gtk/gtkprinteroptionwidget.c (radio_changed_cb): Don't free
1205         the value.
1206
1207 2006-06-21  Matthias Clasen  <mclasen@redhat.com>
1208
1209         Apply a patch by John Palmieri to use buffered io using
1210         GIOChannels, clean up error handling and support Cups 1.2
1211         api in the printing code.
1212
1213         * acconfig.h:
1214         * configure.in: Detect Cups 1.2
1215
1216         * gtk/gtkdebug.h:
1217         * gtk/gtkmain.c: Add a printing debug key.
1218
1219         * gtk/gtkprintbackend.[hc]: Remove the GError parameter from
1220         gtk_print_backend_print_stream, and take a  GIOChannel instead
1221         of an fd.
1222
1223         * gtk/gtkprinter-private.h:
1224         * gtk/gtkprinter.c: Replace the fd parameter of 
1225         _gtk_printer_create_cairo_surface by a GIOChannel.
1226
1227         * gtk/gtkprintjob.[hc]: Remove the GError parameter from
1228         gtk_print_job_send and make it return void.
1229
1230         * gtk/gtkprintoperation-unix.c:
1231         * gtk/gtkprintjob.c: Adjust callers, add some debugging support.
1232
1233         * modules/printbackends/Makefile.am: Fix DIST_SUBDIRS.
1234
1235         * modules/printbackends/cups/Makefile.am:
1236         * modules/printbackends/lpr/Makefile.am: Add debug CFLAGS.
1237         
1238         * modules/printbackends/cups/gtkcupsutils.[hc]: 
1239         * modules/printbackends/cups/gtkprintbackendcups.c:
1240         * modules/printbackends/file/gtkprintbackendfile.c:
1241         * modules/printbackends/lpr/gtkprintbackendfile.c: Adapt to
1242         the GIOChannel and GError changes, add debug output
1243         
1244 2006-06-21  Matthias Clasen  <mclasen@redhat.com>
1245
1246         * gtk/gtkprinter.c (gtk_enumerate_printers): Remove an 
1247         unused variable.
1248
1249         * NEWS: Updates
1250
1251         * gtk/gtktreeview.c (gtk_tree_view_class_init): Fix the registration
1252         of the grid-lines property  (#345456, Murray Cumming) 
1253         
1254 2006-06-21  Kristian Rietveld  <kris@imendio.com>
1255
1256         Allocate space for the grid lines when they are enabled.
1257
1258         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): make sure the cell
1259         area does not overlap with the grid lines, also draw the line for
1260         "the next cell" in the last loop iteration, make sure the cursor falls
1261         in between the grid lines,
1262         (validate_row): request extra space for the grid lines.
1263
1264 2006-06-21  Matthias Clasen  <mclasen@redhat.com>
1265
1266         * gtk/gtkprintbackend.h: 
1267         * gtk/gtkprintbackend.c (gtk_print_backend_print_stream): Add an
1268         GError parameter.
1269
1270         * modules/printbackends/file/gtkprintbackendfile.c 
1271         (gtk_print_backend_file_print_stream): 
1272         * modules/printbackends/lpr/gtkprintbackendlpr.c 
1273         (gtk_print_backend_lpr_print_stream): 
1274         * modules/printbackends/cups/gtkprintbackendcups.c 
1275         (gtk_print_backend_cups_print_stream): 
1276         * gtk/gtkprintjob.c (gtk_print_job_send): Update all callers and
1277         implementations.
1278
1279         * modules/printbackends/cups/gtkprintbackendcups.c: Remove the
1280         GError parameter from cups_request_execute(), and various other
1281         cleanups.
1282
1283 2006-06-20  Matthias Clasen  <mclasen@redhat.com>
1284
1285         * gtk/gtkprintjob.c (gtk_print_job_class_init): Make 
1286         track-print-status a property.
1287
1288 2006-06-20  Murray Cumming  <murrayc@murrayc.com>
1289
1290         * gtk/gtkprintoperation.c: (gtk_print_operation_class_init): 
1291         Correctly register the done signal - it sends an enum, not an int.
1292
1293 2006-06-20  Christian Persch  <chpe@cvs.gnome.org>
1294         
1295         * configure.in
1296         * gtk/Makefile.am
1297         * modules/printbackends/Makefile.am
1298         A modules/printbackends/file/.cvsignore
1299         A modules/printbackends/file/Makefile.am
1300         A modules/printbackends/file/gtkprintbackendfile.c
1301         A modules/printbackends/file/gtkprintbackendfile.h
1302         R modules/printbackends/pdf/*:
1303         Rename "pdf" backend to "file" backend. Step 2 from bug #339592.
1304
1305 2006-06-20  Christian Persch  <chpe@cvs.gnome.org>
1306
1307         * gtk/gtkprinteroptionwidget.c: (filesave_changed_cb),
1308         (alternative_set), (construct_widgets): Convert input to filename
1309         encoding and construct an URI from that.
1310         * gtk/gtkprintsettings.h: Add OUTPUT_FILE_FORMAT and OUTPUT_URI keys.
1311         * modules/printbackends/pdf/gtkprintbackendpdf.c: Use those defines.
1312         Step 1 from bug #339592.
1313
1314 2006-06-20  Matthias Clasen  <mclasen@redhat.com>
1315
1316         * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add to docs.
1317
1318         Fix handling of stock items without icons in action-based
1319         ui.  (#342458, Callum McKenzie)
1320         
1321         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Set
1322         the stock id even if there is no icon for it.
1323
1324         * gtk/gtkaction.c (connect_proxy): 
1325         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
1326         construct a stock icon if the stock item has an icon.
1327
1328 2006-06-20  Matthias Clasen  <mclasen@redhat.com>
1329
1330         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_info): Better 
1331         fix.
1332
1333         * gtk/gtk.symbols: 
1334         * gtk/gtkprintsettings.h: 
1335         * gtk/gtkprintsettings.c: Remove unused print-to-file setting.
1336
1337 2006-06-20  Carlos Garnacho  <carlosg@gnome.org>
1338
1339         * gtk/gtknotebook.c (gtk_notebook_stop_reorder): unset the pressed
1340         button here.
1341         (gtk_notebook_grab_notify): stop reorder when the widget becomes
1342         shadowed. Fixes bug #335873
1343
1344 2006-06-18  Christian Persch  <chpe@cvs.gnome.org>
1345
1346         * gtk/gtkdialog.c: (gtk_dialog_class_init): Set default action area
1347         spacing to HIG-compliant 6px. Bug #345106, follow-up from bug #163850.
1348
1349 2006-06-20  Matthias Clasen  <mclasen@redhat.com>
1350
1351         * gtk/gtkiconview.c (gtk_icon_view_enable_model_drag_dest): 
1352         Small doc fix.  (#345176, Claudio Saavedra)
1353
1354         * gdk/x11/gdkwindow-x11.c (gdk_window_set_functions): Update
1355         the docs. (#345194, Yevgen Muntyan)
1356
1357 2006-06-19  Matthias Clasen  <mclasen@redhat.com>
1358
1359         * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Don't leak
1360         dash_list.
1361         (gtk_tree_view_set_column_drag_info): Don't crash if the 
1362         column_drop_func says always no.  (#344850, Christian Weiske)
1363         
1364         Make transparent tray icons work.  (#320034, based on a 
1365         patch by Dan Winship)
1366         
1367         * gtk/gtktrayicon-x11.c (gtk_tray_icon_init): Make trayicons
1368         app-paintable and non-double buffered. 
1369
1370         * gtk/gtkrc.c (_gtk_rc_init): Give tray icons a parent-relative
1371         background in the default style.
1372
1373 2006-06-19  Matthias Clasen  <mclasen@redhat.com>
1374
1375         * gtk/updateiconcache.c: Marks strings for translation.  (#314278,
1376         Claudio Saavedra)
1377
1378         * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix): Don't
1379         call g_str_has_prefix on a NULL strung.  (#344897, Tommi Komulainen)
1380
1381         * gtk/gtkfilechooserdefault.c: 
1382         Avoid a near-duplicate string and add some
1383         translator comments.  (#345320, #345321, Hendrik Richter)
1384
1385 2006-06-19  Federico Mena Quintero  <federico@novell.com>
1386
1387         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder)
1388         (gtk_file_chooser_get_current_folder_uri): Clarify the use of
1389         these functions, to avoid the case where a chooser is in
1390         SELECT_FOLDER mode and people mistakenly use _get_current_folder()
1391         to get the selection:  they should use _get_filename() instead.
1392
1393 2006-06-19  Alexander Larsson  <alexl@redhat.com>
1394
1395         * gtk/gtk.symbols:
1396         * gtk/gtklabel.[ch]:
1397         Add gtk_label_set_line_wrap_mode, gtk_label_get_line_wrap_mode, and
1398         a wrap-mode property that lets you set the PangoWrapMode.
1399
1400 2006-06-19  Matthias Clasen  <mclasen@redhat.com>
1401
1402         * gtk/gtk.symbols: Add new functions
1403
1404         * gtk/gtkprinter.h: 
1405         * gtk/gtkprinter.c (gtk_enumerate_printers): New function
1406         to list all printers (#344074, Felipe Heidrich)
1407
1408         * gtk/gtkprinter-private.h: 
1409         * gtk/gtkprinter.c (_gtk_printer_get_options) 
1410
1411         * gtk/gtkprintbackend.h: Add a capabilities argument to the 
1412         printer_get_options method and to the _gtk_printer_get_options
1413         function
1414         
1415         * modules/printbackends/lpr/gtkprintbackendlpr.c 
1416         (lpr_printer_get_options): 
1417         * modules/printbackends/pdf/gtkprintbackendpdf.c 
1418         (pdf_printer_get_options): 
1419         * modules/printbackends/cups/gtkprintbackendcups.c 
1420         (cups_printer_get_options): 
1421         * gtk/gtkprintunixdialog.c (selected_printer_changed): Adjust
1422         callers and implementations.
1423
1424         * gtk/gtkprintjob.h: Add a GENERATE_PS capability. 
1425         * gtk/gtkprintunixdialog.c (is_printer_active): And use it here.
1426
1427 2006-06-18  Matthias Clasen  <mclasen@redhat.com>
1428
1429         * tests/testnouiprint.c (main): Don't open a display connection.
1430
1431         * gtk/gtkprintbackend.c (gtk_print_backend_load_modules): Make
1432         this work without a display connection.  (339702, Alexander Larsson)
1433
1434         * gtk/gtkwindow.c (gtk_window_move): Small doc addition. 
1435         (#345275, Behdad Esfahbod)
1436
1437 2006-06-17  Matthias Clasen  <mclasen@redhat.com>
1438
1439         * modules/printbackends/pdf/gtkprintbackendpdf.c:
1440         * modules/printbackends/lpr/gtkprintbackendlpr.c: Fix a typo:
1441         s/Extention/Extension/. 
1442         
1443         * gtk/gtkprintunixdialog.c: Clean up the handling of 
1444         printer-specific options. There is just one extension point on the
1445         main tab now, and all options in the GtkPrintDialogExtension
1446         group are put there. 
1447
1448         * gtk/gtkprinteroption.h: 
1449         * gtk/gtkprinteroption.c: Add GTK_PRINTER_OPTION_TYPE_ALTERNATIVE
1450         which is semantically the same as PICKONE, but is intended to 
1451         show all options all the time.
1452         
1453         * gtk/gtkprinteroptionwidget.c: Implement ALTERNATIVE as radio
1454         group.
1455
1456 2006-06-16  Matthias Clasen  <mclasen@redhat.com>
1457
1458         * modules/printbackends/cups/gtkprintbackendcups.c:
1459         * modules/printbackends/lpr/gtkprintbackendlpr.c: Use a stock icon
1460         for printers.
1461
1462         * gtk/gtkprintunixdialog.c (add_option_to_table): Don't grow
1463         additional columns.
1464
1465         * gtk/gtkprintbackend.h: Add a GtkPrintSettings parameter to the
1466         printer_create_cairo_surface method.
1467         
1468         * modules/printbackends/pdf/gtkprintbackendpdf.c: 
1469         * modules/printbackends/cups/gtkprintbackendcups.c: 
1470         * modules/printbackends/lpr/gtkprintbackendlpr.c: 
1471         * gtk/gtkprinter.c (_gtk_printer_create_cairo_surface): 
1472         * gtk/gtkprinter-private.h: 
1473         * gtk/gtkprintjob.c (gtk_print_job_get_surface): Adapt all users.
1474
1475         * gtk/gtkentrycompletion.c (gtk_entry_completion_finalize): Don't
1476         leak match data.  (#345107,  Christian Weiske)
1477
1478         * gtk/gtkprintunixdialog.c (populate_dialog): Move the conflict
1479         label out of the button box.  (#339456, Christian Persch)
1480
1481         * gtk/gtksizegroup.c (compute_dimension): Ignore unmapped widgets
1482         when ignore_hidden is TRUE.  (#344707, Christian Persch)
1483
1484         * configure.in: Require cvs glib.
1485
1486         * gtk/gtkprintoperation-unix.c: 
1487         (_gtk_print_operation_platform_backend_create_preview_surface): 
1488         Don't use a temporary directory for preview files, since it
1489         is not clear who cleans it up. Instead, use g_mkstemp() directly
1490         to create a temp pdf file, and make the preview app responsible
1491         for cleaning it up.
1492
1493         * gtk/gtkprintbackend.c: Move the registration of the 
1494         gtk-print-preview-command setting from gtkprintbackend.c to 
1495         gtkprintoperation-unix.c, to make sure it is registered before
1496         the first use. Also, document the two settings.
1497
1498         * tests/print-editor.c: Add a "Preview" menu item.
1499
1500         * gtk/gtkprintoperation-unix.c (handle_print_response): When starting
1501         a preview from the print dialog, set the action to PREVIEW.
1502
1503         * gtk/gtkprintoperation.c: Cosmetic changes.
1504
1505 2006-06-16 Matthias Clasens  <mclasen@redhat.com>
1506
1507         * gtk/gtkprintoperation-unix.c: Mark the preview filename
1508         as translatable (#345093, Christian Persch)
1509
1510 Fri Jun 16 11:49:53 2006  Tim Janik  <timj@imendio.com>
1511
1512         * fixed #337882 by applying patches from Tommi Komulainen:
1513
1514         * gtk/gtkprogressbar.c:
1515         (gtk_progress_bar_paint_activity):
1516         (gtk_progress_bar_get_activity): Move activity bar offset and size
1517         calculations to separate function.
1518         (gtk_progress_bar_paint_text): Allow caller to specify offset for the
1519         prelight part in addition to width.
1520         (gtk_progress_bar_paint): Paint the text also in activity mode, #337882.
1521
1522         * gtk/gtkprogressbar.c: (gtk_progress_bar_paint_text): Paint the
1523         prelighted text on top of the normal rather than side by side, to
1524         simplify painting text in activity mode.
1525
1526 2006-06-16  Matthias Clasen  <mclasen@redhat.com>
1527
1528         * modules/printbackends/cups/gtkprintbackendcups.c: Include
1529         gtkprinter-private.h  (#345038, Christian Persch)
1530  
1531 2006-06-15  Matthias Clasen  <mclasen@redhat.com>
1532
1533         * modules/printbackends/pdf/gtkprintbackendpdf.c: Use the
1534         stock floppy icon.
1535
1536         * gtk/gtkprintoperation-unix.c: Set the GENERATE_PDF capability
1537         when creating a print dialog.  (noted by Yevgen Muntyan)
1538
1539 2006-06-15  Carlos Garnacho  <carlosg@gnome.org>
1540
1541         * gtk/gtknotebook.c (gtk_notebook_motion_notify): use
1542         gdk_window_get_pointer() to get pointer coordinates, but limit its
1543         calls to a maximum of 45 times per second for not being too
1544         CPU/network abusive. stop drag operation if (event->state &
1545         GDK_BUTTON1_MASK) is FALSE to prevent tabs from "adhering" to the
1546         pointer. Fixes bug #341571
1547         (gtk_notebook_calculate_tabs_allocation), (gtk_notebook_button_press):
1548         get rid of the "tab jumps to pointer" sensation when beginning a drag
1549         by using the pointer offset in the tab when the drag begins as an
1550         anchor.
1551         (gtk_notebook_redraw_tabs_union): remove, it wasn't worth the little
1552         performance gain and could draw artifacts under some circumstances.
1553         (gtk_notebook_drag_end): do not reparent the detached tab label until
1554         the animation has ended.
1555
1556 2006-06-15  Bastien Nocera  <hadess@hadess.net>
1557
1558         * configure.in: Update the Cairo requirements (#345008)
1559
1560 2006-06-15  Matthias Clasen  <mclasen@redhat.com>
1561
1562         * gtk/gtkprintoperationpreview.c 
1563         (gtk_print_operation_preview_base_init): Fix errors in the
1564         signal definitions.  (#344891, Marko Anastasov)
1565
1566 2006-06-14  Michael Emmel  <mike.emmel@gmail.com>
1567         
1568         * configure.in: updated mininum  dfb to 0.9.24
1569         * gdk/directfb/gdkdirectfb.h: added more directfb wrapper functions
1570         * gdk/directfb/gdkdrawable-directfb.c: wrapper functions and patch from 
1571          Claudio Ciccani <klan@users.sf.net> to use a subsurface for cairo
1572     * gdk/directfb/gdkvisual-directfb.c: changed initalization sequence
1573     * gdk/directfb/gdkwindow-directfb.c: corrected reparent for toplevels
1574     * gdk/directfb/gdkdisplay-directfb.c: changed initilization sequence
1575         to a more rational order
1576
1577 2006-06-14  Federico Mena Quintero  <federico@novell.com>
1578
1579         * perf/gtkwidgetprofiler.c (gtk_widget_profiler_profile_expose):
1580         New function; it lets us time the expose sequence of a widget.
1581         (create_widget): New helper function.
1582         (map_widget): New helper function.
1583         (profile_boot): Use create_widget() instead of doing it by hand.
1584         (profile_map_expose): Use map_widget() instead of doing it by hand.
1585
1586         * perf/main.c (main): Call gtk_widget_profiler_profile_expose() as well.
1587
1588 2006-06-14  Matthias Clasen  <mclasen@redhat.com>
1589
1590         * gtk/gtkpagesetupunixdialog.c: Use GKeyFile for the custom
1591         filename storage.  (#344867, Christian Persch)
1592
1593         * gtk/gtkselection.c: Call init_atoms before using atoms
1594         in several functions.  (#344743, John Finlay)
1595
1596         * gtk/gtktreeview.c (gtk_tree_view_set_search_position+_func):
1597         Allow NULL to reset to default.  (#344838, John Finlay)
1598
1599         * gtk/gtkprintjob.h: Collect booleans into a bitfield
1600         (#344765, Christian Persch)
1601
1602 2006-06-13  Matthias Clasen  <mclasen@redhat.com>
1603
1604         * configure.in: Bump version
1605
1606 2006-06-12  Matthias Clasen  <mclasen@redhat.com>
1607
1608         * === Released 2.9.3 ===
1609
1610         * NEWS: Updates
1611         
1612         * gtk/gtk.symbols: Add gtk_tree_view_grid_lines_get_type.
1613
1614         * configure.in: Set interface age to 0
1615
1616 2006-06-12  Kristian Rietveld  <kris@imendio.com>
1617
1618         Introduce grid and tree lines in GtkTreeView. (#106406,
1619         Martyn Russell).
1620
1621         * gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
1622
1623         * gtk/gtkenums.h: add GtkTreeViewGridLines.
1624
1625         * gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
1626         (gtk_tree_view_get_grid_lines),
1627         (gtk_tree_view_set_enable_tree_lines),
1628         (gtk_tree_view_get_enable_tree_lines): new API,
1629         (gtk_tree_view_class_init): new properties,
1630         (gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
1631         (gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
1632         (gtk_tree_view_bin_expose): implement.
1633
1634         * gtk/gtk.symbols: update.
1635
1636 2006-06-12  Matthias Clasen  <mclasen@redhat.com>
1637
1638         * gtk/gtkprintunixdialog.c (is_printer_active): Use 
1639         gtk_printer_accepts_ps here.
1640
1641         * modules/printbackends/pdf/gtkprintbackendpdf.c (gtk_print_backend_pdf_init):
1642         Mark the virtual "Print to PDF" printer as not accepting PS.
1643
1644         * gtk/gtk.symbols:
1645         * gtk/gtkprinter.h: 
1646         * gtk/gtkprinter.c: Add two new properties accepts-pdf and
1647         accepts-ps (with getters) to allow learning supported formats.
1648
1649         * gtk/gtkprintjob.h: Add a GTK_PRINT_CAPABILITY_GENERATE_PDF
1650         capability.
1651         
1652         * gtk/gtkprintunixdialog.c: Use it here to hide "Print to PDF" 
1653         from the printer list.  (#339592, Christian Persch)
1654         
1655         * gtk/gtkfilechooserdefault.c: Add support for pasting
1656         filenames into the filechooser.  (#153212, Bastian Nocera)
1657
1658 2006-06-12  Kristian Rietveld  <kris@gtk.org>
1659
1660         * gtk/gtktreemodelfilter.[ch]
1661         (gtk_tree_model_filter_convert_child_iter_to_iter),
1662         (gtk_tree_model_filter_convert_child_path_to_path): report status
1663         in return value instead of spewing assertions.  (#335729, Yevgen
1664         Muntyan).
1665
1666 2006-06-12  Matthias Clasen  <mclasen@redhat.com>
1667
1668         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_finalize): 
1669         Clean up user data.  (#344624, Christian Weiske)
1670
1671         * NEWS: Updates
1672
1673         * gtk/gtkprintjob.c:
1674         * gtk/gtkprintbackend.c: 
1675         * gtk/gtkpagesetupunixdialog.c: 
1676         * gtk/gtkprintunixdialog.c: Cosmetic cleanups.
1677
1678 2006-06-11  Matthias Clasen  <mclasen@redhat.com>
1679
1680         * gtk/gtkassistant.c: Add an accessible implementation in
1681         order to make the buttons visible to a11y tools.  (pointed out
1682         by David Malcolm, #343945)
1683
1684         * gtk/gtkprintoperation-win32.c: Store scale as a percentage.
1685         (#344560, Christian Persch)
1686
1687         * gtk/gtkprogressbar.h: Add a dirty flag to GtkProgressBar.n/ 
1688         * gtk/gtkprogressbar.c: Defer updating of the offscreen
1689         pixmap until expose.  (#344543, Chris Wilson)
1690
1691 2006-06-11  Emmanuele Bassi  <ebassi@gnome.org>
1692
1693         * gtk/gtkrecentchooserdefault.c
1694         (get_is_recent_filtered):
1695         * gtk/gtkrecentchoosermenu.c
1696         (get_is_recent_filtered):
1697         Do not leak the groups string vector. (#344607,
1698         John Finlay)
1699
1700 2006-06-11  Tor Lillqvist  <tml@novell.com>
1701
1702         * gtk/gtkprintoperation-win32.c: Fix MSVC build problem. (#339739,
1703         Kazuki Iwamoto)
1704
1705         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Convert \n
1706         to \r\n also when storing CF_UNICODETEXT (UTF-16) in the
1707         Clipboard. (#344496)
1708
1709 2006-06-10  Matthias Clasen <mclasen@redhat.com>
1710
1711         * gtk/gtkrecentchooserwidget.c 
1712         (gtk_recent_chooser_widget_new_for_manager):
1713         * gtk/gtkrecentchoosermenu.c
1714         (gtk_recent_chooser_menu_new_for_manager): 
1715         Allow NULL to mean the default manager.  (#344530, 
1716         John Finlay)
1717
1718         * gtk/gtkprintoperation-unix.c (page_setup_data_free):
1719         Check if rdata->page_setup is set before unreffing it. 
1720         (#344518, Christian Persch)
1721
1722         * gtk/gtkprintoperation.h: Remove an extra comma.  (#344528, 
1723         Elijah Newren)
1724
1725         * modules/printbackends/gtkprintbackendpdf.c 
1726         (gtk_print_backend_pdf_print_stream): Use the passed in 
1727         destroy notify.  (#344513, Christian Persch)
1728
1729         * configure.in: Require cairo 1.1.7
1730
1731         * gtk/gtkprintoperation.c:
1732         * modules/printbackends/pdf/gtkprintbackendpdf.c: Use
1733         cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
1734         (#344512, Elijah Newren)
1735
1736         * gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
1737         gdk work.  (#344386, Masatake Yamamoto)
1738
1739         * gtk/gtkprintoperation.c: Register create_custom_widget as 
1740         an object-returning signal.  (#344505, Marko Anastasov, patch
1741         by Christian Persch)
1742
1743         * gtk/gtkmarshalers.list: Add the right marshaller.
1744
1745         * gtk/gtk.symbols:
1746         * gtk/gtkprintjob.[hc]: Register GtkPrintCapabilities as a
1747         flags type.  (#344504, Marko Anastasov)
1748
1749 2006-06-09  Benjamin Berg  <benjamin@sipsolutions.net>
1750
1751         * gtk/gtkmenuitem.c: (get_offsets): Take GtkMenu::horizontal-padding
1752         into account when placing submenus (#344290)
1753
1754 2006-06-09  Michael Natterer  <mitch@imendio.com>
1755
1756         * gtk/gtkrange.c: added new style properties "trough-side-details"
1757         and "draw-trough-under-steppers" and fixed the "stepper-spacing"
1758         style property. Fixes bugs #342339 and #342249.
1759
1760         "draw-trough-under-steppers", when set to FALSE, starts trough
1761         drawing next to the steppers instead of drawing the trough "below"
1762         (around) the steppers. If "stepper-spacing" is set to any value
1763         larger than zero, "draw-trough-under-steppers" is set to FALSE
1764         automatically to avoid rendering an area that looks clickable but
1765         isn't.
1766
1767         (gtk_range_calc_layout): honor draw-trough-under-steppers.
1768         Don't reserve stepper-spacing on sides of the range that don't
1769         have steppers.
1770
1771         (gtk_range_expose): changed drawing accordingly. Implement
1772         "trough-side-details" which enables drawing of the upper and lower
1773         parts of the trough with different details. This is useful for
1774         theme engines which want to draw these parts differently.
1775
1776         (coord_to_value): correctly take all rendering options into
1777         account. stepper-spacing > 0 caused jumping and otherwise
1778         strangely behaving ranges before.
1779
1780         (other functions): changed accordingly.
1781
1782 2006-06-09  Tor Lillqvist  <tml@novell.com>
1783
1784         * gdk/win32/gdkdrawable-win32.c (_gdk_win32_drawable_release_dc):
1785         Call ReleaseDC() on DCs acquired with GetDC() (for windows), and
1786         DeleteDC() on DCs acquired with CreateCompatibleDC() (for
1787         bitmaps). According to MSDN, this is the correct thing to do, even
1788         if always using DeleteDC() seems to have worked fine in
1789         practice. (#337491, Chris Wilson)
1790
1791 2006-06-08  Matthias Clasen  <mclasen@redhat.com>
1792
1793         * tests/testprint.c: Update for api changes.
1794
1795         * gtk/gtkprintoperation.c: Fix some copy-and-paste errors,
1796         and rename the pdf-target property to export-filename.
1797
1798         * gtk/gtkfilechooserdefault.c: Turn off profiling code.
1799
1800         * tests/print-editor.c: Update for api changes.
1801
1802         * gtk/gtk.h: Include gtkprintoperationpreview.h
1803
1804         * gtk/gtkprintoperationpreview.c (gtk_print_operation_preview_is_selected): 
1805         Use g_return_val_if_fail (#344288, Kazuki Iwamoto)
1806
1807         * gtk/gtkprintbackend.h: Don't include gtkprinter-private.h here.
1808
1809         * gtk/gtkprintunixdialog.c: 
1810         * gtk/gtkprintoperation-unix.c: 
1811         * gtk/gtkprintjob.c: 
1812         * gtk/gtkprintbackend.c: Instead include it here.
1813
1814         * gtk/gtk.symbols: 
1815         * gtk/gtkprintoperation.h: 
1816         * gtk/gtkprintoperation.c: Rename pdf_target to export_filename.
1817
1818 2006-06-08  Matthias Clasen  <mclasen@redhat.com>
1819
1820         * gtk/gtkprintoperation.h (GtkPrintOperationResult): Get
1821         rid of GTK_PRINT_OPERATION_RESULT_PREVIEW.
1822         
1823         * gtk/gtkprintoperation-unix.c: 
1824         * gtk/gtkprintoperation.c: Update all users.
1825
1826 2006-06-08  Tor Lillqvist  <tml@novell.com>
1827
1828         * gdk/win32/gdkevents-win32.c (gdk_event_translate):
1829         [WM_WINDOWPOSCHANGED] Replace identical code as in
1830         handle_configure_event() with call to that function.
1831         [WM_SIZING] Fix implementation of aspect ratio hints. (#344244)
1832         The hints are for the geometry of the client area, not of the
1833         window including decorations. Improve resizing behaviour in the
1834         presence of aspect hints, to be more in line with typical X window
1835         managers.
1836
1837 2006-06-08  Matthias Clasen  <mclasen@redhat.com>
1838
1839         * gtk/gtktoolbutton.c (gtk_tool_button_style_set): Give
1840         GtkToolButton the same treatment.
1841
1842         * gtk/gtkbutton.c (gtk_button_style_set): Don't call
1843         construct_child here, since some apps make assumptions 
1844         about the lifecycle of the constructed label.  
1845
1846 2006-06-08  Alexander Larsson  <alexl@redhat.com>
1847
1848         * gtk/gtkprintoperation-unix.c (finish_print):
1849         Fix up unix fallout from previous change.
1850
1851 2006-06-08  Alexander Larsson  <alexl@redhat.com>
1852
1853         * gtk/gtkprintoperation-win32.c:
1854         Update windows to build with new APIs and first cut
1855         at preview work.
1856         
1857         * gtk/gtkprintoperation-private.h:
1858         * gtk/gtkprintoperation-unix.c:
1859         * gtk/gtkprintoperation.c
1860         Various updates needed when making the preview work on win32.
1861
1862         * tests/print-editor.c:
1863         Print, don't preview.
1864
1865 2006-06-07  Matthias Clasen  <mclasen@redhat.com>
1866
1867         * gtk/gtkentry.c (popup_targets_received): Make Delete
1868         menuitem insensitive if entry is not editable.  (#344232, 
1869         Milosz Derezynski)
1870
1871         * gtk/gtkprintoperation.c: Add some docs. 
1872
1873         * gtk/gtk.symbols: Add gtk_print_operation_set_allow_async.
1874
1875         * gtk/gtkprintoperation.h: Remove gtk_print_operation_run_async.
1876
1877         * tests/testnotebookdnd.c: Update callers.
1878
1879         * gtk/gtknotebook.h:
1880         * gtk/gtknotebook.c (gtk_notebook_set_window_creation_hook):
1881         Add a destroy notify for the callback data.  (#344209, 
1882         Murray Cumming)
1883
1884 2006-06-07  Jürg Billeter  <j@bitron.ch>
1885
1886         * gtk/Makefile.am: Fix building gtkbuiltincache.h without system GTK+.
1887
1888 2006-06-07  Alexander Larsson  <alexl@redhat.com>
1889
1890         * gtk/gtk.symbols:
1891         * gtk/gtkprintoperation-private.h:
1892         * gtk/gtkprintoperation-unix.c:
1893         * gtk/gtkprintoperation.[ch]:
1894         Clean up APIs:
1895         Make async a setting instead of separate calls.
1896         Combine settings like show_dialog, show_preview and pdf_target into
1897         an action enum that you pass to gtk_print_dialog_run().
1898         
1899         * tests/print-editor.c:
1900         * tests/testnouiprint.c:
1901         * tests/testprint.c:
1902         * demos/gtk-demo/printing.c:
1903         Update to new APIs
1904
1905 2006-06-07  Bastien Nocera  <hadess@hadess.net>
1906
1907         * configure.in: Update the ATK requirements (#344148)
1908
1909 2006-06-07  Matthias Clasen  <mclasen@redhat.com>
1910
1911         * modules/printbackends/cups/gtkprintercups.c 
1912         (gtk_printer_cups_finalize):  Fix a C99ism.
1913         (#344123, Jens Ganseuer)
1914
1915 2006-06-06  Behdad Esfahbod  <behdad@gnome.org>
1916
1917         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Correct
1918         rounding of rect members.  Improved docs.  (#337603)
1919
1920 2006-06-06  Matthias Clasen  <mclasen@redhat.com>
1921
1922         * gtk/gtkicontheme.c: Small optimization
1923
1924 2006-06-05  Matthias Clasen  <mclasen@redhat.com>
1925
1926         * configure.in: Bump version
1927
1928         * === Released 2.9.2 ===
1929
1930         * configure.in: Set interface age to 0.
1931
1932         * NEWS: Updates
1933
1934         * gtk/gtkprintoperationpreview.c: Include gtkalias.h
1935
1936         * gtk/gtk.symbols: Add some forgotten new functions.
1937
1938 2006-06-04  Matthias Clasen  <mclasen@redhat.com>
1939
1940         * gtk/gtknotebook.c (gtk_notebook_calculate_shown_tabs):
1941         (gtk_notebook_calc_tabs): Fix borderline cases in tab
1942         visibility calculation.  (#168105, Carlos Garnacho Parro)
1943
1944         * gdk/x11/gdkfont-x11.c (_gdk_font_destroy): Remove the right
1945         XID from the xid table.  (#341327, Sampo Savolainen, Tim Janik)
1946
1947 2006-06-04  Behdad Esfahbod  <behdad@gnome.org>
1948
1949         * gtk/gtkprintoperationpreview.h: Add missing G_END_DECLS (#343838)
1950
1951 2006-06-03  Richard Hult  <richard@imendio.com>                                 
1952
1953         * gdk/quartz/Makefile.am:                                               
1954         * gdk/quartz/gdkspawn-quartz.c: Add spawn functions, copied from the
1955         win32 backend.
1956
1957 2006-06-02  Matthias Clasen  <mclasen@redhat.com>
1958         
1959         * gtk/gtkprintoperation-private.h:
1960         * gtk/gtkprintoperation.h:
1961         * gtk/gtkprintoperation.c: Add a show-preview property. 
1962
1963         * gtk/gtkprintoperation-unix.c: Implement it here.
1964
1965         * gtk/gtkprintoperation-unix.c: Cleanups
1966
1967 2006-06-02  Kristian Rietveld  <kris@imendio.com>
1968
1969         Rubber banding for GtkTreeView, #80127.  Uses same method as
1970         GtkIconView.
1971
1972         * gtk/gtktreeview.c (gtk_tree_view_class_init),
1973         (gtk_tree_view_init), (gtk_tree_view_get_property),
1974         (gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
1975         (gtk_tree_view_get_rubber_banding): add property,
1976         (gtk_tree_view_button_press): start rubber banding if enabled and
1977         press is on a non-selected node,
1978         (gtk_tree_view_button_release): stop rubber banding,
1979         (gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
1980         the rubber band,
1981         (gtk_tree_view_bin_expose): draw rubber band if active,
1982         (gtk_tree_view_stop_rubberband),
1983         (gtk_tree_view_update_rubber_band_selection_range),
1984         (gtk_tree_view_update_rubber_band_selection),
1985         (gtk_tree_view_update_rubber_band),
1986         (gtk_tree_view_paint_rubber_band): new functions.
1987
1988         * gtk/gtktreeview.h: add new set/get function for rubber banding
1989         property.
1990
1991         * gtk/gtktreeprivate.h: add a bunch of new private fields.
1992
1993 2006-06-02  Kristian Rietveld  <kris@imendio.com>
1994
1995         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): revert fix of
1996         #164884 because it's not a problem in gtk+ but in applications and
1997         it breaks starting drags from the edge of a row.
1998
1999 2006-06-02  Kristian Rietveld  <kris@imendio.com>
2000
2001         Separate sensitive/selectable properties.
2002
2003         * gtk/gtktreeselection.c (tree_column_is_sensitive): remove,
2004         (_gtk_tree_selection_row_is_selectable): remove checks to see if at
2005         least one column is sensitive,
2006         (gtk_tree_selection_real_select_node): remove code which enables
2007         insensitive rows to always be unselected.
2008
2009         * gtk/gtktreeview.c (gtk_tree_view_row_changed): remove code
2010         that unselects a node if it just became insensitive.
2011
2012         * gtk/gtkcombobox.c (gtkcombo_box_list_select_func): new function,
2013         based on the at least one column sensitive check from
2014         _gtk_tree_selection_row_is_selectable(),
2015         (gtk_combo_box_list_setup): set selection function on tree selection.
2016
2017 2006-06-02  Kristian Rietveld  <kris@imendio.com>
2018
2019         * gtk/gtktreemodelfilter.c
2020         (gtk_tree_model_filter_convert_child_path_to_path): need to use
2021         gtk_tree_model_filter_get_iter_full() since the path returned
2022         by gtk_real_tree_model_filter_convert_child_path_to_path() includes
2023         invisible nodes.
2024
2025 2006-06-02  Matthias Clasen  <mclasen@redhat.com>
2026
2027         * gtk/gtkstatusicon.c (gtk_status_icon_get_geometry): Allow
2028         to return partial information.  (#343625, Christian Persch)
2029
2030         * gtk/gtkwindow.c (gtk_window_key_release_event): Chain up
2031         to key_release, not to key_press.  (#343677, Tommi Komulainen)
2032
2033 2006-06-02  Alexander Larsson  <alexl@redhat.com>
2034
2035         * gtk/Makefile.am:
2036         Add gtkprintoperationpreview.[ch]
2037         Set default preview command. Hardcoded for now.
2038         
2039         * gtk/gtkmarshalers.list:
2040         Add BOOLEAN:OBJECT,OBJECT,OBJECT
2041         
2042         * gtk/gtkprintbackend.c:
2043         Add preview command property.
2044         
2045         * gtk/gtkprintcontext.[ch]:
2046         Make less dependent on PrintOperation for output settings
2047         Externally set cairo_t and dpi. Resettable.
2048         Create fontmap without metrics hinting (so that print preview
2049         text layout doesn't depend on zoom level).
2050         
2051         * gtk/gtkprintoperation-private.h:
2052         * gtk/gtkprintoperation-unix.c: 
2053         * gtk/gtkprintoperation.[ch]:
2054         Initial work on print preview API and default implementation
2055         using an external preview app.
2056         
2057         * gtk/gtkprintoperation-win32.c:
2058         Some needed updates. Not done, needs more work.
2059         
2060         * gtk/gtkprintoperationpreview.[ch]:
2061         New interface used in print preview api.
2062         
2063         * gtk/gtkprintunixdialog.c:
2064         Add print preview dialog.
2065         
2066         * tests/print-editor.c:
2067         Test using an custom print preview widget.
2068
2069 2006-06-02  Emmanuele Bassi  <ebassi@gnome.org>
2070
2071         * gtk/gtkrecentmanager.c
2072         (gtk_recent_info_get_application_info): Fix a typo (spotted by
2073         Paolo Borelli and coverity).
2074
2075 2006-06-01  Matthias Clasen  <mclasen@redhat.com>
2076         
2077         * tests/testnotebookdnd.c: Small tweaks to test more things.
2078
2079         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Add
2080         an icon-spacing style property for the same purpose.
2081
2082         * gtk/gtkbutton.c (gtk_button_class_init):  Add an image-spacing
2083         style property that allows to adjust the spacing between image
2084         and label in button.  (#320431, James Moger)
2085
2086         * gtk/gtkprintoperation-private.h: 
2087         * gtk/gtkprintoperation.c: 
2088         * gtk/gtkprintoperation-unix.c: Move the 
2089         PrintPagesData.wait flag to GtkPrintOperationPrivate.is_sync.
2090         Also use a recursive mainloop instead of manually looping.
2091         
2092         * gtk/gtkprintoperation.c: Add some examples to the docs.
2093
2094         * gtk/gtkprintbackend.c (gtk_print_backend_class_init): 
2095         Intern signal names.
2096
2097         * gtk/gtkprintunixdialog.c: 
2098         * gtk/gtkprintoperation-unix.c: Use canonical signal names.
2099
2100 2006-05-31  Matthias Clasen  <mclasen@redhat.com>
2101
2102         * gtk/gtkpagesetupunixdialog.c: Add docs, cleanup some
2103         formatting.
2104
2105         * gtk/gtkprintoperation.c (print_pages_idle): Don't
2106         treat manual_scale like a percentage, its a factor.
2107
2108         * gtk/gtktreeview.c (gtk_tree_view_class_init): Document
2109         signals.  (#302556, Stefan Kost)
2110
2111 2006-05-31  Alexander Larsson  <alexl@redhat.com>
2112
2113         * gtk/gtk.symbols:
2114         * demos/gtk-demo/printing.c:
2115         * tests/print-editor.c:
2116         * tests/testnouiprint.c:
2117         * tests/testprint.c:
2118         * tests/testprintfileoperation.c:
2119         Further updates from the GtkPrintContext functions rename.
2120         
2121         * modules/printbackends/cups/gtkcupsutils.c:
2122         Always set requesting-user-name when doing cups requests.
2123
2124 2006-05-31  Alexander Larsson  <alexl@redhat.com>
2125
2126         * gtk/gtkpagesetupunixdialog.c:
2127         Remove request_details_tag with g_signal_handler_disconnect,
2128         not g_source_remove. (#343475)
2129
2130 2006-05-31  Matthias Clasen  <mclasen@redhat.com>
2131
2132         * gtk/gtkprintcontext.h: 
2133         * gtk/gtkprintcontext.c: 
2134         * gtk/gtkprintoperation.c: 
2135         * gtk/gtkprintoperation-unix.c: Change some function names to be 
2136         longer and better. 
2137         gtk_print_context_get_cairo -> gtk_print_context_get_cairo_context
2138         gtk_print_context_get_fontmap -> gtk_print_context_get_pango_fontmap
2139         gtk_print_context_create_context -> gtk_print_context_create_pango_context
2140         gtk_print_context_create_layout -> gtk_print_context_create_pango_layout
2141         Update all callers.
2142
2143         * gtk/gtkpagesetupunixdialog.c: Don't run the custom page
2144         size dialog.  (#340444, Christian Persch)
2145
2146         * demos/gtk-demo/main.c (main): Display comments in friendly
2147         DodgerBlue instead of scary red.  (#343444, Carol Spears)
2148
2149         * gtk/gtkfontbutton.c: 
2150         * gtk/gtkcolorbutton.c: Clarify the docs of the color-set and
2151         font-set signals.  (#343438, Olexiy Avramchenko)
2152
2153 2006-05-30  Matthias Clasen  <mclasen@redhat.com>
2154
2155         * gtk/gtkmain.c (gtk_grab_notify_foreach): Don't skip internal
2156         children when emitting grab-notify.  (#343425, Markku Vire)
2157
2158         * gdk/gdkpixmap.c: 
2159         * gdk/gdkwindow.c: Don't use G_DEFINE_TYPE, since the instance
2160         struct name does not match the type name.  (#343453, Ed Catmur)
2161
2162         * gtk/gtk.symbols: 
2163         * gtk/gtkbutton.h: 
2164         * gtk/gtkbutton.c: Add a GtkButton::image-position property
2165         with getter and setter, to allow constructing buttons with
2166         the image stacked on top of the label.  (#342930, Johan Dahlin)
2167
2168 2006-05-30  Johan Dahlin  <jdahlin@async.com.br>
2169
2170    * gtk/gtk.symbols:
2171    * gtk/gtkbutton.c: (gtk_button_class_init), (gtk_button_init),
2172    (gtk_button_set_property), (gtk_button_get_property),
2173    (gtk_button_construct_child), (gtk_button_set_image_spacing),
2174    (gtk_button_get_image_spacing):
2175    * gtk/gtkbutton.h:
2176    * gtk/gtktoolbutton.c: (gtk_tool_button_class_init),
2177    (gtk_tool_button_construct_contents),
2178    (gtk_tool_button_set_property), (gtk_tool_button_get_property),
2179    (_gtk_tool_button_get_button), (gtk_tool_button_set_icon_spacing),
2180    (gtk_tool_button_get_icon_spacing):
2181    * gtk/gtktoolbutton.h:
2182    Add GtkButton:image-spacing and GtkToolButton::icon-spacing.
2183    (#320431, James Moger)
2184
2185 2006-05-30  Kristian Rietveld  <kris@gtk.org>
2186
2187         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button): only
2188         check sort column id if connected to sortable model.
2189
2190 2006-05-30  Behdad Esfahbod  <behdad@gnome.org>
2191
2192         * gdk/gdkpango.c (draw_error_underline): Fix offset to center the
2193         underline in requested rectangle. (Ported from pango fix.)
2194
2195 2006-05-29  Michael Natterer  <mitch@imendio.com>
2196
2197         * gtk/gtkdialog.h: removed forgotten declaration of
2198         _gtk_dialog_get_response_for_widget(), the function has been made
2199         public a long time ago.
2200
2201 2006-05-29  Michael Natterer  <mitch@imendio.com>
2202
2203         * gtk/gtktextview.c (gtk_text_view_target_list_notify): applied
2204         patch from Chris Wilson which replaces a useless loop with
2205         built-in access to free'd memory by a simple integer comparison.
2206         Fixes bug #342894.
2207
2208 2006-05-29  Kristian Rietveld  <kris@gtk.org>
2209
2210         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): select
2211         the current focus row if nothing is selected and ctrl is not pressed.
2212         (Fixes #324480, Murray Cumming/Srirama Sharma).
2213
2214 2006-05-28  Kristian Rietveld  <kris@gtk.org>
2215
2216         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_focus): refactor
2217         to work correctly in RTL mode.
2218
2219         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): make
2220         cursor movement to left/right work correctly in RTL mode.
2221
2222 2006-05-28  Behdad Esfahbod  <behdad@gnome.org>
2223
2224         * gdk/gdkrectangle.c (gdk_rectangle_union, gdk_rectangle_intersect):
2225         Note in docs that @dest can be the same as @src1 or @src2. (#343233,
2226         Christian Persch)
2227
2228 2006-05-28  Kristian Rietveld  <kris@gtk.org>
2229
2230         * gtk/gtkstyle.c (gtk_default_draw_flat_box): handle
2231         cell_even_ruled_sorted and cell_odd_ruled_sorted for the selected
2232         state.
2233
2234 2006-05-28  Kristian Rietveld  <kris@gtk.org>
2235
2236         * gtk/gtkenums.h: add GTK_ARROW_NONE.
2237
2238         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_column): always
2239         "show" the arrow if sort_column_id >= 0, only set arrow type if
2240         this column is the column we are currently sorting on. (#331338).
2241
2242 2006-05-27  Matthias Clasen  <mclasen@redhat.com>
2243
2244         * gtk/gtkrecentchoosermenu.c: Avoid trivial differences
2245         in translated strings.  (#343088, Clytie Siddall)
2246
2247 2006-05-28  Kristian Rietveld  <kris@gtk.org>
2248
2249         * gtk/gtktreeview.c (gtk_tree_view_build_tree): emit test_expand_row
2250         and test return value before expanding a branch. (Fixes #321523,
2251         reported by Daniel Lindenaar).
2252
2253 2006-05-28  Kristian Rietveld  <kris@gtk.org>
2254
2255         * gtk/gtktreeview.c (gtk_tree_view_insert_column): set the sizing
2256         type of the new column to FIXED,
2257         (gtk_tree_view_insert_column_with_attributes): likewise. (#341898,
2258         Dan Winship).
2259
2260 2006-05-27  Kristian Rietveld  <kris@gtk.org>
2261
2262         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_remove_node):
2263         only unref if elt->ref_count > 0,
2264         (gtk_tree_model_filter_row_deleted): likewise. (Fixes #340839,
2265         reported by Yevgen Muntyan).
2266
2267 2006-05-27  Kristian Rietveld  <kris@gtk.org>
2268
2269         Small refactoring. (#340428, Paolo Borelli).
2270
2271         * gtk/gtkliststore.c (gtk_list_store_set_valist_internal),
2272         (gtk_list_store_insert_with_valuesv): refactor code to determine
2273         iter compare func into gtk_list_store_get_compare_func().
2274
2275         * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal),
2276         (gtk_tree_store_insert_with_valuesv): likewise.
2277
2278 2006-05-27  Kristian Rietveld  <kris@gtk.org>
2279
2280         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_arrow): really fix
2281         #333284.
2282
2283 2006-05-27  Kristian Rietveld  <kris@gtk.org>
2284
2285         Editable cell window placement and RTL fixes.
2286
2287         * gtk/gtktreeview.c (gtk_tree_view_button_press),
2288         (gtk_tree_view_bin_expose), (gtk_tree_view_get_cell_area),
2289         (gtk_tree_view_create_row_drag_icon): Only add indentation to x
2290         if !rtl,
2291         (gtk_tree_view_create_row_drag_icon): Iterate over columns in reverse
2292         direction if in rtl mode.
2293
2294         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2295         horizontal_separator is not part of the real background area width,
2296         add 2 * focus_line_width to real_cell_area.x and not
2297         real_background_area.x, fix up event coordinates check in the
2298         PACK_END loop, also set depth to zero at the end of the PACK_END
2299         loop,
2300         (_gtk_tree_view_get_neighbor_sizes): also add column_spacing for each
2301         visible cell.
2302
2303 2006-05-26  Matthias Clasen  <mclasen@redhat.com>
2304
2305         * gtk/stock-icons/24/gtk-orientation-landscape.png:
2306         * gtk/stock-icons/24/gtk-orientation-portrait.png:
2307         * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
2308         * gtk/stock-icons/24/gtk-orientation-reverse-portrait.png:
2309         Cleaned up icons by Diana Fong.
2310
2311 2006-05-26  Kristian Rietveld  <kris@gtk.org>
2312
2313         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_arrow): queue a redraw
2314         for the full width of the row, not just the width we got allocated.
2315         (Fixes #333284, reported by Benjamin Berg).
2316
2317 2006-05-26  Kristian Rietveld  <kris@gtk.org>
2318
2319         * gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): set dy to
2320         page_size + height in the event dy + page_size is about to become
2321         bigger than height.
2322
2323 2006-05-25  Matthias Clasen  <mclasen@redhat.com>
2324
2325         * gtk/gtk.symbols:
2326         * gtk/gtkstatusicon.h:
2327         * gtk/gtkstatusicon.c (gtk_status_icon_get_geometry):
2328         New function that can be used to e.g. position 
2329         notification bubbles wrt to the status icon.  
2330         (#341450, Christian Persch, Havoc Pennington)
2331
2332 2006-05-25  Matthias Clasen  <mclasen@redhat.com>
2333
2334         Make GTK+ work as an untrusted X client. (#136571,
2335         Ed Catmur)
2336
2337         * gdk/x11/gdkdisplay-x11.h:
2338         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): When 
2339         opening a display, determine if we are untrusted.
2340         
2341         * gdk/x11/gdkdisplay-x11.c (gdk_notify_startup_complete): 
2342         Just bail out when we are untrusted.
2343
2344         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Work around
2345         a bug in the Xorg XSECURITY implementation by coercing
2346         toplevel InputOnly windows to InputOutput.
2347
2348         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_get_pointer): 
2349         (_gdk_windowing_window_get_pointer): 
2350         When untrusted, call XQueryPointer on an auxiliary
2351         window, not on the root window.
2352         
2353         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer): 
2354         If untrusted, loop through all GDK-aware toplevels on all
2355         screens in the hope we hit one containing the pointer; 
2356         then use that as the basis of the current XQueryPointer 
2357         child recursion.
2358
2359         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
2360         (gdk_keyboard_grab): Ignore failed grabs when untrusted.
2361
2362         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Only
2363         cache our own toplevels when untrusted.
2364
2365         * gdk/x11/gdkdnd-x11.c (motif_send_enter): Don't try
2366         to do Motif DND as untrusted client.
2367
2368         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window): 
2369         (gdk_x11_screen_get_window_manager_name): 
2370         (gdk_x11_screen_supports_net_wm_hint): 
2371         Bail out early if untrusted.
2372         
2373         * gtk/gtkcolorsel.c (grab_color_at_mouse): If getting 
2374         the color under the pointer by screenshooting the root 
2375         window fails, it tries to get the color from our own 
2376         window.
2377
2378         * gtk/gtkcolorsel.c (get_screen_color): Make the
2379         dropper_grab_widget a child of the dialog, not a 
2380         toplevel.
2381
2382         * gtk/gtkinvisible.c (gtk_invisible_realize): Respect
2383         a parent window that has been set before realizing.
2384
2385         * gtk/gtkwidget.c (gtk_widget_get_parent_window): 
2386         Always return a previously set parent window.
2387         
2388 2006-05-24  Matthias Clasen  <mclasen@redhat.com>
2389
2390         * gtk/gtkfontbutton.c (gtk_font_button_clicked): 
2391         * gtk/gtkcolorbutton.c (gtk_color_button_clicked): 
2392         Fix the handling of modality by copying what
2393         GtkFileChooserButton does.  (#342754, Yevgen Muntyan)
2394         
2395         * gtk/gtkprintunixdialog.c (create_main_page): Make
2396         the range entry insensitive if another range option
2397         is selected.  (#342783, Caolan McNamara)
2398         (update_dialog_from_capabilities): Make the collate
2399         check button insensitive unless multiple copies are
2400         printed  (#342781, Caolan McNamara)
2401
2402         * gtk/gtkwidget.c: Remove style properties when a widget
2403         class gets finalized, to make style properties work in
2404         dynamic types.  (#342513, Christian Persch)
2405
2406 2006-05-24  Henrique Romano  <henrique@async.com.br>
2407
2408         * gtk/gtkcellview.c: (gtk_cell_view_class_init),
2409         (gtk_cell_view_get_property), (gtk_cell_view_set_property):
2410         Add model property for GtkCellView, part of #172535.
2411
2412 2006-05-24  Matthias Clasen  <mclasen@redhat.com>
2413
2414         * gtk/gtkprintoperation.h: 
2415         * gtk/gtkprintoperation-private.h: 
2416         * gtk/gtk.symbols:
2417         * gtk/gtkprintoperation.c: Add a custom-tab-label property.
2418         
2419         * gtk/gtkprintoperation-unix.c (get_print_dialog): Use it
2420         here.  (#342752, Yevgen Muntyan)
2421
2422 2006-05-24  Alexander Larsson  <alexl@redhat.com>
2423
2424         * gtk/gtk.symbols:
2425         * gtk/gtkprintunixdialog.[ch]:
2426         Add gtk_print_unix_dialog_set_manual_capabilities that controls
2427         what widgets to enable in the dialog depending on the apps
2428         capabilities.
2429         
2430         * gtk/gtkprintbackend.[ch]:
2431         * gtk/gtkprinter-private.h:
2432         * gtk/gtkprinter.c:
2433         * gtk/gtkprintjob.h:
2434         Add printer_get_capabilities to backend.
2435         Move some fallback calls to the printbackend base class.
2436         
2437         * gtk/gtkprintoperation-unix.c:
2438         Set manual capabilities
2439         
2440         * modules/printbackends/cups/gtkprintbackendcups.c:
2441         Implement get_capabilities
2442         
2443         * modules/printbackends/lpr/gtkprintbackendlpr.c:
2444         * modules/printbackends/pdf/gtkprintbackendpdf.c:
2445         Move some methods to baseclass.
2446
2447 2006-05-23  Matthias Clasen  <mclasen@redhat.com>
2448
2449         * gtk/gtkprintoperation.c (print_pages): Do the begin-print
2450         emission in the idle, so that the print dialog goes away
2451         before begin-print.
2452
2453 2006-05-23  Matthias Clasen  <mclasen@redhat.com>
2454
2455         * gtk/gtk.symbols: 
2456         * gtk/gtkprintoperation.h: 
2457         * gtk/gtkprintoperation.c: Add a boolean show-progress  
2458         property, and show a progress dialog if it is set to TRUE.
2459
2460         * gtk/gtkprintoperation.c (pdf_end_run): 
2461         * gtk/gtkprintoperation-win32.c (win32_end_run): 
2462         * gtk/gtkprintoperation-unix.c (unix_end_run): 
2463         * gtk/gtkprintoperation-private.h: Add a cancelled
2464         parameter to end_run, and call it even if the print
2465         operation was cancelled.
2466
2467 2006-05-23  Alexander Larsson  <alexl@redhat.com>
2468
2469         * gtk/gtkprinteroptionwidget.c (filesave_changed_cb):
2470         Allow absolute filenames in filename entry.
2471         Patch from Yevgen Muntyan (#341679)
2472
2473 2006-05-23  Alexander Larsson  <alexl@redhat.com>
2474
2475         * gtk/gtk.symbols:
2476         * gtk/gtkprintunixdialog.[ch]:
2477         Add gtk_print_unix_dialog_add_custom_tab
2478         
2479         * gtk/gtkprintoperation-unix.c:
2480         Implement custom widgets for unix.
2481         Fix some warnings by including cairo-ps/pdf.h
2482         
2483         * gtk/gtkprintoperation-win32.c:
2484         Mark string for translation.
2485
2486 2006-05-22  Matthias Clasen  <mclasen@redhat.com>
2487
2488         * gtk/gtkprintoperation.c (gtk_print_operation_class_init): 
2489         Fix docs.
2490
2491 2006-05-22  Alexander Larsson  <alexl@redhat.com>
2492
2493         * gtk/gtkmain.c:
2494         Make sure grab-notify is emitted on toplevels as well as 
2495         child widgets.
2496
2497         * gtk/Makefile.am:
2498         * gtk/gtkwin32embedwidget.[ch]
2499         Add new widget used for win32 port to embed gtk+
2500         widgets in windows dialog.
2501
2502         * gtk/gtkmarshalers.list:
2503         Add POINTER:VOID
2504
2505         * gtk/gtkprintoperation-private.h:
2506         * gtk/gtkprintoperation.[ch]:
2507         Generic support for custom widgets in print dialog.
2508
2509         * gtk/gtkprintoperation-win32.c:
2510         Implement custom widget support for win32.
2511
2512         * tests/print-editor.c:
2513         Allow setting of font using custom widgets in the print dialog.
2514
2515 2006-05-22  Behdad Esfahbod  <behdad@gnome.org>
2516
2517         Rollback the following changes, to fix it the proper way in Pango:
2518
2519         * gdk/gdkinternals.h:
2520         * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
2521         (update_fontmap_resolution), (gdk_screen_set_resolution):  Add new
2522         function _gdk_screen_get_font_map() and have one fontmap per screen,
2523         with the correct resolution set on it.
2524
2525         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
2526         _gdk_screen_get_font_map() instead of setting resolution on the
2527         PangoCairoContext.  (#342529)
2528
2529 2006-05-22  Emmanuele Bassi  <ebassi@gnome.org>
2530
2531         * gtk/gtkrecentmanager.h:
2532         * gtk/gtkrecentmanager.c
2533         (gtk_recent_info_get_application_info): Don't mask "time" with
2534         the "time" argument.
2535
2536 2006-05-22  Matthias Clasen  <mclasen@redhat.com>
2537
2538         * gdk/gdkcolor.h: gdk_color_parse returns boolean, not int.
2539         (#342569, Masatake Yamato)
2540
2541         * gtk/gtkprintunixdialog.c (dialog_set_scale): Don't return
2542         a value from a void function.
2543
2544         * gtk/gtkprinter.c (_gtk_printer_prepare_for_print) 
2545         (_gtk_printer_get_settings_from_options) 
2546         (_gtk_printer_request_details): Don't return values from void
2547         functions.
2548
2549         * gtk/gtkrecentchooserutils.c (delegate_unselect_uri): Don't
2550         return a value from a void function.
2551
2552         * gtk/gtkfilesystem.c (gtk_file_system_cancel_operation): Don't
2553         return a value from a void function.  Also, don't put 
2554         semicolons behind G_DEFINE_TYPE. (#342543)
2555
2556         * gtk/gtkwidget.c (gtk_widget_class_init): Add docs
2557         for new style properties.  (#342535, Mart Raudsepp)
2558
2559         * gdk/x11/gdkscreen-x11.c: Remove _gdk_x11_screen_request_cm_notification
2560
2561         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Directly call 
2562         gdk_display_request_selection_notification. 
2563
2564         * gdk/x11/gdkdisplay-x11.c: Several cleanups.
2565         
2566 2006-05-21  Behdad Esfahbod  <behdad@gnome.org>
2567
2568         * gdk/gdkinternals.h:
2569         * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
2570         (update_fontmap_resolution), (gdk_screen_set_resolution):  Add new
2571         function _gdk_screen_get_font_map() and have one fontmap per screen,
2572         with the correct resolution set on it.
2573
2574         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
2575         _gdk_screen_get_font_map() instead of setting resolution on the
2576         PangoCairoContext.  (#342529)
2577
2578 2006-05-22  Tor Lillqvist  <tml@novell.com>
2579
2580         * gtk/gtkfilesystemwin32.c: Make it compile again. Doesn't work
2581         properly yet, though. There is lots of commonality between this
2582         file and gtkfilesystemunix.c that should really be factored out.
2583
2584 2006-05-19  Matthias Clasen  <mclasen@redhat.com>
2585
2586         * gtk/gtkpaned.c (gtk_paned_compute_position): Avoid warnings
2587         if a child is NULL.  (#342007, Patrick Monnerat)
2588         
2589         * gtk/gtk.symbols: 
2590         * gtk/gtkprintoperation.h: 
2591         * gtk/gtkprintoperation.c (gtk_print_operation_cancel): New function
2592         to cancel a running print operation.
2593
2594         * gtk/gtkprintoperation-private.h (struct _GtkPrintOperationPrivate): 
2595         Add a cancelled flag, use g types, use bitfields.
2596
2597         * gtk/gtkprintoperation.c (print_pages): Clean up after the idle
2598         in the synchronous case.
2599
2600         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Fix a 
2601         boundary case in scrolling where a tab was not shown.  (#168105,
2602         Hiroyuki Ikezoe, patch by Kouhei Sutou)
2603
2604 2006-05-19  Damon Chaplin  <damon@gnome.org>
2605
2606         * gtk/gtkfontsel.c (gtk_font_selection_init): use
2607         atk_relation_add_target() to add the targets, since it sets up weak
2608         references to avoid crashes. (#305530)
2609
2610 2006-05-18  Matthias Clasen  <mclasen@redhat.com>
2611
2612         * gtk/gtkprintoperation.h: 
2613         * gtk/gtkprintoperation.c: Add a GtkPrintOperation:: paginate signal 
2614         that gets emitted to paginate a document in chunks.
2615
2616         * gtk/gtkprintoperation-private.h: 
2617         * gtk/gtkmarshalers.list: Add necessary glue.
2618
2619         * gtk/gtkcalendar.c (gtk_calendar_drag_motion): Don't produce
2620         a stuck drag if shift is held.  (#341734, Sebastien Bacher) 
2621
2622         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display): 
2623         Always set protocol.  (#342003, Tommi Komulainen)
2624
2625         * gtk/gtkimage.c (icon_theme_changed): Only unref the pixbuf
2626         if the image has the appropriate storage type.  (#342096, Tommi
2627         Komulainen)
2628
2629         * configure.in: Actually require GLib 2.11
2630         
2631         * gtk/gtkentry.c (gtk_entry_drag_data_received): Make drops
2632         end up at the right spot.  (#342072,  Yevgen Muntyan)
2633
2634 2006-05-18  Michael Natterer  <mitch@imendio.com>
2635
2636         * gtk/gtkrange.c: canonicalize the name of the "activate-slider"
2637         style property and use GTK_PARAM_READABLE instead of
2638         G_PARAM_READABLE. Moved one "activate_slider" variable to the
2639         local scope its used in.
2640
2641 2006-06-18  Michael Emmel  <mike.emmel@gmail.com>
2642
2643         * gdk/directfb/gdkscreen-directfb.c: 
2644         * added gdk_screen_is_composited to compile
2645         * Bug 342091
2646
2647 2006-05-17  Alexander Larsson  <alexl@redhat.com>
2648
2649         * gtk/gtkprintoperation-win32.c:
2650         Update to changed APIs.
2651
2652 2006-05-16  Matthias Clasen  <mclasen@redhat.com>
2653
2654         * configure.in: Bump version
2655
2656         * === Released 2.9.1 ====
2657
2658         * configure.in: Reset interface age
2659         
2660         * NEWS: Updates
2661
2662 Tue May 16 12:36:25 2006  Søren Sandmann  <sandmann@redhat.com>
2663
2664         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Move getting the
2665         property out of the loop, and rename the variable 'max_expand'.
2666
2667         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Fix the decription
2668         for the max-child-expand property. 
2669
2670 2006-05-16  Matthias Clasen  <mclasen@redhat.com>
2671
2672         * gtk/gtkprinter.c (gtk_printer_class_init): 
2673         * gtk/gtkprintjob.c (gtk_print_job_class_init): 
2674         * gtk/gtkprintoperation.c (gtk_print_operation_class_init): 
2675         Cosmetic cleanups.
2676
2677         * gtk/gtkpagesetupunixdialog.c (populate_dialog): Add labels
2678         for page orientations, also add the fourth one.  (#339589)
2679
2680         * gtk/stock-icons/24/gtk-orientation-reverse-portrait.png: New
2681         icon.
2682         
2683         * gtk/Makefile.am: Add it here.
2684         
2685         * gtk/gtkstock.[hc]: Add stock items for the page orientations.
2686
2687 2006-05-16  Michael Natterer  <mitch@imendio.com>
2688
2689         * gtk/gtktoolbar.c: added "max-child-expand" style property which
2690         limits the space taken by expanding tool items. Fixes bug #340722.
2691
2692 2006-05-16  Kristian Rietveld  <kris@imendio.com>
2693
2694         * gtk/gtkpathbar.c (gtk_path_bar_dispose): cancel all pending handles
2695         in the button list. (Fixes #341035, reported by William Jon McCann).
2696
2697 2006-05-16  Kristian Rietveld  <kris@imendio.com>
2698
2699         * gtk/gtkfilechooserdefault.c
2700         (show_and_select_paths_finished_loading): put the newly selected
2701         row(s) the in the middle of the view,
2702         (update_current_folder_get_info_cb),
2703         (gtk_file_chooser_default_update_current_folder): make sure reload
2704         state is set to RELOAD_HAS_FOLDER while loading the new folder,
2705         so _map() won't start loading the current working directory. (Fixes
2706         #341028, reported by Michael Natterer).
2707
2708 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
2709
2710         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix
2711         an RTL problem with toggles in expander columns. 
2712         (#341896, Roozbeh Pournader) 
2713
2714 Mon May 15 15:12:05 2006  Søren Sandmann  <sandmann@redhat.com>
2715
2716         * gtk/gtklayout.c (gtk_layout_realize),
2717         * gtk/gtkiconview.c (gtk_icon_view_realize),
2718         * gtk/gtktreeview.c (gtk_tree_view_realize): Set the background of
2719         the clip windows to NULL, since they are generally invisible and
2720         don't have EXPOSURE set, which means they temp-unvlicker code
2721         doesn't apply to them.
2722
2723         * gdk/x11/gdkgeometry-x11.c (_gdk_window_move_resize_child): Unset
2724         the background of the parent window during resizing. Invalidate
2725         the uncoered area of the parent window. Bug 341332.
2726
2727 2006-05-15  Richard Hult  <richard@imendio.com>
2728
2729         * gdk/quartz/gdkevents-quartz.c (_gdk_events_init): Remove obsolete 
2730         comment.
2731         (poll_func): Remove assert and add a comment on how to fix properly.
2732         (gdk_events_pending): Implement.
2733
2734 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
2735
2736         * gtk/gtkprintoperation.c: Reverse the order of
2737         ranges when printing in reverse.  (#341578)
2738
2739 2006-05-15  Alexander Larsson  <alexl@redhat.com>
2740         
2741         * gtk/gtkprintjob.[ch]:
2742         Added gtk_print_job_set/get_track_print_status
2743
2744         * gtk/gtkprintoperation-private.h:
2745         * gtk/gtkprintoperation.[ch]:
2746         Add gtk_print_operation_set_track_print_status.
2747         
2748         * gtk/gtkprintoperation-unix.c:
2749         Implement track_print_status on unix
2750         
2751         * gtk/gtkprintoperation-win32.c:
2752         Implement track_print_status on win32
2753         
2754         * gtk/gtk.symbols:
2755         Added symbols
2756         
2757         * modules/printbackends/cups/gtkprintbackendcups.c:
2758         Implement track_print_status for cups
2759         
2760         * tests/print-editor.c:
2761         Test track_print_status.
2762
2763 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
2764
2765         * gtk/gtkprintoperation.c: Do page rendering in an idle when
2766         running asynchronous. 
2767
2768 2006-05-15  Alexander Larsson  <alexl@redhat.com>
2769
2770         * gtk/gtk.symbols: 
2771         * gtk/gtkprintbackend.[ch]: (_gtk_print_backend_create):
2772         Never unload print backends.
2773         Remove gtk_print_backend_unref_at_idle.
2774
2775         * modules/printbackends/cups/gtkprintbackendcups.c:
2776         (cups_dispatch_watch_finalize):
2777         Don't use the unref_at_idle hack since that caused
2778         deadlocks. Instead we never unload print backends, which
2779         is not really a big problem.
2780
2781 2006-05-14  Murray Cumming  <murrayc@murray.com>
2782
2783         * gtk/gtkframe.c: Restored the / at the start of the comment 
2784         block, to fix the build.
2785
2786 2006-05-13  Matthias Clasen  <mclasen@redhat.com>
2787
2788         * gtk/*.c:
2789         * gdk-pixbuf/*.c:
2790         * gdk/*.c: Remove erroneous ; after G_DEFINE_TYPE 
2791         macros.  (#341692, Yevgen Muntyan)
2792
2793         * gtk/gtktextbtree.c: 
2794         * gtk/gtktextview.c: Move some asserts to the right 
2795         place.  (#341661, #341665, Pascal Terjan)
2796
2797 2006-05-12  Matthias Clasen  <mclasen@redhat.com>
2798
2799         * gtk/gtknotebook.c: Fix some corner cases in the size
2800         allocation logic for tabs.  (#341577, Carlos Garnacho Parro)
2801
2802         * gtk/gtkprintunixdialog.c: Some fixes to capitalization of
2803         labels.  (#341558, Dennis Cranston)
2804
2805         * gtk/gtknotebook.c: Handle tab_label being NULL better.
2806         (#341455, William Jon McCann, patch by Carlos Garnacho Parro)
2807
2808         * gtk/gtkruler.c: Reinstate the ruler metrics strings, since
2809         they are used by glade, pointed out by Damon Chaplin.
2810
2811 2006-05-12  Alexander Larsson  <alexl@redhat.com>
2812
2813         * gtk/gtkwindow.c:
2814         Better handling of the window group on unsetting transient-for, since
2815         the transient parent might have changed group.
2816         
2817         * gtk/gtkmenu.c:
2818         Combine the handling of transient for the attach-widget and the
2819         window group handling by setting transient-to on popup/popdown only.
2820
2821         See bug #340401
2822         
2823         * gtk/gtkprintunixdialog.c:
2824         Remove part of old fix no longer needed.
2825
2826 2006-05-12  Alexander Larsson  <alexl@redhat.com>
2827
2828         * gtk/gtkprintoperation.c (gtk_print_operation_set_n_pages):
2829         Update g_object_notify to new property name.
2830
2831 2006-05-12  Alexander Larsson  <alexl@redhat.com>
2832
2833         * gtk/gtkrecentmanager.c:
2834         Fix build errors.
2835         
2836         * gtk/gtk.symbols:
2837         * demos/gtk-demo/printing.c:
2838         * gtk/gtkprintoperation-win32.c:
2839         * gtk/gtkprintoperation.[ch]:
2840         * gtk/gtkprintsettings.[ch]: 
2841         * modules/printbackends/cups/gtkprintbackendcups.c:
2842         * modules/printbackends/lpr/gtkprintbackendlpr.c:
2843         * modules/printbackends/pdf/gtkprintbackendpdf.c:
2844         * tests/print-editor.c:
2845         * tests/testnouiprint.c:
2846         * tests/testprint.c:
2847         * tests/testprintfileoperation.c:
2848         Rename functions from nr_of_pages to n_pages, and num_copies to
2849         n_copies to match other gtk+ names.
2850         
2851         * gtk/gtkmenu.c: (gtk_menu_popdown):
2852         Only re-set window group on popdown if we set it on popup (i.e.
2853         if there is a parent menu shell).
2854         Fixed part of bug #340401
2855
2856         * gtk/gtkwindow.c:
2857         Add (contruct) property "transient-for" to GtkWindow. This
2858         is needed for the fix to bug #340401.
2859         
2860         * gtk/gtkprintunixdialog.c:
2861         Use the transient-for property on construction and populate the dialog
2862         with widgets after that. This fixes bug #340401.
2863         More n_pages renames.
2864
2865 2006-05-11  Emmanuele Bassi  <ebassi@cvs.gnome.org>
2866
2867         * gtk/gtkrecentmanager.h: Remove the error parameter to the
2868         gtk_recent_manager_add() and gtk_recent_manager_add_full()
2869         functions; remove the unneeded error codes from the error
2870         enumeration.  (#336774).
2871
2872         * gtk/gtkrecentmanager.c: Make gtk_recent_manager_add() and
2873         gtk_recent_manager_add_full() complain loudly about wrong or
2874         missing meta-data, instead of using a GError.  (#336774)
2875
2876 2006-05-11  Matthias Clasen  <mclasen@redhat.com>
2877
2878         * demos/gtk-demo/Makefile.am (demos): Add it here.
2879
2880         * demos/gtk-demo/printing.c (do_printing): Add a GtkPrintOperation demo.
2881
2882 2006-05-11  Carlos Garcia Campos  <carlosgc@gnome.org>
2883
2884         * gtk/gtkfilechooserembed.c: use I_() instead of _() when creating
2885         response-requested signal. Fixes bug #341416
2886
2887 2006-05-11  Matthias Clasen  <mclasen@redhat.com>
2888
2889         * gdk/gdkkeysyms.h: Regenerated from Xorg 7.1 keysyms.h, using
2890         gdkkeysyms-update.pl.
2891
2892         * gdk/gdkkeysyms-update.pl: Script to sync gdkkeysyms.h
2893         with Xorg.  (#321896, Simos Xenitellis)
2894
2895         * gdk/Makefile.am (EXTRA_DIST): Add gdkkeysyms-update.pl
2896
2897         * gdk/gdkkeysyms.h: Consistently use lowercase in hex numbers.
2898
2899 2006-05-10  Carlos Garnacho  <carlosg@gnome.org>
2900
2901         * gtk/gtknotebook.c: check that tab_label is not NULL before checking
2902         that it's notebook's child. Closes #341247.
2903
2904 Wed May 10 15:57:53 2006  Tim Janik  <timj@imendio.com>
2905
2906         * applied unified patch for configurable scroll arrow sizes from
2907         bug #333632 and bug #325282.
2908
2909         * gtk/gtkwidget.c (gtk_widget_class_init): added ::scroll-arrow-hlength
2910         and ::scroll-arrow-vlength style properties. fixed upper limit for
2911         ::separator-width and ::separator-height to be MAXINT.
2912
2913         * gtk/gtkmenu.c: use GtkWidget::scroll-arrow-vlength to determine the
2914         scroll arrow size, instead of using a hard coded constant.
2915
2916         * gtk/gtknotebook.c: use GtkWidget::scroll-arrow-vlength and
2917         GtkWidget::scroll-arrow-hlength to determine scroll arrow sizes.
2918         added GtkNotebook::arrow-spacing style property to configure the
2919         spacing between scroll arrows.
2920
2921 2006-05-10  Matthias Clasen  <mclasen@redhat.com>
2922
2923         * gtk/gtkpagesetupunixdialog.c: Don't include langinfo.h
2924         unconditionally.  (#341217)
2925
2926 2006-05-10  John (J5) Palmieri  <johnp@redhat.com>
2927
2928         * modules/printbackends/cups/gtkprintbackendcups.c:
2929         make the _CUPS_MAP_ATTR_STR macro not dup the string so we don't
2930         leak 
2931
2932 2006-05-10  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
2933
2934         * gtk/paper_names.c: Correct #11 Envelope typo.
2935
2936 2006-05-09  Tor Lillqvist  <tml@novell.com>
2937
2938         * gdk/win32/gdkevents-win32.c (doesnt_want_scroll): Look at both
2939         GDK_SCROLL_MASK and GDK_BUTTON_PRESS_MASK. (#139628)
2940
2941 2006-05-09  Matthias Clasen  <mclasen@redhat.com>
2942
2943         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add a :cursor-position
2944         property.  (#334412, Yevgen Muntyan)
2945
2946         * gtk/gtk.symbols:
2947         * gtk/gtkmessagedialog.[hc]: Add an image property.  (#337306, Alex Graveley)
2948
2949 2006-05-09  Carlos Garnacho  <carlosg@gnome.org>
2950
2951         * gtk/gtknotebook.c: create an independent GdkWindow to behave nicely
2952         during reordering with tab_labels with their own window, also use
2953         gtk_drag_set_icon_widget() for the DnD icon to avoid drawing garbage
2954         from offscreen regions. Closes bug #335707.
2955         (gtk_notebook_tab_space), (gtk_notebook_calculate_shown_tabs),
2956         (gtk_notebook_calculate_tabs_allocation): new functions, 
2957         gtk_notebook_pages_allocate() functionality has been splitted into
2958         these.
2959
2960 2006-05-08  Matthias Clasen  <mclasen@redhat.com>
2961
2962         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_add_shortcut_folder): 
2963         * gtk/gtktextbufferserialize.c (parse_attr_element): Fix some typos in
2964         messages.  (#341091, Tino Meinen)
2965
2966         * gtk/gtkstatusicon.c: Some cleanups.
2967         
2968         * gtk/gtkstatusicon.c (gtk_status_icon_get_property): Silently return
2969         NULL if the storage type of the image does not match.  (#340516, Christian
2970         Persch)
2971
2972         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Elide (_x) in the middle
2973         of the string, too.  (#323956, Abel Cheung)
2974
2975         * gtk/gtkuimanager.c (update_node): Fix tooltips. (#340527, Jon-Kare Hellan)
2976
2977         * configure.in: Require Pango 1.13.0
2978
2979         * gtk/gtknotebook.c: 
2980         * gtk/gtkwindow.c: 
2981         * gtk/gtkrange.c: Fix doc typos.
2982
2983 2006-05-08  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
2984
2985         * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_class_init):
2986         Corrected a duplicate word.
2987
2988         * gtk/gtkrecentmanager.c (gtk_recent_manager_add_full): Corrected
2989         a typo.
2990
2991 2006-05-07  Matthias Clasen  <mclasen@redhat.com>
2992
2993         * gtk/gtkrange.c (gtk_range_key_press):  Chain up, to
2994         make bindings work.  Noticed by Al Puzzuoli.
2995         
2996 2006-05-07  Matthias Clasen  <mclasen@redhat.com>
2997
2998         * gtk/gtkseparator.c: 
2999         * gtk/gtkscrollbar.c: 
3000         * gtk/gtkpaned.c: 
3001         * gtk/gtkoldeditable.c: 
3002         * gtk/gtkmisc.c: 
3003         * gtk/gtkitem.c: 
3004         * gtk/gtkimcontext.c: 
3005         * gtk/gtkrange.c:
3006         * gtk/gtkscale.c: Make types abstract again.
3007
3008 2006-05-06  Matthias Clasen   <mclasen@redhat.com>
3009         
3010         * gdk/gdkwindow.c (gdk_window_get_toplevels): Fix a wrong
3011         reference in the docs.  (#340870, Ed Catmur)
3012
3013 2006-05-05  Christian Persch  <chpe@cvs.gnome.org>
3014
3015         * modules/printbackends/cups/gtkprintbackendcups.c:
3016         * modules/printbackends/lpr/gtkprintbackendlpr.c:
3017         * modules/printbackends/pdf/gtkprintbackendpdf.c: Always register
3018           the type with the type module, even if it had been registered
3019           before. Fixes bug #340676.
3020
3021 2006-05-05  Matthias Clasen  <mclasen@redhat.com>
3022
3023         * gtk/gtkprintunixdialog.c: Use theme colors for 
3024         the page layout indicator, and do RTL flipping for
3025         the collate indicator.
3026
3027 2006-05-05  Matthias Clasen  <mclasen@redhat.com>
3028
3029         * configure.in: Require GLib 1.11.0
3030
3031         * configure.in: Bump version
3032
3033         * === Released 2.9.0 ===
3034
3035         * configure.in: Require cairo 1.1.6
3036
3037         * gtk/Makefile.am: Tweaks to make distcheck work.
3038
3039 2006-05-05  Alexander Larsson  <alexl@redhat.com>
3040
3041         * gtk/gtkprintoperation-unix.c:
3042         Implement per-page paper sizes.
3043         
3044         * gtk/gtkprintoperation.c:
3045         Implement per-page paper sizes for pdf output.
3046         Make gtk_print_operation_set_pdf_target() work again
3047         
3048         * tests/Makefile.am:
3049         * tests/testprint.c:
3050         * tests/testprintfileoperation.[ch]:
3051         Add more test code for printing support.
3052         This tests per-page paper sizes & orientation and
3053         deriving from GtkPrintOperation.
3054
3055 2006-05-04  Michael Emmel  <mike.emmel@gmail.com>
3056
3057         * gdk/directfb/gdkkeys-directfb.c: DIKI_ALTGR to compile with
3058         directfb 0.9.25.1
3059
3060 2006-05-04  Michael Natterer  <mitch@imendio.com>
3061
3062         * gtk/gtk.symbols: remove gtk_printer_set_backend so it compiles
3063         again.
3064
3065 2006-05-04  Alexander Larsson  <alexl@redhat.com>
3066
3067         * gtk/gtk.symbols:
3068         Added new symbols
3069         
3070         * gtk/gtkpagesetupunixdialog.c:
3071         * gtk/gtkprintunixdialog.c:
3072         Destroy backends when finalizing dialogs.
3073         Fix printer leak in selected_printer_changed.
3074         
3075         * gtk/gtkprintbackend.[ch]:
3076         Convert from interface to baseclass.
3077         Move printer hashtable here so that the baseclass can handle
3078         the slightly complicated ownership model.
3079         Add gtk_print_backend_destroy which runs the dispose method,
3080         causing the ref-cycles between the backend and its printers
3081         to be broken.
3082         Add gtk_print_backend_unref_at_idle().
3083         
3084         * gtk/gtkprinter.[ch]:
3085         GtkPrinter objects now ref their backend so that its always
3086         availible, since its needed for the printer object to work.
3087         This causes a reference-cycle that is broken using
3088         gtk_print_backend_destroy.
3089         Add gtk_printer_compare.
3090         
3091         * gtk/gtkprintoperation-private.h:
3092         * gtk/gtkprintoperation-unix.c:
3093         * gtk/gtkprintoperation.c:
3094         Implement !show_dialog for unix.
3095         Make sure the print data is fully spooled before returning
3096         from a sync run_dialog.
3097         
3098         
3099         * modules/printbackends/cups/gtkcupsutils.[ch]:
3100         Add gtk_cups_request_ipp_add_strings
3101         
3102         * modules/printbackends/cups/gtkprintbackendcups.c:
3103         * modules/printbackends/cups/gtkprintercups.c:
3104         * modules/printbackends/lpr/gtkprintbackendlpr.c:
3105         * modules/printbackends/pdf/gtkprintbackendpdf.c:
3106         Convert backends to derive instead of implementing interface.
3107         Move common code into baseclass.
3108         CUPS:
3109           Remove the printer polling in dispose, not finalize.
3110           In the cups watch, remove the backend at idle instead of
3111           immediately, since the unref can cause the module to be unloaded.
3112           Limit the number of printer attributes requested
3113           Get printer uri in initial printer listing so that we can use
3114           the printer object immediately.
3115         
3116         * tests/Makefile.am:
3117         * tests/testnouiprint.c:
3118         Add testcase for !show_dialog.
3119
3120 2006-05-04  Matthias Clasen  <mclasen@redhat.com>
3121
3122         * gtk/gtk.symbols:
3123         * gtk/gtkfilesystem.c:
3124         * gtk/gtkfilesystemunix.c:
3125         * gtk/gtkprintbackend.h:
3126         * gtk/gtkrecentchooserdefault.c:
3127         * gtk/gtkrecentchooserdefault.h:
3128         * gtk/paper_names_offsets.c: Make symbol list mstch reality.
3129         
3130         * gtk/Makefile.am: Fix a typo.
3131         
3132         * gdk/x11/Makefile.am (EXTRA_DIST): Add gdksettings.c
3133
3134 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
3135
3136         * NEWS: Updates
3137
3138 2006-05-04  Murray Cumming <murrayc@murrayc.com>
3139
3140         * gtk/gtktreemodel.c: (gtk_tree_model_base_init): Changed the 
3141         language of the signals documentation slightly. Bug #340205.
3142
3143 2006-05-03  Federico Mena Quintero  <federico@novell.com>
3144
3145         Merged the federico-filename-entry branch, to fix bug #136541.
3146         Combined ChangeLogs:
3147
3148         2006-04-17  Federico Mena Quintero  <federico@novell.com>
3149
3150         * gtk/gtkfilechooserdefault.c (pending_select_paths_process):
3151         Oops, we *do* need to check that we are in OPEN mode before
3152         selecting the first row in the file list.  See
3153         https://bugzilla.novell.com/show_bug.cgi?id=166906
3154         (gtk_file_chooser_default_get_paths): If we are in the case for
3155         the file list, and the list has no selected rows, jump to the case
3156         for the filename entry.  This is so that
3157
3158                1. The user types a filename in the SAVE filename entry
3159                   ("foo.txt").
3160
3161                2. He then double-clicks on a folder ("bar") in the file
3162                   list.
3163
3164         will yield the expected "bar/foo.txt" selection.
3165
3166         2006-03-29  Federico Mena Quintero  <federico@novell.com>
3167
3168         * gtk/gtkpathbar.c (gtk_path_bar_init): Reduce the inter-button
3169         spacing to 0.
3170
3171         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Make the
3172         location label bold.
3173
3174         2006-03-29  Federico Mena Quintero  <federico@novell.com>
3175
3176         * gtk/gtkfilechooserdefault.c (location_mode_set): Just change the
3177         location_mode field if we are in SAVE/CREATE_FOLDER modes.
3178         (gtk_file_chooser_default_get_paths): Get the path based on the
3179         currently focused widget, or the last-focused widget.  This is
3180         what we should have been doing in the beginning, but it worked out
3181         fine because we didn't have the possibility of a filename entry in
3182         OPEN mode.
3183         (gtk_file_chooser_default_should_respond): Handle the case where
3184         the last focused widget is the location_entry.
3185
3186         2006-03-28  Federico Mena Quintero  <federico@novell.com>
3187
3188         * gtk/gtkfilechoosersettings.[ch]: New files with a simple
3189         framework for saving/loading settings from the file chooser in
3190         $XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.
3191
3192         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_unmap):
3193         Save the current settings.
3194         (settings_save): New helper function.  We save the location_mode
3195         and show_hidden flags.
3196         (gtk_file_chooser_default_map): Load the settings.
3197         (settings_load): New helper function.
3198
3199         * gtk/gtkfilechooserentry.c
3200         (_gtk_file_chooser_entry_set_file_part): Oops, don't modify
3201         in_change.  Our handlers are what set the file_part, so they
3202         *must* be run when we modify the text.
3203
3204         2006-03-27  Federico Mena Quintero  <federico@novell.com>
3205
3206         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
3207         Removed the save_file_name_entry.  We'll make this be the same as
3208         the location_entry widget.
3209         (struct _GtkFileChooserDefault): Leave only location_button,
3210         location_entry_box, location_label, location_entry.  We'll use a
3211         single toggle button for the location entry, which will appear
3212         below the path bar.
3213         (struct _GtkFileChooserDefault): Added a
3214         processing_pending_selections flag.
3215
3216         * gtk/gtkfilechooserdefault.c (save_widgets_create): Destroy the
3217         old location_entry if necessary, and hide the location toggle
3218         widgets.
3219         (update_chooser_entry): In multiple selection mode, just clear the
3220         location_entry.
3221         (check_save_entry): Allow running in OPEN or SELECT_FOLDER modes
3222         if we are in LOCATION_MODE_FILENAME_ENTRY.
3223         (gtk_file_chooser_default_should_respond): Switch to a folder if
3224         the location_entry contains a folder name in OPEN and SAVE mode,
3225         not just SAVE mode.  If the entry doesn't contain a folder name,
3226         but is otherwise well-formed, and we are in OPEN mode, return that
3227         we should respond with that filename.
3228         (gtk_file_chooser_default_initial_focus): Focus the location_entry
3229         if appropriate.
3230         (browse_widgets_create): Create the location_entry_box and the
3231         location_label here.
3232         (update_appearance): Call location_mode_set() when switching back
3233         to OPEN/SELECT_FOLDER mode.  Hide the location_button when
3234         switching to SAVE/CREATE_FOLDER mode.
3235         (pending_select_paths_process): Turn the
3236         processing_pending_selections flag on and off around changes to
3237         the current selection.  Don't special-case OPEN mode anymore,
3238         since the new flag will take care of things in
3239         update_chooser_entry().
3240         (update_chooser_entry): Don't do anything if
3241         processing_pending_selections is TRUE.  This keeps the entry from
3242         being polluted when changing folders.
3243         (location_popup_handler): In OPEN/SELECT_FOLDER modes, toggle
3244         between the path bar and the entry.  In SAVE/CREATE_FOLDER modes, simply focus the
3245         location_entry.
3246         (update_from_entry): Removed.
3247         (location_entry_create): Removed.
3248         (open_location_cb): Removed.
3249         (file_list_build_popup_menu): Don't add an "Open _Location" menu item.
3250         (location_entry_set_initial_text): Don't do anything if
3251         current_folder is NULL.
3252
3253         * gtk/gtkfilechooserentry.c
3254         (_gtk_file_chooser_entry_set_file_part): Turn in_change on and off
3255         around the call to gtk_entry_set_text().  This makes completion
3256         not happen when the caller has explicitly set a name.
3257
3258         2006-03-24  Federico Mena Quintero  <federico@novell.com>
3259
3260         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
3261         Added fields location_mode_box, location_pathbar_radio,
3262         location_filename_radio, location_widget_box, location_label,
3263         location_entry.  The radio buttons will switch between the pathbar
3264         and the location entry; the other boxes are for layout purposes.
3265         (enum LocationMode): New enum.
3266         (struct _GtkFileChooserDefault): Added a location_mode field.
3267
3268         * gtk/gtkfilechooserdefault.c (browse_widgets_create): Create the
3269         location radio buttons to switch between the pathbar and the
3270         location entry.  Pack the browse_path_bar in the new
3271         location_widget_box instead of a generic hbox.
3272         (location_buttons_create): New function.
3273         (gtk_file_chooser_default_init): Initialize impl->location_mode.
3274         (location_switch_to_path_bar): New function.
3275         (location_switch_to_filename_entry): New function.
3276
3277         * gtk/gtkfilechooserbutton.c (model_add_special): The display_name
3278         should not be const.
3279
3280 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
3281
3282         * gtk/gtkprintunixdialog.c: Replace the xpm collate icons
3283         by cairo drawing that respects themes.
3284
3285         * gdk/quartz/Makefile.am (libgdk_quartz_la_SOURCES): Add
3286         missing files.  (#340533, Ludovic Rousseau)
3287
3288         * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the
3289         cairo context here.  (#340522, Christian Persch)
3290
3291         * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
3292         use gtk_dialog_run for the error dialog, and improve the
3293         dialog in other ways.  (#340510, Christian Persch)
3294
3295         * gtk/gtkpagesetupunixdialog.c: Beautify the custom
3296         paper size dialog.  (#339590, patch by Christian Persch)
3297         
3298         * gtk/gtkaccessible.c:
3299         * gtk/gtkclipboard.c:
3300         * gtk/gtkfilefilter.c:
3301         * gtk/gtkimmodule.c:
3302         * gtk/gtkmenubar.c: More G_DEFINE_TYPE conversion.
3303
3304         * gtk/gtkwidget.c: Make GtkWidget abstract again.
3305
3306 2006-05-02  Matthias Clasen  <mclasen@redhat.com>
3307
3308         * gtk/*.c: Use G_DEFINE_TYPE and g_type_register_static_simple()
3309         where applicable, for ~5000 lines of code reduction. This also
3310         reduces the size of the data section by ~9k. The overall library
3311         sizes shrinks a bit less, since the text section gets a bit
3312         larger.
3313
3314 2006-05-02  Kristian Rietveld  <kris@imendio.com>
3315
3316         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set tmpnode to
3317         the return value of the _gtk_rbtree_insert* functions, since that
3318         is the node we really want to check for visibilty.
3319
3320 2006-05-02  Matthias Clasen  <mclasen@redhat.com>
3321
3322         * gtk/gtkprinter.[hc]: Don't use virtual as a parameter name.
3323         (#340394, Christian Persch)
3324
3325 2006-05-02  Christian Persch  <chpe@cvs.gnome.org>
3326
3327         * gtk/gtkpagesetupunixdialog.c:
3328         * gtk/gtkprintcontext.c: 
3329         * gtk/gtkprinter.c:
3330         * gtk/gtkprinteroptionwidget.c:
3331         * gtk/gtkprintjob.c:
3332         * gtk/gtkprintoperation-unix.c:
3333         * gtk/gtkprintoperation.c:
3334         * gtk/gtkprintunixdialog.c: Use a priv variable when accessing priv
3335           multiple times in the same function. Bug #340288.
3336
3337 2006-05-02  Michael Natterer  <mitch@imendio.com>
3338
3339         * gtk/gtklabel.c (gtk_label_set_line_wrap): added note about the
3340         inablity to do height-for-width text layout and suggest to use
3341         gtk_widget_set_size_request() for getting a label that wraps at
3342         some specific position.
3343
3344 2006-05-02  Kristian Rietveld  <kris@imendio.com>
3345
3346         * ChangeLog.gtk-async-file-chooser: added ChangeLog entries from
3347         the kris-async-branch.
3348
3349         * Makefile.am: updated EXTRA_DIST
3350
3351 2006-05-02  Alexander Larsson  <alexl@redhat.com>
3352
3353         * ChangeLog.gtk-printing: 
3354         * Makefile.am (EXTRA_DIST):
3355         Add ChangeLog.gtk-printing
3356
3357 2006-05-01  Matthias Clasen  <mclasen@localhost.localdomain>
3358
3359         * NEWS: Updates
3360
3361 2006-05-02  Kristian Rietveld  <kris@imendio.com>
3362
3363
3364         * configure.in: Up ABI version to 2.10.0 (by Matthias' request).
3365
3366 2006-05-01  Kristian Rietveld  <kris@imendio.com>
3367
3368         Merge of the GTK+ asynchronous file chooser branch.  Please see
3369         the kris-asynch-branch for more detailed ChangeLog entries.
3370
3371         * configure.in: increase binary version to 2.9.0.
3372
3373         * gtk/gtk.symbols:
3374         * gtk/gtkfilechooser.c:
3375         * gtk/gtkfilechooserbutton.c:
3376         * gtk/gtkfilechooserdefault.c:
3377         * gtk/gtkfilechooserdialog.c:
3378         * gtk/gtkfilechooserembed.c:
3379         * gtk/gtkfilechooserembed.h:
3380         * gtk/gtkfilechooserentry.c:
3381         * gtk/gtkfilechooserentry.h:
3382         * gtk/gtkfilechooserprivate.h:
3383         * gtk/gtkfilesystem.c:
3384         * gtk/gtkfilesystem.h:
3385         * gtk/gtkfilesystemmodel.c:
3386         * gtk/gtkfilesystemmodel.h:
3387         * gtk/gtkfilesystemunix.c:
3388         * gtk/gtkpathbar.c:
3389         * gtk/gtkpathbar.h:
3390         Merge from kris-async-branch.
3391
3392 2006-05-01  Matthias Clasen  <mclasen@redhat.com>
3393
3394         * NEWS: Updates
3395
3396 2006-04-30  Matthias Clasen  <mclasen@redhat.com>
3397
3398         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Document
3399         GtkTreeModel signals.
3400
3401 2006-04-19  Michael Emmel  <mike.emmel@gmail.com>
3402
3403         * gdk/directfb/gdkdrawable-directfb.c: removed all subtracting one on
3404         clipping
3405
3406 2006-04-30  Kristian Rietveld  <kris@imendio.com>
3407
3408         Fix for #340200, spotted by Torsten Schoenfeld.
3409
3410         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): fix up logic
3411         calculating the level indentation,
3412         (gtk_tree_view_start_editing): remove code calculating the
3413         level indentation, since _get_cell_area() takes care of this for us.
3414
3415 2006-04-30  Matthias Clasen  <mclasen@redhat.com>
3416
3417         Fix problems with setting symbolic colors from rc files.
3418         (#338345, Benjamin Berg)
3419         
3420         * gtk/gtkrc.c (gtk_rc_settings_changed, gtk_rc_font_name_changed) 
3421         (gtk_rc_color_hash_changed, gtk_rc_reparse_all_for_settings): Don't
3422         freeze notification for settings changes while parsing; instead
3423         manually avoid recursion, and update the color hashes.
3424
3425 2006-04-30  Matthias Clasen  <mclasen@redhat.com>
3426
3427         * gtk/gtksettings.c (gtk_settings_class_init): Change the default
3428         value of the gtk-color-scheme setting to "".
3429
3430         * gtk/gtkprinteroption.c: 
3431         * gtk/gtkprinteroptionwidget.c: 
3432         * gtk/gtkprintunixdialog.c: Improve the print dialog layout,
3433         mark some more strings for translation.  (#340139, Christian Persch)
3434
3435         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition
3436         of the ::size-changed signal, and improve its documentation.
3437         (#340112, Christian Persch)
3438
3439 2006-04-29  Behdad Esfahbod  <behdad@gnome.org>
3440
3441         * gtk/gtkwidget.c (gtk_widget_create_pango_layout)
3442         (gtk_widget_get/create_pango_context): Change colormap to font map in
3443         docs. (#340093)
3444
3445 2006-04-29  Matthias Clasen  <mclasen@redhat.com>
3446
3447         * gtk/gtk.symbols: 
3448         * gtk/gtkstatusicon.h: 
3449         * gtk/gtkstatusicon.c (gtk_status_icon_position_menu): Add a menu
3450         position function for use with popups on status icons.  (#334573, 
3451         Christian Persch)
3452
3453         * gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism.  (#340055,
3454         Kazuki Iwamoto)
3455
3456 2006-04-28  Matthias Clasen  <mclasen@redhat.com>
3457
3458         * gtk/gtkcellrenderertext.c (get_size): Use _static variants when
3459         copying and merging short-lived Pango layouts. (#340033, Morten Welinder)
3460
3461 2006-04-28  Behdad Esfahbod  <behdad@gnome.org>
3462
3463         * gtk/gtkwidget.c (gtk_widget_create_pango_layout): Fix typo in
3464         docs. (#340063)
3465
3466 2006-04-28  Matthias Clasen  <mclasen@redhat.com>
3467
3468         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): Don't force
3469         the standard DND icon if the user has a custom DND source.  
3470         (#339522, Joe Wreschnig)
3471
3472 2006-04-28  Michael Natterer  <mitch@imendio.com>
3473
3474         * gtk/gtktextbuffer.c (create_clipboard_contents_buffer): keep a
3475         reference to the source buffer while the clipboard contents buffer
3476         exists, because it is needed for serializing the contents buffer.
3477         Makes copying from the contents buffer possible even after the
3478         resp. text view is destroyed (for example when there is a
3479         clipboard manager running on app exit) (bug #339195).
3480
3481 2006-04-27  Behdad Esfahbod  <behdad@gnome.org>
3482
3483         * gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
3484         before dividing by PANGO_SCALE. (#334582)
3485
3486 2006-04-27  Matthias Clasen  <mclasen@redhat.com>
3487
3488         * gtk/gtkentry.c (popup_position_func): Improve positioning
3489         of the menu when popped up by keynav.  (#334987, Christian
3490         Persch)
3491
3492         * gtk/gtkdnd.c (gtk_drag_set_icon_window): Handle the case
3493         of being called after the drag is cancelled.  (#339224, 
3494         Benjamin Otte)
3495
3496         * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
3497         Use XFixes only if it is available.  (#339839, Marko Anastasov)
3498
3499 2006-04-26  Federico Mena Quintero  <federico@novell.com>
3500
3501         * gtk/gtkdialog.c (gtk_dialog_close): Don't make this conditional
3502         on having a GTK_RESPONSE_CANCEL button -> end the idiocy.  Fixes
3503         bug #101293.
3504
3505 2006-04-26  Kristian Rietveld  <kris@imendio.com>
3506
3507         * gtk/gtktreeview.c (node_is_visible): new function,
3508         (validate_visible_area): when a node is validated, only queue a
3509         redraw for that node, not for the entire widget (a redraw for the
3510         entire widget is only needed when the sizes change, and
3511         _queue_resize() will take care of that),
3512         (do_validate_rows): do not queue a redraw, redraws are only needed
3513         for changes in the visible area and validate_visible_area() takes
3514         care of that,
3515         (gtk_tree_view_row_inserted): for fixed height mode, only queue
3516         a resize and redraw if the node is visible, else no redraw is needed.
3517
3518 2006-04-26  Kristian Rietveld  <kris@imendio.com>
3519
3520         If this new "row-ending-details" property is turned on, more
3521         detailed "details" will be passed to the theme engine for drawing
3522         the background, drop indicator and focus rectangle.  Requirement is
3523         that the theme engine supports these details. (#333760).
3524
3525         * gtk/gtktreeview.c (gtk_tree_view_class_init): add row-ending-details
3526         style property,
3527         (gtk_tree_view_bin_expose): pass more detailed detail to
3528         gtk_paint_flat_box() if the property is turned on,
3529         (gtk_tree_view_bin_expose): likewise for the drop indicator,
3530         (gtk_tree_view_bin_expose): likewise for the focus rectangle.
3531
3532 2006-04-26  Kristian Rietveld  <kris@imendio.com>
3533
3534         New "show-expanders" and "level-indentation" properties, which can
3535         be used for customizing the tree view.  (For example to do
3536         grouping as demonstrated in the test application).
3537         Discussion in #80869.
3538
3539         * gtk/gtktreeprivate.h: add level_indentation field.
3540
3541         * gtk/gtktreeview.c (gtk_tree_view_class_init),
3542         (gtk_tree_view_init), (gtk_tree_view_set_property),
3543         (gtk_tree_view_get_property): add the properties to the object,
3544         (gtk_tree_view_button_press), (do_prelight),
3545         (gtk_tree_view_bin_expose), (validate_row),
3546         (gtk_tree_view_discover_dirty_iter), (gtk_tree_view_get_cell_area),
3547         (gtk_tree_view_create_row_drag_icon): take the new properties
3548         into account,
3549         (gtk_tree_view_start_editing): fix cell placement code.
3550
3551         * tests/testgrouping.c: new test application, showing how to
3552         implement grouping.
3553
3554         * tests/Makefile.am: updated.
3555
3556 2006-04-25  Matthias Clasen  <mclasen@redhat.com>
3557
3558         * gdk/gdk.symbols: Add gdk_screen_is_composited
3559
3560         * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add docs.
3561
3562         * gtk/gtkprintoperation.c: Add docs.
3563
3564 Tue Apr 25 10:25:28 2006  Søren Sandmann  <sandmann@redhat.com>
3565
3566         * tests/testgtk.c (create_alpha_window): Create 'composited' label.
3567
3568         * tests/testgtk.c (on_composited_changed): New function, change
3569         the label to say whether the screen is composited or not.
3570
3571         * gtk/gtkwindow.c (gtk_window_on_composited_changed): When
3572         composited status change, invalidate the window and propagate the signal;.
3573
3574         * gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint
3575         if reset_type_hint is TRUE.
3576
3577         * gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of
3578         the old hints, store a shadow copy in the public window->type_hint
3579         bitfield, otherwise set this field to normal. Set the private
3580         field to the type hint.
3581
3582         * gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint. 
3583
3584         * gtk/gtkwindow.c (struct _GtkWindowPrivate): New field
3585         "reset_type_hint" indicating whether the type hint needs to be
3586         reset. New field type_hint containing a GdkWindowTypeHint.
3587
3588         * gtk/gtkwidget.c (propagate_composited_changed): New function to
3589         propagate changes in composited status.
3590         (gtk_widget_class_init): Add composited_changed signal.
3591         
3592         * gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed.
3593
3594         * gtk/gtkwidget.c (gtk_widget_is_composited): New function.
3595
3596         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for.
3597
3598         * gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint
3599
3600         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether
3601         the item belongs to a menubar. Set the type_hint appropriately
3602         depending on the outcome.
3603
3604         * gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here.
3605
3606         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy
3607         changed on the attach widget.
3608
3609         * gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to
3610         set the transient_for property for menus.
3611
3612         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint.
3613
3614         * gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window
3615         transient for the toplevel.
3616
3617         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set
3618         transient-for, for the popup window.
3619
3620         * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for
3621         new window types.
3622
3623         * gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support
3624         for new window types.
3625
3626         * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
3627         New function called whenever the compositing manager comes and goes.
3628
3629         * gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function.
3630
3631         * gdk/x11/gdkscreen-x11.c
3632         (_gdk_x11_screen_request_cm_notification, make_cm_atom,
3633         check_is_composited): New functions
3634
3635         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
3636         _gdk_x11_screen_process_owner_change when an
3637         XFixesSelectionNotifyEvent is received.
3638
3639         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call
3640         _gdk_x11_screen_request_cm_notification() on all screens.
3641
3642         * gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy
3643         implementation. 
3644
3645         * gdk/gdkscreen.c (gdk_screen_class_init): New signal,
3646         'composited-changed'.
3647
3648         * gdk/gdkwindow.h: Add new EWMH window types.
3649
3650         * gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited) 
3651
3652 2006-04-25  Matthias Clasen  <mclasen@redhat.com>
3653         
3654         * modules/printbackends/cups/gtkprintbackendcups.c: 
3655         Add some more translatable PPD option names.
3656
3657 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
3658
3659         * po/POTFILES.in:
3660         * po-properties/POTFILES.in: Updates
3661
3662         * gtk/paper_names.c: Declare PaperInfo here.
3663
3664         * gtk/gen-paper-names.c: Add a prefix to gettext msgids.
3665
3666         * gtk/paper_names_offsets.c: Regenerated.
3667         
3668         * gtk/gtkpapersize.c (gtk_paper_size_get_display_name):
3669         Use g_strip_context() to strip the prefix.
3670
3671 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
3672         
3673         * gtk/gtkfontbutton.c: Small doc fixes.
3674
3675         * gtk/gtkprintunixdialog.h: 
3676         * gtk/gtkpagesetupunixdialog.h: Fix includes (#338665)
3677
3678         * gtk/gtkprintsettings.h (GtkPageRange): Declare in a way grokked by gtk-doc.
3679
3680         * gdk/gdkregion-generic.c: Documentation fixes.
3681
3682         * gdk/directfb/gdkmain-directfb.c: Make the comment not look like
3683         a doc comment.
3684
3685         * gtk/gtkprintunixdialog.c: Add docs.
3686
3687         * gtk/gtkstatusicon.c (gtk_status_icon_get_visible): Typo fix.
3688
3689 2006-04-24  Alexander Larsson  <alexl@redhat.com>
3690
3691         * gtk/gtkprinter.c:
3692         Don't ref the backend since the backend owns the printer.
3693
3694 2006-04-24  Alexander Larsson  <alexl@redhat.com>
3695
3696         * gtk/gtkpagesetupunixdialog.c (update_combo_sensitivity_from_printers):
3697         Remove spew.
3698
3699 2006-04-24  Alexander Larsson  <alexl@redhat.com>
3700
3701         * gtk/gtkprintunixdialog.c (create_page_setup_page):
3702         Even/Odd Pages -> Even/Odd Sheets
3703
3704 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
3705
3706         * gtk/gtk.symbols:
3707         * gtk/gtkprintoperation.c (gtk_print_operation_run_async): Refactor the
3708         gtk_print_operation_run() code and add an _async version.
3709
3710         * gtk/gtkprintoperation-private.h:
3711         * gtk/gtkprintoperation-unix.c
3712         (_gtk_print_operation_platform_backend_run_dialog_async)
3713         (gtk_print_run_page_setup_dialog_async): Variants of the run functions
3714         which don't call gtk_dialog_run(), but only show the dialog and return,
3715         and handle the response in a signal handler.
3716
3717         * gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog_async) 
3718         (_gtk_print_operation_platform_backend_run_dialog_async): Implement these 
3719         by calling the sync versions.
3720
3721         * gtk/gtkprintoperation-unix.c: Cleanups.
3722
3723         * gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_get_page_setup):
3724         Remove redundant code.
3725
3726         * gtk/Makefile.am: Install gtkprintjob.h as Unix-specific print API.
3727
3728         * gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog): 
3729         Return a copy of the original page setup if the dialog was canceled.
3730
3731 2006-04-24  Alexander Larsson  <alexl@redhat.com>
3732
3733         * gtk/gtkprintjob.h:
3734         Declare GtkPrintJob.
3735         
3736         * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_settings):
3737         Change g_return_if_fail to g_return_val_if_fail.
3738
3739 2006-04-24  Alexander Larsson  <alexl@redhat.com>
3740
3741         * configure.in:
3742         Check for cairo-pdf.h.
3743         Check for cairo-ps.h on non-win32.
3744
3745 2006-04-24  Matthias Clasen  <mclasen@redhat.com>
3746
3747         * gtk/gtkclipboard.h: 
3748         * gtk/gtkprinter.c: 
3749         * gtk/gtkprintsettings.h: 
3750         * gtk/gtkprintsettings.c: Match parameter names with the headers.
3751
3752         * gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog): 
3753         Add docs.
3754
3755         * gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize): 
3756         * gtk/gtkstatusicon.c (gtk_status_icon_get_storage_type): 
3757         * gtk/gtktreeview.c (gtk_tree_view_set_search_position_func): 
3758         * gtk/gtktreeview.c (gtk_tree_view_get_headers_clickable): 
3759         * gtk/gtkcellrendererspin.c (gtk_cell_renderer_spin_new): 
3760         * gtk/gtkmenu.c (gtk_menu_get_for_attach_widget): Fix the docs.
3761
3762         * gtk/gtkprinter.h: Don't declare GtkPrintJob here.
3763         * gtk/gtkprinter-private.h: Instead include gtkprintjob.h.
3764
3765 2006-04-23  Matthias Clasen  <mclasen@redhat.com>
3766
3767         * gtk/gtkprinter-private.h: 
3768         * gtk/gtkprintbackend.h: 
3769         * gtk/gtkprinter.[hc]: 
3770         * gtk/gtkprintjob.[hc]: Use g types, add documentation, and some
3771         stylistic fixups.
3772
3773         * gtk/gtkaboutdialog.c (activate_url): Avoid a compiler warning.
3774
3775         * gtk/gtkpapersize.[hc]: Use g types, add documentation.
3776
3777         * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_get_settings): 
3778         Use g_return_val_if_fail in non-void functions.
3779
3780         * gtk/Makefile.am: Add gtkprintutils.[hc]
3781
3782         * gtk/gtkprintutils.[hc]: New files, move the unit conversion
3783         functions here.
3784
3785         * gtk/gtkpagesetupunixdialog.c: 
3786         * gtk/gtkprintsettings.c: 
3787         * gtk/gtkpagesetup.c: 
3788         * gtk/gtkpapersize.c: Replace all static copies of to_mm/from_mm
3789         by the copies in gtkprintutils.c.
3790
3791         * gtk/gtkpagesetup.[hc]: Use g types, add documentation.
3792
3793         * gtk/gtkprintsettings.c: More documentation
3794
3795 2006-04-22  Tor Lillqvist  <tml@novell.com>
3796
3797         * gtk/Makefile.am (gtk_private_h_sources): Small workaround for
3798         weird bug in some versions of Automake at least on Windows.
3799
3800 2006-04-21  Alexander Larsson  <alexl@redhat.com>
3801
3802         Merge the gtk-printing branch.
3803         For more detailed ChangeLog entries, see the ChangeLog.gtk-printing.
3804         
3805         * .cvsignore:
3806         * Makefile.am:
3807         * configure.in:
3808         * docs/tools/widgets.c:
3809         * gtk+-unix-print-2.0.pc.in:
3810         * gtk/Makefile.am:
3811         * gtk/gen-paper-names.c:
3812         * gtk/gtk.h:
3813         * gtk/gtk.symbols:
3814         * gtk/gtkenums.h:
3815         * gtk/gtkiconfactory.c:
3816         * gtk/gtkmarshalers.list:
3817         * gtk/gtkpagesetup.[ch]:
3818         * gtk/gtkpagesetupunixdialog.[ch]:
3819         * gtk/gtkpapersize.[ch]:
3820         * gtk/gtkprint-win32.[ch]:
3821         * gtk/gtkprintbackend.[ch]:
3822         * gtk/gtkprintcontext.[ch]:
3823         * gtk/gtkprinter-private.h:
3824         * gtk/gtkprinter.[ch]:
3825         * gtk/gtkprinteroption.[ch]:
3826         * gtk/gtkprinteroptionset.[ch]:
3827         * gtk/gtkprinteroptionwidget.[ch]:
3828         * gtk/gtkprintjob.[ch]:
3829         * gtk/gtkprintoperation-private.h:
3830         * gtk/gtkprintoperation-unix.c:
3831         * gtk/gtkprintoperation-win32.c:
3832         * gtk/gtkprintoperation.[ch]:
3833         * gtk/gtkprintsettings.[ch]:
3834         * gtk/gtkprintunixdialog.[ch]:
3835         * gtk/paper_names.c:
3836         * gtk/paper_names_offsets.c:
3837         Platform independent printing API and implementations
3838         for unix and windows.
3839
3840         * gtk/gtkstock.h:
3841         * gtk/stock-icons/24/gtk-orientation-landscape.png:
3842         * gtk/stock-icons/24/gtk-orientation-portrait.png:
3843         * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
3844         Add stock icons for page orientation.
3845         
3846         * modules/Makefile.am:
3847         * modules/printbackends/Makefile.am:
3848         * modules/printbackends/cups/Makefile.am:
3849         * modules/printbackends/cups/gtkcupsutils.[ch]:
3850         * modules/printbackends/cups/gtkprintbackendcups.[ch]:
3851         * modules/printbackends/cups/gtkprintercups.[ch]:
3852
3853         Cups printing backend for unix.
3854         
3855         * modules/printbackends/lpr/Makefile.am:
3856         * modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
3857         lpr printing backend for unix.
3858         
3859         * modules/printbackends/pdf/Makefile.am:
3860         * modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
3861         print-to-pdf printing backend for unix.
3862         
3863         * tests/.cvsignore:
3864         * tests/Makefile.am:
3865         * tests/print-editor.c:
3866         Test application for printing.
3867
3868         * gdk/gdk.symbols:
3869         * gdk/win32/gdkevents-win32.c:
3870         * gdk/win32/gdkwin32.h:
3871         Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
3872         mainloop while displaying a win32 common dialog.
3873
3874         * gdk/directfb/Makefile.am:
3875         Whitespace cleanup.
3876         
3877 2006-04-20  Paolo Borelli  <pborelli@katamail.com>
3878
3879         * gtk/gtkcombobox.c: plug small leak (#339132)
3880         * tests/testcombo.c: ditto
3881
3882 2006-04-19  Michael Emmel  <mike.emmel@gmail.com>
3883
3884         * gdk/directfb/gdkdrawable-directfb.c: fixed off by one error in
3885         clip patch from (#330824)
3886
3887 2006-04-19  Murray Cumming  <murrayc@murrayc.com>
3888
3889         * gtk/gtkfilechooserbutton.c: _GtkFileChooserButtonPrivate:
3890         Added has_title flag so we can remember whether a title has 
3891         been set.
3892         (gtk_file_chooser_button_constructor): If no title has been
3893         set then set it to the default title. This means that the 
3894         default title will be used if the dialog was instantiated with 
3895         g_object_new(), without using the gtk_file_chooser_button_new() 
3896         convenience function. This helps language bindings.
3897         (gtk_file_chooser_button_set_property): Set has_title when 
3898         setting the title.
3899
3900 2006-04-19  Tor Lillqvist  <tml@novell.com>
3901
3902         * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_NUMPAD[0-9]
3903         to GDK_KP_[0-9]. (#337562)
3904
3905 2006-04-18  Matthias Clasen  <mclasen@redhat.com>
3906
3907         * gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than
3908         using a fixed array of size 128.
3909
3910         * gtk/gtkiconcache.c: Apply a patch by Paolo Borelli to factor
3911         out a strip_suffix() function and save some memory.  (#338307)
3912
3913 2006-04-18  Carlos Garnacho  <carlosg@gnome.org>
3914
3915         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): removed wrong
3916         condition check that caused tab labels not to be drawn under certain
3917         circumstances. Bug #338734.
3918
3919 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
3920
3921         * configure.in: Remove obsolete entry for no_NO
3922         * po-properties/no.po: And the translation
3923         * po/no.po: And the translation.
3924
3925 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
3926
3927         * demos/gtk-demo/colorsel.c (expose_event_callback): Small formatting
3928         fix.
3929
3930 2006-04-17  Christian Persch  <chpe@cvs.gnome.org>
3931
3932         * gtk/gtkdnd.c: (gtk_drag_dest_set), (gtk_drag_dest_set_proxy): Fix
3933         UMR in gtk_drag_dest_motion. Bug #338725.
3934
3935 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
3936
3937         * gtk/gtksettings.c (gtk_settings_class_init): 
3938         * gtk/gtkentry.c (gtk_entry_class_init): Fix typos
3939         in property blurbs.  (#338772, Clytie Siddall)
3940
3941 2006-04-16  Richard Hult  <richard@imendio.com>
3942
3943         * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_draw_drawable): Add check 
3944         for source being a window.
3945
3946         * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_get_pointer):
3947         Don't assert on window not being the root window.
3948
3949 2006-04-16  Richard Hult  <richard@imendio.com>
3950
3951         * gdk/quartz/gdkdrawable-quartz.c: Remove leading cairo/ in include.
3952
3953 2006-04-16  Matthias Clasen <mclasen@redhat.com>
3954
3955         * gdk/x11/gdkwindow-x11.c (set_initial_hints ): Avoid a
3956         possible array overrun.  (Coverity)
3957
3958         * gtk/gtkcalendar.c (gtk_calendar_key_press): Avoid a
3959         possible array overrun.  (Coverity)
3960
3961         * gtk/gtktextbuffer.c (_gtk_text_buffer_remove_all_tags):
3962         Avoid a NULL dereference.  (Coverity)
3963
3964 2006-04-15  Matthias Clasen <mclasen@redhat.com>
3965
3966         * gtk/gtkrecentmanager.c: Make filename_warning() static,
3967         and use caseless matching when looking for file:/.  
3968         (#336772, Morten Welinder)
3969
3970 2006-04-13  Anders Carlsson  <andersca@imendio.com>
3971
3972         * gdk/quartz/gdkevents-quartz.c:
3973         (synthesize_enter_event):
3974         (synthesize_leave_event):
3975         (synthesize_crossing_events):
3976         Take grabs into account.
3977
3978         (find_window_for_event):
3979         Only return grabbed window when owner_events is FALSE.
3980
3981 2006-04-13  Matthias Clasen  <mclasen@redhat.com>
3982
3983         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
3984         to avoid a possible NULL dereference.  (Coverity)
3985
3986 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
3987
3988         * gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't
3989         allow passing NULL for x1 or x2, adjust callers.
3990
3991         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_get_neighbor_sizes): 
3992         Reorganize to avoid a possible NULL pointer dereference.  (Coverity)
3993
3994         * gtk/gtknotebook.c (gtk_notebook_page_allocate): Reorganize
3995         to avoid a possible NULL dereference.  (Coverity)
3996
3997         * gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle
3998         closed displays correctly.  (Coverity)
3999
4000         * contrib/gdk-pixbuf-xlib/Makefile.am:
4001         * modules/engines/pixbuf/Makefile.am
4002         * gdk-pixbuf/Makefile.am: Build fixes for Cygwin.  (#338262)
4003
4004         * gdk/x11/gdkselection-x11.c (make_list): Make this work
4005         for list == NULL.  (Coverity)
4006
4007         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_entries_for_keycode): 
4008         Rearrange the code a bit.
4009
4010         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange): 
4011         Handle _gtk_text_line_get_data() returning NULL in all
4012         cases.  (Coverity)
4013
4014         * gtk/gtkuimanager.c: Make find_menu_position and
4015         find_toolbar_position void.  (#338100)
4016
4017 2006-04-12  Anders Carlsson  <andersca@imendio.com>
4018
4019         * gdk/quartz/gdkkeys-quartz.c:
4020         Handle page up and page down.
4021
4022 2006-04-12  Anders Carlsson  <andersca@imendio.com>
4023
4024         * gdk/quartz/gdkdrawable-quartz.c:
4025         (_gdk_quartz_drawable_release_context):
4026         Don't flush if we're inside a begin_paint/end_paint pair.
4027         
4028         * gdk/quartz/gdkwindow-quartz.c:
4029         (gdk_window_impl_quartz_end_paint):
4030         Free clip region here.
4031
4032 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
4033
4034         * gtk/gtkuimanager.c (start_element_handler): Don't pass
4035         a negative value as string length to get_child_node().  (Coverity)
4036
4037         * gtk/gtkicontheme.c (insert_theme): Handle dirs == NULL
4038         gracefully.  (Coverity)
4039
4040         * gtk/gtknotebook.c (gtk_notebook_remove): Silently do nothing
4041         if the widget is not a child.  (Coverity)
4042
4043 2006-04-11  Matthias Clasen  <mclasen@redhat.com>
4044
4045         * gdk/x11/gdkkeys-x11.c (get_xkb): Return early in error
4046         cases.  (Coverity)
4047
4048         * gtk/gtktextview.c (selection_motion_event_handler): Remove
4049         some unused variables.
4050
4051         * gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
4052         a patch from David Trowbridge to improve the positioning of the
4053         search popup.  (#338047)
4054
4055 2006-04-11  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4056
4057         * gtk/gtkrecentmanager.c (gtk_recent_manager_init)
4058         (gtk_recent_manager_new): Remove the unneeded setting of the
4059         storage file inside the constructor. (Murray Cumming)
4060         (build_recent_items_list): Reset the dirty bit when done rebuilding
4061         the list from the storage file.
4062
4063 2006-04-11  Matthias Clasen  <mclasen@redhat.com>
4064
4065         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
4066         compiler warnings.
4067
4068         * gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
4069         dereference info before checking it for NULL.  (Coverity)
4070
4071 2006-04-11  Anders Carlsson  <andersca@mac.imendio.com>
4072
4073         * gdk/quartz/GdkQuartzView.c:
4074         (-[GdkQuartzView drawRect:]):
4075         * gdk/quartz/gdkdrawable-quartz.c:
4076         (gdk_quartz_ref_cairo_surface):
4077         (_gdk_quartz_drawable_get_context):
4078         (_gdk_quartz_drawable_release_context):
4079         * gdk/quartz/gdkwindow-quartz.c:
4080         (gdk_window_impl_quartz_finalize):
4081         (gdk_window_impl_quartz_class_init):
4082         (gdk_window_impl_quartz_begin_paint_region):
4083         (gdk_window_impl_quartz_end_paint):
4084         (gdk_window_impl_quartz_invalidate_maybe_recurse):
4085         (gdk_window_impl_quartz_process_updates):
4086         (gdk_window_impl_quartz_paintable_init):
4087         (_gdk_window_impl_quartz_get_type):
4088         * gdk/quartz/gdkwindow-quartz.h:
4089         Have GdkWindowImplQuartz implement GdkPaintable.
4090
4091 2006-04-10  Michael Natterer  <mitch@imendio.com>
4092
4093         * gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize):
4094         pasted rich text should not be affected by tags that are active at
4095         the insertion point. Therefore, remove and remember all active
4096         tags, and re-apply them left and right of the inserted text after
4097         pasting. Fixes bug #337653.
4098
4099 2006-04-11  Anders Carlsson  <andersca@imendio.com>
4100
4101         * gdk/gdkinternals.h:
4102         * gdk/gdkwindow.c:
4103         (_gdk_paintable_get_type):
4104         (gdk_window_begin_paint_region):
4105         (gdk_window_end_paint):
4106         (gdk_window_process_updates):
4107         (gdk_window_invalidate_maybe_recurse):
4108         Add new GdkPaintable interface which implementation objects can 
4109         implement in order to override gdk painting functions.
4110
4111 2006-04-10 Vladimer Sichinava  <vlsichinava@gmail.com>
4112
4113         * configure.in: Added "ka" (Georgian) to ALL_LINGUAS
4114
4115 2006-04-07  Hans Breuer  <hans@breuer.org>
4116
4117         * gtk/makefile.msc.in tests/makefile.msc : updated
4118
4119 2006-04-06  Tor Lillqvist  <tml@novell.com>
4120
4121         Correct the appearance of non-square icons and cursors: pad them
4122         to square so that Windows won't stretch them.
4123
4124         * gdk/win32/gdkcursor-win32.c (create_alpha_bitmap)
4125         (create_color_bitmap): Always create square bitmaps, take only
4126         side length as argument.
4127         (pixbuf_to_hbitmaps_alpha_winxp, pixbuf_to_hbitmaps_normal):
4128         Corresponding changes.
4129
4130 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
4131
4132         * gtk/gtktextview.c (text_window_realize): Lower the window, to
4133         prevent late-constructed text windows from covering child 
4134         widgets.  (#336796, Yevgen Muntyan)
4135
4136         * gtk/gtkmain.c (gtk_grab_add, gtk_grab_remove, gtk_grab_notify) 
4137         (gtk_grab_notify_foreach): Rework the code which emits ::grab-notify
4138         signals to ensure that we emit enough signals. Also optimize the
4139         code to not do unnecessary tree walking.
4140
4141         * gtk/gtkwidget.c (gtk_widget_class_init): Document ::grab-notify.
4142
4143 2006-04-05  Paolo Borelli  <pborelli@katamail.com>
4144
4145         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle the case of \r
4146         and \n split across lines. Bug #337022.
4147         * tests/testtextbuffer.c: add unit test.
4148
4149 Tue Apr  4 12:25:36 2006  Søren Sandmann  <sandmann@redhat.com>
4150
4151         * gdk/x11/gdkimage-x11.c (gdk_image_class_init): Add "_private" to
4152         make it build.
4153
4154 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
4155
4156         * gdk/gdkdisplay.c: 
4157         * gdk/gdkdisplaymanager.c:
4158         * gdk/gdkdraw.c:
4159         * gdk/gdkkeys.c:
4160         * gdk/gdkpixmap.c:
4161         * gdk/gdkscreen.c:
4162         * gdk/gdkwindow.c:
4163         * gdk/x11/gdkcolor-x11.c:
4164         * gdk/x11/gdkdisplay-x11.c:
4165         * gdk/x11/gdkdnd-x11.c:
4166         * gdk/x11/gdkdrawable-x11.c:
4167         * gdk/x11/gdkgc-x11.c:
4168         * gdk/x11/gdkimage-x11.c:
4169         * gdk/x11/gdkinput.c:
4170         * gdk/x11/gdkpixmap-x11.c:
4171         * gdk/x11/gdkscreen-x11.c:
4172         * gdk/x11/gdkwindow-x11.c: Use G_DEFINE_TYPE.
4173
4174         * gdk/x11/gdkcolor-x11.c: 
4175         * gdk/x11/gdkdnd-x11.c:
4176         * gdk/x11/gdkimage-x11.c: Use instance private data.
4177
4178 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
4179
4180         * gdk/gdkrgb.c: Get rid of a duplicate copy of the visual names.
4181
4182         * gtk/gtkmain.c: Make gtk_args const.
4183
4184         * gtk/gtkicontheme.c (pixbuf_supports_svg): Save one static.
4185
4186         * gtk/gtkrecentchooser.c (gtk_recent_chooser_error_quark):
4187         * gtk/gtkrecentmanager.c (gtk_recent_manager_error_quark):
4188         * gtk/gtkfilechooser.c (gtk_file_chooser_error_quark):
4189         * gtk/gtkfilesystem.c (gtk_file_system_error_quark):
4190         * gtk/gtkicontheme.c (gtk_icon_theme_error_quark): No point
4191         in making the error path fast by caching quarks. 
4192
4193         * gtk/gtkfilesel.c (no_stat_dirs): Avoid relocation.
4194
4195         * gdk/gdk.c: Here too.
4196
4197         * gdk/gdkinternals.h: 
4198         * gdk/x11/gdkmain-x11.c: 
4199         * gdk/win32/gdkmain-win32.c: 
4200         * gdk/directfb/gdkdisplay-directfb.c: 
4201         * gdk/quartz/gdkmain-quartz.c: Make _gdk_windowing_args const.
4202
4203         * gdk/win32/gdkpixmap-win32.c: Include gdkscreen.h  (#337032,
4204          Kazuki IWAMOTO)
4205
4206         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Mention
4207         that %NULL is allowed.  (#336937, Christian Neumair)
4208
4209         * gtk/gtkmain.c: Get rid of an unnecessary static variable.
4210
4211         * gtk/gtktextlayout.c: Fix a warning.
4212         
4213         * gtk/gtktextsegment.h: 
4214         * gtk/gtktextsegment.c: 
4215         * gtk/gtktextchild.c:
4216         * gtk/gtktextbtree.c:
4217         * gtk/gtktextmark.c: 
4218         * gtk/gtktexttypes.h: Make the segment class pointers const.
4219
4220         * gtk/gtktextbufferserialize.c: Make parser struct const.
4221         
4222         * gtk/gtkuimanager.c: Make parser struct const.
4223
4224         * gtk/gtklinkbutton.c: Make the default colors const.
4225
4226         * gtk/gtkuimanager.c: Avoid relocations. 
4227
4228         * gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static
4229         buffer.
4230
4231         * gtk/gtktext.c (gtk_text_key_press): Avoid relocations.
4232
4233         * gtk/gtkrc.c (gtk_rc_add_initial_default_files) 
4234         (gtk_rc_add_default_file): Allocate the gtk_rc_default_files array
4235         dynamically.
4236
4237 2006-04-02  Matthias Clasen  <mclasen@redhat.com>
4238
4239         * gtk/gtkrc.c: Avoid relocations for the array of symbol names. 
4240
4241         * gtk/gtkruler.c: Remove unused strings from the ruler_metrics 
4242         structs, to avoid relocations.  (#336917, Stephane Chauveau)
4243
4244 2006-04-02  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4245
4246         * gtk/gtkrecentmanager.c (gtk_recent_manager_set_filename): Build
4247         the items list after setting the storage file.
4248
4249         * gtk/gtkrecentmanager.c (display_closed): Use the right string
4250         for unsetting the default manager object from the screen.       
4251
4252 2006-04-01  Behdad Esfahbod  <behdad@gnome.org>
4253
4254         * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Oops. (#336784)
4255
4256 2006-04-01  Behdad Esfahbod  <behdad@gnome.org>
4257
4258         * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Use a GString
4259         instead of static buffer to reduce .bss by 8kb. (#336784)
4260
4261 2006-04-01  Dom Lachowicz <cinamod@hotmail.com>
4262
4263         * modules/engines/ms-windows/msw_style.c (draw_hline): Emulate WinXP's
4264         drawing of menu separators
4265         
4266 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
4267
4268         * gtk/gtkrecentmanager.c: Convert filenames to UTF-8 before printing
4269         them out in warning messages. (#336770, Morten Welinder)
4270
4271 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
4272
4273         * gtk/gtkrecentmanager.c (gtk_recent_info_last_application): Update
4274         last_stamp inside the look. (#336771, Morten Welinder)
4275
4276 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
4277
4278         * gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_get_property):
4279         Add missing break. (#336769, Morten Welinder)
4280
4281 2006-03-31  Behdad Esfahbod  <behdad@gnome.org>
4282
4283         * gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label):
4284         * gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL
4285         instead of FALSE in g_return_val_if_fail in a pointer-returning
4286         function. (#336764, Morten Welinder)
4287
4288 2006-04-01  Gora Mohanty  <gmohanty@cvs.gnome.org>
4289
4290         * configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
4291
4292 2006-03-31  Matthias Clasen  <mclasen@redhat.com>
4293
4294         * gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't
4295         assert that the age is positive.  (#336773, Morten Welinder)
4296
4297 2006-03-31  Matthias Clasen  <mclasen@redhat.com>
4298
4299         * gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile 
4300         parser in the error case. 
4301         
4302         * gtk/gtkicontheme.c (load_icon_data, free_unthemed_icon) 
4303         (icon_data_free, load_themes):
4304         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon_data): Use the slice
4305         allocator for GtkIconData and UnthemedIcon structs.
4306
4307 2006-03-30  Behdad Esfahbod  <behdad@gnome.org>
4308
4309         * gtk/gtkcalendar.c: Fix translation comments for localizable
4310         digit formats. (fixes bug #336650)
4311
4312 2006-03-30  Matthias Clasen  <mclasen@redhat.com>
4313
4314         * gtk/gtkrecentmanager.h (struct _GtkRecentData): Fix the doc
4315         comment format.
4316
4317         * gtk/gtkrecentmanager.c (gtk_recent_manager_has_item) 
4318         (gtk_recent_manager_purge_items, gtk_recent_manager_lookup_item) 
4319         (gtk_recent_manager_get_limit, gtk_recent_manager_add_full) 
4320         (gtk_recent_manager_get_items, gtk_recent_manager_remove_item): 
4321
4322         * gtk/gtkrecentfilter.c (gtk_recent_filter_add_age): 
4323         * gtk/gtkrecentchooser.c (gtk_recent_chooser_set_show_numbers) 
4324         (gtk_recent_chooser_set_sort_func): 
4325         * gtk/gtknotebook.h (gtk_notebook_set_tab_detachable): Sync
4326         parameter names between .c and .h files to help gtk-doc.
4327
4328         * gdk/gdkregion-generic.c (gdk_region_get_clipbox): Reword
4329         docs to help gtk-doc.
4330
4331         * docs/tools/widgets.c (get_all_widgets): Add 
4332         GtkRecentChooserDialog.
4333
4334         * gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
4335         icon window when constructing the fallback_icon. This
4336         fixes a crash when dragging icons between screens in
4337         nautilus.  (#325751, Hylke van der Schaaf)
4338
4339 2006-03-30  Michael Emmel  <mike.emmel@gmail.com>
4340
4341         * gdk/directfb/gdkpixmap-directfb.c implement
4342             (gdk_pixmap_foreign_new_for_screen)
4343
4344 2006-03-30  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4345
4346         Add documentation for the GtkLinkButton (#336592)
4347
4348         * docs/reference/tmpl/gtklinkbutton.sgml: Add description
4349         of the GtkLinkButton.
4350
4351         * docs/reference/gtk/migrating-GtkLinkButton.sgml: Guidelines
4352         for migrating code from GnomeHRef to the GtkLinkButton.
4353
4354         * docs/reference/gtk/gtk-docs.sgml:
4355         * docs/reference/gtk/Makefile.am: Build glue for the porting
4356         guide.
4357
4358 2006-03-29  Matthias Clasen <mclasen@redhat.com>
4359
4360         * gdk/gdk.symbols:
4361         * gdk/gdkpixmap.h:
4362         * gdk/win32/gdkpixmap-win32.c:
4363         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_screen):
4364         New function to allow wrapping a native pixmap without
4365         a server roundtrip.  (#334954, David Baron) 
4366
4367         * gtk/gtk.symbols:
4368         * gtk/gtkrecent*.c: Fix some symbol aliasing glitches.
4369
4370 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4371
4372         * gtk/gtkrecentchoosermenu.c: Make gtkalias.h the last included file.
4373
4374 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4375
4376         * gtk/gtk.symbols: Fix a typo that broke aliasing rules.
4377
4378 2006-03-29  Richard Hult  <richard@imendio.com>
4379
4380         * gdk/quartz/gdkproperty-quartz.c: Add missing CLIPBOARD atom.
4381
4382 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4383
4384         * docs/reference/gtk/migrating-GtkRecentChooser.sgml: Add a migration
4385         guide for porting to the new GtkRecent stuff from the old EggRecent
4386         code.
4387
4388         * docs/reference/gtk/tmpl/gtkrecentchooser.sgml:
4389         * docs/reference/gtk/tmpl/gtkrecentchooserdialog.sgml:
4390         * docs/reference/gtk/tmpl/gtkrecentchoosermenu.sgml:
4391         * docs/reference/gtk/tmpl/gtkrecentchooserwidget.sgml:
4392         * docs/reference/gtk/tmpl/gtkrecentfilter.sgml:
4393         * docs/reference/gtk/tmpl/gtkrecentmanager.sgml: Add template files
4394         for the reference guide.
4395
4396         * docs/reference/gtk/gtk-docs.sgml:
4397         * docs/reference/gtk/gtk-sections.txt:
4398         * docs/reference/gtk/Makefile.am: Build glue for add GtkRecent to
4399         the reference guide.
4400
4401 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4402
4403         * tests/Makefile.am:
4404         * tests/testrecentchooser.c: Add a test suite for GtkRecentChooser.
4405
4406 2006-03-29  Emmanuele Bassi  <ebassi@cvs.gnome.org>
4407
4408         Import GtkRecent* from libegg.
4409
4410         * gtk/gtkrecentmanager.[ch]: Add GtkRecentManager, an object
4411         for managing a list of recently used resources.
4412
4413         * gtk/gtkrecentchooser.[ch]:
4414         * gtk/gtkrecentchooserdefault.[ch]:
4415         * gtk/gtkrecentchooserdialog.[ch]:
4416         * gtk/gtkrecentchoosermenu.[ch]:
4417         * gtk/gtkrecentchooserprivate.h:
4418         * gtk/gtkrecentchooserutils.[ch]:
4419         * gtk/gtkrecentchooserwidget.[ch]: Add GtkRecentChooser, a
4420         GTypeInterface for widgets implementing viewers for recently
4421         used resources.
4422
4423         * gtk/gtkrecentfilter.[ch]: GtkRecentFilter, a filter object
4424         for GtkRecentChooser implementations.
4425
4426         * gtk/gtk.h:
4427         * gtk/gtk.symbols:
4428         * gtk/Makefile.am: Build glue for GtkRecent*.
4429
4430 2006-03-29  Matthias Clasen  <mclasen@redhat.com>
4431
4432         * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Emit
4433         page-added before switch-page.  (#335691, Christian Persch)
4434
4435 2006-03-29  Matthias Clasen  <mclasen@redhat.com>
4436
4437         * gtk/gtkfilechooserdefault.c (queue_edited_idle): Handle
4438         double queuing, rather than asserting that it does not 
4439         happen.  (#330617)
4440
4441 2006-03-28  Matthias Clasen  <mclasen@redhat.com>       
4442
4443         * gtk/gtknotebook.c (gtk_notebook_set_tab_detachable): Fix
4444         docs syntax, also commit a patch from #335707 to improve
4445         notebook DND with window widgets.
4446
4447         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): 
4448         (selection_motion_event_handler): Fix drag-selection after
4449         double-click.  (#323862, Benjamin Berg)
4450
4451         * gtk/gtktextview.c (get_iter_at_pointer): Factor this out
4452         into a function and use it in move_mark_to_pointer_and_scroll,
4453         drag_scan_timeout and selection_motion_event_handler.
4454         (Paolo Borelli)
4455
4456 2006-03-28  Matthias Clasen  <mclasen@redhat.com>
4457
4458         * gtk/gtktextview.c (gtk_text_view_do_popup) 
4459         (gtk_text_view_grab_notify): Move the call to 
4460         gtk_text_view_end_selection_drag() from gtk_text_view_do_popup
4461         to gtk_text_view_grab_notify, so that it works not only
4462         for the text views own popup, but also for other ways in which
4463         we might become grab-shadowed during a selection drag.
4464         (#74620, Li Yuan)
4465
4466 2006-03-28  Sven Herzberg  <herzi@gnome-de.org>
4467
4468         reviewed by: Tim Janik
4469         
4470         * gtk/gtkpixmap.c: (gtk_pixmap_set): only check for equal colormaps if
4471         the new pixmap is not NULL; fixes a warning when gtk_pixmap_set is
4472         called from gtk_pixmap_finalize (bug 336254)
4473
4474 2006-03-27  Anders Carlsson  <andersca@imendio.com>
4475
4476         * gdk/quartz/gdkevents-quartz.c:
4477         (select_thread_func):
4478         (got_fd_activity):
4479         (poll_func):
4480         (gdk_event_translate):
4481         Make the poll func work with real file descriptors.
4482         We do this by creating a thread which calls poll and then
4483         signals the main thread using a run loop source.
4484         
4485         * gtk/gtkclipboard-quartz.c:        
4486         (-[GtkClipboardOwner pasteboard:provideDataForType:]):
4487         Remove debugging output
4488
4489 2006-03-27  Matthias Clasen  <mclasen@redhat.com>
4490
4491         * gtk/gtkmnemonichash.c (_gtk_mnemonic_hash_activate): Check that 
4492         the widget is viewable.  (#336200, Bastian Nocera)
4493
4494 2006-03-27  Michael Natterer  <mitch@imendio.com>
4495
4496         * gtk/gtkmenu.c (gtk_menu_scroll_by): bail out if there is no need
4497         for scrolling (more obvious than adding additional conditions to
4498         the scroll offset calculation). Fixes bug #335912.
4499
4500 2006-03-27  Anders Carlsson  <andersca@imendio.com>
4501
4502         * gtk/Makefile.am:
4503         Add -xobjective-c to cflags.
4504         (#335956, Lllian Angel)
4505         
4506         * gtk/gtkdnd-quartz.c:
4507         (gtk_drag_dest_set_track_motion):
4508         (gtk_drag_dest_get_track_motion):
4509         Add stubs for new functions.
4510         (#335955, Lillian Angel)
4511         
4512 2006-03-27  Richard Hult  <richard@imendio.com>
4513
4514         * gdk/quartz: Add more stubs.
4515
4516 2006-03-27  Michael Natterer  <mitch@imendio.com>
4517
4518         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
4519         add missing ')'.
4520
4521 2006-03-26  Matthias Clasen  <mclasen@redhat.com>
4522
4523         * gtk/Makefile.am: Fix a srcdir != builddir build problem.
4524         (#335915, Yevgen Muntyan)
4525
4526         * gtk/gtktextbuffer.c (gtk_text_buffer_get_property):
4527         * gtk/gtksettings.c (gtk_settings_get_property):
4528         * gtk/gtkuimanager.c (gtk_ui_manager_get_property): Fix leaks.
4529
4530         * gtk/gtktexttag.c (gtk_text_tag_get_property):
4531         * gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
4532         Avoid an unnecessary strdup.  (#336013)
4533
4534 2006-03-24  Matthias Clasen  <mclasen@redhat.com>
4535
4536         * gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
4537         gdk_window_invalidate_rect() on unrealized widgets.  (#335717,
4538         Nicolas Setton)
4539
4540 Fri Mar 24 14:53:20 2006  Tim Janik  <timj@imendio.com>
4541
4542         * gtk/gtktreemodel.h: 
4543         * gtk/gtktextbtree.h: back out G_GNUC_WARN_UNUSED_RESULT on iterator
4544         functions which turned out to cause too much trouble.
4545
4546 2006-03-23  Matthias Clasen  <mclasen@redhat.com>
4547
4548         * AUTHORS: small update
4549
4550 2006-03-23  Matthias Clasen  <mclasen@redhat.com>
4551
4552         Support subclasses in RC files.  (#142417, Todd Berman, patch
4553         based on a patch by Benjamin Berg)
4554         
4555         * gtk/gtkrc.h: 
4556         * gtk/gtkrc.c: Support <classname> elements in widget_class paths 
4557         in rc files which match any classes derived from named class.
4558
4559         (_gtk_rc_init): Use the new syntax in the default rc string.
4560
4561         * gtk/gtkbindings.c: Support the new syntax for bindings too.
4562         
4563         * tests/testrc.c: Tests for widget_class path matching
4564
4565 2006-03-23  Carlos Garnacho  <carlosg@gnome.org>
4566
4567         * gtk/gtkdnd.c (gtk_drag_dest_motion): make sure that gdk_drag_event()
4568         is called when track_motion is TRUE to receive drag_motion and
4569         drag_leave events properly.
4570
4571 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
4572
4573         * gtk/gtknotebook.c (gtk_notebook_remove): Emit the ::page-removed
4574         signal after removing the page.  (#335238, Christian Persch)
4575
4576 2006-03-22  Carlos Garnacho  <carlosg@gnome.org>
4577
4578         * gtk/gtkexpander.c: Make it to expand when hovering during DnD
4579
4580 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
4581
4582         Improved DND support for GtkNotebook  (#332991, Carlos Garnacho)
4583         
4584         * gtk/gtk.symbols: 
4585         * gtk/gtkdnd.h: 
4586         * gtk/gtkdnd.c: Add a track_motion flag on GtkDragDest
4587         with getter and setter, for cases where the drag destination
4588         is interested in drag motion events independent of targets.
4589
4590         * gtk/gtksettings.c (gtk_settings_class_init): Add a setting
4591         for the timeout used when expanding during DND.
4592
4593         * gtk/gtknotebook.c: Use the track_motion flag to switch
4594         notebook tabs when hovering over tabs during DND.
4595         
4596 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
4597
4598         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Use fg_gc to
4599         draw the inter-row drop highlight. Also draw the line all the 
4600         way across, and flip it in RTL mode. (#334906, Ian McDonald)
4601
4602 2006-03-22  Johan Dahlin  <jdahlin@async.com.br>
4603
4604         * tests/testtreeview.c: Add a column that demonstrates how to use
4605         the new spinbutton cellrenderer.
4606
4607 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
4608
4609         * tests/prop-editor.c: 
4610         * tests/testtreeview.c: Remove pointless includes of config.h,
4611         to make it easier compilable against system GTK+.
4612
4613 2006-03-22  Michael Natterer  <mitch@imendio.com>
4614
4615         * gtk/gtkentry.c: renamed last-char-timeout to
4616         password-hint-timeout and store all its data in a struct attached
4617         as QData.
4618
4619         * gtk/gtkcellrendererspin.c: fix typo in #include.
4620
4621 2006-03-22  Carlos Garnacho  <carlosg@gnome.org>
4622
4623         * gtk/gtknotebook.c: send a GtkWidget** instead of a GtkNotebookPage*
4624         when doing tabs DnD, this allows DnD interaction with other widgets,
4625         added some docs for this too.
4626         * tests/testnotebookdnd.c: add some code to test it.
4627
4628 2006-03-22  Matthias Clasen  <mclasen@redhat.com>
4629
4630         * gtk/gtk.symbols: 
4631         * gtk/gtkcellrendererspin.h:
4632         * gtk/gtkcellrendererspin.c: Add a cell renderer which 
4633         uses a spinbutton to edit the value of a cell. (#156023,
4634         Daniel Kasak, Lorenzo Gil Sanchez, Carlos Garnacho)
4635
4636         * gtk/gtk.h: 
4637         * gtk/Makefile.am: Glue it in.
4638
4639 2006-03-21  Matthias Clasen  <mclasen@redhat.com>
4640
4641         * tests/testtreeview.c (drag_begin_cb): Test setting up
4642         drag icons for tree dnd.
4643
4644 2006-03-22  Michael Natterer  <mitch@imendio.com>
4645
4646         * gtk/gtkentry.c: applied modified patch from maemo-gtk which
4647         allows the most recently entered character in a hidden entry to be
4648         shown for a configurable period of time. Fixes bug #334560.
4649
4650 2006-03-22  Michael Natterer  <mitch@imendio.com>
4651
4652         * gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): count down
4653         from G_MAXUINT to avoid clashes with application-added DND
4654         targets.
4655
4656         * gtk/gtktextview.c (gtk_text_view_init): set an empty
4657         GtkTargetList on the drag_dest so it is not NULL when a derived
4658         class' init() function is called.
4659
4660         (gtk_text_view_target_list_notify): copy the text buffer's paste
4661         targets into the view's destinstion target list (preserving
4662         application-added DND targets), instead of replacing the view's
4663         target list. Fixes bug #334399.
4664
4665 2006-03-21  Anders Carlsson  <andersca@imendio.com>
4666
4667         * gtk/Makefile.am:
4668         Add new files.
4669         
4670         * gtk/gtkclipboard-quartz.c: Added.
4671         * gtk/gtkdnd-quartz.c: Added.
4672         * gtk/gtkquartz.c: Added.
4673         * gtk/gtkquartz.h: Added.
4674         Add dnd and clipboard implementations.
4675
4676 2006-03-21  Michael Natterer  <mitch@imendio.com>
4677
4678         * gdk/quartz/Makefile.am: removing trailing \ fixes the build.
4679
4680 2006-03-21  Anders Carlsson  <andersca@imendio.com>
4681
4682         * gdk/quartz/gdkgeometry-quartz.c:
4683         (gdk_window_scroll):
4684         Implement gdk_window_scroll.
4685
4686 2006-03-21  Anders Carlsson  <andersca@imendio.com>
4687
4688         * gdk/quartz/GdkQuartzWindow.c:
4689         (drag_operation_to_drag_action):
4690         (drag_action_to_drag_operation):
4691         (update_context_from_dragging_info):
4692         (-[GdkQuartzWindow draggingEntered:]):
4693         (-[GdkQuartzWindow draggingEnded:]):
4694         (-[GdkQuartzWindow draggingExited:]):
4695         (-[GdkQuartzWindow draggingUpdated:]):
4696         (-[GdkQuartzWindow performDragOperation:]):
4697         (-[GdkQuartzWindow wantsPeriodicDraggingUpdates]):
4698         (-[GdkQuartzWindow draggedImage:endedAt:operation:]):
4699         * gdk/quartz/gdkdnd-quartz.c:
4700         (gdk_drag_context_finalize):
4701         (gdk_drag_context_init):
4702         (gdk_drag_context_class_init):
4703         (gdk_drag_begin):
4704         (gdk_drag_status):
4705         Add the GDK part of the DND implementation.
4706
4707         * gdk/quartz/Makefile.am:
4708         Add some missing headers.
4709         
4710         * gdk/quartz/gdkdrawable-quartz.h:
4711         * gdk/quartz/gdkprivate-quartz.h:
4712         * gdk/quartz/gdkquartz.h:
4713         * gdk/quartz/gdkwindow-quartz.c:
4714         (gdk_quartz_window_get_nsview):
4715         New function, for use by the GTK part of the DND implementation
4716
4717 2006-03-21  Anders Carlsson  <andersca@imendio.com>
4718
4719         * gdk/quartz/gdkdrawable-quartz.c:
4720         (gdk_quartz_ref_cairo_surface):
4721         (gdk_quartz_draw_rectangle):
4722         (gdk_quartz_draw_arc):
4723         (gdk_quartz_draw_polygon):
4724         (gdk_quartz_draw_drawable):
4725         (gdk_quartz_draw_segments):
4726         (gdk_quartz_draw_lines):
4727         (gdk_quartz_draw_pixbuf):
4728         (gdk_quartz_draw_image):
4729         (_gdk_quartz_drawable_get_context):
4730         * gdk/quartz/gdkdrawable-quartz.h:
4731         Offset coordinates by 0.5 pixels to get consistant results for both
4732         image contexts and screen contexts.
4733
4734 2006-03-21  Anders Carlsson  <andersca@imendio.com>
4735
4736         * gdk/quartz/GdkQuartzWindow.c 
4737         ([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events
4738         when the window position changes.
4739
4740 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
4741
4742         * gtk/gtkdnd.c (gtk_drag_get_cursor): Remove an unused variable.
4743
4744         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): Don't leave
4745         page->tab_label dangling.
4746         (gtk_notebook_real_remove): Use GTK_IN_DESTRUCTION to determine
4747         if we are being called during destruction of the notebook, rather
4748         than maintaining that information as a passed-in parameter.
4749         (gtk_notebook_destroy): Leave the removal of the children
4750         to the container destroy method.  (#319032, Yevgen Muntyan)
4751
4752 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
4753
4754         * gtk/gtkcombobox.c (gtk_combo_box_remove): Use the existing
4755         GTK_IN_DESTRUCTION flag, rather than roll our own.
4756
4757 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
4758         
4759         * gtk/gtk.symbols: 
4760         * gtk/gtkscrolledwindow.h: 
4761         * gtk/gtkscrolledwindow.c: Add a window-placement-set property
4762         and a gtk-scrolled-window-placement setting.  (#157025, Christian
4763         Neumair)
4764
4765 2006-03-20  Matthias Clasen  <mclasen@redhat.com>
4766
4767         * gtk/gtkmain.c (gtk_get_option_group): Make sure gettext
4768         is initialized before using it.  (#335129, Christian Persch)
4769
4770 2006-03-19  Matthias Clasen  <mclasen@redhat.com>
4771
4772         * MAINTAINERS: Add this, at the request of the GNOME sysadmin team.
4773
4774         * AUTHORS: Updates, typo fix
4775
4776         * gtk/gtkiconview.c (gtk_icon_view_set_cursor): Document that
4777         @cell must be one of the renderers of the icon view, warn if 
4778         it is not, and ignore @start_editing if @cell is not set.
4779         (#335001, Emmanuel Rodriguez)
4780
4781 2006-03-16  Matthias Clasen  <mclasen@redhat.com>
4782
4783         * configure.in: Add a missing comma.  (#334774, Peter Breitenlohner)
4784
4785         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) 
4786         (gtk_action_group_add_toggle_actions_full) 
4787         (gtk_action_group_add_radio_actions_full): Check for a stock 
4788         icon, not a stock item, when deciding whether to use stock-id 
4789         or icon-name.  (#334760, Jody Goldberg)
4790
4791         * gtk/gtkimage.c (gtk_image_clear): Update the size of the image, 
4792         by swapping the implementations of gtk_image_clear and
4793         gtk_image_reset.  (#334657)
4794
4795         * README.in: Add a note about GtkNotebook signals.
4796
4797 2006-03-15  Matthias Clasen  <mclasen@redhat.com>
4798
4799         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released) 
4800         (gtk_combo_box_list_key_press): Popdown the list before changing
4801         the active iter, otherwise people will be surprised by the
4802         grabs that are still in place when their ::changed handler
4803         runs. 
4804
4805 2006-03-15  Dom Lachowicz <cinamod@hotmail.com>
4806
4807         * modules/engines/ms-windows/msw_style.c: Override style->realize/
4808         style->unrealize, so that GTK+ doesn't automatically attempt to apply
4809         shading to the GC colors, causing a mismatch with the Win32 native
4810         colors. Problem found by (and suggested solution by) "Cosmic Integer"
4811
4812         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Make expander-size
4813         a bit closer to Microsoft's values (bug 325699, Brad Taylor)
4814         
4815 2006-03-14  Matthias Clasen  <mclasen@redhat.com>
4816
4817         * tests/testcellrenderertext.c: Add test cases for alignment.
4818
4819         * gtk/gtkcellrenderertext.c: Add an alignment property,
4820         and fix some cases where ellipsize_set was being used to
4821         mean "we're ellipsizing" even when ellipsize was set to NONE.  
4822         (#318761, Ross Burton)
4823
4824         * gtk/gtkimcontextsimple.c: Make return and release work again
4825         to commit a hex sequence. Additionally, make escape reset the
4826         im context when in a hex sequence.  (#334423, Behdad Esfahbod)
4827
4828 2006-03-13  Matthias Clasen  <mclasen@redhat.com>
4829
4830         Make actions work with named icons.  (#323484, Jorn Baayen)
4831         
4832         * gtk/gtkactiongroup.c: If the stock-id field of a GtkActionEntry
4833         does not contain a registered stock id, interpret it as an
4834         icon name.
4835
4836         * gtk/gtkaction.c: Add an icon-name property to actions and
4837         use it for icons if a stock-id is not specified.
4838
4839 2006-03-12  Matthias Clasen  <mclasen@redhat.com>
4840
4841         * gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
4842         for the creation of geometry info here.  (#114533)
4843
4844 2006-03-11  Tor Lillqvist  <tml@novell.com>
4845
4846         * gdk/win32/gdkdrawable-win32.c (draw_polygon): Use Polygon() for
4847         outlined polygons, too. Same idea as in draw_rectangle(): Set pen
4848         to NULL_PEN if drawing a filled polygon, set brush to HOLLOW_BRUSH
4849         if drawing a polygon outline. (#332662)
4850         (gdk_win32_draw_polygon): Corresponding simplification: no need to
4851         add an extra final copy of the starting point.
4852
4853 2006-03-11  Dom Lachowicz <cinamod@hotmail.com>
4854
4855         * modules/engines/ms-windows: Speed up the Windows theme
4856         considerably (#163724, John Ehresman)
4857         Be more careful about setting Pango font descriptions (#333372)
4858         
4859 2006-03-11  Matthias Clasen  <mclasen@redhat.com>
4860
4861         * gtk/gtkrange.c (gtk_range_key_press): Allow to cancel 
4862         a drag with ESC.  (#58389, Søren Sandmann)
4863
4864 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
4865
4866         * gtk/gtkrange.c: Add a style property ::activate_slider that
4867         allows themes to draw the slider active while dragged.  (#311992,
4868         Benjamin Berg)
4869
4870         * gtk/gtkcolorsel.c (gtk_color_selection_init): Fix two labels.
4871
4872         * gtk-engine-check-abi.sh: Add a script to check that theme
4873         engines don't export any extra functions. 
4874
4875 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
4876
4877         * gtk/gtkcolorsel.c (gtk_color_selection_init): Avoid a mnemonic
4878         conflict.  (#163850, Dennis Cranston)
4879
4880         * gtk/gtkaboutdialog.c (gtk_show_about_dialog): Make the behaviour
4881         of the about dialog consistent with other dialogs in gtk. If the
4882         dialog is constructed with gtk_about_dialog_new(), the creator
4883         is reponsible for handling the response by hiding or closing the
4884         dialog. gtk_show_about_dialog() handles it by hiding the dialog.
4885         (#333360, Daniel Drake)
4886
4887         * README.in: Mention this change.
4888
4889 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
4890
4891         Apply a patch from Dennis Cranston to make dialogs more
4892         consistent  (#163850)
4893         
4894         * gtk/gtkcolorsel.c (make_label_spinbutton): Left-align labels.
4895         
4896         * gtk/gtkfontsel.c (gtk_font_selection_init): 
4897         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): 
4898         * gtk/gtkcolorsel.c (gtk_color_selection_init): 
4899         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
4900         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Update the layout
4901         of the dialog to follow HIG recommendations. Also update labels.
4902
4903         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): HIG-compatible 
4904         spacing.
4905         (gtk_message_dialog_font_size_change): Merged into 
4906          gtk_message_dialog_style_set.
4907
4908 2006-03-10  Matthias Clasen  <mclasen@redhat.com>
4909
4910         * gtk/gtkstyle.c: Remove g_return_if_fail() checks
4911         from static functions.
4912
4913 2006-03-10  Federico Mena Quintero  <federico@novell.com>
4914
4915         Make Shift-P and Shift-N activate typeahead in GtkTreeView
4916         (i.e. they are just normal capital letters).  Fixes bug #334098.
4917
4918         * gtk/gtktreeview.c (gtk_tree_view_add_move_binding): Add an
4919         "add_shifted_binding" argument which determines whether we'll add
4920         the same binding with GDK_SHIFT_MASK.
4921         (gtk_tree_view_class_init): Use add_shifted_binding=FALSE for GDK_p
4922         and GDK_n; use TRUE for all the rest.
4923
4924 2006-03-10  Michael Natterer  <mitch@imendio.com>
4925
4926         * gtk/gtkentry.[ch]: applied refactored patch from maemo-gtk that
4927         replaces the INNER_BORDER define by an "inner-border" style
4928         property of type GtkBorder. Additionally, add an "inner-border"
4929         object property plus API which allows to override any theme
4930         border, to allow pixel-perfect positioning of entries for inline
4931         editing. Fixes bug #333922.
4932
4933         * gtk/gtk.symbols: add the new public functions.
4934
4935 2006-03-09  Matthias Clasen  <mclasen@redhat.com>
4936
4937         * gtk/gtkcombobox.c (gtk_combo_box_class_init): Replace the
4938         popup-show and popup-hide signals with a readonly popup-shown
4939         property.  (#162531, Christian Persch)
4940
4941 2006-03-09  Ross Burton  <ross@openedhand.com>
4942
4943         * gtk/gtkwidget.c:
4944         * gtk/gtkrange.c:
4945         * gtk/gtktogglebutton.c:
4946         Turn off prelighting when gtk-touchscreen-mode is enabled (#135666)
4947
4948 Thu Mar  9 14:29:43 2006  Tim Janik  <timj@gtk.org>
4949
4950         * gtk/gtkobject.c (gtk_object_init): move the floating flag from
4951         the GInitiallyUnowned bit to GTK_FLOATING. fixes tests/floatingcheck.
4952         kudos to mitch for debugging this.
4953
4954 2006-03-09  Matthias Clasen <mclasen@redhat.com>
4955
4956         * Makefile.am: Add ChangeLog.pre-2.8 to EXTRA_DIST.
4957
4958 2006-03-09  Tor Lillqvist  <tml@novell.com>
4959
4960         * gtk/gtk.symbols: No gtk_tray_icon_get_type on Win32.
4961
4962 2006-03-08  Carlos Garnacho  <carlosg@gnome.org>
4963
4964         Rename ::tab-added and ::tab-removed signals to ::page-added and
4965         ::page-removed for not conflicting with other tab reordering
4966         implementations. Fixes bug #333743.
4967
4968         Also rename ::tab-reordered to ::page-reordered, and emit it in
4969         gtk_notebook_reorder_child () to make it behave consistently with the
4970         other two signals.
4971
4972         * gtk/gtknotebook.c (gtk_notebook_class_init): rename signals.
4973         (gtk_notebook_reorder_tab)
4974         (gtk_notebook_button_release)
4975         (gtk_notebook_remove)
4976         (gtk_notebook_real_insert_page): emit respectively renamed signals
4977         (gtk_notebook_reorder_child): also emit ::page-reordered here
4978
4979         * tests/testnotebookdnd.c: use renamed signals
4980
4981 2006-03-08  Michael Natterer  <mitch@imendio.com>
4982
4983         * gdk/gdkscreen.h
4984         * gdk/x11/gdkscreen-x11.c
4985         * gdk/gdk.symbols: added gdk_screen_get_active_window() and
4986         gdk_screen_get_window_stack() (patch from maemo-gtk).
4987         Fixes bug #320881.
4988
4989         * gdk/directfb/gdkscreen-directfb.c
4990         * gdk/quartz/gdkscreen-quartz.c
4991         * gdk/win32/gdkscreen-win32.c: added the functions as stubs.
4992
4993 2006-03-08  Michael Natterer  <mitch@imendio.com>
4994
4995         * tests/prop-editor.c (unichar_changed): zero-initialize the
4996         GValue before calling g_value_init().
4997
4998 2006-03-08  Michael Natterer  <mitch@imendio.com>
4999
5000         * gtk/gtkentry.c (gtk_entry_adjust_scroll): make sure that the
5001         text_area_width is always >= 0. Fixes bug #316712 (Dan Winship).
5002
5003 2006-03-07  Federico Mena Quintero  <federico@novell.com>
5004
5005         Cancel drags when the grabs get broken.  Fixes bug #333056:
5006
5007         * gtk/gtkdnd.c (gtk_drag_selection_received): The time argument is
5008         a guint, not guint32.
5009         (gtk_drag_source_event_cb): Return gboolean, not gint.
5010         (gtk_drag_anim_timeout): Likewise.
5011         (gtk_drag_motion_cb): Likewise.
5012         (gtk_drag_key_cb): Likewise.
5013         (gtk_drag_button_release_cb): Likewise.
5014         (gtk_drag_abort_timeout): Likewise.
5015         (gtk_drag_begin_internal): Connect to "grab-broken-event" on the
5016         ipc_widget.
5017         (gtk_drag_source_info_destroy): Disconnect from the
5018         "grab-broken-event" callback.
5019         (gtk_drag_end): Likewise.
5020         (gtk_drag_grab_broken_event_cb): New callback.  We cancel the drag
5021         if the grab was broken and not regrabbed by the DnD code.
5022
5023 2006-03-07  Federico Mena Quintero  <federico@novell.com>
5024
5025         * gtk/gtkfilechooserdefault.c (shortcuts_button_press_event_cb):
5026         Hack to let the treeview's button-press-event handler run before
5027         ours.  This lets the selection be updated before we pop up a
5028         context menu.
5029
5030 Tue Mar  7 17:16:34 2006  Tim Janik  <timj@gtk.org>
5031
5032         * configure.in: depend on glib-2.10.1.
5033
5034         * gtk/gtkobject.c: fixed up messing with non-GtkObject floating flags.
5035         this requires glib-2.10.1.
5036
5037 2006-03-07  Michael Natterer  <mitch@imendio.com>
5038
5039         Add infrastructure for copy/paste and DND of rich text for
5040         GtkTextBuffer. Fixes bug #324177.
5041
5042         * gtk/gtktextbufferrichtext.[ch]: new files implementing a
5043         per-buffer registry of rich text formats.
5044
5045         * gtk/gtk.h: #include gtktextbufferrichtext.h
5046
5047         * gtk/gtktextbufferserialize.[ch]: new files implementing an
5048         internal serialization format that can handle all of a text
5049         buffer's tags and pixbufs. It's not useful for anything except
5050         tranfer between instances of GtkTextBuffer (Anders Carlsson).
5051
5052         * gtk/Makefile.am: build the new files.
5053
5054         * gtk/gtkclipboard.[ch]: added convenience APIs for rich text,
5055         just as they exist for plain text and pixbufs.
5056
5057         * gtk/gtkselection.[ch]: added rich text convenience APIs here
5058         too.  Return the target list from gtk_target_list_ref(). Register
5059         GtkTargetList as boxed type. Added
5060         gtk_target_table_new_from_list() and gtk_target_table_free(),
5061         which make converting between GtkTargetList and arrays of
5062         GtkTargetEntry considerably easier.
5063
5064         * gtk/gtktextutil.[ch]: added _gtk_text_util_create_rich_drag_icon()
5065         which creates a fancy rich text icon (Matthias Clasen).
5066
5067         * gtk/gtktextbuffer.[ch]: use all the new stuff above and
5068         implement copy and paste of rich text. Added APIs for getting the
5069         target lists used for copy and paste. Added public enum
5070         GtkTextBufferTargetInfo which contains the "info" IDs associated
5071         with the entries of the target lists.
5072
5073         * gtk/gtktextview.c: use the new rich text APIs and
5074         GtkTextBuffer's new target list API to enable DND of rich text
5075         chunks.
5076
5077         * gtk/gtk.symbols: export all the new symbols added.
5078
5079         * tests/testtext.c: added rich text testing stuff.
5080
5081 2006-03-06  Matthias Clasen  <mclasen@redhat.com>
5082
5083         * gtk/gtktextview.c (text_window_invalidate_cursors): Take
5084         cursor width into account when calculating the area to 
5085         be invalidated.  (#333377, #323401 Steve Frécinaux)
5086
5087         * gtk/gtkmain.c (post_parse_hook): Set error when returning
5088         FALSE.  (#333268, Paolo Maggi, Christian Persch)
5089         
5090         * gtk/gtkpixmap.c (gtk_pixmap_set): Check that the pixmap
5091         has the right depth.  (#333363, Ed Catmur)
5092
5093 2006-03-05  Matthias Clasen  <mclasen@redhat.com>
5094
5095         * gtk/gtkiconview.c (adjust_wrap_width): Apply some
5096         arbitrary lower limit for the guessed wrap width. (#332466,
5097         Donald Straney)
5098
5099 2006-03-05  Matthias Clasen  <mclasen@redhat.com>
5100
5101         Fix handling of image-only buttons.  (#332985, Kalle 
5102         Vahlmann, #333555)
5103         
5104         * gtk/gtkbutton.c (gtk_button_construct_child): Don't
5105         return early if there an image to show.
5106         (show_image): Always return TRUE if there is no text.
5107
5108 2006-03-04  Matthias Clasen  <mclasen@redhat.com>
5109
5110         * gdk/x11/gdkinput-x11 (gdk_input_translate_coordinates):
5111         Adjust the handling of min values for the x and y axes of 
5112         extended input devices  (#324562, #142536, Denis Auroux and 
5113         Robert Ã–gren)
5114
5115         * gtk/gtkexpander.c (gtk_expander_paint_focus): Position
5116         the focus rectangle correctly in RTL mode.  (#333291,
5117         Benjamin Berg)
5118
5119 2006-03-03  Tor Lillqvist  <tml@novell.com>
5120
5121         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_commit_char)
5122         (gtk_im_context_simple_reset): Avoid emitting superfluous
5123         preedit_changed signals. Thanks to Matthias. (#319407)
5124
5125 2006-03-03  Michael Natterer  <mitch@imendio.com>
5126
5127         Applied modified patch from maemo-gtk which makes separators more
5128         themeable. Fixes bug #332022.
5129
5130         * gtk/gtkwidget.c: added style properties "wide-separators",
5131         "separator-width" and "separator-height".
5132
5133         * gtk/gtkhseparator.c
5134         * gtk/gtkvseparator.c
5135         * gtk/gtkmenuitem.c
5136         * gtk/gtktoolbar.c: honor the new settings and paint separators
5137         using gtk_paint_box() if wide-separators is true.
5138
5139 2006-03-02  Dom Lachowicz <cinamod@hotmail.com>
5140
5141         * modules/engines/ms-windows/msw_style.c: Fix combobox theming
5142         regression noted in bug 321301
5143         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
5144         
5145 2006-03-02  Matthias Clasen  <mclasen@redhat.com>
5146
5147         * gtk/gtkiconview.c (gtk_icon_view_layout) 
5148         (gtk_icon_view_row_inserted, gtk_icon_view_scroll_to_path): 
5149         Make scroll_to_path work for newly inserted items, by delaying
5150         the scroll until layout is done.  (#332923, Cory Dodt)
5151
5152         * gtk/gtkcolorbutton.c (render): Use GTK_WIDGET_IS_SENSITIVE,
5153         not GTK_WIDGET_SENSITIVE.  (#333133, Christian Persch)
5154
5155 2006-03-02  Ross Burton  <ross@openedhand.com>
5156
5157         * gtk/gtktooltips.c:
5158         Disable tooltips if gtk-touchscreen-mode is activated (#315112).
5159
5160 2006-03-01  Kristian Rietveld  <kris@imendio.com>
5161
5162         * gtk/gtktreeselection.c (row_is_selectable): rename to
5163         _gtk_tree_selection_row_is_selectable and export internally,
5164         (gtk_tree_selection_real_select_node): changed so it is always
5165         possible to unselect insensitive nodes, changed the logic a bit to
5166         be more clear.
5167
5168         * gtk/gtktreeprivate.h: add _gtk_tree_selection_row_is_selectable.
5169
5170         * gtk/gtktreeview.c (gtk_tree_view_row_changed): Unselect a row if
5171         it became insensitive.
5172
5173 2006-02-27  Federico Mena Quintero  <federico@novell.com>
5174
5175         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Check that
5176         the fontsel has a screen assigned before doing anything.  This
5177         will at least warn the caller of what is wrong, since we only
5178         populate the family_list until we get a screen.  Also, put the
5179         reference docs here.  Fixes bug #332756.
5180         (gtk_font_selection_dialog_get_font_name): Document this here.
5181         (gtk_font_selection_get_font_name): Document this here; mention
5182         that the font names get normalized, so the result of this function
5183         may not be the same as what you set with
5184         gtk_font_selection_set_font_name().
5185
5186 2006-02-27  Matthias Clasen  <mclasen@redhat.com>
5187
5188         * gtk/gtk.symbols:
5189         * gtk/gtktrayicon-x11.c: Fix symbol lists for make check.
5190
5191 2006-02-27  Michael Natterer  <mitch@imendio.com>
5192
5193         * gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the
5194         "Gtk/TouchscreenMode" XSettings property, remove trailing
5195         whitespace.
5196
5197         * gdk/x11/checksettings.c: #include <string.h> and sprinkled some
5198         newlines.
5199
5200 Mon Feb 27 14:52:50 2006  Tim Janik  <timj@imendio.com>
5201
5202         * gdkevents-x11.c:
5203         * gdksettings.c: moved and renamed the gdk_settings_names and 
5204         gdk_settings_map.
5205
5206         * gdk/x11/checksettings.c: test program for the gdk_settings_map array.
5207
5208         * gdk/x11/Makefile.am: run checksettings as part of make check.
5209
5210 2006-02-27  Matthias Clasen  <mclasen@redhat.com>
5211
5212         * gtk/gtkdnd.c (gtk_drag_get_cursor): Comment out some unused
5213         code, and fix the reference point of composited drag cursors.
5214         (#320132, Christian Neumair)
5215
5216 Sun Feb 26 10:24:10 PST 2006  Michael Emmel  <mike.emmel@gmail.com>
5217         
5218         *gdk/directfb/README
5219         Updated README to remove old build instructions
5220
5221 Sat Feb 25 10:35:23 PST 2006  Michael Emmel  <mike.emmel@gmail.com>
5222         
5223         *gdk/directfb/gdkdisplay-directfb.c
5224         *gdk/directfb/gdkwindow-directfb.c
5225         Added stubs for shape window functions to fix compile problems
5226
5227 2006-02-24  Federico Mena Quintero  <federico@novell.com>
5228
5229         * gtk/gtkfilechooserdefault.c (shortcuts_list_create): Make the
5230         column header visible, and make it be "_Places".  Changed the
5231         accessible object name to Places as well.  Fixes bug #331306.
5232         (file_pane_create): Do not create the path bar and "create folder"
5233         button here...
5234         (browse_widgets_create): ... but create them here instead.  This
5235         moves the path bar to be above both the hpaned, giving it the full
5236         width of the dialog.  Fixes bug #327733.
5237
5238 Thu Feb 23 13:28:21 2006  Tim Janik  <timj@imendio.com>
5239
5240         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): remove unconditional
5241         warnings about missing X locale support. Gdk properly handles this
5242         situation anyway.
5243
5244 Fri Feb 17 14:20:29 2006  Tim Janik  <timj@imendio.com>
5245
5246         * gtk/gtktreemodel.h: 
5247         * gtk/gtktextbtree.h: added G_GNUC_WARN_UNUSED_RESULT warnings for
5248         iterator functions, to avoid invalid iterators go unnoticed,
5249         suggested by Markku Vire <markku.vire@movial.fi>.
5250
5251 2006-02-23  Matthias Clasen  <mclasen@redhat.com>
5252
5253         * tests/Makefile.am: 
5254         * tests/testnotebookdnd.c: Add notebook DND tests.
5255
5256         * gtk/gtknotebook.h: Add a reorder_tab keynav signal and an
5257         insert_page vfunc to GtkNotebook.
5258
5259         * gtk/gtk.symbols:
5260         * gtk/gtknotebook.c: Support notebook DND. New API includes
5261         gtk_notebook_set_window_creation_hook, 
5262         gtk_notebook_[gs]et_group_id,
5263         gtk_notebook_[gs]et_tab_reorderable, 
5264         gtk_notebook_[gs]et_tab_detachable (#73240, Carlos Garnacho)
5265
5266 2006-02-23  Matthias Clasen  <mclasen@redhat.com>
5267
5268         * gtk/gtktextiter.c: Fix macro declaration
5269
5270         * gtk/gtkaboutdialog.c: Remove an accidentally included function.
5271
5272 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
5273
5274         * gtk/gtktextbtree.c: 
5275         * gtk/gtktextiter.c: Minor optimizations.  (#332059, Arnaud Charlet)
5276
5277         * gtk/gtkradiobutton.c (gtk_radio_button_clicked): Emit notify::active
5278         here, when changing the value of this property.  (#331651)
5279
5280         * gtk/gtknotebook.c: Apply a patch by Paolo Borelli to
5281         make the tab menu keynavigatable.  (#331440)
5282
5283 2006-02-22  Matthias Clasen  <mclasen@redhat.com>
5284
5285         * gtk/gtkaboutdialog.c: Change Close buttons to GTK_RESPONSE_CANCEL
5286         so Escape works. (#331940, Daniel Drake)
5287
5288 2006-02-22  Michael Natterer  <mitch@imendio.com>
5289
5290         * gtk/gtksettings.c: added boolean property gtk-touchscreen-mode,
5291         which essentially means "there are no motion notify events", so
5292         widgets can't use the pointer hovering them for anything.
5293
5294         * gtk/gtkmenu.c: if gtk-touchscreen-mode is TRUE, scroll menus
5295         when clicking the scroll arrows, since hovering goes undetected.
5296         Fixes bug #323028.
5297
5298         Added boolean style property "double-arrows" which always makes
5299         both scroll arrows visible when the menu is too long.
5300         For pushed-in popup menus, both arrows are always shown
5301         (regardless of double-arrows), in order to fix user confusion
5302         about the blank area. Fixes bug #129463.
5303
5304 2006-02-21  Kristian Rietveld  <kris@imendio.com>
5305
5306         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
5307         Make sure we always update the virtual root, also when ->priv->root
5308         is still NULL.  (Markku Vire)
5309
5310 2006-02-21  Anders Carlsson  <andersca@imendio.com>
5311
5312         * gdk/quartz/gdkselection-quartz.c:
5313         (make_list):
5314         (gdk_text_property_to_utf8_list_for_display):
5315         Add these from the win32 backend.
5316
5317 2006-02-20  Matthias Clasen  <mclasen@redhat.com>
5318
5319         * gtk/gtknotebook.c: Properly update internal state
5320         when child visibility changes.  (#331785, Sebastien Bacher)
5321
5322         * gdk/gdkgc.c (_gdk_gc_update_context): Obtain the
5323         background color from the gc when it is needed.  (#331820)
5324
5325 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
5326
5327         * gdk/gdkgc.c (_gdk_gc_update_context): Add a gc_changed
5328         argument, and avoid setting the clip region if the gc
5329         has not changed. 
5330
5331         * gdk/gdkgc.c: Update all callers.
5332
5333         * gdk/gdkpango.c (get_cairo_context): Avoid updating the
5334         context if nothing changed.
5335
5336 2006-02-20  Anders Carlsson  <andersca@imendio.com>
5337
5338         * gdk/quartz/gdkdisplay-quartz.c:
5339         (gdk_display_supports_shapes):
5340         (gdk_display_supports_input_shapes):
5341         * gdk/quartz/gdkwindow-quartz.c:
5342         (gdk_display_warp_pointer):
5343         (gdk_window_input_shape_combine_mask):
5344         (gdk_window_input_shape_combine_region):
5345         (gdk_window_set_child_input_shapes):
5346         (gdk_window_set_accept_focus):
5347         (gdk_window_merge_child_input_shapes):
5348         Add stubs for input shape functions.
5349
5350 2006-02-20  Anders Carlsson  <andersca@imendio.com>
5351
5352         * gdk/quartz/gdkevents-quartz.c:
5353         (get_keyboard_modifiers_from_nsevent):
5354         Fix typo so ctrl gets passed on to the gdk event.
5355         
5356         * gdk/quartz/gdkproperty-quartz.c:
5357         (gdk_atom_name):
5358         g_strdup the atom name.
5359
5360 2006-02-20  Tor Lillqvist  <tml@novell.com>
5361
5362         * gdk/win32/gdkdisplay-win32.c (gdk_display_supports_shapes):
5363         New function, return TRUE.
5364         (gdk_display_supports_input_shapes): New function, return FALSE.
5365
5366         * gdk/win32/gdkwindow-win32.c (do_shape_combine_region): New
5367         function. Factor out code from gdk_window_shape_combine_mask().
5368         (gdk_window_shape_combine_region): Actually do something. Convert
5369         region to a HRGN and call do_shape_combine_region().
5370         (gdk_window_input_shape_combine_mask)
5371         (gdk_window_input_shape_combine_region)
5372         (gdk_window_set_child_input_shapes)
5373         (gdk_window_merge_child_input_shapes): New functions, dummy
5374         implementations.
5375
5376 2006-02-20  Michael Natterer  <mitch@imendio.com>
5377
5378         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): adding boolean
5379         have_shapes and have_input_shapes members fixes the build.
5380
5381 2006-02-20  Tor Lillqvist  <tml@novell.com>
5382
5383         * gdk/win32/gdkfont-win32.c: Replace all calls to g_strcasecmp()
5384         with g_ascii_strcasecmp().
5385
5386 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
5387
5388         Support input shapes:  (#331070)
5389         
5390         * gdk/gdk.symbols: 
5391         * gdk/gdkdisplay.h: 
5392         * gdk/gdkwindow.h: 
5393         * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_shapes) 
5394         (gdk_display_supports_input_shapes): Functions to determine
5395         if a display supports shaped windows or input shapes.
5396
5397         * gdk/x11/gdkwindow-x11.c (gdk_window_input_shape_combine_region): 
5398         (gdk_window_input_shape_combine_mask): 
5399         (gdk_window_set_child_input_shapes): 
5400         (gdk_window_merge_child_input_shapes): Input shape versions
5401         of the window shape API.
5402
5403         * gtk/gtk.symbols: 
5404         * gtk/gtkwidget.h: 
5405         * gtk/gtkwidget.c (gtk_widget_input_shape_combine_mask): 
5406         New function to set an input shape on a widget.
5407
5408 2006-02-19  Matthias Clasen  <mclasen@redhat.com>
5409
5410         * gtk/gtklinkbutton.c (gtk_link_button_class_init): Fix
5411         a cast.
5412
5413 2006-02-17  Matthias Clasen  <mclasen@redhat.com>
5414
5415         DND keynav support:
5416         
5417         * gtk/gtkdnd.c (gtk_drag_update_idle): Protect against 
5418         info->last_event being NULL.
5419         (gtk_drag_key_cb): Handle arrow keys to move the drag icon
5420         and space or enter to drop.
5421
5422 2006-02-17  Matthias Clasen  <mclasen@redhat.com>
5423
5424         * gdk/gdkregion-generic.c (gdk_region_union_with_rect):
5425         Be robust and reject rectangles with negative width or
5426         height.  (#331467, Benjamin Berg)
5427
5428
5429 2006-02-17  Kristian Rietveld  <kris@imendio.com>
5430
5431         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
5432         Only update the virtual root if the child path is an ancestor
5433         of the virtual root.  (Patch from Markku Vire).
5434
5435 2006-02-16  Federico Mena Quintero  <federico@novell.com>
5436
5437         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call
5438         ::initial_focus() on the child before calling ::map() on our
5439         parent class.  This will prevent the shortcuts treeview from
5440         highlighting its first row as a result of getting assigned focus
5441         by gtk_dialog_map().
5442
5443 2006-02-14  Matthias Clasen  <mclasen@redhat.com>
5444
5445         * gtk/gtkwidget.c (gtk_widget_send_expose): Remove redundant
5446         check.  Pointed out by Bodo-Merle Sandor.
5447
5448         * gtk/gtkcolorbutton.c (gtk_color_button_[un]realize):
5449         Remove unnecessary checks.  
5450
5451 2006-02-12  Matthias Clasen  <mclasen@redhat.com>
5452
5453         * gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working
5454         examples in the docs.  (#330944, John Spray)
5455
5456 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
5457         
5458         * gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
5459         row_spacing/column_spacing confusion.  (#330732, Donald Straney)
5460
5461 2006-02-10  Matthias Clasen  <mclasen@redhat.com>
5462
5463         * gtk/gtkstyle.c: Add some docs. (#330073, Mart Raudsepp)
5464
5465         * gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected): 
5466         Guard against NULL.  (#330177, Raphael Slinckx)
5467
5468 2006-02-10  Murray Cumming  <murrayc@murrayc.com>
5469
5470         * docs/reference/gtk/tmpl/gtkcomboboxentry.sgml: Mention that 
5471         the changed signal is emitted when typing - not just when 
5472         selecting from the list. Suggest use of GtkEntry::action to 
5473         etect end of typing.
5474          gtk/gtkcombobox.c: (gtk_combo_box_class_init): changed signal 
5475         ocumentation: Mention that the GtkComboBoxEntry emits it when 
5476         he users types, not just when he selects from the list.
5477
5478 2006-02-10  Murray Cumming  <murrayc@murrayc.com
5479
5480         * gtk/gtkassistant.h: Correct the declaration of the prepare 
5481         default signal handler to match its registration and use.
5482
5483 2006-02-09  Ross Burton  <ross@burtonini.com>
5484
5485         * gtk/gtkfontbutton.c:
5486         Work out the font size in floating point, and display the font
5487         size with %g instead of %d (#317590)
5488
5489 2006-02-09  Tor Lillqvist  <tml@novell.com>
5490
5491         * gdk/win32/gdkevents-win32.c (gdk_event_translate)
5492         <WM_MOUSELEAVE>: If we don't know where we went, and have
5493         generated a leave event, set current_window to the root
5494         window. This assures we will generate proper enter and leave
5495         events for popup windows. (#325521)
5496
5497 2006-02-08  John Ehresman  <jpe@wingware.com>
5498
5499         * gdk/win32/gdkevents-win32.c (gdk_event_translate)
5500         <WM_MOUSEACTIVATE>
5501         * gdk/win32/gdkwindow-win32.c (show_window_internal)
5502         (gdk_window_raise): Call SetWindowPos() instead of
5503         SetForegroundWindow() or BringWindowToTop() if the window
5504         shouldn't accept focus. (#327375)
5505         
5506 2006-02-08  John Ehresman  <jpe@wingware.com>
5507
5508         * gdk/win32/gdkwindow-win32.c: Let gdk_window_set_decorations()
5509         take precedence over anything derived from hints. Restructure
5510         related code and logic, add some new helper functions. (#327217)
5511
5512 2006-02-08  Matthias Clasen  <mclasen@redhat.com>
5513
5514         * gtk/gtkfilechooserbutton.c: Don't put relevant callss
5515         in g_assert().  (#329876, Kristian Rietveld)
5516
5517 2006-02-08  Tor Lillqvist  <tml@novell.com>
5518
5519         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab)
5520         (gdk_display_pointer_ungrab, gdk_keyboard_grab)
5521         (gdk_display_keyboard_ungrab): Consistenly use assign_object()
5522         when assigning GdkWindow pointers so that the ref counting doesn't
5523         get off whack.
5524
5525         (handle_stuff_while_moving_or_resizing): Don't use deprecated API.
5526
5527         (gdk_event_translate) <WM_MOUSEMOVE>: When the pointer is grabbed
5528         with owner_events FALSE, generate enter and leave events only for
5529         the grab window. (#321054)
5530
5531 2006-02-08  Kristian Rietveld  <kris@imendio.com>
5532
5533         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_ref_path),
5534         (gtk_tree_model_filter_unref_path): free temporary paths after
5535         usage (patch from maemo-gtk),
5536         (gtk_tree_model_filter_clear_cache): fix little typo in the docs
5537         (patch from maemo-gtk).
5538
5539         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): remove
5540         stale FIXME.
5541
5542 2006-02-08  Matthias Clasen  <mclasen@redhat.com>
5543
5544         * gtk/gtkfilesystem.c (gtk_file_info_copy): Copy the display_key
5545         as well.  (#330389, Markku Vire)
5546
5547 2006-02-08  Tor Lillqvist  <tml@novell.com>
5548
5549         * gtk-zip.sh.in: Drop the timestamp from the zipfile names.
5550
5551 2006-02-07  Sven Neumann  <sven@gimp.org>
5552
5553         * gdk/directfb/AUTHORS: updated mine and Dok's email address.
5554
5555 2006-02-06  Kristian Rietveld  <kris@gtk.org>
5556
5557         * gtk/gtktreeview.c (gtk_tree_view_get_search_entry): fix compiler
5558         warning.
5559
5560 2006-02-05  Dom Lachowicz <cinamod@hotmail.com>
5561
5562         * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Bug #330022
5563         Wrong pixel values are computed when color = 0xFF and alpha = 0xFF
5564         
5565 2006-02-04  Michael Emmel  <mike.emmel@gmail.com>
5566         Added new directfb backend located in gdk/directfb
5567         plus patches to compile new backend
5568         compile with --with-gdktarget=directfb
5569
5570 2006-02-03  Federico Mena Quintero  <federico@ximian.com>
5571
5572         Work around https://bugs.freedesktop.org/show_bug.cgi?id=4320,
5573         which used to be our own
5574         http://bugzilla.gnome.org/show_bug.cgi?id=314616.  If one uses a
5575         pixmap for a pattern in Cairo, and sets the pattern to
5576         CAIRO_EXTEND_REPEAT; and if the destination surface is also a
5577         pixmap, Cairo does a slow copy instead of using XCopyArea().  So,
5578         we use the same code that we used in GTK+ 2.6 (pre-cairo), by
5579         filling the double-buffer pixmap with a tiled GC and
5580         XFillRectangle().
5581
5582         * gdk/gdkwindow.c (BackingRectMethod): New structure with a
5583         cairo_t and a GdkGC field.  Depending on which of these fields
5584         gets filled in, we'll use Cairo or GDK to clear the double-buffer
5585         pixmap when painting a window.
5586         (setup_backing_rect_method): Fill a BackingRectMethod as
5587         appropriate, depending on the window's configuration and our
5588         knowledge of whether Cairo is fast or slow when doing repeating
5589         patterns.
5590         (gdk_window_clear_backing_rect): Call
5591         setup_backing_rect_method().  Depending on what it returns, use
5592         Cairo to clear the double-buffer pixmap, or plain GDK.
5593
5594 2006-02-03  Matthias Clasen  <mclasen@redhat.com>
5595
5596         * gtk/gtklabel.c (get_layout_location): Fix handling
5597         of padding in RTL.  (#329099, Hooman Mesgary) 
5598
5599 2006-02-02  Matthias Clasen  <mclasen@redhat.com>
5600
5601         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display):
5602         Make drops on the root window work again.  (#145243, Andrew S. Dixon)
5603
5604 2006-02-01  Matthias Clasen  <mclasen@redhat.com>
5605
5606         * gtk/gtkwidget.c (gtk_widget_class_init): Wrap dnd signal
5607         docs to 80 columns.
5608
5609 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
5610
5611         * autogen.sh: Touch README and INSTALL here to pacify 
5612         automake.  (#329124, Kjartan Maraas, Tim Janik)
5613
5614 2006-01-31  Matthias Clasen  <mclasen@redhat.com>
5615
5616         * gtk/gtk.symbols:
5617         * gtk/gtkassistant.h: 
5618         * gtk/gtkassistant.c: Actually implement visibility handling,
5619         and add gtk_assistant_update_buttons_state.
5620
5621         * tests/testassistant.c: Test visibility handling.
5622
5623 2006-01-31  Kristian Rietveld  <kris@imendio.com>
5624
5625         * gtk/gtkstyle.c (gtk_default_draw_flat_box): Add support for row
5626         hinting for the selected state.
5627
5628 2006-01-30  Matthias Clasen  <mclasen@redhat.com>
5629
5630         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
5631         Make sure the tree view is realized, since we grab the
5632         focus to it.  (#329144, Wouter Bolsterlee)
5633
5634         * gtk/gtkspinbutton.h: 
5635         * gtk/gtkspinbutton.c: Add a wrapped signal.  (#322933,
5636         Carlos Garnacho Parro)
5637
5638         * gtk/gtkassistant.c: More generous spacing. (#328082,
5639         Christian Persch, patch by Carlos Garnacho)
5640         
5641         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_set_property): 
5642         Use the setter for active.  (#329208, Guillaume Cottenceau)
5643
5644         * docs/tools/widgets.c (get_all_widgets): Add GtkLinkButton
5645
5646         * gtk/gtkassistant.c (gtk_assistant_init): Move the
5647         last button to the left where it does not affect
5648         the positioning of forward/back.
5649
5650 2006-01-29  Matthias Clasen  <mclasen@redhat.com>
5651
5652         More GtkAssistant work, by Carlos Garnacho.
5653         
5654         * tests/testassistant.c: Additions.
5655
5656         * gtk/gtkassistant.c: Handle page visibility, other 
5657         small fixes.
5658
5659         * docs/tools/widgets.c: Add GtkAssistant.
5660
5661 2006-01-28  Behdad Esfahbod  <behdad@gnome.org>
5662
5663         * configure.in: If major.minor of required and available glib versions
5664         are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617)
5665
5666         * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
5667
5668 2006-01-28  Dom Lachowicz <cinamod@hotmail.com>
5669
5670         * modules/engines/ms-windows/msw-style.c: Re-sync with gtk-wimp
5671         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto
5672         
5673 2006-01-28  Matthias Clasen  <mclasen@redhat.com>
5674
5675         * gtk/gtk.symbols: 
5676         * gtk/gtklinkbutton.h: 
5677         * gtk/gtklinkbutton.c: Allow to set a global hook function
5678         thats called whenever a link button is clicked.
5679
5680         More work on GtkAssistant by Carlos Garnacho:
5681         
5682         * demos/gtk-demo/Makefile.am: 
5683         * demos/gtk-demo/assistant.c: Add a  GtkAssistant demo.
5684
5685         * gtk/gtkassistant.c: Handle focus, several small fixes to the
5686         flow computations.
5687
5688 2006-01-27  Federico Mena Quintero  <federico@ximian.com>
5689
5690         Fixes bug #328820:
5691
5692         * gtk/gtkfilechooserdefault.c
5693         (gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up
5694         the location dialog populated to "/".
5695         (tree_view_keybinding_cb): Likewise.
5696         (trap_activate_cb): Likewise.
5697
5698 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
5699
5700         * gtk/gtkcalendar.c (gtk_calendar_size_request): Use translated format
5701         strings for L10n in size calculation too.
5702
5703         * gtk/gtkcalendar.c (calendar_paint_week_numbers): Expand buffer to
5704         accomodate localized digits.
5705
5706 2006-01-26  Matthias Clasen  <mclasen@redhat.com>
5707
5708         * tests/prop-editor.c: Introspect child properties. too.
5709
5710 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
5711
5712         * gtk/gtkcalendar.c (calendar_paint_week_numbers, calendar_paint_day):
5713         Use contexed translated strings calendar:week:digits|%d and
5714         calendar:day:digits|%d to let translators choose localized digits for
5715         week and day numbers. (bug #317171, Hamed Malek)
5716
5717 2006-01-25  Behdad Esfahbod  <behdad@gnome.org>
5718
5719         * gtk/gtklabel.c (get_layout_location): Use logical extents of the
5720         layout instead of ink extents.  According to Pango docs, that's what
5721         should be used for placement.  Moreover, simply use
5722         pango_layout_get_pixel_size instead of getting the extents and
5723         dividing ourselves.
5724
5725 2006-01-25  Matthias Clasen  <mclasen@redhat.com>
5726
5727         * gtk/gtkentrycompletion.c: 
5728         * gtk/gtkentry.c: Be more careful when blocking signals. 
5729
5730         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): Only
5731         set the cursor size if it is != 0.
5732
5733         * gtk/gtksettings.c (gtk_settings_class_init): Change the default value
5734         of gtk-cursor-theme-size to 0, meaning "use default".
5735
5736 2006-01-24  Kristian Rietveld  <kris@gtk.org>
5737
5738         #322591, Jonathan Blandford.
5739
5740         * gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
5741         (gtk_tree_view_set_search_entry),
5742         (gtk_tree_view_get_search_position_func),
5743         (gtk_tree_view_set_search_position_func): New functions,
5744         and small adaptions to the tree view code to allow for setting
5745         the entry and search position function.
5746
5747         * gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
5748         typedef, which is now in gtktreeview.h as
5749         GtkTreeViewSearchPositionFunc.  Add/update fields.
5750
5751         * gtk/gtk.symbols: Add new functions.
5752
5753         * tests/testtreesort.c: Add a little test for _set_search_entry().
5754
5755 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
5756
5757         Add GtkLinkButton, a port of GnomeHRef.  (#314808, Emmanuele Bassi)
5758         
5759         * gtk/gtklinkbutton.h: 
5760         * gtk/gtklinkbutton.c: New files.
5761
5762         * gtk/gtk.h:
5763         * gtk/gtk.symbols: 
5764         * gtk/Makefile.am: Glue.
5765
5766         * gtk/gtkaboutdialog.c: Use GtkLinkButton.
5767         
5768         * gtk/gtkwidget.c: Add link-color and visited-link-color style
5769         properties.  (#113649, Leena Gunda)
5770
5771         * gtk/gtkaboutdialog.c: Use the new style properties here instead
5772         of the about dialogs own link-color property. 
5773
5774 2006-01-23  Kristian Rietveld  <kris@gtk.org>
5775
5776         * gtk/gtktreemodel.c (gtk_tree_model_base_init): don't copy
5777         tree paths when emitting signals. (#325041, Matthias Clasen).
5778
5779 2006-01-23  Behdad Esfahbod  <behdad@gnome.org>
5780
5781         * gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL
5782         text in ellipsized GtkLabel: use layout width if set, otherwise
5783         fallback to ink extents width. (#322042)
5784
5785 2006-01-23  Matthias Clasen  <mclasen@redhat.com>
5786
5787         * gtk/gtkassistant.c (compute_last_button_state): Only show the
5788         last button if we can jump to the end. 
5789         (gtk_assistant_init): Make the spacing and button order more
5790         HIG compliant.
5791
5792         Fix drawing issues in progress bars.  (#328081, Christian Persch)
5793         
5794         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Always
5795         request enough space. 
5796         (gtk_progress_bar_paint_activity) 
5797         (gtk_progress_bar_paint_continuous) 
5798         (gtk_progress_bar_paint_discrete): Clip when drawing the bar.
5799
5800 2006-01-23  Michael Natterer  <mitch@imendio.com>
5801
5802         * gtk/gtkcolorbutton.c: move destruction of the private GdkGC
5803         from finalize() to unrealize(). Fixes BadMatch on display change
5804         (bug #85715).
5805
5806 2006-01-22  Kristian Rietveld  <kris@gtk.org>
5807
5808         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Revert previous
5809         commit after more searching in the bugzilla archives (see #309221).
5810
5811 2006-01-22  Kristian Rietveld  <kris@gtk.org>
5812
5813         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Remove second call
5814         to gtk_tree_view_column_cell_set_cell_data, since we also set the
5815         cell data before iterating over the columns for exposure. (Fixes
5816         #322471, Duncan Coutts).
5817
5818 2006-01-21  Matthias Clasen  <mclasen@redhat.com>
5819
5820         * tests/testassistant.c: Add some tests for GtkAssistant
5821
5822         * tests/Makefile.am: Glue
5823
5824 2006-01-20  Matthias Clasen  <mclasen@redhat.com>
5825
5826         * gtk/gtkassistant.c: Fix the docs to reflect the actual signal
5827         signatures.
5828
5829         * gtk/gtktextview.c (gtk_text_view_set_virtual_cursor_pos): Don't
5830         crash if layout is NULL.  (#327934, Christian Kirbach)
5831
5832 2006-01-20  Dan Winship  <danw@novell.com>
5833
5834         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init,
5835         tree_view_keybinding_cb, trap_activate_cb): On "unix", pop up the
5836         "Open Location" window on "~" as well as "/". #153213
5837         (location_entry_create): Fix this so autocompletion still works
5838         correctly in that case.
5839
5840 2006-01-19  Matthias Clasen  <mclasen@redhat.com>
5841
5842         * configure.in: Explicitly link against Xrender.  
5843         (#327538, Christophe Belle)
5844         
5845         * gdk/x11/gdkprivate-x11.h (XID_FONT_BIT): 
5846         * gdk/x11/gdkfont-x11.c: 
5847         * gdk/x11/gdkxid.c: Use an unused high bit in the
5848         XID to mark fonts in the global xid hash table.
5849
5850         * gdk/x11/gdkcursor-x11.c (update_cursor): Skip fonts
5851         when iterating over the xid hash table, since calling
5852         GDK_IS_WINDOW () on an GdkFont can cause a segfault.
5853         (#327751, Ryan Lovett)
5854
5855 2006-01-19  Matthias Clasen  <mclasen@redhat.com>
5856         
5857         * gtk/gtkassistant.[hc]: Use a priv pointer for
5858         cheap access to the priv struct.  (#327725, Christian
5859         Persch)
5860
5861         * gtk/gtkassistant.h: Fix line endings.
5862
5863 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
5864
5865         * gtk/gtkassistant.[hc]: Add GtkAssistant, a widget to
5866         construct multi-step wizards.  (#115348, Martyn Russell, 
5867         Matthias Clasen, Carlos Garnacho Parro)
5868
5869         * gtk/gtk.symbols:
5870         * gtk/Makefile.am: 
5871         * gtk/gtk.h: Necessary glue.
5872
5873 2006-01-18  Anders Carlsson  <andersca@imendio.com>
5874
5875         * gdk/quartz/gdkevents-quartz.c:
5876         (get_mm_from_pixels):
5877         (gdk_screen_get_width_mm):
5878         (gdk_screen_get_height_mm):
5879         Implement these functions.
5880         (#327228, Thomas Broyer).
5881
5882 2006-01-18  Anders Carlsson  <andersca@imendio.com>
5883
5884         * gdk/quartz/gdkdrawable-quartz.c:
5885         (gdk_quartz_draw_polygon):
5886         (gdk_quartz_draw_lines):
5887         Implement these functions.
5888         (#327226, Thomas Broyer)
5889         
5890 2006-01-18  Anders Carlsson  <andersca@imendio.com>
5891
5892         * gdk/quartz/gdkkeys-quartz.c:
5893         (maybe_update_keymap):
5894         Support non-MacRoman keyboard layouts.
5895         (#322585, Wolfgang Thaller)
5896         
5897 2006-01-18  Anders Carlsson  <andersca@imendio.com>
5898
5899         * gdk/quartz/gdkmain-quartz.c:
5900         (_gdk_windowing_init):
5901         Make the process a foreground application.
5902         (#322481, Wolfgang Thaller)
5903         
5904 2006-01-18  Matthias Clasen  <mclasen@redhat.com>
5905
5906         * gtk/gtkrbtree.c: 
5907         * gtk/gtktreemodel.c: Fix several g_new() calls which
5908         were using extra indirections or pointless casts.  
5909         (#327423, Morten Welinder)
5910
5911 Tue Jan 17 19:27:59 2006  Tim Janik  <timj@imendio.com>
5912
5913         * gtk/gtkprogress.c: fix adopted from maemo-gtk.
5914         gtk_progress_create_pixmap(): clear out the newly created offscreen 
5915         pixmap, so themes making use of transparency don't draw onto garbage.
5916
5917 2006-01-17  Michael Natterer  <mitch@imendio.com>
5918
5919         * gtk/gtkbutton.c: remove the "child-spacing" style property again
5920         and add "inner-border" instead. That's far more flexible and
5921         "child-spacing" was a bad name anyway.
5922
5923 2006-01-17  Michael Natterer  <mitch@imendio.com>
5924
5925         * configure.in (ALL_LINGUAS): remove "ang" again until all po
5926         files are there.
5927
5928 2006-01-16  Abel Cheung  <maddog@linuxhall.org>
5929
5930         * configure.in: Added "ang" "zh_HK" to ALL_LINGUAS.
5931
5932 2006-01-16  Matthias Clasen  <mclasen@redhat.com>
5933
5934         * README.in: Mention new pixbuf engine features.
5935
5936         * gtk/gtk.symbols: 
5937         * gtk/gtkradioaction.[hc]: Add a current-value property and a
5938         setter for it.  (#322735, Jorn Baayen)
5939         
5940 2006-01-16  Michael Natterer  <mitch@imendio.com>
5941
5942         * gtk/gtkbutton.c: applied patch from maemo-gtk which adds a
5943         child-spacing style property. Fixes bug #327202.
5944
5945 2006-01-16  Anders Carlsson  <andersca@imendio.com>
5946
5947         * gdk/quartz/gdkdisplay-quartz.c:
5948         * gdk/quartz/gdkevents-quartz.c:
5949         (gdk_keyboard_grab):
5950         (gdk_display_keyboard_ungrab):
5951         (gdk_keyboard_grab_info_libgtk_only):
5952         (find_window_for_event):
5953         Implement keyboard grabs.
5954         
5955         (_gdk_quartz_send_map_events):
5956         * gdk/quartz/gdkmain-quartz.c:
5957         * gdk/quartz/gdkprivate-quartz.h:
5958         New function that synthesizes map events.
5959         
5960         * gdk/quartz/gdkwindow-quartz.c:
5961         (_gdk_windowing_window_init):
5962         The root window is always visible.
5963         
5964         (all_parents_shown):
5965         (show_window_internal):
5966         Send map events.
5967         
5968         (gdk_window_hide):
5969         Ungrab keyboard and pointer
5970
5971 2006-01-15  Kristian Rietveld  <kris@gtk.org>
5972
5973         Fixes #324099, Tommi Komulainen.
5974
5975         * gtk/gtktreestore.[ch] (gtk_tree_store_insert_with_values),
5976         (gtk_tree_store_insert_with_valuesv): new functions, analog to
5977         those found in GtkListStore.
5978
5979         * gtk/gtktreestore.c (gtk_tree_store_real_set_value),
5980         (gtk_tree_store_set_valist), (gtk_tree_store_set_valist_internal),
5981         (gtk_tree_store_sort_iter_changed): refactored.
5982
5983         * gtk/gtk.symbols: updated.
5984
5985         * tests/treestoretest.c: added a test for this new functionality.
5986
5987 2006-01-14  Matthias Clasen  <mclasen@redhat.com>
5988
5989         * gtk/gtkentry.c (gtk_entry_drag_data_received): Remove 
5990         an unused variable.
5991
5992         * gtk/gtkiconfactory.c (get_default_icons): Register RTL 
5993         versions of the indent and unindent icons.  (#326857,
5994         Itai Bar-Haim)
5995
5996         * gtk/Makefile.am (STOCK_ICONS): And add them here.
5997
5998         Fix a crash with combo boxes in RESIZE_IMMEDIATE
5999         containers.  (#326806, Sebastian Bacher)
6000         
6001         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate) 
6002         (gtk_combo_box_size_request): Don't call 
6003         gtk_combo_box_check_appearance() from here, as that 
6004         can lead to recursion. 
6005         (gtk_combo_box_init): Instead, call it here.
6006
6007 2006-01-14  Kristian Rietveld  <kris@gtk.org>
6008
6009         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_iter_children): fix
6010         a typo which caused this whole thing to not function ...
6011
6012 2006-01-14  Kristian Rietveld  <kris@gtk.org>
6013
6014         * gtk/gtktreeview.c (gtk_tree_view_size_allocate),
6015         (validate_visible_area): fixup adjustments and top_row if the
6016         current dy + page_size exceeds the new tree view height. (Fixes
6017         #316689, reported by Chris Lord).
6018
6019 2006-01-13  Matthias Clasen  <mclasen@redhat.com>
6020
6021         * */abicheck.sh: Make this work on more platforms.
6022
6023 2006-01-13  Kristian Rietveld  <kris@imendio.com>
6024
6025         * tests/testtreefocus.c (set_indicator_size), (main): add a little
6026         test for the newly introduced indicator-size property.
6027
6028 2006-01-13  Kristian Rietveld  <kris@imendio.com>
6029
6030         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
6031         initialize the inconsistent field in the private structure,
6032         (gtk_cell_renderer_toggle_class_init),
6033         (gtk_cell_renderer_toggle_{set,get}_property),
6034         (gtk_cell_renderer_toggle_get_size): introduce a indicator-size
6035         property.
6036
6037 2006-01-13  Michael Natterer  <mitch@imendio.com>
6038
6039         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row)
6040         (gtk_tree_view_real_collapse_row): don't animate the expander
6041         arrows if gtk-enable-animations is FALSE (bug #142582).
6042
6043 2006-01-12  Matthias Clasen  <mclasen@redhat.com>
6044
6045         * gtk/gtknotebook.c: Replace hardcoded values for tab-overlap and
6046         tab-curvature with style properties.  (#325282, Alexander Nedotsukov)
6047
6048         * gtk/gtktextview.c (gtk_text_view_commit_text) 
6049         (gtk_text_view_delete_from_cursor, gtk_text_view_backspace): 
6050         Reset the virtual cursor position.  (#326003, Evert Verhellen)
6051
6052         * gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add some docs
6053         about RGBA windows. (#326486, Benjamin Otte)
6054
6055 2006-01-12  Michael Natterer  <mitch@imendio.com>
6056
6057         * gdk/gdkimage.c (scratch_image_info_for_depth): connect to the
6058         display's "closed" signal and free the cached scratch images upon
6059         display closing (bug #85715).
6060
6061 2006-01-12  Michael Natterer  <mitch@imendio.com>
6062
6063         * gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
6064         animation if the gtk-enable-animations setting is FALSE
6065         (bug #142582).
6066
6067 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
6068
6069         * gtk/gtklabel.c: Fix a C99ism (#326658, Kazuki Iwamoto)
6070
6071 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
6072
6073         * gtk/gtklabel.c: Add some notify batching, always
6074         emit notify after setting the new value.
6075
6076         * gtk/gtkmessagedialog.c: Add properties.  (#311254,
6077         Johan Dahlin)
6078         (gtk_message_dialog_new): Remove some redundant code, pointed
6079         out by Gustavo Carneiro.
6080
6081         * gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
6082         up properly if the grab fails.
6083         (finish_drag): Don't leak a reference to moveresize_window
6084         here.
6085
6086 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
6087
6088         * gdk/x11/gdkevents-x11.c: Fix string offsets.
6089
6090         Allow falling back to another icon theme before 
6091         hicolor.   (#325546, Rodney Dawes)
6092         
6093         * gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.
6094
6095         * gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.
6096         
6097         * gtk/gtkicontheme.c: Consult the fallback icon theme before
6098         looking in hicolor. 
6099
6100 2006-01-10  Matthias Clasen  <mclasen@redhat.com>
6101
6102         * tests/testgtk.c: Add an expander example.
6103
6104         * gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
6105         when losing the focus.  (#326064, Andrew Conkling)
6106
6107         * gtk/gtkimmulticontext.c: 
6108         * gtk/gtkhsv.c: 
6109         * gtk/gtkhandlebox.c: Convert to use instance private data.
6110
6111         * gtk/gtk.h: Remove duplicate include.  (#326429, 
6112         Benoît Carpentier)
6113
6114         * gtk/gtkpaned.c: Convert to use instance private data.
6115
6116 2006-01-10  Michael Natterer  <mitch@imendio.com>
6117
6118         * gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
6119         right object ("closed" is emitted by the display, not the screen).
6120         (bug #85715)
6121
6122 2006-01-10  Anders Carlsson  <andersca@imendio.com>
6123
6124         * gdk/quartz/gdkproperty-quartz.c:
6125         (ensure_atom_tables):
6126         (intern_atom_internal):
6127         (gdk_atom_intern):
6128         (gdk_atom_intern_static_string):
6129         (gdk_atom_name):
6130         Implement local-only atoms.
6131
6132 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
6133
6134         * gdk/gdkgc.c (gc_get_foreground): Correct a warning.
6135         (#326341, Benoît Carpentier)
6136
6137         * gtk/gtk.symbols:
6138         * gtk/gtkwindow.h:
6139         * gtk/gtkwindow.c (gtk_window_get_group): Make this function
6140         public API.  (#307099, Todd Berman)
6141
6142         * gtk/gtkmenu.c: 
6143         * gtk/gtkmain.c: 
6144         * gtk/gtkentrycompletion.c: 
6145         * gtk/gtkcombo.c: 
6146         * gtk/gtkcombobox.c: Update all callers.
6147
6148         * gtk/gtkentry.c (paste_received):  Make GtkEntryCompletion
6149         complete on pastes at the end.  (#165714, Christian Neumair)
6150
6151         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
6152         Prevent the first row being focused on map.  (#137351,
6153         Niklas Knutsson)
6154
6155 2006-01-09  Johan Dahlin  <jdahlin@async.com.br>
6156
6157         * gtk/gtk.symbols:
6158         * gtk/gtkeditable.h:
6159         * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
6160         * gtk/gtksizegroup.h:
6161         (struct _GtkSizeGroup): 
6162
6163         Add gtk_size_group_get_widgets, fixes #326324.
6164         Also mark all fields of GtkSizeGroup as private
6165
6166 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
6167
6168         * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
6169         leak preedit_string and preedit_attrs.  (#322332, Paolo
6170         Borelli)
6171
6172         * gtk/gtk.symbols:
6173         * gtk/gtkaction.h: 
6174         * gtk/gtkaction.c (gtk_widget_get_action): New function to
6175         get the action for a proxy.  (#326288)
6176
6177         * gtk/gtkaction.c: Go back to the old key for attaching the
6178         action to the proxy.  (#326288, Diego González)
6179
6180 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
6181
6182         * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
6183         empty strings.  (#326200, Christian Stimming)
6184
6185 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
6186
6187         * gtk/gtkentry.[hc]: 
6188         * gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
6189
6190         * gtk/gtklabel.c (get_layout_location): Fix label alignment 
6191         when width-chars is set.  (#326098, Benjamin Otte)
6192
6193         * gdk/gdkregion-generic.c (miRegionCopy): Fix this for the 
6194         single-rectangle case.  (#326127, Benjamin Berg)
6195         (gdk_region_copy): Use miRegionCopy() here.
6196
6197 2006-01-07  Matthias Clasen  <mclasen@redhat.com>
6198
6199         Fix actiongroup-action interaction that relied on 
6200         actions connecting to notify on themselves:
6201         
6202         * gtk/gtkaction.[hc]: Factor out the code updating the
6203         visibility/sensitivity of proxies into _gtk_action_sync_visible()
6204         and _gtk_action_sync_sensible().
6205
6206         * gtk/gtkactiongroup.c: Call the new functions when the
6207         group visibility/sensitivity changes. 
6208
6209 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
6210
6211         * gtk/gtkactiongroup.c (gtk_action_group_set_sensitive) 
6212         (gtk_action_group_set_visible): Add missing property change
6213         notification.
6214
6215 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
6216
6217         * gtk/gtkfilechooserbutton.c (model_add_special): Just use the
6218         directory name for the home dir.  (#325817, Federico Mena Quintero)
6219         
6220         * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
6221         to TRUE. 
6222         (gtk_text_tag_class_init): The default value for the direction 
6223         property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
6224         of the font and language properties.
6225
6226         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
6227         an action signal.  (#325782, Martyn Russell)
6228
6229         * gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
6230         the old adjustments signals.  (#325869, Jorn Baayen)
6231
6232 2006-01-06  Hans Breuer  <hans@breuer.org>
6233
6234         * tests/makefile.msc : added a bunch of tests
6235         * tests/testcellrenderertext.c : use g_snprintf()
6236         * tests/testfilechooserbutton.c : don't include unistd.h twice.
6237         Removed the unconditional one and added direct.h for G_OS_WIN32
6238         
6239 2006-01-05  Hans Breuer  <hans@breuer.org>
6240
6241         * gdk/makefile.msc : also recurse into win32 for ::clean
6242         * gtk/makefile.msc.in : create gtkbuiltincache.h (most code
6243         to simulate links) and file renames
6244
6245 2006-01-05  Johan Dahlin  <jdahlin@async.com.br>
6246
6247         * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
6248         instead of -G_MAXUINT.
6249         
6250 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
6251
6252         * gtk/gtkwindow.c: Only connect to the event if we have
6253         a frame, since the handler is only relevant in that case.
6254
6255         * gtk/gtkaction.c (connect_proxy, disconnect_proxy): 
6256         Use a weak reference rather than the destroy signal to track 
6257         proxies going away.
6258
6259         * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
6260
6261         * gtk/gtkaction.c (gtk_action_sync_property): 
6262         (gtk_action_sync_stock_id): Removed.
6263
6264 2006-01-05  Rodrigo Moya <rodrigo@novell.com>
6265
6266         * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
6267         signal and arguments.
6268
6269 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
6270
6271         * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
6272         a void function.
6273
6274 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
6275
6276         * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
6277         changes.
6278         
6279         * gtk/gtkbindings.c: Use the slice allocator and allocate signal
6280         and arguments in one block.
6281
6282         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
6283         a list of NULLs.  (#325723, Steve Chaplin)
6284
6285 2006-01-04  Rodrigo Moya <rodrigo@novell.com>
6286
6287         * gtk/gtkbindings.c (binding_signal_new): guard against multiplying
6288         by -1 (when n_args is 0).
6289
6290 2006-01-04  Michael Natterer  <mitch@imendio.com>
6291
6292         * gtk/gtkmenutoolbutton.c
6293         (gtk_menu_tool_button_set_menu)
6294         (gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
6295         and gtk_menu_detach() instead of reffing/unreffing the menu
6296         manually. Also fixes brokenness on screen change (bug #85715).
6297
6298 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
6299
6300         * gtk/gtkaccelmap.c: 
6301         * gtk/gtkactiongroup.c: 
6302         * gtk/gtkdialog.c: 
6303         * gtk/gtkfilesystemunix.c: 
6304         * gtk/gtkgc.c: 
6305         * gtk/gtkkeyhash.c: 
6306         * gtk/gtkplug.c: 
6307         * gtk/gtktextiter.c: 
6308         * gtk/gtktextlayout.c: 
6309         * gtk/gtkuimanager.c: 
6310         * gtk/gtkwidget.c: 
6311         * gtk/gtkwindow.c: 
6312         * gtk/gtkxembed.c: Use the slice allocator for many small 
6313         allocations.
6314
6315         * gtk/gtkcolorsel.c: 
6316         * gtk/gtktreeview.c: Use IPN.
6317
6318         * gtk/gtkwidget.c: Remove an unused field from the AccelPath 
6319         struct.
6320
6321 2006-01-04  Tor Lillqvist  <tml@novell.com>
6322
6323         * gtk-zip.sh.in: Include also the gtk20-properties message catalogs.
6324
6325 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
6326         
6327         * gtk/gtkdnd.c: Make it compile
6328
6329         * gtk/gtkdnd.c (gtk_drag_begin_internal): Call gtk_drag_update
6330         for non-motion events.  (#325443, Peter Harvey)
6331
6332         * gtk/gtkaction.c: Avoid connecting to notify on our own
6333         properties. 
6334
6335 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
6336
6337         * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
6338         words, delete preceding whitespace as well.  (#325358,  Akkana Peck)
6339
6340 2006-01-02  Anders Carlsson  <andersca@imendio.com>
6341
6342         * gdk/quartz/GdkQuartzWindow.c:
6343         (-[GdkQuartzWindow canBecomeMainWindow]):
6344         (-[GdkQuartzWindow canBecomeKeyWindow]):
6345         Have these return TRUE
6346         
6347         * gdk/quartz/gdkevents-quartz.c:
6348         (pointer_grab_internal):
6349         Remove FIXME
6350         
6351         (find_child_window_by_point_helper):
6352         Fix bug in offset calculation
6353         
6354         (find_window_for_event):
6355         Use grab window toplevel when a grab is in effect
6356         
6357         (gdk_event_translate):
6358         Don't call _gdk_event_button_generate on mouse up
6359         
6360         * gdk/quartz/gdkgc-quartz.c:
6361         (_gdk_quartz_gc_new):
6362         Fix indentation
6363         
6364         * gdk/quartz/gdkwindow-quartz.c:
6365         (gdk_window_new):
6366         Make TEMP windows borderless
6367         
6368         (gdk_window_hide):
6369         Hide window
6370         
6371         (gdk_window_get_origin):
6372         Implement
6373         
6374 2006-01-02  Tor Lillqvist  <tml@novell.com>
6375
6376         * gdk/win32/gdkwindow-win32.c
6377         (gdk_window_impl_win32_get_visible_region): Make identical to the
6378         X11 implementation. (#322264, John Ehresman)
6379
6380         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): Get the
6381         invalidated region from ScrollWindowEx() instead of an incorrect
6382         attempt to calculate it ourselves. Fix by John Ehresman. (#323666)
6383
6384         * gdkevents-win32.c: Make _gdk_win32_hrgn_to_region() non-static.
6385
6386         * gdkprivate-win32.h: Declare it.
6387
6388 2005-12-31  Matthias Clasen  <mclasen@redhat.com>
6389
6390         * gtk/gtkaction.c: 
6391         * gtk/gtkentry.c: Connect to notify instead of multiple
6392         detailed signals.
6393
6394 2005-12-30  Matthias Clasen  <mclasen@redhat.com>
6395
6396         * gdk/gdk.symbols: 
6397         * gdk/gdkcairo.h: 
6398         * gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap.  (#318805,
6399         Alexander Larsson)
6400
6401         * gdk/gdkdisplaymanager.c (gdk_display_manager_set_property): Call
6402         gdk_display_manager_set_default_display() to change the default
6403         display.  (#153623, Stefan Kost)
6404
6405         * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
6406          (setup_type): Alert dialogs should not have titles and should 
6407         not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
6408         Dennis Cranston)
6409
6410 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
6411
6412         * gtk/gtkliststore.c: 
6413         * gtk/gtktreestore.c: Always call the get_path and get_iter
6414         implementations directly, rather than the current mixture whith
6415         some calls going through the GtkTreeModel interface.
6416
6417         * gtk/gtktreemodelsort.c: 
6418         * gtk/gtkliststore.c: 
6419         * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks
6420         in static functions.
6421         
6422         * gtk/gtktreedatalist.c: Use the slice allocater for 
6423         GtkTreeDataSortHeader.
6424
6425         * gtk/gtktreedatalist.h: 
6426         * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function.
6427
6428         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): 
6429         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): 
6430         * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
6431
6432 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
6433
6434         * gtk/gtkbindings.h (GtkBindingSignal): 
6435         * gtk/gtkbindings.c (binding_signal_new): Make the
6436         args a flexible array inside the struct, and allocate them
6437         together.
6438
6439 Wed Dec 28 00:45:46 2005  Tim Janik  <timj@gtk.org>
6440
6441         * gtk/gtkctree.c (row_delete): delete GtkCTreeRow as GtkCTreeRow, not
6442         clist rows which crashes in gslice later on.
6443
6444 2005-12-27  Federico Mena Quintero  <federico@ximian.com>
6445
6446         * gtk/gtkfilefilter.c (gtk_file_filter_filter): In the case for
6447         FILTER_RULE_PIXBUF_FORMATS, check that filter_info->mime_type is
6448         not NULL.  Fixes bug #317687.
6449
6450 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
6451
6452         * gdk/x11/gdkevents-x11.c (check_transform): Fix a typo.
6453         (gdk_screen_get_setting): Avoid relocations for the settings
6454         map.
6455
6456         * gdk/x11/gdkproperty-x11.c: Avoid relocations for the list
6457         of standard atoms.
6458
6459         * gtk/gtkbindings.c (gtk_binding_set_new): Avoid copying
6460         the set_name by interning it.
6461
6462 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
6463
6464         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
6465         before calling gdk_window_new().
6466
6467         * gtk/gtktextbtree.c: Use the slice allocator for some other small
6468         auxiliary structures as well.
6469
6470         * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
6471         docs.  (#324996)
6472
6473         * gtk/gtktextbtree.c (gtk_text_btree_get_tag_info) 
6474         (gtk_text_btree_remove_tag_info): Use the slice allocator for 
6475         tag info.
6476
6477         * README.in: Mention the stripping of (_F) suffixes.
6478
6479         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of 
6480         the form "(_<single character>)", since this is the preferred way
6481         for some languages to indicate accelerators.  (#323956, Yang Hong)
6482
6483         * gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
6484         setting.
6485         (gtk_label_grab_focus): And use it here to select the contents of
6486         the label when appropriate.
6487         (gtk_label_class_init): Use the same keybindings for select all/
6488         unselect all as GtkEntry and GtkTextView.
6489
6490         * gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
6491         focus, avoid leaving a selection in a label.
6492
6493 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
6494
6495         * gtk/gtkwindow.c: Documentation fixes.  (#324815, 
6496         Ross Burton)
6497
6498         * configure.in: Require GLib 2.9.2
6499
6500 2005-12-24  Matthias Clasen  <mclasen@redhat.com>
6501
6502         * gdk/gdkregion-generic.c: 
6503         * gdk/gdkpolyreg-generic.c: 
6504         * gdk/gdkregion.h: 
6505         * gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid 
6506         extra allocation for rectangular regions.
6507
6508 Thu Dec 22 18:53:14 2005  Tim Janik  <timj@gtk.org>
6509
6510         * gtk/gtkobject.[hc]: renamed GUnowned to GInitiallyUnowned.
6511
6512 Thu Dec 22 17:55:11 2005  Tim Janik  <timj@gtk.org>
6513
6514         * gtk/gtkobject.h: parent type fixups in structure declarations.
6515
6516 Thu Dec 22 16:01:27 2005  Tim Janik  <timj@imendio.com>
6517
6518         * gtk/gtkobject.c: derive GtkObject from GUnowned,
6519         so it initially has a floating reference count.
6520         gtk_object_class_init(): installa floating flag handler with
6521         libgobject, so for GtkObjects the flag is stored as GTK_FLOATING
6522         in the ->flags member.
6523
6524         * tests/floatingtest.c: test floating flag uses.
6525
6526 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
6527
6528         * gdk/gdkregion-generic.c: Use the slice allocator
6529         for regions. Still todo: avoid extra allocations for
6530         the single-rectangle case.
6531
6532         * gtk/gtksettings.c (gtk_settings_class_init): Update
6533         class_n_properties after installing color-hash, since
6534         other classes install settings, too.
6535
6536         * gtk/gtkctree.c: 
6537         * gtk/gtkclist.c: Fix some mistakes in the conversion
6538         from mem chunks to slice allocator.
6539
6540         * gtk/gtkiconview.c (adjust_wrap_width): Adjust the 
6541         wrap-width also if an explicit item width is set.  
6542         (#322475, Alex Graveley)
6543         
6544 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
6545
6546         * gtk/gtkiconview.c (gtk_icon_view_button_press): Reset 
6547         pressed_button to -1 after handling a double click, so that
6548         motion events occurring between here and the release event
6549         don't trigger DND.  (#324588, Dave Andreoli)
6550
6551 2005-12-19  Matthias Clasen  <mclasen@redhat.com>
6552
6553         * gtk/gtkcellrenderer.c: 
6554         * gtk/gtkselection.c: 
6555         * gtk/gtkcalendar.c: 
6556         * gtk/gtkitemfactory.c: 
6557         * gdk/gtkcombo.c: 
6558         * gdk/gdkpixbuf-render.c: Documentation updates
6559
6560         * gtk/gtktreemodel.c: 
6561         * gtk/gtkplug.c: 
6562         * gtk/gtkwindow.c: Documentation fixes.
6563
6564 2005-12-19  Michael Natterer  <mitch@imendio.com>
6565
6566         * gtk/gtkentry.c: implement boolean property "truncate-multiline"
6567         which, when enabled, truncates multi-line pastes or drops to their
6568         first line. Fixes bug #322252.
6569
6570         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): enable
6571         truncate-multiline here.
6572
6573 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
6574
6575         * gtk/gtksettings.c (get_color_hash): Don't crash if
6576         there is no color scheme.  (#324429, Diego Gonzalez)
6577
6578 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
6579
6580         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
6581         * gtk/gtkimmodule.c (gtk_im_module_load): 
6582         * gtk/gtkthemes.c (gtk_theme_engine_load): 
6583         * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
6584         opening modules.
6585
6586         * gtk/gtksettings.[hc]: Rework the way the color scheme setting
6587         is inherited. Now the overriding is done on a per-color basis,
6588         rather than for the setting as a whole. This has the effect
6589         that themes can declare defaults for all the symbolic colors they
6590         use by specifying a value for the gtk-color-scheme setting in 
6591         their rc file, while still allowing the XSetting to override
6592         "standard" symbolic colors. The hash table is now available
6593         through the color-hash property.
6594         
6595         * gtk/gtkrc.c: Use the new color-hash property.
6596         
6597 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
6598
6599         * gtk/gtkcontainer.c (_gtk_container_focus_sort): Skip unrealized
6600         children when doing focus sorting.  (#323995, Dan Winship)
6601
6602 2005-12-14  Rodney Dawes  <dobey@novell.com>
6603
6604         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
6605         Default to "drive-harddisk" and then fall back to gnome-dev-harddisk
6606         (get_icon_for_mime_type): Look up the mime type icons according to the
6607         Icon Naming Specification and then fall back to the gnome-mime- prefix
6608         for the mime type icons
6609
6610         Fixes #323655
6611         
6612 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
6613
6614         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
6615         cannot be loaded.  (#323504, Kjartan Maraas)
6616
6617         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs 
6618         for the row-activated signal.  (#324044, Davyd Madeley)
6619
6620 2005-12-14  Michael Natterer  <mitch@imendio.com>
6621
6622         * tests/test-images/valid_jpeg_progressive_test: new test image.
6623
6624 Tue Dec 13 09:47:20 2005  Tim Janik  <timj@gtk.org>
6625
6626         * README.in: added a link to the floating reference docs in the
6627         2.10 release NEWS section.
6628
6629 2005-12-12  Matthias Clasen  <mclasen@redhat.com>
6630
6631         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index): 
6632         Speed this function up, using the fact that visibility is 
6633         constant across segments. (#321548, Paolo Borelli)
6634
6635         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
6636         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up
6637         stepping backwards.  (#320638, Larry Ewing, Paolo Borelli)
6638
6639         * gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
6640         _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
6641         upon initial theme load.  (#323876, Peter Lund)
6642
6643         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Register
6644         the size-changed signal correctly.  (#323848, Murray Cumming)
6645
6646         * gtk/gtkmarshalers.list: Add necessary marshaller.
6647
6648         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
6649         fall thru to the wrong window types.  (#323843)
6650
6651         Make the gtk-color-scheme setting work.
6652         
6653         * gtk/gtksettings.h: 
6654         * gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
6655         that takes care of initializing the color hash if it is not 
6656         already there.  
6657
6658         * gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get): 
6659         And use it here.        
6660
6661 2005-12-10  Matthias Clasen  <mclasen@redhat.com>
6662
6663         * gdk/gdk.c (gdk_parse_args): Warn if parsing fails,
6664         not if it succeeds. 
6665
6666 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
6667
6668         * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
6669         leak list[0].  (#323629, Markku Vire)
6670
6671         * gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
6672         when freeing the RequestData.  (#323577)
6673
6674 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
6675
6676         * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
6677         leak text.
6678
6679         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
6680         variable name clash.  (#323475, Ross Burton)
6681
6682 2005-12-07  Ross Burton  <ross@burtonini.com>
6683
6684         * docs/reference/gtk/tmpl/gtkenums.sgml:
6685         * gtk/gtktoolbutton.c:
6686         If the toolbar mode is ICONS and there is no icon set then show
6687         the label, and vice versa (#322019)
6688
6689 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
6690
6691         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
6692         variable name clash.  (#323475, Ross Burton)
6693
6694         * gtk/gtktreeview.c (gtk_tree_view_key_press): Use the correct
6695         window when synthesizing the key event.  (#323077,
6696         Sadrul Habib Chowdhury)
6697         
6698         (gtk_tree_view_search_key_press_event): Also listen for
6699         GDK_ISO_Left_Tab.  (#323077, Sadrul Habib Chowdhury)
6700
6701         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler): 
6702         Only scroll if we have focus.  (#316310, Paolo Borelli)
6703
6704         * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
6705         spotted by Crispin Flowerday.
6706
6707 2005-12-06  Behdad Esfahbod  <behdad@gnome.org>
6708
6709         * gtk/gtksettings.c (settings_update_font_options): Turn metrics
6710         hinting on (part of #307196)
6711
6712 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
6713
6714         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't
6715         commit from reset, it upstets GtkTextView.
6716
6717         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more
6718         careful when turning blinking on and off.
6719         (gtk_text_view_focus_out_event): Make the cursor really invisible
6720         when the focus goes away.  (#323087, Sadrul Habib Chowdhury)
6721         (cursor_blinks): Check the gtk-cursor-blink setting first.
6722
6723         * gtk/gtktreeview.c (gtk_tree_view_key_press): Fix refcounting
6724         issues with new_event and its window.
6725
6726         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Accept NULL
6727         as a detach func.  (#323386, Jorn Baayen)
6728
6729         * gtk/gtkcalendar.c: Avoid conflict with win32 headers in
6730         the libdate routines.  (#323045, Kazuki Iwamoto)
6731
6732         * gdk/gdk.c (gdk_parse_args): 
6733         * gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
6734         from g_option_context_parse(). 
6735
6736 Tue Dec  6 11:37:59 2005  Tim Janik  <timj@gtk.org>
6737
6738         * gdk/gdkevents.c (gdk_event_new): fix missing hash table 
6739         initialization.
6740
6741 Tue Dec  6 10:32:17 2005  Tim Janik  <timj@gtk.org>
6742
6743         * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
6744         compiles again.
6745
6746 2005-12-05  Federico Mena Quintero  <federico@ximian.com>
6747
6748         * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
6749         modifiers", not "event->state && modifiers".  Patch by Sadrul
6750         Habib Chowdhury <imadil@gmail.com>.  Fixes bug #323073.
6751
6752 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
6753
6754         * gtk/gtkwidget.c: 
6755         * gtk/gtkuimanager.c: 
6756         * gtk/gtktreedatalist.c: 
6757         * gtk/gtktext.c: 
6758         * gtk/gtkmain.c: 
6759         * gtk/gtkitemfactory.c: 
6760         * gtk/gtkseparator.[hc]:
6761         * gtk/gtkclist.[hc]: 
6762         * gtk/gtkctree.c:
6763         * gtk/gtkgc.c: Use g_slice instead of mem chunks.
6764
6765 2005-12-05  Michael Natterer  <mitch@imendio.com>
6766
6767         * gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
6768         "timeout-initial", "timeout-repeat", "color-scheme" and
6769         "enable-animations" to X settings.
6770
6771 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
6772
6773         * gdk/gdkevents.c: 
6774         * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
6775
6776         * gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
6777         after sending it to the search entry.  (#323209, Crispin Flowerday)
6778
6779         * README.in: Add a note about GTK_FLOATING.
6780
6781         * gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
6782
6783 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
6784
6785         * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
6786         a pixbuf.  (#323024, Paolo Borelli)
6787
6788 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
6789
6790         * gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
6791         if mime_type is NULL.  (#322998, Sadrul Habib Chowdhury)
6792
6793 2005-12-02  Michael Natterer  <mitch@imendio.com>
6794
6795         * gtk/gtkmenu.c: applied modified patch from maemo-gtk which
6796         adds a "horizontal-padding" style property. Fixes bug #323036.
6797
6798 2005-12-01  Michael Natterer  <mitch@imendio.com>
6799
6800         Merged modified patch from maemo-gtk that allows to disable
6801         toolbar animations. Addresses bug #142582.
6802
6803         * gtk/gtksettings.c: added boolean property "gtk-enable-animations".
6804         (patch from Christian Neumair)
6805
6806         * gtk/gtktoolbar.c: don't animate toolbar changes if the settings
6807         property is FALSE. Replaced the individual "notify::foo"
6808         connections to GtkSettings by a single "notify" callback and
6809         dispatch internally.
6810
6811 2005-12-01  Michael Natterer  <mitch@imendio.com>
6812
6813         * gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
6814         assignment of widget_class->motion_notify_event
6815
6816 2005-11-29  Matthias Clasen  <mclasen@redhat.com>
6817
6818         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add 
6819         an active property.  (#322673, Jorn Baayen)
6820
6821         Properly handle model changes in GtkTreeSelection: (#322569,
6822         Milosz Derezynski)
6823         
6824         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): 
6825         Get a reference to the model, and stop the iteration if the model
6826         of the treeview is changed on the way.
6827
6828         * gtk/gtktreeprivate.h: 
6829         * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New 
6830         private function to emit the GtkTreeSelection::changed signal.
6831
6832         * gtk/gtktreeview.c (gtk_tree_view_set_model): Call 
6833         _gtk_tree_selection_emit_changed() when the model changes.
6834
6835 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
6836
6837         Fixes the critical warnings from bug #317999, thus fixing the bug
6838         completely:
6839
6840         * gtk/gtkfilechooserdefault.c
6841         (gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
6842         use _gtk_file_chooser_get_current_folder_path() instead of fetching the
6843         impl->current_folder directly.  The latter may be null if we are
6844         in RELOAD_NONE state.
6845
6846 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
6847
6848         Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
6849
6850         * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
6851         current_folder to the pending select paths here; the path bar will
6852         give it to us now.
6853         (path_bar_clicked): Add the child_path to the pending select paths
6854         here.
6855         (show_and_select_paths): Don't filter out folders.
6856         (show_and_select_paths): Don't take separate arguments for
6857         only_one_path and multiple paths.
6858
6859         * tests/autotestfilechooser.c (test_folder_switch_and_filters):
6860         New test about preserving the filters when we change folders.
6861
6862 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
6863
6864         * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
6865         -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
6866
6867         * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
6868         (connect_proxy): Buttons use the label property for stock ids.  (#322565,
6869         Milosz Derezynski)
6870
6871         * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
6872         handle the cell list and indices into it.  (#321856)
6873
6874 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
6875
6876         * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
6877         the timeout is done.  (#322291, Jean-Yves Lefort)
6878
6879 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
6880
6881         * gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
6882         F2 work for renaming bookmarks.  (#320822, Jaap A. Haitsma, patch
6883         by Paolo Borelli)
6884
6885 2005-11-28  Tor Lillqvist  <tml@novell.com>
6886
6887         * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
6888         Implement the conditional use of FlashWindowEx() properly for MSVC
6889         compilations. The code was confusingly assuming that if compiled
6890         with a "new" compiler, it will only be run on "new" Windows
6891         versions. We want it to run on "old" versions, too, even if
6892         compiled with a "new" compiler. There are two orthogonal issues:
6893         whether the compiler defines the necessary API in its headers, and
6894         whether it is present at run-time. (#318077)
6895
6896         * gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
6897         Windows to get the localized weekday and month names. strftime()
6898         in the Microsoft C library returns strings in the default codepage
6899         for the locale of the process, not the system codepage. Thus
6900         g_locale_to_utf8() isn't useable on the return value from
6901         strftime(). (#322603)
6902
6903 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
6904
6905         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup): 
6906         Fix an example.  (#322493, Elie De Brauwer)
6907         
6908         Fix two memory handling problems in GtkTreeView: (#322350, 
6909         Søren Sandmann)
6910         
6911         * gtk/gtktreeview.c (gtk_tree_view_destroy) 
6912         (gtk_tree_view_set_model): Remove all references to nodes in
6913         the old model.
6914         (gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
6915         before removing the children.
6916
6917         * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a 
6918         PangoLayout here.  (#322505, Paolo Borelli)
6919
6920 2005-11-27  Tor Lillqvist  <tml@novell.com>
6921
6922         Once again rework Win32 window decoration code. Doesn't break
6923         #104514. The dialogs in gtk-demo now have the same decorations and
6924         behaviour as on X11. Tried to fix #322516 but it seems very hard
6925         to make the trivial sample program there behave as expected. OTOH,
6926         simply moving the gtk_window_decorate() call in the #322516 sample
6927         program after the call to gtk_widget_show() helps...
6928             
6929         * gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
6930         the correct semantics. Each call to gdk_window_set_decorations()
6931         which calls this function is supposed to affect all decorations.
6932
6933         (decorate_based_on_hints): New function, looks at both geometry
6934         hints and type hint and sets window decorations based on
6935         that. Consolidate code from gdk_window_set_geometry_hints() and
6936         gdk_window_set_type_hint() here.
6937
6938         (gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
6939         decorate_based_on_hints().
6940
6941 2005-11-25  Dom Lachowicz <cinamod@hotmail.com>
6942
6943         * modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
6944         Includes improved menu icon spacing, [+]/[-] expander drawing,
6945         status-bar gippie drawing, and notebook tab drawing.
6946         
6947 2005-11-24  Michael Natterer  <mitch@imendio.com>
6948
6949         * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
6950         that used to hold signal handler IDs to two guint of padding.
6951
6952         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
6953         gulong here.
6954
6955         (gtk_toolbar_screen_changed): changed accordingly.
6956
6957 Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
6958
6959         * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
6960         in terms of the GObject floating/sink API.
6961
6962         * gtk/gtkaboutdialog.c:
6963         * gtk/gtkaction.c:
6964         * gtk/gtkcellview.c:
6965         * gtk/gtkclist.c:
6966         * gtk/gtkcolorsel.c:
6967         * gtk/gtkcombobox.c:
6968         * gtk/gtkfilechooserdefault.c:
6969         * gtk/gtkiconview.c:
6970         * gtk/gtkinvisible.c:
6971         * gtk/gtkitemfactory.c:
6972         * gtk/gtklayout.c:
6973         * gtk/gtkmenu.c:
6974         * gtk/gtkmenutoolbutton.c:
6975         * gtk/gtknotebook.c:
6976         * gtk/gtkprogress.c:
6977         * gtk/gtkrange.c:
6978         * gtk/gtkspinbutton.c:
6979         * gtk/gtkstatusicon.c:
6980         * gtk/gtktext.c:
6981         * gtk/gtktextview.c:
6982         * gtk/gtktoolbar.c:
6983         * gtk/gtktoolbutton.c:
6984         * gtk/gtktoolitem.c:
6985         * gtk/gtktreeitem.c:
6986         * gtk/gtktreeview.c:
6987         * gtk/gtktreeviewcolumn.c:
6988         * gtk/gtkuimanager.c:
6989         * gtk/gtkviewport.c:
6990         * gtk/gtkwidget.c:
6991         * gtk/gtkwindow.c:
6992         ported to use GObject's g_object_ref_sink().
6993
6994         * gtk/gtkcolorsel.c:
6995         * gtk/gtkfilechooserdefault.c:
6996         * gtk/gtkaboutdialog.c:
6997         fixed compiler warnings.
6998
6999 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
7000
7001         * gtk/gtksettings.c (gtk_settings_class_init): Add some docs
7002         about gtk-color-scheme.
7003
7004 2005-11-23  Behdad Esfahbod  <behdad@gnome.org>
7005
7006         * configure.in (enable_explicit_deps): Fix typo when checking
7007         libtool config deplibs_check_method. Moreover, enable explicit
7008         deps if we get anything other than pass_all from libtool. (part of
7009         #318750)
7010
7011 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
7012
7013         * gtk/updateiconcache.c (write_csource): Don't create a big
7014         string, since Visual C++ doesn't like strings longer than 64k. 
7015         (#322238, Kazuki IWAMOTO
7016
7017         * gtk/gtkentry.c: Include gtkimcontextsimple.h  (#322235,
7018         Kazuki IWAMOTO)
7019
7020 2005-11-23  Michael Natterer  <mitch@imendio.com>
7021
7022         * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
7023         windows on other screens (correctly remove all temporary
7024         references).
7025
7026 2005-11-23  Michael Natterer  <mitch@imendio.com>
7027
7028         Added symbolic themable colors. Patch is a merged version of
7029         proposals from Matthias and maemo-gtk. Fixes bug #114355.
7030
7031         * configure.in: require glib >= 2.9.1 for refcountable hashtables.
7032
7033         * gtk/gtksettings.c: added property "color-scheme" which is a
7034         string defining colors like "foreground:black\nbackground:grey".
7035         Automatically provide a name->GdkColor hash table mapping for the
7036         color scheme.
7037
7038         * gtk/gtkrc.[ch]: added list of color hashes that works like the
7039         list of icon factories. Append the color scheme hash from
7040         GtkSettings if it exists. Extended gtkrc syntax to allow defining
7041         and referencing of logical colors. Also allow to modulate colors
7042         in gtkrc by using arbitrary expressions of mix(), shade(),
7043         lighter() and darker(). Added internal function
7044         _gtk_rc_style_get_color_hashes().
7045
7046         * gtk/gtkstyle.[ch]: keep a private list of color hashes around.
7047         Get the list from _gtk_rc_style_get_color_hashes(). Export
7048         internal function _gtk_style_shade() (used by above color
7049         expressions). Added public API gtk_style_lookup_color() which
7050         looks up a logical color by name.
7051
7052         * gtk/gtk.symbols: add gtk_style_lookup_color
7053
7054         * tests/testgtkrc: use symbolic colors for making
7055         the scrollbars red.
7056
7057 2005-11-22  Michael Natterer  <mitch@imendio.com>
7058
7059         Made button-press timeouts which work like key repeat timeouts
7060         configurable. Addresses bug #142582:
7061
7062         * gtk/gtksettings.c: added properties "gtk-timeout-initial" and
7063         "gtk-timeout-repeat" which defalt to 200/20 (ms).
7064
7065         Use the values from GtkSettings instead of hardcoding them
7066         (the repeat value is either taken as-is for fast repeat or
7067         multiplied by 5 for slow repeat). Changed all places to use these
7068         two standard initial/repeat timings:
7069
7070         * gtk/gtkcalendar.c (unchanged 200/20)
7071         * gtk/gtknotebook.c (unchanged 200/100)
7072         * gtk/gtkpathbar.c (changed from 300/150 to 200/100)
7073         * gtk/gtkrange.c (changed from 250/100 to 200/100)
7074         * gtk/gtkspinbutton.c (unchanged 200/20)
7075
7076 2005-11-21  Anders Carlsson  <andersca@imendio.com>
7077
7078         * configure.in:
7079         * gtk/Makefile.am:
7080         * gdk/Makefile.am:
7081         * gdk/quartz/*:
7082         Add quartz backend.
7083         
7084         * docs/tools/Makefile.am:
7085         Only build docshooter when the X11 backend is used.
7086         
7087         * gtk/gtkplug-stub.c:
7088         Include gtkplug.h here.
7089         
7090         * gtk/gtksocket-stub.c:
7091         Include gtksocket.h here.
7092         
7093 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
7094
7095         * gtk/gtkinputdialog.c: Convert GtkInputDialog to 
7096         g_type_class_add_private.
7097
7098         * gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
7099
7100         * gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
7101
7102         * gtk/gtk.symbols:
7103         * gtk/gtkcombobox.[hc]: Add a tearoff-title property,
7104         with getter and setter.  (#316482, Olexiy Avramchenko)
7105
7106         * tests/testcombo.c (main): Test gtk_combo_box_set_title
7107
7108         * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
7109         pointed out by Michael Natterer.
7110
7111         Fix for bug #321542, Benedikt Meurer:
7112         
7113         * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
7114         Emit notify::active.
7115         
7116         (gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
7117         g_signal_emit, not g_signal_emit_by_name.
7118
7119 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
7120
7121         Fix crashes in connection with pathbar scrolling (#321560,
7122         Bogdan Nicula)
7123         
7124         * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons): 
7125         Stop scrolling when desensitising slider buttons.
7126         (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press): 
7127         And use it here.  
7128
7129         * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
7130         scrolling_down flag.
7131
7132 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
7133
7134         * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
7135         (#321777, Jens Granseuer)
7136
7137         * gtk/gtkaction.c (disconnect_proxy): Disconnect the
7138         sync callback for the visibility property.  (#321761,
7139         Philip Langdale)
7140
7141         Turn off input methods in invisible entries, since
7142         they are confusing.  (#317002, James Su)
7143         
7144         * gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
7145         methods if visibility changes.
7146         (popup_targets_received): Don't show the input method
7147         menu if the entry is invisible.  
7148
7149 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
7150
7151         * README.in: Add a note about range arrow sensitivity.
7152
7153         * perf/treeview.c: const correctness fixes
7154         found by Arjan van de Ven and gcc.
7155
7156 2005-11-16  Michael Natterer  <mitch@imendio.com>
7157
7158         * gtk/gtkimage.c (animation_timeout): call
7159         gtk_window_process_updates() so the animation keeps running even
7160         if the main loop is busy with sources that eat a lot of cpu with
7161         high priority. Fixes bug #321444.
7162
7163         (gtk_image_new_from_animation): document the fact that the
7164         animation will stop running if the main loop is busy with sources
7165         that have priorities higher than G_PRIORITY_DEFAULT.
7166
7167         * tests/testimage.c: added test case that shows an animation even
7168         though a cpu-eating idle function is running.
7169
7170 2005-11-16  Michael Natterer  <mitch@imendio.com>
7171
7172         * gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
7173         function which destroys the display's event source. Also removes
7174         the source from the global display_sources list and unrefs it.
7175
7176         * gdk/x11/gdkprivate-x11.h: declare the function.
7177
7178         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
7179         instead of half-destroying the source here.
7180
7181 2005-11-15  Matthias Clasen  <mclasen@redhat.com>
7182
7183         * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
7184         leak.  (#321032, Peter Zelezny)
7185
7186 2005-11-15  Michael Natterer  <mitch@imendio.com>
7187
7188         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
7189         display->xid_ht as late as possible (right before XCloseDisplay)
7190         because it still needs to be around when the display's screens are
7191         finalized. (#85715)
7192
7193 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
7194
7195         * gtk/gtkselection.c (gtk_selection_data_set_uris): Don't
7196         leak result.  (#321441, Tommi Komulainen)
7197
7198 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
7199
7200         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
7201         Don't crash if there is no builtin icon.
7202
7203 2005-11-14  Michael Natterer  <mitch@imendio.com>
7204
7205         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
7206         removed redundant calls to g_object_notify().
7207
7208 2005-11-13  Matthias Clasen  <mclasen@redhat.com>
7209
7210         * gdk/gdkcolor.c (gdk_color_parse): Documentation 
7211         improvements.  (#321338)
7212
7213         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
7214         limit an inclusive boundary.  (#321299)
7215
7216 2005-11-12  Michael Natterer  <mitch@imendio.com>
7217
7218         * gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
7219         rebuilt if needed.
7220
7221 2005-11-12  Dom Lachowicz <cinamod@hotmail.com>
7222
7223         * modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32 
7224         theme's handling of toolbars, handleboxes, and menubars more in-line
7225         with Microsoft's IE style.
7226         * modules/engines/ms-windows/*.c: Indentation cleanups
7227         
7228 2005-11-12  Matthias Clasen  <mclasen@redhat.com>
7229
7230         Make builtin icons work in gtk_window_set_icon_name() 
7231         (#321046, Maxim Udushlivy)
7232
7233         * gtk/gtkicontheme.c (insert_theme): Always insert the default
7234         theme.
7235         (ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
7236         from here.
7237         (theme_lookup_icon, find_builtin_icon): ...and not from here.
7238         (gtk_icon_theme_lookup_icon): Remove an unncessary assert.
7239         (gtk_icon_theme_get_icon_sizes): Also check builtin icons.
7240
7241 2005-11-12  Tor Lillqvist  <tml@novell.com>
7242
7243         * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
7244         dotfiles, no such convention on Win32. Just hide files with the
7245         hidden attribute. (#314627)
7246
7247 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
7248
7249         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
7250         check whether the path is a folder.  It is useful to bookmark
7251         files as well (e.g. todo.txt), and this will also help
7252         performance.
7253         (shortcuts_add_bookmark_from_path): Likewise.
7254         (shortcuts_activate_iter): Change folders or select files, as
7255         appropriate.
7256
7257 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
7258
7259         * tests/autotestfilechooser.c (main): Use
7260         g_log_set_default_handler() instead of explicitly setting a
7261         handler for each domain.
7262
7263         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
7264         the base path of the volume if it is mounted.
7265
7266 2005-11-11  Michael Natterer  <mitch@imendio.com>
7267
7268         Added per-stepper API for GtkRange's stepper sensitivity as
7269         discussed in bug #321056:
7270
7271         * gtk/gtkenums.h: added GtkSensitivityType which can be
7272         { AUTO, ON, OFF }.
7273
7274         * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
7275         and "upper-stepper-sensitivity" and public getters/setters for
7276         them. Changed stepper drawing to honor the new properties.
7277
7278         * gtk/gtk.symbols: added the new symbols.
7279
7280 2005-11-10  Matthias Clasen  <mclasen@redhat.com>
7281
7282         * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
7283         emit them when the popup is shown or hidden.  (#162531, Tommi
7284         Komulainen)
7285
7286         * tests/testcombo.c: Add an example of popuplating a combobox
7287         on click.
7288
7289         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
7290         erroneous semicolon.
7291
7292         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
7293         semicolon. 
7294
7295         Don't corrupt odd keymaps (#316638, Kean Johnston)
7296         
7297         * gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
7298         handle frobbing keymaps with odd numbers of syms/code.
7299         
7300         * gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to 
7301         frob the keymap.
7302
7303         Improve navigation to parent folders.  (#318444, Andrei Yurkevich)
7304         
7305         * gtk/gtkpathbar.[hc]: Add a child_path argument to
7306         the path_clicked signal.
7307         * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
7308         child_path, if it is provided.
7309         * gtk/marshalers.list (path_bar_clicked): Add the necessary
7310         glue.
7311
7312         * gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
7313         Kjartan Maraas)
7314         
7315         * gtk/gtk.symbols: 
7316         * gtk/gtktreeview.h: 
7317         * gtk/gtktreeview.c: Implement a getter for headers-clickable.
7318         (#163851, Richard Hult)
7319
7320 2005-11-10  Michael Natterer  <mitch@imendio.com>
7321
7322         Applied patch from maemo-gtk that addresses many issues wrt
7323         display migration and display closing (bug #85715).
7324
7325         * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
7326         default display to NULL when it's closed. Instead set the most
7327         recently opened display as new default (if one exists).
7328
7329         * gdk/gdkpango.c (on_renderer_display_closed): fixed signature
7330         of this callback.
7331
7332         * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
7333         exist before unrefing them.
7334
7335         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
7336         is closed, allow destruction of the root window.
7337
7338         * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
7339         dispose(), free stuff that was leaked before.
7340
7341         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
7342         the xsettings_client still exists before destroying it.
7343
7344         * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
7345         X resources.
7346
7347         * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
7348         dispose() implementation.
7349
7350         * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
7351         dispose() and check if it still exists before unrefing it. Set
7352         their pointers to NULL/None *after* upchaining in dispose(),
7353         because X11 implementations of members of the parent class still
7354         need them for their own destruction.
7355
7356         * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
7357         was g_error()ing when finalizing a visual.
7358
7359         * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
7360         get_clipboard_widget() because it would create the widget if it
7361         doesn't exist. Use g_object_get_data() directly instead.
7362
7363         * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
7364         of this callback.
7365
7366 2005-11-10  Simos Xenitellis  <simos@gnome.org>
7367
7368         * configure.in: Added Tatar (tt) to ALL_LINGUAS.
7369
7370 Wed Nov  9 16:29:42 2005  Tim Janik  <timj@imendio.com>
7371
7372         * gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
7373         to render its arrows insensitive when the adjustment is in
7374         its min or max position. this makes range arrow behaviour 
7375         consistent with spin button behaviour. (#321056)
7376
7377 2005-11-09  Tor Lillqvist  <tml@novell.com>
7378
7379         * gdk/gdkinternals.h
7380         * gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
7381         the GdkDebugFlag enum.
7382
7383         * gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
7384         this file instead of MISC. Now asking for MISC will give mainly
7385         window manipulation debugging output with the Win32 backend.
7386
7387 2005-11-09  Tor Lillqvist  <tml@novell.com>
7388
7389         * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
7390
7391         (_gdk_win32_get_adjusted_client_rect): Remove this two-line
7392         function which was used only in one place.
7393
7394         (get_outer_rect): Use _gdk_win32_adjust_client_rect().
7395
7396         (gdk_window_set_geometry_hints): If we have identical minimum and
7397         maximum size hints, remove the resize and maximize
7398         decorations/functions. (#104514)
7399
7400         If we have a maximum size hint, remove the maximize
7401         decoration/function but ensure the resize decoration/function is
7402         available. Otherwise ensure both resize and maximize
7403         decorations/functions are there.
7404
7405         (set_or_clear_style_bits): Factored out common code from
7406         gdk_window_set_decorations() and gdk_window_set_functions(). 
7407
7408         Hack the window style setting once more: Only touch the window
7409         style bits corresponding to the GdkWMDecoration or GdkWMFunction
7410         parameter bitmasks. Hopefully this finally is the correct thing to
7411         do. We used to clear all other bits than those that were being
7412         set, or set all other bits than those that were being cleared.
7413
7414         Take into account that adding or removing decorations leaves the
7415         window's outer size unchanged, i.e., the client area's size and
7416         position change. This is apparently not what we want, so change
7417         also the window's (outer) position and size appropriately so that
7418         the client area's position and size stay constant.
7419
7420         gtk-demo's color selector dialog is now non-resizable like on X11
7421         (I tested with metacity in GNOME). Torn off menus are shrinkable
7422         vertically but have a maximum size, and are not maximizable or
7423         minimizable, like on X11.
7424
7425         (gdk_window_set_decorations, gdk_window_set_functions): Let
7426         set_or_clear_decorations() do most of the job.
7427
7428         * gdk/win32/gdkprivate-win32.h: Remove declaration of
7429         _gdk_win32_get_adjusted_client_rect().
7430
7431 2005-11-09  Tor Lillqvist  <tml@novell.com>
7432
7433         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
7434         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
7435         gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
7436         type hint. Implement gdk_window_get_type_hint() by just returning
7437         the hint stored.
7438
7439 2005-11-09  Tor Lillqvist  <tml@novell.com>
7440
7441         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
7442         Remove code that has been permanently ifdeffed out for two years.
7443
7444 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
7445
7446         * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
7447         finalizing a gc.  (#320789, Nickolay V. Shmyrev)
7448
7449         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
7450         icons if they would make the request large enough to cause
7451         Xlib to loose the connection.  (#320909, Claudio Saavedra)
7452
7453 2005-11-08  Michael Natterer  <mitch@imendio.com>
7454
7455         * gdk/gdk.symbols
7456         * gdk/gdkwindow.h
7457         * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
7458         extracted from maemo-gtk). Fixes bug #320872.
7459
7460 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
7461
7462         * gtk/gtkfilechooserdefault.c (shortcuts_reorder): Don't
7463         looks the bookmark label when reordering.  (#320720, Jeremy Cook)
7464
7465         * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons.
7466         Don't grab focus when a slider button is pressed, instead, use
7467         a bit in the pathbar struct to determine whether to scroll up
7468         or down.  (#314486, Carlos Garnacho)
7469
7470         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
7471         Don't popup the completions if the focus has already been
7472         moved somewhere else.  (#319914, Christian Persch)
7473
7474         * gtk/gtktoolitem.c (_gtk_tool_item_toolbar_reconfigured): 
7475         Raise the drag_window after reconfiguring the 
7476         toolbar.  (#320803, Christian Persch)
7477
7478         * gtk/gtk.symbols: 
7479         * gtk/gtkfilechooserbutton.h: 
7480         * gtk/gtkfilechooserbutton.c: Add a focus-on-click property
7481         with setter and getter.  (#318945, Christian Persch)
7482         
7483 Mon Nov  7 16:15:16 2005  Tim Janik  <timj@imendio.com>
7484
7485         * configure.in: fixed missing $X_CFLAGS setup in case x11.pc is present.
7486
7487 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
7488
7489         * configure.in: Adjust to the stock icon changes.
7490         
7491 2005-11-07  Tor Lillqvist  <tml@novell.com>
7492
7493         * gdk/win32/gdkcursor-win32.c (pixbuf_to_hbitmaps_normal):
7494         Correct the calculation of maskstride. (#320152, Peter Zelezny)
7495         
7496 2005-11-06  Michael Natterer  <mitch@imendio.com>
7497
7498         * gtk/Makefile.am (icons): fixed rule to actually create the
7499         symlinks, erroring out if anything goes wrong.
7500
7501 2005-11-06  Tor Lillqvist  <tml@novell.com>
7502
7503         * gtk/updateiconcache.c (build_cache): Can't rename a file if the
7504         target exists on Win32. First rename the target temporarily, then
7505         if the renaming of the source to target fails, restore the
7506         original name for the target.
7507
7508         * gtk/Makefile.am: Use EXEEXT in the dependency on gtk-update-icon-cache.
7509
7510 2005-11-06  Tor Lillqvist  <tml@novell.com>
7511
7512         (pixbuf_to_hbitmaps_alpha_winxp): Use an 1-bit mask bitmap,
7513         like pixbuf_to_hbitmaps_normal().
7514         (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
7515         G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
7516         setting the G_WIN32_PRETEND_WIN9X environment variable.
7517         
7518 2005-11-06  Tor Lillqvist  <tml@novell.com>
7519
7520         Make icon masks work on Win98 (#320152, Peter Zelezny)
7521
7522         * gdk/win32/gdkcursor-win32.c (create_color_bitmap): Take also a
7523         parameter for the depth of the bitmap, so that this function can
7524         be used to create 1-bit bitmaps, too.
7525         (pixbuf_to_hbitmaps_normal): Create an 1-bit bitmap for the mask,
7526         and initialize it properly.
7527
7528 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
7529
7530         Store builtin stock icons in an icon cache, instead of
7531         populating a hash table with pixbufs at startup, to save both
7532         memory and startup time.
7533
7534         * gtk/stock-icons/*: Reorganize the icons in a directory structure
7535         suitable for gtk-update-icon-cache, and rename them to match the
7536         stock ids.
7537
7538         * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
7539         add _gtk_icon_cache_has_icon_in_directory().
7540
7541         * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
7542         to store the contents of the icon cache in a C header.
7543
7544         * gtk/gtkbuiltincache.h: Generated private header which contains 
7545         the icon cache for the builtin icons.
7546
7547         * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
7548         icons, and use that in addition to the hash table whenever
7549         builtin icons are searched.
7550
7551         * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
7552         use it for static stock ids. 
7553         (get_default_icons): Don't add the builtin
7554         icons to the icon theme, just register the stock ids.
7555         (render_fallback_image): Take the fallback image out of the
7556         builtin icon cache.
7557         
7558         * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add 
7559         the necessary machinery to rebuild gtkbuiltincache.h.
7560
7561 2005-11-04  Michael Natterer  <mitch@imendio.com>
7562
7563         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): applied patch
7564         from maemo-gtk that changes the mtime check for rc files from
7565         '>' to '!=', otherwise theme changes go unnoticed when turning
7566         back the clock (Tommi Komulainen).
7567
7568 2005-11-04  Tor Lillqvist  <tml@novell.com>
7569
7570         * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
7571         leak on Win32.
7572
7573 2005-11-03  Tor Lillqvist  <tml@novell.com>
7574
7575         * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
7576         the Win32 backend, check that GdkDisplay* parameters are equal to
7577         _gdk_display instead of using the unnecessarily general
7578         GDK_IS_DISPLAY().
7579
7580         (pixbuf_to_hbitmaps_alpha_winxp): Rename the variables for the
7581         color bitmap to have "color" in their name, for similarity with
7582         pixbuf_to_hbitmaps_normal(). Create a color bitmap for the mask,
7583         too, instead of creating a b&w bitmap with CreateBitmap(). Set up
7584         the mask bitmap's contents, ones for those pixels in the color
7585         bitmap where the alpha is zero, zero for other pixels. We used to
7586         use an uninitialized mask bitmap! This meant that icons and
7587         cursors created presumably worked more or less by accident.
7588         Totally blank icons with zero alpha everywhere (as used by
7589         gtktrayicon.c) definitely did not work as expected.
7590
7591         * gtk/Makefile.am: Include gtkstatusicon.c on all platforms.
7592
7593         * gtk/gtkstatusicon.c: Implement for Win32. Use code from
7594         gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
7595         necessary and can be removed from CVS. It has never been mentioned
7596         in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
7597         are used on Win32. One label widget is used (but never shown) as
7598         gtk_widget_render_icon() needs a widget.
7599
7600         Ifdefs used as necessary in several places. It might be cleaner to
7601         split out the backend-specific parts to separate files, or at
7602         least collect them into separate blocks in the file.
7603
7604         (wndproc): New function. Window procedure to monitor mouse events
7605         in the system tray icon. Call gtk_status_icon_button_press() as
7606         needed.
7607         (create_tray_observer): New function. Creates a hidden window that
7608         only serves as a tray icon message observer.
7609
7610         * tests/teststatusicon.c (icon_activated): Position the dialog
7611         with GTK_WIN_POS_CENTER.
7612         (do_quit): New function, hide and unref the GtkStatusIcon, and
7613         call gtk_main_quit().
7614         (popup_menu): Add a Quit menu item that calls do_quit().
7615         
7616 2005-11-02  Tor Lillqvist  <tml@novell.com>
7617
7618         * gdk/win32/gdkcolor-win32.c
7619         * gdk/win32/gdkscreen-win32.c
7620         * gdk/win32/gdkwindow-win32.c: Whitespace consistency
7621         fixes. Remove superfluous test for GdkWindow* parameters being
7622         non-NULL. Testing GDK_IS_WINDOW() is enough. As there is only one
7623         GdkScreen and one GdkDisplay in the Win32 backend, use those
7624         variables instead of the getter functions. For GdkDisplay* and
7625         GdkScreen* parameters, check that they are equal to the
7626         corresponding singleton variables instead of the more general
7627         GDK_IS_DISPLAY() or GDK_IS_SCREEN().
7628
7629 2005-11-02  Matthias Clasen  <mclasen@redhat.com>
7630
7631         * gtk/gtktextview.c: Remove some g_return_if_fail() from
7632         static functions, replace some others by g_assert().
7633         
7634         * gtk/gtktextview.c (selection_motion_event_handler) 
7635         (gtk_text_view_start_selection_drag): Keep track of the original
7636         selection boundaries during a drag selection, in order to correctly
7637         decide when to extend or shrink the selection.  (#320167,
7638         reported by Arvind S N, patch by Paolo Borelli)
7639
7640         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
7641         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace
7642         manual offset calculations by g_utf8_offset_to_pointer().
7643         (#320360, Paolo Borelli)
7644
7645 Tue Nov  1 16:18:24 2005  Tim Janik  <timj@imendio.com>
7646
7647         * gtk/gtkrbtree.[hc]: get rid of GAllocator usage, allocate and free 
7648         nodes via the g_slice_*() API.
7649         _gtk_rbtree_new(): fixed wrong node allocation via g_new().
7650
7651 2005-11-01  Tor Lillqvist  <tml@novell.com>
7652
7653         * gdk/win32/gdkprivate-win32.h
7654         * gdk/win32/gdkglobals-win32.c
7655         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
7656         pre-interned GdkAtoms and pre-registered clipboard formats. Sort
7657         their declarations, definitions and assignments into a more
7658         logical and consistent order.
7659
7660         * gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
7661         CF_ prefix for the predefined clipboard format names. Put quotes
7662         around registered format names to distinguish them.
7663         
7664         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
7665         immediately with a warning if the property type is STRING, TEXT,
7666         COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
7667         should never pretend to handle on Win32. Handle only UTF8_STRING
7668         here, other formats with delayed rendering. Use \uc1 instead of
7669         \uc0 when generating Rich Text Format for easier testability on
7670         XP, where WordPad misinterprets \uc0 encoded characters. Add more
7671         GDK_NOTE debugging output for Clipboard operations.
7672
7673         * gdk/win32/gdkselection-win32.c: Debugging printout improvements.
7674         (gdk_selection_convert): Don't pretent to handle STRING, just
7675         UTF8_STRING. Streamline error handling, don't unnecessarily have a
7676         GError which then isn't used for anything anyway if it gets set.
7677         (gdk_win32_selection_add_targets): Skip also STRING, TEXT,
7678         COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
7679
7680         * config.h.win32.in: Sync with what configure produces.
7681
7682         * configure.in: Don't look for X_PACKAGES unless building for
7683         x11. (#313986, John Ehresman)
7684
7685 2005-10-28  Erdal Ronahi  <erdal.ronahi@gmail.com>
7686
7687         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
7688                         Wondered why there was no ku there before??
7689
7690 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
7691
7692         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup
7693         window to the toplevels window group.  (#319912, Christian Persch)
7694
7695 2005-10-28  Kristian Rietveld  <kris@gtk.org>
7696
7697         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): fix
7698         stupid thinko.
7699
7700 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
7701
7702         * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix the anchor of the default
7703         drag cursors.  (#319200, Federico Mena Quintero)
7704
7705         * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
7706         Shift-G to go to the previous match, like firefox.  (#320061, Christian 
7707         Neumair)
7708
7709         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
7710         C99ism.  (#320000, Kazuki Iwamoto)
7711
7712         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Add the little 
7713         stars.  (#319985, Bastien Nocera)
7714
7715         * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): Return
7716         FALSE, so we don't flush repeatedly.  (#319151, Alexander Larsson)
7717
7718 2005-10-26  Michael Natterer  <mitch@imendio.com>
7719
7720         Fix bug #319974:
7721
7722         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
7723         make sure that setting any of pixbuf/stock-id/icon-name resets the
7724         others because they are mutually exclusive, and that unsetting any
7725         of them only resets the pixbuf and nothing else. Also added
7726         some missing g_object_notify().
7727
7728         (gtk_cell_renderer_pixbuf_get_property): simplified calls to
7729         g_value_set_object().
7730
7731         (gtk_cell_renderer_pixbuf_create_stock_pixbuf)
7732         (gtk_cell_renderer_pixbuf_create_named_icon_pixbuf): added
7733         g_object_notify ("pixbuf").
7734
7735 2005-10-27  Matthias Clasen  <mclasen@redhat.com>
7736
7737         * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more 
7738         careful about initializing cell_area.  (#319382, Tommi
7739         Komulainen)
7740
7741         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
7742         Ctrl-PageUp/PageDown.  (#318670, Christian Neumair)
7743
7744         * demos/gtk-demo/clipboard.c (paste_received): Only set the
7745         text if it is not NULL.  (#319930, Thomas Klausner)
7746
7747         * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
7748         loader before trying to get the pixbuf.  (#319930, Thomas Klausner)
7749
7750 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
7751
7752         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
7753         * gtk/gtkthemes.c (gtk_theme_engine_load): 
7754         * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY
7755         when dlopening modules.  (#319557, Laszlo Peter)
7756
7757 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
7758
7759         * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text
7760         segments when determining text direction.  (#319065, Tommi Komulainen)
7761
7762         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
7763         on duplicate destroy.  (#318953, Gustavo Carneiro)
7764
7765         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog): 
7766         Point out that destroy-with-parent is a bad idea for the dialog
7767         passed to this function.  (#318943, Christian Persch)
7768
7769         * */Makefile.am: use $(GLIB_MKENUMS) instead of 
7770         glib-mkenums.  (#318582, Damien Carbery)
7771
7772         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Clarify
7773         docs.  (#317682, Christian Neumair)
7774
7775         * gdk/x11/gdkdnd-x11.c: Remove an extra const which doesn't
7776         seem to affect the placement of the data in the readonly 
7777         section, and causes problems with some compilers.  (#317844)
7778
7779 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
7780
7781         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
7782         Fix some issues with background drawing in RTL.  (#318781,
7783         Eric Cazeaux)
7784
7785         * tests/Makefile.am:
7786         * tests/testentrycompletion.c: Apply a patch by Christian
7787         Persch to add property editors.
7788
7789         * gtk/gtkstatusicon.c: Emit activate on single-click,
7790         not on double-click, change proposed by Milosz Derezynski.
7791
7792 2005-10-25  Kristian Rietveld  <kris@gtk.org>
7793
7794         Fixes #311955, reported by Markku Vire; and a lot more.
7795
7796         * gtk/gtktreemodelfilter.c: Made this thing work correctly.
7797         Levels can now have invisible nodes cached, functions have been
7798         rewritten/refactored to take this into account; also the logic in
7799         some functions has been corrected.
7800         
7801         Each referenced node now references all visible children or a single
7802         invisible child, in order to be able to monitor all changes in the
7803         child model required for correct operation.
7804
7805         When a virtual root is set, all nodes on the virtual root level are
7806         referenced.
7807
7808         At last, a bunch of random bug fixes and comment updates.
7809
7810 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
7811
7812         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
7813         more docs.  (#319722, Paolo Borelli)
7814
7815         * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the 
7816         initialization of screen_x11->xft_rgba more explicit.  (#319627,
7817         Bogdan Nicula)
7818
7819         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
7820         in a blurb.  (#319499, Francisco Javier F. Serrador)
7821
7822 2005-10-24  Matthias Clasen  <mclasen@redhat.com>
7823
7824         Add settings to hide the input method and Unicode control character
7825         submenus in the context menus of GtkEntry and GtkTextView.  
7826         
7827         * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
7828         
7829         * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
7830
7831         * gtk/gtktextview.c (popup_targets_received): 
7832         * gtk/gtkentry.c (popup_targets_received): Use the settings here.
7833
7834 2005-10-24  Kristian Rietveld  <kris@gtk.org>
7835
7836         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
7837         row-has-child-toggled when the level is not in the cache does not
7838         make sense.  (This bug probably crept in during the early stages
7839         of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
7840         implementation yet),
7841         (gtk_tree_model_sort_real_unref_node): only get the child iter
7842         when we will actually also use it.
7843
7844 2005-10-22  Michael Natterer  <mitch@imendio.com>
7845
7846         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
7847         widget being realized, in addition to being visible, to avoid
7848         running into precondition check in gtk_tree_view_get_cell_area().
7849         (approved by Kris).
7850
7851 2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
7852
7853         * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
7854         Experimentally, scrollbar steppers can shrink to 8 pixels on 
7855         Win32. Reflect that in the theme.
7856         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
7857         there is a 1-pixel border between a scrollbar and its child
7858         in ScrolledWindows on Win32. Reflect that in the theme.
7859         
7860 2005-10-20  Matthias Clasen  <mclasen@redhat.com>
7861
7862         * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
7863         for the selection window.  (#318806, Alex Larsson)
7864
7865 2005-10-18  Federico Mena Quintero  <federico@ximian.com>
7866
7867         Fixes bug #317999:
7868
7869         * tests/autotestfilechooser.c
7870         (test_button_folder_states_for_action): Test that we have either
7871         $cwd or the explicitly-set folder.
7872         (test_reload_sequence): Likewise.
7873
7874         * gtk/gtkfilechooserdefault.c
7875         (gtk_file_chooser_default_get_current_folder): If our reload_state
7876         is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
7877
7878 2005-10-14  Tor Lillqvist  <tml@novell.com>
7879
7880         * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
7881         It didn't really do anything useful, and was just confusing and
7882         incomplete. Comments claimed we don't do delayed rendering, but in
7883         fact we do, for images. (The delayed rendering code has other
7884         problems, though, see #168173.) The clipboard viewer code was
7885         probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
7886         the message when necessary). It was just test code, it said so in
7887         a comment. Add something similar back later if necessary.
7888
7889         (_win32_on_clipboard_change,
7890         _gdk_win32_register_clipboard_notification): Remove.
7891
7892         (gdk_display_supports_selection_notification,
7893         gdk_display_request_selection_notification): Always just return
7894         FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
7895
7896 2005-10-13  Tor Lillqvist  <tml@novell.com>
7897
7898         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
7899         Alt-Enter specially. It does not have any special meaning and
7900         should be passed on to the application. (#318378, Tim Evans)
7901
7902 2005-10-13  Tor Lillqvist  <tml@novell.com>
7903
7904         Set visual depth to 24 for 32 bits-per-pixel devices on
7905         Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
7906         optimized composite_0888() function rather than the slower image
7907         dithering functions to draw pixbufs (#313993, John Ehresman)
7908
7909         * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
7910         _gdk_windowing_get_bits_for_depth() to initialize
7911         GdkImage::bits_per_pixel.
7912         (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
7913
7914         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
7915         _gdk_windowing_get_bits_for_depth() to initialize
7916         BITMAPINFOHEADER::biBitCount.
7917
7918         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
7919         GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
7920         32.
7921
7922 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
7923
7924         * demos/gtk-demo/appwindow.c: (about_cb):
7925           use PACKAGE_VERSION,bump year (#318654)
7926
7927 2005-10-11  Matthias Clasen  <mclasen@redhat.com>
7928
7929         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off 
7930         toggle here with the matching on toggle if it immediately follows. 
7931         This is a common case, and handling it here prevents quadratic blowup 
7932         in cleanup_line() below.  (#317125)
7933
7934         * gtk/gtktextsegment.h: 
7935         * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
7936         the character counts into this function instead of computing them
7937         again.
7938
7939 2005-10-10  Tommi Komulainen  <tommi.komulainen@iki.fi>
7940
7941         * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
7942         code.
7943         * gtk/gtkfilechooserdefault.c
7944         (gtk_file_chooser_default_add_shortcut_folder): Return an error code
7945         when the shortcut already exists in the sidebar.  (#147521)
7946
7947 2005-10-09  Matthias Clasen  <mclasen@redhat.com>
7948
7949         * tests/testcombo.c: Demonstrate how to use custom widgets in
7950         a GtkComboBox.  
7951
7952 2005-10-07  Federico Mena Quintero  <federico@ximian.com>
7953
7954         Fixes bug #317999:
7955
7956         * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
7957         the the result of gtk_file_chooser_get_folder() is NULL or
7958         non-NULL at the right times.  Log the tests.
7959         (test_button_folder_states): New test for the initial states of
7960         the current folder in GtkFileChooserButton.
7961         (main): Test that the number of warnings/errors/critical errors is
7962         zero.
7963
7964         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
7965         Clarify the documentation on when this can return NULL.
7966         (gtk_file_chooser_get_current_folder_uri): Likewise.
7967
7968         * gtk/gtkfilechooserbutton.c (struct
7969         _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
7970         we use it to keep track of whether a folder has been set.
7971         (gtk_file_chooser_button_map):  Implement.  If no folder has been
7972         loaded before, we at least try to load $cwd here.
7973         (gtk_file_chooser_button_constructor): If the construct-time
7974         dialog already has a folder set, turn on our folder_has_been_set
7975         flag.
7976         (dialog_current_folder_changed_cb): Turn on our
7977         folder_has_been_set flag.
7978
7979 2005-10-07  Michael Natterer  <mitch@gimp.org>
7980
7981         * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
7982         PROFILE_FILE_CHOOSER because they break compilation after the
7983         removal of <unistd.h>.
7984
7985 2005-10-07   Matthias Clasen  <mclasen@redhat.com>
7986
7987         * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
7988         by moving it out of the profiling ifdef.
7989
7990         * gtk/gtkfilechooserdefault.c: Remove a redundant (and
7991         unconditional) include of unistd.h  (#318211, Kazuki Iwamoto)
7992
7993         * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
7994         g_return_val_if_fail(), not g_return_if_fail().  (#318412,
7995         Kazuki Iwamoto)
7996
7997 2005-10-06  Matthias Clasen  <mclasen@redhat.com> 
7998                 
7999         * gtk/gtk.symbols:
8000         * gtk/gtktextbuffer.h:
8001         * gtk/gtktextbuffer.c: Add a readonly has-selection property
8002         with a getter.  (#318161, Paolo Borelli)
8003
8004 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
8005
8006         * README.in: Start collecting release notes for 2.10.
8007
8008         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
8009         leak fix, since the assertion failures were traced to 
8010         an xchat bug.  (#314696)
8011         
8012         * gtk/gtkstyle.c (gtk_style_detach):
8013         (gtk_style_attach):  Documentation improvements.
8014         (gtk_style_detach): Assert that the attach_count is > 0.
8015
8016 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
8017
8018         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
8019         shortcut position, not a ShortcutsIndex, to make the function more
8020         generic.
8021         (home_folder_handler): Pass the resolved index to
8022         switch_to_shortcut(), rather than just SHORTCUTS_HOME.
8023         (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
8024         (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
8025         binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0.  These
8026         make the respective key switch to the first, second, ..., tenth
8027         bookmark.
8028         (quick_bookmark_handler): Implement.
8029
8030 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
8031
8032         * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
8033         Desktop; just use their real names on the file system for the
8034         user-visible names.
8035
8036         * gtk/gtkfilechooserdefault.c
8037         (gtk_file_chooser_default_class_init): Add a "desktop-folder"
8038         binding signal, and bind it to M-d by default.
8039         (desktop_folder_handler): Implement the default handler.
8040         (home_folder_handler): Use a helper function.
8041         (switch_to_shortcut): New helper function.
8042         (shortcuts_append_home): Don't special-case the name of "Home";
8043         just use the folder name.
8044
8045 2005-10-04  Tor Lillqvist  <tml@novell.com>
8046
8047         * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
8048         HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
8049
8050 2005-10-04  Matthias Clasen  <mclasen@redhat.com>
8051
8052         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
8053         from yesterday, since it leads to assertion failures.  (#317879,
8054         Sebastian Bacher)
8055
8056 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
8057
8058         * gtk/gtkcalendar.c (gtk_calendar_init): Call 
8059         calendar_compute_days() after setting priv->week_start.
8060
8061 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
8062
8063         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
8064         removing it from the hash table.  (#314696, Benjamin Berg)
8065
8066 2005-10-01  Tor Lillqvist  <tml@novell.com>
8067
8068         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
8069         BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
8070         is that the the desktop isn't visible because the session has been
8071         switched, the screen is locked, or a terminal server session
8072         disconnected, so no error message necessary. (#137796)
8073
8074         It is of course remotely possible that BitBlt() failing with
8075         ERROR_INVALID_HANDLE might also be caused by some other
8076         problem. We could strive for perfection and track whether the
8077         desktop is visible by using WTSRegisterSessionNotification() and
8078         handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
8079         this issue, though. If we would track desktop visibility, we
8080         should then avoid even trying to update the display at all while
8081         the desktop isn't visible.
8082
8083 2005-09-30  Matthias Clasen  <mclasen@redhat.com>
8084
8085         * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
8086         to correct the calculations for the first week day. We may
8087         just have to remove this code if too many locales turn out 
8088         to have broken data. 
8089
8090         * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
8091         some cases.  (#317611, Tommi Komulainen)
8092
8093         * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
8094         Prevent overflow when storing size hints in an unsigned
8095         short variable. Tracked down by Ray Strode and Søren Sandmann.
8096
8097 2005-09-29  Matthias Clasen  <mclasen@redhat.com>
8098
8099         * gtk/gtkbutton.c (gtk_button_set_image): Check arguments.  (#317491,
8100         Paolo Borelli)
8101
8102         * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
8103         grab shadowed.  (#317332)
8104
8105 2005-09-29  Tor Lillqvist  <tml@novell.com>
8106
8107         * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
8108
8109 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
8110
8111         * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
8112         if the unmap test fails.
8113         (test_reload_sequence): Use gtk_widget_show_now() instead of
8114         gtk_widget_show() for the dialog.
8115         Thanks to Tim Janik for noticing these.
8116
8117 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
8118
8119         * tests/testcellrenderertext.c: New file with a set of tests for
8120         GtkCellRendererText.  The idea is to run a text renderer through
8121         most of its interesting property values to see that it works
8122         correctly.
8123
8124         * tests/Makefile.am: Added testcellrenderertext.
8125
8126         * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
8127         entry/exit of this function for profiling.
8128         (gtk_file_chooser_default_style_set): Mark the start/end of the
8129         calls to the parent class and the the signal emission for profiling.
8130
8131 2005-09-29  Tor Lillqvist  <tml@novell.com>
8132
8133         * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
8134         passed to bindtextdomain() which isn't UTF-8-aware, so convert to
8135         system codepage using g_win32_locale_filename_from_utf8().
8136         (#317457, Kazuki Iwamoto)
8137
8138 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
8139
8140         * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms 
8141         here. (#317039, Paolo Borelli)
8142
8143         * gtk/gtktexttag.h: 
8144         * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
8145         to make this function work as boxed copy function.  (#317455,
8146         Gustavo Carneiro)
8147
8148         * gtk/gtkclipboard.c (request_image_received_func): Don't unref
8149         NULL.  (#316828, Tor Lillqvist)
8150
8151 2005-09-28  Tor Lillqvist  <tml@novell.com>
8152
8153         * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
8154         Iwamoto)
8155
8156 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
8157
8158         Don't reload the current folder unnecessarily on ::map().
8159
8160         * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
8161         the reloading state.
8162         (struct _GtkFileChooserDefault): Added a "reload_state" field.
8163
8164         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
8165         Initialize impl->reload_state.
8166         (gtk_file_chooser_default_map): Check the impl->reload_state; load
8167         a default folder if no folder has been set, or reload the current
8168         one only if we had been unmapped first.
8169         (gtk_file_chooser_default_update_current_folder): Set the
8170         reload_state to RELOAD_HAS_FOLDER.
8171         (gtk_file_chooser_default_unmap): Implement, and set the
8172         reload_state to RELOAD_WAS_UNMAPPED.
8173         (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
8174         here; they'll get (re)loaded on ::map() anyway.
8175
8176         * gtk/gtkfilechooserwidget.c
8177         (gtk_file_chooser_widget_constructor): Don't set a default folder here.
8178
8179         * tests/autotestfilechooser.c (test_action_widgets): Don't take in
8180         a dialog; build it ourselves.
8181         (test_reload): New test to ensure that we don't load the default
8182         folder more than once, and that we reload it when
8183         unmapping/remapping.
8184         (get_impl_from_dialog): New utility function.
8185         (test_widgets_for_current_action): Use get_impl_from_dialog().
8186
8187 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
8188
8189         * gtk/gtkfilechooserdefault.c
8190         (gtk_file_chooser_default_constructor): Mark the entry/exit of
8191         this function for profiling.
8192         (check_icon_theme): Likewise.
8193         (change_icon_theme): Likewise.
8194         (settings_notify_cb): Likewise.
8195         (gtk_file_chooser_default_screen_changed): Likewise.
8196         (update_chooser_entry): If the selection is empty, clear the file
8197         name entry only if we are in CREATE_FOLDER mode.  In SAVE mode,
8198         nothing will be selected when the user starts typeahead in the
8199         treeview, and we don't want to clear the file name entry in that
8200         case --- the user could be typing-ahead to look for a folder name.
8201         Fixes bug #308332, patch by Jürg Billeter.
8202
8203 2005-09-27  Matthias Clasen  <mclasen@redhat.com>
8204
8205         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
8206         Pop below the entry if there's more free space below the entry
8207         than above.  (#316948, Tommi Komulainen)
8208
8209 2005-09-26  Federico Mena Quintero  <federico@ximian.com>
8210
8211         Do not create the save mode-specific widgets in the open modes, so
8212         that we don't carry their baggage around.
8213
8214         * gtk/gtkfilechooserdefault.c
8215         (gtk_file_chooser_default_constructor): Don't create the
8216         save_widgets here.
8217         (save_widgets_create): Set the impl->save_widgets directly here,
8218         instead of passing the widgets back to the caller.  Also, pack
8219         them into the impl's box.
8220         (update_appearance): Create or destroy the save widgets as
8221         appropriate.  Set the action of the save_file_name_entry here.
8222         (shortcuts_add_current_folder): Set the active item in the
8223         save_folder_combo only if it exists.
8224         (gtk_file_chooser_default_set_property): Don't set the action of
8225         the save_file_name_entry here.
8226         (gtk_file_chooser_default_update_current_folder): Set the base
8227         folder of the save_file_name_entry only if the entry exists.
8228         (shortcuts_drag_data_received_cb): Cast the selection_data->data
8229         to (const char *) since that's what shortcuts_drop_uris() expects.
8230         (file_list_drag_data_received_cb): Likewise, for
8231         g_uri_list_extract_uris().
8232
8233 2005-09-26  Tor Lillqvist  <tml@novell.com>
8234
8235         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
8236         the shaped flag here, too. (#316871)
8237         (gdk_window_shape_combine_region): Currently unimplemented, so
8238         don't do anything to the shaped flag here.
8239
8240 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
8241
8242         Fix #316871, reported by Dan Winship:
8243         
8244         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
8245
8246         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
8247         (gdk_window_shape_combine_region): Set it here.
8248
8249         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
8250         remove the child area for shaped windows.
8251
8252 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
8253
8254         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
8255         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
8256
8257 2005-09-22  Michael Natterer  <mitch@imendio.com>
8258
8259         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
8260         consistent with GTK+ terminology:
8261
8262         * gtk/gtkcellrendererkeys.[ch]
8263         * tests/testkeys.c: removed...
8264
8265         * gtk/gtkcellrendereraccel.[ch]
8266         * tests/testaccel.c: ...and added.
8267
8268         * gtk/Makefile.am
8269         * gtk/gtk.h
8270         * gtk/gtk.symbols
8271         * tests/Makefile.am: changed accordingly.
8272
8273 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
8274
8275         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
8276         for the grab-broken-event signal, noticed by Damon Chaplin.
8277
8278 2005-09-21  Tor Lillqvist  <tml@novell.com>
8279
8280         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
8281         gdk_text_property_to_text_list_for_display,
8282         gdk_text_property_to_utf8_list_for_display,
8283         gdk_win32_selection_add_targets,
8284         _gdk_win32_selection_convert_to_dib): Free return value from
8285         gdk_atom_name().
8286         (gdk_text_property_to_text_list_for_display): Drop GError variable
8287         that isn't actually used after being set.
8288
8289 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
8290
8291         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
8292         documentation.
8293
8294 2005-09-20  Tor Lillqvist  <tml@novell.com>
8295
8296         * gdk/win32/gdkselection-win32.c
8297         (gdk_selection_owner_get_for_display): Do return the correct owner
8298         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
8299         a window GDK knows about). The reason to return NULL seems to have
8300         gone when in the fix for bug #163702 the artificial
8301         GDK_SELECTION_CLEAR event generation was removed from
8302         gdk_selection_send_notify_for_display(). Fixes bug #316552.
8303
8304 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
8305
8306         Avoid unnecessary XkbGetState() calls and XkbStateNotify
8307         events.  (#151555, Søren Sandmann)
8308
8309         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
8310         XkbSelectEventDetails() to select XkbStateNotify events
8311         for only the state we care about.
8312
8313         * gdk/x11/gdkprivate-x11.h:
8314         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
8315         the event into the function and update the keymap state from
8316         the state information contained in the event. Adjust all callers.
8317         
8318 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
8319
8320         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
8321         in multiple places to avoid segfaults if the index is out of range.  
8322         (#316422, Guillaume Cottenceau)
8323         (gtk_icon_view_set_drag_dest_item): 
8324         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
8325         #316424, Guillaume Cottenceau)
8326
8327 2005-09-18  Hans Breuer  <hans@breuer.org>
8328
8329         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
8330         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
8331
8332 2005-09-18  Hans Breuer  <hans@breuer.org>
8333
8334         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
8335         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
8336         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
8337         the icon and is blinking with teststatusicon. More to come ...
8338
8339 2005-09-18  Hans Breuer  <hans@breuer.org>
8340
8341         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
8342         cause gtkprogressbar.c has #include <config.h> conditionally; less
8343         noise from generated gtk.def
8344         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
8345         
8346         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
8347         For me it works as well as the *NIX implemenation, that is not at all.
8348
8349         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
8350
8351         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
8352         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
8353         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
8354         again - if compiled properly.
8355
8356         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
8357         already coming with Gtk+. Makes it compile on win32.
8358
8359 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
8360
8361         * README.cvs-commits: fixed some tiny typos
8362
8363 2005-09-16  Tor Lillqvist  <tml@novell.com>
8364
8365         * modules/engines/ms-windows/msw_style.c (draw_extension,
8366         draw_box_gap): Check whether the widget actually is a GtkNotebook
8367         before treating it as such. Drop some unneeded local variables,
8368         use parameter with same information instead. (#316412)
8369
8370 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
8371
8372         * tests/autotestfilechooser.c: Start a set of automated tests for
8373         the file chooser.  The only test in there right now doesn't pass
8374         yet.  It specifies the intended behavior of the first optimization
8375         of a series which I'll do on the file chooser (see
8376         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
8377         details of this optimization).
8378
8379         * tests/Makefile.am: Added autotestfilechooser.c.
8380
8381         * gtk/gtkfilechooserprivate.h (struct
8382         _GtkFileChooserDialogPrivate): Move all the file chooser's private
8383         structures to here, so that they can be accessed by
8384         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
8385         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
8386
8387         * gtk/gtkfilechooserdialog.c: See above.
8388
8389         * gtk/gtkfilechooserwidget.c: See above.
8390
8391         * gtk/gtkfilechooserdefault.c: See above.
8392
8393 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
8394
8395         * gtk/gtkwindow.c: 
8396         gtk_window_map_event(): new function to work around lost unmap requests.
8397         fixes bug #316180.
8398
8399 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
8400
8401         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
8402         an easy-to-find profiling marker when starting to create a file
8403         chooser.
8404         (browse_files_model_finished_loading_cb): Likewise, for when the
8405         chooser is finished loading.
8406
8407 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
8408
8409         * gtk/gtkcolorbutton.c: Check "color" argument in 
8410         gtk_color_button_set_color ()
8411
8412 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
8413
8414         * gtk/gtklabel.c (gtk_label_get_type): 
8415         * gtk/gtkbutton.c (gtk_button_get_type): 
8416         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
8417         using a mem chunk for window groups, buttons, labels.
8418
8419         * gtk/updateiconcache.c (foreach_remove_func): Fix
8420         a use-after-free bug.  (#316256, Alexander Nedotsukov)
8421
8422 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
8423
8424         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
8425
8426         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
8427         
8428 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
8429
8430         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
8431         Let GDK_Return pass through in some more cases.
8432
8433         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
8434         activating the entry. 
8435
8436         * gtk/gtkiconview.c (gtk_icon_view_class_init):
8437         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
8438         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
8439
8440         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
8441         (#316001, Guillaume Cottenceau)
8442
8443         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
8444         mistake in the docs.  (#315993, Guillaume Cottenceau)
8445
8446         * tests/testentrycompletion.c (create_simple_completion_model): Add
8447         some strings containing multibyte characters.
8448
8449         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
8450         Fix prefix insertion for multibyte characters.  (#316095,
8451         Tommi Komulainen)
8452
8453         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
8454         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
8455         return NULL if the widget is not realized.  (#316023,
8456         Guillaume Cottenceau)
8457
8458 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
8459
8460         * gdk/gdk.symbols: 
8461         * gdk/gdkproperty.h: 
8462         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
8463         New function to avoid pointless strdups when creating atoms
8464         from static strings.  
8465
8466         * gdk/x11/*.c:
8467         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
8468         appropriate.
8469
8470 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
8471
8472         * gtk/gtkcellrendererkeys.h: 
8473         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
8474         and editing accelerators, a port of EggCellRendererKeys .
8475
8476         * gtk/gtk.symbols:
8477         * gtk/gtk.h:
8478         * gtk/Makefile.am: Add the keys cell renderer.
8479
8480         * tests/Makefile.am: 
8481         * tests/testkeys.c: Test GtkCellRendererKeys
8482
8483 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
8484
8485         Make it possible to determine if a key event is for a
8486         modifier key:
8487         
8488         * gdk/x11/gdkprivate-x11.h: 
8489         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
8490         New function to determine if a keycode is mapped to a modifier.
8491         (get_xkb): Get the modmap.
8492
8493         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
8494         is_modifier bit by calling _gdk_keymap_key_is_modifier().
8495
8496         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
8497         bit.
8498
8499 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
8500
8501         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
8502         unused variable, noticed by Kjartan Maraas.
8503
8504 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
8505
8506         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
8507         Make drag reordering work properly for columns other than the
8508         first.  (#315054, Dan Winship)
8509         
8510         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
8511         invalid fontnames better. (#136926, Michael R. Walton)
8512         
8513         Stop cursor blinking in non-editable regions of a text view.
8514         (#311508, Torbjörn Andersson)
8515         
8516         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
8517         (cursor_blinks): Take editability into account when deciding
8518         whether the cursor blinks.
8519         (gtk_text_view_button_release_event): 
8520         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
8521
8522         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
8523         Use connect_after to connect to the focus_out event. This
8524         ensures that the entry has already stopped blinking by the time
8525         we emit the edited signal.  (#315229, Thomas Leonard)
8526
8527         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
8528
8529         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
8530         unsigned ints to -1.  (#315481, Kjartan Maraas)
8531
8532         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
8533         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
8534         (#314473, Stanislav Brabec)
8535
8536 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
8537
8538         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
8539         memory handling.  (#314975, Torsten Schoenfeld)
8540
8541         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
8542         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
8543         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
8544         * gtk/gtklabel.c (gtk_label_class_init): 
8545         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
8546         Stylistic improvements and clarifications for some blurbs. 
8547         (#315520, Clytie Siddall)
8548
8549 2005-09-09  Tor Lillqvist  <tml@novell.com>
8550
8551         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
8552         display name. There is only one GdkDisplay on Win32, and
8553         constructing the display name isn't entirely trivial, so cacheing
8554         is probably worth it. For instance GIMP calls this function a lot.
8555         (gdk_display_open): Call gdk_display_get_name() to prime the
8556         cached name.
8557         (gdk_display_get_n_screens, gdk_display_get_screen,
8558         gdk_display_get_default_screen): Verify parameter correctness like
8559         the X11 backend does.
8560
8561         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
8562         Return a freshly allocated string, as the API specifies. Fixes a
8563         heap corruption problem that caused random errors and crashes in
8564         GIMP, for instance.
8565
8566 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
8567
8568         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
8569         Make C-u commit and restart hex input if we are already in a
8570         hex sequence.
8571
8572 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
8573
8574         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
8575         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
8576         if they are mapped to the same modifier.
8577
8578         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
8579         to gtkstatusicon.c and gtktrayicon-x11.c
8580
8581         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
8582         default accel mod mask.
8583
8584         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
8585         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
8586         Don't use GDK_ALT_MASK.
8587
8588         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
8589
8590 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
8591
8592         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
8593         
8594         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
8595         modifiers.
8596
8597         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
8598         Mod2 - Mod5 and against Super, Hyper, Meta.
8599
8600         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
8601         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
8602         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
8603
8604         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
8605         modmap to maintain the information which X modifiers map to
8606         virtual modifiers.
8607         (get_xkb): Set up the modmap from the XKB tables.
8608         (update_keymaps): Set up the modmap from the information returned
8609         by XGetModifierMapping in the non-XKB case.
8610
8611         * gdk/x11/gdkprivate-x11.h: 
8612         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
8613         function to set the virtual modifiers in the state.
8614
8615         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
8616         _gdk_keymap_add_virtual_modifiers here.
8617
8618         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
8619         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
8620         for GDK_MOD1_MASK.
8621
8622 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
8623
8624         * gtk/gtkaction.c (connect_proxy): Set the label of a button
8625         if it has no child.  (#315253, John Finlay)
8626
8627 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
8628
8629         * gtkimcontextsimple.h: Add a modifiers_dropped bit
8630
8631 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
8632
8633         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
8634         on destroy to avoid problems when they are called on a destroyed
8635         widget.  (#315135, John Cupitt)
8636         
8637         * gtk/gtkentry.c (gtk_entry_class_init):
8638         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
8639         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
8640
8641         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
8642         code. Now we only steal a single key combination, Ctrl-Shift-U,
8643         instead of sixteen. 
8644         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
8645         by a sequence of hex digits entered with Ctrl-Shift still held.
8646         Releasing one of the modifiers or pressing space while the modifiers
8647         are still held commits the character. It is possible to erase
8648         digits using backspace.
8649         As an extension to the above, we also allow to start the sequence
8650         with Ctrl-Shift-U, then release the modifiers before typing any
8651         digits, and enter the digits without modifiers.
8652         (#82011, Owen Taylor)
8653         
8654 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
8655
8656         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
8657         we still need to deliver the destroy event.  (#314980, Chris Lahey)
8658
8659         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
8660         im context before committing \n or \t.
8661
8662 2005-09-02  Alexander Larsson  <alexl@redhat.com>
8663
8664         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
8665         (shortcuts_activate_volume):
8666         Handle base_path being null in the rest of the cases (#310270)
8667
8668 2005-09-02  Tor Lillqvist  <tml@novell.com>
8669
8670         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
8671         cursor position also in root window coordinates. Prune out
8672         superfluous WM_MOUSEMOVE events even earlier, based on root window
8673         coordinates. Windows sends WM_MOUSEMOVE messages after a new
8674         window has ben mapped below the cursor even if the mouse doesn't
8675         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
8676         confused at least gtk_menu_motion_notify(). (#314995)
8677
8678         * gtk/gtkintl.h: No need to include config.h here. It caused
8679         warnings about GTK_LOCALEDIR being redefined on Win32 when
8680         compiling files where gtkintl.h is included after gtkprivate.h
8681         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
8682
8683         * gtk/gtkplug.c: Include config.h.
8684
8685 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
8686
8687         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
8688         xdg_mime_get_mime_type_for_file() where possible, to avoid
8689         useless re-stating.  
8690         
8691         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
8692         typo.  (#314921, Guillaume Cottenceau)
8693
8694         * gdk/*.c: Intern some more strings.
8695         * gtk/gtkintl.h: 
8696         * gtk/*.c: Define an I_() macro and use it instead of the 
8697         bulky g_intern_static_string().
8698
8699 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
8700
8701         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
8702         instead of copying it.
8703
8704         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
8705
8706         * gtk/*.c: Also intern static strings passed to 
8707         g_object_set_data().
8708
8709         * gdk/Makefile.am: 
8710         * gtk/Makefile.am: Intern type names in code generated by 
8711         glib-mkenums, too.
8712
8713         * gtk/*.c: 
8714         * gdk/x11/*.c: 
8715         * gdk/*.c: Intern type names before registering the type to avoid 
8716         unnecessary copies.
8717
8718         * configure.in: Require GLib 2.9.0
8719
8720 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
8721
8722         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
8723         and add icon-size and icon-size-set properties.  (#314172)      
8724
8725         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
8726         groups across transient parents.  (#312918, Christian Persch)
8727
8728         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
8729         Guillaume Cottenceau)
8730
8731         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
8732         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
8733
8734 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
8735
8736         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
8737         make C-/ select all and C-\ unselect all.  (#309301,
8738         Kathy Fernandez)
8739
8740         * gtk/gtkimcontextsimple.c: Change the compose sequence for
8741         soft hyphen to be multi_key-minus-minus-space, and add
8742         compose sequences multi_key-minus-minus-period and 
8743         multi_key-minus-minus-minus for en dash and em dash.
8744         (#172653, Christian Lohmaier)
8745
8746         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
8747         code.  (#313946, Christian Persch)
8748
8749         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
8750         fix for the default value of the "ui" property.
8751
8752 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
8753
8754         * gtk/gtk.symbols: 
8755         * gtk/gtkselection.h:
8756         * gtk/gtkselection.c: Add functions which look for text, image
8757         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
8758
8759         * gtk/gtk.symbols: 
8760         * gtk/gtkselection.h:
8761         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
8762         Add a function to check wether targets include uri.  
8763         (#314092, Mark Wielaard)
8764         
8765         * gtk/gtk.symbols: 
8766         * gtk/gtkwindow.h: 
8767         * gtk/gtkwindow.c: Add a deletable property with getter
8768         and setter, to control the close button in the window 
8769         frame.  (#59718, Havoc Pennington)
8770
8771 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
8772
8773         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
8774         to the arrow keys for menu navigation.  (#162825, Carl Worth)
8775
8776         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
8777
8778         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
8779
8780         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
8781         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
8782         refer to nonexisting stock ids.
8783
8784         * gtk/gtktextview.c (popup_targets_received): 
8785         * gtk/gtkentry.c (popup_targets_received): Construct
8786         the "Select All" menuitem from stock.
8787
8788         * gtk/stock-icons/stock_select_all_{16,24}.png:
8789         * gtk/stock-icons/Makefile.am: 
8790         * gtk/gtkiconfactory.c:
8791         * gtk/gtkstock.h: 
8792         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
8793         Calum Benson)
8794
8795         * gtk/gtktrayicon.c: Add a pointer to the spec.
8796
8797         * gtk/gtkstatusicon-x11.c: Add docs.
8798
8799         * gtk/gtkstatusicon.h: Fix a typo.
8800
8801         Add a cross-platform "tray icon" API, by
8802         porting EggStatusIcon/EggTrayIcon (#105101)
8803         
8804         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
8805         displays an icon in a notification area.
8806
8807         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
8808         X11, using GtkTrayIcon.
8809
8810         * gtk/gtktrayicon.h: 
8811         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
8812         system tray specification, not public API.
8813
8814         * gtk/gtk.symbols: Add new exported functions.
8815
8816         * gtk/gtk.h: Include gtkstatusicon.h.
8817
8818         * gtk/Makefile.am: Add new files.
8819
8820         * tests/Makefile.am:
8821         * tests/teststatusicon.c: Test for GtkStatusIcon.
8822
8823 2005-08-29  Christopher Aillon  <caillon@redhat.com>
8824
8825         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
8826         and GTK_STOCK_DISCONNECT
8827         
8828 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
8829
8830         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
8831         Use XFixesChangeSaveSet if available.  (#314682)
8832
8833         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
8834         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
8835
8836 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
8837
8838         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
8839         accidentally leftover duplicate pixbuf creation.  (#314700,
8840         Kjartan Maraas)
8841
8842         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
8843         leak the cursor theme name.  (#314693, Kjartan Maraas)
8844
8845         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
8846         state.children in all cases.  (#313862, Kjartan Maraas)
8847
8848 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
8849
8850         * po/POTFILES.in, po-properties/POTFILES.in:
8851         Add gdk/gdkscreen.c
8852
8853 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
8854
8855         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
8856         value of the ui property. (#314532, Yong Wang)
8857
8858         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
8859         when G_MAXLONG is passed as length.  
8860
8861 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
8862
8863         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
8864         to avoid overloading --force.  (JP Rosevaar)
8865
8866 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
8867
8868         * configure.in: Bump version to 2.9.0
8869
8870         * gdk/gdk.symbols: 
8871         * gdk/gdkscreen.h: 
8872         * gdk/gdkscreen.c: Make the GdkScreen font options api
8873         public, and add properties GdkScreen::font-options and
8874         GdkScreen::resolution.  (#314004)
8875
8876         * gdk/gdkpango.c:
8877         * gtk/gtksettings.c:
8878         * gtk/gtkwidget.c: Adjust all callers.
8879         
8880         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
8881         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
8882         * gdk/gdkscreen.c: Include gdkintl.h.
8883
8884         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
8885         variable warning, pointed out by Colin Walters. (#314585)
8886
8887 2005-08-26  Tor Lillqvist  <tml@novell.com>
8888
8889         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
8890         printouts.
8891         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
8892
8893 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
8894
8895         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
8896         of week_start.  (#314473, JP Rosevaar)
8897
8898 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
8899
8900         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
8901         lock.  (#314533, Thomas Fitzsimmons)
8902
8903 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
8904
8905         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
8906         NULL gracefully.  (#314523, Ed Catmur)
8907
8908 2005-08-25  Owen Taylor  <otaylor@redhat.com>
8909
8910         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
8911         Handle theme == NULL.
8912
8913 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
8914
8915         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
8916         y offset into account when positioning the popup.  (#314470,
8917         Christian Persch)
8918
8919 2005-08-25  Owen Taylor  <otaylor@redhat.com>
8920
8921         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
8922         as instance_init, not base_init! (#314452, Fix from Frederic
8923         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
8924         rather than 1 for a negative flag value.
8925
8926 2005-08-24  Owen Taylor  <otaylor@redhat.com>
8927
8928         * gdk/gdkpango.c (draw_error_underline): Add a note about
8929         cut-and-paste between here and Pango.
8930
8931 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
8932
8933         * === Released 2.8.2 ===
8934
8935         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
8936         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
8937         Wielaard)
8938
8939         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
8940         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
8941         Sebastien Bacher)
8942         
8943         * NEWS: Updates
8944
8945         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
8946         and cursor settings get propagated down to the screen initially.
8947         Pointed out by Frederic Crozat.
8948
8949         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
8950         message if the screen is NULL. Noticed by Kjartan Maraas.
8951
8952 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
8953
8954         * Bump version
8955
8956         * === Released 2.8.1 ===
8957
8958         * NEWS: Updates
8959         
8960 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
8961
8962         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
8963         against lazy filterers which return values other than TRUE or
8964         FALSE from their visible func.  (#314335)
8965
8966 2005-08-23  Owen Taylor  <otaylor@redhat.com>
8967
8968         Fix for #314004, reported by Michael Reinsch:
8969
8970         * gdk/gdk.symbols:
8971         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
8972         Add gdk_screen_get/set_resolution_libgtk_only()
8973
8974         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
8975         the options for the screen on the newly created context.
8976
8977         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
8978         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
8979         the font options on the screen.
8980
8981         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
8982         the font options from the screen and set them on the context.
8983
8984 2005-08-23  Kristian Rietveld  <kris@gtk.org>
8985
8986         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
8987         bother inserting new rows in a level with a zero refcount and
8988         immediately free the level. (Fixes #312350, reported by Markku Vire).
8989
8990 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
8991
8992         * gtk/updateiconcache.c: Complain when there is no index.theme file
8993         in the specified directory, unless --force is used. Also add an
8994         --index-only option to create caches without image data.
8995
8996         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
8997         C99ism.  (#314262, Robert Jeff Mitchell)
8998         
8999 2005-08-22  Manish Singh  <yosh@gimp.org>
9000
9001         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
9002
9003         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
9004
9005 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
9006
9007         * gtk/gtkwindow.c (gtk_window_client_event): 
9008         * gtk/gtkicontheme.c (ensure_valid_themes) 
9009         (_gtk_icon_theme_check_reload): Implement a clientmessage based
9010         scheme for makeing sure that all GTK+ applications notice if an
9011         icon theme has been updated. This should prevent multiple versions
9012         of an icon theme cache to be mapped in memory at the same time,
9013         which can cause excessive memory consumption.  (#313156, Chris 
9014         Lahey)
9015
9016 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
9017
9018         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
9019         regarding icon theme changes.
9020
9021         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
9022         pixbufs which are backed by the mmapped memory of an icon cache,
9023         increase the refcount of the icon cache, so that the memory is not
9024         munmapped away underneath the pixbuf upon icon theme changes.  
9025         (#314170, Kjartan Maraas)
9026
9027         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
9028         to link against Xext.  (#314062)
9029
9030         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
9031         overruns.  (#314081, Hans Breuer)
9032
9033 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
9034
9035         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
9036         returned layout must not be modified.
9037
9038 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
9039
9040         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
9041         scroll_to_path if the model changes.
9042
9043         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
9044         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
9045         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
9046         we're realized, #312798
9047         (gtk_icon_view_set_model): clear scroll_to_path if the model
9048         changes.
9049
9050 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
9051
9052         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
9053         (gtk_range_adjustment_value_changed):  Don't queue a draw
9054         if the layout has not changed.  (#313991, Benjamin Berg)
9055
9056 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
9057
9058         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
9059         Benoit Carpentier)
9060
9061         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
9062         Fix a typo. 
9063
9064         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
9065         (model_add_special, model_add_special, model_add_volumes):
9066         Handle pixbuf being NULL without warnings. Also, don't
9067         leak pixbuf references when the icon theme is changed.
9068
9069         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
9070         the user data on destroyed windows, since at best
9071         it can be a stale pointer.  (#313953, Robin Green)      
9072
9073 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
9074
9075         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
9076         (#313900, Sebastien Bacher)
9077
9078         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
9079         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
9080
9081         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
9082         (xdnd_read_actions, get_client_window_at_coords_recurse): 
9083         Free data returned from XGetWindowProperty. 
9084
9085         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
9086         Free data returned from XGetWindowProperty.  (313867, Kjartan
9087         Maraas)
9088         
9089         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
9090         children in all cases.  (#313862, Kjartan Maraas)
9091
9092         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
9093         in the per-directory hash, even if they come from the icon cache. 
9094         We tried to avoid that before, but as a result leaked icon data
9095         structs.  (#313852, Kjartan Maraas)
9096
9097 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
9098
9099         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
9100         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
9101
9102 2005-08-15  Owen Taylor  <otaylor@redhat.com>
9103
9104         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
9105         files for x11/xext. (Jonas Bonn)
9106
9107 2005-08-15  Tor Lillqvist  <tml@novell.com>
9108
9109         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
9110         inside GTK_NOTE.
9111
9112 2005-08-15  Owen Taylor  <otaylor@redhat.com>
9113
9114         * configure.in: Fix have_base_pc / have_base_x_pc typo.
9115
9116         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
9117         (#313417, James Andrewartha)
9118
9119         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
9120         FcNameConstant(). (More of #313417)
9121
9122 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
9123
9124         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
9125         modal dialogs, make sure to inherit the window group from 
9126         the parent, since we don't inherit window groups across
9127         transient parents currently.  (#312918, Christian Persch)
9128
9129         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
9130         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
9131
9132         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
9133         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
9134         gracefully.  (#312796, Jonathan Blandford)
9135
9136         * tests/testtoolbar.c: Add some more tests for menu placement.
9137
9138         * gtk/gtkmenutoolbutton.c (menu_position_func): 
9139         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
9140         of toolbutton menus and of the overflow menu.  (#312937, 
9141         #153870, Christian Persch, Paolo Borelli)
9142
9143 2005-08-15  Tor Lillqvist  <tml@novell.com>
9144
9145         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
9146         the nonportable <libgen.h> and dirname().
9147
9148 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
9149
9150         * gtk/gtksizegroup.c: Use object data to mark widgets and
9151         groups as visited, so that we avoid constant extra list
9152         traversals. Also allocate quarks in class_init.  (#311618,
9153         Michael Natterer)
9154
9155         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
9156         download location for the hicolor icon theme. (#313475, Olexiy 
9157         Avramchenko)
9158
9159         * gtk/gtkicontheme.c: Remove debug spew. 
9160
9161 2005-08-15  Owen Taylor  <otaylor@redhat.com>
9162
9163         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
9164         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
9165         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
9166         Handle pixmap == NULL when checking for a colormap.
9167         (Allin Cottrell).
9168
9169 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
9170
9171         * gtk/updateiconcache.c: Store only one copy of the pixel data
9172         for symlinked icons. To achieve this, maintain a hashtable 
9173         mapping pathnames to pixel data, and share the pixel data for
9174         all symlinks resolving to the same pathname. When writing out
9175         the image data, write out the pixel data only the first time
9176         it is met, and store the offset pointing to the first copy
9177         for use in all later cases.
9178         This reduces the size of the Bluecurve icon cache from 40
9179         to 13MB. (#312972)
9180