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