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