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