]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
gtk/gtkdnd.c (_gtk_drag_source_handle_event) Remove use of
[~andy/gtk] / ChangeLog.pre-2-8
1 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
2
3         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
4         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
5         of GDK_POINTER_MOTION_HINT_MASK.
6
7         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
8         of the drag into an idle as a superior form of 
9         expose compression.
10
11         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
12         creation here, so that we have an icon at the start
13         of the drag (e.g., when retrieving the window cache
14         information.)
15
16 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
17
18         * docs/widget_geometry.txt: better drawing of GtkMenuItem
19         * docs/widget_geometry.txt: add notes about GtkMenu
20         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
21
22 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
23
24         * gtk/gtkmenu.c: add vertical_padding style property.
25         
26         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
27         arrow_spacing and horizontal_padding. Also center separators and
28         make them a bit taller.
29
30         * gtk/*menuitem.c: use new style properties.
31         
32         * docs/widget_geometry.txt: Add note about GtkMenuItem
33
34         * gtk/gtkstyle.c 
35         (gtk_default_draw_vline, gtk_default_draw_hline):
36         fix +/-1 errors. 
37
38         (gtk_default_draw_shadow): draw a black border around menus.
39
40         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
41         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
42         x2 and y1, y2 respectively, not x, width and y, height).
43
44 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
45
46         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
47         all the atoms in the target list at once.
48
49         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
50         Local drag short-circuit.
51
52         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
53         local case, poke the actions in directly instead of
54         going through xdnd_set_actions.
55
56         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
57         the local case.
58
59         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
60         XSelectInput()/add a filter if the drag is local.
61
62         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
63         Simplify handling of "XdndSelection".
64
65         * gdk/x11/gdkevents-x11.c (gdk_event_send_client_message_to_all_recurse): Somehow, 
66         a WM_STATE => _NET_WM_STATE change hand been made here.
67
68         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
69         xatom_names, not atom_names.
70
71         * tests/testdnd.c (target_drag_motion): Make the trashcan
72         open again. (Got lost in deprecation cleanup.)
73
74 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
75
76         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
77         earlier, so we don't get a big pile of uncompressed
78         motion events before the grab takes effect.
79
80         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
81         gdk_window_process_all_updates() so that the area
82         we are dragging over gets a change to redraw.
83
84         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
85         gdk_window_get_position(), not gdk_window_get_origin().
86
87         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
88         gdkdisplay-x11.h: use XShapeQueryExtension to 
89         avoid duplicate XQueryExtension when we actually
90         use it. Remove unnecessary caching in GdkDisplayX11.
91
92 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
93
94         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
95         Function to get a range of information about all the
96         children of a window in a single pass.
97
98         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
99         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
100         _gdk_x11_get_window_child_info() to greatly reduce
101         the number of roundtrips.
102
103 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
104
105         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
106         a function to XSendEvent() and call a calback on
107         failure/success.
108
109         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
110         messages to the same process, use _gdk_send_xevent_async().
111
112 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
113
114         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
115         toplevel-specific pieces of GdkWindowImplX11 into
116         a separate GdkToplevelX11 structure.
117
118 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
119
120         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
121         some leftover fields.
122
123 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
124
125         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
126         Use asynchronously _gdk_x11_set_input_focus_safe
127         to avoid having to trap errors and XSync().
128
129         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
130         _gdk_x11_set_input_focus_safe() here as well.
131
132         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
133         Rework handling of property notifies on _NET_WM_STATE
134         so that we ignore _NET_WM_DESKTOP notifies unless we
135         really care.
136
137         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
138         XShmQueryExtension() rather than XQueryExtension() to
139         avoid extra rountrip.
140
141         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
142         Remove unused call to XGetWindowAttributes()
143         
144         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
145         unused call to XGetKeyboardControl().
146
147         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
148         Add (#99571)
149
150         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
151         No-op implementations of gdk_display_flush().
152
153         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
154         gdk_display_flush() rather than gdk_flush() to avoid
155         XSync().
156         
157         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
158         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
159         so that we don't have to get the property back from the server.
160
161         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
162         the serial of when we map a toplevel to allow optimizing
163         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
164
165         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
166         XTranslateCoordinates() for override-redirect windows.
167
168 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
169
170         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
171         about setting window group after the window is mapped from docs
172         - nothing the ICCCM forbids that.
173
174         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
175         Fix g_return_val_if_fail() in void return function.
176
177         * configure.in: Fix misplaced comma that was resulting
178         in XShm always being disabled.
179
180 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
181
182         * tests/stresstest-toolbar: remove this accidentally committed
183         file.
184         
185         * tests/stresstest-toolbar.c: really add this new test
186
187 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
188
189         * tests/stresstest-toolbar.c: new test for removing items
190         
191         * tests/testtoolbar.c: add a popup menu
192
193         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
194           assert widget->parent == container when the container is a
195           toolbar.
196
197         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
198         simpler. Also make correct.
199
200         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
201         popup_context_menu a boolean handled signal.
202
203 2003-07-04  Tor Lillqvist  <tml@iki.fi>
204
205         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
206         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
207         the width and height of the bounding rectangle only after the
208         minumum x and y have been found, and need a separate loop for
209         it. Thanks to Bruce Hochstetler for providing a sample program
210         exhibiting the bug.
211
212 2003-07-03  Tor Lillqvist  <tml@iki.fi>
213
214         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
215         (#116537, Peter Zelezny)
216
217 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
218
219         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
220         fix warning. Assign something to old_value to quiet gcc
221
222         * gtk/gtkcalendar.c 
223         (start_spinning): gtk_timeout_add->g_timeout_add
224
225         * gtk/gtkicontheme.c 
226         (theme_lookup_icon): Make it compile (remove double semicolon)
227
228         * gtk/gtktoolbutton.c
229         (gtk_tool_button_class_init): Long comment about properties.
230         (gtk_tool_button_class_init): Improve text for "use_underline"
231         property
232         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
233         on whether the passed-in label has use_mnemonic set
234         (gtk_tool_button_create_menu_proxy): Split image cloning out in
235         new function. Make that function also handle image with pixbuf
236         storage.
237         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
238         instead of gtk_container_remove().
239         (gtk_tool_button_construct_contents): Fix eliding bug
240
241         * gtk/gtktoolbar.c
242         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
243         by Morten Welinder
244         (gtk_toolbar_button_press): Make popup_context_menu signal provide
245         coordinates and button number
246
247         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
248
249         * tests/apple-red.png: new file
250
251 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
252          
253         * gtk/gtkicontheme.[ch]: Implement a loader for
254         named themed icon based on from gnome-desktop library
255         by Alex Larsson.
256
257         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
258         from gnome-desktop.
259
260         * gtk/gtkiconfactory.[ch]: Add
261         gtk_icon_source_set/get_icon_name() to allow stock icons
262         to be based off of named theme icons.
263
264         * gtk/gtkiconfactory.c: Rework sources so that the source
265         is *either* a pixbuf, or a filename, or an icon name,
266         instead of the pixbuf/filename mix it was before. Put a
267         workaround for get_pixbuf() so that it can return the
268         filename pixbuf, e.g, for render_icon().
269
270         * gtk/gtkiconfactory.c: Make the default setup use
271         themed icons, and add builtin icons to the default
272         icon theme for all the standard pixbufs, so we
273         don't rely on actually having an icon theme on disk.
274
275         * gtk/gtkrc.c: Add support for @"icon-name" to specify
276         a themed icon for a stock icon source.
277
278         * tests/Makefile.am test/testicontheme.c: Add a test
279         program from gnome-desktop.
280
281         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
282         Net/IconThemeName / gtk-icon-theme-name setting.
283
284         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
285         update the icon cache serial so we don't continually
286         think we are out-of-date.
287
288         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
289         to ::direction_set that should have been to ::direction-changed
290
291 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
292
293         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
294         style to the widget.
295
296 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
297
298         * gtk/gtk.h: Add new toolbar headers
299
300         * tests/testtoolbar.c: new file
301
302         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
303
304         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
305
306 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
307
308         * gtk/gtktoolbar.c:
309         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
310         inside a for loop (pointed out by Morten Welinder).
311         (gtk_toolbar_focus_home_or_end): Minor formatting change
312
313         Comments from Owen:
314
315         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
316         gtk_toolbar_elide_underscores instead.
317
318         * gtk/gtktoolbar.c: rename signal from focus_ends to
319         focus_home_or_end.
320         (_gtk_toolbar_elide_underscores): export this as an internal
321         function.
322         (gtk_toolbar_move_focus): add comment explaining difference to
323         gtk_toolbar_focus();
324         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
325         TAB_BACKWARD focus the right widgets in RTL mode
326
327         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
328         "label" and "icon" parameters
329
330         * gtk/gtktoolbutton.[ch]: remove icon_set property.
331
332 2003-07-01  Matthias Clasen  <maclas@gmx.de>
333
334         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.  (116364, Morten Welinder)
335
336         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the corresponding 
337         dialogs.
338
339         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h, gtkcolorbutton.h. 
340         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
341
342         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
343
344         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
345
346         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
347
348         * gtk/gtkexpander.c: Small additions to the docs. 
349
350 2003-07-01  Tor Lillqvist  <tml@iki.fi>
351
352         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
353         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
354
355 2003-07-01  Matthias Clasen  <maclas@gmx.de>
356
357         * configure.in: Check for Xcursor.
358         
359         * gdk/x11/gdkcursor-x11.c:
360         * gdk/gdkdisplay.h: 
361         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
362         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
363         gdk_display_supports_cursor_color(), gdk_display_get_default_cursor_size() and
364         gdk_display_get_maximal_cursor_size().  (#69436)
365
366 2003-06-30  Tor Lillqvist  <tml@iki.fi>
367
368         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
369         callback proc for EnumWindows().
370         (gdk_drag_find_window_for_screen): Actually take the drag_window
371         argument into account: Instead of using WindowFromPoint(), use
372         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
373         M Brown, Herman Bloggs)
374
375         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
376         gdk_window_ref()/unref() calls with g_object_ref()/unref().
377         Consistently use %p format in debugging output of pointers and
378         HANDLEs.
379
380 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
381
382         * gtk/gtkexpander.h: kill some stray characters
383         breaking the build.
384
385 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
386
387         Add GtkExpander. See discussion in bug #60553.
388
389         * gtk/gtkexpander.[ch]: add.
390         
391         * gtk/Makefile.am: build gtk-expander.[ch].
392         
393         * docs/widget_geometry.txt: add info on the layout
394         of GtkExpander.
395
396 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
397
398         * gtkradiotoolbutton.c:         new file
399         * gtkradiotoolbutton.h:            "
400         * gtktoggletoolbutton.c:           "
401         * gtktoggletoolbutton.h:           "
402         * gtktoolbutton.c:                 "
403         * gtktoolbutton.h:                 "
404         * gtktoolitem.c:                   "
405         * gtktoolitem.h:                   "
406         * gtktoolbar.c: many changes
407         * gtktoolbar.h: many changes
408         * gtkseparatortoolitem.c:       new file
409         * gtkseparatortoolitem.h           "
410
411         New toolbar.
412         
413         - Items on a toolbar are now separate widgets, instances of a
414           subclass of GtkToolItem.
415
416         - Items there aren't room for on the toolbar are unmapped, and an
417           overflow menu with a proxy menu item is added instead.
418
419         - The toolbar is keyboard navigatable. Press TAB to focus the
420           first item, then use arrow keys and Ctrl TAB to move around the
421           toolbar. TAB moves focus out of the toolbar.
422
423         - Bascially all of the old toolbar API is deprecated in favor of
424           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
425
426         - The toolbar is backwards compatible with the old toolbar.
427
428 2003-06-29  Matthias Clasen  <maclas@gmx.de>
429
430         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter from docs, some more formatting 
431         fixes. 
432
433 2003-06-28  Tor Lillqvist  <tml@iki.fi>
434
435         Fix for #111028, thanks to J. Ali Harlow, who writes:
436         I found that the GdkPixmap->GdkImage reference really isn't
437         important. It's only really there to have somewhere convenient to
438         store the location of the pixel data in the pixmap and as an easy
439         way of accessing the dimensions of that data. I have therefore put
440         together a fix which removes this reference entirely which seems
441         to solve the problem.
442
443         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
444         Instead of a pointer to a GdkImage, keep a pointer to the pixels
445         directly.
446
447         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
448         (_gdk_win32_new_image): New function, replacing the above. Creates
449         a GdkImage without any associated GdkPixmap.
450         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
451
452         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
453
454         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
455         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
456         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
457         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
458         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
459         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
460         Corresponding changes.
461
462 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
463
464         * gtk/gtktreeviewcolumn.c
465         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
466         and "is_expanded" if the new value is different fromt he old one.
467
468 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
469
470         * docs/faq/gtk-faq.sgml: Fix typos. Update
471         thread example I missed yesterday.
472
473 2003-06-24  Matthias Clasen  <maclas@gmx.de>
474
475         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for shadow_type.
476
477         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
478         (gtk_widget_class_list_style_properties): Use same parameter names as in 
479         header (to silence gtk-doc).
480
481         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
482
483 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
484
485         * docs/faq/gtk-faq.sgml: Thread support updates
486         from Owen. Various suggestions from Steve Chaplin.
487
488 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
489
490         * po/id.po: Updated Indonesian translation
491
492 2003-06-21  Tor Lillqvist  <tml@iki.fi>
493
494         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
495         emulating X11's automatic grab on button down, pass owner_events
496         as FALSE. According to the XLib spec, automatic grabs use True for
497         owner_events when OwnerGrabButtonMask is selected, and I don't see
498         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
499         (find_window_for_pointer_event): Improve debugging output.
500
501 2003-06-17  Tor Lillqvist  <tml@iki.fi>
502
503         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
504         subdirectory, where libtool 1.5 installs them.
505
506         * README.win32: Point to FSF's binary Win32 distribution of
507         gettext-runtime.
508
509 2003-06-17  Matthias Clasen  <maclas@gmx.de>
510
511         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
512         macros to check for XML catalog contents and path, borrowed from
513         gtk-doc. 
514         * configure.in: New option --enable-man to enable regeneration of
515         man pages from Docbook, if the necessary tools are found.
516
517 2003-06-15  Matthias Clasen  <maclas@gmx.de>
518
519         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
520         * gtk/gtknotebook.c (gtk_notebook_class_init): 
521         * gtk/gtkalignment.c (gtk_alignment_class_init): 
522         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
523         as 2.4 additions.
524
525         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
526         to the proper place, immediately before the g_signal_new() call.
527
528         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
529         more obvious.  (#115122, Jeff Franks)
530
531 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
532
533         * gtk/gtkwidget.c: (event_window_is_still_viewable):
534         Special case pixmaps. (#114880)
535         
536 2003-06-12  Matthias Clasen  <maclas@gmx.de>
537
538         * gtk/gtkwidget.c: Document child-notify and drag-data-received
539         signals. Owen, we need to figure out where the best place for
540         these comments in the source is. I currently put them in front of
541         the signals enum.
542
543 2003-06-11  Matthias Clasen  <maclas@gmx.de>
544
545         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
546
547 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
548
549         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
550         silly typo fix. s/seperator/separator/. This gets rid of the
551         assert spam when using TreeView.
552
553 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
554
555         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
556         function for XIM instantiate callback.
557         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
558         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
559         actually made.
560         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
561         for XIM's destroy callback.
562         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
563         is set or not - if it's not set, call xim_info_try_im() to try to
564         initiaize it.
565         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
566         filter_key_release flag of the context.
567         * modules/input/gtkimcontextxim.c (get_ic_real): removed
568         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
569         code from the removed get_ic_real().
570
571         For XIM instantiation, destruction and re-instantiation. With
572         this, Gtk+ apps will be able to connect or reconnect to the XIM,
573         when it starts after the apps, or when the XIM gets lost and recover.
574         (#113099, #107782).
575
576 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
577
578         Merged from stable.
579
580         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
581         check if width is !null, not *width. Doh.
582
583 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
584
585         Merged from stable.
586
587         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
588         Remove the weird dx logic, get all cell_area and background_area
589         calculations right. Not sure what was up with it before. (Fixes
590         #110989, testcase from Vasco Alexandre da Silva Costa).
591
592 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
593
594         * tests/testgtk.c: Make it compile with C89 compilers
595
596 2003-06-10  Matthias Clasen  <maclas@gmx.de>
597
598         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
599         property "overwrite".
600         (gtk_text_view_[gs]et_property): Handle "overwrite".
601         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
602         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
603
604 2003-06-09  Matthias Clasen  <maclas@gmx.de>
605
606         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
607         properties "resize" and "shrink".
608         (gtk_paned_[gs]et_child_property): Implementations of 
609         GtkContainer::[gs]et_child_property.  
610         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
611         paned child properties instead of remove/add hacks.  (#114667, 
612         Soeren Sandmann) 
613
614 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
615
616         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
617         out event->window test - it wasn't needed because
618         of the call to get_widget_coordinates().
619
620         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
621         call to gtk_widget_grab_focus() when not clicking on
622         any tabs. (Real fix for #114534)
623
624 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
625
626         * tests/testdnd.c: Use application/x-rootwindow-drop for
627         root window drops. (#108670, Alex Larsson)
628
629         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
630         Accept either application/x-rootwin-drop (what GTK+ has always used)
631         or application/x-rootwindow-drop (what the XDND standard specifies).
632
633 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
634
635         * gtk/gtkwidget.c (event_window_still_viewable): 
636         Before delivering an event to a widget, check that
637         (if relevant), the event's window is still viewable.
638         (#105642, Dennis Björklund)
639
640         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
641         NULL out private->parent, since after destruction
642         it might not be valid any more.
643
644         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
645         accesses before g_return_val_if_fail(). Treat 
646         DESTROYED windows as unmapped.
647
648 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
649
650         * gtk/gtkentry.c: Recompute unconditionally in
651         gtk_entry_style_set, and in a new gtk_label_screen_changed().
652         Protect the guts of recompute_idle_func() with
653         gtk_widget_has_screen(). (#114040, Morten Welinder) 
654         Fix FALSE/0 confusion.
655         
656 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
657
658         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
659         Fixes (#114669)
660
661 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
662
663         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
664         set_adjustment (viewport, NULL);
665
666 2003-06-07  Matthias Clasen  <maclas@gmx.de>
667
668         * gtk/gtkiconfactory.c (get_default_icons): 
669         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
670         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
671         undelete and revert.  (#96633)
672         
673 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
674
675         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
676         refactoring of code to reduce duplication; fixes include:
677
678         - gtk_viewport_realize(): Position the window correct from adjustment 
679         values. (#110737, Michael Natterer)
680
681         - Remove some division-by-zero checks in places where there is no 
682         longer division. (#110737)
683
684         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
685         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
686         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
687
688         - Switch over to encapsulated lazy-creation for hadjustment/
689         vadjustment; even with the CONSTRUCT property, we need this after
690         destroy.
691
692         - When updating the adjustment, immediate set their values to
693         match the the current range of the viewport, and update the 
694         viewport position to match the value of the new adjustments. 
695         (Part of #1165)
696
697 2003-06-06  Tor Lillqvist  <tml@iki.fi>
698
699         * gdk/win32/gdkprivate-win32.h: Fix typo.
700
701         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
702         graphics_exposures and subwindow_mode, too, even if they aren't
703         currently used.
704
705 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
706
707         Merged from stable.
708
709         * gtk/gtktreeview.c (do_expand_collapse),
710         (expand_collapse_timeout), (cancel_arrow_animation): made
711         expand_collapse_timeout a wrapper with locks around     
712         do_expand_collapse, made cancel_arrow_animation use
713         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
714         Peter Bloomfield).
715
716 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
717
718         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
719         * modules/input/gtkimcontextxim.c (preedit_start_callback,
720         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
721         to keep preedit-[start,changed,end] signals from being called during
722         finalization (#111861).
723
724 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
725
726         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
727         presses that are not on the tab (#114534).
728
729 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
730
731         * demos/Makefile.am: Conditionalize dependencies for
732         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe). 
733         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
734         test-inline-pixbufs.h if we don't have libpng.
735
736         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
737         Add a dependency on gdk-pixbuf.loaders when not 
738         cross-compiling, remove the dependency on gdk-pixbuf-csource
739         when not cross compiling.
740
741 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
742
743         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
744         gtk_window_get_geometry_info() returning NULL.
745         (#107311, John Finlay)
746
747 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
748
749         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
750         twice the border width from the width/height, not
751         1x the border width. (#106336, Rodney Dawes)
752
753 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
754  
755         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
756         If at the end of the buffer, move to the end iter -
757         parallels behavior of move_iter_to_previous_line.
758         (#81960, Padraig O'Briain)
759  
760 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
761
762         #80023, Yao Zhang, TOKUNAGA Hiroyuki
763
764         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
765         Account for the preedit cursor offset if the iter passed
766         in is at the same place as the insertion cursor.
767
768         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
769         Encapsulate getting the insertion cursor location.
770
771         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
772         Pass the real y/height to the IM context. Take 
773         text_view->x/yoffset into account.
774
775 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
776
777         * gtk/gtktextview.[ch]: Never scroll on focus in
778         (#81893, Patch from Paolo Maggi)
779
780         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
781         Scroll to the current cursor location before handling
782         the action, in case the user just tabbed in
783         and the cursor is offscreen.
784
785 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
786          
787          #107883, Gustavo Giráldez
788
789         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
790         Split out the case where we know we changed, and 
791         already dealt with our cached line being invalidated
792         from external calls to gtk_text_layout_changed.
793
794         * gtk/gtktextlayout.c (gtk_text_layout_changed):
795         Check if the invalidate yrange intersects our
796         cached line, and clear it if necessary.
797
798 2003-06-05  Tor Lillqvist  <tml@iki.fi>
799
800         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
801         filters.
802
803 2003-06-05  Matthias Clasen  <maclas@gmx.de>
804
805         * gtk/gtktextview.c: Fix for #84668, reported by Torbjörn Andersson:
806         (gtk_text_view_grab_notify): 
807         (gtk_text_view_state_changed): Implement these
808         to unobscure cursor when grab shadowed or insensitised.
809         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
810         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
811         gtk_text_view_motion_event().
812         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
813
814         * gtk/gtktextview.c (select_all): New keybinding signal for
815         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
816
817         * gtk/gtkcalendar.c (calendar_timer): 
818         (stop_spinning): Replace deprecated gtk_timeout_* functions by
819         their GLib counterparts.  (#114429)
820
821         * gtk/gtktreestore.c (gtk_tree_store_new): 
822         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
823         types.
824
825 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
826
827         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
828         When drawing underlines, join up adjacent runs
829         where possible, so we don't get changes in 
830         shaper/font/etc. breaking underlines. (#103662,
831         Kang Jeong-Hee)
832
833 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
834
835         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
836         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
837         improve the speed of inserting rows into an already sorted list,
838         #109292
839
840 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
841
842         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
843         track of when we have a clip mask set for the GC,
844         and when we unset it, or switch to a clip region,
845         immediately call XSetClipMask (..., None) to avoid
846         Xlib caching stale data. (#111806)
847
848         * gtk/gtktextdisplay.c: Don't set a clip mask
849         when drawing alpha pixmaps; it isn't necessary any more.
850         (#111806)
851
852 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
853
854         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
855         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
856         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
857         (#92548, Tim Evans)
858
859         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
860         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
861         Use state_type = STATE_INSENSITIVE for insensitive menu items.
862
863 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
864
865         Merged from stable.
866
867         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
868         assert for get_info. (reported by Michael Natterer),
869         (gtk_tree_view_expand_all_emission_helper),
870         (gtk_tree_view_expand_all_helper): emit row_expanded for all
871         expanded rows during an _expand_all operation. (Fixes #111280,
872         reported by Benjamin Bayart).
873
874 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
875
876         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
877         respond to pings on a root window; prevents infinite
878         loops if we are selecting for SubstructureNotify on the
879         root window. (#111945, Sergey V. Udaltsov)
880
881 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
882
883         #71597, reported by Morten Welinder
884
885         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
886         (Patch from Christian Petig)
887
888         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
889         Major rewrite of 555 and 565 conversion routines:
890
891         - Move all the bit shifting into a small block of macros,
892           eliminating much duplication of complicated arithmetic.
893         - Get rid of 2-pixels at a time code, which was buggy,
894           hard to maintain, caused unaligned accesses, and
895           probably didn't actually perform any better.
896         - Simplify cases where different data types were
897           used for the little and big endian cases, use
898           GUINT16_SWAP_LE_BE() where appropriate.
899                 
900 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
901
902         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
903         bad optimization for src_rowstride == dest_stride.
904         (Didn't consider the case where we were copying only
905         partial widths of a wider source buffer)
906         (#113034, reported by Hans Petter Jansson)
907
908 2003-06-03  Michael Natterer  <mitch@gimp.org>
909
910         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
911         reenabled button_release events for xinput devices. (#113948)
912
913 2003-06-03  Christian Rose  <menthos@menthos.com>
914
915         * configure.in: Added "li" to ALL_LINGUAS.
916
917 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
918
919         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
920         map the event window if the notebook isn't mapped. (#113980,
921         Richard Reich)
922
923 2003-06-02  Sven Neumann  <sven@gimp.org>
924
925         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
926
927         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
928
929 2003-06-01  Matthias Clasen  <maclas@gmx.de>
930
931         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
932         Since: 2.4 to the docs.
933
934         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
935         an example to the docs.  (#98427)
936
937 2003-05-30  Murray Cumming  <murrayc@usa.net>
938
939         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
940         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
941         uses the new private data system - see g_type_class_add_private() in
942         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
943
944 2003-05-30  Matthias Clasen  <maclas@gmx.de>
945         
946         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
947         signature of gtk_notebook_draw_arrow() for Solaris builds to go
948         through.  (#114043, Anand Subramanian)
949
950 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
951
952         * modules/input/imipa.c: 
953         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
954
955 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
956
957         * gtk/gtkimmodule.c (_gtk_im_module_list):
958         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
959
960 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
961
962         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
963         label of default input method localizable.
964         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
965         use translations of input method context names
966         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
967           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
968           modules/input/imti-er.c, modules/input/imti-et.c
969           modules/input/imviqr.c, modules/input/imxim.c
970         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
971         (#113850).
972
973 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
974
975         Merged from stable.
976
977         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
978         grab separate, the user might clear the tree in the focus-in
979         callback. (Fixes #113086, testcase from Felipe Heidrich).
980
981 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
982
983         Merged from stable.
984
985         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
986         of row reference when we unset the model. Also reset
987         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
988
989 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
990
991         Merged from stable.
992
993         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
994         the current editing, if it exists. (Fixes #108956, reported by
995         Michael Natterer).
996
997 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
998
999         Merged from stable.
1000
1001         * gtk/gtktreeview.c (check_selection_helper): new function,
1002         (gtk_tree_view_row_deleted): traverse the tree from the
1003         deleted node to see whether the selection changed, instead of
1004         just checking this node. (Fixes #107400, reported by 'Duncan').
1005
1006 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
1007
1008         Merged from stable.
1009
1010         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
1011         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
1012         instead of _maybe_begin_dragging_row, so the icon can be
1013         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
1014
1015 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
1016
1017         Merged from stable.
1018
1019         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
1020         cell_area x/width for the expander if needed. (Fixes #101748,
1021         reported by Dave Cook and Mariano Suarez-Alvarez).
1022
1023 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
1024
1025         Merged from stable.
1026
1027         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
1028         if tree/node are still the same after _internal_select_node.
1029         (Fixes #92256, reported by edscott).
1030
1031 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
1032
1033         Fixes #75745, reported by Richard Hult. Merged from stable.
1034
1035         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
1036         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
1037         cursor or not.
1038
1039         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1040         if we are rendering a cursor row, and the cell the be
1041         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
1042         flag (else we unset it).
1043
1044 2003-05-27  Matthias Clasen  <maclas@gmx.de>
1045
1046         * gtk/gtkwindow-decorate.c: 
1047         * gtk/gtktreeprivate.h: 
1048         * gtk/gtkdnd.c: 
1049         * gdk/win32/gdkwindow-win32.h: 
1050         * gdk/linux-fb/gdkprivate-fb.h: 
1051         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
1052         unspecified signedness.  (#112919, Morten Welinder)
1053
1054         * gtk/queryimmodules.c (escape_string): 
1055         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
1056         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
1057         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
1058         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
1059         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
1060         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
1061         Morten Welinder) 
1062
1063 2003-05-27  Tor Lillqvist  <tml@iki.fi>
1064
1065         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
1066         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
1067
1068         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
1069         win32/libgdk-win32.la.
1070
1071         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
1072
1073 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1074
1075         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
1076         scrollbar slider length 21 instead of 7.
1077
1078 2003-05-23  Matthias Clasen  <maclas@gmx.de>
1079
1080         * gtk/gtknotebook.c: Add support for up to four scroll
1081         arrows. Control their display by new style properties
1082         "has_forward_stepper", "has_backward_stepper",
1083         "has_secondary_forward_stepper" and
1084         has_secondary_backward_stepper". (#110540)
1085
1086         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
1087         click_child three bits wide, add
1088         has_{before,after}_{previous,next} fields.
1089
1090         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
1091         focus out of hex_entry.  (#112665)
1092         (hex_focus_out): New signal handler for focus out of hex entry.
1093
1094 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
1095
1096         * gtk/gtkwidget.c (gtk_widget_realize): 
1097         g_return_if_fail() if
1098         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
1099         (#107872, Christian Reis)
1100
1101 2003-05-22  Matthias Clasen  <maclas@gmx.de>
1102
1103         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
1104         (gtk_file_selection_rename_file): Some keynav improvements for the
1105         "Rename File" and "Create Directory" subdialogs: Enter in entry
1106         activates default, default is "Create"/"Rename", Escape cancels
1107         dialog.  (#113110)
1108         (gtk_file_selection_set_filename): Add a hint about opening 
1109         directories.  (#113175)
1110
1111 2003-05-22  Matthias Clasen  <maclas@gmx.de>
1112
1113         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
1114         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
1115         anyway.  (#113476)
1116
1117 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
1118
1119         * gtk/gtkprogress.c (gtk_progress_set_format_string,
1120         gtk_progress_set_show_text): Always queue a resize ... 
1121         we rely on the size-allocate to do the update, plus a 
1122         different format can actually change our size requisition.
1123         (#111052, Vasco Alexandre da Silva Costa)
1124
1125         * gtk/gtkprogress.c (gtk_progress_changed): Track
1126         ::changed as well as ::value_changed, and queue a
1127         resize on ::changed when necessary.
1128
1129         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
1130         Call gtk_progress_changed() here to update or 
1131         queue a resize as necessary.
1132
1133 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
1134
1135         * gtk/gtkimcontextsimple.c: added composing rules of
1136         Greek accented letters, patch by Vasilis Vasaitis (#107507)
1137
1138 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
1139
1140         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
1141         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
1142         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
1143
1144 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
1145
1146         * gtk/gtkimcontextsimple.c: 
1147         code that can check the compose table for ascending order,
1148         by Vasilis Vasaitis (#104862).
1149
1150 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
1151
1152         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
1153         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
1154         to handle the case where a modifier not in the mask
1155         (like Num_Lock) changes the key value, so replace
1156         the masked state with a state/mask pair. (#106913,
1157         Olivier Ripoll)
1158
1159         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
1160         in state/mask pair to _gtk_key_hash_lookup()
1161
1162 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
1163
1164         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
1165         fix a memory leak, free input context list (#113259).
1166
1167 2003-05-21  Matthias Clasen  <maclas@gmx.de>
1168
1169         * configure.in (all_loaders): Add pcx.
1170
1171         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
1172
1173 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
1174
1175         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
1176         accept a missing gtk.immodules file, some people
1177         want to run without one. (#112406, patch from
1178         Arnaud Charlet)
1179
1180 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
1181
1182         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
1183         height/width confusion (#113370, Xan Lopez)
1184
1185 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
1186
1187         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
1188         zero all unused parts of client messages (Mainly Motif DND
1189         and EWMH). Also, fix a couple places where we were putting
1190         contents into Motif DND messages that didn't belong.
1191         (#113361, EWMH problem reported by Lubos Lunak)
1192
1193         * gtk/gtkselection.c (_gtk_selection_request): Handle the
1194         case where the property type for the multiple atoms is
1195         ATOM_PAIR by doing the conversions ourselve. This is
1196         needed for Xt inter-operation.
1197
1198 2003-05-19 Arafat Medini <lumina@silverpen.de>
1199
1200         * configure.in: Added ar to ALL_LINGUAS
1201
1202 2003-05-19  Matthias Clasen  <maclas@gmx.de>
1203
1204         * gtk/gtksettings.c (gtk_rc_property_parse_border,
1205         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
1206         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
1207         Add docs.
1208
1209         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
1210         gtk_widget_class_install_style_property_parser): Add docs. 
1211
1212 2003-05-17  Matthias Clasen  <maclas@gmx.de>
1213
1214         * tests/prop-editor.c: Add navigation for object properties, so
1215         that you can easily edit the properties of the parent of a widget.
1216         (#113152)
1217
1218 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
1219
1220         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
1221         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
1222         inconsistency and leave the old name as an aliass (#104873)
1223
1224 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
1225
1226         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
1227         from Charles Schmidt to add missing notify (#108305)
1228
1229 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
1230  
1231         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
1232         (#105500, Morten Welinder.)
1233  
1234 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
1235
1236         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
1237         instead of gumake for XNFilterEvents event mask(#110493).
1238
1239 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
1240
1241         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
1242         a GObject. (#112762)
1243
1244 2003-05-08  Sven Neumann  <sven@gimp.org>
1245
1246         * configure.in: set the HAVE_X11R6 automake conditional to false
1247         if not compiling for X11.
1248
1249 2003-05-08  Matthias Clasen  <maclas@gmx.de>
1250
1251         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
1252         (gtk_calendar_get_display_options): New functions.
1253         (gtk_calendar_display_options): Depreate.  (#64567)
1254         (gtk_calendar_class_init): Add boolean properties for the display
1255         options.  (#50949)
1256
1257 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
1258
1259         Patch from James Henstridge to update to automake-1.7
1260         (#109542)
1261  
1262         * autogen.sh: update to call newer tools.
1263  
1264         * configure.in: various updates, to use M4 macros to put
1265         variables that change each release at the top.
1266         Use AC_HELP_STRING to format help strings.
1267         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
1268  
1269         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
1270         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
1271         during distcheck.
1272  
1273         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
1274         makefile fragment.
1275  
1276         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
1277         Use BUILT_SOURCES where appropriate.
1278         Build generated files in builddir rather than srcdir.
1279         Fix uninstall and distclean targets to satisfy distcheck.
1280
1281         ===
1282
1283         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
1284         built first, since we are now using BUILT_SOURCES.
1285
1286         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
1287
1288         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
1289         with geninclude.pl.
1290
1291         * configure.in: Update versions to 2.3.0.
1292  
1293 2003-05-06  Tor Lillqvist  <tml@iki.fi>
1294
1295         Fix for #110165 (thanks to Arnaud Charlet):
1296         
1297         * gdk/win32/gdkevents-win32.c (build_keypress_event,
1298         build_keyrelease_event): For unshifted control char, use
1299         lowercase ASCII keyval.
1300         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
1301         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
1302         lowercase keyval. Use build_key_event_state() here, too, instead
1303         of minor code duplication.
1304
1305 2003-05-06  Matthias Clasen  <maclas@gmx.de>
1306
1307         * tests/testmultidisplay.c: Don't include strings.h, it's not
1308         needed anymore.  (#112388)
1309
1310         * examples/menu/itemfactory.c: 
1311         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
1312         itemfactory example.
1313
1314 2003-05-05  Matthias Clasen  <maclas@gmx.de>
1315
1316         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
1317         icon type to the stock icon type.  (#111735, Dave Bordoley)
1318
1319 2003-05-05  Christian Rose  <menthos@menthos.com>
1320
1321         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
1322         Removed sp, it's replaced by sr@Latn.
1323
1324 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
1325
1326         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
1327         Gonzalo Odiard
1328
1329 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
1330
1331         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
1332         data iff the destroy func isn't NULL.
1333
1334 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
1335
1336         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
1337
1338 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
1339
1340         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
1341
1342 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
1343
1344         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
1345         of UTF-8. (#106419, Roozbeh Pournader)
1346
1347 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
1348
1349         * configure.in: Only check for XFT2 if we found pango-xft
1350         (#105692, Jon Nall)
1351
1352 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
1353
1354         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
1355         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
1356
1357 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
1358
1359         * docs/faq/gtk-faq.sgml: add note about version converage.
1360
1361 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
1362
1363         * gtk/gtksocket.c (activate_key): Fix prototype for
1364         activate_key. (#108927, Jason D. Hildebrand)
1365
1366 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
1367
1368         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
1369         Remove geninclude.pl from CVS and don't dist it either,
1370         it is generated. (#108970, Rich Kinder)
1371
1372 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
1373
1374         * gtk/gtkobject.h: Remove a couple of obsolete comments,
1375         fix another comment. (#109737, Britton Kerin)
1376
1377 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
1378
1379         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
1380         the source list, not just it's contents (Patch
1381         from Charles Kerr, #108243)
1382
1383 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
1384
1385         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
1386         from Alex Larsson fixing problem with restacking during
1387         DND. (#108671)
1388
1389 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
1390
1391         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
1392         Calling XFlush() after ungrabbing, to avoid problems if
1393         the app subsequently blocks on a long-running operation.
1394         (#106520, reported by Rajkumar Siva)
1395
1396 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
1397
1398         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
1399         SKIP_TASKBAR/SKIP_PAGER to set of properties we
1400         might set on map. (#110019, problem reported
1401         by Loban Rahman)
1402
1403 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
1404
1405         * gdk/gdkevents.c (gdk_event_copy): Fix for the
1406         case when gdk_event_copy() is called on a non-allocated
1407         event. (#109716, reported by Rich Burridge)
1408
1409 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
1410
1411         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
1412         Fix pointer arithmetic on 'void *'. (#108322)
1413
1414 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
1415
1416         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
1417         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
1418         use of XAddConnectionWatch. Remove --enable-xim config option.
1419         Should fix building on X11R6 (#110523, Albert Chin)
1420
1421 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
1422
1423         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
1424         Patch from Morten Welinder to catch Sun servers with a 
1425         broken implementation of the RENDER extension. (#108309)
1426
1427 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
1428
1429         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
1430         gdk_free_compound_text(), not g_free(). (#107643,
1431         Michael Zucchi)
1432
1433 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
1434
1435         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
1436         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
1437         wrong use of base_finalize. (#105126, Sven Neumann)
1438
1439 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
1440
1441         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
1442         '/' vs. '*' problem in aspect ration computations. (#108237)
1443
1444 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
1445
1446         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
1447         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
1448         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
1449         event, so select for both. (#108406, Egmont Koblinger)
1450
1451 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
1452
1453         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
1454         caused by not clearing the scroll_to_path.
1455
1456 2003-04-16  Matthias Clasen  <maclas@gmx.de>
1457
1458         * gtk/gtkstyle.c: Doc additions and fixes.
1459
1460         * gtk/gtktreeviewcolumn.c
1461         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
1462
1463 2003-04-14  Michael Natterer  <mitch@gimp.org>
1464
1465         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
1466         that the iter is not reordered to its own position. Prevents model
1467         corruption for the case that the store contains only a single item
1468         (fixes bug #108387).
1469
1470         Unrelated:
1471
1472         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
1473         new list element later so we don't leak it if we decide to return
1474         early.
1475
1476         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
1477         set selection->tree_view->priv->anchor to NULL after freeing it.
1478
1479 2003-04-13  Matthias Clasen  <maclas@gmx.de>
1480
1481         * gtk/gtktreeviewcolumn.c
1482         (gtk_tree_view_column_cell_get_position): Document. 
1483
1484         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
1485         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
1486         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
1487         these as 2.4 additions.
1488
1489 2003-04-09  Matthias Clasen  <maclas@gmx.de>
1490
1491         * INSTALL.in: Fix the real thing.
1492
1493         * INSTALL: Typo fix.
1494
1495 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
1496
1497         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
1498         after ungrabbing the server.
1499  
1500         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
1501         calls to XFlush().
1502
1503         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
1504         Use gdk_x11_display_grab/ungrab.
1505
1506         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
1507         use_xshm to TRUE so SHM gets used when present.
1508  
1509 2003-04-07  Matthias Clasen  <maclas@gmx.de>
1510
1511         * gtk/gtktextlayout.c (set_para_values): 
1512         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
1513         David Brigada)
1514
1515         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
1516         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
1517         misspellings of possessive "its".  (#110027, Doug Quale)
1518
1519 2003-04-03  Matthias Clasen  <maclas@gmx.de>
1520
1521         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
1522         current directory if it looks like the srcdir.  (#109357)
1523
1524 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1525
1526         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
1527         focus_on_click
1528
1529         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
1530         navigation not wrap around.
1531
1532 2003-04-02  Matthias Clasen  <maclas@gmx.de>
1533
1534         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
1535         Return 0 if lower == upper.  (#109155)
1536         (gtk_progress_get_current_percentage): Use
1537         gtk_progress_get_percentage_from_value().
1538
1539 2003-04-01  Matthias Clasen  <maclas@gmx.de>
1540
1541         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
1542         (#109510, Noah Levitt)
1543
1544 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
1545
1546         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
1547         members so Purify won't complain.
1548
1549         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
1550
1551 2003-03-31  Matthias Clasen  <maclas@gmx.de>
1552
1553         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
1554         gtk_window_[gs]et_role().  (#93904)
1555
1556 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
1557
1558         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
1559         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
1560
1561 2003-03-29  Matthias Clasen  <maclas@gmx.de>
1562
1563         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
1564         of labels back to normal before reparenting back.  (#102387)
1565
1566         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
1567         a default window title to match the GtkFontSelectionDialog behavior.
1568  
1569         (gtk_color_selection_dialog_new): Don't call
1570         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
1571
1572 2003-03-29  Matthias Clasen  <maclas@gmx.de>
1573
1574         Fix for bug #78499:
1575         
1576         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
1577         select_lines. 
1578
1579         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
1580         select_lines on double/triple click.
1581
1582         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
1583         select-by-words and select-by-lines behaviour.
1584
1585         Fixes for bug #56248:
1586         
1587         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
1588         timer and queue a redraw. 
1589         (gtk_notebook_grab_notify): 
1590         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
1591         if necessary.   
1592         (gtk_notebook_button_release): Use stop_scrolling().
1593         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
1594
1595         * gtk/gtkrange.c (stop_scrolling): New function to remove the
1596         grab, remove the timer and queue a redraw.
1597         (gtk_range_grab_notify): 
1598         (gtk_range_state_changed): New functions to call stop_scrolling() 
1599         if necessary.   
1600         (gtk_range_button_release): Use stop_scrolling().
1601
1602         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
1603         (gtk_spin_button_state_changed): Redraw after stop_spinning.
1604         (gtk_spin_button_stop_spinning): Reset click_child to correct the
1605         drawing of the arrows.
1606         (gtk_spin_button_button_release): Use a local copy of click_child,
1607         since stop_spinning() resets it.
1608
1609         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
1610         C-A-PgDown as alternatives to the A-less variants. (This slipped
1611         in accidentally some time ago).  (#97860)
1612
1613 2003-03-26  Sven Neumann  <sven@gimp.org>
1614
1615         * gtk/gtktreeview.c: rewrote the function that does node and arrow
1616         prelighting, queue all redraws from here (Fixes bug #108792).
1617
1618 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
1619
1620         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
1621         Fixes bug #108778.
1622
1623 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
1624
1625         * configure.in: Added "ml" in ALL_LINGUAS
1626
1627 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
1628
1629         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
1630         G_DISABLE_DEPRECATED.
1631
1632 2003-03-14  Tor Lillqvist  <tml@iki.fi>
1633
1634         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
1635         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
1636         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
1637         multiple monitors can have negative coordinates on some of the
1638         monitors. (partial fix for #99496, Arnaud Charlet)
1639
1640 2003-03-15  Matthias Clasen  <maclas@gmx.de>
1641
1642         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
1643
1644 2003-03-13  Sven Neumann  <sven@gimp.org>
1645
1646         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
1647         removed redundant calls to g_object_notify().
1648         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
1649         bug #108236.
1650
1651         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
1652         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
1653         functions return an integer value).
1654
1655 2003-03-13  Tor Lillqvist  <tml@iki.fi>
1656
1657         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1658         WM_MOUSEMOVE, the test whether we have actually moved (and thus
1659         shouldn't generate an GDK event) moved after the call to
1660         propagate() and translate_mouse_coords(). Otherwise we were
1661         testing wrong values. (#108115, Allin Cottrell)
1662         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
1663         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
1664
1665         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
1666         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
1667         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
1668         cursor right away with SetCursor(), as we won't get any
1669         WM_SETCURSOR messages while the mouse is captured. 
1670         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
1671         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
1672
1673         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1674         WM_SYSCHAR, return FALSE from the window procedure to prevent the
1675         DefWindowProc from being called. Otherwise Windows would beep,
1676         thinking you are tring to access a (nonexistent) menu when you
1677         press Alt-something. Don't do this for Alt-Space,
1678         though. (#107454, Martyn Russell)
1679
1680         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
1681
1682 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
1683
1684         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
1685         [left/right] expands/collapses the tree, #108092
1686
1687 2003-03-09  Tor Lillqvist  <tml@iki.fi>
1688
1689         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
1690         compensate for LineTo() not drawing the end pixel. It causes more
1691         harm than benefits, see bug #81895.
1692
1693 2003-03-08  Matthias Clasen  <maclas@gmx.de>
1694
1695         Bug #107664 continued:
1696
1697         * gdk/x11/gdkinputprivate.h: 
1698         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
1699         (_gdk_input_other_event): Return gboolean.
1700         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
1701         (_gdk_input_other_event): Return gboolean.
1702         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
1703
1704         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
1705         gboolean, remove pointless call to _gdk_input_window_none_event.
1706
1707         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
1708         (_gdk_input_window_none_event): Remove.
1709
1710         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
1711         (_gtk_text_iter_get_any_segment): 
1712         (_gtk_text_iter_get_segment_byte): 
1713         (_gtk_text_iter_get_segment_char): 
1714         (_gtk_text_iter_get_text_line): 
1715         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
1716         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
1717         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
1718         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
1719         (gdk_window_get_origin): 
1720         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
1721
1722 2003-03-06  Matthias Clasen  <maclas@gmx.de>
1723
1724         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
1725         (#107664, Morten Welinder)
1726
1727         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
1728         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
1729         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
1730         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
1731
1732         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
1733         * gtk/gtkeditable.c (gtk_editable_get_chars): 
1734         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
1735         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
1736         (#107648, Morten Welinder)Fix NULL/FALSE confusion
1737         (#107648, Morten Welinder)
1738
1739 2003-03-04  Matthias Clasen  <maclas@gmx.de>
1740
1741         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
1742
1743 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
1744
1745         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
1746         handle rtl code.  Thanks to Matthias Clasen for an initial patch
1747         to handle the RTL code.
1748
1749         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
1750
1751         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
1752
1753         * gtk/gtktreeview.c: (invalidate_column),
1754         (invalidate_last_column),
1755         (gtk_tree_view_get_real_requested_width_from_column),
1756         (gtk_tree_view_size_allocate_columns),
1757         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
1758         (gtk_tree_view_button_release_drag_column),
1759         (gtk_tree_view_update_current_reorder),
1760         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
1761         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
1762         (gtk_tree_view_get_background_xrange),
1763         (gtk_tree_view_get_arrow_xrange),
1764         (gtk_tree_view_is_expander_column),
1765         (gtk_tree_view_set_column_drag_info),
1766         (gtk_tree_view_move_cursor_left_right):
1767         Add RTL support.
1768
1769         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
1770         expand flag.
1771
1772         * gtk/gtktreeviewcolumn.c:
1773         (gtk_tree_view_column_class_init),
1774         (gtk_tree_view_column_set_property),
1775         (gtk_tree_view_column_get_property),
1776         (gtk_tree_view_column_set_expand),
1777         (gtk_tree_view_column_get_expand),
1778         (gtk_tree_view_column_cell_process_action):
1779         Add support for expand flag.  Thanks to Kristian Rietveld for an
1780         initial patch for this.
1781
1782 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
1783
1784
1785 2003-03-02  Tor Lillqvist  <tml@iki.fi>
1786
1787         * gdk/gdk.def
1788         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
1789         Gustin.
1790
1791 2003-03-01  Matthias Clasen  <maclas@gmx.de>
1792
1793         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
1794         (gtk_scrolled_window_set_hadjustment): Replace uses of
1795         gtk_object_new by g_object_new.
1796
1797 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
1798
1799         * demos/gtk-demo/main.c
1800         * demos/gtk-demo/tree_store.c
1801         * gdk/x11/gdkscreen-x11.c
1802         * gtk/gtkcellrenderertoggle.c
1803         * gtk/gtkcolorsel.c
1804         * gtk/gtkdnd.c
1805         * gtk/gtkeditable.c
1806         * gtk/gtkentry.c
1807         * gtk/gtkmenu.c
1808         * gtk/gtkmenubar.c
1809         * gtk/gtkmenuitem.c
1810         * gtk/gtkmenushell.c
1811         * gtk/gtkrc.c
1812         * gtk/gtksettings.c
1813         * gtk/gtkstyle.c
1814         * gtk/gtktextbuffer.c
1815         * gtk/gtktextview.c
1816         * gtk/gtktreeviewcolumn.c
1817         * tests/testgtk.c
1818         * tests/testtext.c
1819         * tests/testtreeedit.c
1820         * tests/testtreefocus.c
1821         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
1822
1823 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
1824
1825         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
1826         code.
1827
1828 2003-02-24  Sven Neumann  <sven@gimp.org>
1829
1830         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
1831
1832 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
1833
1834         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
1835
1836 2003-02-20  Matthias Clasen  <maclas@gmx.de>
1837
1838         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
1839         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
1840
1841         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
1842         (gtk_text_view_update_adjustments): Make sure cursor stays visible
1843         during horizontal scrolling.  (#75270)
1844
1845 2003-02-19  Matthias Clasen  <maclas@gmx.de>
1846
1847         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
1848         counterparts. (#106532)
1849
1850         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
1851         keys_changed virtual function with the keys_changed signal.
1852         (#106512, Jeff Franks)
1853
1854 2003-02-15  Larry Ewing  <lewing@ximian.com>
1855
1856         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
1857
1858 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
1859
1860         * po/id.po: Added Indonesian translation
1861         * configure.in: Added "id" to ALL_LINGUAS
1862
1863 2003-02-14  Matthias Clasen  <maclas@gmx.de>
1864
1865         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
1866
1867 2003-02-12  Christian Rose  <menthos@menthos.com>
1868
1869         * configure.in: Added "yi" to ALL_LINGUAS.
1870
1871 2003-02-12  Matthias Clasen  <maclas@gmx.de>
1872
1873         Fix for #82734 and #78216:
1874         
1875         * gtk/gtktextview.c (delete_cb): 
1876         (select_all_cb): New callbacks for context menu items.
1877         (popup_targets_received): Add "Delete" and "Select All" to context
1878         menu, mnemonics and title caps for all items.
1879
1880         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
1881         context menu item.
1882         (popup_targets_received): Add "Delete" to context menu, mnemonics
1883         and title caps for all items.
1884
1885 2003-02-09  Tor Lillqvist  <tml@iki.fi>
1886
1887         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
1888         GetDriveType() to recognize removable drives (in order to avoid
1889         hanging if trying to access an empty floppy drive), instead of
1890         hardcoding A: and B: (#105654).
1891
1892 2003-02-09  Matthias Clasen  <maclas@gmx.de>
1893
1894         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
1895         names.  (#57680)
1896
1897 2003-02-09  Christian Rose  <menthos@menthos.com>
1898
1899         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
1900
1901 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
1902
1903         * gtk/gtkobject.c: remove quark_user_data usage in
1904         gtk_object_{g|s}et_user_data(). fixes get_user_data()
1905         returning NULL for user_data set through property interface.
1906
1907         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
1908         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
1909         need to be a programming error (in case of loaded data), (b) it breaks
1910         with 2.0 behaviour where extra magic could be used to create empty
1911         images. don't attempt to retrieve pixbufs from NULL extra_data.
1912
1913 2003-02-06  Matthias Clasen  <maclas@gmx.de>
1914
1915         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
1916         a GdkVisual *, not a GdkVisual **.  (#105243)
1917
1918         * gtk/gtkclist.c: 
1919         * gtk/gtkctree.c: 
1920         * gtk/gtkcontainer.c: 
1921         * gtk/gtkdnd.c: 
1922         * gtk/gtkentry.c: 
1923         * gtk/gtklist.c:
1924         * gtk/gtkmenu.c:
1925         * gtk/gtkmenuitem.c:
1926         * gtk/gtknotebook.c:
1927         * gtk/gtkselection.c:
1928         * gtk/gtkspinbutton.c:
1929         * gtk/gtktext.c:
1930         * gtk/gtktextview.c:
1931         * gtk/gtktooltips.c:
1932         * gtk/gtktreeview.c:
1933         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
1934         their non-deprecated GLib counterparts.
1935         
1936         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
1937         
1938 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
1939
1940         * docs/tutorial/gtk-tut.sgml: cleanups from
1941         Sebastian Rittau (#104832)
1942
1943 2003-02-01  Tor Lillqvist  <tml@iki.fi>
1944
1945         Merge from stable:
1946
1947         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
1948         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
1949         (#104108, Naofumi Yasufuku)
1950
1951         * gdk/gdk.def: Export the above. Export
1952         gdk_screen_get_system_visual, noticed by Ed Woods.
1953
1954 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
1955
1956         * demos/pixbuf-demo.c
1957         * demos/testpixbuf.c
1958         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
1959
1960 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
1961                                                                                 
1962         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
1963         on the tab_label before unparenting it, in case the unparent
1964         drops the refcount to 0.
1965
1966 2003-02-01  Matthias Clasen  <maclas@gmx.de>
1967
1968         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
1969         headers. Sorry about gtk_selection_clear, Yosh.
1970
1971 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
1972
1973         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
1974         too, for gtkwidget.c. Remember people, when introducing new
1975         deprecations, make sure internal code isn't using it, or if so,
1976         reorganize appropriately like I've done in other places.
1977
1978         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
1979
1980 2003-01-31  Matthias Clasen  <maclas@gmx.de>
1981
1982         * gtk/gtkselection.h: 
1983         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
1984
1985         * gdk/gdkpixbuf.h: 
1986         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
1987         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
1988
1989         * gtk/gtkcolorsel.h:
1990         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
1991         Deprecate.  (#98167)
1992
1993         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
1994
1995         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
1996         and gtk_input_* functions.  (#71596)
1997         
1998         * gtk/gtkentry.c (gtk_entry_move_cursor): 
1999         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
2000         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
2001
2002         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
2003
2004         * gtk/gtkitemfactory.h: 
2005         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
2006         (#69244)
2007
2008 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
2009
2010         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
2011         only count the special cell if it is also visible,
2012         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
2013         account from visible cells,
2014         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
2015         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
2016         tracking bug was #104563).
2017         
2018 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
2019
2020         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
2021         subtract expander space and focus line space from the extra space
2022         we are about the allocate. (Fixes #104635).
2023
2024 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
2025
2026         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
2027         (Fixes #96242, patch from Soeren Sandmann).
2028
2029 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
2030
2031         * gtk/gtknotebook.c: Patch from Soeren Sandmann
2032         to update the states of the tab label child
2033         widgets to match the state of the tabs. 
2034         (#93389, Reported by Tommi Komulainen)
2035
2036 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
2037
2038         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
2039         EXTRA_DIST, and from dist rules. (#102231)
2040
2041 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
2042
2043         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
2044         function that sets the icon's and label's packing options and
2045         visibility based on toolbar->style.
2046
2047         (gtk_toolbar_internal_insert_element):
2048         (gtk_real_toolbar_style_changed): Make use of
2049         set_child_packing_and_visibility() to clean up the code and get
2050         the packing right for icon-only/text-only toolbars. (#104679)
2051
2052         (get_first_child): Remove, and use gtk_bin_get_child() instead.
2053
2054 2003-01-30  Matthias Clasen  <maclas@gmx.de>
2055
2056         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
2057         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
2058
2059         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
2060         
2061 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
2062
2063         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
2064         attempt-to-allocate then free code. To handle multiple
2065         people allocating colors at the same time, we need
2066         to just go ahead and try. (#102213, Shivram U)
2067         
2068 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
2069
2070         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
2071         rectangle using the background color rather than relying on
2072         gdk_window_clear_area(), so that the palette works properly with
2073         pixmap themes. (#101732)
2074
2075         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
2076         to fill the drawing area in the background color.
2077
2078 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
2079
2080         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
2081         initialization error for selecting input style (#103549).
2082
2083 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
2084
2085         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
2086         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
2087         (#101225)
2088
2089 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
2090
2091         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
2092         Make up from the menu bar go to the end of the submenu.
2093         (#96114, Ian Peters.)
2094
2095         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
2096         Only do the select-but-not-activate stuff if the
2097         menu is already active. Otherwise, just activate.
2098         (#101690, Arvind Samptur)
2099
2100 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
2101
2102         * autogen.sh (have_automake): Fix version in complaint
2103         message about automake. (#104366, Rich Burridge)
2104
2105 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
2106
2107         * configure.in: Remove SOEXT stuff; it doesn't work portably.
2108
2109 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
2110
2111         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
2112         we appended/prepended, send the rows_reordered signal to the 
2113         correct level ... (Reported by Matthew Tuck).
2114
2115 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
2116
2117         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
2118         out if the level only has one item, recurse over the child if there
2119         is one. (Fixes #100458, reported by Gaël Le Mignot).
2120
2121 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
2122
2123         * gtk/gtktreeview.c (gtk_tree_view_set_model),
2124         (gtk_tree_view_search_equal_func): make TreeView search handle
2125         all types which are transformable by GValue. (Fixes #99803, reported
2126         by Muktha Narayan).
2127
2128 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
2129
2130         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
2131         *really* handle unsetting the ID. Slightly modified patch from
2132         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
2133
2134 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
2135
2136         Fixes the total GtkTreeSortable mess, and #83195, reported by
2137         Jarek Dukat
2138
2139         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
2140         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
2141         (gtk_tree_store_set_default_sort_func): use the constant
2142         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
2143         work as advertised by the documentation.
2144
2145         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
2146         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
2147         (gtk_list_store_set_default_sort_func): likewise.
2148
2149         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
2150         (gtk_tree_model_set_sort_func),
2151         (gtk_tree_model_sort_set_default_sort_func): make functions work
2152         as advertised by the documentation.
2153
2154 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
2155
2156         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
2157         before we decide if we edit. (fixes #100973, reported by Dave Cook).
2158
2159 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
2160
2161         Bug report and test case from Paolo Maggi via IRC.
2162
2163         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
2164         (gtk_list_store_move): update tail if needed.
2165
2166 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
2167
2168         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
2169         might be NULL. Use gtk_widget_get_display (widget) 
2170         (#102860, Thomas Leonard)
2171
2172 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
2173
2174         * configure.in: Fix --without-modules/--disable-modules
2175         confusion that was causing --disable-modules not to work.
2176         (#102865, Akira Tagoh)
2177
2178         * configure.in: Fix problem with plain --with-xinput
2179         (#104266, Akira Tagoh)
2180
2181 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
2182
2183         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
2184         patch.
2185
2186 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
2187
2188         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
2189
2190 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
2191
2192         * docs/faq/gtk-faq.sgml: Learn to spell Library
2193
2194 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
2195         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
2196
2197            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
2198            Composite widget" to modern standards. (I.e. use gobject instead of
2199            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
2200
2201         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
2202         code in Appendix C to reflect above changes.
2203
2204         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
2205         auto resize on page size change
2206
2207 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
2208
2209         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
2210         in addition to show_all in order to keep them symmetric. (#102201)
2211
2212 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
2213
2214         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
2215         the end of the function, so there is a statement following the "out"
2216         label in all cases (fixes #101961)
2217
2218 2003-01-22  Christian Rose  <menthos@menthos.com>
2219
2220         * configure.in: Added "mn" to ALL_LINGUAS.
2221
2222 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
2223  
2224         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
2225         Fix off-by-one error on the backward iteration loop,
2226         that was causing the wrong range to be redrawn.
2227         (at least part of #72734)
2228         
2229 2003-01-21  Matthias Clasen  <maclas@gmx.de>
2230
2231         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
2232         vadjustment value after changing its bounds.  (fixes #101963 and 
2233         #73562)
2234
2235         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
2236         unnecessary roundtrip failures.  (#93500)
2237
2238 2003-01-19  Tor Lillqvist  <tml@iki.fi>
2239
2240         Merge from stable:
2241         
2242         Fix for #103614 and some other problems with GtkFileSelection on
2243         Windows:
2244                 
2245         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
2246         g_ascii_tolower(). Windows file names are case-insensitive for all
2247         Unicode letters.
2248
2249         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
2250         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
2251         earlier, as it includes config.h unconditionally, and gtkprivate.h
2252         redefines GTK_LOCALEDIR.
2253         (struct _CompletionDirSent): Ifdef out the fields not used on
2254         Windows.
2255         (compare_utf8_filenames, compare_sys_filenames): Need different
2256         comparison implementation for UTF-8 file names and system locale
2257         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
2258         need to casefold all Unicode letters.
2259         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
2260         variables not used on Win32 to avoid warnings about unused
2261         variables.
2262         (open_ref_dir): Use g_path_skip_root() to skip past potential
2263         drive letter in front of the leading (back)slash.
2264         (open_new_dir): Ifdef out use of CompletionDirSent fields not
2265         there on Win32.
2266         (correct_parent): Bypass inode check also on Cygwin.
2267
2268         Fix bug noticed by Alex Shaduri: Tooltips and other
2269         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
2270         was a regression from earlier versions.
2271         
2272         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
2273         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
2274         (gdk_window_move, gdk_window_resize): Add debug logging.
2275
2276         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
2277         WM_SIZE message for a non-visible (withdrawn) window, don't clear
2278         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
2279         even if its size changes.
2280
2281 2003-01-16  Matthias Clasen  <maclas@gmx.de>
2282
2283         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
2284         (totally_invisible_line): Fix an incorrect optimization which
2285         caused invisible paragraphs to be occasionally misrendered.
2286
2287 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
2288
2289         * gtk/gtksettings.c: Set the double click speed from
2290         XSETTINGS when creating a new GtkSettings object
2291         as well as when getting a notify. (#103601, reported
2292         by Louis Garcia)
2293
2294 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
2295  
2296         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
2297         Show/hide the notebook event window as necessary,
2298         we weren't previously keeping the visibility updated
2299         properly.  (#103599)
2300  
2301 2003-01-15  Matthias Clasen  <maclas@gmx.de>
2302
2303         * examples/menu/itemfactory.c: 
2304         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
2305         example.  (#103211)
2306
2307 2002-12-29  Murray Cumming  <murrayc@usa.net>
2308
2309         Fixes #102168.
2310
2311         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
2312         Actually implement the GtkTreeDragSource::row_draggable virtual 
2313         function in GtkListStore and GtkTreeStore instead of just checking 
2314         whether it's implemented at all. This means that DnD isn't broken by
2315         gtkmm's virtual function wrappers. The alternative would be to
2316         hard-code the TRUE return value into gtkmm's wrappers, but that's 
2317         part of GTK+'s implementation, not it's API.
2318
2319 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
2320
2321         * gtk/gtktreeview.c: fix compiler warning.
2322
2323 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
2324
2325         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
2326         make sure exposed pixbufs are clipped to the exposed area before
2327         drawing, which is a slight speedup. (#102379, patch from Soeren
2328         Sandmann).
2329
2330 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
2331
2332         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
2333         only free scroll_to_path when the complete tree has been validated.
2334         This makes sure that we scrolled to the correct path.
2335
2336 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
2337
2338         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
2339         background of widget->window and bin->window. (Fixes #96650, reported
2340         by Dave Camp).
2341
2342 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
2343
2344         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
2345         updates before scrolling, avoiding a "selection streak". (Fixes
2346         #101235, patch from Soeren Sandmann).
2347
2348 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
2349
2350         * gtk/gtktreeview.c (validate_visible_area): actually put values
2351         in the requisition using gtk_widget_size_request. (Fixes #100172,
2352         reported by Kjartan Maraas).
2353
2354 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
2355
2356         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
2357         arrow animation timeout before we actually reorder the rbtree. If
2358         we don't do this we can get stuck arrows,
2359         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
2360         reported and testcase provided by Hans Petter Jansson).
2361
2362 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
2363
2364         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
2365         anchor_path should be start_path, not end_path. (Fixes #102618,
2366         patch from Carlos Garnacho Parro).
2367
2368 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
2369
2370         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
2371         only correct new_pos if we don't move to the head/tail.
2372
2373 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
2374
2375         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
2376         the parent_iter if depth >= 1, so we send the reordered signal to
2377         the correct level, remove debugging printfs which I forgot the remove
2378         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
2379         testcase provided by Matthew Tuck).
2380
2381 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
2382
2383         * gtk/gtktreeview.c (invalite_last_column): split out actual column
2384         invalidation into invalidate_column(),
2385         (gtk_tree_view_size_allocate_columns): invalidate column if the
2386         new width is larger than the old width.
2387         (fixes #102890, reported by Alex Duggan).
2388
2389 2003-01-14  Matthias Clasen  <maclas@gmx.de>
2390
2391         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
2392         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
2393         GTK_MOVEMENT_WORDS.
2394
2395         * gtk/gtktextiter.c,
2396         gtk/gtktextiter.h: Add some variant movement functions which
2397         skip invisible chars, and do some cleanups.
2398
2399 2003-01-12  Tor Lillqvist  <tml@iki.fi>
2400
2401         Merge from stable:
2402                 
2403         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
2404         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
2405         lookup.
2406
2407         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
2408         gdk.def.
2409
2410         * gdk/gdk.def
2411         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
2412
2413         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
2414         gtk-demo}.exe and share/gtk-2.0.
2415
2416         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
2417         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
2418         window style.
2419         (gdk_window_set_type_hint): Add all cases to the switch (not all
2420         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
2421         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
2422         won't know that the skip_taskbar hint is on for the window, is
2423         this bad?
2424
2425 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
2426
2427         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
2428         <string.h> for strlen.
2429
2430         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
2431         <string.h> for strrchr.
2432
2433         * tests/testgtk.c (create_saved_position): "x" and "y" properties
2434         for widgets no longer exist, use gtk_window_move instead.
2435
2436         * test/testtextbuffer.c (check_get_set_text): cast strlen to
2437         int for g_error.
2438
2439 2003-01-08  Matthias Clasen  <maclas@gmx.de>
2440
2441         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
2442         the selection in the presence of invisible segments.
2443
2444 2003-01-07  Matthias Clasen  <maclas@gmx.de>
2445
2446         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
2447         to "select all" and "unselect all".  (#102065)
2448
2449         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
2450         the just_selected_element is unused.
2451
2452         * gtk/gtktextview.c (extend_selection): New helper function to
2453         find the range that should be added to the selection. 
2454         (selection_motion_event_handler): 
2455         (gtk_text_view_start_selection_drag): 
2456         (gtk_text_view_end_selection_drag): 
2457         (selection_motion_event_handler): 
2458         (selection_scan_timeout): Support select-by-words/lines.
2459         (gtk_text_view_button_press_event): Start a selection drag on
2460         double/triple clicks.  (#78499)
2461
2462 2003-01-06  Matthias Clasen  <maclas@gmx.de>
2463
2464         Implement a utility function proposed in #102534:
2465         
2466         * gtk/gtktextbtree.h: 
2467         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
2468         (_gtk_text_btree_place_cursor): Now a simple wrapper around
2469         _gtk_text_btree_select_range().   
2470
2471         * gtk/gtktextbuffer.h: 
2472         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
2473         (gtk_text_buffer_place_cursor): Now a simple wrapper around
2474         gtk_text_buffer_select_range(). 
2475
2476 2003-01-05  Havoc Pennington  <hp@pobox.com>
2477
2478         * configure.in: fix a stray bracket that was breaking the build
2479
2480 2003-01-05  Tor Lillqvist  <tml@iki.fi>
2481
2482         * gtk-zip.sh.in: Use correct DLL and import library names, with
2483         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
2484         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
2485
2486         * configure.in: Improve check for dimm.h.
2487
2488         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
2489         gdk-pixbuf/Makefile.am.
2490
2491         * gdk-pixbuf/makefile.mingw.in
2492         * gdk-pixbuf/pixops/makefile.mingw.in
2493         * gdk/makefile.mingw.in
2494         * gdk/win32/makefile.mingw.in
2495         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
2496
2497         * gdk-pixbuf/Makefile.am
2498         * gdk-pixbuf/pixops/Makefile.am
2499         * gdk/Makefile.am
2500         * gdk/win32/Makefile.am
2501         * gtk/Makefile.am
2502         * configure.in: Remove makefile.mingw{,.in} from here, too.
2503         
2504         * README.win32: Updates. Don't mention the now removed
2505         makefile.mingw files.
2506
2507         * gdk/gdk.def
2508         * gtk/gtk.def: Add a couple of missing entries.
2509
2510         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
2511
2512         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
2513         earlier.
2514
2515         * gdk/win32/rc/Makefile.am: Add hack to help
2516         build/win32/lt-compile-resource decide which kind of libtool
2517         object file to produce.
2518
2519 2003-01-05  Matthias Clasen  <maclas@gmx.de>
2520
2521         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
2522         C-Down step through the sequence of paragraph ends (old behaviour
2523         included paragraph starts).  (#80340, patch by Narayana Pattipati)
2524
2525         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
2526         Check for a tag toggle at the start iterator before calling
2527         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
2528         Elstner)
2529
2530 2003-01-04  Matthias Clasen  <maclas@gmx.de>
2531
2532         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
2533         and /*< private >*/ as appropriate.  (#97211)
2534
2535 2003-01-04  Tor Lillqvist  <tml@iki.fi>
2536
2537         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
2538         distribute gtk-zip.sh.in.
2539
2540         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
2541
2542 2003-01-03  Havoc Pennington  <hp@pobox.com>
2543
2544         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
2545
2546         * docs/text_widget_internals.txt: add a file documenting some of
2547         the text widget internals
2548
2549 2003-01-02  Matthias Clasen  <maclas@gmx.de>
2550
2551         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
2552         return NULL.  (#102069)
2553
2554 2003-01-01  Matthias Clasen  <maclas@gmx.de>
2555
2556         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
2557         a main() in the library is obviously bad. 
2558
2559 2002-12-27  Matthias Clasen  <maclas@gmx.de>
2560
2561         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
2562         cursor at drop point.  (#72384)
2563         (gtk_text_view_size_allocate): Update the horizontal adjustment
2564         value.  (#75694)
2565
2566 2002-12-25  Matthias Clasen  <maclas@gmx.de>
2567
2568         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
2569         selection wrt. to empty lines.  (#90435, #90582, #91619)
2570
2571         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
2572         Keep the cursor on screen.  (#96929)
2573
2574 2002-12-24  Matthias Clasen  <maclas@gmx.de>
2575
2576         * gtk/gtktextbuffer.c (paste_from_buffer): 
2577         (clipboard_text_received): Let the user action span the insertion
2578         and the deletion of the old selection.  (#82844)
2579
2580 2002-12-23  Matthias Clasen  <maclas@gmx.de>
2581
2582         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
2583         Don't call gtk_text_iter_backward_sentence_start() if
2584         count is zero.  (#99115)
2585
2586         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
2587         move_cursor() even if the cursor hasn't moved, since it has the
2588         side effect of canceling the selection.  (#81395, #98537, #98333)
2589
2590 2002-12-22  Matthias Clasen  <maclas@gmx.de>
2591
2592         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
2593         with empty ranges.  (fixes #101564 and #80637)
2594
2595 2002-12-21  Tor Lillqvist  <tml@iki.fi>
2596
2597         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
2598         sets the window style and extended window style, and adjusts the
2599         width and height to take the window decorations into account
2600         earlier. The adjusted width and height used to be ignored. Remove
2601         the local x, y, width and height variables, no need to further
2602         confuse the code by having local copies. (Partial fix, I hope, for
2603         #101588)
2604
2605         (gdk_window_move): When moving top-level windows, take title bar
2606         and border width into account, offsetting the coordinates before
2607         calling SetWindowPos().
2608
2609         (gdk_window_set_decorations, gdk_window_set_functions):
2610         Reimplement, taking into account the peculiar semantics of
2611         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
2612
2613         (gdk_window_get_decorations): Implement. (#98981)
2614         
2615         (gdk_window_set_type_hint): When setting
2616         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
2617         (#79036)
2618
2619         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2620
2621 2002-12-21  Matthias Clasen  <maclas@gmx.de>
2622
2623         * gtk/gtktextview.c (gtk_text_view_set_background): New static
2624         function to set the background of all windows.
2625         (gtk_text_view_style_set): Use gtk_text_view_set_background().
2626         (gtk_text_view_state_changed): New function; change background
2627         according to state.  (#88126)
2628
2629 2002-12-21  Havoc Pennington  <hp@pobox.com>
2630
2631         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
2632