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