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