]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Fix string offsets.
[~andy/gtk] / ChangeLog.pre-2-10
1 2006-01-11  Matthias Clasen  <mclasen@redhat.com>
2
3         * gdk/x11/gdkevents-x11.c: Fix string offsets.
4
5         Allow falling back to another icon theme before 
6         hicolor.   (#325546, Rodney Dawes)
7         
8         * gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.
9
10         * gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.
11         
12         * gtk/gtkicontheme.c: Consult the fallback icon theme before
13         looking in hicolor. 
14
15 2006-01-10  Matthias Clasen  <mclasen@redhat.com>
16
17         * tests/testgtk.c: Add an expander example.
18
19         * gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
20         when losing the focus.  (#326064, Andrew Conkling)
21
22         * gtk/gtkimmulticontext.c: 
23         * gtk/gtkhsv.c: 
24         * gtk/gtkhandlebox.c: Convert to use instance private data.
25
26         * gtk/gtk.h: Remove duplicate include.  (#326429, 
27         Benoît Carpentier)
28
29         * gtk/gtkpaned.c: Convert to use instance private data.
30
31 2006-01-10  Michael Natterer  <mitch@imendio.com>
32
33         * gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
34         right object ("closed" is emitted by the display, not the screen).
35         (bug #85715)
36
37 2006-01-10  Anders Carlsson  <andersca@imendio.com>
38
39         * gdk/quartz/gdkproperty-quartz.c:
40         (ensure_atom_tables):
41         (intern_atom_internal):
42         (gdk_atom_intern):
43         (gdk_atom_intern_static_string):
44         (gdk_atom_name):
45         Implement local-only atoms.
46
47 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
48
49         * gdk/gdkgc.c (gc_get_foreground): Correct a warning.
50         (#326341, Benoît Carpentier)
51
52         * gtk/gtk.symbols:
53         * gtk/gtkwindow.h:
54         * gtk/gtkwindow.c (gtk_window_get_group): Make this function
55         public API.  (#307099, Todd Berman)
56
57         * gtk/gtkmenu.c: 
58         * gtk/gtkmain.c: 
59         * gtk/gtkentrycompletion.c: 
60         * gtk/gtkcombo.c: 
61         * gtk/gtkcombobox.c: Update all callers.
62
63         * gtk/gtkentry.c (paste_received):  Make GtkEntryCompletion
64         complete on pastes at the end.  (#165714, Christian Neumair)
65
66         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
67         Prevent the first row being focused on map.  (#137351,
68         Niklas Knutsson)
69
70 2006-01-09  Johan Dahlin  <jdahlin@async.com.br>
71
72         * gtk/gtk.symbols:
73         * gtk/gtkeditable.h:
74         * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
75         * gtk/gtksizegroup.h:
76         (struct _GtkSizeGroup): 
77
78         Add gtk_size_group_get_widgets, fixes #326324.
79         Also mark all fields of GtkSizeGroup as private
80
81 2006-01-09  Matthias Clasen  <mclasen@redhat.com>
82
83         * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
84         leak preedit_string and preedit_attrs.  (#322332, Paolo
85         Borelli)
86
87         * gtk/gtk.symbols:
88         * gtk/gtkaction.h: 
89         * gtk/gtkaction.c (gtk_widget_get_action): New function to
90         get the action for a proxy.  (#326288)
91
92         * gtk/gtkaction.c: Go back to the old key for attaching the
93         action to the proxy.  (#326288, Diego González)
94
95 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
96
97         * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
98         empty strings.  (#326200, Christian Stimming)
99
100 2006-01-08  Matthias Clasen  <mclasen@redhat.com>
101
102         * gtk/gtkentry.[hc]: 
103         * gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
104
105         * gtk/gtklabel.c (get_layout_location): Fix label alignment 
106         when width-chars is set.  (#326098, Benjamin Otte)
107
108         * gdk/gdkregion-generic.c (miRegionCopy): Fix this for the 
109         single-rectangle case.  (#326127, Benjamin Berg)
110         (gdk_region_copy): Use miRegionCopy() here.
111
112 2006-01-07  Matthias Clasen  <mclasen@redhat.com>
113
114         Fix actiongroup-action interaction that relied on 
115         actions connecting to notify on themselves:
116         
117         * gtk/gtkaction.[hc]: Factor out the code updating the
118         visibility/sensitivity of proxies into _gtk_action_sync_visible()
119         and _gtk_action_sync_sensible().
120
121         * gtk/gtkactiongroup.c: Call the new functions when the
122         group visibility/sensitivity changes. 
123
124 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
125
126         * gtk/gtkactiongroup.c (gtk_action_group_set_sensitive) 
127         (gtk_action_group_set_visible): Add missing property change
128         notification.
129
130 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
131
132         * gtk/gtkfilechooserbutton.c (model_add_special): Just use the
133         directory name for the home dir.  (#325817, Federico Mena Quintero)
134         
135         * gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable 
136         to TRUE. 
137         (gtk_text_tag_class_init): The default value for the direction 
138         property is GTK_TEXT_DIR_NONE. Add notes about the initial values 
139         of the font and language properties.
140
141         * gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
142         an action signal.  (#325782, Martyn Russell)
143
144         * gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
145         the old adjustments signals.  (#325869, Jorn Baayen)
146
147 2006-01-06  Hans Breuer  <hans@breuer.org>
148
149         * tests/makefile.msc : added a bunch of tests
150         * tests/testcellrenderertext.c : use g_snprintf()
151         * tests/testfilechooserbutton.c : don't include unistd.h twice.
152         Removed the unconditional one and added direct.h for G_OS_WIN32
153         
154 2006-01-05  Hans Breuer  <hans@breuer.org>
155
156         * gdk/makefile.msc : also recurse into win32 for ::clean
157         * gtk/makefile.msc.in : create gtkbuiltincache.h (most code
158         to simulate links) and file renames
159
160 2006-01-05  Johan Dahlin  <jdahlin@async.com.br>
161
162         * gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
163         instead of -G_MAXUINT.
164         
165 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
166
167         * gtk/gtkwindow.c: Only connect to the event if we have
168         a frame, since the handler is only relevant in that case.
169
170         * gtk/gtkaction.c (connect_proxy, disconnect_proxy): 
171         Use a weak reference rather than the destroy signal to track 
172         proxies going away.
173
174         * gtk/gtkbindings.c (binding_signal_new): Revert the last change.
175
176         * gtk/gtkaction.c (gtk_action_sync_property): 
177         (gtk_action_sync_stock_id): Removed.
178
179 2006-01-05  Rodrigo Moya <rodrigo@novell.com>
180
181         * gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
182         signal and arguments.
183
184 2006-01-05  Matthias Clasen  <mclasen@redhat.com>
185
186         * gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
187         a void function.
188
189 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
190
191         * gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
192         changes.
193         
194         * gtk/gtkbindings.c: Use the slice allocator and allocate signal
195         and arguments in one block.
196
197         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
198         a list of NULLs.  (#325723, Steve Chaplin)
199
200 2006-01-04  Rodrigo Moya <rodrigo@novell.com>
201
202         * gtk/gtkbindings.c (binding_signal_new): guard against multiplying
203         by -1 (when n_args is 0).
204
205 2006-01-04  Michael Natterer  <mitch@imendio.com>
206
207         * gtk/gtkmenutoolbutton.c
208         (gtk_menu_tool_button_set_menu)
209         (gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
210         and gtk_menu_detach() instead of reffing/unreffing the menu
211         manually. Also fixes brokenness on screen change (bug #85715).
212
213 2006-01-04  Matthias Clasen  <mclasen@redhat.com>
214
215         * gtk/gtkaccelmap.c: 
216         * gtk/gtkactiongroup.c: 
217         * gtk/gtkdialog.c: 
218         * gtk/gtkfilesystemunix.c: 
219         * gtk/gtkgc.c: 
220         * gtk/gtkkeyhash.c: 
221         * gtk/gtkplug.c: 
222         * gtk/gtktextiter.c: 
223         * gtk/gtktextlayout.c: 
224         * gtk/gtkuimanager.c: 
225         * gtk/gtkwidget.c: 
226         * gtk/gtkwindow.c: 
227         * gtk/gtkxembed.c: Use the slice allocator for many small 
228         allocations.
229
230         * gtk/gtkcolorsel.c: 
231         * gtk/gtktreeview.c: Use IPN.
232
233         * gtk/gtkwidget.c: Remove an unused field from the AccelPath 
234         struct.
235
236 2006-01-04  Tor Lillqvist  <tml@novell.com>
237
238         * gtk-zip.sh.in: Include also the gtk20-properties message catalogs.
239
240 2006-01-03  Matthias Clasen  <mclasen@redhat.com>
241         
242         * gtk/gtkdnd.c: Make it compile
243
244         * gtk/gtkdnd.c (gtk_drag_begin_internal): Call gtk_drag_update
245         for non-motion events.  (#325443, Peter Harvey)
246
247         * gtk/gtkaction.c: Avoid connecting to notify on our own
248         properties. 
249
250 2006-01-02  Matthias Clasen  <mclasen@redhat.com>
251
252         * gtk/gtkentry.c (gtk_entry_delete_from_cursor): When deleting
253         words, delete preceding whitespace as well.  (#325358,  Akkana Peck)
254
255 2006-01-02  Anders Carlsson  <andersca@imendio.com>
256
257         * gdk/quartz/GdkQuartzWindow.c:
258         (-[GdkQuartzWindow canBecomeMainWindow]):
259         (-[GdkQuartzWindow canBecomeKeyWindow]):
260         Have these return TRUE
261         
262         * gdk/quartz/gdkevents-quartz.c:
263         (pointer_grab_internal):
264         Remove FIXME
265         
266         (find_child_window_by_point_helper):
267         Fix bug in offset calculation
268         
269         (find_window_for_event):
270         Use grab window toplevel when a grab is in effect
271         
272         (gdk_event_translate):
273         Don't call _gdk_event_button_generate on mouse up
274         
275         * gdk/quartz/gdkgc-quartz.c:
276         (_gdk_quartz_gc_new):
277         Fix indentation
278         
279         * gdk/quartz/gdkwindow-quartz.c:
280         (gdk_window_new):
281         Make TEMP windows borderless
282         
283         (gdk_window_hide):
284         Hide window
285         
286         (gdk_window_get_origin):
287         Implement
288         
289 2006-01-02  Tor Lillqvist  <tml@novell.com>
290
291         * gdk/win32/gdkwindow-win32.c
292         (gdk_window_impl_win32_get_visible_region): Make identical to the
293         X11 implementation. (#322264, John Ehresman)
294
295         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): Get the
296         invalidated region from ScrollWindowEx() instead of an incorrect
297         attempt to calculate it ourselves. Fix by John Ehresman. (#323666)
298
299         * gdkevents-win32.c: Make _gdk_win32_hrgn_to_region() non-static.
300
301         * gdkprivate-win32.h: Declare it.
302
303 2005-12-31  Matthias Clasen  <mclasen@redhat.com>
304
305         * gtk/gtkaction.c: 
306         * gtk/gtkentry.c: Connect to notify instead of multiple
307         detailed signals.
308
309 2005-12-30  Matthias Clasen  <mclasen@redhat.com>
310
311         * gdk/gdk.symbols: 
312         * gdk/gdkcairo.h: 
313         * gdk/gdkcairo.c: Add gdk_cairo_set_source_pixmap.  (#318805,
314         Alexander Larsson)
315
316         * gdk/gdkdisplaymanager.c (gdk_display_manager_set_property): Call
317         gdk_display_manager_set_default_display() to change the default
318         display.  (#153623, Stefan Kost)
319
320         * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
321          (setup_type): Alert dialogs should not have titles and should 
322         not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
323         Dennis Cranston)
324
325 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
326
327         * gtk/gtkliststore.c: 
328         * gtk/gtktreestore.c: Always call the get_path and get_iter
329         implementations directly, rather than the current mixture whith
330         some calls going through the GtkTreeModel interface.
331
332         * gtk/gtktreemodelsort.c: 
333         * gtk/gtkliststore.c: 
334         * gtk/gtktreestore.c: Remove excessive g_return_if_fail() checks
335         in static functions.
336         
337         * gtk/gtktreedatalist.c: Use the slice allocater for 
338         GtkTreeDataSortHeader.
339
340         * gtk/gtktreedatalist.h: 
341         * gtk/gtktreedatalist.c (_gtk_tree_data_list_set_header): New function.
342
343         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): 
344         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): 
345         * gtk/gtktreestore.c (gtk_tree_store_set_sort_func): Use it here.
346
347 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
348
349         * gtk/gtkbindings.h (GtkBindingSignal): 
350         * gtk/gtkbindings.c (binding_signal_new): Make the
351         args a flexible array inside the struct, and allocate them
352         together.
353
354 Wed Dec 28 00:45:46 2005  Tim Janik  <timj@gtk.org>
355
356         * gtk/gtkctree.c (row_delete): delete GtkCTreeRow as GtkCTreeRow, not
357         clist rows which crashes in gslice later on.
358
359 2005-12-27  Federico Mena Quintero  <federico@ximian.com>
360
361         * gtk/gtkfilefilter.c (gtk_file_filter_filter): In the case for
362         FILTER_RULE_PIXBUF_FORMATS, check that filter_info->mime_type is
363         not NULL.  Fixes bug #317687.
364
365 2005-12-27  Matthias Clasen  <mclasen@redhat.com>
366
367         * gdk/x11/gdkevents-x11.c (check_transform): Fix a typo.
368         (gdk_screen_get_setting): Avoid relocations for the settings
369         map.
370
371         * gdk/x11/gdkproperty-x11.c: Avoid relocations for the list
372         of standard atoms.
373
374         * gtk/gtkbindings.c (gtk_binding_set_new): Avoid copying
375         the set_name by interning it.
376
377 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
378
379         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
380         before calling gdk_window_new().
381
382         * gtk/gtktextbtree.c: Use the slice allocator for some other small
383         auxiliary structures as well.
384
385         * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
386         docs.  (#324996)
387
388         * gtk/gtktextbtree.c (gtk_text_btree_get_tag_info) 
389         (gtk_text_btree_remove_tag_info): Use the slice allocator for 
390         tag info.
391
392         * README.in: Mention the stripping of (_F) suffixes.
393
394         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of 
395         the form "(_<single character>)", since this is the preferred way
396         for some languages to indicate accelerators.  (#323956, Yang Hong)
397
398         * gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
399         setting.
400         (gtk_label_grab_focus): And use it here to select the contents of
401         the label when appropriate.
402         (gtk_label_class_init): Use the same keybindings for select all/
403         unselect all as GtkEntry and GtkTextView.
404
405         * gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
406         focus, avoid leaving a selection in a label.
407
408 2005-12-25  Matthias Clasen  <mclasen@redhat.com>
409
410         * gtk/gtkwindow.c: Documentation fixes.  (#324815, 
411         Ross Burton)
412
413         * configure.in: Require GLib 2.9.2
414
415 2005-12-24  Matthias Clasen  <mclasen@redhat.com>
416
417         * gdk/gdkregion-generic.c: 
418         * gdk/gdkpolyreg-generic.c: 
419         * gdk/gdkregion.h: 
420         * gdk/gdkrectangle.c: Inline docs, use g_assert(), avoid 
421         extra allocation for rectangular regions.
422
423 Thu Dec 22 18:53:14 2005  Tim Janik  <timj@gtk.org>
424
425         * gtk/gtkobject.[hc]: renamed GUnowned to GInitiallyUnowned.
426
427 Thu Dec 22 17:55:11 2005  Tim Janik  <timj@gtk.org>
428
429         * gtk/gtkobject.h: parent type fixups in structure declarations.
430
431 Thu Dec 22 16:01:27 2005  Tim Janik  <timj@imendio.com>
432
433         * gtk/gtkobject.c: derive GtkObject from GUnowned,
434         so it initially has a floating reference count.
435         gtk_object_class_init(): installa floating flag handler with
436         libgobject, so for GtkObjects the flag is stored as GTK_FLOATING
437         in the ->flags member.
438
439         * tests/floatingtest.c: test floating flag uses.
440
441 2005-12-21  Matthias Clasen  <mclasen@redhat.com>
442
443         * gdk/gdkregion-generic.c: Use the slice allocator
444         for regions. Still todo: avoid extra allocations for
445         the single-rectangle case.
446
447         * gtk/gtksettings.c (gtk_settings_class_init): Update
448         class_n_properties after installing color-hash, since
449         other classes install settings, too.
450
451         * gtk/gtkctree.c: 
452         * gtk/gtkclist.c: Fix some mistakes in the conversion
453         from mem chunks to slice allocator.
454
455         * gtk/gtkiconview.c (adjust_wrap_width): Adjust the 
456         wrap-width also if an explicit item width is set.  
457         (#322475, Alex Graveley)
458         
459 2005-12-20  Matthias Clasen  <mclasen@redhat.com>
460
461         * gtk/gtkiconview.c (gtk_icon_view_button_press): Reset 
462         pressed_button to -1 after handling a double click, so that
463         motion events occurring between here and the release event
464         don't trigger DND.  (#324588, Dave Andreoli)
465
466 2005-12-19  Matthias Clasen  <mclasen@redhat.com>
467
468         * gtk/gtkcellrenderer.c: 
469         * gtk/gtkselection.c: 
470         * gtk/gtkcalendar.c: 
471         * gtk/gtkitemfactory.c: 
472         * gdk/gtkcombo.c: 
473         * gdk/gdkpixbuf-render.c: Documentation updates
474
475         * gtk/gtktreemodel.c: 
476         * gtk/gtkplug.c: 
477         * gtk/gtkwindow.c: Documentation fixes.
478
479 2005-12-19  Michael Natterer  <mitch@imendio.com>
480
481         * gtk/gtkentry.c: implement boolean property "truncate-multiline"
482         which, when enabled, truncates multi-line pastes or drops to their
483         first line. Fixes bug #322252.
484
485         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): enable
486         truncate-multiline here.
487
488 2005-12-17  Matthias Clasen  <mclasen@redhat.com>
489
490         * gtk/gtksettings.c (get_color_hash): Don't crash if
491         there is no color scheme.  (#324429, Diego Gonzalez)
492
493 2005-12-16  Matthias Clasen  <mclasen@redhat.com>
494
495         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
496         * gtk/gtkimmodule.c (gtk_im_module_load): 
497         * gtk/gtkthemes.c (gtk_theme_engine_load): 
498         * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when
499         opening modules.
500
501         * gtk/gtksettings.[hc]: Rework the way the color scheme setting
502         is inherited. Now the overriding is done on a per-color basis,
503         rather than for the setting as a whole. This has the effect
504         that themes can declare defaults for all the symbolic colors they
505         use by specifying a value for the gtk-color-scheme setting in 
506         their rc file, while still allowing the XSetting to override
507         "standard" symbolic colors. The hash table is now available
508         through the color-hash property.
509         
510         * gtk/gtkrc.c: Use the new color-hash property.
511         
512 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
513
514         * gtk/gtkcontainer.c (_gtk_container_focus_sort): Skip unrealized
515         children when doing focus sorting.  (#323995, Dan Winship)
516
517 2005-12-14  Rodney Dawes  <dobey@novell.com>
518
519         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon):
520         Default to "drive-harddisk" and then fall back to gnome-dev-harddisk
521         (get_icon_for_mime_type): Look up the mime type icons according to the
522         Icon Naming Specification and then fall back to the gnome-mime- prefix
523         for the mime type icons
524
525         Fixes #323655
526         
527 2005-12-14  Matthias Clasen  <mclasen@redhat.com>
528
529         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
530         cannot be loaded.  (#323504, Kjartan Maraas)
531
532         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs 
533         for the row-activated signal.  (#324044, Davyd Madeley)
534
535 2005-12-14  Michael Natterer  <mitch@imendio.com>
536
537         * tests/test-images/valid_jpeg_progressive_test: new test image.
538
539 Tue Dec 13 09:47:20 2005  Tim Janik  <timj@gtk.org>
540
541         * README.in: added a link to the floating reference docs in the
542         2.10 release NEWS section.
543
544 2005-12-12  Matthias Clasen  <mclasen@redhat.com>
545
546         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_index): 
547         Speed this function up, using the fact that visibility is 
548         constant across segments. (#321548, Paolo Borelli)
549
550         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
551         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Speed up
552         stepping backwards.  (#320638, Larry Ewing, Paolo Borelli)
553
554         * gtk/gtkicontheme.c (ensure_valid_themes): Only broadcast
555         _GTK_LOAD_ICONTHEMES if we detect a real theme change, not
556         upon initial theme load.  (#323876, Peter Lund)
557
558         * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Register
559         the size-changed signal correctly.  (#323848, Murray Cumming)
560
561         * gtk/gtkmarshalers.list: Add necessary marshaller.
562
563         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): Don't
564         fall thru to the wrong window types.  (#323843)
565
566         Make the gtk-color-scheme setting work.
567         
568         * gtk/gtksettings.h: 
569         * gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
570         that takes care of initializing the color hash if it is not 
571         already there.  
572
573         * gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get): 
574         And use it here.        
575
576 2005-12-10  Matthias Clasen  <mclasen@redhat.com>
577
578         * gdk/gdk.c (gdk_parse_args): Warn if parsing fails,
579         not if it succeeds. 
580
581 2005-12-09  Matthias Clasen  <mclasen@redhat.com>
582
583         * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
584         leak list[0].  (#323629, Markku Vire)
585
586         * gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
587         when freeing the RequestData.  (#323577)
588
589 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
590
591         * demos/gtk-demo/iconview_edit.c (set_cell_color): Don't
592         leak text.
593
594         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
595         variable name clash.  (#323475, Ross Burton)
596
597 2005-12-07  Ross Burton  <ross@burtonini.com>
598
599         * docs/reference/gtk/tmpl/gtkenums.sgml:
600         * gtk/gtktoolbutton.c:
601         If the toolbar mode is ICONS and there is no icon set then show
602         the label, and vice versa (#322019)
603
604 2005-12-07  Matthias Clasen  <mclasen@redhat.com>
605
606         * gtk/gtktoolbutton.c (clone_image_menu_size): Fix a 
607         variable name clash.  (#323475, Ross Burton)
608
609         * gtk/gtktreeview.c (gtk_tree_view_key_press): Use the correct
610         window when synthesizing the key event.  (#323077,
611         Sadrul Habib Chowdhury)
612         
613         (gtk_tree_view_search_key_press_event): Also listen for
614         GDK_ISO_Left_Tab.  (#323077, Sadrul Habib Chowdhury)
615
616         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler): 
617         Only scroll if we have focus.  (#316310, Paolo Borelli)
618
619         * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism,
620         spotted by Crispin Flowerday.
621
622 2005-12-06  Behdad Esfahbod  <behdad@gnome.org>
623
624         * gtk/gtksettings.c (settings_update_font_options): Turn metrics
625         hinting on (part of #307196)
626
627 2005-12-06  Matthias Clasen  <mclasen@redhat.com>
628
629         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't
630         commit from reset, it upstets GtkTextView.
631
632         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more
633         careful when turning blinking on and off.
634         (gtk_text_view_focus_out_event): Make the cursor really invisible
635         when the focus goes away.  (#323087, Sadrul Habib Chowdhury)
636         (cursor_blinks): Check the gtk-cursor-blink setting first.
637
638         * gtk/gtktreeview.c (gtk_tree_view_key_press): Fix refcounting
639         issues with new_event and its window.
640
641         * gtk/gtkmenu.c (gtk_menu_attach_to_widget): Accept NULL
642         as a detach func.  (#323386, Jorn Baayen)
643
644         * gtk/gtkcalendar.c: Avoid conflict with win32 headers in
645         the libdate routines.  (#323045, Kazuki Iwamoto)
646
647         * gdk/gdk.c (gdk_parse_args): 
648         * gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
649         from g_option_context_parse(). 
650
651 Tue Dec  6 11:37:59 2005  Tim Janik  <timj@gtk.org>
652
653         * gdk/gdkevents.c (gdk_event_new): fix missing hash table 
654         initialization.
655
656 Tue Dec  6 10:32:17 2005  Tim Janik  <timj@gtk.org>
657
658         * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
659         compiles again.
660
661 2005-12-05  Federico Mena Quintero  <federico@ximian.com>
662
663         * gtk/gtkfilechooserdefault.c (trap_activate_cb): "event->state &
664         modifiers", not "event->state && modifiers".  Patch by Sadrul
665         Habib Chowdhury <imadil@gmail.com>.  Fixes bug #323073.
666
667 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
668
669         * gtk/gtkwidget.c: 
670         * gtk/gtkuimanager.c: 
671         * gtk/gtktreedatalist.c: 
672         * gtk/gtktext.c: 
673         * gtk/gtkmain.c: 
674         * gtk/gtkitemfactory.c: 
675         * gtk/gtkseparator.[hc]:
676         * gtk/gtkclist.[hc]: 
677         * gtk/gtkctree.c:
678         * gtk/gtkgc.c: Use g_slice instead of mem chunks.
679
680 2005-12-05  Michael Natterer  <mitch@imendio.com>
681
682         * gdk/x11/gdkevents-x11.c: map the new GtkSettings properties
683         "timeout-initial", "timeout-repeat", "color-scheme" and
684         "enable-animations" to X settings.
685
686 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
687
688         * gdk/gdkevents.c: 
689         * gdk/gdkcolor.c: Use g_slice instead of mem chunks.
690
691         * gtk/gtktreeview.c (gtk_tree_view_key_press): Free new_event
692         after sending it to the search entry.  (#323209, Crispin Flowerday)
693
694         * README.in: Add a note about GTK_FLOATING.
695
696         * gtk/gtkobject.h (GTK_OBJECT_FLOATING): Use g_object_is_floating.
697
698 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
699
700         * gtk/gtktoolbutton.c (clone_image_menu_size): Don't leak
701         a pixbuf.  (#323024, Paolo Borelli)
702
703 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
704
705         * gtk/gtkfilesystemunix.c (get_icon_for_mime_type): Don't crash
706         if mime_type is NULL.  (#322998, Sadrul Habib Chowdhury)
707
708 2005-12-02  Michael Natterer  <mitch@imendio.com>
709
710         * gtk/gtkmenu.c: applied modified patch from maemo-gtk which
711         adds a "horizontal-padding" style property. Fixes bug #323036.
712
713 2005-12-01  Michael Natterer  <mitch@imendio.com>
714
715         Merged modified patch from maemo-gtk that allows to disable
716         toolbar animations. Addresses bug #142582.
717
718         * gtk/gtksettings.c: added boolean property "gtk-enable-animations".
719         (patch from Christian Neumair)
720
721         * gtk/gtktoolbar.c: don't animate toolbar changes if the settings
722         property is FALSE. Replaced the individual "notify::foo"
723         connections to GtkSettings by a single "notify" callback and
724         dispatch internally.
725
726 2005-12-01  Michael Natterer  <mitch@imendio.com>
727
728         * gtk/gtkmenu.c (gtk_menu_class_init): removed redundant
729         assignment of widget_class->motion_notify_event.
730
731 2005-11-29  Matthias Clasen  <mclasen@redhat.com>
732
733         * gtk/gtktoggleaction.c (gtk_toggle_action_class_init): Add 
734         an active property.  (#322673, Jorn Baayen)
735
736         Properly handle model changes in GtkTreeSelection: (#322569,
737         Milosz Derezynski)
738         
739         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): 
740         Get a reference to the model, and stop the iteration if the model
741         of the treeview is changed on the way.
742
743         * gtk/gtktreeprivate.h: 
744         * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New 
745         private function to emit the GtkTreeSelection::changed signal.
746
747         * gtk/gtktreeview.c (gtk_tree_view_set_model): Call 
748         _gtk_tree_selection_emit_changed() when the model changes.
749
750 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
751
752         Fixes the critical warnings from bug #317999, thus fixing the bug
753         completely:
754
755         * gtk/gtkfilechooserdefault.c
756         (gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
757         use _gtk_file_chooser_get_current_folder_path() instead of fetching the
758         impl->current_folder directly.  The latter may be null if we are
759         in RELOAD_NONE state.
760
761 2005-11-28  Federico Mena Quintero  <federico@ximian.com>
762
763         Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
764
765         * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
766         current_folder to the pending select paths here; the path bar will
767         give it to us now.
768         (path_bar_clicked): Add the child_path to the pending select paths
769         here.
770         (show_and_select_paths): Don't filter out folders.
771         (show_and_select_paths): Don't take separate arguments for
772         only_one_path and multiple paths.
773
774         * tests/autotestfilechooser.c (test_folder_switch_and_filters):
775         New test about preserving the filters when we change folders.
776
777 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
778
779         * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
780         -20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
781
782         * gtk/gtkaction.c (gtk_action_sync_button_stock_id) 
783         (connect_proxy): Buttons use the label property for stock ids.  (#322565,
784         Milosz Derezynski)
785
786         * gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
787         handle the cell list and indices into it.  (#321856)
788
789 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
790
791         * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
792         the timeout is done.  (#322291, Jean-Yves Lefort)
793
794 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
795
796         * gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
797         F2 work for renaming bookmarks.  (#320822, Jaap A. Haitsma, patch
798         by Paolo Borelli)
799
800 2005-11-28  Tor Lillqvist  <tml@novell.com>
801
802         * gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
803         Implement the conditional use of FlashWindowEx() properly for MSVC
804         compilations. The code was confusingly assuming that if compiled
805         with a "new" compiler, it will only be run on "new" Windows
806         versions. We want it to run on "old" versions, too, even if
807         compiled with a "new" compiler. There are two orthogonal issues:
808         whether the compiler defines the necessary API in its headers, and
809         whether it is present at run-time. (#318077)
810
811         * gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
812         Windows to get the localized weekday and month names. strftime()
813         in the Microsoft C library returns strings in the default codepage
814         for the locale of the process, not the system codepage. Thus
815         g_locale_to_utf8() isn't useable on the return value from
816         strftime(). (#322603)
817
818 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
819
820         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup): 
821         Fix an example.  (#322493, Elie De Brauwer)
822         
823         Fix two memory handling problems in GtkTreeView: (#322350, 
824         Søren Sandmann)
825         
826         * gtk/gtktreeview.c (gtk_tree_view_destroy) 
827         (gtk_tree_view_set_model): Remove all references to nodes in
828         the old model.
829         (gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
830         before removing the children.
831
832         * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a 
833         PangoLayout here.  (#322505, Paolo Borelli)
834
835 2005-11-27  Tor Lillqvist  <tml@novell.com>
836
837         Once again rework Win32 window decoration code. Doesn't break
838         #104514. The dialogs in gtk-demo now have the same decorations and
839         behaviour as on X11. Tried to fix #322516 but it seems very hard
840         to make the trivial sample program there behave as expected. OTOH,
841         simply moving the gtk_window_decorate() call in the #322516 sample
842         program after the call to gtk_widget_show() helps...
843             
844         * gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
845         the correct semantics. Each call to gdk_window_set_decorations()
846         which calls this function is supposed to affect all decorations.
847
848         (decorate_based_on_hints): New function, looks at both geometry
849         hints and type hint and sets window decorations based on
850         that. Consolidate code from gdk_window_set_geometry_hints() and
851         gdk_window_set_type_hint() here.
852
853         (gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
854         decorate_based_on_hints().
855
856 2005-11-25  Dom Lachowicz <cinamod@hotmail.com>
857
858         * modules/engines/ms-windows/*.[ch]: Merge with gtk-wimp's CVS.
859         Includes improved menu icon spacing, [+]/[-] expander drawing,
860         status-bar gippie drawing, and notebook tab drawing.
861         
862 2005-11-24  Michael Natterer  <mitch@imendio.com>
863
864         * gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
865         that used to hold signal handler IDs to two guint of padding.
866
867         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
868         gulong here.
869
870         (gtk_toolbar_screen_changed): changed accordingly.
871
872 Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
873
874         * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
875         in terms of the GObject floating/sink API.
876
877         * gtk/gtkaboutdialog.c:
878         * gtk/gtkaction.c:
879         * gtk/gtkcellview.c:
880         * gtk/gtkclist.c:
881         * gtk/gtkcolorsel.c:
882         * gtk/gtkcombobox.c:
883         * gtk/gtkfilechooserdefault.c:
884         * gtk/gtkiconview.c:
885         * gtk/gtkinvisible.c:
886         * gtk/gtkitemfactory.c:
887         * gtk/gtklayout.c:
888         * gtk/gtkmenu.c:
889         * gtk/gtkmenutoolbutton.c:
890         * gtk/gtknotebook.c:
891         * gtk/gtkprogress.c:
892         * gtk/gtkrange.c:
893         * gtk/gtkspinbutton.c:
894         * gtk/gtkstatusicon.c:
895         * gtk/gtktext.c:
896         * gtk/gtktextview.c:
897         * gtk/gtktoolbar.c:
898         * gtk/gtktoolbutton.c:
899         * gtk/gtktoolitem.c:
900         * gtk/gtktreeitem.c:
901         * gtk/gtktreeview.c:
902         * gtk/gtktreeviewcolumn.c:
903         * gtk/gtkuimanager.c:
904         * gtk/gtkviewport.c:
905         * gtk/gtkwidget.c:
906         * gtk/gtkwindow.c:
907         ported to use GObject's g_object_ref_sink().
908
909         * gtk/gtkcolorsel.c:
910         * gtk/gtkfilechooserdefault.c:
911         * gtk/gtkaboutdialog.c:
912         fixed compiler warnings.
913
914 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
915
916         * gtk/gtksettings.c (gtk_settings_class_init): Add some docs
917         about gtk-color-scheme.
918
919 2005-11-23  Behdad Esfahbod  <behdad@gnome.org>
920
921         * configure.in (enable_explicit_deps): Fix typo when checking
922         libtool config deplibs_check_method. Moreover, enable explicit
923         deps if we get anything other than pass_all from libtool. (part of
924         #318750)
925
926 2005-11-23  Matthias Clasen  <mclasen@redhat.com>
927
928         * gtk/updateiconcache.c (write_csource): Don't create a big
929         string, since Visual C++ doesn't like strings longer than 64k. 
930         (#322238, Kazuki IWAMOTO
931
932         * gtk/gtkentry.c: Include gtkimcontextsimple.h  (#322235,
933         Kazuki IWAMOTO)
934
935 2005-11-23  Michael Natterer  <mitch@imendio.com>
936
937         * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
938         windows on other screens (correctly remove all temporary
939         references).
940
941 2005-11-23  Michael Natterer  <mitch@imendio.com>
942
943         Added symbolic themable colors. Patch is a merged version of
944         proposals from Matthias and maemo-gtk. Fixes bug #114355.
945
946         * configure.in: require glib >= 2.9.1 for refcountable hashtables.
947
948         * gtk/gtksettings.c: added property "color-scheme" which is a
949         string defining colors like "foreground:black\nbackground:grey".
950         Automatically provide a name->GdkColor hash table mapping for the
951         color scheme.
952
953         * gtk/gtkrc.[ch]: added list of color hashes that works like the
954         list of icon factories. Append the color scheme hash from
955         GtkSettings if it exists. Extended gtkrc syntax to allow defining
956         and referencing of logical colors. Also allow to modulate colors
957         in gtkrc by using arbitrary expressions of mix(), shade(),
958         lighter() and darker(). Added internal function
959         _gtk_rc_style_get_color_hashes().
960
961         * gtk/gtkstyle.[ch]: keep a private list of color hashes around.
962         Get the list from _gtk_rc_style_get_color_hashes(). Export
963         internal function _gtk_style_shade() (used by above color
964         expressions). Added public API gtk_style_lookup_color() which
965         looks up a logical color by name.
966
967         * gtk/gtk.symbols: add gtk_style_lookup_color
968
969         * tests/testgtkrc: use symbolic colors for making
970         the scrollbars red.
971
972 2005-11-22  Michael Natterer  <mitch@imendio.com>
973
974         Made button-press timeouts which work like key repeat timeouts
975         configurable. Addresses bug #142582:
976
977         * gtk/gtksettings.c: added properties "gtk-timeout-initial" and
978         "gtk-timeout-repeat" which defalt to 200/20 (ms).
979
980         Use the values from GtkSettings instead of hardcoding them
981         (the repeat value is either taken as-is for fast repeat or
982         multiplied by 5 for slow repeat). Changed all places to use these
983         two standard initial/repeat timings:
984
985         * gtk/gtkcalendar.c (unchanged 200/20)
986         * gtk/gtknotebook.c (unchanged 200/100)
987         * gtk/gtkpathbar.c (changed from 300/150 to 200/100)
988         * gtk/gtkrange.c (changed from 250/100 to 200/100)
989         * gtk/gtkspinbutton.c (unchanged 200/20)
990
991 2005-11-21  Anders Carlsson  <andersca@imendio.com>
992
993         * configure.in:
994         * gtk/Makefile.am:
995         * gdk/Makefile.am:
996         * gdk/quartz/*:
997         Add quartz backend.
998         
999         * docs/tools/Makefile.am:
1000         Only build docshooter when the X11 backend is used.
1001         
1002         * gtk/gtkplug-stub.c:
1003         Include gtkplug.h here.
1004         
1005         * gtk/gtksocket-stub.c:
1006         Include gtksocket.h here.
1007         
1008 2005-11-21  Matthias Clasen  <mclasen@redhat.com>
1009
1010         * gtk/gtkinputdialog.c: Convert GtkInputDialog to 
1011         g_type_class_add_private.
1012
1013         * gtk/gtksocket.c: Convert GtkSocket to g_type_class_add_private.
1014
1015         * gtk/gtkmenu.c: Convert GtkMenu to g_type_class_add_private.
1016
1017         * gtk/gtk.symbols:
1018         * gtk/gtkcombobox.[hc]: Add a tearoff-title property,
1019         with getter and setter.  (#316482, Olexiy Avramchenko)
1020
1021         * tests/testcombo.c (main): Test gtk_combo_box_set_title
1022
1023         * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch,
1024         pointed out by Michael Natterer.
1025
1026         Fix for bug #321542, Benedikt Meurer:
1027         
1028         * gtk/gtkcombobox.c (gtk_combo_box_set_active_internal):
1029         Emit notify::active.
1030         
1031         (gtk_combo_box_child_show, gtk_combo_box_child_hide): Use
1032         g_signal_emit, not g_signal_emit_by_name.
1033
1034 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
1035
1036         Fix crashes in connection with pathbar scrolling (#321560,
1037         Bogdan Nicula)
1038         
1039         * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons): 
1040         Stop scrolling when desensitising slider buttons.
1041         (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press): 
1042         And use it here.  
1043
1044         * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
1045         scrolling_down flag.
1046
1047 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
1048
1049         * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism.
1050         (#321777, Jens Granseuer)
1051
1052         * gtk/gtkaction.c (disconnect_proxy): Disconnect the
1053         sync callback for the visibility property.  (#321761,
1054         Philip Langdale)
1055
1056         Turn off input methods in invisible entries, since
1057         they are confusing.  (#317002, James Su)
1058         
1059         * gtk/gtkentry.c (gtk_entry_set_visibility): Toggle input
1060         methods if visibility changes.
1061         (popup_targets_received): Don't show the input method
1062         menu if the entry is invisible.  
1063
1064 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
1065
1066         * README.in: Add a note about range arrow sensitivity.
1067
1068         * perf/treeview.c: const correctness fixes
1069         found by Arjan van de Ven and gcc.
1070
1071 2005-11-16  Michael Natterer  <mitch@imendio.com>
1072
1073         * gtk/gtkimage.c (animation_timeout): call
1074         gtk_window_process_updates() so the animation keeps running even
1075         if the main loop is busy with sources that eat a lot of cpu with
1076         high priority. Fixes bug #321444.
1077
1078         (gtk_image_new_from_animation): document the fact that the
1079         animation will stop running if the main loop is busy with sources
1080         that have priorities higher than G_PRIORITY_DEFAULT.
1081
1082         * tests/testimage.c: added test case that shows an animation even
1083         though a cpu-eating idle function is running.
1084
1085 2005-11-16  Michael Natterer  <mitch@imendio.com>
1086
1087         * gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
1088         function which destroys the display's event source. Also removes
1089         the source from the global display_sources list and unrefs it.
1090
1091         * gdk/x11/gdkprivate-x11.h: declare the function.
1092
1093         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
1094         instead of half-destroying the source here.
1095
1096 2005-11-15  Matthias Clasen  <mclasen@redhat.com>
1097
1098         * gtk/gtktreestore.c (gtk_tree_store_move): Fix a memory
1099         leak.  (#321032, Peter Zelezny)
1100
1101 2005-11-15  Michael Natterer  <mitch@imendio.com>
1102
1103         * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): destroy
1104         display->xid_ht as late as possible (right before XCloseDisplay)
1105         because it still needs to be around when the display's screens are
1106         finalized. (#85715)
1107
1108 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
1109
1110         * gtk/gtkselection.c (gtk_selection_data_set_uris): Don't
1111         leak result.  (#321441, Tommi Komulainen)
1112
1113 2005-11-14  Matthias Clasen  <mclasen@redhat.com>
1114
1115         * gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
1116         Don't crash if there is no builtin icon.
1117
1118 2005-11-14  Michael Natterer  <mitch@imendio.com>
1119
1120         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
1121         removed redundant calls to g_object_notify().
1122
1123 2005-11-13  Matthias Clasen  <mclasen@redhat.com>
1124
1125         * gdk/gdkcolor.c (gdk_color_parse): Documentation 
1126         improvements.  (#321338)
1127
1128         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Make
1129         limit an inclusive boundary.  (#321299)
1130
1131 2005-11-12  Michael Natterer  <mitch@imendio.com>
1132
1133         * gtk/Makefile.am: fixed icon rules so gtkbuiltincache.h is only
1134         rebuilt if needed.
1135
1136 2005-11-12  Dom Lachowicz <cinamod@hotmail.com>
1137
1138         * modules/engines/ms-windows/msw_style.c: Bug #313627. Make win32 
1139         theme's handling of toolbars, handleboxes, and menubars more in-line
1140         with Microsoft's IE style.
1141         * modules/engines/ms-windows/*.c: Indentation cleanups
1142         
1143 2005-11-12  Matthias Clasen  <mclasen@redhat.com>
1144
1145         Make builtin icons work in gtk_window_set_icon_name() 
1146         (#321046, Maxim Udushlivy)
1147
1148         * gtk/gtkicontheme.c (insert_theme): Always insert the default
1149         theme.
1150         (ensure_valid_themes): Call _gtk_icon_theme_ensure_builtin_cache()
1151         from here.
1152         (theme_lookup_icon, find_builtin_icon): ...and not from here.
1153         (gtk_icon_theme_lookup_icon): Remove an unncessary assert.
1154         (gtk_icon_theme_get_icon_sizes): Also check builtin icons.
1155
1156 2005-11-12  Tor Lillqvist  <tml@novell.com>
1157
1158         * gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
1159         dotfiles, no such convention on Win32. Just hide files with the
1160         hidden attribute. (#314627)
1161
1162 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
1163
1164         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not
1165         check whether the path is a folder.  It is useful to bookmark
1166         files as well (e.g. todo.txt), and this will also help
1167         performance.
1168         (shortcuts_add_bookmark_from_path): Likewise.
1169         (shortcuts_activate_iter): Change folders or select files, as
1170         appropriate.
1171
1172 2005-11-11  Federico Mena Quintero  <federico@ximian.com>
1173
1174         * tests/autotestfilechooser.c (main): Use
1175         g_log_set_default_handler() instead of explicitly setting a
1176         handler for each domain.
1177
1178         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Only get
1179         the base path of the volume if it is mounted.
1180
1181 2005-11-11  Michael Natterer  <mitch@imendio.com>
1182
1183         Added per-stepper API for GtkRange's stepper sensitivity as
1184         discussed in bug #321056:
1185
1186         * gtk/gtkenums.h: added GtkSensitivityType which can be
1187         { AUTO, ON, OFF }.
1188
1189         * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity"
1190         and "upper-stepper-sensitivity" and public getters/setters for
1191         them. Changed stepper drawing to honor the new properties.
1192
1193         * gtk/gtk.symbols: added the new symbols.
1194
1195 2005-11-10  Matthias Clasen  <mclasen@redhat.com>
1196
1197         * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and
1198         emit them when the popup is shown or hidden.  (#162531, Tommi
1199         Komulainen)
1200
1201         * tests/testcombo.c: Add an example of popuplating a combobox
1202         on click.
1203
1204         * gtk/gtktreeview.c (gtk_tree_view_motion_resize_column): Another
1205         erroneous semicolon.
1206
1207         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get): Remove an erroneous
1208         semicolon. 
1209
1210         Don't corrupt odd keymaps (#316638, Kean Johnston)
1211         
1212         * gdk/x11/gdkkeys-x11.c (set_symbol): Auxiliary function to
1213         handle frobbing keymaps with odd numbers of syms/code.
1214         
1215         * gdk/x11/gdkkeys-x11.c (update_keymaps): Use set_symbol() to 
1216         frob the keymap.
1217
1218         Improve navigation to parent folders.  (#318444, Andrei Yurkevich)
1219         
1220         * gtk/gtkpathbar.[hc]: Add a child_path argument to
1221         the path_clicked signal.
1222         * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the
1223         child_path, if it is provided.
1224         * gtk/marshalers.list (path_bar_clicked): Add the necessary
1225         glue.
1226
1227         * gtk/gtkmenu.c: Fix some compiler warnings. (#321141,
1228         Kjartan Maraas)
1229         
1230         * gtk/gtk.symbols: 
1231         * gtk/gtktreeview.h: 
1232         * gtk/gtktreeview.c: Implement a getter for headers-clickable.
1233         (#163851, Richard Hult)
1234
1235 2005-11-10  Michael Natterer  <mitch@imendio.com>
1236
1237         Applied patch from maemo-gtk that addresses many issues wrt
1238         display migration and display closing (bug #85715).
1239
1240         * gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
1241         default display to NULL when it's closed. Instead set the most
1242         recently opened display as new default (if one exists).
1243
1244         * gdk/gdkpango.c (on_renderer_display_closed): fixed signature
1245         of this callback.
1246
1247         * gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
1248         exist before unrefing them.
1249
1250         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
1251         is closed, allow destruction of the root window.
1252
1253         * gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
1254         dispose(), free stuff that was leaked before.
1255
1256         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
1257         the xsettings_client still exists before destroying it.
1258
1259         * gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
1260         X resources.
1261
1262         * gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
1263         dispose() implementation.
1264
1265         * gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
1266         dispose() and check if it still exists before unrefing it. Set
1267         their pointers to NULL/None *after* upchaining in dispose(),
1268         because X11 implementations of members of the parent class still
1269         need them for their own destruction.
1270
1271         * gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
1272         was g_error()ing when finalizing a visual.
1273
1274         * gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
1275         get_clipboard_widget() because it would create the widget if it
1276         doesn't exist. Use g_object_get_data() directly instead.
1277
1278         * gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
1279         of this callback.
1280
1281 2005-11-10  Simos Xenitellis  <simos@gnome.org>
1282
1283         * configure.in: Added Tatar (tt) to ALL_LINGUAS.
1284
1285 Wed Nov  9 16:29:42 2005  Tim Janik  <timj@imendio.com>
1286
1287         * gtk/gtkrange.c: patch from maemo-gtk that changes GtkRange
1288         to render its arrows insensitive when the adjustment is in
1289         its min or max position. this makes range arrow behaviour 
1290         consistent with spin button behaviour. (#321056)
1291
1292 2005-11-09  Tor Lillqvist  <tml@novell.com>
1293
1294         * gdk/gdkinternals.h
1295         * gdk/gdk.c (gdk_debug_keys[]): Add new GDK_DEBUG_DRAW flag to
1296         the GdkDebugFlag enum.
1297
1298         * gdk/win32/gdkdrawable-win32.c: Use DRAW to trigger GDK_NOTEs in
1299         this file instead of MISC. Now asking for MISC will give mainly
1300         window manipulation debugging output with the Win32 backend.
1301
1302 2005-11-09  Tor Lillqvist  <tml@novell.com>
1303
1304         * gdk/win32/gdkwindow-win32.c: Remove unnecessary includes.
1305
1306         (_gdk_win32_get_adjusted_client_rect): Remove this two-line
1307         function which was used only in one place.
1308
1309         (get_outer_rect): Use _gdk_win32_adjust_client_rect().
1310
1311         (gdk_window_set_geometry_hints): If we have identical minimum and
1312         maximum size hints, remove the resize and maximize
1313         decorations/functions. (#104514)
1314
1315         If we have a maximum size hint, remove the maximize
1316         decoration/function but ensure the resize decoration/function is
1317         available. Otherwise ensure both resize and maximize
1318         decorations/functions are there.
1319
1320         (set_or_clear_style_bits): Factored out common code from
1321         gdk_window_set_decorations() and gdk_window_set_functions(). 
1322
1323         Hack the window style setting once more: Only touch the window
1324         style bits corresponding to the GdkWMDecoration or GdkWMFunction
1325         parameter bitmasks. Hopefully this finally is the correct thing to
1326         do. We used to clear all other bits than those that were being
1327         set, or set all other bits than those that were being cleared.
1328
1329         Take into account that adding or removing decorations leaves the
1330         window's outer size unchanged, i.e., the client area's size and
1331         position change. This is apparently not what we want, so change
1332         also the window's (outer) position and size appropriately so that
1333         the client area's position and size stay constant.
1334
1335         gtk-demo's color selector dialog is now non-resizable like on X11
1336         (I tested with metacity in GNOME). Torn off menus are shrinkable
1337         vertically but have a maximum size, and are not maximizable or
1338         minimizable, like on X11.
1339
1340         (gdk_window_set_decorations, gdk_window_set_functions): Let
1341         set_or_clear_decorations() do most of the job.
1342
1343         * gdk/win32/gdkprivate-win32.h: Remove declaration of
1344         _gdk_win32_get_adjusted_client_rect().
1345
1346 2005-11-09  Tor Lillqvist  <tml@novell.com>
1347
1348         * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32)
1349         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_init,
1350         gdk_window_get_type_hint, gdk_window_get_type_hint): Store the
1351         type hint. Implement gdk_window_get_type_hint() by just returning
1352         the hint stored.
1353
1354 2005-11-09  Tor Lillqvist  <tml@novell.com>
1355
1356         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
1357         Remove code that has been permanently ifdeffed out for two years.
1358
1359 2005-11-08  Matthias Clasen  <mclasen@redhat.com>
1360
1361         * gdk/gdkgc.c (gdk_gc_finalize): Unref tile and stipple when
1362         finalizing a gc.  (#320789, Nickolay V. Shmyrev)
1363
1364         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Ignore
1365         icons if they would make the request large enough to cause
1366         Xlib to loose the connection.  (#320909, Claudio Saavedra)
1367
1368 2005-11-08  Michael Natterer  <mitch@imendio.com>
1369
1370         * gdk/gdk.symbols
1371         * gdk/gdkwindow.h
1372         * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
1373         extracted from maemo-gtk). Fixes bug #320872.
1374
1375 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
1376
1377         * gtk/gtkfilechooserdefault.c (shortcuts_reorder): Don't
1378         looks the bookmark label when reordering.  (#320720, Jeremy Cook)
1379
1380         * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons.
1381         Don't grab focus when a slider button is pressed, instead, use
1382         a bit in the pathbar struct to determine whether to scroll up
1383         or down.  (#314486, Carlos Garnacho)
1384
1385         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): 
1386         Don't popup the completions if the focus has already been
1387         moved somewhere else.  (#319914, Christian Persch)
1388
1389         * gtk/gtktoolitem.c (_gtk_tool_item_toolbar_reconfigured): 
1390         Raise the drag_window after reconfiguring the 
1391         toolbar.  (#320803, Christian Persch)
1392
1393         * gtk/gtk.symbols: 
1394         * gtk/gtkfilechooserbutton.h: 
1395         * gtk/gtkfilechooserbutton.c: Add a focus-on-click property
1396         with setter and getter.  (#318945, Christian Persch)
1397         
1398 Mon Nov  7 16:15:16 2005  Tim Janik  <timj@imendio.com>
1399
1400         * configure.in: fixed missing $X_CFLAGS setup in case x11.pc is present.
1401
1402 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
1403
1404         * configure.in: Adjust to the stock icon changes.
1405         
1406 2005-11-07  Tor Lillqvist  <tml@novell.com>
1407
1408         * gdk/win32/gdkcursor-win32.c (pixbuf_to_hbitmaps_normal):
1409         Correct the calculation of maskstride. (#320152, Peter Zelezny)
1410         
1411 2005-11-06  Michael Natterer  <mitch@imendio.com>
1412
1413         * gtk/Makefile.am (icons): fixed rule to actually create the
1414         symlinks, erroring out if anything goes wrong.
1415
1416 2005-11-06  Tor Lillqvist  <tml@novell.com>
1417
1418         * gtk/updateiconcache.c (build_cache): Can't rename a file if the
1419         target exists on Win32. First rename the target temporarily, then
1420         if the renaming of the source to target fails, restore the
1421         original name for the target.
1422
1423         * gtk/Makefile.am: Use EXEEXT in the dependency on gtk-update-icon-cache.
1424
1425 2005-11-06  Tor Lillqvist  <tml@novell.com>
1426
1427         (pixbuf_to_hbitmaps_alpha_winxp): Use an 1-bit mask bitmap,
1428         like pixbuf_to_hbitmaps_normal().
1429         (_gdk_win32_pixbuf_to_hicon_supports_alpha): Check
1430         G_WIN32_IS_NT_BASED() first, so we can pretend being on Win9x by
1431         setting the G_WIN32_PRETEND_WIN9X environment variable.
1432         
1433 2005-11-06  Tor Lillqvist  <tml@novell.com>
1434
1435         Make icon masks work on Win98 (#320152, Peter Zelezny)
1436
1437         * gdk/win32/gdkcursor-win32.c (create_color_bitmap): Take also a
1438         parameter for the depth of the bitmap, so that this function can
1439         be used to create 1-bit bitmaps, too.
1440         (pixbuf_to_hbitmaps_normal): Create an 1-bit bitmap for the mask,
1441         and initialize it properly.
1442
1443 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
1444
1445         Store builtin stock icons in an icon cache, instead of
1446         populating a hash table with pixbufs at startup, to save both
1447         memory and startup time.
1448
1449         * gtk/stock-icons/*: Reorganize the icons in a directory structure
1450         suitable for gtk-update-icon-cache, and rename them to match the
1451         stock ids.
1452
1453         * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
1454         add _gtk_icon_cache_has_icon_in_directory().
1455
1456         * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
1457         to store the contents of the icon cache in a C header.
1458
1459         * gtk/gtkbuiltincache.h: Generated private header which contains 
1460         the icon cache for the builtin icons.
1461
1462         * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
1463         icons, and use that in addition to the hash table whenever
1464         builtin icons are searched.
1465
1466         * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
1467         use it for static stock ids. 
1468         (get_default_icons): Don't add the builtin
1469         icons to the icon theme, just register the stock ids.
1470         (render_fallback_image): Take the fallback image out of the
1471         builtin icon cache.
1472         
1473         * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add 
1474         the necessary machinery to rebuild gtkbuiltincache.h.
1475
1476 2005-11-04  Michael Natterer  <mitch@imendio.com>
1477
1478         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): applied patch
1479         from maemo-gtk that changes the mtime check for rc files from
1480         '>' to '!=', otherwise theme changes go unnoticed when turning
1481         back the clock (Tommi Komulainen).
1482
1483 2005-11-04  Tor Lillqvist  <tml@novell.com>
1484
1485         * gtk/gtkstatusicon.c (gtk_status_icon_set_tooltip): Plug memory
1486         leak on Win32.
1487
1488 2005-11-03  Tor Lillqvist  <tml@novell.com>
1489
1490         * gdk/win32/gdkcursor-win32.c: As there is only one GdkDisplay in
1491         the Win32 backend, check that GdkDisplay* parameters are equal to
1492         _gdk_display instead of using the unnecessarily general
1493         GDK_IS_DISPLAY().
1494
1495         (pixbuf_to_hbitmaps_alpha_winxp): Rename the variables for the
1496         color bitmap to have "color" in their name, for similarity with
1497         pixbuf_to_hbitmaps_normal(). Create a color bitmap for the mask,
1498         too, instead of creating a b&w bitmap with CreateBitmap(). Set up
1499         the mask bitmap's contents, ones for those pixels in the color
1500         bitmap where the alpha is zero, zero for other pixels. We used to
1501         use an uninitialized mask bitmap! This meant that icons and
1502         cursors created presumably worked more or less by accident.
1503         Totally blank icons with zero alpha everywhere (as used by
1504         gtktrayicon.c) definitely did not work as expected.
1505
1506         * gtk/Makefile.am: Include gtkstatusicon.c on all platforms.
1507
1508         * gtk/gtkstatusicon.c: Implement for Win32. Use code from
1509         gtktrayicon-win32.c as applicable. (gtktrayicon-win32.c is not
1510         necessary and can be removed from CVS. It has never been mentioned
1511         in gtk/Makefile.am.) No tray icon widget, GtkImage or GtkTooltips
1512         are used on Win32. One label widget is used (but never shown) as
1513         gtk_widget_render_icon() needs a widget.
1514
1515         Ifdefs used as necessary in several places. It might be cleaner to
1516         split out the backend-specific parts to separate files, or at
1517         least collect them into separate blocks in the file.
1518
1519         (wndproc): New function. Window procedure to monitor mouse events
1520         in the system tray icon. Call gtk_status_icon_button_press() as
1521         needed.
1522         (create_tray_observer): New function. Creates a hidden window that
1523         only serves as a tray icon message observer.
1524
1525         * tests/teststatusicon.c (icon_activated): Position the dialog
1526         with GTK_WIN_POS_CENTER.
1527         (do_quit): New function, hide and unref the GtkStatusIcon, and
1528         call gtk_main_quit().
1529         (popup_menu): Add a Quit menu item that calls do_quit().
1530         
1531 2005-11-02  Tor Lillqvist  <tml@novell.com>
1532
1533         * gdk/win32/gdkcolor-win32.c
1534         * gdk/win32/gdkscreen-win32.c
1535         * gdk/win32/gdkwindow-win32.c: Whitespace consistency
1536         fixes. Remove superfluous test for GdkWindow* parameters being
1537         non-NULL. Testing GDK_IS_WINDOW() is enough. As there is only one
1538         GdkScreen and one GdkDisplay in the Win32 backend, use those
1539         variables instead of the getter functions. For GdkDisplay* and
1540         GdkScreen* parameters, check that they are equal to the
1541         corresponding singleton variables instead of the more general
1542         GDK_IS_DISPLAY() or GDK_IS_SCREEN().
1543
1544 2005-11-02  Matthias Clasen  <mclasen@redhat.com>
1545
1546         * gtk/gtktextview.c: Remove some g_return_if_fail() from
1547         static functions, replace some others by g_assert().
1548         
1549         * gtk/gtktextview.c (selection_motion_event_handler) 
1550         (gtk_text_view_start_selection_drag): Keep track of the original
1551         selection boundaries during a drag selection, in order to correctly
1552         decide when to extend or shrink the selection.  (#320167,
1553         reported by Arvind S N, patch by Paolo Borelli)
1554
1555         * gtk/gtktextbtree.c (_gtk_text_line_char_to_byte_offsets): 
1556         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): Replace
1557         manual offset calculations by g_utf8_offset_to_pointer().
1558         (#320360, Paolo Borelli)
1559
1560 Tue Nov  1 16:18:24 2005  Tim Janik  <timj@imendio.com>
1561
1562         * gtk/gtkrbtree.[hc]: get rid of GAllocator usage, allocate and free 
1563         nodes via the g_slice_*() API.
1564         _gtk_rbtree_new(): fixed wrong node allocation via g_new().
1565
1566 2005-11-01  Tor Lillqvist  <tml@novell.com>
1567
1568         * gdk/win32/gdkprivate-win32.h
1569         * gdk/win32/gdkglobals-win32.c
1570         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
1571         pre-interned GdkAtoms and pre-registered clipboard formats. Sort
1572         their declarations, definitions and assignments into a more
1573         logical and consistent order.
1574
1575         * gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
1576         CF_ prefix for the predefined clipboard format names. Put quotes
1577         around registered format names to distinguish them.
1578         
1579         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
1580         immediately with a warning if the property type is STRING, TEXT,
1581         COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
1582         should never pretend to handle on Win32. Handle only UTF8_STRING
1583         here, other formats with delayed rendering. Use \uc1 instead of
1584         \uc0 when generating Rich Text Format for easier testability on
1585         XP, where WordPad misinterprets \uc0 encoded characters. Add more
1586         GDK_NOTE debugging output for Clipboard operations.
1587
1588         * gdk/win32/gdkselection-win32.c: Debugging printout improvements.
1589         (gdk_selection_convert): Don't pretent to handle STRING, just
1590         UTF8_STRING. Streamline error handling, don't unnecessarily have a
1591         GError which then isn't used for anything anyway if it gets set.
1592         (gdk_win32_selection_add_targets): Skip also STRING, TEXT,
1593         COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
1594
1595         * config.h.win32.in: Sync with what configure produces.
1596
1597         * configure.in: Don't look for X_PACKAGES unless building for
1598         x11. (#313986, John Ehresman)
1599
1600 2005-10-28  Erdal Ronahi  <erdal.ronahi@gmail.com>
1601
1602         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
1603                         Wondered why there was no ku there before??
1604
1605 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
1606
1607         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Add the popup
1608         window to the toplevels window group.  (#319912, Christian Persch)
1609
1610 2005-10-28  Kristian Rietveld  <kris@gtk.org>
1611
1612         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): fix
1613         stupid thinko.
1614
1615 2005-10-28  Matthias Clasen  <mclasen@redhat.com>
1616
1617         * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix the anchor of the default
1618         drag cursors.  (#319200, Federico Mena Quintero)
1619
1620         * gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): Handle
1621         Shift-G to go to the previous match, like firefox.  (#320061, Christian 
1622         Neumair)
1623
1624         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_build_level): Fix a
1625         C99ism.  (#320000, Kazuki Iwamoto)
1626
1627         * gtk/gtkaboutdialog.c (gtk_about_dialog_init): Add the little 
1628         stars.  (#319985, Bastien Nocera)
1629
1630         * gtk/gtktreeview.c (gtk_tree_view_search_entry_flush_timeout): Return
1631         FALSE, so we don't flush repeatedly.  (#319151, Alexander Larsson)
1632
1633 2005-10-26  Michael Natterer  <mitch@imendio.com>
1634
1635         Fix bug #319974:
1636
1637         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
1638         make sure that setting any of pixbuf/stock-id/icon-name resets the
1639         others because they are mutually exclusive, and that unsetting any
1640         of them only resets the pixbuf and nothing else. Also added
1641         some missing g_object_notify().
1642
1643         (gtk_cell_renderer_pixbuf_get_property): simplified calls to
1644         g_value_set_object().
1645
1646         (gtk_cell_renderer_pixbuf_create_stock_pixbuf)
1647         (gtk_cell_renderer_pixbuf_create_named_icon_pixbuf): added
1648         g_object_notify ("pixbuf").
1649
1650 2005-10-27  Matthias Clasen  <mclasen@redhat.com>
1651
1652         * gtk/gtktreeview.c (gtk_tree_view_button_press): Be more 
1653         careful about initializing cell_area.  (#319382, Tommi
1654         Komulainen)
1655
1656         * gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
1657         Ctrl-PageUp/PageDown.  (#318670, Christian Neumair)
1658
1659         * demos/gtk-demo/clipboard.c (paste_received): Only set the
1660         text if it is not NULL.  (#319930, Thomas Klausner)
1661
1662         * gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
1663         loader before trying to get the pixbuf.  (#319930, Thomas Klausner)
1664
1665 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
1666
1667         * gtk/gtkfilesystem.c (gtk_file_system_module_load): 
1668         * gtk/gtkthemes.c (gtk_theme_engine_load): 
1669         * gtk/gtkimmodule.c (gtk_im_module_load): Use G_MODULE_BIND_LAZY
1670         when dlopening modules.  (#319557, Laszlo Peter)
1671
1672 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
1673
1674         * gtk/gtktextbtree.c (gtk_text_btree_resolve_bidi): Only use text
1675         segments when determining text direction.  (#319065, Tommi Komulainen)
1676
1677         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
1678         on duplicate destroy.  (#318953, Gustavo Carneiro)
1679
1680         * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog): 
1681         Point out that destroy-with-parent is a bad idea for the dialog
1682         passed to this function.  (#318943, Christian Persch)
1683
1684         * */Makefile.am: use $(GLIB_MKENUMS) instead of 
1685         glib-mkenums.  (#318582, Damien Carbery)
1686
1687         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Clarify
1688         docs.  (#317682, Christian Neumair)
1689
1690         * gdk/x11/gdkdnd-x11.c: Remove an extra const which doesn't
1691         seem to affect the placement of the data in the readonly 
1692         section, and causes problems with some compilers.  (#317844)
1693
1694 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
1695
1696         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1697         Fix some issues with background drawing in RTL.  (#318781,
1698         Eric Cazeaux)
1699
1700         * tests/Makefile.am:
1701         * tests/testentrycompletion.c: Apply a patch by Christian
1702         Persch to add property editors.
1703
1704         * gtk/gtkstatusicon.c: Emit activate on single-click,
1705         not on double-click, change proposed by Milosz Derezynski.
1706
1707 2005-10-25  Kristian Rietveld  <kris@gtk.org>
1708
1709         Fixes #311955, reported by Markku Vire; and a lot more.
1710
1711         * gtk/gtktreemodelfilter.c: Made this thing work correctly.
1712         Levels can now have invisible nodes cached, functions have been
1713         rewritten/refactored to take this into account; also the logic in
1714         some functions has been corrected.
1715         
1716         Each referenced node now references all visible children or a single
1717         invisible child, in order to be able to monitor all changes in the
1718         child model required for correct operation.
1719
1720         When a virtual root is set, all nodes on the virtual root level are
1721         referenced.
1722
1723         At last, a bunch of random bug fixes and comment updates.
1724
1725 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
1726
1727         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
1728         more docs.  (#319722, Paolo Borelli)
1729
1730         * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the 
1731         initialization of screen_x11->xft_rgba more explicit.  (#319627,
1732         Bogdan Nicula)
1733
1734         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
1735         in a blurb.  (#319499, Francisco Javier F. Serrador)
1736
1737 2005-10-24  Matthias Clasen  <mclasen@redhat.com>
1738
1739         Add settings to hide the input method and Unicode control character
1740         submenus in the context menus of GtkEntry and GtkTextView.  
1741         
1742         * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
1743         
1744         * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
1745
1746         * gtk/gtktextview.c (popup_targets_received): 
1747         * gtk/gtkentry.c (popup_targets_received): Use the settings here.
1748
1749 2005-10-24  Kristian Rietveld  <kris@gtk.org>
1750
1751         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
1752         row-has-child-toggled when the level is not in the cache does not
1753         make sense.  (This bug probably crept in during the early stages
1754         of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
1755         implementation yet),
1756         (gtk_tree_model_sort_real_unref_node): only get the child iter
1757         when we will actually also use it.
1758
1759 2005-10-22  Michael Natterer  <mitch@imendio.com>
1760
1761         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
1762         widget being realized, in addition to being visible, to avoid
1763         running into precondition check in gtk_tree_view_get_cell_area().
1764         (approved by Kris).
1765
1766 2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
1767
1768         * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
1769         Experimentally, scrollbar steppers can shrink to 8 pixels on 
1770         Win32. Reflect that in the theme.
1771         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
1772         there is a 1-pixel border between a scrollbar and its child
1773         in ScrolledWindows on Win32. Reflect that in the theme.
1774         
1775 2005-10-20  Matthias Clasen  <mclasen@redhat.com>
1776
1777         * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
1778         for the selection window.  (#318806, Alex Larsson)
1779
1780 2005-10-18  Federico Mena Quintero  <federico@ximian.com>
1781
1782         Fixes bug #317999:
1783
1784         * tests/autotestfilechooser.c
1785         (test_button_folder_states_for_action): Test that we have either
1786         $cwd or the explicitly-set folder.
1787         (test_reload_sequence): Likewise.
1788
1789         * gtk/gtkfilechooserdefault.c
1790         (gtk_file_chooser_default_get_current_folder): If our reload_state
1791         is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
1792
1793 2005-10-14  Tor Lillqvist  <tml@novell.com>
1794
1795         * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
1796         It didn't really do anything useful, and was just confusing and
1797         incomplete. Comments claimed we don't do delayed rendering, but in
1798         fact we do, for images. (The delayed rendering code has other
1799         problems, though, see #168173.) The clipboard viewer code was
1800         probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
1801         the message when necessary). It was just test code, it said so in
1802         a comment. Add something similar back later if necessary.
1803
1804         (_win32_on_clipboard_change,
1805         _gdk_win32_register_clipboard_notification): Remove.
1806
1807         (gdk_display_supports_selection_notification,
1808         gdk_display_request_selection_notification): Always just return
1809         FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
1810
1811 2005-10-13  Tor Lillqvist  <tml@novell.com>
1812
1813         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
1814         Alt-Enter specially. It does not have any special meaning and
1815         should be passed on to the application. (#318378, Tim Evans)
1816
1817 2005-10-13  Tor Lillqvist  <tml@novell.com>
1818
1819         Set visual depth to 24 for 32 bits-per-pixel devices on
1820         Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
1821         optimized composite_0888() function rather than the slower image
1822         dithering functions to draw pixbufs (#313993, John Ehresman)
1823
1824         * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
1825         _gdk_windowing_get_bits_for_depth() to initialize
1826         GdkImage::bits_per_pixel.
1827         (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
1828
1829         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
1830         _gdk_windowing_get_bits_for_depth() to initialize
1831         BITMAPINFOHEADER::biBitCount.
1832
1833         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
1834         GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
1835         32.
1836
1837 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
1838
1839         * demos/gtk-demo/appwindow.c: (about_cb):
1840           use PACKAGE_VERSION,bump year (#318654)
1841
1842 2005-10-11  Matthias Clasen  <mclasen@redhat.com>
1843
1844         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off 
1845         toggle here with the matching on toggle if it immediately follows. 
1846         This is a common case, and handling it here prevents quadratic blowup 
1847         in cleanup_line() below.  (#317125)
1848
1849         * gtk/gtktextsegment.h: 
1850         * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
1851         the character counts into this function instead of computing them
1852         again.
1853
1854 2005-10-10  Tommi Komulainen  <tommi.komulainen@iki.fi>
1855
1856         * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
1857         code.
1858         * gtk/gtkfilechooserdefault.c
1859         (gtk_file_chooser_default_add_shortcut_folder): Return an error code
1860         when the shortcut already exists in the sidebar.  (#147521)
1861
1862 2005-10-09  Matthias Clasen  <mclasen@redhat.com>
1863
1864         * tests/testcombo.c: Demonstrate how to use custom widgets in
1865         a GtkComboBox.  
1866
1867 2005-10-07  Federico Mena Quintero  <federico@ximian.com>
1868
1869         Fixes bug #317999:
1870
1871         * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
1872         the the result of gtk_file_chooser_get_folder() is NULL or
1873         non-NULL at the right times.  Log the tests.
1874         (test_button_folder_states): New test for the initial states of
1875         the current folder in GtkFileChooserButton.
1876         (main): Test that the number of warnings/errors/critical errors is
1877         zero.
1878
1879         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
1880         Clarify the documentation on when this can return NULL.
1881         (gtk_file_chooser_get_current_folder_uri): Likewise.
1882
1883         * gtk/gtkfilechooserbutton.c (struct
1884         _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
1885         we use it to keep track of whether a folder has been set.
1886         (gtk_file_chooser_button_map):  Implement.  If no folder has been
1887         loaded before, we at least try to load $cwd here.
1888         (gtk_file_chooser_button_constructor): If the construct-time
1889         dialog already has a folder set, turn on our folder_has_been_set
1890         flag.
1891         (dialog_current_folder_changed_cb): Turn on our
1892         folder_has_been_set flag.
1893
1894 2005-10-07  Michael Natterer  <mitch@gimp.org>
1895
1896         * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
1897         PROFILE_FILE_CHOOSER because they break compilation after the
1898         removal of <unistd.h>.
1899
1900 2005-10-07   Matthias Clasen  <mclasen@redhat.com>
1901
1902         * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
1903         by moving it out of the profiling ifdef.
1904
1905         * gtk/gtkfilechooserdefault.c: Remove a redundant (and
1906         unconditional) include of unistd.h  (#318211, Kazuki Iwamoto)
1907
1908         * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
1909         g_return_val_if_fail(), not g_return_if_fail().  (#318412,
1910         Kazuki Iwamoto)
1911
1912 2005-10-06  Matthias Clasen  <mclasen@redhat.com> 
1913                 
1914         * gtk/gtk.symbols:
1915         * gtk/gtktextbuffer.h:
1916         * gtk/gtktextbuffer.c: Add a readonly has-selection property
1917         with a getter.  (#318161, Paolo Borelli)
1918
1919 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
1920
1921         * README.in: Start collecting release notes for 2.10.
1922
1923         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
1924         leak fix, since the assertion failures were traced to 
1925         an xchat bug.  (#314696)
1926         
1927         * gtk/gtkstyle.c (gtk_style_detach):
1928         (gtk_style_attach):  Documentation improvements.
1929         (gtk_style_detach): Assert that the attach_count is > 0.
1930
1931 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
1932
1933         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
1934         shortcut position, not a ShortcutsIndex, to make the function more
1935         generic.
1936         (home_folder_handler): Pass the resolved index to
1937         switch_to_shortcut(), rather than just SHORTCUTS_HOME.
1938         (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
1939         (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
1940         binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0.  These
1941         make the respective key switch to the first, second, ..., tenth
1942         bookmark.
1943         (quick_bookmark_handler): Implement.
1944
1945 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
1946
1947         * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
1948         Desktop; just use their real names on the file system for the
1949         user-visible names.
1950
1951         * gtk/gtkfilechooserdefault.c
1952         (gtk_file_chooser_default_class_init): Add a "desktop-folder"
1953         binding signal, and bind it to M-d by default.
1954         (desktop_folder_handler): Implement the default handler.
1955         (home_folder_handler): Use a helper function.
1956         (switch_to_shortcut): New helper function.
1957         (shortcuts_append_home): Don't special-case the name of "Home";
1958         just use the folder name.
1959
1960 2005-10-04  Tor Lillqvist  <tml@novell.com>
1961
1962         * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
1963         HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
1964
1965 2005-10-04  Matthias Clasen  <mclasen@redhat.com>
1966
1967         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
1968         from yesterday, since it leads to assertion failures.  (#317879,
1969         Sebastian Bacher)
1970
1971 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
1972
1973         * gtk/gtkcalendar.c (gtk_calendar_init): Call 
1974         calendar_compute_days() after setting priv->week_start.
1975
1976 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
1977
1978         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
1979         removing it from the hash table.  (#314696, Benjamin Berg)
1980
1981 2005-10-01  Tor Lillqvist  <tml@novell.com>
1982
1983         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
1984         BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
1985         is that the the desktop isn't visible because the session has been
1986         switched, the screen is locked, or a terminal server session
1987         disconnected, so no error message necessary. (#137796)
1988
1989         It is of course remotely possible that BitBlt() failing with
1990         ERROR_INVALID_HANDLE might also be caused by some other
1991         problem. We could strive for perfection and track whether the
1992         desktop is visible by using WTSRegisterSessionNotification() and
1993         handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
1994         this issue, though. If we would track desktop visibility, we
1995         should then avoid even trying to update the display at all while
1996         the desktop isn't visible.
1997
1998 2005-09-30  Matthias Clasen  <mclasen@redhat.com>
1999
2000         * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
2001         to correct the calculations for the first week day. We may
2002         just have to remove this code if too many locales turn out 
2003         to have broken data. 
2004
2005         * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
2006         some cases.  (#317611, Tommi Komulainen)
2007
2008         * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
2009         Prevent overflow when storing size hints in an unsigned
2010         short variable. Tracked down by Ray Strode and Søren Sandmann.
2011
2012 2005-09-29  Matthias Clasen  <mclasen@redhat.com>
2013
2014         * gtk/gtkbutton.c (gtk_button_set_image): Check arguments.  (#317491,
2015         Paolo Borelli)
2016
2017         * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
2018         grab shadowed.  (#317332)
2019
2020 2005-09-29  Tor Lillqvist  <tml@novell.com>
2021
2022         * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
2023
2024 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
2025
2026         * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
2027         if the unmap test fails.
2028         (test_reload_sequence): Use gtk_widget_show_now() instead of
2029         gtk_widget_show() for the dialog.
2030         Thanks to Tim Janik for noticing these.
2031
2032 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
2033
2034         * tests/testcellrenderertext.c: New file with a set of tests for
2035         GtkCellRendererText.  The idea is to run a text renderer through
2036         most of its interesting property values to see that it works
2037         correctly.
2038
2039         * tests/Makefile.am: Added testcellrenderertext.
2040
2041         * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
2042         entry/exit of this function for profiling.
2043         (gtk_file_chooser_default_style_set): Mark the start/end of the
2044         calls to the parent class and the the signal emission for profiling.
2045
2046 2005-09-29  Tor Lillqvist  <tml@novell.com>
2047
2048         * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
2049         passed to bindtextdomain() which isn't UTF-8-aware, so convert to
2050         system codepage using g_win32_locale_filename_from_utf8().
2051         (#317457, Kazuki Iwamoto)
2052
2053 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
2054
2055         * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms 
2056         here. (#317039, Paolo Borelli)
2057
2058         * gtk/gtktexttag.h: 
2059         * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
2060         to make this function work as boxed copy function.  (#317455,
2061         Gustavo Carneiro)
2062
2063         * gtk/gtkclipboard.c (request_image_received_func): Don't unref
2064         NULL.  (#316828, Tor Lillqvist)
2065
2066 2005-09-28  Tor Lillqvist  <tml@novell.com>
2067
2068         * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
2069         Iwamoto)
2070
2071 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
2072
2073         Don't reload the current folder unnecessarily on ::map().
2074
2075         * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
2076         the reloading state.
2077         (struct _GtkFileChooserDefault): Added a "reload_state" field.
2078
2079         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
2080         Initialize impl->reload_state.
2081         (gtk_file_chooser_default_map): Check the impl->reload_state; load
2082         a default folder if no folder has been set, or reload the current
2083         one only if we had been unmapped first.
2084         (gtk_file_chooser_default_update_current_folder): Set the
2085         reload_state to RELOAD_HAS_FOLDER.
2086         (gtk_file_chooser_default_unmap): Implement, and set the
2087         reload_state to RELOAD_WAS_UNMAPPED.
2088         (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
2089         here; they'll get (re)loaded on ::map() anyway.
2090
2091         * gtk/gtkfilechooserwidget.c
2092         (gtk_file_chooser_widget_constructor): Don't set a default folder here.
2093
2094         * tests/autotestfilechooser.c (test_action_widgets): Don't take in
2095         a dialog; build it ourselves.
2096         (test_reload): New test to ensure that we don't load the default
2097         folder more than once, and that we reload it when
2098         unmapping/remapping.
2099         (get_impl_from_dialog): New utility function.
2100         (test_widgets_for_current_action): Use get_impl_from_dialog().
2101
2102 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
2103
2104         * gtk/gtkfilechooserdefault.c
2105         (gtk_file_chooser_default_constructor): Mark the entry/exit of
2106         this function for profiling.
2107         (check_icon_theme): Likewise.
2108         (change_icon_theme): Likewise.
2109         (settings_notify_cb): Likewise.
2110         (gtk_file_chooser_default_screen_changed): Likewise.
2111         (update_chooser_entry): If the selection is empty, clear the file
2112         name entry only if we are in CREATE_FOLDER mode.  In SAVE mode,
2113         nothing will be selected when the user starts typeahead in the
2114         treeview, and we don't want to clear the file name entry in that
2115         case --- the user could be typing-ahead to look for a folder name.
2116         Fixes bug #308332, patch by Jürg Billeter.
2117
2118 2005-09-27  Matthias Clasen  <mclasen@redhat.com>
2119
2120         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
2121         Pop below the entry if there's more free space below the entry
2122         than above.  (#316948, Tommi Komulainen)
2123
2124 2005-09-26  Federico Mena Quintero  <federico@ximian.com>
2125
2126         Do not create the save mode-specific widgets in the open modes, so
2127         that we don't carry their baggage around.
2128
2129         * gtk/gtkfilechooserdefault.c
2130         (gtk_file_chooser_default_constructor): Don't create the
2131         save_widgets here.
2132         (save_widgets_create): Set the impl->save_widgets directly here,
2133         instead of passing the widgets back to the caller.  Also, pack
2134         them into the impl's box.
2135         (update_appearance): Create or destroy the save widgets as
2136         appropriate.  Set the action of the save_file_name_entry here.
2137         (shortcuts_add_current_folder): Set the active item in the
2138         save_folder_combo only if it exists.
2139         (gtk_file_chooser_default_set_property): Don't set the action of
2140         the save_file_name_entry here.
2141         (gtk_file_chooser_default_update_current_folder): Set the base
2142         folder of the save_file_name_entry only if the entry exists.
2143         (shortcuts_drag_data_received_cb): Cast the selection_data->data
2144         to (const char *) since that's what shortcuts_drop_uris() expects.
2145         (file_list_drag_data_received_cb): Likewise, for
2146         g_uri_list_extract_uris().
2147
2148 2005-09-26  Tor Lillqvist  <tml@novell.com>
2149
2150         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
2151         the shaped flag here, too. (#316871)
2152         (gdk_window_shape_combine_region): Currently unimplemented, so
2153         don't do anything to the shaped flag here.
2154
2155 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
2156
2157         Fix #316871, reported by Dan Winship:
2158         
2159         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
2160
2161         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
2162         (gdk_window_shape_combine_region): Set it here.
2163
2164         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
2165         remove the child area for shaped windows.
2166
2167 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
2168
2169         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
2170         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
2171
2172 2005-09-22  Michael Natterer  <mitch@imendio.com>
2173
2174         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
2175         consistent with GTK+ terminology:
2176
2177         * gtk/gtkcellrendererkeys.[ch]
2178         * tests/testkeys.c: removed...
2179
2180         * gtk/gtkcellrendereraccel.[ch]
2181         * tests/testaccel.c: ...and added.
2182
2183         * gtk/Makefile.am
2184         * gtk/gtk.h
2185         * gtk/gtk.symbols
2186         * tests/Makefile.am: changed accordingly.
2187
2188 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
2189
2190         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
2191         for the grab-broken-event signal, noticed by Damon Chaplin.
2192
2193 2005-09-21  Tor Lillqvist  <tml@novell.com>
2194
2195         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
2196         gdk_text_property_to_text_list_for_display,
2197         gdk_text_property_to_utf8_list_for_display,
2198         gdk_win32_selection_add_targets,
2199         _gdk_win32_selection_convert_to_dib): Free return value from
2200         gdk_atom_name().
2201         (gdk_text_property_to_text_list_for_display): Drop GError variable
2202         that isn't actually used after being set.
2203
2204 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
2205
2206         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
2207         documentation.
2208
2209 2005-09-20  Tor Lillqvist  <tml@novell.com>
2210
2211         * gdk/win32/gdkselection-win32.c
2212         (gdk_selection_owner_get_for_display): Do return the correct owner
2213         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
2214         a window GDK knows about). The reason to return NULL seems to have
2215         gone when in the fix for bug #163702 the artificial
2216         GDK_SELECTION_CLEAR event generation was removed from
2217         gdk_selection_send_notify_for_display(). Fixes bug #316552.
2218
2219 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
2220
2221         Avoid unnecessary XkbGetState() calls and XkbStateNotify
2222         events.  (#151555, Søren Sandmann)
2223
2224         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
2225         XkbSelectEventDetails() to select XkbStateNotify events
2226         for only the state we care about.
2227
2228         * gdk/x11/gdkprivate-x11.h:
2229         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
2230         the event into the function and update the keymap state from
2231         the state information contained in the event. Adjust all callers.
2232         
2233 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
2234
2235         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
2236         in multiple places to avoid segfaults if the index is out of range.  
2237         (#316422, Guillaume Cottenceau)
2238         (gtk_icon_view_set_drag_dest_item): 
2239         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
2240         #316424, Guillaume Cottenceau)
2241
2242 2005-09-18  Hans Breuer  <hans@breuer.org>
2243
2244         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
2245         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
2246
2247 2005-09-18  Hans Breuer  <hans@breuer.org>
2248
2249         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
2250         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
2251         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
2252         the icon and is blinking with teststatusicon. More to come ...
2253
2254 2005-09-18  Hans Breuer  <hans@breuer.org>
2255
2256         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
2257         cause gtkprogressbar.c has #include <config.h> conditionally; less
2258         noise from generated gtk.def
2259         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
2260         
2261         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
2262         For me it works as well as the *NIX implemenation, that is not at all.
2263
2264         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
2265
2266         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
2267         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
2268         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
2269         again - if compiled properly.
2270
2271         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
2272         already coming with Gtk+. Makes it compile on win32.
2273
2274 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
2275
2276         * README.cvs-commits: fixed some tiny typos
2277
2278 2005-09-16  Tor Lillqvist  <tml@novell.com>
2279
2280         * modules/engines/ms-windows/msw_style.c (draw_extension,
2281         draw_box_gap): Check whether the widget actually is a GtkNotebook
2282         before treating it as such. Drop some unneeded local variables,
2283         use parameter with same information instead. (#316412)
2284
2285 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
2286
2287         * tests/autotestfilechooser.c: Start a set of automated tests for
2288         the file chooser.  The only test in there right now doesn't pass
2289         yet.  It specifies the intended behavior of the first optimization
2290         of a series which I'll do on the file chooser (see
2291         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
2292         details of this optimization).
2293
2294         * tests/Makefile.am: Added autotestfilechooser.c.
2295
2296         * gtk/gtkfilechooserprivate.h (struct
2297         _GtkFileChooserDialogPrivate): Move all the file chooser's private
2298         structures to here, so that they can be accessed by
2299         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
2300         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
2301
2302         * gtk/gtkfilechooserdialog.c: See above.
2303
2304         * gtk/gtkfilechooserwidget.c: See above.
2305
2306         * gtk/gtkfilechooserdefault.c: See above.
2307
2308 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
2309
2310         * gtk/gtkwindow.c: 
2311         gtk_window_map_event(): new function to work around lost unmap requests.
2312         fixes bug #316180.
2313
2314 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
2315
2316         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
2317         an easy-to-find profiling marker when starting to create a file
2318         chooser.
2319         (browse_files_model_finished_loading_cb): Likewise, for when the
2320         chooser is finished loading.
2321
2322 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
2323
2324         * gtk/gtkcolorbutton.c: Check "color" argument in 
2325         gtk_color_button_set_color ()
2326
2327 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
2328
2329         * gtk/gtklabel.c (gtk_label_get_type): 
2330         * gtk/gtkbutton.c (gtk_button_get_type): 
2331         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
2332         using a mem chunk for window groups, buttons, labels.
2333
2334         * gtk/updateiconcache.c (foreach_remove_func): Fix
2335         a use-after-free bug.  (#316256, Alexander Nedotsukov)
2336
2337 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
2338
2339         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
2340
2341         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
2342         
2343 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
2344
2345         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2346         Let GDK_Return pass through in some more cases.
2347
2348         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
2349         activating the entry. 
2350
2351         * gtk/gtkiconview.c (gtk_icon_view_class_init):
2352         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
2353         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
2354
2355         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
2356         (#316001, Guillaume Cottenceau)
2357
2358         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
2359         mistake in the docs.  (#315993, Guillaume Cottenceau)
2360
2361         * tests/testentrycompletion.c (create_simple_completion_model): Add
2362         some strings containing multibyte characters.
2363
2364         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
2365         Fix prefix insertion for multibyte characters.  (#316095,
2366         Tommi Komulainen)
2367
2368         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
2369         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
2370         return NULL if the widget is not realized.  (#316023,
2371         Guillaume Cottenceau)
2372
2373 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
2374
2375         * gdk/gdk.symbols: 
2376         * gdk/gdkproperty.h: 
2377         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
2378         New function to avoid pointless strdups when creating atoms
2379         from static strings.  
2380
2381         * gdk/x11/*.c:
2382         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
2383         appropriate.
2384
2385 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2386
2387         * gtk/gtkcellrendererkeys.h: 
2388         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
2389         and editing accelerators, a port of EggCellRendererKeys .
2390
2391         * gtk/gtk.symbols:
2392         * gtk/gtk.h:
2393         * gtk/Makefile.am: Add the keys cell renderer.
2394
2395         * tests/Makefile.am: 
2396         * tests/testkeys.c: Test GtkCellRendererKeys
2397
2398 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2399
2400         Make it possible to determine if a key event is for a
2401         modifier key:
2402         
2403         * gdk/x11/gdkprivate-x11.h: 
2404         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
2405         New function to determine if a keycode is mapped to a modifier.
2406         (get_xkb): Get the modmap.
2407
2408         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
2409         is_modifier bit by calling _gdk_keymap_key_is_modifier().
2410
2411         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
2412         bit.
2413
2414 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2415
2416         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
2417         unused variable, noticed by Kjartan Maraas.
2418
2419 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2420
2421         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
2422         Make drag reordering work properly for columns other than the
2423         first.  (#315054, Dan Winship)
2424         
2425         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
2426         invalid fontnames better. (#136926, Michael R. Walton)
2427         
2428         Stop cursor blinking in non-editable regions of a text view.
2429         (#311508, Torbjörn Andersson)
2430         
2431         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
2432         (cursor_blinks): Take editability into account when deciding
2433         whether the cursor blinks.
2434         (gtk_text_view_button_release_event): 
2435         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
2436
2437         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
2438         Use connect_after to connect to the focus_out event. This
2439         ensures that the entry has already stopped blinking by the time
2440         we emit the edited signal.  (#315229, Thomas Leonard)
2441
2442         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
2443
2444         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
2445         unsigned ints to -1.  (#315481, Kjartan Maraas)
2446
2447         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
2448         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
2449         (#314473, Stanislav Brabec)
2450
2451 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
2452
2453         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
2454         memory handling.  (#314975, Torsten Schoenfeld)
2455
2456         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
2457         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
2458         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2459         * gtk/gtklabel.c (gtk_label_class_init): 
2460         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
2461         Stylistic improvements and clarifications for some blurbs. 
2462         (#315520, Clytie Siddall)
2463
2464 2005-09-09  Tor Lillqvist  <tml@novell.com>
2465
2466         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
2467         display name. There is only one GdkDisplay on Win32, and
2468         constructing the display name isn't entirely trivial, so cacheing
2469         is probably worth it. For instance GIMP calls this function a lot.
2470         (gdk_display_open): Call gdk_display_get_name() to prime the
2471         cached name.
2472         (gdk_display_get_n_screens, gdk_display_get_screen,
2473         gdk_display_get_default_screen): Verify parameter correctness like
2474         the X11 backend does.
2475
2476         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
2477         Return a freshly allocated string, as the API specifies. Fixes a
2478         heap corruption problem that caused random errors and crashes in
2479         GIMP, for instance.
2480
2481 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
2482
2483         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
2484         Make C-u commit and restart hex input if we are already in a
2485         hex sequence.
2486
2487 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
2488
2489         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
2490         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
2491         if they are mapped to the same modifier.
2492
2493         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
2494         to gtkstatusicon.c and gtktrayicon-x11.c
2495
2496         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
2497         default accel mod mask.
2498
2499         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
2500         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
2501         Don't use GDK_ALT_MASK.
2502
2503         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
2504
2505 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
2506
2507         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
2508         
2509         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
2510         modifiers.
2511
2512         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
2513         Mod2 - Mod5 and against Super, Hyper, Meta.
2514
2515         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
2516         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
2517         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
2518
2519         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
2520         modmap to maintain the information which X modifiers map to
2521         virtual modifiers.
2522         (get_xkb): Set up the modmap from the XKB tables.
2523         (update_keymaps): Set up the modmap from the information returned
2524         by XGetModifierMapping in the non-XKB case.
2525
2526         * gdk/x11/gdkprivate-x11.h: 
2527         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
2528         function to set the virtual modifiers in the state.
2529
2530         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
2531         _gdk_keymap_add_virtual_modifiers here.
2532
2533         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
2534         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
2535         for GDK_MOD1_MASK.
2536
2537 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
2538
2539         * gtk/gtkaction.c (connect_proxy): Set the label of a button
2540         if it has no child.  (#315253, John Finlay)
2541
2542 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
2543
2544         * gtkimcontextsimple.h: Add a modifiers_dropped bit
2545
2546 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
2547
2548         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
2549         on destroy to avoid problems when they are called on a destroyed
2550         widget.  (#315135, John Cupitt)
2551         
2552         * gtk/gtkentry.c (gtk_entry_class_init):
2553         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
2554         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
2555
2556         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
2557         code. Now we only steal a single key combination, Ctrl-Shift-U,
2558         instead of sixteen. 
2559         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
2560         by a sequence of hex digits entered with Ctrl-Shift still held.
2561         Releasing one of the modifiers or pressing space while the modifiers
2562         are still held commits the character. It is possible to erase
2563         digits using backspace.
2564         As an extension to the above, we also allow to start the sequence
2565         with Ctrl-Shift-U, then release the modifiers before typing any
2566         digits, and enter the digits without modifiers.
2567         (#82011, Owen Taylor)
2568         
2569 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
2570
2571         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
2572         we still need to deliver the destroy event.  (#314980, Chris Lahey)
2573
2574         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
2575         im context before committing \n or \t.
2576
2577 2005-09-02  Alexander Larsson  <alexl@redhat.com>
2578
2579         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
2580         (shortcuts_activate_volume):
2581         Handle base_path being null in the rest of the cases (#310270)
2582
2583 2005-09-02  Tor Lillqvist  <tml@novell.com>
2584
2585         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
2586         cursor position also in root window coordinates. Prune out
2587         superfluous WM_MOUSEMOVE events even earlier, based on root window
2588         coordinates. Windows sends WM_MOUSEMOVE messages after a new
2589         window has ben mapped below the cursor even if the mouse doesn't
2590         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
2591         confused at least gtk_menu_motion_notify(). (#314995)
2592
2593         * gtk/gtkintl.h: No need to include config.h here. It caused
2594         warnings about GTK_LOCALEDIR being redefined on Win32 when
2595         compiling files where gtkintl.h is included after gtkprivate.h
2596         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
2597
2598         * gtk/gtkplug.c: Include config.h.
2599
2600 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
2601
2602         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
2603         xdg_mime_get_mime_type_for_file() where possible, to avoid
2604         useless re-stating.  
2605         
2606         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
2607         typo.  (#314921, Guillaume Cottenceau)
2608
2609         * gdk/*.c: Intern some more strings.
2610         * gtk/gtkintl.h: 
2611         * gtk/*.c: Define an I_() macro and use it instead of the 
2612         bulky g_intern_static_string().
2613
2614 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
2615
2616         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
2617         instead of copying it.
2618
2619         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
2620
2621         * gtk/*.c: Also intern static strings passed to 
2622         g_object_set_data().
2623
2624         * gdk/Makefile.am: 
2625         * gtk/Makefile.am: Intern type names in code generated by 
2626         glib-mkenums, too.
2627
2628         * gtk/*.c: 
2629         * gdk/x11/*.c: 
2630         * gdk/*.c: Intern type names before registering the type to avoid 
2631         unnecessary copies.
2632
2633         * configure.in: Require GLib 2.9.0
2634
2635 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
2636
2637         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
2638         and add icon-size and icon-size-set properties.  (#314172)      
2639
2640         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
2641         groups across transient parents.  (#312918, Christian Persch)
2642
2643         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
2644         Guillaume Cottenceau)
2645
2646         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
2647         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
2648
2649 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
2650
2651         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
2652         make C-/ select all and C-\ unselect all.  (#309301,
2653         Kathy Fernandez)
2654
2655         * gtk/gtkimcontextsimple.c: Change the compose sequence for
2656         soft hyphen to be multi_key-minus-minus-space, and add
2657         compose sequences multi_key-minus-minus-period and 
2658         multi_key-minus-minus-minus for en dash and em dash.
2659         (#172653, Christian Lohmaier)
2660
2661         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
2662         code.  (#313946, Christian Persch)
2663
2664         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
2665         fix for the default value of the "ui" property.
2666
2667 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
2668
2669         * gtk/gtk.symbols: 
2670         * gtk/gtkselection.h:
2671         * gtk/gtkselection.c: Add functions which look for text, image
2672         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
2673
2674         * gtk/gtk.symbols: 
2675         * gtk/gtkselection.h:
2676         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
2677         Add a function to check wether targets include uri.  
2678         (#314092, Mark Wielaard)
2679         
2680         * gtk/gtk.symbols: 
2681         * gtk/gtkwindow.h: 
2682         * gtk/gtkwindow.c: Add a deletable property with getter
2683         and setter, to control the close button in the window 
2684         frame.  (#59718, Havoc Pennington)
2685
2686 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
2687
2688         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
2689         to the arrow keys for menu navigation.  (#162825, Carl Worth)
2690
2691         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
2692
2693         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
2694
2695         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
2696         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
2697         refer to nonexisting stock ids.
2698
2699         * gtk/gtktextview.c (popup_targets_received): 
2700         * gtk/gtkentry.c (popup_targets_received): Construct
2701         the "Select All" menuitem from stock.
2702
2703         * gtk/stock-icons/stock_select_all_{16,24}.png:
2704         * gtk/stock-icons/Makefile.am: 
2705         * gtk/gtkiconfactory.c:
2706         * gtk/gtkstock.h: 
2707         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
2708         Calum Benson)
2709
2710         * gtk/gtktrayicon.c: Add a pointer to the spec.
2711
2712         * gtk/gtkstatusicon-x11.c: Add docs.
2713
2714         * gtk/gtkstatusicon.h: Fix a typo.
2715
2716         Add a cross-platform "tray icon" API, by
2717         porting EggStatusIcon/EggTrayIcon (#105101)
2718         
2719         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
2720         displays an icon in a notification area.
2721
2722         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
2723         X11, using GtkTrayIcon.
2724
2725         * gtk/gtktrayicon.h: 
2726         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
2727         system tray specification, not public API.
2728
2729         * gtk/gtk.symbols: Add new exported functions.
2730
2731         * gtk/gtk.h: Include gtkstatusicon.h.
2732
2733         * gtk/Makefile.am: Add new files.
2734
2735         * tests/Makefile.am:
2736         * tests/teststatusicon.c: Test for GtkStatusIcon.
2737
2738 2005-08-29  Christopher Aillon  <caillon@redhat.com>
2739
2740         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
2741         and GTK_STOCK_DISCONNECT
2742         
2743 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
2744
2745         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
2746         Use XFixesChangeSaveSet if available.  (#314682)
2747
2748         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
2749         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
2750
2751 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
2752
2753         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
2754         accidentally leftover duplicate pixbuf creation.  (#314700,
2755         Kjartan Maraas)
2756
2757         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
2758         leak the cursor theme name.  (#314693, Kjartan Maraas)
2759
2760         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
2761         state.children in all cases.  (#313862, Kjartan Maraas)
2762
2763 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
2764
2765         * po/POTFILES.in, po-properties/POTFILES.in:
2766         Add gdk/gdkscreen.c
2767
2768 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
2769
2770         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
2771         value of the ui property. (#314532, Yong Wang)
2772
2773         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
2774         when G_MAXLONG is passed as length.  
2775
2776 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
2777
2778         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
2779         to avoid overloading --force.  (JP Rosevaar)
2780
2781 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
2782
2783         * configure.in: Bump version to 2.9.0
2784
2785         * gdk/gdk.symbols: 
2786         * gdk/gdkscreen.h: 
2787         * gdk/gdkscreen.c: Make the GdkScreen font options api
2788         public, and add properties GdkScreen::font-options and
2789         GdkScreen::resolution.  (#314004)
2790
2791         * gdk/gdkpango.c:
2792         * gtk/gtksettings.c:
2793         * gtk/gtkwidget.c: Adjust all callers.
2794         
2795         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
2796         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
2797         * gdk/gdkscreen.c: Include gdkintl.h.
2798
2799         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
2800         variable warning, pointed out by Colin Walters. (#314585)
2801
2802 2005-08-26  Tor Lillqvist  <tml@novell.com>
2803
2804         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
2805         printouts.
2806         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
2807
2808 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
2809
2810         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
2811         of week_start.  (#314473, JP Rosevaar)
2812
2813 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
2814
2815         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
2816         lock.  (#314533, Thomas Fitzsimmons)
2817
2818 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
2819
2820         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
2821         NULL gracefully.  (#314523, Ed Catmur)
2822
2823 2005-08-25  Owen Taylor  <otaylor@redhat.com>
2824
2825         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
2826         Handle theme == NULL.
2827
2828 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
2829
2830         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
2831         y offset into account when positioning the popup.  (#314470,
2832         Christian Persch)
2833
2834 2005-08-25  Owen Taylor  <otaylor@redhat.com>
2835
2836         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
2837         as instance_init, not base_init! (#314452, Fix from Frederic
2838         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
2839         rather than 1 for a negative flag value.
2840
2841 2005-08-24  Owen Taylor  <otaylor@redhat.com>
2842
2843         * gdk/gdkpango.c (draw_error_underline): Add a note about
2844         cut-and-paste between here and Pango.
2845
2846 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
2847
2848         * === Released 2.8.2 ===
2849
2850         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
2851         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
2852         Wielaard)
2853
2854         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
2855         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
2856         Sebastien Bacher)
2857         
2858         * NEWS: Updates
2859
2860         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
2861         and cursor settings get propagated down to the screen initially.
2862         Pointed out by Frederic Crozat.
2863
2864         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
2865         message if the screen is NULL. Noticed by Kjartan Maraas.
2866
2867 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
2868
2869         * Bump version
2870
2871         * === Released 2.8.1 ===
2872
2873         * NEWS: Updates
2874         
2875 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
2876
2877         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
2878         against lazy filterers which return values other than TRUE or
2879         FALSE from their visible func.  (#314335)
2880
2881 2005-08-23  Owen Taylor  <otaylor@redhat.com>
2882
2883         Fix for #314004, reported by Michael Reinsch:
2884
2885         * gdk/gdk.symbols:
2886         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
2887         Add gdk_screen_get/set_resolution_libgtk_only()
2888
2889         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
2890         the options for the screen on the newly created context.
2891
2892         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
2893         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
2894         the font options on the screen.
2895
2896         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
2897         the font options from the screen and set them on the context.
2898
2899 2005-08-23  Kristian Rietveld  <kris@gtk.org>
2900
2901         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
2902         bother inserting new rows in a level with a zero refcount and
2903         immediately free the level. (Fixes #312350, reported by Markku Vire).
2904
2905 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
2906
2907         * gtk/updateiconcache.c: Complain when there is no index.theme file
2908         in the specified directory, unless --force is used. Also add an
2909         --index-only option to create caches without image data.
2910
2911         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
2912         C99ism.  (#314262, Robert Jeff Mitchell)
2913         
2914 2005-08-22  Manish Singh  <yosh@gimp.org>
2915
2916         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
2917
2918         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
2919
2920 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
2921
2922         * gtk/gtkwindow.c (gtk_window_client_event): 
2923         * gtk/gtkicontheme.c (ensure_valid_themes) 
2924         (_gtk_icon_theme_check_reload): Implement a clientmessage based
2925         scheme for makeing sure that all GTK+ applications notice if an
2926         icon theme has been updated. This should prevent multiple versions
2927         of an icon theme cache to be mapped in memory at the same time,
2928         which can cause excessive memory consumption.  (#313156, Chris 
2929         Lahey)
2930
2931 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
2932
2933         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
2934         regarding icon theme changes.
2935
2936         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
2937         pixbufs which are backed by the mmapped memory of an icon cache,
2938         increase the refcount of the icon cache, so that the memory is not
2939         munmapped away underneath the pixbuf upon icon theme changes.  
2940         (#314170, Kjartan Maraas)
2941
2942         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
2943         to link against Xext.  (#314062)
2944
2945         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
2946         overruns.  (#314081, Hans Breuer)
2947
2948 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
2949
2950         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
2951         returned layout must not be modified.
2952
2953 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
2954
2955         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
2956         scroll_to_path if the model changes.
2957
2958         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
2959         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
2960         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
2961         we're realized, #312798
2962         (gtk_icon_view_set_model): clear scroll_to_path if the model
2963         changes.
2964
2965 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
2966
2967         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
2968         (gtk_range_adjustment_value_changed):  Don't queue a draw
2969         if the layout has not changed.  (#313991, Benjamin Berg)
2970
2971 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
2972
2973         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
2974         Benoit Carpentier)
2975
2976         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
2977         Fix a typo. 
2978
2979         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
2980         (model_add_special, model_add_special, model_add_volumes):
2981         Handle pixbuf being NULL without warnings. Also, don't
2982         leak pixbuf references when the icon theme is changed.
2983
2984         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
2985         the user data on destroyed windows, since at best
2986         it can be a stale pointer.  (#313953, Robin Green)      
2987
2988 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
2989
2990         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
2991         (#313900, Sebastien Bacher)
2992
2993         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
2994         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
2995
2996         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
2997         (xdnd_read_actions, get_client_window_at_coords_recurse): 
2998         Free data returned from XGetWindowProperty. 
2999
3000         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
3001         Free data returned from XGetWindowProperty.  (313867, Kjartan
3002         Maraas)
3003         
3004         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
3005         children in all cases.  (#313862, Kjartan Maraas)
3006
3007         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
3008         in the per-directory hash, even if they come from the icon cache. 
3009         We tried to avoid that before, but as a result leaked icon data
3010         structs.  (#313852, Kjartan Maraas)
3011
3012 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
3013
3014         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
3015         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
3016
3017 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3018
3019         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
3020         files for x11/xext. (Jonas Bonn)
3021
3022 2005-08-15  Tor Lillqvist  <tml@novell.com>
3023
3024         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
3025         inside GTK_NOTE.
3026
3027 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3028
3029         * configure.in: Fix have_base_pc / have_base_x_pc typo.
3030
3031         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
3032         (#313417, James Andrewartha)
3033
3034         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
3035         FcNameConstant(). (More of #313417)
3036
3037 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
3038
3039         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
3040         modal dialogs, make sure to inherit the window group from 
3041         the parent, since we don't inherit window groups across
3042         transient parents currently.  (#312918, Christian Persch)
3043
3044         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
3045         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
3046
3047         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
3048         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
3049         gracefully.  (#312796, Jonathan Blandford)
3050
3051         * tests/testtoolbar.c: Add some more tests for menu placement.
3052
3053         * gtk/gtkmenutoolbutton.c (menu_position_func): 
3054         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
3055         of toolbutton menus and of the overflow menu.  (#312937, 
3056         #153870, Christian Persch, Paolo Borelli)
3057
3058 2005-08-15  Tor Lillqvist  <tml@novell.com>
3059
3060         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
3061         the nonportable <libgen.h> and dirname().
3062
3063 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
3064
3065         * gtk/gtksizegroup.c: Use object data to mark widgets and
3066         groups as visited, so that we avoid constant extra list
3067         traversals. Also allocate quarks in class_init.  (#311618,
3068         Michael Natterer)
3069
3070         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
3071         download location for the hicolor icon theme. (#313475, Olexiy 
3072         Avramchenko)
3073
3074         * gtk/gtkicontheme.c: Remove debug spew. 
3075
3076 2005-08-15  Owen Taylor  <otaylor@redhat.com>
3077
3078         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
3079         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
3080         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
3081         Handle pixmap == NULL when checking for a colormap.
3082         (Allin Cottrell).
3083
3084 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
3085
3086         * gtk/updateiconcache.c: Store only one copy of the pixel data
3087         for symlinked icons. To achieve this, maintain a hashtable 
3088         mapping pathnames to pixel data, and share the pixel data for
3089         all symlinks resolving to the same pathname. When writing out
3090         the image data, write out the pixel data only the first time
3091         it is met, and store the offset pointing to the first copy
3092         for use in all later cases.
3093         This reduces the size of the Bluecurve icon cache from 40
3094         to 13MB. (#312972)
3095