]> Pileus Git - ~andy/gtk/blob - ChangeLog
a2ce65a7fde5a12f8fc1b3783f4a9d16610cee90
[~andy/gtk] / ChangeLog
1 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
2
3         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4         Fix some issues with background drawing in RTL.  (#318781,
5         Eric Cazeaux)
6
7         * tests/Makefile.am:
8         * tests/testentrycompletion.c: Apply a patch by Christian
9         Persch to add property editors.
10
11         * gtk/gtkstatusicon.c: Emit activate on single-click,
12         not on double-click, change proposed by Milosz Derezynski.
13
14 2005-10-25  Kristian Rietveld  <kris@gtk.org>
15
16         Fixes #311955, reported by Markku Vire; and a lot more.
17
18         * gtk/gtktreemodelfilter.c: Made this thing work correctly.
19         Levels can now have invisible nodes cached, functions have been
20         rewritten/refactored to take this into account; also the logic in
21         some functions has been corrected.
22         
23         Each referenced node now references all visible children or a single
24         invisible child, in order to be able to monitor all changes in the
25         child model required for correct operation.
26
27         When a virtual root is set, all nodes on the virtual root level are
28         referenced.
29
30         At last, a bunch of random bug fixes and comment updates.
31
32 2005-10-25  Matthias Clasen  <mclasen@redhat.com>
33
34         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Add some
35         more docs.  (#319722, Paolo Borelli)
36
37         * gdk/x11/gdkxftdefaults.c (init_xft_settings): Make the 
38         initialization of screen_x11->xft_rgba more explicit.  (#319627,
39         Bogdan Nicula)
40
41         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Fix whitespace
42         in a blurb.  (#319499, Francisco Javier F. Serrador)
43
44 2005-10-24  Matthias Clasen  <mclasen@redhat.com>
45
46         Add settings to hide the input method and Unicode control character
47         submenus in the context menus of GtkEntry and GtkTextView.  
48         
49         * gdk/x11/gdkevents-x11.c: Map GTK+ settings to X settings.
50         
51         * gtk/gtksettings.c (gtk_settings_class_init): Declare GTK+ settings here.
52
53         * gtk/gtktextview.c (popup_targets_received): 
54         * gtk/gtkentry.c (popup_targets_received): Use the settings here.
55
56 2005-10-24  Kristian Rietveld  <kris@gtk.org>
57
58         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): emitting
59         row-has-child-toggled when the level is not in the cache does not
60         make sense.  (This bug probably crept in during the early stages
61         of GtkTreeModelSort when there wasn't a correct row-has-child-toggled
62         implementation yet),
63         (gtk_tree_model_sort_real_unref_node): only get the child iter
64         when we will actually also use it.
65
66 2005-10-22  Michael Natterer  <mitch@imendio.com>
67
68         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): check for the
69         widget being realized, in addition to being visible, to avoid
70         running into precondition check in gtk_tree_view_get_cell_area().
71         (approved by Kris).
72
73 2005-10-22  Dom Lachowicz <cinamod@hotmail.com>
74
75         * modules/engines/ms-windows/msw_style.c (setup_msw_rc_style): 
76         Experimentally, scrollbar steppers can shrink to 8 pixels on 
77         Win32. Reflect that in the theme.
78         * modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Experimentally,
79         there is a 1-pixel border between a scrollbar and its child
80         in ScrolledWindows on Win32. Reflect that in the theme.
81         
82 2005-10-20  Matthias Clasen  <mclasen@redhat.com>
83
84         * gtk/gtklabel.c (gtk_label_create_window): Use GDK_WINDOW_CHILD
85         for the selection window.  (#318806, Alex Larsson)
86
87 2005-10-18  Federico Mena Quintero  <federico@ximian.com>
88
89         Fixes bug #317999:
90
91         * tests/autotestfilechooser.c
92         (test_button_folder_states_for_action): Test that we have either
93         $cwd or the explicitly-set folder.
94         (test_reload_sequence): Likewise.
95
96         * gtk/gtkfilechooserdefault.c
97         (gtk_file_chooser_default_get_current_folder): If our reload_state
98         is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
99
100 2005-10-14  Tor Lillqvist  <tml@novell.com>
101
102         * gdk/win32/gdkdisplay-win32.c: Remove the clipboard viewer code.
103         It didn't really do anything useful, and was just confusing and
104         incomplete. Comments claimed we don't do delayed rendering, but in
105         fact we do, for images. (The delayed rendering code has other
106         problems, though, see #168173.) The clipboard viewer code was
107         probably even buggy (the WM_CHANGECBCHAIN handled didn't propagate
108         the message when necessary). It was just test code, it said so in
109         a comment. Add something similar back later if necessary.
110
111         (_win32_on_clipboard_change,
112         _gdk_win32_register_clipboard_notification): Remove.
113
114         (gdk_display_supports_selection_notification,
115         gdk_display_request_selection_notification): Always just return
116         FALSE. We didn't generate any GDK_OWNER_CHANGE events anywhere.
117
118 2005-10-13  Tor Lillqvist  <tml@novell.com>
119
120         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't treat
121         Alt-Enter specially. It does not have any special meaning and
122         should be passed on to the application. (#318378, Tim Evans)
123
124 2005-10-13  Tor Lillqvist  <tml@novell.com>
125
126         Set visual depth to 24 for 32 bits-per-pixel devices on
127         Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
128         optimized composite_0888() function rather than the slower image
129         dithering functions to draw pixbufs (#313993, John Ehresman)
130
131         * gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
132         _gdk_windowing_get_bits_for_depth() to initialize
133         GdkImage::bits_per_pixel.
134         (_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.
135
136         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
137         _gdk_windowing_get_bits_for_depth() to initialize
138         BITMAPINFOHEADER::biBitCount.
139
140         * gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
141         GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
142         32.
143
144 2005-10-12  Stefan Kost  <ensonic@users.sf.net>
145
146         * demos/gtk-demo/appwindow.c: (about_cb):
147           use PACKAGE_VERSION,bump year (#318654)
148
149 2005-10-11  Matthias Clasen  <mclasen@redhat.com>
150
151         * gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off 
152         toggle here with the matching on toggle if it immediately follows. 
153         This is a common case, and handling it here prevents quadratic blowup 
154         in cleanup_line() below.  (#317125)
155
156         * gtk/gtktextsegment.h: 
157         * gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
158         the character counts into this function instead of computing them
159         again.
160
161 2005-10-10  Tommi Komulainen  <tommi.komulainen@iki.fi>
162
163         * gtk/gtkfilechooser.h (GtkFileChooserError): Add ALREADY_EXISTS error
164         code.
165         * gtk/gtkfilechooserdefault.c
166         (gtk_file_chooser_default_add_shortcut_folder): Return an error code
167         when the shortcut already exists in the sidebar.  (#147521)
168
169 2005-10-09  Matthias Clasen  <mclasen@redhat.com>
170
171         * tests/testcombo.c: Demonstrate how to use custom widgets in
172         a GtkComboBox.  
173
174 2005-10-07  Federico Mena Quintero  <federico@ximian.com>
175
176         Fixes bug #317999:
177
178         * tests/autotestfilechooser.c (test_reload_sequence): Ensure that
179         the the result of gtk_file_chooser_get_folder() is NULL or
180         non-NULL at the right times.  Log the tests.
181         (test_button_folder_states): New test for the initial states of
182         the current folder in GtkFileChooserButton.
183         (main): Test that the number of warnings/errors/critical errors is
184         zero.
185
186         * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder):
187         Clarify the documentation on when this can return NULL.
188         (gtk_file_chooser_get_current_folder_uri): Likewise.
189
190         * gtk/gtkfilechooserbutton.c (struct
191         _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag;
192         we use it to keep track of whether a folder has been set.
193         (gtk_file_chooser_button_map):  Implement.  If no folder has been
194         loaded before, we at least try to load $cwd here.
195         (gtk_file_chooser_button_constructor): If the construct-time
196         dialog already has a folder set, turn on our folder_has_been_set
197         flag.
198         (dialog_current_folder_changed_cb): Turn on our
199         folder_has_been_set flag.
200
201 2005-10-07  Michael Natterer  <mitch@gimp.org>
202
203         * gtk/gtkfilechooserdefault.c: remove some explicit #defines of
204         PROFILE_FILE_CHOOSER because they break compilation after the
205         removal of <unistd.h>.
206
207 2005-10-07   Matthias Clasen  <mclasen@redhat.com>
208
209         * gtk/gtkfilechooserdefault.c: Properly fix the unistd.h include
210         by moving it out of the profiling ifdef.
211
212         * gtk/gtkfilechooserdefault.c: Remove a redundant (and
213         unconditional) include of unistd.h  (#318211, Kazuki Iwamoto)
214
215         * gtk/gtktexttag.c (gtk_text_attributes_ref): Use
216         g_return_val_if_fail(), not g_return_if_fail().  (#318412,
217         Kazuki Iwamoto)
218
219 2005-10-06  Matthias Clasen  <mclasen@redhat.com> 
220                 
221         * gtk/gtk.symbols:
222         * gtk/gtktextbuffer.h:
223         * gtk/gtktextbuffer.c: Add a readonly has-selection property
224         with a getter.  (#318161, Paolo Borelli)
225
226 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
227
228         * README.in: Start collecting release notes for 2.10.
229
230         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
231         leak fix, since the assertion failures were traced to 
232         an xchat bug.  (#314696)
233         
234         * gtk/gtkstyle.c (gtk_style_detach):
235         (gtk_style_attach):  Documentation improvements.
236         (gtk_style_detach): Assert that the attach_count is > 0.
237
238 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
239
240         * gtk/gtkfilechooserdefault.c (switch_to_shortcut): Take a
241         shortcut position, not a ShortcutsIndex, to make the function more
242         generic.
243         (home_folder_handler): Pass the resolved index to
244         switch_to_shortcut(), rather than just SHORTCUTS_HOME.
245         (desktop_folder_handler): Likewise for SHORTCUTS_DESKTOP.
246         (gtk_file_chooser_default_class_init): Add a "quick-bookmark"
247         binding signal, and bind it to Alt-1, Alt-2. ..., Alt-0.  These
248         make the respective key switch to the first, second, ..., tenth
249         bookmark.
250         (quick_bookmark_handler): Implement.
251
252 2005-10-04  Federico Mena Quintero  <federico@ximian.com>
253
254         * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and
255         Desktop; just use their real names on the file system for the
256         user-visible names.
257
258         * gtk/gtkfilechooserdefault.c
259         (gtk_file_chooser_default_class_init): Add a "desktop-folder"
260         binding signal, and bind it to M-d by default.
261         (desktop_folder_handler): Implement the default handler.
262         (home_folder_handler): Use a helper function.
263         (switch_to_shortcut): New helper function.
264         (shortcuts_append_home): Don't special-case the name of "Home";
265         just use the folder name.
266
267 2005-10-04  Tor Lillqvist  <tml@novell.com>
268
269         * gtk/gtkcalendar.c (gtk_calendar_init): Make it compile without
270         HAVE__NL_TIME_FIRST_WEEKDAY. (#317910, Mathias Hasselmann)
271
272 2005-10-04  Matthias Clasen  <mclasen@redhat.com>
273
274         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Revert the change
275         from yesterday, since it leads to assertion failures.  (#317879,
276         Sebastian Bacher)
277
278 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
279
280         * gtk/gtkcalendar.c (gtk_calendar_init): Call 
281         calendar_compute_days() after setting priv->week_start.
282
283 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
284
285         * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
286         removing it from the hash table.  (#314696, Benjamin Berg)
287
288 2005-10-01  Tor Lillqvist  <tml@novell.com>
289
290         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case
291         BitBlt() fails with ERROR_INVALID_HANDLE, the most probable cause
292         is that the the desktop isn't visible because the session has been
293         switched, the screen is locked, or a terminal server session
294         disconnected, so no error message necessary. (#137796)
295
296         It is of course remotely possible that BitBlt() failing with
297         ERROR_INVALID_HANDLE might also be caused by some other
298         problem. We could strive for perfection and track whether the
299         desktop is visible by using WTSRegisterSessionNotification() and
300         handling WM_WTSESSION_CHANGE. I think that's overdoing it just for
301         this issue, though. If we would track desktop visibility, we
302         should then avoid even trying to update the display at all while
303         the desktop isn't visible.
304
305 2005-09-30  Matthias Clasen  <mclasen@redhat.com>
306
307         * gtk/gtkcalendar.c (gtk_calendar_init): Another attempt
308         to correct the calculations for the first week day. We may
309         just have to remove this code if too many locales turn out 
310         to have broken data. 
311
312         * gtk/gtkimage.c (gtk_image_expose): Don't leak pixbuf in
313         some cases.  (#317611, Tommi Komulainen)
314
315         * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
316         Prevent overflow when storing size hints in an unsigned
317         short variable. Tracked down by Ray Strode and Søren Sandmann.
318
319 2005-09-29  Matthias Clasen  <mclasen@redhat.com>
320
321         * gtk/gtkbutton.c (gtk_button_set_image): Check arguments.  (#317491,
322         Paolo Borelli)
323
324         * gtk/gtkpaned.c (gtk_paned_grab_notify): Stop drags when being
325         grab shadowed.  (#317332)
326
327 2005-09-29  Tor Lillqvist  <tml@novell.com>
328
329         * gtk-zip.sh.in: DLLs are always in bin nowadays, no need to test.
330
331 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
332
333         * tests/autotestfilechooser.c (test_reload_sequence): Oops, return
334         if the unmap test fails.
335         (test_reload_sequence): Use gtk_widget_show_now() instead of
336         gtk_widget_show() for the dialog.
337         Thanks to Tim Janik for noticing these.
338
339 2005-09-28  Federico Mena Quintero  <federico@ximian.com>
340
341         * tests/testcellrenderertext.c: New file with a set of tests for
342         GtkCellRendererText.  The idea is to run a text renderer through
343         most of its interesting property values to see that it works
344         correctly.
345
346         * tests/Makefile.am: Added testcellrenderertext.
347
348         * gtk/gtkfilechooserdefault.c (load_set_model): Mark the
349         entry/exit of this function for profiling.
350         (gtk_file_chooser_default_style_set): Mark the start/end of the
351         calls to the parent class and the the signal emission for profiling.
352
353 2005-09-29  Tor Lillqvist  <tml@novell.com>
354
355         * gtk/gtkmain.c (_gtk_get_localedir): The locale directory is
356         passed to bindtextdomain() which isn't UTF-8-aware, so convert to
357         system codepage using g_win32_locale_filename_from_utf8().
358         (#317457, Kazuki Iwamoto)
359
360 2005-09-28  Matthias Clasen  <mclasen@redhat.com>
361
362         * gtk/gtkselection.c (_gtk_selection_request): Free mult_atoms 
363         here. (#317039, Paolo Borelli)
364
365         * gtk/gtktexttag.h: 
366         * gtk/gtktexttag.c (gtk_text_attributes_ref): Return the attributes
367         to make this function work as boxed copy function.  (#317455,
368         Gustavo Carneiro)
369
370         * gtk/gtkclipboard.c (request_image_received_func): Don't unref
371         NULL.  (#316828, Tor Lillqvist)
372
373 2005-09-28  Tor Lillqvist  <tml@novell.com>
374
375         * modules/input/imime.c: Include <config.h>. (#317444, Kazuki
376         Iwamoto)
377
378 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
379
380         Don't reload the current folder unnecessarily on ::map().
381
382         * gtk/gtkfilechooserprivate.h (ReloadState): New enum to represent
383         the reloading state.
384         (struct _GtkFileChooserDefault): Added a "reload_state" field.
385
386         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
387         Initialize impl->reload_state.
388         (gtk_file_chooser_default_map): Check the impl->reload_state; load
389         a default folder if no folder has been set, or reload the current
390         one only if we had been unmapped first.
391         (gtk_file_chooser_default_update_current_folder): Set the
392         reload_state to RELOAD_HAS_FOLDER.
393         (gtk_file_chooser_default_unmap): Implement, and set the
394         reload_state to RELOAD_WAS_UNMAPPED.
395         (shortcuts_model_create): Don't call shortcuts_add_bookmarks()
396         here; they'll get (re)loaded on ::map() anyway.
397
398         * gtk/gtkfilechooserwidget.c
399         (gtk_file_chooser_widget_constructor): Don't set a default folder here.
400
401         * tests/autotestfilechooser.c (test_action_widgets): Don't take in
402         a dialog; build it ourselves.
403         (test_reload): New test to ensure that we don't load the default
404         folder more than once, and that we reload it when
405         unmapping/remapping.
406         (get_impl_from_dialog): New utility function.
407         (test_widgets_for_current_action): Use get_impl_from_dialog().
408
409 2005-09-27  Federico Mena Quintero  <federico@ximian.com>
410
411         * gtk/gtkfilechooserdefault.c
412         (gtk_file_chooser_default_constructor): Mark the entry/exit of
413         this function for profiling.
414         (check_icon_theme): Likewise.
415         (change_icon_theme): Likewise.
416         (settings_notify_cb): Likewise.
417         (gtk_file_chooser_default_screen_changed): Likewise.
418         (update_chooser_entry): If the selection is empty, clear the file
419         name entry only if we are in CREATE_FOLDER mode.  In SAVE mode,
420         nothing will be selected when the user starts typeahead in the
421         treeview, and we don't want to clear the file name entry in that
422         case --- the user could be typing-ahead to look for a folder name.
423         Fixes bug #308332, patch by Jürg Billeter.
424
425 2005-09-27  Matthias Clasen  <mclasen@redhat.com>
426
427         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
428         Pop below the entry if there's more free space below the entry
429         than above.  (#316948, Tommi Komulainen)
430
431 2005-09-26  Federico Mena Quintero  <federico@ximian.com>
432
433         Do not create the save mode-specific widgets in the open modes, so
434         that we don't carry their baggage around.
435
436         * gtk/gtkfilechooserdefault.c
437         (gtk_file_chooser_default_constructor): Don't create the
438         save_widgets here.
439         (save_widgets_create): Set the impl->save_widgets directly here,
440         instead of passing the widgets back to the caller.  Also, pack
441         them into the impl's box.
442         (update_appearance): Create or destroy the save widgets as
443         appropriate.  Set the action of the save_file_name_entry here.
444         (shortcuts_add_current_folder): Set the active item in the
445         save_folder_combo only if it exists.
446         (gtk_file_chooser_default_set_property): Don't set the action of
447         the save_file_name_entry here.
448         (gtk_file_chooser_default_update_current_folder): Set the base
449         folder of the save_file_name_entry only if the entry exists.
450         (shortcuts_drag_data_received_cb): Cast the selection_data->data
451         to (const char *) since that's what shortcuts_drop_uris() expects.
452         (file_list_drag_data_received_cb): Likewise, for
453         g_uri_list_extract_uris().
454
455 2005-09-26  Tor Lillqvist  <tml@novell.com>
456
457         * gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
458         the shaped flag here, too. (#316871)
459         (gdk_window_shape_combine_region): Currently unimplemented, so
460         don't do anything to the shaped flag here.
461
462 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
463
464         Fix #316871, reported by Dan Winship:
465         
466         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag.
467
468         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) 
469         (gdk_window_shape_combine_region): Set it here.
470
471         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't
472         remove the child area for shaped windows.
473
474 2005-09-23  Matthias Clasen  <mclasen@redhat.com>
475
476         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
477         Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
478
479 2005-09-22  Michael Natterer  <mitch@imendio.com>
480
481         Renamed GtkCellRendererKeys to GtkCellRendererAccel to be
482         consistent with GTK+ terminology:
483
484         * gtk/gtkcellrendererkeys.[ch]
485         * tests/testkeys.c: removed...
486
487         * gtk/gtkcellrendereraccel.[ch]
488         * tests/testaccel.c: ...and added.
489
490         * gtk/Makefile.am
491         * gtk/gtk.h
492         * gtk/gtk.symbols
493         * tests/Makefile.am: changed accordingly.
494
495 2005-09-22  Matthias Clasen  <mclasen@redhat.com>
496
497         * gtk/gtkwidget.c (gtk_widget_class_init): Fix the documentation
498         for the grab-broken-event signal, noticed by Damon Chaplin.
499
500 2005-09-21  Tor Lillqvist  <tml@novell.com>
501
502         * gdk/win32/gdkselection-win32.c (gdk_selection_convert,
503         gdk_text_property_to_text_list_for_display,
504         gdk_text_property_to_utf8_list_for_display,
505         gdk_win32_selection_add_targets,
506         _gdk_win32_selection_convert_to_dib): Free return value from
507         gdk_atom_name().
508         (gdk_text_property_to_text_list_for_display): Drop GError variable
509         that isn't actually used after being set.
510
511 2005-09-20  Johan Dahlin  <jdahlin@async.com.br>
512
513         * gtk/gtkentry.c (gtk_entry_set_completion): Mention NULL in 
514         documentation.
515
516 2005-09-20  Tor Lillqvist  <tml@novell.com>
517
518         * gdk/win32/gdkselection-win32.c
519         (gdk_selection_owner_get_for_display): Do return the correct owner
520         for CLIPBOARD (i.e., the owner of the Windows Clipboard, if it is
521         a window GDK knows about). The reason to return NULL seems to have
522         gone when in the fix for bug #163702 the artificial
523         GDK_SELECTION_CLEAR event generation was removed from
524         gdk_selection_send_notify_for_display(). Fixes bug #316552.
525
526 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
527
528         Avoid unnecessary XkbGetState() calls and XkbStateNotify
529         events.  (#151555, Søren Sandmann)
530
531         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Use 
532         XkbSelectEventDetails() to select XkbStateNotify events
533         for only the state we care about.
534
535         * gdk/x11/gdkprivate-x11.h:
536         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_state_changed): Pass
537         the event into the function and update the keymap state from
538         the state information contained in the event. Adjust all callers.
539         
540 2005-09-19  Matthias Clasen  <mclasen@redhat.com>
541
542         * gtk/gtkiconview.c: Use g_list_nth_data() instead of g_list_nth()->data
543         in multiple places to avoid segfaults if the index is out of range.  
544         (#316422, Guillaume Cottenceau)
545         (gtk_icon_view_set_drag_dest_item): 
546         (gtk_icon_view_scroll_to_path): Fix a typo in the docs.  (#316419,
547         #316424, Guillaume Cottenceau)
548
549 2005-09-18  Hans Breuer  <hans@breuer.org>
550
551         * gtk/gtktrayicon-win32.c : now handling events by hard-coded 
552         g_signal_emit_by_name() - will break when gtkstatusicon.c changes.
553
554 2005-09-18  Hans Breuer  <hans@breuer.org>
555
556         * gdk/gdk.symbols gdk/win32/gdkwin32.h gdk/win32/gdkcursorwin32.c : export
557         _gdk_win32_pixbuf_to_hicon() as gdk_win32_pixbuf_to_hicon_libgtk_only()
558         * gtk/gtktrayicon-win32.c : a lot of debug spew but it has started to show
559         the icon and is blinking with teststatusicon. More to come ...
560
561 2005-09-18  Hans Breuer  <hans@breuer.org>
562
563         * gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
564         cause gtkprogressbar.c has #include <config.h> conditionally; less
565         noise from generated gtk.def
566         * gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
567         
568         * gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
569         For me it works as well as the *NIX implemenation, that is not at all.
570
571         * gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
572
573         * gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
574         only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
575         back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
576         again - if compiled properly.
577
578         * tests/teststatusicon.c : don't use GNOME icons for testing, but icons
579         already coming with Gtk+. Makes it compile on win32.
580
581 2005-09-18  Guilherme de S. Pastore  <gpastore@cvs.gnome.org>
582
583         * README.cvs-commits: fixed some tiny typos
584
585 2005-09-16  Tor Lillqvist  <tml@novell.com>
586
587         * modules/engines/ms-windows/msw_style.c (draw_extension,
588         draw_box_gap): Check whether the widget actually is a GtkNotebook
589         before treating it as such. Drop some unneeded local variables,
590         use parameter with same information instead. (#316412)
591
592 2005-09-15  Federico Mena Quintero  <federico@ximian.com>
593
594         * tests/autotestfilechooser.c: Start a set of automated tests for
595         the file chooser.  The only test in there right now doesn't pass
596         yet.  It specifies the intended behavior of the first optimization
597         of a series which I'll do on the file chooser (see
598         http://primates.ximian.com/~federico/news-2005-09.html#14 for the
599         details of this optimization).
600
601         * tests/Makefile.am: Added autotestfilechooser.c.
602
603         * gtk/gtkfilechooserprivate.h (struct
604         _GtkFileChooserDialogPrivate): Move all the file chooser's private
605         structures to here, so that they can be accessed by
606         tests/autotestfilechooser.c:  _GtkFileChooserDialogPrivate,
607         _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault.
608
609         * gtk/gtkfilechooserdialog.c: See above.
610
611         * gtk/gtkfilechooserwidget.c: See above.
612
613         * gtk/gtkfilechooserdefault.c: See above.
614
615 Thu Sep 15 15:27:55 2005  Tim Janik  <timj@imendio.com>
616
617         * gtk/gtkwindow.c: 
618         gtk_window_map_event(): new function to work around lost unmap requests.
619         fixes bug #316180.
620
621 2005-09-14  Federico Mena Quintero  <federico@ximian.com>
622
623         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Add
624         an easy-to-find profiling marker when starting to create a file
625         chooser.
626         (browse_files_model_finished_loading_cb): Likewise, for when the
627         chooser is finished loading.
628
629 2005-09-14  Tristan Van Berkom <tvb@cvs.gnome.org>
630
631         * gtk/gtkcolorbutton.c: Check "color" argument in 
632         gtk_color_button_set_color ()
633
634 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
635
636         * gtk/gtklabel.c (gtk_label_get_type): 
637         * gtk/gtkbutton.c (gtk_button_get_type): 
638         * gtk/gtkwindow.c (gtk_window_group_get_type): No point in 
639         using a mem chunk for window groups, buttons, labels.
640
641         * gtk/updateiconcache.c (foreach_remove_func): Fix
642         a use-after-free bug.  (#316256, Alexander Nedotsukov)
643
644 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
645
646         * gtk/*.c: Various cleanups.  (#315360, Kjartan Maraas)
647
648         * gdk/*.c: Various cleanups.  (#315359, Kjartan Maraas)
649         
650 2005-09-13  Matthias Clasen  <mclasen@redhat.com>
651
652         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
653         Let GDK_Return pass through in some more cases.
654
655         * gtk/gtkentry.c (gtk_entry_key_press): Reset the im context before
656         activating the entry. 
657
658         * gtk/gtkiconview.c (gtk_icon_view_class_init):
659         (gtk_icon_view_get_dest_item_at_pos):  Fix typos in the 
660         docs.  (#316008, #316027, #316121, Guillaume Cottenceau)
661
662         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add some docs.
663         (#316001, Guillaume Cottenceau)
664
665         * gtk/gtkdnd.c (gtk_drag_set_icon_name): Fix a copy-and-paste
666         mistake in the docs.  (#315993, Guillaume Cottenceau)
667
668         * tests/testentrycompletion.c (create_simple_completion_model): Add
669         some strings containing multibyte characters.
670
671         * gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix): 
672         Fix prefix insertion for multibyte characters.  (#316095,
673         Tommi Komulainen)
674
675         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): 
676         * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): Silently
677         return NULL if the widget is not realized.  (#316023,
678         Guillaume Cottenceau)
679
680 2005-09-11  Matthias Clasen  <mclasen@redhat.com>
681
682         * gdk/gdk.symbols: 
683         * gdk/gdkproperty.h: 
684         * gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string): 
685         New function to avoid pointless strdups when creating atoms
686         from static strings.  
687
688         * gdk/x11/*.c:
689         * gtk/*.c:  Use gdk_atom_intern_static_string() where 
690         appropriate.
691
692 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
693
694         * gtk/gtkcellrendererkeys.h: 
695         * gtk/gtkcellrendererkeys.c: Add a cell renderer for displaying
696         and editing accelerators, a port of EggCellRendererKeys .
697
698         * gtk/gtk.symbols:
699         * gtk/gtk.h:
700         * gtk/Makefile.am: Add the keys cell renderer.
701
702         * tests/Makefile.am: 
703         * tests/testkeys.c: Test GtkCellRendererKeys
704
705 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
706
707         Make it possible to determine if a key event is for a
708         modifier key:
709         
710         * gdk/x11/gdkprivate-x11.h: 
711         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): 
712         New function to determine if a keycode is mapped to a modifier.
713         (get_xkb): Get the modmap.
714
715         * gdk/x11/gdkevents-x11.c (translate_key_event): Set the 
716         is_modifier bit by calling _gdk_keymap_key_is_modifier().
717
718         * gdk/gdkevents.h (struct _GdkEventKey): Add an is_modifier
719         bit.
720
721 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
722
723         * gdk/gdkpixbuf-drawable.c (convert_real_slow): Remove an 
724         unused variable, noticed by Kjartan Maraas.
725
726 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
727
728         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event): 
729         Make drag reordering work properly for columns other than the
730         first.  (#315054, Dan Winship)
731         
732         * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Handle 
733         invalid fontnames better. (#136926, Michael R. Walton)
734         
735         Stop cursor blinking in non-editable regions of a text view.
736         (#311508, Torbjörn Andersson)
737         
738         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): 
739         (cursor_blinks): Take editability into account when deciding
740         whether the cursor blinks.
741         (gtk_text_view_button_release_event): 
742         (gtk_text_view_move_cursor_internal): Update cursor blinking here.
743
744         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): 
745         Use connect_after to connect to the focus_out event. This
746         ensures that the entry has already stopped blinking by the time
747         we emit the edited signal.  (#315229, Thomas Leonard)
748
749         * tests/testgtk.c: Use GDK_MOD1_MASK, not GDK_ALT_MASK.
750
751         * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
752         unsigned ints to -1.  (#315481, Kjartan Maraas)
753
754         * gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
755         to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
756         (#314473, Stanislav Brabec)
757
758 2005-09-09  Matthias Clasen  <mclasen@redhat.com>
759
760         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Document
761         memory handling.  (#314975, Torsten Schoenfeld)
762
763         * gtk/gtkiconview.c (gtk_icon_view_class_init): 
764         * gtk/gtkfilesel.c (gtk_file_selection_class_init): 
765         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
766         * gtk/gtklabel.c (gtk_label_class_init): 
767         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
768         Stylistic improvements and clarifications for some blurbs. 
769         (#315520, Clytie Siddall)
770
771 2005-09-09  Tor Lillqvist  <tml@novell.com>
772
773         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Cache the
774         display name. There is only one GdkDisplay on Win32, and
775         constructing the display name isn't entirely trivial, so cacheing
776         is probably worth it. For instance GIMP calls this function a lot.
777         (gdk_display_open): Call gdk_display_get_name() to prime the
778         cached name.
779         (gdk_display_get_n_screens, gdk_display_get_screen,
780         gdk_display_get_default_screen): Verify parameter correctness like
781         the X11 backend does.
782
783         * gdk/win32/gdkscreen-win32.c (gdk_screen_make_display_name):
784         Return a freshly allocated string, as the API specifies. Fixes a
785         heap corruption problem that caused random errors and crashes in
786         GIMP, for instance.
787
788 2005-09-07  Matthias Clasen  <mclasen@redhat.com>
789
790         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
791         Make C-u commit and restart hex input if we are already in a
792         hex sequence.
793
794 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
795
796         * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
797         (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
798         if they are mapped to the same modifier.
799
800         * gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
801         to gtkstatusicon.c and gtktrayicon-x11.c
802
803         * gtk/gtkaccelgroup.c: Include Super, Hyper and Meta in the
804         default accel mod mask.
805
806         * gtk/gtkaccelgroup.c (gtk_accelerator_parse): 
807         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
808         Don't use GDK_ALT_MASK.
809
810         * gdk/gdktypes.h: No need to introduce GDK_ALT_MASK
811
812 2005-09-06  Matthias Clasen  <mclasen@redhat.com>
813
814         Add support for extra virtual modifiers:  (#85780, Owen Taylor)
815         
816         * tests/testgtk.c (create_key_lookup): Add tests for extra virtual
817         modifiers.
818
819         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Try to match both against
820         Mod2 - Mod5 and against Super, Hyper, Meta.
821
822         * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
823         * gtk/gtkaccelgroup.c (gtk_accelerator_parse) 
824         (gtk_accelerator_name): Support Super, Hyper Meta and Mod2 - Mod5.
825
826         * gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a 
827         modmap to maintain the information which X modifiers map to
828         virtual modifiers.
829         (get_xkb): Set up the modmap from the XKB tables.
830         (update_keymaps): Set up the modmap from the information returned
831         by XGetModifierMapping in the non-XKB case.
832
833         * gdk/x11/gdkprivate-x11.h: 
834         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New 
835         function to set the virtual modifiers in the state.
836
837         * gdk/x11/gdkevents-x11.c (translate_key_event): Call 
838         _gdk_keymap_add_virtual_modifiers here.
839
840         * gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super, 
841         Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
842         for GDK_MOD1_MASK.
843
844 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
845
846         * gtk/gtkaction.c (connect_proxy): Set the label of a button
847         if it has no child.  (#315253, John Finlay)
848
849 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
850
851         * gtkimcontextsimple.h: Add a modifiers_dropped bit
852
853 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
854
855         * gtk/gtkentry.c (gtk_entry_destroy): Disconnect idle handlers
856         on destroy to avoid problems when they are called on a destroyed
857         widget.  (#315135, John Cupitt)
858         
859         * gtk/gtkentry.c (gtk_entry_class_init):
860         * gtk/gtktextview.c (gtk_text_view_class_init): Add bindings
861         for Ctrl-Shift-A to unselect all.  (#309301, Kathy Fernandes)
862
863         * gtk/gtkimcontextsimple.c: Rework the Unicode hex input
864         code. Now we only steal a single key combination, Ctrl-Shift-U,
865         instead of sixteen. 
866         A hex Unicode sequence must be started with Ctrl-Shift-U, followed
867         by a sequence of hex digits entered with Ctrl-Shift still held.
868         Releasing one of the modifiers or pressing space while the modifiers
869         are still held commits the character. It is possible to erase
870         digits using backspace.
871         As an extension to the above, we also allow to start the sequence
872         with Ctrl-Shift-U, then release the modifiers before typing any
873         digits, and enter the digits without modifiers.
874         (#82011, Owen Taylor)
875         
876 2005-09-02  Matthias Clasen  <mclasen@redhat.com>
877
878         * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed,
879         we still need to deliver the destroy event.  (#314980, Chris Lahey)
880
881         * gtk/gtktextview.c (gtk_text_view_key_press_event): Reset 
882         im context before committing \n or \t.
883
884 2005-09-02  Alexander Larsson  <alexl@redhat.com>
885
886         * gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),
887         (shortcuts_activate_volume):
888         Handle base_path being null in the rest of the cases (#310270)
889
890 2005-09-02  Tor Lillqvist  <tml@novell.com>
891
892         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of
893         cursor position also in root window coordinates. Prune out
894         superfluous WM_MOUSEMOVE events even earlier, based on root window
895         coordinates. Windows sends WM_MOUSEMOVE messages after a new
896         window has ben mapped below the cursor even if the mouse doesn't
897         move. We used to generate GDK_MOTION_NOTIFY in these cases. This
898         confused at least gtk_menu_motion_notify(). (#314995)
899
900         * gtk/gtkintl.h: No need to include config.h here. It caused
901         warnings about GTK_LOCALEDIR being redefined on Win32 when
902         compiling files where gtkintl.h is included after gtkprivate.h
903         (which #undefines and re-#defines GTK_LOCALEDIR on Win32).
904
905         * gtk/gtkplug.c: Include config.h.
906
907 2005-09-01  Matthias Clasen  <mclasen@redhat.com>
908
909         * gtk/gtkfilesystemunix.c: Pass statbufs down to 
910         xdg_mime_get_mime_type_for_file() where possible, to avoid
911         useless re-stating.  
912         
913         * gtk/gtkaction.c (gtk_action_get_accel_closure): Fix doc
914         typo.  (#314921, Guillaume Cottenceau)
915
916         * gdk/*.c: Intern some more strings.
917         * gtk/gtkintl.h: 
918         * gtk/*.c: Define an I_() macro and use it instead of the 
919         bulky g_intern_static_string().
920
921 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
922
923         * gtk/gtkbindings.c (binding_signal_new): Intern the signal name
924         instead of copying it.
925
926         * gtk/gtktypeutils.c (gtk_identifier_get_type): Some more string interning.
927
928         * gtk/*.c: Also intern static strings passed to 
929         g_object_set_data().
930
931         * gdk/Makefile.am: 
932         * gtk/Makefile.am: Intern type names in code generated by 
933         glib-mkenums, too.
934
935         * gtk/*.c: 
936         * gdk/x11/*.c: 
937         * gdk/*.c: Intern type names before registering the type to avoid 
938         unnecessary copies.
939
940         * configure.in: Require GLib 2.9.0
941
942 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
943
944         * gtk/gtktoolbar.c: Undeprecate gtk_toolbar_set_icon_size(),
945         and add icon-size and icon-size-set properties.  (#314172)      
946
947         * gtk/gtkwindow.c (gtk_window_set_transient_for): Inherit window
948         groups across transient parents.  (#312918, Christian Persch)
949
950         * gtk/gtktreemodel.c: Some documentation fixes.  (#314882,
951         Guillaume Cottenceau)
952
953         * gtk/gtktextiter.c (gtk_text_iter_backward_visible_cursor_positions): 
954         Fix a typo in the docs.  (#314878, Guillaume Cottenceau)
955
956 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
957
958         * gtk/gtkentry.c (gtk_entry_class_init): Add key bindings to
959         make C-/ select all and C-\ unselect all.  (#309301,
960         Kathy Fernandez)
961
962         * gtk/gtkimcontextsimple.c: Change the compose sequence for
963         soft hyphen to be multi_key-minus-minus-space, and add
964         compose sequences multi_key-minus-minus-period and 
965         multi_key-minus-minus-minus for en dash and em dash.
966         (#172653, Christian Lohmaier)
967
968         * gtk/gtkentry.c (gtk_entry_draw_frame): Fix some unused
969         code.  (#313946, Christian Persch)
970
971         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Another
972         fix for the default value of the "ui" property.
973
974 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
975
976         * gtk/gtk.symbols: 
977         * gtk/gtkselection.h:
978         * gtk/gtkselection.c: Add functions which look for text, image
979         or uri targets in an array of atoms.   (#314089, Mark Wielaard)
980
981         * gtk/gtk.symbols: 
982         * gtk/gtkselection.h:
983         * gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
984         Add a function to check wether targets include uri.  
985         (#314092, Mark Wielaard)
986         
987         * gtk/gtk.symbols: 
988         * gtk/gtkwindow.h: 
989         * gtk/gtkwindow.c: Add a deletable property with getter
990         and setter, to control the close button in the window 
991         frame.  (#59718, Havoc Pennington)
992
993 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
994
995         * gtk/gtkrc.key.emacs: Add C-n/C-p/C-f/C-b as alternatives
996         to the arrow keys for menu navigation.  (#162825, Carl Worth)
997
998         * gtk/gtkentry.c, gtk/gtktextview.c: More typo fixes
999
1000         * gtk/gtksocket-x11.c, gtk/gtkstatusicon-x11.c: Fix typos.
1001
1002         * gtk/gtkstatusicon-x11.c (gtk_status_icon_new_from_stock): 
1003         * gtk/gtkimage.c (gtk_image_new_from_stock): Don't
1004         refer to nonexisting stock ids.
1005
1006         * gtk/gtktextview.c (popup_targets_received): 
1007         * gtk/gtkentry.c (popup_targets_received): Construct
1008         the "Select All" menuitem from stock.
1009
1010         * gtk/stock-icons/stock_select_all_{16,24}.png:
1011         * gtk/stock-icons/Makefile.am: 
1012         * gtk/gtkiconfactory.c:
1013         * gtk/gtkstock.h: 
1014         * gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
1015         Calum Benson)
1016
1017         * gtk/gtktrayicon.c: Add a pointer to the spec.
1018
1019         * gtk/gtkstatusicon-x11.c: Add docs.
1020
1021         * gtk/gtkstatusicon.h: Fix a typo.
1022
1023         Add a cross-platform "tray icon" API, by
1024         porting EggStatusIcon/EggTrayIcon (#105101)
1025         
1026         * gtk/gtkstatusicon.h: A GtkStatusIcon is an object which
1027         displays an icon in a notification area.
1028
1029         * gtk/gtkstatusicon-x11.c: GtkStatusIcon implementation for
1030         X11, using GtkTrayIcon.
1031
1032         * gtk/gtktrayicon.h: 
1033         * gtk/gtktrayicon.c: An implementation of the freedesktop.org
1034         system tray specification, not public API.
1035
1036         * gtk/gtk.symbols: Add new exported functions.
1037
1038         * gtk/gtk.h: Include gtkstatusicon.h.
1039
1040         * gtk/Makefile.am: Add new files.
1041
1042         * tests/Makefile.am:
1043         * tests/teststatusicon.c: Test for GtkStatusIcon.
1044
1045 2005-08-29  Christopher Aillon  <caillon@redhat.com>
1046
1047         * gtk/gtkstock.c: Add builtin GtkStockItems for GTK_STOCK_CONNECT
1048         and GTK_STOCK_DISCONNECT
1049         
1050 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
1051
1052         * gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify): 
1053         Use XFixesChangeSaveSet if available.  (#314682)
1054
1055         * gtk/gtkmenu.c (gtk_menu_grab_notify):  Only cancel if the menu
1056         was active.  (#314298, Christian Persch, analysis by Mark McLoughlin)
1057
1058 2005-08-29  Matthias Clasen  <mclasen@redhat.com>
1059
1060         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): Remove an
1061         accidentally leftover duplicate pixbuf creation.  (#314700,
1062         Kjartan Maraas)
1063
1064         * gtk/gtksettings.c (settings_update_cursor_theme): Don't 
1065         leak the cursor theme name.  (#314693, Kjartan Maraas)
1066
1067         * gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free 
1068         state.children in all cases.  (#313862, Kjartan Maraas)
1069
1070 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
1071
1072         * po/POTFILES.in, po-properties/POTFILES.in:
1073         Add gdk/gdkscreen.c
1074
1075 2005-08-27  Matthias Clasen  <mclasen@redhat.com>
1076
1077         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Fix the default
1078         value of the ui property. (#314532, Yong Wang)
1079
1080         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
1081         when G_MAXLONG is passed as length.  
1082
1083 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
1084
1085         * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
1086         to avoid overloading --force.  (JP Rosevaar)
1087
1088 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
1089
1090         * configure.in: Bump version to 2.9.0
1091
1092         * gdk/gdk.symbols: 
1093         * gdk/gdkscreen.h: 
1094         * gdk/gdkscreen.c: Make the GdkScreen font options api
1095         public, and add properties GdkScreen::font-options and
1096         GdkScreen::resolution.  (#314004)
1097
1098         * gdk/gdkpango.c:
1099         * gtk/gtksettings.c:
1100         * gtk/gtkwidget.c: Adjust all callers.
1101         
1102         * gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
1103         * gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
1104         * gdk/gdkscreen.c: Include gdkintl.h.
1105
1106         * gtk/gtkicontheme.c (theme_lookup_icon): Avoid an uninitialized
1107         variable warning, pointed out by Colin Walters. (#314585)
1108
1109 2005-08-26  Tor Lillqvist  <tml@novell.com>
1110
1111         * gtk/gtkfilesystemwin32.c: Remove some ifdeffed out debugging
1112         printouts.
1113         (gtk_file_system_win32_parse): Don't mishandle UNC paths. (#314519)
1114
1115 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
1116
1117         * gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
1118         of week_start.  (#314473, JP Rosevaar)
1119
1120 2005-08-25  Thomas Fitzsimmons  <fitzsim@redhat.com>
1121
1122         * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
1123         lock.  (#314533, Thomas Fitzsimmons)
1124
1125 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
1126
1127         * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
1128         NULL gracefully.  (#314523, Ed Catmur)
1129
1130 2005-08-25  Owen Taylor  <otaylor@redhat.com>
1131
1132         * gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
1133         Handle theme == NULL.
1134
1135 2005-08-25  Matthias Clasen  <mclasen@redhat.com>
1136
1137         * gtk/gtkmenutoolbutton.c (menu_position_func): Take widget
1138         y offset into account when positioning the popup.  (#314470,
1139         Christian Persch)
1140
1141 2005-08-25  Owen Taylor  <otaylor@redhat.com>
1142
1143         * gdk/gdkscreen.c (gdk_screen_get_type): Use gdk_screen_init
1144         as instance_init, not base_init! (#314452, Fix from Frederic
1145         Crozat, reported by Joe Marcus Clarke). Trivial cleanup: use -1.
1146         rather than 1 for a negative flag value.
1147
1148 2005-08-24  Owen Taylor  <otaylor@redhat.com>
1149
1150         * gdk/gdkpango.c (draw_error_underline): Add a note about
1151         cut-and-paste between here and Pango.
1152
1153 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
1154
1155         * === Released 2.8.2 ===
1156
1157         * gtk/gtkclipboard.c (request_image_received_func): Use the correct
1158         callback for image/gif, and also try image/bmp.  (#314086,  Mark 
1159         Wielaard)
1160
1161         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_render_icon): 
1162         Use gnome-dev-harddisk for volumes, not gnome-fs-blockdev.  (#314382,
1163         Sebastien Bacher)
1164         
1165         * NEWS: Updates
1166
1167         * gtk/gtksettings.c (gtk_settings_get_for_screen): Make sure font
1168         and cursor settings get propagated down to the screen initially.
1169         Pointed out by Frederic Crozat.
1170
1171         * gtk/gtkicontheme.c (ensure_valid_themes): Don't try to send a client
1172         message if the screen is NULL. Noticed by Kjartan Maraas.
1173
1174 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
1175
1176         * Bump version
1177
1178         * === Released 2.8.1 ===
1179
1180         * NEWS: Updates
1181         
1182 2005-08-24  Matthias Clasen  <mclasen@redhat.com>
1183
1184         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_visible): Protect
1185         against lazy filterers which return values other than TRUE or
1186         FALSE from their visible func.  (#314335)
1187
1188 2005-08-23  Owen Taylor  <otaylor@redhat.com>
1189
1190         Fix for #314004, reported by Michael Reinsch:
1191
1192         * gdk/gdk.symbols:
1193         * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
1194         Add gdk_screen_get/set_resolution_libgtk_only()
1195
1196         * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
1197         the options for the screen on the newly created context.
1198
1199         * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c: 
1200         Move font options and dpi code from gtkwidget.c to gtksettings.c, set
1201         the font options on the screen.
1202
1203         * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
1204         the font options from the screen and set them on the context.
1205
1206 2005-08-23  Kristian Rietveld  <kris@gtk.org>
1207
1208         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
1209         bother inserting new rows in a level with a zero refcount and
1210         immediately free the level. (Fixes #312350, reported by Markku Vire).
1211
1212 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
1213
1214         * gtk/updateiconcache.c: Complain when there is no index.theme file
1215         in the specified directory, unless --force is used. Also add an
1216         --index-only option to create caches without image data.
1217
1218         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Fix a
1219         C99ism.  (#314262, Robert Jeff Mitchell)
1220         
1221 2005-08-22  Manish Singh  <yosh@gimp.org>
1222
1223         * gtk/gtkicontheme.h: add declaration for _gtk_icon_theme_check_reload.
1224
1225         * gtk/gtkwindow.c: remove declaration of gtk_window_read_rcfiles.
1226
1227 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
1228
1229         * gtk/gtkwindow.c (gtk_window_client_event): 
1230         * gtk/gtkicontheme.c (ensure_valid_themes) 
1231         (_gtk_icon_theme_check_reload): Implement a clientmessage based
1232         scheme for makeing sure that all GTK+ applications notice if an
1233         icon theme has been updated. This should prevent multiple versions
1234         of an icon theme cache to be mapped in memory at the same time,
1235         which can cause excessive memory consumption.  (#313156, Chris 
1236         Lahey)
1237
1238 2005-08-22  Matthias Clasen  <mclasen@redhat.com>
1239
1240         * gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
1241         regarding icon theme changes.
1242
1243         * gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
1244         pixbufs which are backed by the mmapped memory of an icon cache,
1245         increase the refcount of the icon cache, so that the memory is not
1246         munmapped away underneath the pixbuf upon icon theme changes.  
1247         (#314170, Kjartan Maraas)
1248
1249         * docs/tools/Makefile.am (LDADDS): Add GTK_DEP_LIBS, in order 
1250         to link against Xext.  (#314062)
1251
1252         * gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
1253         overruns.  (#314081, Hans Breuer)
1254
1255 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
1256
1257         * gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the
1258         returned layout must not be modified.
1259
1260 Sat Aug 20 16:12:14 2005  Jonathan Blandford  <jrb@redhat.com>
1261
1262         * gtk/gtktreeview.c (gtk_tree_view_set_model): clear
1263         scroll_to_path if the model changes.
1264
1265         * gtk/gtkiconview.c: (gtk_icon_view_destroy),
1266         (gtk_icon_view_size_allocate), (gtk_icon_view_set_cursor),
1267         (gtk_icon_view_scroll_to_path): Handle scrolling to a path before
1268         we're realized, #312798
1269         (gtk_icon_view_set_model): clear scroll_to_path if the model
1270         changes.
1271
1272 2005-08-20  Matthias Clasen  <mclasen@redhat.com>
1273
1274         * gtk/gtkrange.c (gtk_range_adjustment_changed) 
1275         (gtk_range_adjustment_value_changed):  Don't queue a draw
1276         if the layout has not changed.  (#313991, Benjamin Berg)
1277
1278 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
1279
1280         * gtk/gtktreeitem.c: Remove duplicate lines.  (#313344,
1281         Benoit Carpentier)
1282
1283         * modules/engines/ms-windows/msw_style.c (setup_system_styles): 
1284         Fix a typo. 
1285
1286         * gtk/gtkfilechooserbutton.c (change_icon_theme) 
1287         (model_add_special, model_add_special, model_add_volumes):
1288         Handle pixbuf being NULL without warnings. Also, don't
1289         leak pixbuf references when the icon theme is changed.
1290
1291         * gtk/gtkmain.c (gtk_get_event_widget): Don't access
1292         the user data on destroyed windows, since at best
1293         it can be a stale pointer.  (#313953, Robin Green)      
1294
1295 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
1296
1297         * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
1298         (#313900, Sebastien Bacher)
1299
1300         * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
1301         FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
1302
1303         * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display) 
1304         (xdnd_read_actions, get_client_window_at_coords_recurse): 
1305         Free data returned from XGetWindowProperty. 
1306
1307         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window) 
1308         Free data returned from XGetWindowProperty.  (313867, Kjartan
1309         Maraas)
1310         
1311         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
1312         children in all cases.  (#313862, Kjartan Maraas)
1313
1314         * gtk/gtkicontheme.c (theme_lookup_icon): Store GtkIconData structs 
1315         in the per-directory hash, even if they come from the icon cache. 
1316         We tried to avoid that before, but as a result leaked icon data
1317         structs.  (#313852, Kjartan Maraas)
1318
1319 2005-08-18  Matthias Clasen  <mclasen@redhat.com>
1320
1321         * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_destroy): Disconnect
1322         signal handlers on destroy, not on finalize.  (#313759, Brett Atoms)
1323
1324 2005-08-15  Owen Taylor  <otaylor@redhat.com>
1325
1326         * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
1327         files for x11/xext. (Jonas Bonn)
1328
1329 2005-08-15  Tor Lillqvist  <tml@novell.com>
1330
1331         * gtk/gtkicontheme.c (theme_lookup_icon): Put debugging printout
1332         inside GTK_NOTE.
1333
1334 2005-08-15  Owen Taylor  <otaylor@redhat.com>
1335
1336         * configure.in: Fix have_base_pc / have_base_x_pc typo.
1337
1338         * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
1339         (#313417, James Andrewartha)
1340
1341         * configure.in: Add fontconfig to X_PACKAGES, since we use it for
1342         FcNameConstant(). (More of #313417)
1343
1344 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
1345
1346         * gtk/gtkfilechooserdefault.c: When using gtk_dialog_run() for
1347         modal dialogs, make sure to inherit the window group from 
1348         the parent, since we don't inherit window groups across
1349         transient parents currently.  (#312918, Christian Persch)
1350
1351         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): 
1352         * gtk/gtkdialog.c (gtk_dialog_run): Slight update to the docs. 
1353
1354         * gtk/gtkiconview.c (gtk_icon_view_select_path) 
1355         (gtk_icon_view_scroll_to_path): Handle paths of depth 0
1356         gracefully.  (#312796, Jonathan Blandford)
1357
1358         * tests/testtoolbar.c: Add some more tests for menu placement.
1359
1360         * gtk/gtkmenutoolbutton.c (menu_position_func): 
1361         * gtk/gtktoolbar.c (menu_position_func): Improve positioning
1362         of toolbutton menus and of the overflow menu.  (#312937, 
1363         #153870, Christian Persch, Paolo Borelli)
1364
1365 2005-08-15  Tor Lillqvist  <tml@novell.com>
1366
1367         * gtk/updateiconcache.c: Use g_path_get_dirname() instead of
1368         the nonportable <libgen.h> and dirname().
1369
1370 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
1371
1372         * gtk/gtksizegroup.c: Use object data to mark widgets and
1373         groups as visited, so that we avoid constant extra list
1374         traversals. Also allocate quarks in class_init.  (#311618,
1375         Michael Natterer)
1376
1377         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon): Correct the 
1378         download location for the hicolor icon theme. (#313475, Olexiy 
1379         Avramchenko)
1380
1381         * gtk/gtkicontheme.c: Remove debug spew. 
1382
1383 2005-08-15  Owen Taylor  <otaylor@redhat.com>
1384
1385         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): 
1386         * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): 
1387         * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
1388         Handle pixmap == NULL when checking for a colormap.
1389         (Allin Cottrell).
1390
1391 2005-08-14  Matthias Clasen  <mclasen@redhat.com>
1392
1393         * gtk/updateiconcache.c: Store only one copy of the pixel data
1394         for symlinked icons. To achieve this, maintain a hashtable 
1395         mapping pathnames to pixel data, and share the pixel data for
1396         all symlinks resolving to the same pathname. When writing out
1397         the image data, write out the pixel data only the first time
1398         it is met, and store the offset pointing to the first copy
1399         for use in all later cases.
1400         This reduces the size of the Bluecurve icon cache from 40
1401         to 13MB. (#312972)
1402