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