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