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