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