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