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