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