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