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