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