]> Pileus Git - ~andy/gtk/blob - ChangeLog
Actually group the actions together rather than putting each in its own
[~andy/gtk] / ChangeLog
1 2003-08-29  Matthias Clasen  <maclas@gmx.de>
2
3         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): Actually group the actions
4         together rather than putting each in its own group.
5
6         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
7         for radio actions.
8
9         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
10
11 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
12
13         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
14         Fix use of uninitialized variable.
15
16         * gtk/gtktextutil.c
17         (_gtk_text_util_append_special_char_menuitems): add const cast to
18         get rid of warning
19
20 2003-08-29  Matthias Clasen  <maclas@gmx.de>
21
22         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install "draw_as_radio"
23         as a separate property, not as an alias of "inconsistent".
24         (gtk_check_menu_item_get_property): 
25         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
26
27 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
28
29         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
30         are narrower than 13 time the estimated character width of the
31         font. (#107781, David Bordoley)
32
33         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
34         here if the GtkToggleButton is active. This may be the case if it
35         is a radio button.
36
37         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
38         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
39         Suarez-Alvarez).
40
41         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
42         property. (#111207, David Bordoley).
43
44         * gtk/gtktoggletoolbutton.c
45         (gtk_toggle_tool_button_create_menu_proxy): use new
46         "draw_as_radio" property on the menu item when the item is a radio
47         tool button
48
49         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
50         to only pay attention to the "use_underline" property when the
51         button label comes from the "label" property.
52
53 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
54
55         * configure.in: Added "sq" to ALL_LINGUAS.
56         
57 2003-08-28  Matthias Clasen  <maclas@gmx.de>
58
59         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
60         fix in the docs.
61
62         * gtk/gtkuimanager.c: Change the XML format:
63         <Root> element is replaced by <ui>,
64         <menu> element is replaced by <menubar>,
65         <submenu> element is replaced by <menu>,
66         <dockitem> element is replaced by <toolbar>,
67         <popups> element is gone,
68         verb attribute is replaced by action,
69         name defaults to action or the element name. 
70
71         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry
72         and GtkRadioActionEntry. GtkActionEntry is simplified by removing 
73         the user_data, entry_type and extra_data fields, GtkRadioActionEntry is
74         further simplified by removing the callback. The user_data can now be
75         specified as an argument to gtk_action_group_add_actions(). There is
76         a new method gtk_action_group_add_radio_actions(), which is similar
77         to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
78         and a callback parameter in addition to the user_data. The callback
79         is connected to the ::changed signal of the first group member.
80         There are _full() variants taking a GDestroyNotify of 
81         gtk_action_group_add_[radio_]actions().
82
83         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
84         on every member of the radio group when the active member is changed. 
85         Add an integer property "value", and a getter for the value of "value"
86         on the currently active group member. 
87
88         * tests/testactions.c: 
89         * tests/testmerge.c: 
90         * tests/merge-[123].ui:  
91         * demos/gtk-demo/appwindow.c: Adjust to these changes.
92
93         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
94
95 2003-08-27  Anders Carlsson  <andersca@gnome.org>
96
97         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
98         text view, so the tool bar won't have focus.
99
100 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
101
102         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
103         declaration not at start of block. (#120371, Damien Carbery)
104
105 2003-08-26  Matthias Clasen  <maclas@gmx.de>
106
107         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
108         for length, not gsize.
109
110         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
111         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
112         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
113
114         * demos/gtk-demo/appwindow.c: 
115         * tests/testactions.c: 
116         * tests/testmerge.c:
117         * tests/merge-1.ui:
118         * tests/merge-2.ui:
119         * tests/merge-3.ui: Adjust to the new XML format.
120
121 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
122
123         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
124         Since we add one to the layout's reported width to
125         account for the cursor, we need to subtract one when
126         setting the wrap width for the layout. (Fixes infinite
127         loop (#120325, Frederic Crozat)
128
129         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
130         Be a bit more careful about rounding when converting
131         wrapped width from Pango units to pixels.
132
133 2003-08-26  Matthias Clasen  <maclas@gmx.de>
134
135         Rename GtkMenuMerge to GtkUIManager. 
136         
137         * gtk/gtkuimanager.[hc]: New files. 
138         * gtk/gtkmenumerge.[hc]: Removed. 
139
140         * gtk/Makefile.am: 
141         * gtk/gtk.h:
142         * tests/testmerge.c: 
143         * tests/testactions.c: 
144         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
145         GtkUIManager.
146
147         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
148         add comments to entries array, remove newlines from ui definition. Don't 
149         use the ::add_widget signal.
150
151 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
152
153         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
154         include page->menu_label - causes various problems,
155         including #12047.
156
157 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
158
159         Merge from stable.
160
161         Fixes #115871, reported by Michael Natterer.
162
163         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
164         added ctrl_pressed and shift_pressed bitfields,
165         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
166         arg with GtkTreeSelectMode.
167
168         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
169         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
170         (_gtk_tree_selection_internal_select_node): all updated for
171         GdkModifierType -> GtkTreeSelectMode move.
172
173         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
174         and shift_pressed around selection handling block,
175         (gtk_tree_view_real_select_cursor_row),
176         (gtk_tree_view_real_toggle_cursor_row),
177         (gtk_tree_view_real_selection_cursor_parent),
178         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
179         instead of checking the event state. And also updates for the
180         GdkModifierType -> GtkTreeSelectMode move.
181
182 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
183
184         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
185         to the parent when there was no focus widget before
186         and no focus widget after - that is, when there are
187         no focusable widgets. (#108678, help tracking it
188         down from Padraig O'Briain, Federico Mena Quintero, )
189
190         * gtk/gtkxembed.[ch]: Move various shared utilities
191         for the XEMBED protocol eused by GtkPlug and GtkSocket 
192         here.
193
194         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
195         a flag bit that is sent with focus mesages to indicate
196         that the focus has wrapped around on the toplevel;
197         use this bit to catch infinite loops when there is no
198         focusable widget at ll in the entire toplevel.
199
200         * tests/testsocket.c (child_read_watch): Remove an
201         extraneous unref.
202
203         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
204         Up XEMBED protocol version to 1, add logic for 
205         sending the right version in XEMBED_EMBEDDED_NOTIFY.
206
207         * gtk/gtksocket.c (gtk_socket_add_window): Send
208         the embedder window in the XEMBED_EMBEDDED_NOTIFY
209         as the spec requires.
210
211 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
212
213         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
214         NumLock handling for non-XKB. Add a special case
215         hack for NumLock on Sun servers. (Patch from
216         Robert Basch, #115819)
217
218 2003-08-25  Matthias Clasen  <maclas@gmx.de>
219
220         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
221         Welinder)
222
223         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
224         gtk_action_group_set_translation_domain): Hooks for translation of
225         label and tooltip in GtkActionGroupEntries.  (#120620)
226
227 2003-08-25  Matthias Clasen  <maclas@gmx.de>
228
229         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
230         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
231         
232         * gtk/gtkactiongroup.c: 
233         * demos/gtk-demo/appwindow.c: 
234         * tests/testmerge.c: 
235         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
236
237 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
238
239         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
240
241 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
242
243         * gtk/Makefile.am: Fix accidental commit of references
244         to gtkresizegrip.[ch]
245
246 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
247
248         * gtk/gtkrc.c: Fix some missing initializations of
249         rc_file->directory.
250
251 2003-08-24  Matthias Clasen  <maclas@gmx.de>
252
253         * gtk/gtkaction.[ch]: 
254         * gtk/gtktoggleaction.[ch]: 
255         * gtk/gtktoggleactionprivate.h: 
256         * gtk/gtkradioaction.[ch]: 
257         * gtk/gtkactiongroup.[ch]: 
258         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
259         toolbars, using the EggMenu code by James Henstridge.
260
261         * gtk/gtk.h: Include new headers.
262         * gtk/Makefile.am: Add new files.
263
264         * tests/testactions.c: Test for actions.
265         * tests/testmerge.c: Test for menu merging.
266         * tests/merge-[123].ui: Test data for testmerge. 
267         * tests/Makefile.am: Add testactions and testmerge.
268
269         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
270         menubar and toolbar.
271         
272 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
273  
274         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
275         problem where rc_file->directory wasn't always getting
276         set. (#120549, Luis Villa)
277  
278 2003-08-22  Christian Rose  <menthos@menthos.com>
279
280         * configure.in: Added "ne" to ALL_LINGUAS.
281
282 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
283  
284         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
285         being parsed, not just the directories for those
286         files. Use that to catch recursion. (Part of
287         #114988)
288  
289 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
290
291         Merge from stable.
292
293         Fix option menu scrolling (#119821, Owen Taylor).
294
295         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
296         by #80484 and the CLAMP,
297         (get_menu_height): new function,
298         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
299         new_offset to handle page up/down right.
300
301 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
302
303         * gdk/x11/gdkkeys-x11.c: Change the interpretation
304         of consumed_modifiers so that it contains:
305          - Modifiers combinations actually found in
306            state.
307          - Single modifier modifier combinations.
308         But not multi-modifier combinations that aren't
309         in event->state. Document. (#100439)
310
311 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
312
313         Slightly modified patch from Yann Rouillard to improve selection
314         behavior with the mouse. Fixes #120187.
315
316         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
317         select/deselect items on the first button press of button 1,
318         expand checks for row_activated to include triple clicks.
319
320 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
321
322         Merge from stable.
323
324         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
325         approximate digit widths up, to avoid truncation, convert to
326         pango pixels when we have the full string width instead of converting
327         the approx digit width to pango pixels, take inner border and
328         interior focus into account correctly. (Fixes #116368, patch from
329         Morten Welinder).
330
331 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
332
333         * gtk/queryimmodules.c: Don't look at the same directory twice (in
334         simple cases). (#120342)
335
336 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
337
338         * gdk/gdkwindow.c: Make the layers in the paint stack have their
339         own pixmap instead of sharing one. (#118317)
340
341         * tests/testgtk.c (create_get_image): Fixes to make the window fit
342         on an 800x600 screen
343
344 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
345
346         Merged from stable.
347
348         * gtk/gtkspinbutton.c (start_spinning): change the type of step
349         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
350
351 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
352
353         * modules/input/gtkimcontextxim.[ch]: Substantially
354         rework the handling of status windows:
355         
356          - Store the current StatusWindow in the 
357            GtkIMContextXIM structure and vice-versa, so we
358            don't have to hunt the window hierarchy on
359            cleanup.
360          - Use the Gtkidget hierarchy instead of/or as well
361            as the GdkWindow hierarchy when finding the toplevel;
362            this helps for things like GtkHandlebox
363          - Watch GtkWidget::hierarchy_changed to catch 
364            changes in the toplevel without changes in the
365            GdkWindow (reparenting)
366          - Never create the GtkWindow for the status window
367            unless we have text to display.
368          - Various cleanups, add lots of comments.
369
370         (#115077, much help from Takuro Ashie and Hidetoshi
371         Tajima in tracking this down and figuring out a fix.)
372
373         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
374
375         * modules/input/gtkimcontextxim.c: Track the current
376         screen for each toplevel so that we show the status
377         window on the right screen. (#116340, James Su)
378
379         * modules/input/gtkimcontextxim.c: If create a new IC
380         when we currently have the focus, call XSetICFocus()
381         on it.
382         
383         * modules/input/gtkimcontextxim.c (get_im): Fix bug
384         with multiple open screens.
385
386 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
387
388         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
389         Replace client_window field with 'priv' pointer,
390         retaining binary compatibility.
391
392         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
393         save use_preedit/cursor_location/focus status and set
394         up the new slave appropriately. (#118651, Botond Botyanszki)
395
396 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
397
398         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
399         Don't use impl->position_info.clip_rect for toplevels.
400         (#107068, reported by Thomas Mirlacher)
401
402 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
403
404         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
405         Add a fallback for unaligned source data for
406         FORMAT_ARGB_MASK. (#117217)
407
408 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
409
410         * configure.in: Rework handling of REBUILD_PNGS,
411         so that we also don't try to REBUILD_PNGS when
412         cross-compiling and there is no gdk-pixbuf-csource.
413         But give an error if gtk/stock-icons/gtkstockpixbufs.h
414         is not in the source tree. (Note that REBUILDS_PNG
415         was set backwards before, which is why you always
416         had to manually recreate gtkstockpixbufs.h!)
417
418 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
419
420         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
421         path to libgtk.la. (#120080, Benedikt Spranger)
422
423 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
424
425         * modules/input/imcedilla.c: Make the list of default
426         languages more comprehensive. (Suggestion of
427         Fco. Javier F. Serrador)
428
429 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
430
431         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
432         parentheses when skipping args.
433
434 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
435
436         Fix major bug in row ref handling, so the new combo box
437         will actually work right (:. Bug #107748. Patch written
438         with help from Tim Janik.
439
440         The basic idea is to update the row refs in a closure,
441         before the actual signal is emitted (rather than having
442         the model connect signal handlers).
443
444         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
445         g_signal_new calls for row_inserted, row_deleted and
446         rows_reordered to use the new marshallers,
447         (row_inserted_marshall), (row_deleted_marshall),
448         (rows_reordered_marshall): the new marshallers,
449         (gtk_tree_row_ref_inserted_callback): renamed to
450         gtk_tree_row_ref_inserted since it isn't a callback
451         anymore and gets called by the marshaller now,
452         (gtk_tree_row_ref_deleted_callback): likewise,
453         (gtk_tree_row_ref_reordered_callback): likewise,
454         (connect_ref_callbacks), (disconnect_ref_callbacks):
455         removed,
456         (gtk_tree_row_reference_new_proxy),
457         (gtk_tree_row_reference_free),
458         (gtk_tree_row_reference_inserted),
459         (gtk_tree_row_reference_deleted),
460         (gtk_tree_row_reference_reordered): updated.
461
462 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
463
464         Improve Cedilla handling - based on a patch from Gustavo 
465         De Nardin, #111334
466
467         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
468         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
469         dead_acute+c combinations. Make this the default for
470         fr and pt.
471
472         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
473         Use LC_CTYPE instead of LC_MESSAGES to pick the default
474         input method.
475
476 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
477
478         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
479         for Multi_key+c+apostrophe.
480
481 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
482
483         Merged from stable.
484
485         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
486         on vertical scrolling. (#108035, reported by Tim Janik).
487
488 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
489
490         Merged from stable.
491
492         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
493         (gtk_tree_model_sort_level_find_insert),
494         (gtk_tree_model_sort_insert_value): fix off-by-one error.
495         (#109292 continued, patch from Yann Rouillard).
496
497 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
498
499         (Note: This is not exactly the same as the patch which went in
500          gtk-2-2).
501
502         * gtk/gtktreeview.c (gtk_tree_view_class_init),
503         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
504         Also support the up, down, left, right, home, end, page up and
505         page down keys on the numpad. (#119419, reported by Alex Larsson).
506
507 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
508
509         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
510
511         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
512         we link libgtk against X explicitely, since we
513         make GTK+ calls for plug/socket.
514
515         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
516         G_MODULE_SUFFIX here. 
517
518         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
519         XShmPutImage with #ifdef USE_SHM.
520
521 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
522
523         * gtk/gtkfilesel.c (gtk_file_selection_populate):
524         Don't reposition the cursor when we aren't trying
525         to complete. (Fixes problems with selection on
526         startup, #108433, reported by Mark Finlay.)
527
528         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
529         code that tried to position the cursor after the common
530         prefix when there was one, it wasn't working, and
531         would be hard to fix. Just always put the cursor
532         at the end when completing.
533
534 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
535
536         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
537         the current directory fails because of encoding
538         conversion problems, walk up textually to parent
539         directories until we can convert. (#113627)
540
541 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
542
543         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
544         Remove usage of menu_shell->ignore leave which was
545         to deal with stray events we no longer get because
546         we do grabbing differently. Comment it as unused in
547         the header. (#115837, Keith Bissett)
548
549 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
550
551         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
552         Fix some places that weren't properly Xinerama-ified.
553
554         * gtk/gtkmenu.c: Fix problem with windows that scroll
555         at the top of the screen.
556
557 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
558
559         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
560         key-press-event on the entry, so input methods get access to 
561         key presses before GtkCombo customization.
562         (#115451, Botond Botyanszki)
563
564 2003-08-13  Anders Carlsson  <andersca@gnome.org>
565
566         * tests/testtoolbar.c: (set_important_func), (important_toggled),
567         (create_items_list):
568         Add an important column.
569         
570 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
571
572         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
573         against reentrancy from ::focus-out handlers. 
574         (#118129, Felipe Heidrich)
575
576 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
577
578         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
579         GDK_LOCK_MASK before calling
580         gdk_keymap_translate_keyboard_state so bindings 
581         and accelerators are independent of the Caps-lock
582         key. (#115384, reported by Toni Willberg)
583
584 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
585
586         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
587         break statements (#119494, Soeren Sandmann)
588
589 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
590
591         * gtk/gtkwidget.h: Mark parent public as well; it's
592         extensively accessed in existing code, so there is
593         no advantage in making people use get_parent().
594         (Tweak to #119463 fix)
595
596 2003-08-11  Matthias Clasen  <maclas@gmx.de>
597
598         Add support for EWMH "Above" and "Below" window states.  (105100,
599         Manuel Clos)
600         
601         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
602         State" demo.
603
604         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
605         gtk_window_set_keep_below.
606
607         * gtk/gtk.def: Add gtk_window_set_keep_above and
608         gtk_window_set_keep_below.
609
610         * gtk/gtkwindow.c (gtk_window_set_keep_below):
611         (gtk_window_set_keep_above): New functions, call the corresponding
612         gdk functions.
613
614         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
615         function, sets _NET_WM_STATE_BELOW.
616         (gdk_window_set_keep_above): New function, sets
617         _NET_WM_STATE_ABOVE.
618
619         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
620         gdk_window_set_keep_below.
621
622         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
623         GDK_WINDOW_STATE_BELOW.
624
625         * gdk/gdk.def: Add gdk_window_set_keep_above and
626         gdk_window_set_keep_below.
627
628         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
629         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
630         xmlcatalog in PATH.  (#119115)
631
632 2003-08-10  Matthias Clasen  <maclas@gmx.de>
633
634         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
635         public.  (#119463)
636
637 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
638
639         * gdk/gdkevents.h:
640         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
641         docs on GdkFilterFunc and GdkFilterReturn.
642
643 2003-08-09  Matthias Clasen  <maclas@gmx.de>
644
645         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
646         to let the mouse wheels select the month. Scrolling down
647         moves forward in time. (#53134, Abigail Brady) 
648
649         * gtk/gtkcalendar.c: Complete the RTL flipping support for
650         GtkCalendar, make it possible to flip the headings using the
651         "magic translated string" technique.  Translators, note the
652         comment in gtk_calendar_init() explaining this.  (#102416)
653
654         * gtk/gtkcalendar.c: Get the information about the first day of
655         the week from the locale using another instance of the "magic
656         translated string" technique.  Ignore the display option
657         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
658
659         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
660         date is dragged as text, formatted via strftime %x. Text drops are
661         accepted if g_date_set_parse() can make sense of the text. A
662         dedicated data format for date DND has not been introduced yet,
663         since there didn't seem to be sufficient consensus on such a
664         format on xdg-list.  (#117297)
665         
666 2003-08-08  Matthias Clasen  <maclas@gmx.de>
667
668         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
669         Fix a segfault.  (#115284, Jan Kratochvil)
670
671 2003-08-08  Tor Lillqvist  <tml@iki.fi>
672
673         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
674         coordinates for events that have such. Print coordinates for enter
675         and leave events.
676
677         (gdk_event_translate): Don't use event uninitialixed in the
678         return_exposes branch of the WM_PAINT handler.
679
680         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
681         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
682         Must offset top-level window coordinates here, too.
683
684 2003-08-08  Matthias Clasen  <maclas@gmx.de>
685
686         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
687         when maximized or fullscreen.
688
689 2003-08-07  Tor Lillqvist  <tml@iki.fi>
690
691         * gdk/win32/gdkinput-win32.h
692         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
693         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
694         used.
695
696         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
697         accordingly, in fact an uninitialised variable was dereferenced.
698         
699
700         [Win32] Add support for multiple monitors. 
701         
702         * gdk/win32/gdkprivate-win32.h
703         * gdk/win32/gdkglobals-win32.c: New global variables for
704         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
705         _gdk_offset_x and _gdk_offset_y.
706         
707         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
708         functions, enumeration functions passed to EnumDisplayMonitors().
709
710         (gdk_display_open): If the EnumDisplayMonitors() and
711         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
712         if to find out monitor info.
713
714         Calculate the offset between Win32 coordinates (relative to the
715         primary monitor's origin (and thus negative on monitors to the
716         left of or above it), and GDK's (visible coordinates should be
717         non-negative).
718         
719         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
720         gdk_screen_get_monitor_geometry): Use information collected above.
721
722         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
723         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
724
725         (gdk_window_get_geometry, gdk_window_get_origin,
726         gdk_window_get_frame_extents): For top-level windows, add
727         _gdk_offset_{x,y} to GDK root window coordinates
728
729         Still need to handle multiple monitors in
730         gdk_window_fullscreen(). Probably should make the window
731         fullscreen on the monitor where the cursor is?
732
733         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
734         root window coordinates in GdkEvents.
735
736         
737         [Win32] Fix geometry hint handling. Add support for resize
738         increment and base size, and aspect ratio geometry hints. The
739         "gridded geometry" test in testgtk now works beautifully.
740
741         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
742         Turns out this function shouldn't actually ever modify the
743         window's size, just store the hints. (Old code kept for a while
744         inside #if 0.)
745
746         (gdk_window_set_hints): Remove presumably broken code that handles
747         the position hints, this function is obsolete anyway.
748
749         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
750         variables, not used.
751
752         (adjust_drag): New function, used to implement resize increment
753         hints.
754
755         (gdk_event_translate): Handle WM_SIZING, implement resize
756         increment and base size, and aspect ratio geometry hints here. The
757         WM_GETMINMAXINFO handler takes care of the minimum and maximum
758         size hints as before. Fix the WM_GETMINMAXINFO handler to take
759         into account window decorations. No need to modify the
760         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
761         the defaults are fine.
762         
763         * gdk/win32/gdkprivate-win32.h 
764         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
765         _gdk_win32_get_adjusted_client_rect): New helper functions.
766
767 2003-08-07  Matthias Clasen  <maclas@gmx.de>
768
769         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
770         toplevel->have_* flags before iterating over the _NET_WM_STATE 
771         atoms.  (#119217) 
772
773 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
774  
775         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
776         Fix a bug where on theme change, resize/redraw wasn't
777         properly getting queued on toplevel windows. (#116346,
778         Rajkumar Siva)
779  
780         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
781         Fix bug where wrong coordinates were used for toplevel
782         window.
783  
784 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
785
786         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
787         page_num variable (Archit Baweja)
788
789 2003-08-07  Matthias Clasen  <maclas@gmx.de>
790
791         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
792         cope with C libraries with crippled locale support.  (#115293)
793
794 2003-08-07  Hans Breuer  <hans@breuer.org>
795
796         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
797         (only if the new window not known to Gdk) to get proper
798         leave notification, and get rid of the wrong placed 
799         tooltips, bug #102283
800  
801         (gdk_event_translate) : small code reordering to not get
802         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
803         menus, bug #117367
804
805 2003-08-07  Tor Lillqvist  <tml@iki.fi>
806
807         * gdk/gdk.def
808         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
809         missing function, trivially implement.
810
811 2003-08-07  Matthias Clasen  <maclas@gmx.de>
812
813         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
814         rendering.  (#118646, Charles Kerr) 
815
816 2003-08-06  Hans Breuer  <hans@breuer.org>
817
818         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
819         initialize bits to 0 (probably default on NT)
820
821         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
822         now it works as intended ;-)
823
824 2003-08-04  Hans Breuer  <hans@breuer.org>
825
826         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
827         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
828
829         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
830         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
831
832         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
833         against all expectations it is basically ony a call with WM_SETICON
834         needed (the visual effect is there, though colors or mask are
835         still somewhat wrong).
836         * gdk/win32/gdkwindow-win32.h : place to store the HICON
837
838         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
839         pixel drawing as it was fixed at 1999-08-23
840
841         gtk/gtk.def : updated
842
843 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
844
845         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
846         Add a missing break. (#119156, Callum McKenzie)
847
848 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
849
850         * gtk/gtkmenu.c (gtk_menu_position): New positioning
851         algorithm.(#116649)
852
853 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
854
855         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
856         property
857         
858         * gtk/gtkradiotoolbutton.c
859         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
860
861         * gtk/gtkradiotoolbutton.c
862         (gtk_radio_tool_button_new_with_stock_from_widget): make this
863         function take a stock_id.
864
865         * gtk/toolbar: documentation
866
867 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
868
869         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
870         Fix problem where use_xshm was getting set wrong if
871         MIT_SHM wasn't found. (George Lebel)
872
873 2003-08-04  Tor Lillqvist  <tml@iki.fi
874
875         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
876         actually use the passed-in filter list. The function also needs a
877         GdkWindow parameter, as filter functions expect
878         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
879
880 2003-08-03  Matthias Clasen  <maclas@gmx.de>
881
882         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
883         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
884         the term "virtual screen".  (#119030, Tor Lillquist)
885
886 2003-08-02  Matthias Clasen  <maclas@gmx.de>
887
888         * tests/testtext.c (test_init): 
889         * tests/testgtk.c (test_init): 
890         * tests/testdnd.c (test_init): 
891         * demos/pixbuf-init.c (pixbuf_init): 
892         * demos/gtk-demo/main.c (main): Use g_setenv().
893
894         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
895         g_unsetenv(). 
896
897 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
898
899         * configure.in: Requires glib-2.3.0, pango-1.2.0.
900
901         * configure.in: Require Xft version 2,
902         remove code for handling older versions of pango and Xft.
903         Many miscellaneous improvements to X checks
904
905         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
906         a library to a variable, avoiding dups.
907
908         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
909         Always load "fixed"
910
911         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
912         for pangox.
913
914 2003-08-02  Matthias Clasen  <maclas@gmx.de>
915
916         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
917         (palette_drop_handle): 
918         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
919         drops with the wrong format, since the KDE color chooser incorrectly
920         drops application/x-color with format 8.  (#118810)
921
922         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
923         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
924         Accept drops with the wrong format, since the KDE color chooser 
925         incorrectly drops application/x-color with format 8.  (#118810)
926
927 2003-08-02  Tor Lillqvist  <tml@iki.fi>
928
929         Fix gdk/win32 window geometry handling again. The window position
930         in a GDK_CONFIGURE event should be that of the client area, not of
931         the window decorations. (I was confused by the term "window
932         border" in X11. It does *not* mean the window manager
933         decorations. There are no X11-style window borders in Win32.)
934         Also, this time do take the geometry hints into account
935         appropriately when moving windows. Now testgtk's gravity test's
936         move buttons work OK. There are stil problems with taking gravity
937         into account when showing a hidden window.
938
939         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
940         instead of separate fields.
941         
942         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
943         adjust for decorations.
944
945         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
946         adjust_for_gravity_hints): New functions.
947         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
948         above functions, take geometry hints into account.
949         (gdk_window_set_geometry_hints): Size hints specicy client area,
950         not including decorations.
951
952 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
953
954         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
955         return an absolute path (#115590), fix a problem where
956         you could crash the file selector with a looong name
957         by returning a newly allocated buffer.
958
959 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
960
961         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
962         bug in rarely or never hit code path (#118071,
963         Tor Lillqvist)
964
965 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
966
967         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
968         If the check for missing depths, try actually creating pixmaps
969         of the depths to deal with Xinerama not reporting
970         all the depths it should. (#115822)
971
972 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
973
974         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
975         forward KeyRelease events as well as KeyPress events.
976         (#115597)
977
978 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
979  
980         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
981         if argc is 0 as well, instead of leaving it unset.
982         (#116023, Michael Meeks)
983  
984 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
985
986         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
987         default to TRUE; ignore the property when api_mode != NEW_API
988
989 2003-07-31  Matthias Clasen  <maclas@gmx.de>
990
991         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
992         to icon, to pacify gtk-doc.
993
994         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
995         example. 
996
997 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
998
999         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
1000
1001 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1002
1003         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
1004         overflow_item field.
1005
1006 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1007
1008         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
1009         an internal function
1010
1011         * gtk/gtktoolitem.h: remove unused declaration of
1012         _gtk_tool_item_get_drag_window().
1013
1014 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1015
1016         * gtk/gtktoolbutton.[ch]:
1017         (gtk_tool_button_new): swap icon_widget and label arguments to
1018         match BonoboUIToolbarButton.
1019
1020         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
1021
1022 2003-07-30  Matthias Clasen  <maclas@gmx.de>
1023
1024         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
1025         signal docs. 
1026
1027 2003-07-29  Tor Lillqvist  <tml@iki.fi>
1028
1029         Fix for #108007, #112402, #117042: There was confusion in
1030         gdk/win32 at various places whether a window position refers to
1031         the decoration position or the client area position. Also whether
1032         window size includes decorations or not.
1033         
1034         The correct interpretation apparently is that in GDK (like in
1035         X11), a top-level window position means the decoration's position,
1036         but size means the window's inner size (client area size). In the
1037         Win32 API, the window size usually includes the decorations,
1038         though.
1039         
1040         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
1041         #ifdef G_ENABLE_DEBUG.
1042         (handle_configure_event): New function, generates GDK_CONFIGURE
1043         events from WM_SIZE and WM_MOVE messages. Even if no event is
1044         generated because of the event mask, still set the private
1045         position and size fields. Calculate position and size correctly.
1046         (gdk_event_translate): Call handle_configure_event().
1047
1048         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
1049
1050         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
1051         macros. Cosmetic debugging output changes.
1052         (SafeAdjustWindowRectEx): Remove. If an application wants to
1053         locate a window outside of the screen, it's not GDK's business to
1054         prevent it. And anyway, with multiple monitors, negative
1055         coordinates are perfectly normal.
1056         (gdk_window_new): Adjust the window size for decorations after
1057         _gdk_window_init_position() has done its job. (But the big window
1058         code currently is presumably broken on Win32 anyway.)
1059         (gdk_window_move): The position passed in is supposed to be that
1060         of the window border, so don't need to adjust for decorations.
1061         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
1062
1063 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1064
1065         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
1066         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
1067         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
1068         gtk_toolbar_append_space, gtk_toolbar_insert_item,
1069         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
1070         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
1071         gtk_toolbar_new, gtk_toolbar_prepend_item):
1072
1073         Move documentation inline from template files.
1074
1075         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
1076         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
1077         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
1078         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
1079         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
1080         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
1081         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
1082
1083         Copy documentation from stable that was added after the EggToolbar
1084         branched.
1085
1086         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
1087
1088 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1089
1090         * gtk+/docs/: Commit autogenerated changes, so patches will make
1091         sense.
1092
1093 2003-07-27  Tor Lillqvist  <tml@iki.fi>
1094
1095         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
1096         the keyboard state returned by GetKeyboardState() doesn't
1097         distinguish between the left and right Control and Alt keys. Thus
1098         we cannot detect AltGr (which is supposed to be left Control +
1099         right Alt) the same way as on NT-based systems, but have to accept
1100         either Control + either Alt as AltGr.
1101
1102 2003-07-27  Matthias Clasen  <maclas@gmx.de>
1103
1104         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
1105         Fix function name in warning message.  (#118156, Tim-Philipp
1106         Mller)
1107
1108         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
1109         is-expander and is-expanded are boolean properties, not ints.
1110         (#118359, Josh Parsons)
1111
1112 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1113
1114         * gtk/gtkimagemenuitem.c
1115         (gtk_image_menu_item_toggle_size_request): don't request
1116         toggle_space when the image width is 0.
1117
1118 2003-07-25  Tor Lillqvist  <tml@iki.fi>
1119
1120         * gdk/win32/gdkprivate-win32.h
1121         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
1122         and _gdk_keyboard_has_altgr.
1123         
1124         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
1125         ones detailled here.
1126
1127         Code that has been ifdeffed out for a long time removed. Remove
1128         some really old doc comments that were left behind for some public
1129         functions, the official ones are in the X11 backend anyway. Change
1130         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
1131         multi-line boolean expressions to have the operators at ends of
1132         lines.
1133
1134         As mouse capture with SetCapture() indeed seems to work OK, no
1135         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
1136
1137         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
1138         needed at some time, and things seem to work fine now without
1139         (knock on wood).
1140
1141         Ifdef out the search for some Latin locale keyboard layout being
1142         loaded. Not used currently, but might be needed after all, if we
1143         decide that we want to be able to generate ASCII control character
1144         events with a non-Latin keyboard.
1145
1146         (assign_object): New helper function, handles the g_object_ref()
1147         and unref() calls when assigning GObject pointers.
1148                 
1149         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
1150         enter event when the pointer has moved to an ancestor window. Was
1151         left out by mistake.
1152
1153         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
1154
1155         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
1156         functionality, using ClipCursor().
1157                 
1158         (find_window_for_mouse_event): Splice part of code into new
1159         function find_real_window_for_grabbed_mouse_event().
1160
1161         (fixup_event, append_event, apply_filters): New functions, code
1162         refactored out from elsewhere.
1163
1164         (synthesize_enter_or_leave_event, synthesize_leave_event,
1165         synthesize_enter_event,
1166         synthesize_leave_events,synthesize_enter_events): Also take a
1167         GdkCrossingMode parameter, in preparation to generating
1168         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
1169
1170         (fixup_event, append_event, fill_key_event_string): New functions,
1171         code refactoring.
1172
1173         (vk_from_char, build_keypress_event, build_keyrelease_event):
1174         Removed as part of dropping WM_CHAR handling.
1175
1176         (build_key_event_state,gdk_event_translate): Call
1177         GetKeyboardState(), once, for each keyboard message, instead of
1178         several calls to GetKeyState() here and there.
1179
1180         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
1181         at it, do some major refactoring, and some fixes for potential
1182         problems noticed while going through the code.
1183
1184         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
1185         WM_KEYUP. Don't need the state variables related to whether to
1186         wait for WM_CHAR or not, and whether the current key is
1187         AltGr. Remove lots of complexity. Thus don't need the
1188         use_ime_composition flag.
1189
1190         Not handling WM_CHAR means dead key handling will have to be taken
1191         care of by GTK, but that seems to work fine, so no worry.
1192
1193         Another side-effect is that Alt+keypad digits don't work any
1194         longer, but it's better to learn to use GTK's ISO14755 support is
1195         anyway.
1196
1197         Be more careful in checking whether AltGr is involved. Only
1198         attempt to handle it if the keyboard actually has it. And
1199         explicitly check for *left* Control plus *right* Alt being
1200         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
1201         chars.
1202
1203         Handle keys using similar code as in the X11 backend. As we have
1204         built a keymap in gdkkeys-win32.c anyway, use it by calling
1205         gdk_keymap_translate_keyboard_state() to look up the keysym from
1206         the virtual key code and keyboard state. Build the key event
1207         string in exactly the same way as the X11 backend.
1208
1209         If an IME is being used, don't generate GDK events for keys
1210         between receiving WM_IME_STARTCOMPOSITION and
1211         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
1212         
1213         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
1214         the IME, not just the first one.
1215
1216         gdk_event_translate() is still quite complex, could split the
1217         message handler cases out into separate functions.
1218
1219         On mouse events, when the mouse is grabbed, use
1220         find_real_window_for_grabbed_mouse_event() in order to be able to
1221         generate correct crossing events.
1222         
1223         No longer take a pre-allocated GdkEvent as parameter. Instead,
1224         allocate events as needed and append them to the queue. (This is
1225         different from how gdk_event_translate() in the X11 backend
1226         works.) This change made the code much clearer, especially in the
1227         cases where we have to generate several GDK events for one Windows
1228         message.  Return FALSE if DefWindowProc() should be called, TRUE
1229         if not. If DefWindowProc() should not be called, also return the
1230         value to be returned from the window procedure.
1231
1232         (Previously, the interaction with gdk_event_translate()'s caller
1233         was much more complex, when we had to indicate whether the
1234         already-queued event should be left in the queue or removed, and
1235         in addition also had to indicate whether to call DefWindowProc()
1236         or not, and what value to return from the window procedure if
1237         not.)
1238
1239         Don't use a separate "private" variable required to be pointing to
1240         the GdkWindowObject of the "window" variable at all times. Just
1241         use casts, even if looks a bit uglier.
1242
1243         Notice destroyed windows as early as possible, and break out of
1244         the messsage switch.
1245
1246         Use _gdk_pointer_root as current_window when the pointer is
1247         outside GDK's top-level windows.
1248         
1249         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
1250         appropriate, based on ImmIsIME().
1251         
1252         (gdk_event_translate, gdk_event_send_client_message_for_display,
1253         gdk_screen_broadcast_client_message): Implement client messages.
1254         Use a registered Windows message to pass GDK client messages. Note
1255         that the amount of user data is restricted to four bytes, as it is
1256         carried in the LPARAM. (The WPARAM is used for the message type
1257         "atom".)
1258         
1259         (real_window_procedure): Adapt for new gdk_event_translate()
1260         interface.
1261
1262         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
1263         _gdk_input_locale_is_ime initially.
1264
1265         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
1266         of g_colormap_ref()/unref().
1267
1268         (gdk_window_new): Made code a bit more like the X11 one, pretend
1269         to handle screens (although we just have one for now).
1270
1271         * gdk/x11/gdkevents-x11.c
1272         (gdk_event_send_client_message_for_display,
1273         gdk_screen_broadcast_client_message): Document the user data
1274         limitation on Win32.
1275
1276         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
1277         and leave notify detail output.
1278
1279         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
1280         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
1281         for those, so that the GtkIMContextCimple compose tables will
1282         work. Deduce if the keyboard layout has the AltGr key, and set the
1283         above flag accordingly.
1284
1285 2003-07-26  Matthias Clasen  <maclas@gmx.de>
1286
1287         * gtk/gtkwidget.c: Document DND signals.
1288
1289 2003-07-24  Matthias Clasen  <maclas@gmx.de>
1290
1291         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
1292         insensitive when editing isn't possible.  (#118150)
1293
1294 2003-07-23  Matthias Clasen  <maclas@gmx.de>
1295
1296         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
1297         spinbutton wrap.  (#118097, John Darrington)
1298
1299         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
1300
1301 2003-07-20  Hans Breuer  <hans@breuer.org>
1302
1303         * makefile.msc : new file to build it all
1304         * Makefile.am : ... added to EXTRA_DIST
1305
1306         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
1307           gtk/makefile.msc.in tests/makefile.msc : updated
1308
1309         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
1310         functions
1311
1312         * gtk/gtkbbox.c : use g_return_val_if_fail() if
1313         there is a value to return
1314
1315         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
1316         static correctness
1317
1318         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
1319         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
1320
1321         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
1322
1323         * gtk/gtkimmulticontext.c : use gtkprivate.h
1324
1325         * gtk/stock-icons/stock_color_picker_25.png
1326           gtk/stock-icons/stock_jump_to_rtl_16.png
1327           gtk/stock-icons/stock_jump_to_rtl_24.png
1328           gtk/stock-icons/stock_redo_rtl_16.png
1329           gtk/stock-icons/stock_redo_rtl_24.png
1330           gtk/stock-icons/stock_undelete_rtl_16.png
1331           gtk/stock-icons/stock_undelete_rtl_24.png
1332           gtk/stock-icons/stock_undo_rtl_16.png :
1333           gtk/stock-icons/stock_undo_rtl_24.png :
1334         readded as binary
1335
1336 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1337
1338         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
1339         leftover request of {xy}thickness
1340
1341 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1342
1343         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
1344         attempt to add a NULL icon to the box.
1345
1346 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1347
1348         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
1349         on focus in/out.
1350
1351 2003-07-19  Matthias Clasen  <maclas@gmx.de>
1352
1353         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
1354         * gtk/gtkiconfactory.c (get_default_icons): Add
1355         stock_dialog_authentication_48.  (#65765) 
1356         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
1357         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
1358
1359         * gtk/gtkbbox.h: 
1360         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
1361         function. (#64562) 
1362
1363 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1364
1365         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
1366         declaration
1367
1368         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
1369         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
1370         instead of full draws.
1371
1372 2003-07-18  Matthias Clasen  <maclas@gmx.de>
1373
1374         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
1375
1376         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
1377         signal, move_viewport. 
1378         (gtk_text_view_move_viewport): New function which implements the
1379         move_viewport functionality. 
1380         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
1381         the viewport. (#78669) 
1382
1383         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
1384         move_viewport argument. 
1385
1386         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
1387         property.  (#111779) 
1388
1389         * gtk/gtkwindow.h: 
1390         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
1391
1392         * gtk/gtkmessagedialog.h:
1393         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
1394         (#65501, Sebastian Rittau)
1395
1396 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1397
1398         * gtk/gtktextview.c (changed_handler): use
1399         gtk_widget_queue_resize_noredraw().
1400
1401 2003-07-16  Jody Goldberg <jody@gnome.org>
1402
1403         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
1404
1405 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1406
1407         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
1408         API. 
1409
1410 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1411
1412         By popular request give toolbuttons a border.
1413         
1414         * gtk/gtktoolitem.c
1415         (gtk_tool_item_size_allocate):
1416         (gtk_tool_item_size_request): don't request and allocate a border
1417         around the child
1418
1419         * gtk/gtktoolbutton.c 
1420         (gtk_tool_button_size_allocate):
1421         (gtk_tool_button_size_request): remove these functions
1422
1423         * gtk/gtktoolbar.c 
1424         (gtk_toolbar_size_request):
1425         (gtk_toolbar_size_allocate): request and allocate a border if we
1426         have a shadow.
1427
1428 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
1429
1430         Merged from stable.
1431
1432         Fixes issues pointed out by Morten Welinder in #115140.
1433
1434         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
1435         (do_validate_rows): update validated_area with a logic OR instead
1436         of a bitwise OR,
1437         (validate_rows_handler): make the if statement match the one in
1438         validate_rows(), so we don't leak the timeout.
1439
1440 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
1441
1442         Merged from stable.
1443
1444         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
1445         should only grab focus back if the "cell_editable" widget still
1446         has focus. (Fixes #110104, testcase provided by Marco Pesenti
1447         Gritti).
1448
1449 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
1450
1451         Merged from stable.
1452
1453         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
1454         Don't set attr.event_mask twice, those things were meant to be
1455         ORred. (#115139, pointed out by Morten Welinder).
1456
1457 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
1458
1459         Merged from stable.
1460
1461         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
1462         if needed. (Fixes #115869, reported by Michael Natterer).
1463
1464 2003-07-15  Matthias Clasen  <maclas@gmx.de>
1465
1466         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
1467         Fight against gtk-doc stupidity.
1468
1469 2003-07-13  Matthias Clasen  <maclas@gmx.de>
1470
1471         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
1472         targets, to pacify gtk-doc.
1473
1474 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1475
1476         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
1477         label_text, label_widget and icon_widget. (#117312, 
1478         Christian Persch)
1479         
1480 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1481
1482         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
1483         "horizontal-offset" and "vertical-offset" that determines the
1484         position of the menu when it is a submenu. 
1485
1486         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
1487         submenus according to new vertical- and horizontal-offset
1488         properties.
1489
1490 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
1491
1492         Merged from stable.
1493
1494         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
1495         case drags to "0", scroll to the top after dropping. (Fixes #94968,
1496         reported by Alp Toker).
1497
1498 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
1499
1500         Merged from stable.
1501
1502         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
1503         code (#115784, Owen Taylor).
1504
1505 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
1506
1507         Merged from stable.
1508
1509         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
1510         free the old text and extra_attrs *after* we parsed the new
1511         markup string. (Fixes #114485, reported by Owen Taylor).
1512
1513 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
1514
1515         Merged from stable.
1516
1517         Fixes #113904, testcase provided by Rene Seindal.
1518
1519         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
1520         pressed_button to -1 when a row has been activated,
1521         (gtk_tree_view_motion_bin_window): only start a drag if there's
1522         a button being pressed.
1523
1524 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
1525
1526         Merged from stable.
1527
1528         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
1529         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
1530         to avoid a roundtrip (#110272, Owen Taylor).
1531
1532 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
1533
1534         Merged from stable.
1535
1536         This patch really really fixes scrolling. Related bugs: #81627,
1537         testcase provided by Timo Sirainen, #111500, testcase provided by
1538         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
1539
1540         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
1541         which is equal to the lower border of the window means scrolling
1542         to an invisible row, always update the dy when scrolling to an
1543         invisible row, corrected area_above/below calculations for
1544         invisible rows, when walking the tree correct the size
1545         subtracted for invalidated rows, fix wrong logic in comment.
1546
1547 2003-07-11  Matthias Clasen  <maclas@gmx.de>
1548
1549         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
1550         mime_types.  (#117219, Steve Chaplin)
1551
1552 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
1553
1554         * gdk/x11/gdkevents-x11.c (get_real_window)
1555         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
1556         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
1557         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
1558         Don't assume that all events start with XEventAny - Xkb events
1559         don't! (#105745). So, only do that for core events, and for
1560         non-core events, add a system for registering event types
1561         that start with XEventAny.
1562
1563         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
1564         Check to see if the result of gdk_window_lookup_for_display()
1565         is actually a window.
1566
1567 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
1568
1569         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
1570         check a silent assert, so it follows the g_free() behaviour.
1571
1572 2003-07-11  Matthias Clasen  <maclas@gmx.de>
1573
1574         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
1575         vertically.  (#109823, Joe Shaw)
1576
1577 2003-07-11  Morten Welinder  <terra@gnome.org>
1578
1579         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
1580         access error.  (#69436)
1581
1582 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
1583
1584         Landing GtkTreeModelFilter and the completion code. (Test program
1585         and documentation will follow next week).
1586
1587         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
1588         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
1589
1590         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
1591         necessary code to hook up completion.
1592
1593         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
1594         GtkCellLayout interface.
1595
1596         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
1597
1598         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
1599         source files.
1600
1601 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
1602
1603         Merge from stable.
1604
1605         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
1606         directly return from ->window_at_pointer, but set win_x and win_y
1607         first if needed. (Fixes #110166, reported by Arno Charlet).
1608
1609         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
1610         function to accept GdkDrawables and not just GdkWindows. This was
1611         already done in some other functions a while back, but this patch
1612         got lost for some reason.
1613
1614 2003-07-09  Matthias Clasen  <maclas@gmx.de>
1615
1616         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
1617         direction when sorting children.  (#116540, Soeren Sandmann)
1618
1619 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
1620
1621         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
1622         Change _gdk_x11_send_xevent_async() to 
1623         _gdk_x11_send_client_message_async() avoid using Xlib
1624         internals that are different on Solaris. 
1625         (#116917, Morten Welinder)
1626
1627 2003-07-08  Matthias Clasen  <maclas@gmx.de>
1628
1629         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
1630         (#116501, Doug Quale)
1631
1632 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1633
1634         * gtk/gtktoggletoolbutton.h: remove strange #define
1635         * gtk/gtktoolbutton.h: fix cut'n'paste error
1636         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
1637         private data
1638         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
1639         private data instead of g_new0()
1640         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
1641         instance private data
1642
1643 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1644
1645         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
1646         for INPUT_ONLY window
1647         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
1648         * gtk/gtknotebook.c (gtk_notebook_realize): same
1649         * gtk/gtkexpander.c (gtk_expander_realize): same
1650         * gtk/gtkrange.c (gtk_range_realize): same
1651
1652         Fix #116303
1653
1654 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1655
1656         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
1657         when detail is "menuitem". With the new menu look is isn't needed
1658         anymore.
1659
1660         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
1661         resize here, so that tool items will get a chance to relayout
1662         themselves based on the toolbar configuration.
1663
1664         change DEFAULT_SPACE_SIZE to 4 instead of 5
1665
1666         * gtk/gtktoolbar.c 
1667         Get rid of "!GTK_BIN (item)->child means separator". Separators
1668         are widgets in their own right
1669
1670         change DEFAULT_SPACE_SIZE to 4 instead of 5
1671         
1672         (get_space_size): remove this function
1673         (toolbar_item_is_homogeneous): new function
1674
1675         * gtk/gtkseparatortoolitem.c
1676         (gtk_separator_tool_item_size_request): new function.
1677
1678 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1679
1680         * gtk/gtktoggletoolbutton.h: use private data, add new
1681         internal function _gtk_toggle_tool_button_get_button()
1682
1683         * gtk/gtktoolbutton.h: move to private data
1684
1685         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
1686         private data.
1687
1688 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1689
1690         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
1691         type check, (#116947, Krasimir Angelov)
1692
1693         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
1694         
1695         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
1696         data. Not instance private data yet, because of bug 116921.
1697
1698         * gtk/gtktoolitem.h: new accessors:
1699                 gtk_tool_item_get_homogeneous ()
1700                 gtk_tool_item_get_expand ()
1701                 gtk_tool_item_get_pack_end ()
1702                 gtk_tool_item_get_use_drag_window ()
1703
1704 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1705
1706         * gtk/gtkcellrenderertext.c
1707         (gtk_cell_renderer_text_class_init): remove accidentally committed
1708         debugging spew
1709
1710         * gtk/gtktoolbar.c
1711         (gtk_toolbar_paint_space_line): remove this function
1712         (gtk_toolbar_expose): always propagate expose, even if the item is
1713         a separator item
1714
1715         * gtk/gtkseparatortoolitem.c
1716         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
1717         (get_space_size): new function.
1718         (get_space_style): new function
1719
1720 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
1721
1722         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
1723         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
1724         of GDK_POINTER_MOTION_HINT_MASK.
1725
1726         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
1727         of the drag into an idle as a superior form of 
1728         expose compression.
1729
1730         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
1731         creation here, so that we have an icon at the start
1732         of the drag (e.g., when retrieving the window cache
1733         information.)
1734
1735 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1736
1737         * docs/widget_geometry.txt: better drawing of GtkMenuItem
1738         * docs/widget_geometry.txt: add notes about GtkMenu
1739         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
1740
1741 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1742
1743         * gtk/gtkmenu.c: add vertical_padding style property.
1744         
1745         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
1746         arrow_spacing and horizontal_padding. Also center separators and
1747         make them a bit taller.
1748
1749         * gtk/*menuitem.c: use new style properties.
1750         
1751         * docs/widget_geometry.txt: Add note about GtkMenuItem
1752
1753         * gtk/gtkstyle.c 
1754         (gtk_default_draw_vline, gtk_default_draw_hline):
1755         fix +/-1 errors. 
1756
1757         (gtk_default_draw_shadow): draw a black border around menus.
1758
1759         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
1760         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
1761         x2 and y1, y2 respectively, not x, width and y, height).
1762
1763 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
1764
1765         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
1766         all the atoms in the target list at once.
1767
1768         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
1769         Local drag short-circuit.
1770
1771         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
1772         local case, poke the actions in directly instead of
1773         going through xdnd_set_actions.
1774
1775         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
1776         the local case.
1777
1778         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
1779         XSelectInput()/add a filter if the drag is local.
1780
1781         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
1782         Simplify handling of "XdndSelection".
1783
1784         * gdk/x11/gdkevents-x11.c
1785         (gdk_event_send_client_message_to_all_recurse): Somehow,  
1786         a WM_STATE => _NET_WM_STATE change hand been made here.
1787
1788         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
1789         xatom_names, not atom_names.
1790
1791         * tests/testdnd.c (target_drag_motion): Make the trashcan
1792         open again. (Got lost in deprecation cleanup.)
1793
1794 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
1795
1796         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
1797         earlier, so we don't get a big pile of uncompressed
1798         motion events before the grab takes effect.
1799
1800         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
1801         gdk_window_process_all_updates() so that the area
1802         we are dragging over gets a change to redraw.
1803
1804         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
1805         gdk_window_get_position(), not gdk_window_get_origin().
1806
1807         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
1808         gdkdisplay-x11.h: use XShapeQueryExtension to 
1809         avoid duplicate XQueryExtension when we actually
1810         use it. Remove unnecessary caching in GdkDisplayX11.
1811
1812 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
1813
1814         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
1815         Function to get a range of information about all the
1816         children of a window in a single pass.
1817
1818         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
1819         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
1820         _gdk_x11_get_window_child_info() to greatly reduce
1821         the number of roundtrips.
1822
1823 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
1824
1825         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
1826         a function to XSendEvent() and call a calback on
1827         failure/success.
1828
1829         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
1830         messages to the same process, use _gdk_send_xevent_async().
1831
1832 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
1833
1834         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
1835         toplevel-specific pieces of GdkWindowImplX11 into
1836         a separate GdkToplevelX11 structure.
1837
1838 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
1839
1840         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
1841         some leftover fields.
1842
1843 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
1844
1845         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
1846         Use asynchronously _gdk_x11_set_input_focus_safe
1847         to avoid having to trap errors and XSync().
1848
1849         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
1850         _gdk_x11_set_input_focus_safe() here as well.
1851
1852         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
1853         Rework handling of property notifies on _NET_WM_STATE
1854         so that we ignore _NET_WM_DESKTOP notifies unless we
1855         really care.
1856
1857         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
1858         XShmQueryExtension() rather than XQueryExtension() to
1859         avoid extra rountrip.
1860
1861         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
1862         Remove unused call to XGetWindowAttributes()
1863         
1864         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
1865         unused call to XGetKeyboardControl().
1866
1867         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
1868         Add (#99571)
1869
1870         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
1871         No-op implementations of gdk_display_flush().
1872
1873         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
1874         gdk_display_flush() rather than gdk_flush() to avoid
1875         XSync().
1876         
1877         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
1878         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
1879         so that we don't have to get the property back from the server.
1880
1881         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
1882         the serial of when we map a toplevel to allow optimizing
1883         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
1884
1885         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
1886         XTranslateCoordinates() for override-redirect windows.
1887
1888 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
1889
1890         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
1891         about setting window group after the window is mapped from docs
1892         - nothing the ICCCM forbids that.
1893
1894         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
1895         Fix g_return_val_if_fail() in void return function.
1896
1897         * configure.in: Fix misplaced comma that was resulting
1898         in XShm always being disabled.
1899
1900 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1901
1902         * tests/stresstest-toolbar: remove this accidentally committed
1903         file.
1904         
1905         * tests/stresstest-toolbar.c: really add this new test
1906
1907 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1908
1909         * tests/stresstest-toolbar.c: new test for removing items
1910         
1911         * tests/testtoolbar.c: add a popup menu
1912
1913         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
1914           assert widget->parent == container when the container is a
1915           toolbar.
1916
1917         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
1918         simpler. Also make correct.
1919
1920         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
1921         popup_context_menu a boolean handled signal.
1922
1923 2003-07-04  Tor Lillqvist  <tml@iki.fi>
1924
1925         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
1926         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
1927         the width and height of the bounding rectangle only after the
1928         minumum x and y have been found, and need a separate loop for
1929         it. Thanks to Bruce Hochstetler for providing a sample program
1930         exhibiting the bug.
1931
1932 2003-07-03  Tor Lillqvist  <tml@iki.fi>
1933
1934         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
1935         (#116537, Peter Zelezny)
1936
1937 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1938
1939         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
1940         fix warning. Assign something to old_value to quiet gcc
1941
1942         * gtk/gtkcalendar.c 
1943         (start_spinning): gtk_timeout_add->g_timeout_add
1944
1945         * gtk/gtkicontheme.c 
1946         (theme_lookup_icon): Make it compile (remove double semicolon)
1947
1948         * gtk/gtktoolbutton.c
1949         (gtk_tool_button_class_init): Long comment about properties.
1950         (gtk_tool_button_class_init): Improve text for "use_underline"
1951         property
1952         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
1953         on whether the passed-in label has use_mnemonic set
1954         (gtk_tool_button_create_menu_proxy): Split image cloning out in
1955         new function. Make that function also handle image with pixbuf
1956         storage.
1957         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
1958         instead of gtk_container_remove().
1959         (gtk_tool_button_construct_contents): Fix eliding bug
1960
1961         * gtk/gtktoolbar.c
1962         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
1963         by Morten Welinder
1964         (gtk_toolbar_button_press): Make popup_context_menu signal provide
1965         coordinates and button number
1966
1967         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
1968
1969         * tests/apple-red.png: new file
1970
1971 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
1972          
1973         * gtk/gtkicontheme.[ch]: Implement a loader for
1974         named themed icon based on from gnome-desktop library
1975         by Alex Larsson.
1976
1977         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
1978         from gnome-desktop.
1979
1980         * gtk/gtkiconfactory.[ch]: Add
1981         gtk_icon_source_set/get_icon_name() to allow stock icons
1982         to be based off of named theme icons.
1983
1984         * gtk/gtkiconfactory.c: Rework sources so that the source
1985         is *either* a pixbuf, or a filename, or an icon name,
1986         instead of the pixbuf/filename mix it was before. Put a
1987         workaround for get_pixbuf() so that it can return the
1988         filename pixbuf, e.g, for render_icon().
1989
1990         * gtk/gtkiconfactory.c: Make the default setup use
1991         themed icons, and add builtin icons to the default
1992         icon theme for all the standard pixbufs, so we
1993         don't rely on actually having an icon theme on disk.
1994
1995         * gtk/gtkrc.c: Add support for @"icon-name" to specify
1996         a themed icon for a stock icon source.
1997
1998         * tests/Makefile.am test/testicontheme.c: Add a test
1999         program from gnome-desktop.
2000
2001         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
2002         Net/IconThemeName / gtk-icon-theme-name setting.
2003
2004         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
2005         update the icon cache serial so we don't continually
2006         think we are out-of-date.
2007
2008         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
2009         to ::direction_set that should have been to ::direction-changed
2010
2011 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
2012
2013         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
2014         style to the widget.
2015
2016 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2017
2018         * gtk/gtk.h: Add new toolbar headers
2019
2020         * tests/testtoolbar.c: new file
2021
2022         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
2023
2024         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
2025
2026 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2027
2028         * gtk/gtktoolbar.c:
2029         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
2030         inside a for loop (pointed out by Morten Welinder).
2031         (gtk_toolbar_focus_home_or_end): Minor formatting change
2032
2033         Comments from Owen:
2034
2035         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
2036         gtk_toolbar_elide_underscores instead.
2037
2038         * gtk/gtktoolbar.c: rename signal from focus_ends to
2039         focus_home_or_end.
2040         (_gtk_toolbar_elide_underscores): export this as an internal
2041         function.
2042         (gtk_toolbar_move_focus): add comment explaining difference to
2043         gtk_toolbar_focus();
2044         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
2045         TAB_BACKWARD focus the right widgets in RTL mode
2046
2047         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
2048         "label" and "icon" parameters
2049
2050         * gtk/gtktoolbutton.[ch]: remove icon_set property.
2051
2052 2003-07-01  Matthias Clasen  <maclas@gmx.de>
2053
2054         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
2055         (116364, Morten Welinder) 
2056
2057         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
2058         corresponding dialogs.
2059
2060         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
2061         gtkcolorbutton.h.  
2062         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
2063
2064         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
2065
2066         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
2067
2068         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
2069
2070         * gtk/gtkexpander.c: Small additions to the docs. 
2071
2072 2003-07-01  Tor Lillqvist  <tml@iki.fi>
2073
2074         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
2075         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
2076
2077 2003-07-01  Matthias Clasen  <maclas@gmx.de>
2078
2079         * configure.in: Check for Xcursor.
2080         
2081         * gdk/x11/gdkcursor-x11.c:
2082         * gdk/gdkdisplay.h: 
2083         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
2084         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
2085         gdk_display_supports_cursor_color(),
2086         gdk_display_get_default_cursor_size() and 
2087         gdk_display_get_maximal_cursor_size().  (#69436)
2088
2089 2003-06-30  Tor Lillqvist  <tml@iki.fi>
2090
2091         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
2092         callback proc for EnumWindows().
2093         (gdk_drag_find_window_for_screen): Actually take the drag_window
2094         argument into account: Instead of using WindowFromPoint(), use
2095         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
2096         M Brown, Herman Bloggs)
2097
2098         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
2099         gdk_window_ref()/unref() calls with g_object_ref()/unref().
2100         Consistently use %p format in debugging output of pointers and
2101         HANDLEs.
2102
2103 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
2104
2105         * gtk/gtkexpander.h: kill some stray characters
2106         breaking the build.
2107
2108 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
2109
2110         Add GtkExpander. See discussion in bug #60553.
2111
2112         * gtk/gtkexpander.[ch]: add.
2113         
2114         * gtk/Makefile.am: build gtk-expander.[ch].
2115         
2116         * docs/widget_geometry.txt: add info on the layout
2117         of GtkExpander.
2118
2119 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2120
2121         * gtkradiotoolbutton.c:         new file
2122         * gtkradiotoolbutton.h:            "
2123         * gtktoggletoolbutton.c:           "
2124         * gtktoggletoolbutton.h:           "
2125         * gtktoolbutton.c:                 "
2126         * gtktoolbutton.h:                 "
2127         * gtktoolitem.c:                   "
2128         * gtktoolitem.h:                   "
2129         * gtktoolbar.c: many changes
2130         * gtktoolbar.h: many changes
2131         * gtkseparatortoolitem.c:       new file
2132         * gtkseparatortoolitem.h           "
2133
2134         New toolbar.
2135         
2136         - Items on a toolbar are now separate widgets, instances of a
2137           subclass of GtkToolItem.
2138
2139         - Items there aren't room for on the toolbar are unmapped, and an
2140           overflow menu with a proxy menu item is added instead.
2141
2142         - The toolbar is keyboard navigatable. Press TAB to focus the
2143           first item, then use arrow keys and Ctrl TAB to move around the
2144           toolbar. TAB moves focus out of the toolbar.
2145
2146         - Bascially all of the old toolbar API is deprecated in favor of
2147           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
2148
2149         - The toolbar is backwards compatible with the old toolbar.
2150
2151 2003-06-29  Matthias Clasen  <maclas@gmx.de>
2152
2153         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
2154         from docs, some more formatting fixes. 
2155
2156 2003-06-28  Tor Lillqvist  <tml@iki.fi>
2157
2158         Fix for #111028, thanks to J. Ali Harlow, who writes:
2159         I found that the GdkPixmap->GdkImage reference really isn't
2160         important. It's only really there to have somewhere convenient to
2161         store the location of the pixel data in the pixmap and as an easy
2162         way of accessing the dimensions of that data. I have therefore put
2163         together a fix which removes this reference entirely which seems
2164         to solve the problem.
2165
2166         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
2167         Instead of a pointer to a GdkImage, keep a pointer to the pixels
2168         directly.
2169
2170         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
2171         (_gdk_win32_new_image): New function, replacing the above. Creates
2172         a GdkImage without any associated GdkPixmap.
2173         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
2174
2175         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
2176
2177         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
2178         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
2179         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
2180         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
2181         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
2182         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
2183         Corresponding changes.
2184
2185 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2186
2187         * gtk/gtktreeviewcolumn.c
2188         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
2189         and "is_expanded" if the new value is different fromt he old one.
2190
2191 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
2192
2193         * docs/faq/gtk-faq.sgml: Fix typos. Update
2194         thread example I missed yesterday.
2195
2196 2003-06-24  Matthias Clasen  <maclas@gmx.de>
2197
2198         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
2199         shadow_type. 
2200
2201         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
2202         (gtk_widget_class_list_style_properties): Use same parameter names as in  
2203         header (to silence gtk-doc).
2204
2205         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
2206
2207 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
2208
2209         * docs/faq/gtk-faq.sgml: Thread support updates
2210         from Owen. Various suggestions from Steve Chaplin.
2211
2212 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
2213
2214         * po/id.po: Updated Indonesian translation
2215
2216 2003-06-21  Tor Lillqvist  <tml@iki.fi>
2217
2218         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
2219         emulating X11's automatic grab on button down, pass owner_events
2220         as FALSE. According to the XLib spec, automatic grabs use True for
2221         owner_events when OwnerGrabButtonMask is selected, and I don't see
2222         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
2223         (find_window_for_pointer_event): Improve debugging output.
2224
2225 2003-06-17  Tor Lillqvist  <tml@iki.fi>
2226
2227         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
2228         subdirectory, where libtool 1.5 installs them.
2229
2230         * README.win32: Point to FSF's binary Win32 distribution of
2231         gettext-runtime.
2232
2233 2003-06-17  Matthias Clasen  <maclas@gmx.de>
2234
2235         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
2236         macros to check for XML catalog contents and path, borrowed from
2237         gtk-doc. 
2238         * configure.in: New option --enable-man to enable regeneration of
2239         man pages from Docbook, if the necessary tools are found.
2240
2241 2003-06-15  Matthias Clasen  <maclas@gmx.de>
2242
2243         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
2244         * gtk/gtknotebook.c (gtk_notebook_class_init): 
2245         * gtk/gtkalignment.c (gtk_alignment_class_init): 
2246         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
2247         as 2.4 additions.
2248
2249         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
2250         to the proper place, immediately before the g_signal_new() call.
2251
2252         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
2253         more obvious.  (#115122, Jeff Franks)
2254
2255 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
2256
2257         * gtk/gtkwidget.c: (event_window_is_still_viewable):
2258         Special case pixmaps. (#114880)
2259         
2260 2003-06-12  Matthias Clasen  <maclas@gmx.de>
2261
2262         * gtk/gtkwidget.c: Document child-notify and drag-data-received
2263         signals. Owen, we need to figure out where the best place for
2264         these comments in the source is. I currently put them in front of
2265         the signals enum.
2266
2267 2003-06-11  Matthias Clasen  <maclas@gmx.de>
2268
2269         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
2270
2271 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
2272
2273         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2274         silly typo fix. s/seperator/separator/. This gets rid of the
2275         assert spam when using TreeView.
2276
2277 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2278
2279         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
2280         function for XIM instantiate callback.
2281         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
2282         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
2283         actually made.
2284         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
2285         for XIM's destroy callback.
2286         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
2287         is set or not - if it's not set, call xim_info_try_im() to try to
2288         initiaize it.
2289         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
2290         filter_key_release flag of the context.
2291         * modules/input/gtkimcontextxim.c (get_ic_real): removed
2292         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
2293         code from the removed get_ic_real().
2294
2295         For XIM instantiation, destruction and re-instantiation. With
2296         this, Gtk+ apps will be able to connect or reconnect to the XIM,
2297         when it starts after the apps, or when the XIM gets lost and recover.
2298         (#113099, #107782).
2299
2300 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
2301
2302         Merged from stable.
2303
2304         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
2305         check if width is !null, not *width. Doh.
2306
2307 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
2308
2309         Merged from stable.
2310
2311         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2312         Remove the weird dx logic, get all cell_area and background_area
2313         calculations right. Not sure what was up with it before. (Fixes
2314         #110989, testcase from Vasco Alexandre da Silva Costa).
2315
2316 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2317
2318         * tests/testgtk.c: Make it compile with C89 compilers
2319
2320 2003-06-10  Matthias Clasen  <maclas@gmx.de>
2321
2322         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
2323         property "overwrite".
2324         (gtk_text_view_[gs]et_property): Handle "overwrite".
2325         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
2326         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
2327
2328 2003-06-09  Matthias Clasen  <maclas@gmx.de>
2329
2330         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
2331         properties "resize" and "shrink".
2332         (gtk_paned_[gs]et_child_property): Implementations of 
2333         GtkContainer::[gs]et_child_property.  
2334         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
2335         paned child properties instead of remove/add hacks.  (#114667, 
2336         Soeren Sandmann) 
2337
2338 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
2339
2340         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
2341         out event->window test - it wasn't needed because
2342         of the call to get_widget_coordinates().
2343
2344         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
2345         call to gtk_widget_grab_focus() when not clicking on
2346         any tabs. (Real fix for #114534)
2347
2348 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
2349
2350         * tests/testdnd.c: Use application/x-rootwindow-drop for
2351         root window drops. (#108670, Alex Larsson)
2352
2353         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
2354         Accept either application/x-rootwin-drop (what GTK+ has always used)
2355         or application/x-rootwindow-drop (what the XDND standard specifies).
2356
2357 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
2358
2359         * gtk/gtkwidget.c (event_window_still_viewable): 
2360         Before delivering an event to a widget, check that
2361         (if relevant), the event's window is still viewable.
2362         (#105642, Dennis Björklund)
2363
2364         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
2365         NULL out private->parent, since after destruction
2366         it might not be valid any more.
2367
2368         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
2369         accesses before g_return_val_if_fail(). Treat 
2370         DESTROYED windows as unmapped.
2371
2372 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
2373
2374         * gtk/gtkentry.c: Recompute unconditionally in
2375         gtk_entry_style_set, and in a new gtk_label_screen_changed().
2376         Protect the guts of recompute_idle_func() with
2377         gtk_widget_has_screen(). (#114040, Morten Welinder) 
2378         Fix FALSE/0 confusion.
2379         
2380 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2381
2382         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
2383         Fixes (#114669)
2384
2385 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
2386
2387         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
2388         set_adjustment (viewport, NULL);
2389
2390 2003-06-07  Matthias Clasen  <maclas@gmx.de>
2391
2392         * gtk/gtkiconfactory.c (get_default_icons): 
2393         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
2394         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
2395         undelete and revert.  (#96633)
2396         
2397 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
2398
2399         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
2400         refactoring of code to reduce duplication; fixes include:
2401
2402         - gtk_viewport_realize(): Position the window correct from adjustment 
2403         values. (#110737, Michael Natterer)
2404
2405         - Remove some division-by-zero checks in places where there is no 
2406         longer division. (#110737)
2407
2408         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
2409         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
2410         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
2411
2412         - Switch over to encapsulated lazy-creation for hadjustment/
2413         vadjustment; even with the CONSTRUCT property, we need this after
2414         destroy.
2415
2416         - When updating the adjustment, immediate set their values to
2417         match the the current range of the viewport, and update the 
2418         viewport position to match the value of the new adjustments. 
2419         (Part of #1165)
2420
2421 2003-06-06  Tor Lillqvist  <tml@iki.fi>
2422
2423         * gdk/win32/gdkprivate-win32.h: Fix typo.
2424
2425         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
2426         graphics_exposures and subwindow_mode, too, even if they aren't
2427         currently used.
2428
2429 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
2430
2431         Merged from stable.
2432
2433         * gtk/gtktreeview.c (do_expand_collapse),
2434         (expand_collapse_timeout), (cancel_arrow_animation): made
2435         expand_collapse_timeout a wrapper with locks around     
2436         do_expand_collapse, made cancel_arrow_animation use
2437         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
2438         Peter Bloomfield).
2439
2440 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2441
2442         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
2443         * modules/input/gtkimcontextxim.c (preedit_start_callback,
2444         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
2445         to keep preedit-[start,changed,end] signals from being called during
2446         finalization (#111861).
2447
2448 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
2449
2450         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
2451         presses that are not on the tab (#114534).
2452
2453 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
2454
2455         * demos/Makefile.am: Conditionalize dependencies for
2456         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe). 
2457         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
2458         test-inline-pixbufs.h if we don't have libpng.
2459
2460         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
2461         Add a dependency on gdk-pixbuf.loaders when not 
2462         cross-compiling, remove the dependency on gdk-pixbuf-csource
2463         when not cross compiling.
2464
2465 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
2466
2467         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
2468         gtk_window_get_geometry_info() returning NULL.
2469         (#107311, John Finlay)
2470
2471 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
2472
2473         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
2474         twice the border width from the width/height, not
2475         1x the border width. (#106336, Rodney Dawes)
2476
2477 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
2478  
2479         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
2480         If at the end of the buffer, move to the end iter -
2481         parallels behavior of move_iter_to_previous_line.
2482         (#81960, Padraig O'Briain)
2483  
2484 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
2485
2486         #80023, Yao Zhang, TOKUNAGA Hiroyuki
2487
2488         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
2489         Account for the preedit cursor offset if the iter passed
2490         in is at the same place as the insertion cursor.
2491
2492         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
2493         Encapsulate getting the insertion cursor location.
2494
2495         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
2496         Pass the real y/height to the IM context. Take 
2497         text_view->x/yoffset into account.
2498
2499 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
2500
2501         * gtk/gtktextview.[ch]: Never scroll on focus in
2502         (#81893, Patch from Paolo Maggi)
2503
2504         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
2505         Scroll to the current cursor location before handling
2506         the action, in case the user just tabbed in
2507         and the cursor is offscreen.
2508
2509 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
2510          
2511          #107883, Gustavo Giráldez
2512
2513         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
2514         Split out the case where we know we changed, and 
2515         already dealt with our cached line being invalidated
2516         from external calls to gtk_text_layout_changed.
2517
2518         * gtk/gtktextlayout.c (gtk_text_layout_changed):
2519         Check if the invalidate yrange intersects our
2520         cached line, and clear it if necessary.
2521
2522 2003-06-05  Tor Lillqvist  <tml@iki.fi>
2523
2524         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
2525         filters.
2526
2527 2003-06-05  Matthias Clasen  <maclas@gmx.de>
2528
2529         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
2530         (gtk_text_view_grab_notify): 
2531         (gtk_text_view_state_changed): Implement these
2532         to unobscure cursor when grab shadowed or insensitised.
2533         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
2534         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
2535         gtk_text_view_motion_event().
2536         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
2537
2538         * gtk/gtktextview.c (select_all): New keybinding signal for
2539         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
2540
2541         * gtk/gtkcalendar.c (calendar_timer): 
2542         (stop_spinning): Replace deprecated gtk_timeout_* functions by
2543         their GLib counterparts.  (#114429)
2544
2545         * gtk/gtktreestore.c (gtk_tree_store_new): 
2546         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
2547         types.
2548
2549 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
2550
2551         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
2552         When drawing underlines, join up adjacent runs
2553         where possible, so we don't get changes in 
2554         shaper/font/etc. breaking underlines. (#103662,
2555         Kang Jeong-Hee)
2556
2557 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
2558
2559         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
2560         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
2561         improve the speed of inserting rows into an already sorted list,
2562         #109292
2563
2564 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
2565
2566         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
2567         track of when we have a clip mask set for the GC,
2568         and when we unset it, or switch to a clip region,
2569         immediately call XSetClipMask (..., None) to avoid
2570         Xlib caching stale data. (#111806)
2571
2572         * gtk/gtktextdisplay.c: Don't set a clip mask
2573         when drawing alpha pixmaps; it isn't necessary any more.
2574         (#111806)
2575
2576 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
2577
2578         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
2579         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
2580         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
2581         (#92548, Tim Evans)
2582
2583         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
2584         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
2585         Use state_type = STATE_INSENSITIVE for insensitive menu items.
2586
2587 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
2588
2589         Merged from stable.
2590
2591         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
2592         assert for get_info. (reported by Michael Natterer),
2593         (gtk_tree_view_expand_all_emission_helper),
2594         (gtk_tree_view_expand_all_helper): emit row_expanded for all
2595         expanded rows during an _expand_all operation. (Fixes #111280,
2596         reported by Benjamin Bayart).
2597
2598 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
2599
2600         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
2601         respond to pings on a root window; prevents infinite
2602         loops if we are selecting for SubstructureNotify on the
2603         root window. (#111945, Sergey V. Udaltsov)
2604
2605 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
2606
2607         #71597, reported by Morten Welinder
2608
2609         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
2610         (Patch from Christian Petig)
2611
2612         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
2613         Major rewrite of 555 and 565 conversion routines:
2614
2615         - Move all the bit shifting into a small block of macros,
2616           eliminating much duplication of complicated arithmetic.
2617         - Get rid of 2-pixels at a time code, which was buggy,
2618           hard to maintain, caused unaligned accesses, and
2619           probably didn't actually perform any better.
2620         - Simplify cases where different data types were
2621           used for the little and big endian cases, use
2622           GUINT16_SWAP_LE_BE() where appropriate.
2623                 
2624 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
2625
2626         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
2627         bad optimization for src_rowstride == dest_stride.
2628         (Didn't consider the case where we were copying only
2629         partial widths of a wider source buffer)
2630         (#113034, reported by Hans Petter Jansson)
2631
2632 2003-06-03  Michael Natterer  <mitch@gimp.org>
2633
2634         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
2635         reenabled button_release events for xinput devices. (#113948)
2636
2637 2003-06-03  Christian Rose  <menthos@menthos.com>
2638
2639         * configure.in: Added "li" to ALL_LINGUAS.
2640
2641 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
2642
2643         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
2644         map the event window if the notebook isn't mapped. (#113980,
2645         Richard Reich)
2646
2647 2003-06-02  Sven Neumann  <sven@gimp.org>
2648
2649         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
2650
2651         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
2652
2653 2003-06-01  Matthias Clasen  <maclas@gmx.de>
2654
2655         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
2656         Since: 2.4 to the docs.
2657
2658         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
2659         an example to the docs.  (#98427)
2660
2661 2003-05-30  Murray Cumming  <murrayc@usa.net>
2662
2663         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
2664         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
2665         uses the new private data system - see g_type_class_add_private() in
2666         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
2667
2668 2003-05-30  Matthias Clasen  <maclas@gmx.de>
2669         
2670         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
2671         signature of gtk_notebook_draw_arrow() for Solaris builds to go
2672         through.  (#114043, Anand Subramanian)
2673
2674 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2675
2676         * modules/input/imipa.c: 
2677         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
2678
2679 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2680
2681         * gtk/gtkimmodule.c (_gtk_im_module_list):
2682         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
2683
2684 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2685
2686         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
2687         label of default input method localizable.
2688         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
2689         use translations of input method context names
2690         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
2691           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
2692           modules/input/imti-er.c, modules/input/imti-et.c
2693           modules/input/imviqr.c, modules/input/imxim.c
2694         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
2695         (#113850).
2696
2697 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
2698
2699         Merged from stable.
2700
2701         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
2702         grab separate, the user might clear the tree in the focus-in
2703         callback. (Fixes #113086, testcase from Felipe Heidrich).
2704
2705 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
2706
2707         Merged from stable.
2708
2709         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
2710         of row reference when we unset the model. Also reset
2711         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
2712
2713 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
2714
2715         Merged from stable.
2716
2717         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
2718         the current editing, if it exists. (Fixes #108956, reported by
2719         Michael Natterer).
2720
2721 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
2722
2723         Merged from stable.
2724
2725         * gtk/gtktreeview.c (check_selection_helper): new function,
2726         (gtk_tree_view_row_deleted): traverse the tree from the
2727         deleted node to see whether the selection changed, instead of
2728         just checking this node. (Fixes #107400, reported by 'Duncan').
2729
2730 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
2731
2732         Merged from stable.
2733
2734         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
2735         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
2736         instead of _maybe_begin_dragging_row, so the icon can be
2737         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
2738
2739 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
2740
2741         Merged from stable.
2742
2743         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
2744         cell_area x/width for the expander if needed. (Fixes #101748,
2745         reported by Dave Cook and Mariano Suarez-Alvarez).
2746
2747 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
2748
2749         Merged from stable.
2750
2751         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
2752         if tree/node are still the same after _internal_select_node.
2753         (Fixes #92256, reported by edscott).
2754
2755 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
2756
2757         Fixes #75745, reported by Richard Hult. Merged from stable.
2758
2759         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
2760         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
2761         cursor or not.
2762
2763         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2764         if we are rendering a cursor row, and the cell the be
2765         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
2766         flag (else we unset it).
2767
2768 2003-05-27  Matthias Clasen  <maclas@gmx.de>
2769
2770         * gtk/gtkwindow-decorate.c: 
2771         * gtk/gtktreeprivate.h: 
2772         * gtk/gtkdnd.c: 
2773         * gdk/win32/gdkwindow-win32.h: 
2774         * gdk/linux-fb/gdkprivate-fb.h: 
2775         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
2776         unspecified signedness.  (#112919, Morten Welinder)
2777
2778         * gtk/queryimmodules.c (escape_string): 
2779         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
2780         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
2781         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
2782         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
2783         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
2784         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
2785         Morten Welinder) 
2786
2787 2003-05-27  Tor Lillqvist  <tml@iki.fi>
2788
2789         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
2790         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
2791
2792         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
2793         win32/libgdk-win32.la.
2794
2795         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
2796
2797 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2798
2799         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
2800         scrollbar slider length 21 instead of 7.
2801
2802 2003-05-23  Matthias Clasen  <maclas@gmx.de>
2803
2804         * gtk/gtknotebook.c: Add support for up to four scroll
2805         arrows. Control their display by new style properties
2806         "has_forward_stepper", "has_backward_stepper",
2807         "has_secondary_forward_stepper" and
2808         has_secondary_backward_stepper". (#110540)
2809
2810         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
2811         click_child three bits wide, add
2812         has_{before,after}_{previous,next} fields.
2813
2814         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
2815         focus out of hex_entry.  (#112665)
2816         (hex_focus_out): New signal handler for focus out of hex entry.
2817
2818 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
2819
2820         * gtk/gtkwidget.c (gtk_widget_realize): 
2821         g_return_if_fail() if
2822         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
2823         (#107872, Christian Reis)
2824
2825 2003-05-22  Matthias Clasen  <maclas@gmx.de>
2826
2827         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
2828         (gtk_file_selection_rename_file): Some keynav improvements for the
2829         "Rename File" and "Create Directory" subdialogs: Enter in entry
2830         activates default, default is "Create"/"Rename", Escape cancels
2831         dialog.  (#113110)
2832         (gtk_file_selection_set_filename): Add a hint about opening 
2833         directories.  (#113175)
2834
2835 2003-05-22  Matthias Clasen  <maclas@gmx.de>
2836
2837         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
2838         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
2839         anyway.  (#113476)
2840
2841 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
2842
2843         * gtk/gtkprogress.c (gtk_progress_set_format_string,
2844         gtk_progress_set_show_text): Always queue a resize ... 
2845         we rely on the size-allocate to do the update, plus a 
2846         different format can actually change our size requisition.
2847         (#111052, Vasco Alexandre da Silva Costa)
2848
2849         * gtk/gtkprogress.c (gtk_progress_changed): Track
2850         ::changed as well as ::value_changed, and queue a
2851         resize on ::changed when necessary.
2852
2853         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
2854         Call gtk_progress_changed() here to update or 
2855         queue a resize as necessary.
2856
2857 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2858
2859         * gtk/gtkimcontextsimple.c: added composing rules of
2860         Greek accented letters, patch by Vasilis Vasaitis (#107507)
2861
2862 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2863
2864         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
2865         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
2866         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
2867
2868 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2869
2870         * gtk/gtkimcontextsimple.c: 
2871         code that can check the compose table for ascending order,
2872         by Vasilis Vasaitis (#104862).
2873
2874 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
2875
2876         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
2877         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
2878         to handle the case where a modifier not in the mask
2879         (like Num_Lock) changes the key value, so replace
2880         the masked state with a state/mask pair. (#106913,
2881         Olivier Ripoll)
2882
2883         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
2884         in state/mask pair to _gtk_key_hash_lookup()
2885
2886 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2887
2888         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
2889         fix a memory leak, free input context list (#113259).
2890
2891 2003-05-21  Matthias Clasen  <maclas@gmx.de>
2892
2893         * configure.in (all_loaders): Add pcx.
2894
2895         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
2896
2897 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
2898
2899         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
2900         accept a missing gtk.immodules file, some people
2901         want to run without one. (#112406, patch from
2902         Arnaud Charlet)
2903
2904 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
2905
2906         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
2907         height/width confusion (#113370, Xan Lopez)
2908
2909 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
2910
2911         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
2912         zero all unused parts of client messages (Mainly Motif DND
2913         and EWMH). Also, fix a couple places where we were putting
2914         contents into Motif DND messages that didn't belong.
2915         (#113361, EWMH problem reported by Lubos Lunak)
2916
2917         * gtk/gtkselection.c (_gtk_selection_request): Handle the
2918         case where the property type for the multiple atoms is
2919         ATOM_PAIR by doing the conversions ourselve. This is
2920         needed for Xt inter-operation.
2921
2922 2003-05-19 Arafat Medini <lumina@silverpen.de>
2923
2924         * configure.in: Added ar to ALL_LINGUAS
2925
2926 2003-05-19  Matthias Clasen  <maclas@gmx.de>
2927
2928         * gtk/gtksettings.c (gtk_rc_property_parse_border,
2929         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
2930         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
2931         Add docs.
2932
2933         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
2934         gtk_widget_class_install_style_property_parser): Add docs. 
2935
2936 2003-05-17  Matthias Clasen  <maclas@gmx.de>
2937
2938         * tests/prop-editor.c: Add navigation for object properties, so
2939         that you can easily edit the properties of the parent of a widget.
2940         (#113152)
2941
2942 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
2943
2944         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
2945         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
2946         inconsistency and leave the old name as an aliass (#104873)
2947
2948 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
2949
2950         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
2951         from Charles Schmidt to add missing notify (#108305)
2952
2953 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
2954  
2955         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
2956         (#105500, Morten Welinder.)
2957  
2958 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
2959
2960         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
2961         instead of gumake for XNFilterEvents event mask(#110493).
2962
2963 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
2964
2965         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
2966         a GObject. (#112762)
2967
2968 2003-05-08  Sven Neumann  <sven@gimp.org>
2969
2970         * configure.in: set the HAVE_X11R6 automake conditional to false
2971         if not compiling for X11.
2972
2973 2003-05-08  Matthias Clasen  <maclas@gmx.de>
2974
2975         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
2976         (gtk_calendar_get_display_options): New functions.
2977         (gtk_calendar_display_options): Depreate.  (#64567)
2978         (gtk_calendar_class_init): Add boolean properties for the display
2979         options.  (#50949)
2980
2981 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
2982
2983         Patch from James Henstridge to update to automake-1.7
2984         (#109542)
2985  
2986         * autogen.sh: update to call newer tools.
2987  
2988         * configure.in: various updates, to use M4 macros to put
2989         variables that change each release at the top.
2990         Use AC_HELP_STRING to format help strings.
2991         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
2992  
2993         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
2994         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
2995         during distcheck.
2996  
2997         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
2998         makefile fragment.
2999  
3000         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
3001         Use BUILT_SOURCES where appropriate.
3002         Build generated files in builddir rather than srcdir.
3003         Fix uninstall and distclean targets to satisfy distcheck.
3004
3005         ===
3006
3007         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
3008         built first, since we are now using BUILT_SOURCES.
3009
3010         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
3011
3012         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
3013         with geninclude.pl.
3014
3015         * configure.in: Update versions to 2.3.0.
3016  
3017 2003-05-06  Tor Lillqvist  <tml@iki.fi>
3018
3019         Fix for #110165 (thanks to Arnaud Charlet):
3020         
3021         * gdk/win32/gdkevents-win32.c (build_keypress_event,
3022         build_keyrelease_event): For unshifted control char, use
3023         lowercase ASCII keyval.
3024         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
3025         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
3026         lowercase keyval. Use build_key_event_state() here, too, instead
3027         of minor code duplication.
3028
3029 2003-05-06  Matthias Clasen  <maclas@gmx.de>
3030
3031         * tests/testmultidisplay.c: Don't include strings.h, it's not
3032         needed anymore.  (#112388)
3033
3034         * examples/menu/itemfactory.c: 
3035         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
3036         itemfactory example.
3037
3038 2003-05-05  Matthias Clasen  <maclas@gmx.de>
3039
3040         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
3041         icon type to the stock icon type.  (#111735, Dave Bordoley)
3042
3043 2003-05-05  Christian Rose  <menthos@menthos.com>
3044
3045         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
3046         Removed sp, it's replaced by sr@Latn.
3047
3048 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
3049
3050         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
3051         Gonzalo Odiard
3052
3053 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
3054
3055         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
3056         data iff the destroy func isn't NULL.
3057
3058 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
3059
3060         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
3061
3062 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
3063
3064         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
3065
3066 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
3067
3068         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
3069         of UTF-8. (#106419, Roozbeh Pournader)
3070
3071 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
3072
3073         * configure.in: Only check for XFT2 if we found pango-xft
3074         (#105692, Jon Nall)
3075
3076 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
3077
3078         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
3079         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
3080
3081 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
3082
3083         * docs/faq/gtk-faq.sgml: add note about version converage.
3084
3085 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
3086
3087         * gtk/gtksocket.c (activate_key): Fix prototype for
3088         activate_key. (#108927, Jason D. Hildebrand)
3089
3090 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
3091
3092         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
3093         Remove geninclude.pl from CVS and don't dist it either,
3094         it is generated. (#108970, Rich Kinder)
3095
3096 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
3097
3098         * gtk/gtkobject.h: Remove a couple of obsolete comments,
3099         fix another comment. (#109737, Britton Kerin)
3100
3101 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
3102
3103         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
3104         the source list, not just it's contents (Patch
3105         from Charles Kerr, #108243)
3106
3107 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
3108
3109         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
3110         from Alex Larsson fixing problem with restacking during
3111         DND. (#108671)
3112
3113 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
3114
3115         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
3116         Calling XFlush() after ungrabbing, to avoid problems if
3117         the app subsequently blocks on a long-running operation.
3118         (#106520, reported by Rajkumar Siva)
3119
3120 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
3121
3122         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
3123         SKIP_TASKBAR/SKIP_PAGER to set of properties we
3124         might set on map. (#110019, problem reported
3125         by Loban Rahman)
3126
3127 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
3128
3129         * gdk/gdkevents.c (gdk_event_copy): Fix for the
3130         case when gdk_event_copy() is called on a non-allocated
3131         event. (#109716, reported by Rich Burridge)
3132
3133 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
3134
3135         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
3136         Fix pointer arithmetic on 'void *'. (#108322)
3137
3138 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
3139
3140         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
3141         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
3142         use of XAddConnectionWatch. Remove --enable-xim config option.
3143         Should fix building on X11R6 (#110523, Albert Chin)
3144
3145 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
3146
3147         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
3148         Patch from Morten Welinder to catch Sun servers with a 
3149         broken implementation of the RENDER extension. (#108309)
3150
3151 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
3152
3153         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
3154         gdk_free_compound_text(), not g_free(). (#107643,
3155         Michael Zucchi)
3156
3157 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
3158
3159         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
3160         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
3161         wrong use of base_finalize. (#105126, Sven Neumann)
3162
3163 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
3164
3165         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
3166         '/' vs. '*' problem in aspect ration computations. (#108237)
3167
3168 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
3169
3170         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
3171         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
3172         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
3173         event, so select for both. (#108406, Egmont Koblinger)
3174
3175 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
3176
3177         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
3178         caused by not clearing the scroll_to_path.
3179
3180 2003-04-16  Matthias Clasen  <maclas@gmx.de>
3181
3182         * gtk/gtkstyle.c: Doc additions and fixes.
3183
3184         * gtk/gtktreeviewcolumn.c
3185         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
3186
3187 2003-04-14  Michael Natterer  <mitch@gimp.org>
3188
3189         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
3190         that the iter is not reordered to its own position. Prevents model
3191         corruption for the case that the store contains only a single item
3192         (fixes bug #108387).
3193
3194         Unrelated:
3195
3196         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
3197         new list element later so we don't leak it if we decide to return
3198         early.
3199
3200         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
3201         set selection->tree_view->priv->anchor to NULL after freeing it.
3202
3203 2003-04-13  Matthias Clasen  <maclas@gmx.de>
3204
3205         * gtk/gtktreeviewcolumn.c
3206         (gtk_tree_view_column_cell_get_position): Document. 
3207
3208         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
3209         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
3210         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
3211         these as 2.4 additions.
3212
3213 2003-04-09  Matthias Clasen  <maclas@gmx.de>
3214
3215         * INSTALL.in: Fix the real thing.
3216
3217         * INSTALL: Typo fix.
3218
3219 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
3220
3221         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
3222         after ungrabbing the server.
3223  
3224         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
3225         calls to XFlush().
3226
3227         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
3228         Use gdk_x11_display_grab/ungrab.
3229
3230         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
3231         use_xshm to TRUE so SHM gets used when present.
3232  
3233 2003-04-07  Matthias Clasen  <maclas@gmx.de>
3234
3235         * gtk/gtktextlayout.c (set_para_values): 
3236         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
3237         David Brigada)
3238
3239         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
3240         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
3241         misspellings of possessive "its".  (#110027, Doug Quale)
3242
3243 2003-04-03  Matthias Clasen  <maclas@gmx.de>
3244
3245         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
3246         current directory if it looks like the srcdir.  (#109357)
3247
3248 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3249
3250         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
3251         focus_on_click
3252
3253         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
3254         navigation not wrap around.
3255
3256 2003-04-02  Matthias Clasen  <maclas@gmx.de>
3257
3258         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
3259         Return 0 if lower == upper.  (#109155)
3260         (gtk_progress_get_current_percentage): Use
3261         gtk_progress_get_percentage_from_value().
3262
3263 2003-04-01  Matthias Clasen  <maclas@gmx.de>
3264
3265         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
3266         (#109510, Noah Levitt)
3267
3268 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
3269
3270         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
3271         members so Purify won't complain.
3272
3273         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
3274
3275 2003-03-31  Matthias Clasen  <maclas@gmx.de>
3276
3277         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
3278         gtk_window_[gs]et_role().  (#93904)
3279
3280 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
3281
3282         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
3283         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
3284
3285 2003-03-29  Matthias Clasen  <maclas@gmx.de>
3286
3287         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
3288         of labels back to normal before reparenting back.  (#102387)
3289
3290         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
3291         a default window title to match the GtkFontSelectionDialog behavior.
3292  
3293         (gtk_color_selection_dialog_new): Don't call
3294         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
3295
3296 2003-03-29  Matthias Clasen  <maclas@gmx.de>
3297
3298         Fix for bug #78499:
3299         
3300         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
3301         select_lines. 
3302
3303         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
3304         select_lines on double/triple click.
3305
3306         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
3307         select-by-words and select-by-lines behaviour.
3308
3309         Fixes for bug #56248:
3310         
3311         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
3312         timer and queue a redraw. 
3313         (gtk_notebook_grab_notify): 
3314         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
3315         if necessary.   
3316         (gtk_notebook_button_release): Use stop_scrolling().
3317         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
3318
3319         * gtk/gtkrange.c (stop_scrolling): New function to remove the
3320         grab, remove the timer and queue a redraw.
3321         (gtk_range_grab_notify): 
3322         (gtk_range_state_changed): New functions to call stop_scrolling() 
3323         if necessary.   
3324         (gtk_range_button_release): Use stop_scrolling().
3325
3326         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
3327         (gtk_spin_button_state_changed): Redraw after stop_spinning.
3328         (gtk_spin_button_stop_spinning): Reset click_child to correct the
3329         drawing of the arrows.
3330         (gtk_spin_button_button_release): Use a local copy of click_child,
3331         since stop_spinning() resets it.
3332
3333         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
3334         C-A-PgDown as alternatives to the A-less variants. (This slipped
3335         in accidentally some time ago).  (#97860)
3336
3337 2003-03-26  Sven Neumann  <sven@gimp.org>
3338
3339         * gtk/gtktreeview.c: rewrote the function that does node and arrow
3340         prelighting, queue all redraws from here (Fixes bug #108792).
3341
3342 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
3343
3344         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
3345         Fixes bug #108778.
3346
3347 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
3348
3349         * configure.in: Added "ml" in ALL_LINGUAS
3350
3351 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
3352
3353         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
3354         G_DISABLE_DEPRECATED.
3355
3356 2003-03-14  Tor Lillqvist  <tml@iki.fi>
3357
3358         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
3359         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
3360         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
3361         multiple monitors can have negative coordinates on some of the
3362         monitors. (partial fix for #99496, Arnaud Charlet)
3363
3364 2003-03-15  Matthias Clasen  <maclas@gmx.de>
3365
3366         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
3367
3368 2003-03-13  Sven Neumann  <sven@gimp.org>
3369
3370         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
3371         removed redundant calls to g_object_notify().
3372         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
3373         bug #108236.
3374
3375         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
3376         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
3377         functions return an integer value).
3378
3379 2003-03-13  Tor Lillqvist  <tml@iki.fi>
3380
3381         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3382         WM_MOUSEMOVE, the test whether we have actually moved (and thus
3383         shouldn't generate an GDK event) moved after the call to
3384         propagate() and translate_mouse_coords(). Otherwise we were
3385         testing wrong values. (#108115, Allin Cottrell)
3386         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
3387         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
3388
3389         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
3390         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
3391         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
3392         cursor right away with SetCursor(), as we won't get any
3393         WM_SETCURSOR messages while the mouse is captured. 
3394         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
3395         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
3396
3397         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
3398         WM_SYSCHAR, return FALSE from the window procedure to prevent the
3399         DefWindowProc from being called. Otherwise Windows would beep,
3400         thinking you are tring to access a (nonexistent) menu when you
3401         press Alt-something. Don't do this for Alt-Space,
3402         though. (#107454, Martyn Russell)
3403
3404         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
3405
3406 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
3407
3408         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
3409         [left/right] expands/collapses the tree, #108092
3410
3411 2003-03-09  Tor Lillqvist  <tml@iki.fi>
3412
3413         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
3414         compensate for LineTo() not drawing the end pixel. It causes more
3415         harm than benefits, see bug #81895.
3416
3417 2003-03-08  Matthias Clasen  <maclas@gmx.de>
3418
3419         Bug #107664 continued:
3420
3421         * gdk/x11/gdkinputprivate.h: 
3422         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
3423         (_gdk_input_other_event): Return gboolean.
3424         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
3425         (_gdk_input_other_event): Return gboolean.
3426         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
3427
3428         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
3429         gboolean, remove pointless call to _gdk_input_window_none_event.
3430
3431         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
3432         (_gdk_input_window_none_event): Remove.
3433
3434         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
3435         (_gtk_text_iter_get_any_segment): 
3436         (_gtk_text_iter_get_segment_byte): 
3437         (_gtk_text_iter_get_segment_char): 
3438         (_gtk_text_iter_get_text_line): 
3439         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
3440         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
3441         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
3442         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
3443         (gdk_window_get_origin): 
3444         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
3445
3446 2003-03-06  Matthias Clasen  <maclas@gmx.de>
3447
3448         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
3449         (#107664, Morten Welinder)
3450
3451         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
3452         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
3453         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
3454         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
3455
3456         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
3457         * gtk/gtkeditable.c (gtk_editable_get_chars): 
3458         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
3459         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
3460         (#107648, Morten Welinder)Fix NULL/FALSE confusion
3461         (#107648, Morten Welinder)
3462
3463 2003-03-04  Matthias Clasen  <maclas@gmx.de>
3464
3465         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
3466
3467 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
3468
3469         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
3470         handle rtl code.  Thanks to Matthias Clasen for an initial patch
3471         to handle the RTL code.
3472
3473         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
3474
3475         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
3476
3477         * gtk/gtktreeview.c: (invalidate_column),
3478         (invalidate_last_column),
3479         (gtk_tree_view_get_real_requested_width_from_column),
3480         (gtk_tree_view_size_allocate_columns),
3481         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
3482         (gtk_tree_view_button_release_drag_column),
3483         (gtk_tree_view_update_current_reorder),
3484         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
3485         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
3486         (gtk_tree_view_get_background_xrange),
3487         (gtk_tree_view_get_arrow_xrange),
3488         (gtk_tree_view_is_expander_column),
3489         (gtk_tree_view_set_column_drag_info),
3490         (gtk_tree_view_move_cursor_left_right):
3491         Add RTL support.
3492
3493         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
3494         expand flag.
3495
3496         * gtk/gtktreeviewcolumn.c:
3497         (gtk_tree_view_column_class_init),
3498         (gtk_tree_view_column_set_property),
3499         (gtk_tree_view_column_get_property),
3500         (gtk_tree_view_column_set_expand),
3501         (gtk_tree_view_column_get_expand),
3502         (gtk_tree_view_column_cell_process_action):
3503         Add support for expand flag.  Thanks to Kristian Rietveld for an
3504         initial patch for this.
3505
3506 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
3507
3508
3509 2003-03-02  Tor Lillqvist  <tml@iki.fi>
3510
3511         * gdk/gdk.def
3512         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
3513         Gustin.
3514
3515 2003-03-01  Matthias Clasen  <maclas@gmx.de>
3516
3517         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
3518         (gtk_scrolled_window_set_hadjustment): Replace uses of
3519         gtk_object_new by g_object_new.
3520
3521 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
3522
3523         * demos/gtk-demo/main.c
3524         * demos/gtk-demo/tree_store.c
3525         * gdk/x11/gdkscreen-x11.c
3526         * gtk/gtkcellrenderertoggle.c
3527         * gtk/gtkcolorsel.c
3528         * gtk/gtkdnd.c
3529         * gtk/gtkeditable.c
3530         * gtk/gtkentry.c
3531         * gtk/gtkmenu.c
3532         * gtk/gtkmenubar.c
3533         * gtk/gtkmenuitem.c
3534         * gtk/gtkmenushell.c
3535         * gtk/gtkrc.c
3536         * gtk/gtksettings.c
3537         * gtk/gtkstyle.c
3538         * gtk/gtktextbuffer.c
3539         * gtk/gtktextview.c
3540         * gtk/gtktreeviewcolumn.c
3541         * tests/testgtk.c
3542         * tests/testtext.c
3543         * tests/testtreeedit.c
3544         * tests/testtreefocus.c
3545         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
3546
3547 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
3548
3549         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
3550         code.
3551
3552 2003-02-24  Sven Neumann  <sven@gimp.org>
3553
3554         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
3555
3556 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
3557
3558         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
3559
3560 2003-02-20  Matthias Clasen  <maclas@gmx.de>
3561
3562         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
3563         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
3564
3565         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
3566         (gtk_text_view_update_adjustments): Make sure cursor stays visible
3567         during horizontal scrolling.  (#75270)
3568
3569 2003-02-19  Matthias Clasen  <maclas@gmx.de>
3570
3571         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
3572         counterparts. (#106532)
3573
3574         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
3575         keys_changed virtual function with the keys_changed signal.
3576         (#106512, Jeff Franks)
3577
3578 2003-02-15  Larry Ewing  <lewing@ximian.com>
3579
3580         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
3581
3582 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
3583
3584         * po/id.po: Added Indonesian translation
3585         * configure.in: Added "id" to ALL_LINGUAS
3586
3587 2003-02-14  Matthias Clasen  <maclas@gmx.de>
3588
3589         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
3590
3591 2003-02-12  Christian Rose  <menthos@menthos.com>
3592
3593         * configure.in: Added "yi" to ALL_LINGUAS.
3594
3595 2003-02-12  Matthias Clasen  <maclas@gmx.de>
3596
3597         Fix for #82734 and #78216:
3598         
3599         * gtk/gtktextview.c (delete_cb): 
3600         (select_all_cb): New callbacks for context menu items.
3601         (popup_targets_received): Add "Delete" and "Select All" to context
3602         menu, mnemonics and title caps for all items.
3603
3604         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
3605         context menu item.
3606         (popup_targets_received): Add "Delete" to context menu, mnemonics
3607         and title caps for all items.
3608
3609 2003-02-09  Tor Lillqvist  <tml@iki.fi>
3610
3611         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
3612         GetDriveType() to recognize removable drives (in order to avoid
3613         hanging if trying to access an empty floppy drive), instead of
3614         hardcoding A: and B: (#105654).
3615
3616 2003-02-09  Matthias Clasen  <maclas@gmx.de>
3617
3618         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
3619         names.  (#57680)
3620
3621 2003-02-09  Christian Rose  <menthos@menthos.com>
3622
3623         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
3624
3625 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
3626
3627         * gtk/gtkobject.c: remove quark_user_data usage in
3628         gtk_object_{g|s}et_user_data(). fixes get_user_data()
3629         returning NULL for user_data set through property interface.
3630
3631         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
3632         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
3633         need to be a programming error (in case of loaded data), (b) it breaks
3634         with 2.0 behaviour where extra magic could be used to create empty
3635         images. don't attempt to retrieve pixbufs from NULL extra_data.
3636
3637 2003-02-06  Matthias Clasen  <maclas@gmx.de>
3638
3639         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
3640         a GdkVisual *, not a GdkVisual **.  (#105243)
3641
3642         * gtk/gtkclist.c: 
3643         * gtk/gtkctree.c: 
3644         * gtk/gtkcontainer.c: 
3645         * gtk/gtkdnd.c: 
3646         * gtk/gtkentry.c: 
3647         * gtk/gtklist.c:
3648         * gtk/gtkmenu.c:
3649         * gtk/gtkmenuitem.c:
3650         * gtk/gtknotebook.c:
3651         * gtk/gtkselection.c:
3652         * gtk/gtkspinbutton.c:
3653         * gtk/gtktext.c:
3654         * gtk/gtktextview.c:
3655         * gtk/gtktooltips.c:
3656         * gtk/gtktreeview.c:
3657         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
3658         their non-deprecated GLib counterparts.
3659         
3660         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
3661         
3662 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
3663
3664         * docs/tutorial/gtk-tut.sgml: cleanups from
3665         Sebastian Rittau (#104832)
3666
3667 2003-02-01  Tor Lillqvist  <tml@iki.fi>
3668
3669         Merge from stable:
3670
3671         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
3672         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
3673         (#104108, Naofumi Yasufuku)
3674
3675         * gdk/gdk.def: Export the above. Export
3676         gdk_screen_get_system_visual, noticed by Ed Woods.
3677
3678 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
3679
3680         * demos/pixbuf-demo.c
3681         * demos/testpixbuf.c
3682         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
3683
3684 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
3685                                                                                 
3686         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
3687         on the tab_label before unparenting it, in case the unparent
3688         drops the refcount to 0.
3689
3690 2003-02-01  Matthias Clasen  <maclas@gmx.de>
3691
3692         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
3693         headers. Sorry about gtk_selection_clear, Yosh.
3694
3695 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
3696
3697         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
3698         too, for gtkwidget.c. Remember people, when introducing new
3699         deprecations, make sure internal code isn't using it, or if so,
3700         reorganize appropriately like I've done in other places.
3701
3702         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
3703
3704 2003-01-31  Matthias Clasen  <maclas@gmx.de>
3705
3706         * gtk/gtkselection.h: 
3707         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
3708
3709         * gdk/gdkpixbuf.h: 
3710         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
3711         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
3712
3713         * gtk/gtkcolorsel.h:
3714         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
3715         Deprecate.  (#98167)
3716
3717         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
3718
3719         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
3720         and gtk_input_* functions.  (#71596)
3721         
3722         * gtk/gtkentry.c (gtk_entry_move_cursor): 
3723         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
3724         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
3725
3726         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
3727
3728         * gtk/gtkitemfactory.h: 
3729         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
3730         (#69244)
3731
3732 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
3733
3734         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
3735         only count the special cell if it is also visible,
3736         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
3737         account from visible cells,
3738         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
3739         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
3740         tracking bug was #104563).
3741         
3742 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
3743
3744         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
3745         subtract expander space and focus line space from the extra space
3746         we are about the allocate. (Fixes #104635).
3747
3748 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
3749
3750         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
3751         (Fixes #96242, patch from Soeren Sandmann).
3752
3753 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
3754
3755         * gtk/gtknotebook.c: Patch from Soeren Sandmann
3756         to update the states of the tab label child
3757         widgets to match the state of the tabs. 
3758         (#93389, Reported by Tommi Komulainen)
3759
3760 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
3761
3762         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
3763         EXTRA_DIST, and from dist rules. (#102231)
3764
3765 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
3766
3767         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
3768         function that sets the icon's and label's packing options and
3769         visibility based on toolbar->style.
3770
3771         (gtk_toolbar_internal_insert_element):
3772         (gtk_real_toolbar_style_changed): Make use of
3773         set_child_packing_and_visibility() to clean up the code and get
3774         the packing right for icon-only/text-only toolbars. (#104679)
3775
3776         (get_first_child): Remove, and use gtk_bin_get_child() instead.
3777
3778 2003-01-30  Matthias Clasen  <maclas@gmx.de>
3779
3780         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
3781         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
3782
3783         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
3784         
3785 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
3786
3787         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
3788         attempt-to-allocate then free code. To handle multiple
3789         people allocating colors at the same time, we need
3790         to just go ahead and try. (#102213, Shivram U)
3791         
3792 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
3793
3794         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
3795         rectangle using the background color rather than relying on
3796         gdk_window_clear_area(), so that the palette works properly with
3797         pixmap themes. (#101732)
3798
3799         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
3800         to fill the drawing area in the background color.
3801
3802 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
3803
3804         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
3805         initialization error for selecting input style (#103549).
3806
3807 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
3808
3809         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
3810         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
3811         (#101225)
3812
3813 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
3814
3815         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
3816         Make up from the menu bar go to the end of the submenu.
3817         (#96114, Ian Peters.)
3818
3819         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
3820         Only do the select-but-not-activate stuff if the
3821         menu is already active. Otherwise, just activate.
3822         (#101690, Arvind Samptur)
3823
3824 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
3825
3826         * autogen.sh (have_automake): Fix version in complaint
3827         message about automake. (#104366, Rich Burridge)
3828
3829 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
3830
3831         * configure.in: Remove SOEXT stuff; it doesn't work portably.
3832
3833 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
3834
3835         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
3836         we appended/prepended, send the rows_reordered signal to the 
3837         correct level ... (Reported by Matthew Tuck).
3838
3839 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
3840
3841         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
3842         out if the level only has one item, recurse over the child if there
3843         is one. (Fixes #100458, reported by Gaël Le Mignot).
3844
3845 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
3846
3847         * gtk/gtktreeview.c (gtk_tree_view_set_model),
3848         (gtk_tree_view_search_equal_func): make TreeView search handle
3849         all types which are transformable by GValue. (Fixes #99803, reported
3850         by Muktha Narayan).
3851
3852 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
3853
3854         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
3855         *really* handle unsetting the ID. Slightly modified patch from
3856         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
3857
3858 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
3859
3860         Fixes the total GtkTreeSortable mess, and #83195, reported by
3861         Jarek Dukat
3862
3863         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
3864         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
3865         (gtk_tree_store_set_default_sort_func): use the constant
3866         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
3867         work as advertised by the documentation.
3868
3869         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
3870         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
3871         (gtk_list_store_set_default_sort_func): likewise.
3872
3873         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
3874         (gtk_tree_model_set_sort_func),
3875         (gtk_tree_model_sort_set_default_sort_func): make functions work
3876         as advertised by the documentation.
3877
3878 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
3879
3880         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
3881         before we decide if we edit. (fixes #100973, reported by Dave Cook).
3882
3883 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
3884
3885         Bug report and test case from Paolo Maggi via IRC.
3886
3887         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
3888         (gtk_list_store_move): update tail if needed.
3889
3890 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
3891
3892         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
3893         might be NULL. Use gtk_widget_get_display (widget) 
3894         (#102860, Thomas Leonard)
3895
3896 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
3897
3898         * configure.in: Fix --without-modules/--disable-modules
3899         confusion that was causing --disable-modules not to work.
3900         (#102865, Akira Tagoh)
3901
3902         * configure.in: Fix problem with plain --with-xinput
3903         (#104266, Akira Tagoh)
3904
3905 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
3906
3907         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
3908         patch.
3909
3910 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
3911
3912         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
3913
3914 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
3915
3916         * docs/faq/gtk-faq.sgml: Learn to spell Library
3917
3918 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
3919         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
3920
3921            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
3922            Composite widget" to modern standards. (I.e. use gobject instead of
3923            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
3924
3925         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
3926         code in Appendix C to reflect above changes.
3927
3928         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
3929         auto resize on page size change
3930
3931 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
3932
3933         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
3934         in addition to show_all in order to keep them symmetric. (#102201)
3935
3936 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
3937
3938         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
3939         the end of the function, so there is a statement following the "out"
3940         label in all cases (fixes #101961)
3941
3942 2003-01-22  Christian Rose  <menthos@menthos.com>
3943
3944         * configure.in: Added "mn" to ALL_LINGUAS.
3945
3946 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
3947  
3948         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
3949         Fix off-by-one error on the backward iteration loop,
3950         that was causing the wrong range to be redrawn.
3951         (at least part of #72734)
3952         
3953 2003-01-21  Matthias Clasen  <maclas@gmx.de>
3954
3955         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
3956         vadjustment value after changing its bounds.  (fixes #101963 and 
3957         #73562)
3958
3959         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
3960         unnecessary roundtrip failures.  (#93500)
3961
3962 2003-01-19  Tor Lillqvist  <tml@iki.fi>
3963
3964         Merge from stable:
3965         
3966         Fix for #103614 and some other problems with GtkFileSelection on
3967         Windows:
3968                 
3969         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
3970         g_ascii_tolower(). Windows file names are case-insensitive for all
3971         Unicode letters.
3972
3973         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
3974         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
3975         earlier, as it includes config.h unconditionally, and gtkprivate.h
3976         redefines GTK_LOCALEDIR.
3977         (struct _CompletionDirSent): Ifdef out the fields not used on
3978         Windows.
3979         (compare_utf8_filenames, compare_sys_filenames): Need different
3980         comparison implementation for UTF-8 file names and system locale
3981         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
3982         need to casefold all Unicode letters.
3983         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
3984         variables not used on Win32 to avoid warnings about unused
3985         variables.
3986         (open_ref_dir): Use g_path_skip_root() to skip past potential
3987         drive letter in front of the leading (back)slash.
3988         (open_new_dir): Ifdef out use of CompletionDirSent fields not
3989         there on Win32.
3990         (correct_parent): Bypass inode check also on Cygwin.
3991
3992         Fix bug noticed by Alex Shaduri: Tooltips and other
3993         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
3994         was a regression from earlier versions.
3995         
3996         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
3997         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
3998         (gdk_window_move, gdk_window_resize): Add debug logging.
3999
4000         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
4001         WM_SIZE message for a non-visible (withdrawn) window, don't clear
4002         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
4003         even if its size changes.
4004
4005 2003-01-16  Matthias Clasen  <maclas@gmx.de>
4006
4007         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
4008         (totally_invisible_line): Fix an incorrect optimization which
4009         caused invisible paragraphs to be occasionally misrendered.
4010
4011 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
4012
4013         * gtk/gtksettings.c: Set the double click speed from
4014         XSETTINGS when creating a new GtkSettings object
4015         as well as when getting a notify. (#103601, reported
4016         by Louis Garcia)
4017
4018 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
4019  
4020         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
4021         Show/hide the notebook event window as necessary,
4022         we weren't previously keeping the visibility updated
4023         properly.  (#103599)
4024  
4025 2003-01-15  Matthias Clasen  <maclas@gmx.de>
4026
4027         * examples/menu/itemfactory.c: 
4028         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
4029         example.  (#103211)
4030
4031 2002-12-29  Murray Cumming  <murrayc@usa.net>
4032
4033         Fixes #102168.
4034
4035         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
4036         Actually implement the GtkTreeDragSource::row_draggable virtual 
4037         function in GtkListStore and GtkTreeStore instead of just checking 
4038         whether it's implemented at all. This means that DnD isn't broken by
4039         gtkmm's virtual function wrappers. The alternative would be to
4040         hard-code the TRUE return value into gtkmm's wrappers, but that's 
4041         part of GTK+'s implementation, not it's API.
4042
4043 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
4044
4045         * gtk/gtktreeview.c: fix compiler warning.
4046
4047 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
4048
4049         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4050         make sure exposed pixbufs are clipped to the exposed area before
4051         drawing, which is a slight speedup. (#102379, patch from Soeren
4052         Sandmann).
4053
4054 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
4055
4056         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
4057         only free scroll_to_path when the complete tree has been validated.
4058         This makes sure that we scrolled to the correct path.
4059
4060 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
4061
4062         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
4063         background of widget->window and bin->window. (Fixes #96650, reported
4064         by Dave Camp).
4065
4066 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
4067
4068         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
4069         updates before scrolling, avoiding a "selection streak". (Fixes
4070         #101235, patch from Soeren Sandmann).
4071
4072 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
4073
4074         * gtk/gtktreeview.c (validate_visible_area): actually put values
4075         in the requisition using gtk_widget_size_request. (Fixes #100172,
4076         reported by Kjartan Maraas).
4077
4078 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
4079
4080         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
4081         arrow animation timeout before we actually reorder the rbtree. If
4082         we don't do this we can get stuck arrows,
4083         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
4084         reported and testcase provided by Hans Petter Jansson).
4085
4086 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
4087
4088         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
4089         anchor_path should be start_path, not end_path. (Fixes #102618,
4090         patch from Carlos Garnacho Parro).
4091
4092 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
4093
4094         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
4095         only correct new_pos if we don't move to the head/tail.
4096
4097 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
4098
4099         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
4100         the parent_iter if depth >= 1, so we send the reordered signal to
4101         the correct level, remove debugging printfs which I forgot the remove
4102         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
4103         testcase provided by Matthew Tuck).
4104
4105 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
4106
4107         * gtk/gtktreeview.c (invalite_last_column): split out actual column
4108         invalidation into invalidate_column(),
4109         (gtk_tree_view_size_allocate_columns): invalidate column if the
4110         new width is larger than the old width.
4111         (fixes #102890, reported by Alex Duggan).
4112
4113 2003-01-14  Matthias Clasen  <maclas@gmx.de>
4114
4115         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
4116         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
4117         GTK_MOVEMENT_WORDS.
4118
4119         * gtk/gtktextiter.c,
4120         gtk/gtktextiter.h: Add some variant movement functions which
4121         skip invisible chars, and do some cleanups.
4122
4123 2003-01-12  Tor Lillqvist  <tml@iki.fi>
4124
4125         Merge from stable:
4126                 
4127         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
4128         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
4129         lookup.
4130
4131         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
4132         gdk.def.
4133
4134         * gdk/gdk.def
4135         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
4136
4137         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
4138         gtk-demo}.exe and share/gtk-2.0.
4139
4140         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
4141         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
4142         window style.
4143         (gdk_window_set_type_hint): Add all cases to the switch (not all
4144         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
4145         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
4146         won't know that the skip_taskbar hint is on for the window, is
4147         this bad?
4148
4149 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
4150
4151         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
4152         <string.h> for strlen.
4153
4154         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
4155         <string.h> for strrchr.
4156
4157         * tests/testgtk.c (create_saved_position): "x" and "y" properties
4158         for widgets no longer exist, use gtk_window_move instead.
4159
4160         * test/testtextbuffer.c (check_get_set_text): cast strlen to
4161         int for g_error.
4162
4163 2003-01-08  Matthias Clasen  <maclas@gmx.de>
4164
4165         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
4166         the selection in the presence of invisible segments.
4167
4168 2003-01-07  Matthias Clasen  <maclas@gmx.de>
4169
4170         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
4171         to "select all" and "unselect all".  (#102065)
4172
4173         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
4174         the just_selected_element is unused.
4175
4176         * gtk/gtktextview.c (extend_selection): New helper function to
4177         find the range that should be added to the selection. 
4178         (selection_motion_event_handler): 
4179         (gtk_text_view_start_selection_drag): 
4180         (gtk_text_view_end_selection_drag): 
4181         (selection_motion_event_handler): 
4182         (selection_scan_timeout): Support select-by-words/lines.
4183         (gtk_text_view_button_press_event): Start a selection drag on
4184         double/triple clicks.  (#78499)
4185
4186 2003-01-06  Matthias Clasen  <maclas@gmx.de>
4187
4188         Implement a utility function proposed in #102534:
4189         
4190         * gtk/gtktextbtree.h: 
4191         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
4192         (_gtk_text_btree_place_cursor): Now a simple wrapper around
4193         _gtk_text_btree_select_range().   
4194
4195         * gtk/gtktextbuffer.h: 
4196         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
4197         (gtk_text_buffer_place_cursor): Now a simple wrapper around
4198         gtk_text_buffer_select_range(). 
4199
4200 2003-01-05  Havoc Pennington  <hp@pobox.com>
4201
4202         * configure.in: fix a stray bracket that was breaking the build
4203
4204 2003-01-05  Tor Lillqvist  <tml@iki.fi>
4205
4206         * gtk-zip.sh.in: Use correct DLL and import library names, with
4207         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
4208         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
4209
4210         * configure.in: Improve check for dimm.h.
4211
4212         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
4213         gdk-pixbuf/Makefile.am.
4214
4215         * gdk-pixbuf/makefile.mingw.in
4216         * gdk-pixbuf/pixops/makefile.mingw.in
4217         * gdk/makefile.mingw.in
4218         * gdk/win32/makefile.mingw.in
4219         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
4220
4221         * gdk-pixbuf/Makefile.am
4222         * gdk-pixbuf/pixops/Makefile.am
4223         * gdk/Makefile.am
4224         * gdk/win32/Makefile.am
4225         * gtk/Makefile.am
4226         * configure.in: Remove makefile.mingw{,.in} from here, too.
4227         
4228         * README.win32: Updates. Don't mention the now removed
4229         makefile.mingw files.
4230
4231         * gdk/gdk.def
4232         * gtk/gtk.def: Add a couple of missing entries.
4233
4234         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
4235
4236         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
4237         earlier.
4238
4239         * gdk/win32/rc/Makefile.am: Add hack to help
4240         build/win32/lt-compile-resource decide which kind of libtool
4241         object file to produce.
4242
4243 2003-01-05  Matthias Clasen  <maclas@gmx.de>
4244
4245         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
4246         C-Down step through the sequence of paragraph ends (old behaviour
4247         included paragraph starts).  (#80340, patch by Narayana Pattipati)
4248
4249         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
4250         Check for a tag toggle at the start iterator before calling
4251         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
4252         Elstner)
4253
4254 2003-01-04  Matthias Clasen  <maclas@gmx.de>
4255
4256         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
4257         and /*< private >*/ as appropriate.  (#97211)
4258
4259 2003-01-04  Tor Lillqvist  <tml@iki.fi>
4260
4261         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
4262         distribute gtk-zip.sh.in.
4263
4264         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
4265
4266 2003-01-03  Havoc Pennington  <hp@pobox.com>
4267
4268         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
4269
4270         * docs/text_widget_internals.txt: add a file documenting some of
4271         the text widget internals
4272
4273 2003-01-02  Matthias Clasen  <maclas@gmx.de>
4274
4275         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
4276         return NULL.  (#102069)
4277
4278 2003-01-01  Matthias Clasen  <maclas@gmx.de>
4279
4280         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
4281         a main() in the library is obviously bad. 
4282
4283 2002-12-27  Matthias Clasen  <maclas@gmx.de>
4284
4285         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
4286         cursor at drop point.  (#72384)
4287         (gtk_text_view_size_allocate): Update the horizontal adjustment
4288         value.  (#75694)
4289
4290 2002-12-25  Matthias Clasen  <maclas@gmx.de>
4291
4292         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
4293         selection wrt. to empty lines.  (#90435, #90582, #91619)
4294
4295         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
4296         Keep the cursor on screen.  (#96929)
4297
4298 2002-12-24  Matthias Clasen  <maclas@gmx.de>
4299
4300         * gtk/gtktextbuffer.c (paste_from_buffer): 
4301         (clipboard_text_received): Let the user action span the insertion
4302         and the deletion of the old selection.  (#82844)
4303
4304 2002-12-23  Matthias Clasen  <maclas@gmx.de>
4305
4306         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
4307         Don't call gtk_text_iter_backward_sentence_start() if
4308         count is zero.  (#99115)
4309
4310         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
4311         move_cursor() even if the cursor hasn't moved, since it has the
4312         side effect of canceling the selection.  (#81395, #98537, #98333)
4313
4314 2002-12-22  Matthias Clasen  <maclas@gmx.de>
4315
4316         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
4317         with empty ranges.  (fixes #101564 and #80637)
4318
4319 2002-12-21  Tor Lillqvist  <tml@iki.fi>
4320
4321         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
4322         sets the window style and extended window style, and adjusts the
4323         width and height to take the window decorations into account
4324         earlier. The adjusted width and height used to be ignored. Remove
4325         the local x, y, width and height variables, no need to further
4326         confuse the code by having local copies. (Partial fix, I hope, for
4327         #101588)
4328
4329         (gdk_window_move): When moving top-level windows, take title bar
4330         and border width into account, offsetting the coordinates before
4331         calling SetWindowPos().
4332
4333         (gdk_window_set_decorations, gdk_window_set_functions):
4334         Reimplement, taking into account the peculiar semantics of
4335         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
4336
4337         (gdk_window_get_decorations): Implement. (#98981)
4338         
4339         (gdk_window_set_type_hint): When setting
4340         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
4341         (#79036)
4342
4343         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
4344
4345 2002-12-21  Matthias Clasen  <maclas@gmx.de>
4346
4347         * gtk/gtktextview.c (gtk_text_view_set_background): New static
4348         function to set the background of all windows.
4349         (gtk_text_view_style_set): Use gtk_text_view_set_background().
4350         (gtk_text_view_state_changed): New function; change background
4351         according to state.  (#88126)
4352
4353 2002-12-21  Havoc Pennington  <hp@pobox.com>
4354
4355         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
4356