]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
add gdk_display_get_devices to fix compilation
[~andy/gtk] / ChangeLog.pre-2-4
1 Wed Nov 13 13:50:25 2002  Eric Warmenhoven <warmenhoven@yahoo.com>
2
3         * gdk/linux-fb/gdkinput.c: add gdk_display_get_devices to fix
4         compilation
5
6 Wed Nov 13 15:52:53 2002  Owen Taylor  <otaylor@redhat.com>
7
8         * gtk/gtkcombo.c (gtk_combo_activate): Fix warning.
9         
10         * gtk/gtkcombo.c: Fix code that was meant to delay
11         grabbing events on the list until we had an enter-notify.
12         (#54353, reported by Mike Fulbright, others)
13
14 2002-11-13  Matthias Clasen  <maclas@gmx.de>
15
16         * gtk/theme-bits/decompose-bits.c (do_part): Add a const here.
17
18         * gtk/gtkcolorsel.c: 
19         * gtk/gtkimcontextsimple.c: 
20         * gtk/gtkstyle.c: Mark constant data as const to give the compiler
21         a chance to put it in a readonly section.  (#75754)
22
23 Wed Nov 13 10:53:37 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
24
25         * modules/input/gtkimcontextxim.c:
26         Fix #90661: add im_info->im switch at the top of setup_im() and
27         get_ic_real().
28         Fix #97674: make sure only one status window for the focused
29         input context should be shown.
30
31 Wed Nov 13 11:55:25 2002  Owen Taylor  <otaylor@redhat.com>
32
33         * gtk/gtknotebook.c (gtk_notebook_button_press): 
34         When clicking on a non-active tab, focus the first
35         widget in the tab, not the tab itself. (#98322)
36
37         * gtk/gtknotebook.c (gtk_notebook_focus_changed):
38         Eliminate synchronous drawing, just call redraw_tabs.
39         
40         * gtk/gtknotebook.c (gtk_notebook_init): Don't set
41         the RECEIVES_DEFAULT flag, we no longer do anything
42         with Return/Enter key.
43
44 Tue Nov 12 17:10:10 2002  Owen Taylor  <otaylor@redhat.com>
45
46         * gtk/gtkcombo.c: Fix up grabs to be robust; grab
47         the keyboard as well as the pointer so we won't
48         leave the window behind if the user switches desktops
49         with a keyboard combination. (Based on a patch
50         from Matthias Clasen, #82525)
51
52 Wed Nov 13 14:01:44 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
53
54         * gtk/gtkstyle.c: 
55
56           - comment out check_inconsistent_aa_bits[].
57
58           - use fg/bg with a generated aa color to draw check and option
59             marks in menu items.
60
61           - use text/base to draw check and option buttons, except when
62             state is ACTIVE, in which case we use fg/bg with a generated
63             aa color.
64
65         * tests/testgtk.c (menu_items): Add three check items.
66         
67 2002-11-12  Tor Lillqvist  <tml@iki.fi>
68
69         * gdk/win32/gdkprivate-win32.h
70         * gdk/win32/*.c: Rename all global variables and functions to
71         start with underscore.
72
73         Merge from stable:
74         
75         More work on the Win32 backend. The cause of some scrolling
76         problems was that SetWindowPos() and ScrollWindowEx() don't blit
77         those parts of the window they think are invalid. As we didn't
78         keep Windows's update region in synch with GDK's, Windows thought
79         those areas that in fact had been updated were invalid. Calling
80         ValidateRgn() in _gdk_windowing_window_queue_antiexpose() seems to
81         be an elegant and efficient solution, removing from Windows's
82         update region those areas we are about to repaint proactively.
83
84         In some cases garbage leftover values were used for the clip
85         origin in GdkGCWin32. This showed up as odd blank areas around the
86         pixmaps included in the Text Widget in gtk-demo.
87
88         Having the clip region either as a GdkRegion or a HRGN in
89         GdkGCWin32 was unnecessary, it's better to just use a HRGN.
90
91         The translation and antiexpose queue handling in
92         gdkgeometry-win32.c seems unnecessary (and not implementable in
93         the same way as on X11 anyway, no serial numbers) on Windows,
94         ifdeffed out.
95         
96         Don't (try to) do guffaw scrolling as there is no static window
97         gravity on Windows. Guffaw scrolling would be unnecessary anyway,
98         as there is the ScrollWindow() API. This improves the behaviour of
99         the Text Widget demo in gtk-demo a lot. But I have no idea how the
100         lack of static win gravity should be handled in other places where
101         the X11 code uses it. Especially _gdk_window_move_resize_child().
102
103         There is still some problem in expose handling. By moving an
104         obscuring window back and forth over testgtk's main window, for
105         instance, every now and then you typically get narrow vertical or
106         horizontal strips of pixels that haven't been properly redrawn
107         after being exposed. A fencepost error somewhere?
108
109         Otherwise, all of testgtk and gtk-demo except "big windows" now
110         seem to work pretty well. (Well, that is in the stable branch, I
111         haven't really tested HEAD. Only checked that gdk/win32 compiles.)
112
113         Bug #79720 should be fixed now.
114         
115         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string,
116         gdk_win32_print_paletteentries, gdk_win32_print_system_palette,
117         gdk_win32_print_hpalette)
118         * gdk/win32/gdkdrawable-win32.c (gdk_win32_drawable_description)
119         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name):
120         Move all debugging helper functions to gdkmain-win32.c.
121
122         * gdk/win32/gdkdrawable-win32.c (_gdk_win32_draw_tiles):
123         Rewrite. Make static. Must take tile origin parameters, too.
124
125         (gdk_win32_draw_rectangle): Pass the tile/stipple origin to
126         _gdk_win32_draw_tiles(). Remove #if 0 code.
127
128         (blit_inside_window): Don't call ScrollDC(), that didn't work at
129         all like I thought. A simple call to BitBlt() is enough.
130         
131         * gdk/win32/gdkevents-win32.c (gdk_event_translate) Remove unused
132         latin_locale_loaded variable.
133
134         (_gdk_win32_get_next_tick): New function. Used to make sure
135         timestamps of events are always increasing, both in events
136         generated from the window procedure and in events gotten via
137         PeekMessage(). Not sure whether this is actually useful, but it
138         seemed as a good idea.
139
140         (real_window_procedure): Don't use a local GdkEventPrivate
141         variable. Don't attempt any compression of configure or expose
142         events here, handled elsewhere.
143
144         (erase_background): Accumulate window offsets when traversing up
145         the parent chain for GDK_PARENT_RELATIVE_BG, in order to get
146         correct alignment of background pixmaps. Don't fill with
147         BLACK_BRUSH if GDK_NO_BG.
148
149         (gdk_event_get_graphics_expose): A bit more verbose debugging output.
150
151         (gdk_event_translate): Use _gdk_win32_get_next_tick(). In the
152         WM_PAINT handler, don't check for empty update rect. When we get a
153         WM_PAINT, the update region isn't empty. And if it for some
154         strange reason is, that will be handled later anyway. Call
155         GetUpdateRgn() before calling BeginPaint() and EndPaint() (which
156         empty the update region).
157
158         * gdk/win32/gdkdnd-win32.c
159         * gdk/win32/gdkinput-win32.c:
160         Use _gdk_win32_get_next_tick().
161         
162         * gdk/win32/gdkfont-win32.c: Use %p to print HFONTs.
163
164         (gdk_text_size): Remove, unused.
165
166         * gdk/win32/gdkgc-win32.c:  Set clip origins to zero
167         when appropriate.
168
169         (gdk_gc_copy): Increase refcount on colormap if present.
170
171         (gdk_win32_hdc_get): Handle just hcliprgn. If we have a stipple,
172         combine it with clip region after selecting into the DC.
173
174         (_gdk_win32_bitmap_to_hrgn): Rename from _gdk_win32_bitmap_to_region.
175
176         (_gdk_win3_gdkregion_to_hrgn): New function, code snippet
177         extracted from gdk_win32_hdc_get().
178
179         * gdk/win32/gdkgeometry-win32.c: Ifdef out the translate_queue
180         handling.
181
182         (gdk_window_copy_area_scroll): Increase clipRect to avoid
183         ScrollWindowEx() not scrolling pixels it thinks are invalid.
184         Scroll also children with the ScrollWindowEx() call. No need to
185         call gdk_window_move() on the children.
186
187         (gdk_window_scroll): Don't do guffaw scrolling.
188
189         (gdk_window_compute_position): Fix typo, used win32_y where x was
190         intended.
191
192         (gdk_window_premove, gdk_window_postmove,
193         gdk_window_clip_changed): Add debugging output.
194
195         (_gdk_windowing_window_queue_antiexpose): Just call ValidateRgn()
196         on the region.
197
198         (_gdk_window_process_expose): No use for the serial number
199         parameter now. Instead of a rectangle, take a region parameter, as
200         Windows gives us one in WM_PAINT.
201
202         * gdk/win32/gdkmain-win32.c (_gdk_win32_lbstyle_to_string,
203         _gdk_win32_pstype_to_string, _gdk_win32_psstyle_to_string,
204         _gdk_win32_psendcap_to_string, _gdk_win32_psjoin_to_string,
205         _gdk_win32_rect_to_string, _gdk_win32_gdkrectangle_to_string,
206         _gdk_win32_gdkregion_to_string): New debugging functions.
207
208         (static_printf): Helper function for the above. sprintfs into a
209         static circular buffer, return value should be used "soon".
210
211         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Plug memory
212         leak, free list after use.
213
214         (gdk_window_gravity_works): Remove, we know that there is no such
215         thing on Windows.
216
217         (gdk_window_set_static_bit_gravity,
218         gdk_window_set_static_win_gravity): Ditto, remove, they didn't do
219         anything anyway.
220
221         (_gdk_windowing_window_init, gdk_window_foreign_new): Call
222         _gdk_window_init_position() like in the X11 backend.
223
224         (gdk_window_reparent): Don't call the now nonexistent
225         gdk_window_set_static_win_gravity(). No idea what should be done
226         instead.
227
228         (gdk_window_get_geometry): The returned x and y should be relative
229         to parent. Used to be always zero..
230
231         (gdk_window_set_static_gravities): Return FALSE if trying to set
232         static gravity.
233         
234         * gdk/win32/gdkprivate-win32.h: Drop the clip_region field from
235         GdkGCWin32. Only use the HRGN hcliprgn. Declare new
236         functions.
237
238         * gdk/win32/*.c: Use new debugging functions.
239
240         * gdk/win32/rc/gdk.rc.in: Update copyright year.
241
242 Tue Nov 12 16:51:04 2002  Owen Taylor  <otaylor@redhat.com>
243
244         * gtk/gtkinputdialog.c: Make multihead aware (#80283)
245
246 Tue Nov 12 15:13:58 2002  Owen Taylor  <otaylor@redhat.com>
247
248         * gtk/gtkwidget.c gtk/gtkwindow.[ch]: Add
249         _gtk_window_unset_focus_and_default(), use to clear
250         the focus and default out of parts of the widget
251         heirarchy that we are hiding.
252
253         * gtk/gtkwidget.c (gtk_widget_propagate_screen_changed_recurse): 
254         Fix typo that was resulting in missed screen-change
255         notifies.
256
257         * gtk/gtkwindow.c (do_focus_change): Allow for
258         widget->window == NULL.
259
260         * gtk/gtklabel.c (gtk_label_screen_changed): Clear the
261         layout here not in hierarchy changed to handle the case
262         where the toplevel was moved between screens.
263
264 Tue Nov 12 14:20:53 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
265
266         * gtk/gtkmenu.c (gtk_menu_enter_notify): Do not return when
267         menu_shell->ignore_enter is TRUE.
268
269 2002-11-10  Matthias Clasen  <maclas@gmx.de>
270
271         * gtk/gtkstatusbar.c (gtk_statusbar_button_press): Don't start
272         a drag on double click.  (#98189)
273
274 2002-11-10  Matthias Clasen  <maclas@gmx.de>
275
276         * tests/testgtk.c (grippy_button_press): Also test moving.
277
278 Sun Nov 10 22:55:39 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
279
280         * gtk/gtkmenu.c (gtk_menu_enter_notify): Don't return after
281         calling gtk_menu_handle_scrolling() when
282         !menu_shell->ignore_enter.
283
284 Sun Nov 10 21:29:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
285
286         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
287         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator)
288
289         Make sure check and option marks are drawn insensitive when the
290         widgets are insensitive.
291
292         (#92548, patch from Tim Evans)
293
294 Sun Nov 10 21:25:04 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
295
296         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove _gtk_reserved8
297         to restore binary compatibility.
298
299 2002-11-10  Matthias Clasen  <maclas@gmx.de>
300
301         * gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix a
302         typo which broke moveresize emulation.
303
304 Sat Nov  9 14:42:53 2002  Owen Taylor  <otaylor@redhat.com>
305
306         * gtk/gtkmenu.c (gtk_menu_button_*): Block
307         button presses/releases over the scroll arrows
308         to avoid popping down the menu. (#73444, Ettore Perazzoli)
309
310         * gtk/gtkmenu.c (gtk_menu_enter_notify): Obey the
311         ignore_enter flag for scrolling as well.
312
313         * gtk/gtkmenu.c (gtk_menu_stop_scrolling): Clear
314         the upper_arrow_prelight, lower_arrow_prelight 
315         flags.
316
317         * gtk/gtkmenu.c: Tweak the scroll speeds,
318         timeouts, and fast-scroll area to make things
319         zippier. (#73445, Ettore Perazzoli)
320
321 2002-11-09  Anders Carlsson  <andersca@gnu.org>
322
323         * gtk/gtkwidget.c (gtk_widget_class_init): Use the correct
324         struct offset for the screen_changed signal.
325
326 Fri Nov  8 19:07:39 2002  Owen Taylor  <otaylor@redhat.com>
327
328         * demos/Makefile.am (test-inline-pixbufs.h): Depend
329         on gdk-pixbuf.loaders as well as gdk-pixbuf.csource.
330         (#97096, Jeff Waugh)
331
332 2002-11-09  Matthias Clasen  <maclas@gmx.de>
333
334         * tests/testgtk.c (create_resize_grips): Draw grips in all edges.
335
336         * gdk/x11/gdkfont-x11.c (gdk_text_extents_wc): 
337         (gdk_text_extents): 
338         * gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to
339         work around gtk-doc limitations.
340
341 Fri Nov  8 18:04:16 2002  Owen Taylor  <otaylor@redhat.com>
342
343         * gdk/{linux-fb,win32,11}/Makefile.am: Add in a awful
344         hack to force gdkenumtypes.h to be updated before
345         building the subdir. (#86587)
346
347 Fri Nov  8 17:49:54 2002  Owen Taylor  <otaylor@redhat.com>
348
349         * gtk/gtkwindow.c (gtk_window_check_screen): Access
350         window->screen through a function so we can provide
351         an informative warning window window->screen is NULL.
352         (#85703)
353         
354 2002-11-08  Matthias Clasen  <maclas@gmx.de>
355
356         * gtk/gtkcheckmenuitem.c
357         (gtk_real_check_menu_item_draw_indicator): RTL flipping for check
358         menu items.
359
360         * tests/testtext.c (blink_timeout): Put into #ifdef DO_BLINK to
361         avoid an unused static function.  (#97965)
362
363         * gtk/gtktextiter.c (backward_line_leaving_caches_unmodified): 
364         * gtk/gtkstyle.c (radio_aa_bits):
365         (draw_spin_entry_shadow): #if-0-out unused static functions and
366         variables.  (#97965) 
367
368         * gtk/gtktextview.c (text_window_get_allocation): 
369         * gtk/gtkcolorsel.c (gtk_color_selection_get_palette_size):
370         (gtk_color_selection_get_palette_color):
371         (gtk_color_selection_unset_palette_color): Remove unused static
372         functions.  (#97965)
373
374         * gtk/gtkcolorsel.c
375         (gtk_color_selection_set_change_palette_with_screen_hook): Fix doc
376         comment. 
377         
378 Fri Nov  8 17:08:54 2002  Owen Taylor  <otaylor@redhat.com>
379
380         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use
381         g_get_application_name() instead of g_get_prgname()
382         as the default window title when set.
383         
384         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.[ch]:x
385         Set g_get_application_name() as the title for the
386         leader window the first time we create a window
387         pointing to it.
388
389         * tests/testgtk.c (main): Call g_set_application_name();
390
391         * configure.in (GDK_PIXBUF_VERSION): Require GLib-2.1.3
392
393 2002-11-08  Matthias Clasen  <maclas@gmx.de>
394
395         * gtk/gtkstyle.c (gtk_default_draw_arrow): Improve drawing of RTL
396         submenu indicators.
397
398         * gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
399         optionmenus by flipping the indicator_spacing.
400
401 Fri Nov  8 21:15:25 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
402
403         * tests/Makefile.am: add testmenus.c, a program to test menus when
404         items are dynamically added and removed.
405
406 Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
407
408         * docs/reference/gdk/tmpl/dnd.sgml
409         docs/reference/gdk/tmpl/drawing.sgml
410         docs/reference/gdk/tmpl/gdk-unused.sgml
411         docs/reference/gdk/tmpl/gdkdisplay.sgml
412         docs/reference/gdk/tmpl/general.sgml
413         docs/reference/gdk/tmpl/input_devices.sgml
414         docs/reference/gdk/tmpl/selections.sgml
415         docs/reference/gtk/tmpl/gtkcellrenderer.sgml
416         docs/reference/gtk/tmpl/gtkcurve.sgml
417         docs/reference/gtk/tmpl/gtkdnd.sgml
418         docs/reference/gtk/tmpl/gtkitemfactory.sgml
419         docs/reference/gtk/tmpl/gtkmenu.sgml
420         docs/reference/gtk/tmpl/gtkoldeditable.sgml
421         docs/reference/gtk/tmpl/gtkoptionmenu.sgml
422         docs/reference/gtk/tmpl/gtkpreview.sgml
423         docs/reference/gtk/tmpl/gtkselection.sgml
424         docs/reference/gtk/tmpl/gtksocket.sgml
425         docs/reference/gtk/tmpl/gtkstyle.sgml
426         docs/reference/gtk/tmpl/gtktextbuffer.sgml
427         docs/reference/gtk/tmpl/gtktreemodel.sgml
428         docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
429         gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
430         gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
431         gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
432         gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
433         gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
434         gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
435         gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
436         gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
437         gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
438         gtk/gtktreemodel.h gtk/gtkwidget.h
439
440         Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
441         without warnings. (#91680)
442         
443 Thu Nov  7 16:13:41 2002  Eric Warmenhoven <eric@warmenhoven.org>
444
445         * gdk/linux-fb/gdkscreen-fb.c: fix compilation
446
447         * gdk/linux-fb/gdkmain-fb.c: prevent segfaults on shutdown
448
449 Thu Nov  7 18:50:38 2002  Owen Taylor  <otaylor@redhat.com>
450
451         * gtk/gtkwidget.c (gtk_widget_get_pango_context): Note
452         that get_pango_context() is not "until death does us
453         part", but "until the screen changes".
454
455         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Add
456         a MULTIHEAD warning.
457
458         * gtk/gtkwidget.c (do_screen_change): Clear pango context
459         for widget if set.
460
461 Thu Nov  7 18:09:42 2002  Owen Taylor  <otaylor@redhat.com>
462
463         * gtk/gtkfilesel.c (open_new_dir): Escape invalid
464         filename before printing it out, since it isn't
465         a valid UTF-8 string. (#94676)
466
467 Thu Nov  7 17:18:06 2002  Owen Taylor  <otaylor@redhat.com>
468
469         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): 
470         Don't try to use render if we can't get a picture for 
471         the drawable. (Fixes #97220, reported by
472         Jamie Zawinski)
473
474         * gtk/gtkimage.c: Force requisition calculation
475         when we get a expose prior to size_request().
476         (#91711, reported by Sven Neumann, debugging
477         help from Matthias Clasen, Soeren Sandmann)
478
479 Thu Nov  7 16:45:54 2002  Owen Taylor  <otaylor@redhat.com>
480
481         * gdk/x11/gdkx.h: Fix misplaced display_grab()/display_ungrab();
482         they shouldn't have been deprecated.
483
484 2002-11-07  Matthias Clasen  <maclas@gmx.de>
485
486         * gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
487         g_return_val_if_fail in this non-void function.
488         (gdk_init_check): Remove unused variable.
489
490 Thu Nov  7 15:42:12 2002  Owen Taylor  <otaylor@redhat.com>
491
492         * gtk/gtkfontsel.c (gtk_font_selection_get_font_description):
493         If called when fontsel->face is NULL, just return
494         "Sans 10". (#82745, Vitaly Tishkov)
495
496 Thu Nov  7 15:29:43 2002  Owen Taylor  <otaylor@redhat.com>
497
498         * gtk/gtkimcontextsimple.c (check_hex): Use '_'
499         not '-' in signal name to be consistent with
500         what we do elsewhere (#97151, TOKUNAGA Hiroyuki)
501
502 Thu Nov  7 14:51:31 2002  Owen Taylor  <otaylor@redhat.com>
503
504         * tests/testcalendar.c (calendar_date_to_string): 
505         Use g_date_strftime(), fixing #74745. (Alper Ersoy)
506
507 2002-11-07  Anders Carlsson  <andersca@gnu.org>
508
509         * gtk/gtkhpaned.c: (gtk_hpaned_size_allocate):
510         * gtk/gtkvpaned.c: (gtk_vpaned_size_allocate):
511         Check for NULL children, #97913.
512         
513 Thu Nov  7 14:24:45 2002  Owen Taylor  <otaylor@redhat.com>
514
515         * gtk/gtkhandlebox.c: Add a snap_edge_set property to
516         deal with the fact that we have an unset state for
517         the snap_edge property. (Reported by Matthias Clasen
518         #97505)
519         
520 Thu Nov  7 12:53:08 2002  Owen Taylor  <otaylor@redhat.com>
521
522         * gtk/gtkwidget.[ch] gtk/gtkwindow.c gtk/gtkinvisible.c: 
523         Add ::screen-changed signal.
524
525         * gtk/gtkfontsel.c gtk/gtktoolbar.c: Use ::screen-changed
526         signal to simplify logic.
527
528 2002-11-07  Anders Carlsson  <andersca@gnu.org>
529
530         * tests/testgtk.c (create_resize_grips): Add resize grips test.
531
532 Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
533
534         Bah, and of course I broke something ...
535
536         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
537         up the mess I caused with my commit of Oct 23 fixing #50263, things
538         should be fine now.
539
540 Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
541
542         * gtk/gtkfilesel.c configure.in: Remove check for
543         winsock.h since it might show up on Linux+Wine.
544         Instead just conditionalize of G_OS_WIN32.
545         (#97396, Gaute Lindkvist)
546
547 Sun Nov  3 01:39:20 2002  Kristian Rietveld  <kris@gtk.org>
548
549         * gtk/gtktreemodel.c (release_row_references): took out the useless
550         check for refs->list (#97353, reported by Morten Welinder).
551
552         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size):
553         check if width isn't zero instead of calc_width ...
554
555 Sat Nov  2 23:48:52 2002  Kristian Rietveld  <kris@gtk.org>
556
557         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): remove
558         the second ref command on the child_model, we only have to ref it
559         once here. (#96851, reported by Jorn Baayen).
560
561 2002-11-02  Matthias Clasen  <maclas@gmx.de>
562
563         * gtk/gtkhandlebox.c (effective_handle_position): 
564         (gtk_handle_box_size_request): 
565         (gtk_handle_box_size_allocate): 
566         (gtk_handle_box_draw_ghost): 
567         (gtk_handle_box_paint): 
568         (gtk_handle_box_button_changed): 
569         (gtk_handle_box_motion): 
570         Flip handleboxes for RTL locales.  (#96629)
571
572 Sat Nov  2 13:47:09 2002  Owen Taylor  <otaylor@redhat.com>
573          
574         * === Released 2.1.2 ===
575
576         * NEWS: Update.
577
578 Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>
579
580         Add startup notification hooks - mostly based on patch
581         by Havoc Pennington in #96772.
582         
583         * gdk/gdk.h gdk/x11/gdkdisplay-x11.c 
584         gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
585         new function that indicates an application has finished starting
586         up.
587         
588         * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
589         (_gdk_windowing_set_default_display): store value of 
590         DESKTOP_STARTUP_ID on the default screen, and clear it from the 
591         environment.
592         
593         * gdk/x11/gdkdisplay-x11.c: 
594         Set _NET_STARTUP_ID hint on display's group leader window.
595         
596         * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
597         function to toggle whether we automatically broadcast that we've
598         started up, after mapping the first toplevel window.
599         (gtk_window_map): call gdk_screen_notify_startup_complete() by
600         default, unless enabled by above.
601
602         * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c: 
603         Couple of warning fixes.
604
605 Fri Nov  1 21:03:59 2002  Owen Taylor  <otaylor@redhat.com>
606
607         * gtk/gtkfilesel.c: Add a mnemonic to the "selection"
608         label. (More of #74267)
609
610         * configure.in: Version 2.1.2
611
612         * NEWS: Updates.
613
614 2002-11-02  Matthias Clasen  <maclas@gmx.de>
615
616         * gtk/stock-icons/stock_jump_to_rtl_16.png,
617         * gtk/stock-icons/stock_jump_to_rtl_24.png: Mirrored variants
618         of stock_jump_to.
619         
620         * gtk/stock-icons/Makefile.am: 
621         * gtk/gtkiconfactory.c (get_default_icons): Flip GTK_STOCK_FIRST,
622         GTK_STOCK_LAST and GTK_STOCK_JUMP_TO for RTL locales.  (#96633)
623
624         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): 
625         Flip accel labels for RTL locales.  (#96637)
626         
627         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): 
628         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): 
629         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_allocate): 
630         * gtk/gtkmenuitem.c (gtk_menu_item_init): 
631         (gtk_menu_item_size_request): 
632         (gtk_menu_item_size_allocate): 
633         (gtk_menu_item_paint): 
634         (gtk_menu_item_select_timeout): 
635         (gtk_menu_item_position_menu): Flip all kinds of menu items for 
636         RTL locales.  (#96637)
637
638         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Support resize
639         grips for all edges.  (#52833)
640
641         * gtk/gtkstyle.c (gtk_default_draw_box): 
642         * gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate): 
643         (gtk_option_menu_paint): Flip option menus for RTL 
644         locales.  (#96631)
645
646         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Flip menubars
647         for RTL locales.  (#96627)
648
649         * gtk/gtkprogressbar.c (gtk_progress_bar_act_mode_enter): 
650         (gtk_progress_bar_paint): Flip progress bars for RTL 
651         locales.  (#96634)
652
653         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Flip toolbars
654         for RTL locales.  (#96626) 
655
656 2002-11-01  Matthias Clasen  <maclas@gmx.de>
657
658         * gdk/x11/gdkim-x11.c: 
659         * gdk/gdkfont.c: 
660         * gdk/x11/gdkfont-x11.c: 
661         * gdk/gdkdraw.c: Some docs moved inline.
662
663 Thu Oct 31 17:41:12 2002  Owen Taylor  <otaylor@redhat.com>
664
665         * gtk/gtktooltips.c (gtk_tooltips_update_screen): Fix
666         from Nam SungHyun for crashes when tooltips->active_tips_data
667         is NULL.
668
669 Thu Oct 31 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>
670
671         * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h 
672         gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c:
673         Add a --screen option for setting the default screen. 
674         (Based on a patch from Balamurali Viswanathan, #81145)
675
676         * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add 
677         gdk_display_open_default_libgtk_only(), so gtk_init_check()
678         and gdk_init_check() can share the same behavior w.r.t.
679         --screen.
680
681         * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN.
682
683         * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): 
684         Suppress a spurious warning.
685
686         * tests/testgtkrc: Remove someleft-over commented out 
687         includes that could be confusing.
688
689 2002-10-31  Padraig O'Briain  <padraig.obriain@sun.com>
690
691         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): Move g_free()
692         call to before return.
693
694 2002-10-29  Matthias Clasen  <maclas@gmx.de>
695
696         * tests/testgtkrc: Adjust for current gtk-engines.
697
698         * gdk/x11/gdkcolor-x11.c (gdk_colors_free): Use the same parameter
699         names in header, docs and implementation.
700
701         * gdk/gdkcolor.c (gdk_colors_store): Doc comment fix.
702
703         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Fix
704         example in doc comment.
705
706         * gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings): 
707         * gtk/gtkfilesel.c (gtk_file_selection_get_selections): Doc
708         comment fixes.  (#97136, #97125, Vitaly Tishkov)
709
710         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
711         * gtk/gtkwindow.c (gtk_window_set_default_icon_from_file): Doc
712         comment fixes.  (#95829, #96818, Vitaly Tishkov)
713
714 Tue Oct 29 20:39:16 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
715
716         * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT back to 50,
717         and create stay-up regions by flipping a fourth quadrant triangle
718         as appropriate.
719
720 2002-10-28  Tor Lillqvist  <tml@iki.fi>
721
722         * gdk/win32/gdkwindow-win32.c (gdk_window_set_decorations,
723         gdk_window_set_functions): Don't call GetWindowLong for
724         GWL_EXSTYLE, the extended window style wasn't used or
725         changed. After setting the window style with SetWindowLong, call
726         SetWindowPos with the SWP_FRAMECHANGED flag for the window to
727         actually be updated, as Platform SDK docs say one should. (#95812,
728         huzheng)
729
730 2002-10-28  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
731
732         * configure.in: Added Belorusian (be) to ALL_LINGUAS.
733
734 Sun Oct 27 15:58:30 2002  Kristian Rietveld  <kris@gtk.org>
735
736         This fixes a scrolling bug. Shouldn't cause problems, but you
737         never know ... (#81627, testcase by Timo Sirainen).
738
739         * gtk/gtktreeview.c (validate_visible_area): add a temporary
740         implemention for non use_align, always update dy and ->top_row
741         if we scroll here,
742         (gtk_tree_view_clamp_node_visible): reimplement using
743         _scroll_to_cell (#73895).
744
745 Sun Oct 27 11:41:37 GMT 2002  Tony Gale <gale@gtk.org>
746
747         * docs/tutorial/gtk-tut.sgml:
748         minor cleanups, remove refs to gtk_menu_append
749
750         *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append
751
752 Fri Oct 25 23:36:30 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
753
754         * gtk/gtkmenu.c: Change NAVIGATION_REGION_OVERSHOOT from 50 to 5.
755
756 Fri Oct 25 17:56:24 2002  Owen Taylor  <otaylor@redhat.com>
757
758         * gtk/gtknotebook.c (gtk_notebook_switch_focus_tab): 
759         Always switch to the page with the focused tab
760         label. (#82108, Matt Wilson.)
761
762 Fri Oct 25 17:46:18 2002  Owen Taylor  <otaylor@redhat.com>
763
764         * gtk/gtknotebook.c (gtk_notebook_button_press): 
765         Don't handle button 2/3 on the tabs. (#82118,
766         Matt Wilson.)
767
768 Fri Oct 25 17:32:44 2002  Owen Taylor  <otaylor@redhat.com>
769
770         * gtk/gtktoolbar.c: Don't insert mnemonics for stock
771         items (#72918, reported by Mikael Hallendal)
772
773 Fri Oct 25 14:51:34 2002  Owen Taylor  <otaylor@redhat.com>
774
775         * gtk/gtkfilesel.c: Fix sensitivity of file operation
776         buttons and buttons inside fileop dialogs to update
777         properly based on the contents of the entries.
778         (#74267, based on part of a patch from Muktha 
779         Narayan)
780
781         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
782         Warn if loading <ImageItem> image fails.
783
784         * tests/testgtk.c: Fix data for "apple" inline pixbuf
785         to be valid.
786
787 Fri Oct 25 18:17:39 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
788
789         * gtk/gtkpaned.[ch]: New GtkPaned keyboard navigation. (Shift-)F8
790         now cycles the available handles instead of toggling focus on and
791         off. Fixes #87160, reported by Calum Benson.
792
793 2002-10-25  Matthias Clasen  <maclas@gmx.de>
794
795         * gdk/x11/gdkcursor-x11.c: Fix doc comment. 
796
797         * gdk/gdkdnd.c: Add missing includes.
798
799 2002-10-24  Matthias Clasen  <maclas@gmx.de>
800
801         * gdk/gdkdnd.c: 
802         * gdk/x11/gdkdnd-x11.c: 
803         * gdk/x11/gdkcursor-x11.c: 
804         * gdk/gdkcolor.c:
805         * gdk/x11/gdkcolor-x11.c: Some docs moved inline.
806         
807 2002-10-23  Matthias Clasen  <maclas@gmx.de>
808
809         * gdk/linux-fb/gdkselection-fb.c (gdk_utf8_to_string_target): 
810         (gdk_utf8_to_compound_text_for_display): 
811         (gdk_text_property_to_utf8_list_for_display): 
812         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_entries_for_keyval): 
813         (gdk_keymap_get_entries_for_keycode): 
814         (gdk_keymap_lookup_key): 
815         (gdk_keymap_translate_keyboard_state): 
816         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_utf8_list_for_display): 
817         (gdk_utf8_to_string_target): 
818         (gdk_utf8_to_compound_text_for_display): 
819         * gdk/win32/gdkkeys-win32.c (gdk_keymap_get_entries_for_keyval): 
820         (gdk_keymap_get_entries_for_keycode): 
821         (gdk_keymap_lookup_key): 
822         (gdk_keymap_translate_keyboard_state): 
823         * gdk/win32/gdkgeometry-win32.c (gdk_window_scroll): 
824         * gdk/win32/gdkfont-win32.c (gdk_font_from_description_for_display): 
825         * gdk/win32/gdkevents-win32.c (gdk_keyboard_grab_info_libgtk_only): 
826         Remove doc comments for non-backend-specific functions from win32
827         and linux-fb backends. These functions should be documented in the
828         x11 backend.
829         
830 Wed Oct 23 17:06:02 2002  Kristian Rietveld  <kris@gtk.org>
831
832         * gtk/gtktreemodel.c: s/NULL/0/ on the g_signal_emit lines to
833         fix up yesterdays commit (reported by Morten Welinder).
834
835 Tue Oct 22 20:02:22 2002  Owen Taylor  <otaylor@redhat.com>
836
837         * gtk/gtkcombo.c: When popping up the list without
838         any selected items, hack the focus on the list to
839         avoid triggering a bug in GtkList when clicking
840         on focused-but-not-selected items (#86700,
841         Zimler Attila, Matthias Clasen) and to keep
842         GtkWindow from selecting the first item.
843
844         * tests/testgtk.c (create_list): Make the initial
845         setting of the selection mode correspond to the option
846         menu.
847
848 Wed Oct 23 01:03:43 2002  Kristian Rietveld  <kris@gtk.org>
849
850         Another feature to create truly ugly TreeViews!: style properties
851         for the even/odd colors used for row hinting. (#71595, reported
852         by Owen Taylor).
853
854         * gtk/gtktreeview.c (gtk_tree_view_class_init): add even_row_color
855         and odd_row_color style properties.
856
857         * gtk/gtkstyle.c (get_darkened_gc): support darken_count == 0 case,
858         (gtk_default_draw_flat_box): rework cell coloring code to support
859         user-provided even/odd row colors.
860
861 Wed Oct 23 01:01:52 2002  Kristian Rietveld  <kris@gtk.org>
862
863         Cache signal IDs to speed up signal emission. This is a good speedup
864         because GtkTreeModel emits a big number of signals.
865
866         * gtk/gtktreemodel.c (gtk_tree_model_base_init): save IDs returned
867         by g_signal_new,
868         (gtk_tree_model_row_changed): use g_signal_emit instead of
869         g_signal_emit_by_name,
870         (gtk_tree_model_row_inserted): ditto,
871         (gtk_tree_model_row_has_child_toggled): ditto,
872         (gtk_tree_model_row_deleted): ditto,
873         (gtk_tree_model_rows_reordered): ditto.
874         
875 Wed Oct 23 00:56:15 2002  Kristian Rietveld  <kris@gtk.org>
876
877         * gtk/gtktreeselection.c (model_changed): new function,
878         (gtk_tree_selection_selected_foreach): monitor changes in the model,
879         bail out if the model has been changed from the foreach func.
880         (#50263, reported by Havoc Pennington).
881
882         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
883         free anchor if applicable (#94868, reported and testcase provided by
884         Daniel Elstner).
885
886 2002-10-23  Matthias Clasen  <maclas@gmx.de>
887
888         * gtk/gtkinvisible.c (gtk_invisible_get_screen): 
889         * gtk/gtkcolorsel.c
890         (gtk_color_selection_set_change_palette_with_screen_hook): Fix doc comments.
891
892         * gdk/linux-fb/gdkselection-fb.c (gdk_text_property_to_utf8_list_for_display): 
893         (gdk_utf8_to_compound_text_for_display): Fix doc comments - why
894         do these overwrite the ones from gdk/x11/*.c ?!
895
896         * gdk/gdkdisplaymanager.c
897         (gdk_display_manager_get_default_display): 
898         Documentation fix.
899
900         * gdk/gdkevents.c (gdk_event_new): 
901         * gdk/x11/gdkdnd-x11.c (gdk_drag_find_window_for_screen): 
902         * gdk/x11/gdkevents-x11.c (gdk_x11_screen_get_window_manager_name): 
903         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_grab): 
904         (gdk_x11_display_ungrab): Add documentation.
905
906         * gdk/x11/gdkimage-x11.c (gdk_x11_image_get_xdisplay): 
907         (gdk_x11_image_get_ximage): 
908         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_get_xdisplay): 
909         (gdk_x11_gc_get_xgc): 
910         * gdk/x11/gdkfont-x11.c (gdk_x11_font_get_xdisplay): 
911         (gdk_x11_font_get_xfont): 
912         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xdisplay): 
913         (gdk_x11_drawable_get_xid): 
914         * gdk/x11/gdkcursor-x11.c (gdk_x11_cursor_get_xdisplay): 
915         (gdk_x11_cursor_get_xcursor): 
916         * gdk/x11/gdkcolor-x11.c (gdk_x11_colormap_get_xcolormap): 
917         (gdk_x11_colormap_get_xdisplay): 
918         * gdk/x11/gdkxid.c (gdk_xid_table_lookup): 
919         * gdk/x11/gdkvisual-x11.c (gdkx_visual_get): 
920         (gdk_x11_visual_get_xvisual):
921         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server): 
922         (gdk_x11_ungrab_server): 
923         (gdk_x11_get_default_root_xwindow): 
924         (gdk_x11_get_default_xdisplay): 
925         Some docs moved inline.
926         
927 Tue Oct 22 16:37:12 2002  Owen Taylor  <otaylor@redhat.com>
928
929         * gtk/gtktooltips.c: Multihead safety fixes, handle
930         displays being closed. (#81651, based on patch
931         from Erwann Chenede)
932
933         * gtk/gtktoolbar.c (gtk_toolbar_init): Fix typo
934         from the last commit.
935
936 Tue Oct 22 15:55:08 2002  Owen Taylor  <otaylor@redhat.com>
937
938         * gtk/gtktoolbar.c: Fix handling of getting the 
939         default style/icon size from the correct 
940         GtkSettings. (#82184, reported by Vitaly Tishkov,
941         help from Soeren Sandmann)
942
943 Tue Oct 22 15:32:31 2002  Owen Taylor  <otaylor@redhat.com>
944
945         * gtk/gtkwindow.c: Actively monitor the screen of the
946         parent. (#80281)
947
948         * gtk/gtkentry.c: Fix missing prototype from the 
949         last commit.
950
951 Tue Oct 22 15:46:09 2002  Owen Taylor  <otaylor@redhat.com>
952
953         * gtk/gtkentry.c (gtk_entry_unrealize): Reset the 
954         layout, since it holds a reference to the font on
955         a particular screen.
956
957 Tue Oct 22 15:13:59 2002  Owen Taylor  <otaylor@redhat.com>
958         
959         * gtk/gtkimmulticontext.c: Include config.h
960         (#96441, Morten Welinder)
961
962 Tue Oct 22 15:03:41 2002  Owen Taylor  <otaylor@redhat.com>
963
964         * gtk/fnmatch.h: When compiling our on fnmatch.c, 
965         #define fnmatch _gtk_fnmatch (#92890, Jacob Berkman)
966
967 Fri Oct 18 16:47:02 2002  Owen Taylor  <otaylor@redhat.com>
968
969         * gdk/x11/gdkevents-x11.c (translate_key_event): Produce
970         C-m, not C-j for return. Handle Escape.
971
972 2002-10-22  Matthias Clasen  <maclas@gmx.de>
973
974         * gtk/gtkstatusbar.c (gtk_statusbar_get_type): 
975         (gtk_statusbar_class_init): It is called GtkStatusbar, not
976         GtkStatusBar. This was changed accidentally during deprecation
977         cleanup and caused links in the API docs to break.  (#96390)
978
979 Mon Oct 21 14:04:39 2002  Owen Taylor  <otaylor@redhat.com>
980
981         * gtk/gtkentry.c (gtk_entry_get_public_chars): Return
982         "" for entry->invisible_char == 0, otherwise N copies
983         of entry->invisible_char. (#95486, Vitaly Tishkov)
984
985         * gtk/gtkentry.c: Fix a bunch of places where entry->text
986         instead of layout->text was being used for computation
987         of offsets/indices in the layout. Using layout->text
988         is necessary because when the entry is invisible, it
989         doesn't correspond to entry->text.
990
991 Sun Oct 20 23:58:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
992
993         * gtkmenu.c, gtkmenubar.c, gtkmenuitem.c, gtkmenushell.c,
994         gtkmenushell.h, gtkmenushell.h
995
996         - make the delay before submenus appear below menu bars a
997           GtkSetting
998         - make the delay before submenus pops up a GtkSetting
999         - make the stay up triangle slightly larger
1000         - don't pop up the first submenu immediately.
1001         - make the default delay for submenus 225 ms, and 0 for menubars.
1002         - make the default delay before popping down inside the stay-up 
1003           triangle 1000 ms
1004
1005         Fixes #74950
1006         
1007 Sun Oct 20 14:58:02 2002  Owen Taylor  <otaylor@redhat.com>
1008
1009         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
1010         Add a scrollbar_spacing style property (#81396, based
1011         on a patch from Anders Carlsson)
1012
1013 2002-10-19  Jeremy Katz  <katzj@redhat.com>
1014
1015         * configure.in: make configure checks for Xrandr and Xinerama
1016         extensions less noisy (#95858)
1017
1018 Fri Oct 18 16:47:02 2002  Owen Taylor  <otaylor@redhat.com>
1019
1020         * gdk/x11/gdkevents-x11.c (translate_key_event): Handle
1021         Return and KP_Enter.
1022
1023 Fri Oct 18 15:38:50 2002  Owen Taylor  <otaylor@redhat.com>
1024
1025         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): 
1026         Reset use_text_format to %TRUE for a %NULL text string.
1027         (#94157, once again).
1028
1029 Thu Oct 17 17:17:05 2002  Owen Taylor  <otaylor@redhat.com>
1030
1031         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): 
1032         Fix use of uninitialized variable.
1033
1034 Thu Oct 17 14:38:37 2002  Owen Taylor  <otaylor@redhat.com>
1035
1036         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): 
1037         Align the baseline of the accelerator label with the 
1038         first baseline of the main label of the menu item. (#76953)
1039
1040 Wed Oct 16 18:25:24 2002  Owen Taylor  <otaylor@redhat.com>
1041
1042         * gdk/x11/gdkevents-x11.c (translate_key_event): 
1043         Use gdk_keymap_translate_keyboard_state() rather than
1044         XLookupString() to get the keysymbol, since XLookupString
1045         can confuse the input method handling. (#93575)
1046
1047         * gdk/x11/gdkkeys-x11.c: Rewrite the handling of
1048         key translation for the non-XKB case to properly
1049         handle Shift_Lock, Caps_Lock, Num_Lock according
1050         to the Xlib spec. (#67066)
1051
1052 2002-10-17  Havoc Pennington  <hp@redhat.com>
1053
1054         * gtk/gtkwindow.c (gtk_window_compute_configure_request): fix
1055         compiler warnings
1056
1057 Thu Oct 17 22:37:57 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1058
1059         * gtk/gtkwindow.c (get_center_monitor_of_window): fix typo to make
1060         it compile
1061         
1062 2002-10-16  Havoc Pennington  <hp@redhat.com>
1063
1064         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_monitor_geometry): add
1065         g_return_if_fail for monitor number <= 0
1066
1067         * gtk/gtkmenu.c (gtk_menu_position): handle case where pointer 
1068         is outside the screen.
1069
1070         * gtk/gtkwindow.c (get_monitor_center): factor out 
1071         the code to position a window in center
1072         (gtk_window_compute_configure_request): use here
1073         (gtk_window_constrain_position): use here, the 
1074         code here wasn't multihead-aware
1075
1076         * gdk/x11/gdkevents-x11.c (get_real_window): function to
1077         return the window the event describes, rather than the window
1078         that received the event.
1079         (gdk_event_translate): use result of that function for 
1080         filling in GdkEvent::window, which only matters for 
1081         MapNotify/UnmapNotify and ConfigureNotify, in practice.
1082
1083         Unbreaks various things using SubstructureNotifyMask.
1084
1085 Thu Oct 17 16:13:28 2002  Owen Taylor  <otaylor@redhat.com>
1086
1087         * gtk/gtkcheckbutton.c gtk/gtkradiobutton.c: Make
1088         the widgets work reasonably when they don't have
1089         children -- draw the focus around the indicator, 
1090         and position the indicator symmetrically.
1091         (#74830, Dave Camp)
1092
1093         * tests/testgtk.c: Add no-child portions to check and radio 
1094         button tests.
1095
1096 Thu Oct 17 22:09:05 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1097
1098         * gtk/gtkmenu.c (gtk_menu_scroll_to): Take arrows into
1099         account when clamping the offset. Fixes #95758.
1100
1101 Wed Oct 16 15:19:44 2002  Owen Taylor  <otaylor@redhat.com>
1102
1103         * gdk/x11/gdkkeys-x11.c: Fix from Phil Blundell for
1104         compiling without Xkb. (#95909)
1105
1106 Wed Oct 16 14:32:43 2002  Owen Taylor  <otaylor@redhat.com>
1107
1108         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c 
1109         gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c
1110         gdk/win32/gdkdrawable-win32.c gdk/linux-fb/gdkdrawable-fb2.c
1111         gdk/linux-fb/gdkprivate-fb.h:
1112         Make 'filled' arguments for draw_arc/polygon/rectangle
1113         gboolean not gint. (#94976)
1114         
1115 Wed Oct 16 17:11:46 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1116
1117         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Make
1118         tear-off menuitems obey the "selected_shadow_type" style property.
1119
1120 Tue Oct 15 17:25:47 2002  Owen Taylor  <otaylor@redhat.com>
1121
1122         * modules/input/gtkimcontextxim.c (get_im): Don't use 
1123         connect_swapped() when the function being connected
1124         has a non-swapped signature.
1125
1126 Tue Oct 15 09:54:54 2002  Owen Taylor  <otaylor@redhat.com>
1127
1128         * modules/input/gtkimcontextxim.c (get_im): Initialize
1129         info->ics to NULL. (Hidetoshi Tajima.)  
1130
1131         * modules/input/gtkimcontextxim.c (status_window_get): 
1132         Call set_resizable on the window, not on the structure.
1133
1134 Mon Oct 14 19:17:34 2002  Owen Taylor  <otaylor@redhat.com>
1135
1136         * === Released 2.1.1 ===
1137
1138 Mon Oct 14 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>
1139
1140         * configure.in: Version 2.1.1, interface age 0, binary age 101.
1141
1142         * NEWS: Updates
1143
1144 Tue Oct 15 00:53:14 2002  Kristian Rietveld  <kris@gtk.org>
1145
1146         Behaviour change, apply changes if the entry of the editable gets
1147         a focus out event (#82405).
1148
1149         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
1150         new function,
1151         (gtk_cell_renderer_text_start_editing): stop editing and apply
1152         changes on focus-out.
1153
1154 Tue Oct 15 00:47:35 2002  Kristian Rietveld  <kris@gtk.org>
1155
1156         Fixes an *evil* GtkTreeModelSort bug, #93629.
1157
1158         * gtk/gtktreemodel.c (release_row_references): return if the
1159         refs->list is NULL.
1160
1161         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_changed): if we
1162         are swapping two rows (re-insertion on row_changed), also *emit*
1163         a rows_reordered signal. oops.
1164
1165 Tue Oct 15 00:45:03 2002  Kristian Rietveld  <kris@gtk.org>
1166
1167         * gtk/gtkliststore.c (gtk_list_store_remove_silently): free
1168         the actual link after the node has been removed (#92014).
1169
1170         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_column_finalize):
1171         free the cell_list and the child if the exists (#92014).
1172
1173 Tue Oct 15 00:40:25 2002  Kristian Rietveld  <kris@gtk.org>
1174
1175         Don't accept drops if the model has been sorted, #93758)
1176
1177         * gtk/gtkliststore.c (gtk_list_store_row_drop_possible): return
1178         FALSE if the list has been sorted.
1179
1180         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): check
1181         if drag_dest is a TreeStore, return FALSE if the tree has been
1182         sorted.
1183
1184 Tue Oct 15 00:33:59 2002  Kristian Rietveld  <kris@gtk.org>
1185
1186         Compiler warning fixage, (#85858, #85859, #85860, #85872)
1187
1188         * gtk/gtkcellrendererpixbuf (gtk_cell_renderer_pixbuf_render):
1189         s/guint/GtkCellRendererState/.
1190         
1191         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
1192         ditto.
1193
1194         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render),
1195         (gtk_cell_renderer_toggle_activate): ditto.
1196
1197         * gtk/gtkliststore.c (gtk_list_store_get_flags): a
1198         s/guint/GtkTreeModelFlags/ on the return type.
1199
1200 Mon Oct 14 15:10:34 2002  Owen Taylor  <otaylor@redhat.com>
1201
1202         * modules/input/gtkimcontextxim.c:
1203         - Make GtkXIMInfo structures per-screen (they were
1204           a mix between per-display and per-context before)
1205         - Make signal connections info->settings one-per-info
1206          - Handle a GdkDisplay being closed, by destroying
1207           all XIC, calling XCloseIM on the XIM. (#87482)
1208  
1209 Sun Oct 13 16:55:49 2002  Manish Singh  <yosh@gimp.org>
1210
1211         * gtk/gtkdnd.c gtk/gtkradiobutton.[ch]: Deprecation cleanup
1212
1213         * gtk/Makefile.am: Added disable deprecation flags
1214
1215         * demos/pixbuf-init.c demos/gtk-demo/changedisplay.c: minor clean up
1216
1217 Sun Oct 13 16:20:41 2002  Manish Singh  <yosh@gimp.org>
1218
1219         * tests/pixbuf-randomly-modified.c tests/prop-editor.c
1220         tests/testcalendar.c tests/testdnd.c tests/testgtk.c tests/testinput.c
1221         tests/testmultidisplay.c tests/testmultiscreen.c tests/testrgb.c
1222         tests/testselection.c tests/testsocket.c tests/testsocket_common.c
1223         tests/testtext.c tests/testtextbuffer.c tests/testtreecolumns.c
1224         tests/testtreeedit.c tests/testtreeflow.c tests/testtreefocus.c
1225         tests/testtreesort.c tests/testtreeview.c tests/testxinerama.c
1226         tests/treestoretest.c: Deprecation cleanup
1227
1228         * tests/Makefile.am: Added disable deprecation flags
1229
1230 Sun Oct 13 13:43:16 2002  Manish Singh  <yosh@gimp.org>
1231
1232         * gtk/gtkcurve.[ch] gtk/gtkgamma.[ch] gtk/gtklayout.[ch]
1233         gtk/gtkwidget.[ch] modules/input/gtkimcontextxim.c
1234         modules/input/imam-et.c modules/input/imcyrillic-translit.c
1235         modules/input/imhangul.c modules/input/iminuktitut.c
1236         modules/input/imipa.c modules/input/imthai-broken.c
1237         modules/input/imti-er.c modules/input/imti-et.c
1238         modules/input/imviqr.c: Deprecation cleanup
1239
1240         * modules/input/Makefile.am: Added disable deprecation flags
1241
1242 Sun Oct 13 12:29:15 2002  Manish Singh  <yosh@gimp.org>
1243
1244         * gtk/gtkcolorsel.[ch] gtk/gtkcombo.[ch] gtk/gtkplug.[ch]
1245         gtk/gtksocket.[ch] gtk/gtktreeview.[ch] gtk/gtktreeviewcolumn.[ch]:
1246         Deprecation cleanup
1247
1248         * gtk/gtkcolorseldialog.c: make window not resizable (lost
1249         accidently in the previous cleanup)
1250
1251 Sun Oct 13 20:20:51 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1252
1253         * gtk/gtktooltips.c (gtk_tooltips_force_window): Make tooltip
1254         window not resizable. Fixes #95675.
1255
1256 Sun Oct 13 18:50:14 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1257
1258         * gtkmenu.c, gtkmenu.sgml, gtkitemfactory.c, gdkwindow.c,
1259         gtkwindow.c, gtkpaned.sgml, gtkdialog.c, gtkbox.h, gtkbutton.sgml,
1260         gtktreemodel.sgml,gtktable.sgml, gtktable.c:
1261
1262         Documentation fixes.
1263
1264         #85719, #90759, #95169, Owen Taylor;
1265         #89221, Yao Zhang, Matthias Clasen;
1266         #95592, Joost Faassen;
1267         #92637, Vitaly Tishkov;
1268         #94616, Ben Martin;
1269         #94772, sbaillie@bigpond.net.au;
1270
1271 Sun Oct 13 17:41:53 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1272
1273         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Don't invalidate
1274         a widget if it or one of its ancestors isn't mapped.
1275
1276 Sun Oct 13 17:21:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1277
1278         * tests/testgtk.c (window_controls), tests/testgtk.c
1279         (create_tooltips): remove references to non-existing properties
1280         GtkWindow::allow_shrink and GtkWidget::width
1281
1282 Sat Oct 12 15:44:29 2002  Manish Singh  <yosh@gimp.org>
1283
1284         * gtk/gtkitemfactory.c: use GTK_IS_RADIO_MENU_ITEM instead
1285         of comparing the type directly. This handles possible subclasses
1286         too. (Recommended by Tim Janik)
1287
1288 Fri Oct 11 15:56:20 2002  Manish Singh  <yosh@gimp.org>
1289
1290         * gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
1291         gtk/gtkcheckbutton.[ch] gtk/gtkcolorseldialog.[ch] gtk/gtkdialog.[ch]
1292         gtk/gtkhandlebox.[ch] gtk/gtkinputdialog.[ch] gtk/gtkmessagedialog.[ch]
1293         gtk/gtktearoffmenuitem.[ch] gtk/gtktogglebutton.[ch]: Deprecation
1294         cleanup
1295
1296 2002-10-11  Matthias Clasen  <maclas@gmx.de>
1297
1298         * examples/gtkdial/gtkdial.c (gtk_dial_destroy): 
1299         * docs/tutorial/gtk-tut.sgml: Prevent segfault from double destroy.
1300
1301         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Typo fix.
1302
1303         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
1304         Clarify the docs.
1305
1306         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Mention 
1307         gtk_menu_set_accel_group in the docs.
1308
1309         * gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_pager_hint): 
1310         * gdk/gdkdisplay.c (gdk_display_set_pointer_hooks): Fix
1311         doc comments.
1312
1313         * gtk/gtkiconfactory.c (gtk_icon_size_lookup_for_settings): 
1314         * gtk/gtknotebook.c (gtk_notebook_get_n_pages): 
1315         * gtk/gtkwindow.c (gtk_window_set_icon_from_file): 
1316         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_focus_cell): Fix
1317         doc comments.
1318
1319         * gtk/gtktreestore.c: 
1320         * gtk/gtktreestore.h: Consistently name first parameter
1321         tree_store, and make header and implementation agree on parameter 
1322         names to silence gtk-doc.
1323
1324         * gtk/gtkenums.h (enum): Comment typo fix.
1325
1326 Thu Oct 10 15:13:48 2002  Manish Singh  <yosh@gimp.org>
1327
1328         * gtk/gtkimcontext.[ch] gtk/gtkimcontextsimple.[ch] gtk/gtkimmodule.c
1329         gtk/gtkimmulticontext.[ch] gtk/gtktreestore.[ch]: Deprecation
1330         cleanup
1331
1332 Thu Oct 10 14:58:47 2002  Manish Singh  <yosh@gimp.org>
1333
1334         * gtk/gtkaccelgroup.c gtk/gtkarrow.[ch] gtk/gtkeventbox.[ch]
1335         gtk/gtkiconfactory.c gtk/gtkinvisible.[ch] gtk/gtktextchild.c:
1336         Deprecation cleanup
1337
1338 Thu Oct 10 14:41:05 2002  Manish Singh  <yosh@gimp.org>
1339
1340         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextdisplay.c
1341         gtk/gtktextlayout.c gtk/gtktextmark.c gtk/gtktexttag.[ch]
1342         gtk/gtktexttagtable.c gtk/gtktextutil.c gtk/gtktextview.[ch]:
1343         Deprecation cleanup
1344
1345 Thu Oct 10 14:35:31 2002  Owen Taylor  <otaylor@redhat.com>
1346
1347         * gtk/gtkscrolledwindow.[ch]: Privately export
1348         _gtk_scrolled_window_get_scrollbar_spacing().
1349
1350         * gtk/gtkcombo.c: Properly account from scrollbar
1351         spacing when computing the size of the popup window.
1352         (#84955, Marco Pesenti Gritti)
1353
1354 Wed Oct  9 17:40:13 2002  Manish Singh  <yosh@gimp.org>
1355
1356         * gtk/gtkaccelmap.c gtk/gtkfixed.[ch] gtk/gtkkeyhash.c gtk/gtkmenu.c
1357         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtkrc.c gtk/gtkspinbutton.[ch]
1358         gtk/gtktable.[ch] gtk/gtkthemes.c: Deprecation cleanup
1359
1360 Wed Oct  9 16:52:53 2002  Manish Singh  <yosh@gimp.org>
1361
1362         * gtk/gtkclipboard.[ch] gtk/gtkeditable.[ch] gtk/gtkgc.c
1363         gtk/gtkoptionmenu.[ch] gtk/gtkselection.c gtk/gtksizegroup.[ch]:
1364         Deprecation cleanup
1365
1366 Wed Oct  9 15:23:48 2002  Manish Singh  <yosh@gimp.org>
1367
1368         * gtk/gtkadjustment.[ch] gtk/gtkalignment.[ch] gtk/gtkentry.[ch]
1369         gtk/gtkhsv.[ch] gtk/gtktooltips.[ch]: Deprecation cleanup
1370
1371 Wed Oct  9 15:07:08 2002  Manish Singh  <yosh@gimp.org>
1372
1373         * gtk/gtkbindings.[ch] gtk/gtkcalendar.[ch] gtk/gtkfilesel.[ch]
1374         gtk/gtkfontsel.[ch] gtk/gtkitem.[ch] gtk/gtkitemfactory.[ch]:
1375         Deprecation cleanup
1376
1377 Wed Oct  9 17:06:21 2002  Owen Taylor  <otaylor@redhat.com>
1378
1379         * gtk/gtkiconfactory.c (add_size_and_dir_with_fallback):
1380         Add GO_FORWARD and GO_BACK with both left and right
1381         arrows depending on the direction. (#92211,
1382         Kenneth Christiansen)
1383
1384         * tests/testgtk.c (create_flipping): Add forward/back button
1385         pairs in default, RTL, LTR configurations.
1386
1387 2002-10-09  Stanislav Brabec  <sbrabec@suse.cz>
1388
1389         * gtk/gtkimcontextsimple.c: Added support for hungarian characters
1390         (addition to bug #93421). Only via dead keys, because compose key
1391         combinations in X are erratic.
1392
1393 Tue Oct  8 17:34:26 2002  Manish Singh  <yosh@gimp.org>
1394
1395         * gtk/gtkmain.c gtk/gtkscrolledwindow.[ch] gtk/gtksettings.c
1396         gtk/gtkstatusbar.[ch] gtk/gtkstyle.c gtk/gtktoolbar.[ch]
1397         gtk/gtkviewport.[ch] gtk/gtkwindow.[ch]: Deprecation cleanup
1398
1399 Tue Oct  8 15:25:53 2002  Manish Singh  <yosh@gimp.org>
1400
1401         * gtk/gtkhpaned.[ch] gtk/gtkpaned.[ch] gtk/gtkprogress.[ch]
1402         gtk/gtkprogressbar.[ch] gtk/gtkvpaned.[ch]: Deprecation cleanup
1403
1404 Tue Oct  8 14:49:56 2002  Manish Singh  <yosh@gimp.org>
1405
1406         * gtk/gtktreemodel.h: restore gtkobject.h #include so we don't
1407         break backwards compat.
1408
1409 Tue Oct  8 09:41:43 2002  Owen Taylor  <otaylor@redhat.com>
1410
1411         * Patch from Takuro Ashie to fix updating of open_ims
1412         list. (#95150)
1413
1414 Mon Oct  7 19:44:45 2002  Owen Taylor  <otaylor@redhat.com>
1415
1416         * gdk/x11/gdkkeys-x11.c (_gdk_keymap_keys_changed): Move
1417         out of HAVE_XKB. (#95129, Phil Blundell)
1418
1419 Mon Oct  7 19:14:24 2002  Eric Warmenhoven <eric@warmenhoven.org>
1420
1421         * gdk/linux-fb/gdkwindow-fb.c: fix compilation
1422
1423         * gdk/linux-fb/gdkmain-fb.c: better display mode setting
1424
1425 Mon Oct  7 18:50:46 2002  Owen Taylor  <otaylor@redhat.com>
1426
1427         * gtk/gtkcolorsel.c (gtk_color_selection_finalize):
1428         Free the private data. (#84903, Matthias Clasen)
1429
1430 Mon Oct  7 18:21:39 2002  Owen Taylor  <otaylor@redhat.com>
1431
1432         * gtk/gtk[hv]paned.c gtk/gtkpaned.c: Allow the slider
1433         to be set all the way to the edge, and if that happens,
1434         use gtk_widget_set_child_visible() to hide the 
1435         appropriate child. (#72784, request from Darin Adler)
1436
1437 Mon Oct  7 16:28:11 2002  Owen Taylor  <otaylor@redhat.com>
1438
1439         * gtk/gtkcolorsel.c (palette_drag_begin): Use
1440         a pixbuf to set the drag icon, combine code
1441         to create drag icons (Fixes #80092, #80093)
1442
1443         * gtk/gtkcolorsel.c (get_screen_color): Don't warn
1444         on failure to grab keyboard/mouse. (#80085)
1445
1446         * gtk/gtkcolorsel.c (palette_press): Return FALSE,
1447         so DND initiation is possible.
1448
1449         * gtk/gtkcolorsel.c (palette_release): Set the color
1450         from the palette on release, not press.
1451
1452         * gtk/gtkcolorsel.c (gtk_color_selection_show_all):
1453         Override to simple call show(). (#74173)
1454
1455         * tests/testgtk.c (create_color_selection): Use 
1456         gtk_widget_show_all()
1457
1458 Mon Oct  7 15:48:44 2002  Owen Taylor  <otaylor@redhat.com>
1459
1460         * gdk/gdkdnd.[ch] gdk/x11/gdkdnd-x11.c: Add 
1461         gdk_drag_find_window_for_screen(), so that we can
1462         interpret x_root / y_root relative to the correct screen.
1463         
1464         * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c 
1465         gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file. 
1466         Move gdk_drag_find_window(), gdk_drag_get_protocol() here.
1467
1468         * gtk/gtkdnd.c: Handle drags between screens; use 
1469         a fallback icon for icons set as windows/pixmaps, 
1470         move the drag icon between displays for icons set as 
1471         pixbufs.
1472
1473         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix infinite
1474         loop from last change.
1475
1476 Mon Oct  7 15:10:00 2002  Owen Taylor  <otaylor@redhat.com>
1477
1478         * gdk/gdkdisplay.[ch] gdk/gdkinternals.h 
1479         gdk/gdkwindow.[ch] gdk/linux-fb/gdkwindow-fb.c 
1480         gdk/win32/gdkwindow-win32.c gdk/x11/gdkwindow-x11.c:
1481
1482         - Replace GdkPointerHooks with a multihead-safe 
1483           GdkDisplayPointerHooks, leave GdkPointerHooks
1484           around for singlehead.
1485         - Add gdk_display_get_pointer() to get the pointer
1486           location with the screen it is on.
1487
1488         * gdk/gdk.def gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]:
1489         Change gdk_screen_get_window_at_pointer() to
1490         gdk_display_get_window_at_pointer().
1491
1492         * gtk/gtktreeview.c demos/gtk-demo/changedisplay.c
1493         tests/testgtk.c: Use gdk_display_get_window_at_pointer(), 
1494         not gdk_screen_get_window_at_pointer().
1495
1496         * gtk/gtkcolorsel.c: Fix grabbing color to be multihead
1497         safe.
1498
1499         * gtk/gtkwidget.c: Allow gtk_widget_push_colormap (NULL).
1500         since it is useful for writing code that doesn't
1501         know the dcurrent state but needs a clean colormap.
1502
1503         * gtk/gtkrc.c: When loading the settings for a particular
1504         screen, only reset toplevels on that screen.
1505
1506         * gtk/gtkiconfactory.h: Fix #ifdef GTK_MULTIHEAD_SAFE
1507         that should have been #ifndef GTK_MULTIHEAD_SAFE.
1508
1509 Mon Oct  7 11:59:33 2002  Manish Singh  <yosh@gimp.org>
1510
1511         * gtk/gtkliststore.[ch] gtk/gtktreedatalist.[ch] gtk/gtktreednd.c
1512         gtk/gtktreemodel.[ch] gtk/gtktreemodelsort.[ch]
1513         gtk/gtktreeselection.[ch] gtk/gtktreesortable.[ch]
1514         gtk/gtktreestore.[ch]: Deprecation cleanup
1515
1516 Mon Oct  7 14:51:21 2002  Owen Taylor  <otaylor@redhat.com>
1517
1518         * gdk/x11/gdkx.h: Fix some prototypes that had
1519         () instead of (void).
1520
1521 Mon Oct  7 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>
1522
1523         * gtk/gtkwindow.c (gtk_window_move_resize): Clean
1524         up the handling of clearing transient state 
1525         settings, fixing bug #95026, reported by Jami
1526         Pekannen.
1527
1528 Mon Oct  7 11:45:17 2002  Owen Taylor  <otaylor@redhat.com>
1529
1530         * gdk/x11/gdkkeys-x11.c (update_keymaps): If Mode_switch
1531         is used for a known modifier like Mod1, assume it won't
1532         be used to switch group. (#94841, problem reported by
1533         Szekeres Istvan)
1534
1535 Mon Oct 7 16:07:52 2002  Bill Haneman <bill.haneman@sun.com>
1536
1537         * gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c 
1538         gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel): 
1539         (gdk_image_put_pixel): Fixed sense of bounds checks.
1540
1541 Sun Oct  6 21:23:29 2002  Manish Singh  <yosh@gimp.org>
1542
1543         * gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
1544         gtk/gtkvbox.[ch]: Deprecation cleanup
1545
1546 Sun Oct  6 18:32:11 2002  Manish Singh  <yosh@gimp.org>
1547
1548         * gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
1549         gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
1550         gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
1551
1552 Sat Oct  5 16:11:22 2002  Manish Singh  <yosh@gimp.org>
1553
1554         * gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
1555         gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
1556
1557 Sat Oct  5 18:30:50 2002  Owen Taylor  <otaylor@redhat.com>
1558
1559         * gtk/stock-icons/Makefile.am (pixbuf_csource): Use
1560         $(top_builddir) instead of here-undefined $$topdir.
1561         (Problem reported by Jacob Berkman)
1562
1563 Sat Oct  5 18:25:11 2002  Owen Taylor  <otaylor@redhat.com>
1564
1565         * gtk/gtknotebook.c (gtk_notebook_draw_tab): Fix 
1566         &expose_event vs expose_event problem (#94898,
1567         reported by Jon-Kare Hellan)
1568
1569 Sat Oct  5 16:47:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1570
1571         * docs/reference/gtk/tmpl/gtkfontseldlg.sgml, gdk/gdkwindow.c,
1572         gdk/x11/gdkwindow-x11.c, gtk/gtkfontsel.h, gtk/gtkimcontext.c,
1573         gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c
1574
1575         Documentation fixes:
1576
1577         #75170, Dan Winship; 
1578         #73220, Havoc Pennington;
1579         #70742, Boris Shingarov; 
1580         #72007, Alexey A. Malyshev
1581
1582 Fri Oct  4 18:40:50 2002  Manish Singh  <yosh@gimp.org>
1583
1584         * gtk/gtkcheckmenuitem.[ch] gtk/gtkimagemenuitem.[ch] gtk/gtkmenu.[ch]
1585         gtk/gtkmenubar.[ch] gtk/gtkmenuitem.[ch] gtk/gtkmenushell.[ch]
1586         gtk/gtkradiomenuitem.[ch]: Deprecation cleanup
1587
1588 Fri Oct  4 16:48:27 2002  Manish Singh  <yosh@gimp.org>
1589
1590         * gtkaspectframe.[ch] gtkbin.[ch] gtkframe.[ch] gtkhruler.[ch]
1591         gtkruler.[ch] gtkvruler.[ch]: Deprecation cleanup
1592
1593 Fri Oct  4 15:47:06 2002  Manish Singh  <yosh@gimp.org>
1594
1595         * gtkbbox.[ch] gtkhbbox.[ch] gtkhscale.[ch] gtkscale.[ch]
1596         gtkvscale.[ch] gtkvbbox.[ch]: Deprecation cleanup
1597
1598 Fri Oct  4 15:05:19 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1599
1600         * modules/input/gtkimcontextxim.c (get_ic_real): Fix memory
1601         intilization error caused by my previous checkin.
1602         #94908 a patch from famao@momonga-linux.org (Motonobu Ichimura)
1603         
1604 Fri Oct  4 17:13:03 2002  Owen Taylor  <otaylor@redhat.com>
1605
1606         * gtk/gtkdnd.c: Improve checks on public entry points,
1607         including, among other things checking whether drag
1608         contexts passed in are source or dest. (Fixes
1609         #76762, Alexey A. Malyshev)
1610
1611         * tests/testtext.c tests/testgtk.c tests/testdnd.c:
1612         Fix uninstalled operation for new pixbuf changes.
1613
1614         * gtk/stock-icons/Makefile.am (pixbuf_csource): 
1615         Fix makefile for uninstalled operation.
1616
1617 Fri Oct  4 21:21:47 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
1618
1619         * gtk/gtkhandlebox.c (gtk_handle_box_paint): remove unused
1620         codepath.
1621
1622         * gtk/gtkmenuitem.c (gtk_real_menu_item_{de,}select): call 
1623         gtk_widget_queue_draw() instead of gtk_widget_draw().
1624
1625 Fri Oct  4 14:49:04 2002  Owen Taylor  <otaylor@redhat.com>
1626
1627         Patch from Shivram U <shivaram.upadhyayula@wipro.com>
1628  
1629         * gdk/x11/gdkkeys-x11.c (update_keymaps): Increased the keycount to
1630         (max_keycode - min_keycode) + 1 from (max_keycode - min_keycode).
1631         (update_keymaps), (gdk_keymap_get_entries_for_keyval) looping through
1632         less than or equal to max_keycode. (#79184)
1633
1634 2002-10-04  jacob berkman  <jacob@ximian.com>
1635
1636         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): make legal C
1637
1638 Fri Oct  4 12:05:27 2002  Owen Taylor  <otaylor@redhat.com>
1639
1640         * demos/Makefile.am (pixbuf_csource): Fix envars
1641         for uninstalled operation of gdk-pixbuf
1642
1643         * demos/Makefile.am (test-inline-pixbufs.h): Remove
1644         output on failure.
1645
1646 Fri Oct  4 12:00:10 2002  Owen Taylor  <otaylor@redhat.com>
1647
1648         * gdk/gdkscreen.c (gdk_screen_class_init): Get the
1649         name right.
1650
1651         * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_class_init): 
1652         Fix function that should have been static.
1653
1654 Fri Oct  4 11:43:47 2002  Owen Taylor  <otaylor@redhat.com>
1655
1656         * configure.in: Add a check for the Xrandr extension.
1657
1658         * gdk/gdkscreen.[ch]: Add a size-changed signal.
1659
1660         * gdk/x11/gdkscreen-x11.[ch]: Patch from Keith packard
1661         to hook up ConfigureNotify events on the root window
1662         to the ::size-changed signal. (#94560)
1663
1664         * gtk/gtkimcontextsimple.c: Warning fixes
1665         
1666 Fri Oct  4 00:57:53 2002  Manish Singh  <yosh@gimp.org>
1667
1668         * gtk/gtkhscrollbar.[ch] gtk/gtkhseparator.[ch] gtk/gtkrange.[ch]
1669         gtk/gtkscrollbar.[ch] gtk/gtkseparator.[ch] gtk/gtkseparatormenuitem.h
1670         gtk/gtkvscrollbar.[ch] gtk/gtkvseparator.[ch]: Deprecation cleanup
1671
1672 Thu Oct  3 22:38:12 2002  Manish Singh  <yosh@gimp.org>
1673
1674         * gdk-pixbuf/queryloaders.c: make it legal C
1675
1676 Thu Oct  3 16:40:18 2002 Eric Warmenhoven <eric@warmenhoven.org>
1677
1678         * gdk/gdkevents.c, gdk/linux-fb/gdkwindow-fb.c,
1679         gtk/gtkwindow-decorate.c: implement maximize for linux-fb
1680
1681         * gdk/linux-fb/gdkkeyboard-fb.c: implement raw keyboard mode
1682
1683         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkdnd-fb.c,
1684         gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkselection-fb.c,
1685         gdk/linux-fb/miarc.c, gdk/linux-fb/mifpolycon.c,
1686         gdk/linux-fb/miwideline.c, gdk/linux-fb/mizerclip.c,
1687         gdk/linux-fb/mizerline.c: small cleanups
1688
1689 Thu Oct  3 19:00:55 2002  Owen Taylor  <otaylor@redhat.com>
1690
1691         * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): 
1692         Fix error in computing length and a memory leak.
1693         (Fixes #94072, reported by Hema Seetharamaiah)
1694
1695         * gtk/gtkmenu.c (gtk_menu_motion_notify): Fix &event
1696         used instead of event.
1697
1698 2002-10-04  Matthias Clasen  <maclas@gmx.de>
1699
1700         * demos/gtk-demo/main.c (main): 
1701         * demos/pixbuf-init.c (pixbuf_init): Adjust to gdk-pixbuf changes.
1702
1703 Thu Oct  3 23:53:43 2002  Kristian Rietveld  <kris@gtk.org>
1704
1705         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_destroy): get
1706         XDisplay from window instead of display, as display has not been
1707         defined here (fixes the build).
1708
1709 Thu Oct  3 17:09:23 2002  Owen Taylor  <otaylor@redhat.com>
1710
1711         * gdk/x11/{gdkdrawable-x11.[ch],gdkpixmap-x11.c,
1712         gdkwindow-x11.c}: Restore the pre-Xft2 code to
1713         render text directly via RENDER, conditionalized
1714         with !HAVE_XFT2 so that we'll build again on Xft1 
1715         systems. (#90181)
1716
1717 Thu Oct  3 14:13:33 2002  Owen Taylor  <otaylor@redhat.com>
1718
1719         * gdk/gdkevents.c (gdk_event_new): Add a 'type'
1720         parameter, make public.
1721
1722         * gdk/gdkevents.c (gdk_event_copy): Copy the screen.
1723
1724         * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c
1725         gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
1726         _gdk_event_new() => gdk_event_new().
1727         
1728         * gdk/win32/gdkevents-win32.c (real_window_procedure): 
1729         Fix event_private->screen breakage that results from evil 
1730         encapsulation breakage here.
1731         
1732         * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c
1733         gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c
1734         gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c
1735         gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c
1736         gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c
1737         gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c
1738         tests/testgtk.c: Remove most usage of stack-allocated 
1739         GdkEvent structures.
1740
1741         * gtk/gtktreeview.c: Use a cut-and-paste of the full 
1742         send_focus_event() from gtkwindow.c that does the necessary 
1743         notification of the ::has-focus property and setting of 
1744         the HAS_FOCUS flag.x
1745
1746         * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing
1747         an extraneous use of a GdkEvent.
1748
1749 Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
1750
1751         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
1752         gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
1753         as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
1754         function to draw_pixbuf. (#60582)
1755
1756         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
1757         Note that these functions are obsolete in the docs.
1758
1759         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
1760         Remove all the sanity checks now we make it clear
1761         that it is obsolete name for gdk_draw_pixbuf().
1762
1763         * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
1764           gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
1765           tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.
1766
1767         * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
1768         some warnings.
1769
1770         * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
1771         bit from last gdk_event_get_screen() change.
1772
1773         * gdk/gdkevents.c: Couple of small fixes.
1774
1775 Wed Oct  2 17:36:42 2002  Owen Taylor  <otaylor@redhat.com>
1776
1777         * gdk/gdkevents.[ch] gdk/x11/gdkevents-x11.c: Add
1778         gdk_screen_set_screen()/_get_screen() which (by evil
1779         hacks) work for for heap allocated events and
1780         fall back gracefully for stack allocated events.
1781
1782 Wed Oct  2 08:47:31 2002  Owen Taylor  <otaylor@redhat.com>
1783
1784         * gtk/gtksettings.[ch]: Privately export:
1785         _gtk_settings_set_property_value_from_rc()
1786         _gtk_settings_reset_rc_values() so that we can reset
1787         settings set from RC files when reloading RC files.
1788         (#94610)
1789
1790         * gtk/gtkrc.c: Hook up RC file setting resetting.
1791
1792 Tue Oct  1 12:53:44 2002  Manish Singh  <yosh@gimp.org>
1793
1794         * gtk/gtkwindow-decorate.c gtk/gtkwindow.[ch]: Deprecation cleanup
1795
1796 2002-10-01  jacob berkman  <jacob@ximian.com>
1797
1798         * gtk/gtkinvisible.c: 
1799         * gtk/gtkclipboard.c: declare parent_class static
1800
1801 2002-10-01  Stanislav Brabec  <sbrabec@suse.cz>
1802
1803         * gtk/gtkimcontextsimple.c: Fixed alphabetical order (bug #93421).
1804
1805 2002-10-01  Padraig O'Briain <padraig.obriain@sun.com>
1806
1807         * gtk/gtkmenu.c: Add gtk_menu_focus() so we do not waste time
1808         trying to focus a menu item. (bug #91258)
1809
1810 2002-09-30  Tor Lillqvist  <tml@iki.fi>
1811
1812         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
1813         Set image->windowing_data to NULL, unref the image. (Late merge
1814         from stable.)
1815
1816 Mon Sep 30 15:45:49 2002  Owen Taylor  <otaylor@redhat.com>
1817
1818         * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): 
1819         Make the reference to the mnemonic widget weak.
1820         (#93334, Murray Cumming)
1821
1822 Mon Sep 30 15:38:53 2002  Owen Taylor  <otaylor@redhat.com>
1823
1824         * gdk/gdkwindow.h: Remove a duplicate definition
1825         of gdk_set_sm_client_id().
1826
1827 Mon Sep 30 15:31:57 2002  Owen Taylor  <otaylor@redhat.com>
1828
1829         * gdk/gdkdisplay.c gdk/x11/gdkdisplay-x11.c 
1830         gdk/gdkinternals.h: Set the client ID on all
1831         displays. (#85713)
1832
1833         * gdk/gdkdisplay.h gkd/gdkinternals.h
1834          gdk/{linux-fb,win32,x11}/gdkmain-{fb,win32,x11}.c
1835         Privatize gdk_display_set_sm_client_id().
1836
1837 Mon Sep 30 14:46:49 2002  Owen Taylor  <otaylor@redhat.com>
1838  
1839         * gtk/gtkbindings.c (gtk_binding_set_new): Initialize
1840         ->parsed field. (#94536, patch from Sebastian Ritau. Maybe 
1841         fixes #87411?)
1842  
1843 Mon Sep 30 14:28:58 2002  Owen Taylor  <otaylor@redhat.com>
1844
1845         * gtk/gtkwindow.[ch]: Add gtk_window_set_icon_from_file(),
1846         gtk_window_set_default_icon_from_file() convenience
1847         functions (#75178, suggestion from Havoc Pennington)
1848
1849 2002-09-30  Daniel Elstner  <daniel.elstner@gmx.net>
1850
1851         * gtk/gtktextbuffer.c: Add construct-only property "tag_table"
1852         and make use of it in gtk_text_buffer_new().  (#70227)
1853
1854 2002-09-30  Stanislav Brabec  <sbrabec@suse.cz>
1855
1856         * gtk/gtkimcontextsimple.c: Completed ISO-8859-2 characters
1857         support (#93421), fixed cacute, umacron, completed dead_key+space
1858         convention.
1859
1860 Sun Sep 29 23:52:28 2002  Owen Taylor  <otaylor@redhat.com>
1861
1862         * ===== Released 2.1.0 ======
1863
1864         * NEWS: Updated
1865
1866 Sun Sep 29 20:20:26 2002  Owen Taylor  <otaylor@redhat.com>
1867
1868         * gtk/gtktooltips.c (gtk_tooltips_event_handler): Disable
1869         tooltips for menu items with submenus .. they still
1870         don't really work properly. (Missed merge from
1871         stable)
1872
1873 Sun Sep 29 20:15:59 2002  Owen Taylor  <otaylor@redhat.com>
1874
1875        * gtk/gtkwindow.c (gtk_window_move_resize): Clear
1876         initial_pos_set even if it only causes a move, not
1877         a resize as well. (Missed merge from stable,
1878         may fix #89562)
1879
1880 Sun Sep 29 14:22:47 2002 Manish Singh  <yosh@gimp.org>
1881
1882         * contrib/gdk-pixbuf-xlib/Makefile.am demos/Makefile.am
1883         demos/gtk-demo/Makefile.am: add deprecation compile flags
1884
1885         * demos/testanimation.c demos/testpixbuf-save.c demos/testpixbuf.c
1886         demos/gtk-demo/*.c gdk-pixbuf/gdk-pixbuf-animation.c
1887         gdk-pixbuf/gdk-pixbuf.c: minor cleanups, getting rid of
1888         unnecessary casts
1889
1890 Sun Sep 29 13:11:13 2002  Manish Singh  <yosh@gimp.org>
1891
1892         * gtk/gtktypeutils.h: use #defines instead of enum for
1893         GtkFundamentalType compat, to prevent 64-bit vs. 32-bit
1894         confusion (#90400)
1895
1896 2002-09-29  Tor Lillqvist  <tml@iki.fi>
1897
1898         * configure.in: Instead of forcing -fnative-struct into CFLAGS
1899         when using gcc for Win32, check for gcc version 3.x which uses
1900         -mms-bitfields instead. Also check if either of these switches is
1901         actually available at all, and warn if not. Thanks to Soren
1902         Andersen for the inspiration. (#93965)
1903
1904 2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>
1905
1906         * gtk/gtkimcontext.c, gtk/gtktreeviewcolumn.c:
1907
1908         Minor documentation fixes. 
1909         (#80021, Yao Zhang; #75567, #75279, Vitaly Tishkov)
1910
1911 2002-09-28  Matthias Clasen  <maclas@gmx.de>
1912
1913         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init): Make
1914         drawing to the root window work.  (#89492)
1915
1916 Fri Sep 27 18:14:00 2002  Owen Taylor  <otaylor@redhat.com>
1917
1918         (#91249, Thomas Leonard)
1919
1920         * gtk/gtkselection.c (gtk_selection_convert): Initialize
1921         idle time to 0.
1922
1923         * gtk/gtkselection.c: Up idle timeout to 5 minutes
1924         from 5 seconds.
1925
1926 Fri Sep 27 17:40:47 2002  Owen Taylor  <otaylor@redhat.com>
1927
1928         * modules/input/Makefile.am: Patch from J. Ali Harlow
1929         to avoid generating gtk.immodules when cross-compiling.
1930         (#87774)
1931         
1932 Fri Sep 27 14:30:34 2002 Eric Warmenhoven <eric@warmenhoven.org>
1933
1934         * gdk/Makefile.am gdk/gdkkeynames.c gdk/linux-fb/gdkmain-fb.c
1935         gdk/win32/gdkkeys-win32.c: Move gdk_keval_name and
1936         gdk_keyval_from_name to new gdkkeynames.c, share implementation for
1937         linux-fb and win32 (#94123)
1938
1939         * gdk/linux-fb/Makefile.am gdk/linux-fb/gdkkeyboard-fb.c
1940         gdk/linux-fb/gdkmain-fb.c gdk/linux-fb/gdkmouse-fb.c: add
1941         -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile
1942         flags
1943
1944         * gdk/linux-fb/gdkdisplay-fb.c: prevent segfault if display can't
1945         initialize
1946
1947         * gdk/linux-fb/gdkkeyboard-fb.c: better parsing of keycodes
1948
1949         * gdk/linux-fb/gdkwindow-fb.c: add stubs for new functions
1950
1951 Fri Sep 27 17:23:31 2002  Owen Taylor  <otaylor@redhat.com>
1952
1953         * gtk/gtkcolorsel.c: Fix some signed/unsigned warnings.
1954         (#85863, David L. Cooper II)
1955
1956 Fri Sep 27 16:23:49 2002  Owen Taylor  <otaylor@redhat.com>
1957          
1958         * gtk/gtklabel.c : Replaced instances where strlen (label->label) is
1959         used to get a byte code with strlen (label->text) as label->text 
1960         contains the actual display text, while label->label contains
1961         markup / mnemonics. (#92683, Patch from Shivram U  
1962         <shivaram.upadhyayula@wipro.com>, with some additions.)
1963
1964         * gtk/gtklabel.c (gtk_label_set_uline_text_internal): 
1965         Fix a leftover, now incorrect comment.
1966         
1967 Fri Sep 27 16:15:11 2002  Owen Taylor  <otaylor@redhat.com>
1968
1969         * gtk/gtknotebook.c (gtk_notebook_get_event_window_position):
1970         Handle the case where the first page isn't visible.
1971         (#90336, bug tracked down by Chema Celorio)
1972
1973 Fri Sep 27 15:57:15 2002  Owen Taylor  <otaylor@redhat.com>
1974
1975         * gtk/gtkstock.c (builtin_items): Change accelerator
1976         from C_ut to Cu_t. (#82747, Paolo Maggi)
1977
1978 Fri Sep 27 15:27:45 2002  Owen Taylor  <otaylor@redhat.com>
1979
1980         * gtk/gtkimage.c (gtk_image_unrealize): Reset the
1981         animation iter on unrealize as well as unmap.
1982         (#94336)
1983
1984         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Don't
1985         turn a value of "" into NULL. (#94157, Vitaly Tishkov)
1986
1987 Wed Sep 25 18:23:50 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1988
1989         * modules/input/gtkimcontextxim.c:
1990         - use gtk_settings_get_for_screen () instead of
1991           gtk_settings_get_default () for multihead
1992         - connect property-notify signal handlers to respond runtime
1993           changes of status_style and preedit_style in the settings
1994         - Some indentation and code cleanup (#59076 - 2nd check-in)
1995         
1996 2002-09-24  Havoc Pennington  <hp@redhat.com>
1997
1998         * gtk/gtkwindow.c: fix GtkWindowMnemonic to have a separate
1999         typedef
2000
2001         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): monitor
2002         FULLSCREEN state
2003
2004         * tests/testgtk.c (get_state_controls): add
2005         fullscreen/unfullscreen test
2006
2007         * gdk/gdkdisplay.c (gdk_display_finalize): fix unused variable
2008
2009         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): fix unused
2010         variable
2011
2012         * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): mop up unused
2013         variable
2014
2015         * gdk/x11/gdkscreen-x11.c
2016         (_gdk_x11_screen_window_manager_changed): emit
2017         window_manager_changed signal
2018
2019         * gdk/x11/gdkscreen-x11.h (struct _GdkScreenX11Class): add
2020         window_manager_changed signal
2021
2022         * gdk/x11/gdkevents-x11.c
2023         (gdk_x11_screen_get_window_manager_name): new function
2024
2025         * gtk/gtkwindow.c (gtk_window_class_init): add type_hint,
2026         skip_taskbar_hint, skip_pager_hint properties
2027         (gtk_window_set_skip_taskbar_hint):
2028         (gtk_window_get_skip_taskbar_hint):
2029         (gtk_window_set_skip_pager_hint):
2030         (gtk_window_get_skip_pager_hint):
2031         (gtk_window_fullscreen):
2032         (gtk_window_unfullscreen): new functions
2033
2034         * gdk/gdkevents.h (GdkWindowState): add FULLSCREEN state
2035
2036         * gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint
2037         values
2038
2039         * gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_taskbar_hint):
2040         (gdk_window_set_skip_pager_hint):
2041         (gdk_window_fullscreen):
2042         (gdk_window_unfullscreen): new functions
2043         (set_initial_hints): set fullscreen here if appropriate
2044         
2045 Wed Sep 25 10:51:24 2002  Owen Taylor  <otaylor@redhat.com>
2046
2047         * gdk/gdkscreen.h gdk/{x11,win32,linux-fb}/gdkscreen-*.c:
2048         Add gdk_screen_make_display_name(), which returns a
2049         display name that can be used to open a display with the
2050         screen as the default (Based on patch from Mark McLoughlin, 
2051         #86013)
2052
2053 Wed Sep 25 08:50:40 2002  Owen Taylor  <otaylor@redhat.com>
2054
2055         Patch from Eric Warmenhoven, #94123
2056
2057         * gdk/gdkmouse-fb.c: Add scrolling support for 
2058         imps2 mice.
2059
2060         * gdk/linux-fb/gdkimage-fb.c: Fix compilation error
2061         in last gdkimage-fb.c commit.
2062
2063 Wed Sep 25 00:16:53 2002  Manish Singh  <yosh@gimp.org>
2064
2065         * gdk/Makefile.am gdk/x11/Makefile.am: add -DG_DISABLE_DEPRECATED
2066         and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile flags
2067
2068         * gdk/gdkcolor.c gdk/gdkdisplay.c gdk/gdkdraw.c gdk/gdkevents.c
2069         gdk/gdkgc.c gdk/gdkimage.c gdk/gdkpango.c gdk/gdkpixbuf-render.c
2070         gdk/gdkpixmap.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/linux-fb/gdkdnd-fb.c 
2071         gdk/linux-fb/gdkfont-fb.c gdk/win32/gdkdnd-win32.c
2072         gdk/win32/gdkfont-win32.c gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c
2073         gdk/x11/gdkdrawable-x11.c gdk/x11/gdkevents-x11.c gdk/x11/gdkfont-x11.c
2074         gdk/x11/gdkgc-x11.c gdk/x11/gdkgeometry-x11.c gdk/x11/gdkim-x11.c
2075         gdk/x11/gdkinput-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkscreen-x11.c
2076         gdk/x11/gdkwindow-x11.c: Deprecation cleanup, mostly changing
2077         gdk_foo_{ref,unref} to g_object equivalents.
2078
2079 Tue Sep 24 23:54:20 2002  Manish Singh  <yosh@gimp.org>
2080
2081         * gtk/gtkfilesel.c: check if last_selected is valid before doing
2082         a strcmp on it, which may happen if selections happen programmatically
2083         instead of through the UI (#86566)
2084
2085 Tue Sep 24 23:33:48 2002  Manish Singh  <yosh@gimp.org>
2086
2087         * gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
2088         when returning filenames for gtk_file_selection_get_selections
2089         (#86567)
2090
2091         * gtk/gtkclipboard.c: GtkClipboard struct should have a GObject
2092         in it, not a GObjectClass
2093
2094 Tue Sep 24 18:18:36 2002  Owen Taylor  <otaylor@redhat.com>
2095
2096         * gtk/gtkclipboard.[ch]: Make a GObject (#75970, James
2097         Henstridge)
2098
2099 Tue Sep 24 19:45:55 2002  Owen Taylor  <otaylor@redhat.com>
2100
2101         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap): 
2102         Look up the visual as well as the colormap, since calling
2103         gdk_drawable_get_visual() causes infinite recursion.
2104
2105         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init): 
2106         Set the colormap for the root window.
2107
2108 Tue Sep 24 15:35:42 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2109
2110         disable/enable preedit/status in GtkIMContextXIM (#59076)
2111         
2112         * gtk/gtkenums.h (enum): added preedit/status styles for gtk+
2113         input method
2114         * modules/input/gtkimcontextxim.c
2115         * gdk/x11/gdkevents-x11.c: add gtk-im-preedit-style and
2116         gtk-im-status-style to GtkSettings.
2117         * po/POTFILES.in: added modules/input/gtkimcontextxim.c
2118
2119         With the other patch for gnome-control-center,
2120         the preedit and status styles of GTK+ input method are
2121         configurable with associated gconf schemas keys:
2122         "/desktop/gnome/interface/gtk-im-preedit-style"
2123         "/desktop/gnome/interface/gtk-im-status-style"
2124
2125         Both are set to "callback" by default, and platform's 
2126         packging can have different default by changing
2127         libgnome's desktop_gnome_interface.schemas.
2128
2129 2002-09-25  Matthias Clasen  <maclas@gmx.de>
2130
2131         * gdk/x11/gdkvisual-x11.c (gdkx_visual_get): Replace leftover 
2132         gdkx_visual_get_for_screen () by gdk_x11_screen_lookup_visual().
2133
2134         * gtk/gtkaccelgroup.h: Add a missing ; to make things compile.
2135
2136         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap):
2137         Replace leftover gdk_colormap_lookup () by
2138         gdk_x11_colormap_foreign_new () to make the linker happy.
2139
2140 Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
2141
2142         * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
2143         Add a GtkAccelGroupFindFunc to clean up the
2144         prototype. (#76670, Vitaly Tishkov)
2145
2146         * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
2147         gdkx_visual_get_for_screen() to 
2148         gdk_x11_screen_lookup_visual(). (#85702)
2149
2150 2002-09-25  Tor Lillqvist  <tml@iki.fi>
2151
2152         * gdk/win32/gdkevents-win32.c (gdk_event_translate):
2153         WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
2154         order to be able to handle it normally in the application. Set
2155         ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
2156         way we can generate GDK events also for Alt-Fn keys, for instance.
2157
2158 2002-09-24  Matthias Clasen  <maclas@gmx.de>
2159
2160         * gdk/x11/gdkx.h: Add a missing ; to make things compile.
2161
2162 Tue Sep 24 16:40:14 2002  Owen Taylor  <otaylor@redhat.com>
2163
2164         Make icon sizes configurable (#70648, slightly based
2165         on a patch from Bill Haneman, Brian Cameron)
2166
2167         * gtk/gtkiconfactory.[ch]: Add 
2168         gtk_icon_size_lookup_for_settings().
2169
2170         * gtk/gtksettings.c: Add gtk-icon-sizes XSETTING
2171
2172         * gtk/gtkiconfactory.c: Make icon sizes per-GtkSettings.
2173
2174         * gtk/gtkstyle.c: Use gtk_icon_size_lookup_for_settings()
2175
2176         * gtk/gtkrc.[ch]: Privately export _gtk_rc_reset_styles()
2177         to force all the widgets to recompute their appearance.
2178
2179         * gdk/x11/gdkevents-x11.c: Add gtk-icon-sizes XSETTING
2180
2181 Tue Sep 24 16:24:22 2002  Owen Taylor  <otaylor@redhat.com>
2182
2183         * gdk/win32/gdkimage-win32.c gdk/x11/gdkimage-x11.c 
2184         * gdk/linux-fb/gdkimage-fb.c (gdk_image_put/get_pixel): 
2185         Add bounds-checking g_return_if_fail(). (Olexiy Avramchenko)
2186
2187 Tue Sep 24 16:04:44 2002  Owen Taylor  <otaylor@redhat.com>
2188
2189         * gdkprivate-x11.h gdkcolor-x11.c gdkvisual-x11.c
2190         gdkwindow-x11.c: Delete unused private gdk_visual_lookup(),
2191         make gdk_colormap_lookup() private gdkcolor-x11.c.
2192         make gdk_window_add_colormap_windows private to gdkwindow-x11.c
2193         (#85674)
2194
2195         * gdk/x11/gdkx.h gdk/x11/gdkcolor-x11.c 
2196         gdkscreen-x11.h: Add gdk_x11_colormap_foreign_new(), 
2197         GDK_ENABLE_BROKEN gdkx_colormap_get(), make the
2198         colormap hash per-screen. (#85697)
2199
2200         * gdk/x11/gdkxid.c (gdk_xid_table_lookup_for_display):
2201         Remove a bit of unecessary code.
2202
2203 Thu Aug  8 16:58:22 2002  Owen Taylor  <otaylor@redhat.com>
2204  
2205         * gtk/gtkspinbutton.c (gtk_spin_button_real_change_value): 
2206         Remove the check for editable. (Reported by Brent Fox)
2207  
2208 Tue Sep 24 06:17:37 2002  Owen Taylor  <otaylor@redhat.com>
2209
2210         * gtk/gtkeventbox.c (gtk_event_box_paint): Honor
2211         GTK_WIDGET_APP_PAINTABLE() (#92305, Jonathan Blandford.)
2212
2213 Tue Sep 24 05:26:31 2002  Owen Taylor  <otaylor@redhat.com>
2214
2215         * gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c 
2216         gdk/x11/gdkevents-x11.c  gdk/win32/gdkevents-win32.c:
2217         Change the window parameter for 
2218         gdk_event_send_client_message[_for_display] from guint32
2219         to GdkNativeWindow. (#79979)
2220
2221 Tue Sep 24 05:16:25 2002  Owen Taylor  <otaylor@redhat.com>
2222
2223         * gtk+.spec.in: Fix up a bit to look for the loaders
2224         in the right place. (#93011, Dennis Dementiev)
2225
2226 Tue Sep 24 05:12:14 2002  Owen Taylor  <otaylor@redhat.com>
2227
2228         * gtk/gtkimcontextsimple.c: Fixes to GtkIMContextSimple
2229         compose table for us-intl keyboards (Red Hat bugzilla
2230         #70995, Alexandre Oliva)
2231
2232 Tue Sep 24 04:50:28 2002  Owen Taylor  <otaylor@redhat.com>
2233
2234         * gtk/gtkspinbutton.c (gtk_spin_button_activate):   
2235         Chain up so that entry->activates_default is honored.
2236         (#93865, Pieter Penninckx)
2237
2238 2002-09-23  Jacob Berkman  <jacob@ximian.com>
2239
2240         * gtk/gtkprogress.c (DEFAULT_FORMAT): cpp macros aren't ``;''
2241         terminated
2242
2243 Mon Sep 23 19:49:11 2002  Owen Taylor  <otaylor@redhat.com>
2244
2245         * gtk/gtkselection.[ch] gtk/gtkwidget.c gtk/gtkmain.c:
2246         Privatize gtk_selection_request, gtk_selection_incr_event
2247         gtk_selection_notify, gtk_selection_property_notify.
2248         Add doc note about future deprecation of gtk_selection_clear()
2249         which. (#85683)
2250
2251         * gtk/gtkoldeditable.c (gtk_old_editable_selection_clear):
2252         Chain up, rather than calling gtk_selection_clear().
2253
2254 Mon Sep 23 18:53:35 2002  Owen Taylor  <otaylor@redhat.com>
2255
2256         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): 
2257         Restore back to the default format instead of an
2258         empty format. (#82626, Tim Janik)
2259
2260         * gtk/gtkprogress.c (gtk_progress_set_format_string): 
2261         Make NULL restore back to the default format.
2262
2263 Mon Sep 23 18:45:46 2002  Owen Taylor  <otaylor@redhat.com>
2264
2265         * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): 
2266         Allow accel_path == NULL. (#84241, James Henstridge.)
2267
2268 Mon Sep 23 18:01:52 2002  Owen Taylor  <otaylor@redhat.com>
2269
2270         * gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
2271         (#73229, Havoc Pennington)
2272
2273         * gtk/gtknotebook.c (gtk_notebook_get_nth_page): Handle
2274         -1 to mean the last page, as we do elsewhere. (#73229)
2275
2276 Mon Sep 23 17:50:23 2002  Owen Taylor  <otaylor@redhat.com>
2277
2278         * gtk/gtkmenushell.[ch] gtk/gtkentry.c gtk/gtkmenubar.c
2279         gtk/gtkmenuitem.c gtk/gtktextview.c: Make
2280         gtk_menu_shell_select_first() public. (#70373)
2281
2282 Mon Sep 23 16:48:46 2002  Owen Taylor  <otaylor@redhat.com>
2283
2284         * gdk/gdkkeys.[ch] gdk/x11/gdkkeys-x11.c gdk/x11/gdkevents-x11.c:
2285         Add a keys_changed signal emitted when the keymap changes.
2286         (#72148)
2287         
2288         * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): 
2289         Hook up code to handle keymap changes, change to keep
2290         a linked list of keymap entries so that we can reinsert
2291         them in the same order on a keymap change.
2292
2293 Mon Sep 23 14:58:04 2002  Owen Taylor  <otaylor@redhat.com>
2294  
2295         * gtk/gtkhandlebox.h gtk/gtktextbtree.[ch]:
2296         Use 'signed int' not 'gint' for signed bitfields.
2297         (#93020, Vitaly Tishkov)
2298  
2299         * gtk/gtktextlayout.h gtk/gtktextbtree.[ch]: 
2300         Fix some 'gint' bitfields that should have been
2301         unsigned.
2302         
2303 Mon Sep 23 12:24:14 2002  Owen Taylor  <otaylor@redhat.com>
2304
2305         * modules/input/gtkimcontextxim.c (status_window_get): 
2306         Fix incorrect usage of gdk_get_default_root_window ()).
2307         (#92767)
2308
2309 Mon Sep 23 12:12:48 2002  Owen Taylor  <otaylor@redhat.com>
2310
2311         * gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
2312         fix problem where signal connection wasn't removed
2313         from adjustment on finalize. (#93962)
2314
2315 Sun Sep 22 18:22:37 2002  Owen Taylor  <otaylor@redhat.com>
2316
2317         * gdk/linux-fb/{gdkinput.c,gdkkeyboard-fb.c,gdk/linux-fb/gdkmain-fb.c,
2318         gdk/linux-fb/gdkprivate-fb.h, gdk/linux-fb/gdkwindow-fb.c}:
2319         Patch from Eric Warmenhoven to with miscellaneous linux-fb
2320         fixes, including a fix for a crash in 
2321         gdk_keymap_get_entries_for_keycode (#87420)
2322
2323 2002-09-22  Matthias Clasen  <maclas@gmx.de>
2324
2325         * gdk/gdkdraw.c (gdk_drawable_get_type): 
2326         * gdk/gdkgc.c (gdk_gc_get_type): 
2327         * gtk/gtkmenushell.c (gtk_menu_shell_get_type): 
2328         * gtk/gtkimcontext.c (gtk_im_context_get_type): 
2329         * gtk/gtkprogress.c (gtk_progress_get_type): 
2330         * gtk/gtkoldeditable.c (gtk_old_editable_get_type): 
2331         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type): 
2332         * gtk/gtkwidget.c (gtk_widget_get_type): 
2333         * gtk/gtkseparator.c (gtk_separator_get_type): 
2334         * gtk/gtkscrollbar.c (gtk_scrollbar_get_type): 
2335         * gtk/gtkscale.c (gtk_scale_get_type): 
2336         * gtk/gtkrange.c (gtk_range_get_type): 
2337         * gtk/gtkpaned.c (gtk_paned_get_type): 
2338         * gtk/gtkmisc.c (gtk_misc_get_type): 
2339         * gtk/gtkitem.c (gtk_item_get_type): 
2340         * gtk/gtkcontainer.c (gtk_container_get_type): 
2341         * gtk/gtkbbox.c (gtk_button_box_get_type): 
2342         * gtk/gtkbox.c (gtk_box_get_type): 
2343         * gtk/gtkbin.c (gtk_bin_get_type): 
2344         * gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
2345         G_TYPE_FLAG_ABSTRACT.  (#72383)
2346
2347 2002-09-21  Tor Lillqvist  <tml@iki.fi>
2348
2349         * gdk/win32/gdkselection-win32.c (sanitize_utf8): Copy from X11
2350         backend. The old version mishandled consecutive newlines.
2351
2352         * tests/testgtkrc: Remove obsolete mention of gtk-engines and
2353         Pixmap theme engine on Win32.
2354
2355 Fri Sep 20 18:01:26 2002  Owen Taylor  <otaylor@redhat.com>
2356  
2357         * gtk/gtkentry.c (gtk_entry_unrealize): Set the IM
2358         context client  window to NULL, not to the window that 
2359         is about to be destroyed. (#88231)
2360  
2361 Fri Sep 20 16:56:54 2002  Owen Taylor  <otaylor@redhat.com>
2362
2363         * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings):
2364         Return TRUE if force_load was specified. (#93738,
2365         Vitaly Tishkov.)
2366
2367 2002-09-20  Tor Lillqvist  <tml@iki.fi>
2368
2369         * gtk/gtkmain.c (gtk_get_default_language): On Win32, look
2370         explicitly for LANG, LC_ALL and LC_CTYPE, and if not found, use
2371         g_win32_getlocale(). The setlocale() in msvcrt.dll would return a
2372         locale name in the form Swedish_Finland for sv_FI.
2373
2374         * gdk/gdkfont.h: Delete leftover declarations of the obsolete
2375         Win32-only functions gdk_font_full_name_get() and
2376         gdk_font_full_name_free().
2377
2378         * gdk/gdk.def: Delete from here, too.
2379
2380         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd,
2381         gdk_font_full_name_get, gdk_font_full_name_free): Delete
2382         implementation, and helper functions.
2383
2384         (pattern_match, InnerEnumFontFamExProc, EnumFontFamExProc,
2385         gdk_font_list_new, gdk_font_list_free): Delete unused functions.
2386
2387         (gdk_text_width, gdk_text_width_wc) Instead of code duplication,
2388         let gdk_text_extents() and gdk_text_extents_wc() do the job.
2389         
2390         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
2391         Don't use the above removed functions in debugging output.
2392
2393         * gdk/win32/gdkdisplay-win32.c
2394         * gdk/win32/gdkmain-win32.c
2395         * gdk/win32/gdkprivate-win32.h
2396         * gdk/win32/gdkselection-win32.c
2397         * gdk/win32/gdkinput-win32.h
2398         * gdk/win32/gdkinput.c: Make it compile again, pass a GdkDisplay in
2399         a couple of places.
2400
2401 Thu Sep 19 16:39:29 2002  Owen Taylor  <otaylor@redhat.com>
2402
2403         * gtk/gtksettings.h (GTK_SETTINGS_GET_CLASS): Fix 
2404         usage of compat GTK_TYPE_ macros without including
2405         gtkobject.h.
2406
2407         * gdk/x11/gdkevents-x11.[ch]: Set a flag when initializing
2408         to avoid having extra settings-notify events sent
2409         when not needed.
2410
2411 2002-09-17  Matthias Clasen  <maclas@gmx.de>
2412
2413         * gtk/stock-icons/stock_color_picker_25.png:
2414         * gtk/stock-icons/Makefile.am (VARIABLES1): 
2415         * gtk/gtkstock.h (GTK_STOCK_COLOR_PICKER): 
2416         * gtk/gtkiconfactory.c (get_default_icons):  
2417         * gtk/gtkcolorsel.c (gtk_color_selection_init): Stockify color
2418         picker icon.   (#89880)
2419
2420 2002-09-14  Sven Neumann  <sven@gimp.org>
2421
2422         * gdk/gdkpixbuf-drawable.c: fixed my latest change.
2423
2424 2002-09-13  Sven Neumann  <sven@gimp.org>
2425
2426         * gdk/gdkpixbuf-drawable.c: use the most significant bits of the
2427         GdkColor components (#89703).
2428
2429 2002-09-12  Tor Lillqvist  <tml@iki.fi>
2430
2431         * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Use correct
2432         function name in warning messages.
2433
2434         Merge from gtk-2-0:
2435
2436         * gdk/win32/gdkdrawable-win32.c
2437         * gdk/win32/gdkevents-win32.c: Some spacing and indentation cleanup.
2438         
2439         * gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
2440         render_line_vertical): Return TRUE.
2441         
2442         * gdk/win32/gdkevents-win32.c (_gdk_events_init): Search if the
2443         system has some input locale identifier that uses a Latin
2444         keyboard. This is needed to be able to get the virtual-key code
2445         for the latin characters corresponding to ASCII control
2446         characters. If no such keyboard is present, try to load one
2447         then. Will this upset users with no wish to ever use a Latin-based
2448         keyboard layout?
2449
2450         (vk_from_char): Convert all ASCII control chars to the
2451         corresponding uppercase char before calling VkKeyScanEx(). Idea by
2452         Florent Duguet. Makes Control-C work again. To make it hopefully
2453         work like I think it should on non-Latin keyboards, too, use
2454         latin_locale when looking for the corresponding keycode.
2455
2456         * gdk/win32/gdkgeometry-win32.c: Add GDK_NOTE debugging output
2457         to some functions, related to moving and resizing and expose
2458         and antiexpose queue processing. Use %p to output HWNDs.
2459
2460         * gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
2461         debugging output to new function.
2462
2463         Fix for #81831 by Tim Evans:
2464         
2465         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
2466         _gdk_event_button_generate() here, it would append the double- or
2467         triple-click events too early, before the single-click event.
2468
2469         (real_window_procedure): If we got a single-click event, call
2470         _gdk_event_button_generate() to perhaps append the double- or
2471         triple-click event after that.
2472
2473         Tentative fix for #79720 based on code by Florent Duguet:
2474                 
2475         * gdk/win32/gdkgeometry-win32 (gdk_window_queue_append): New
2476         static function. Checks length of translate_queue, calls
2477         _gdk_window_process_expose() if length is >= 128. Then appends
2478         to translate_queue.
2479         (gdk_window_queue_translation,_gdk_windowing_window_queue_antiexpose):
2480         Call gdk_window_queue_append().
2481
2482         Merge from gtk-1-3-win32-production and gtk-2-0:
2483
2484         * gdk/win32/gdkevents-win32.c (propagate): Check for parent being
2485         NULL before trying to propagate to it, and return FALSE in that
2486         case. (If parent is NULL, we are handling gdk_parent_root, and
2487         probably should have noticed that and bailed out earlier. But
2488         better late than never.)
2489
2490         * gdk/win32/gdkinput-win32.c (gdk_input_init): Use
2491         GetSystemMetrics (SM_C[XY]SCREEN) instead of
2492         gdk_screen_{width,height}().
2493
2494         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Don't
2495         use return value from GlobalSize() as length of string when
2496         calling MultiByteToWideChar(). Pass -1 instead (zero-terminated
2497         string). Thanks to Iwasa Kazmi.
2498
2499 Wed Sep 11 15:48:38 2002  Jonathan Blandford  <jrb@redhat.com>
2500
2501         * gtk/gtktreemodel.c (gtk_tree_row_reference_get_type): Make
2502         GtkTreeRowReference a boxed type.
2503
2504         * gtk/gtkliststore.c (gtk_list_store_finalize): free the root
2505         list.
2506
2507         * gtk/gtktreestore.c (gtk_tree_store_finalize): free the root
2508         nodes.
2509
2510 Wed Sep 11 12:33:34 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
2511
2512         * gtk/gtkstyle.c: Draw radio buttons more symmetric. Draw shadow
2513         out bevels slightly different. Fix drawing of top right corner of
2514         etched in shadows.
2515
2516 Tue Sep 10 09:47:52 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2517
2518         * modules/input/gtkimcontextxim.c
2519         (get_im): modify a warning when XSetLocaleModifiers() fails, and
2520         add a warning when XOpenIM() fails
2521         (gtk_im_context_xim_filter_keypress): use XLookupString when xic
2522         is not available. (#90661)
2523         (gtk_im_context_xim_get_ic, gtk_im_with_preedit,
2524         gtk_im_without_preeedit): filter key release events only when
2525         input methods ask for (#81759)
2526
2527 Tue Sep 10 11:11:09 2002  Owen Taylor  <otaylor@redhat.com>
2528
2529         * gdk/linux-fb/*: Patch from Eric Warmenhoven to
2530         get linux-fb compiling with multihead changes.
2531
2532 Tue Sep 10 09:29:00 2002  Owen Taylor  <otaylor@redhat.com>
2533
2534         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Take
2535         focus mode into account when tracking FocusIn/Out events,
2536         so we don't get confused by focus changes while a 
2537         keyboard grab is in effect. (Probably fixes #90563)
2538
2539 Mon Sep  9 16:16:25 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
2540
2541         * gtk/gtktextview.c (gtk_text_view_drag_motion): If the end iter
2542         is also a part of the selection, then we are in the selection.
2543         (#92768)
2544
2545 2002-09-08  Tor Lillqvist  <tml@iki.fi>
2546
2547         * configure.in: Add AM_CONDITIONAL calls also in the non-x11
2548         branch. Otherwise we get "conditional \"$1\" was never defined.
2549         Usually this means the macro was only invoked conditionally."
2550         errors when running configure if using automake 1.6a. Yeah, I know
2551         that autogen.sh says to use automake 1.4, but on Win32 I more or
2552         less have to use the bleeding edge. I think.
2553
2554 Sat Sep  7 21:24:55 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
2555
2556         * gtk/gtktoolbar.c (get_button_relief): call
2557         gtk_widget_ensure_style() before reading "button_relief". Fixes
2558         (#92741).
2559
2560 2002-09-06  Matthias Clasen  <maclas@gmx.de>
2561
2562         * configure.in: Add ani to all_loaders.
2563
2564 Fri Sep  6 15:59:54 2002  Owen Taylor  <otaylor@redhat.com>
2565
2566         * gdk/gdkdisplay.h: Remove unused prototype for 
2567         gdk_set_default_display 
2568         (=> gdk_display_manager_set_default_display)
2569         (#90616, Matthias Clasen)
2570
2571 Fri Sep  6 15:35:01 2002  Owen Taylor  <otaylor@redhat.com>
2572
2573         * gdk/gdkgc.c (gdk_gc_new_with_values): Only set
2574         gc->colormap if it isn't already set. (Alex Larsson,
2575         #90632)
2576
2577 Fri Sep  6 12:41:16 2002  Owen Taylor  <otaylor@redhat.com>
2578
2579         * modules/input/gtkimcontextxim.c: Pass the actual input
2580         keycode to XIM, rather than the result of backconverting
2581         the keysym. Fixes the <> input problem! (#74922)
2582
2583         * gtk/gtkimmodule.c: Fix bug where GTK_IM_MODULE environment
2584         variable couldn't be used to force the input method to
2585         the default input method.
2586
2587 2002-09-05  jacob berkman  <jacob@ximian.com>
2588
2589         * configure.in: fix non-solaris xinerama checks (bug #89732)
2590
2591         * autogen.sh: get automake-1.4 changes from -2-0 branch
2592
2593 2002-09-05  Tor Lillqvist  <tml@iki.fi>
2594
2595         * gdk/win32/gdkproperty-win32.c (gdk_property_change): Fix braino,
2596         actually do check each char, not just the first one, when looping
2597         through the text looking to insert CR in front of each LF. Bug
2598         noticed and fix provided by Florent Duguet.
2599
2600         * gdk/win32/gdkwindow-win32.c (gdk_window_set_transient_for): 
2601         Use HWND_NOTOPMOST instead of HWND_TOPMOST. Suggested by Florent
2602         Duguet.
2603
2604 2002-09-04  Matthias Clasen  <maclas@gmx.de>
2605
2606         * demos/testanimation.c (do_image): 
2607         (do_nonprogressive): Quit on destroy.
2608
2609         * demos/testpixbuf.c (main): test load-at-size.
2610         (expose_func): draw transparent pixbufs against a checkerboard 
2611         pattern. (#91829)
2612
2613 2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>
2614
2615         * docs/reference/gtk/tmpl/gtkdialog.sgml
2616         docs/reference/gtk/tmpl/gtkhbbox.sgml
2617         docs/reference/gtk/tmpl/gtkvbbox.sgml
2618         docs/reference/gtk/tmpl/gtktogglebutton.sgml
2619         docs/reference/gtk/tmpl/gtktreeselection.sgml
2620         gtk/gtktextbuffer.c
2621         gtk/gtktogglebutton.c
2622         gtk/gtktreesortable.c
2623
2624         Minor documentation fixes:
2625         
2626         #79107, #82854, #76398, Vitaly Tishkov; 
2627         #88627, Brian Tarricone;
2628         #81046, Owen Taylor
2629
2630 2002-08-31  Tor Lillqvist  <tml@iki.fi>
2631
2632         * gdk/win32/gdkevents-win32.c (_gdk_events_init): On Cygwin, open
2633         /dev/windows instead of using the magic G_WIN32_MSG_HANDLE fd that
2634         is implemented (in GLib) only on native Win32. (#91683, Masahiro
2635         Sakai)
2636
2637         * gtk/gtkfilesel.c: Include <sys/cygwin.h on Cygwin, for
2638         cygwin_conv_to_posix_path().
2639         (translate_win32_path, get_real_filename): Use
2640         cygwin_conv_to_posix_path().
2641         (gtk_file_selection_dir_activate): Call get_real_filename() here,
2642         too. (#91843, Masahiro Sakai)
2643
2644 2002-08-26  Tor Lillqvist  <tml@iki.fi>
2645
2646         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Use MAX_PATH
2647         (from windef.h) insted of _MAX_PATH (from stdlib.h in mingw and
2648         MSVC, but not there in Cygwin) (#91681, Masahiro Sakai).
2649
2650 Mon Aug 26 12:21:16 BST 2002  Tony Gale <gale@gtk.org>
2651
2652         * docs/tutorial/package-db-tutorial.sh: cleanups
2653
2654         * docs/tutorial/gtk-tut.sgml: new content for the
2655         ItemFactory section. Originally from Robert Cleaver Ancell.
2656
2657 2002-08-25  Tor Lillqvist  <tml@iki.fi>
2658
2659         * gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
2660         Masahiro Sakai).
2661
2662         * gtk/gtkmain.c: Compile gtk_init_abi_check and
2663         gtk_init_check_abi_check when on G_PLATFORM_WIN32, not just on
2664         G_OS_WIN32, to match gtkmain.h (#91649, Masahiro Sakai).
2665         (check_sizeof_GtkWindow, check_sizeof_GtkBox): Mention the
2666         -mms-bitfields swicth in addition to -fnative-struct.
2667
2668 Sun Aug 25 11:58:27 BST 2002  Tony Gale <gale@gtk.org>
2669
2670         * docs/tutorial/package-db-tutorial.sh:
2671         update packaging script for current tutorial
2672
2673         * docs/tutorial/images/*.eps: New Files
2674         EPS versions of the tutorial images
2675
2676 2002-08-25  Tor Lillqvist  <tml@iki.fi>
2677
2678         * gtk/gtkmain.h: Include gtkbox.h and gtkwindow.h on Win32, as the
2679         defines for struct packing checks use sizeof() on stuff from
2680         these. (#84211, Andreas Holzmann)
2681
2682         * gtk/Makefile.am (libgtk_win32_2_0_la_DEPENDENCIES): Add
2683         gtk_win32res_lo. (#87101, J. Ali Harlow)
2684
2685         * gdk/gdkevents.c
2686         * gdk/gdkinternals.h
2687         * gdk/x11/gdkevents-x11.c
2688         * gdk/win32/gdkevents-win32.c: Move the GdkEventPrivate and
2689         GdkEventFlags definitions from gdkevents.c to
2690         gdkinternals.h. Remove the duplicated definitions in
2691         gdkevents-x11.c and gdkevents-win32.c. (#89771)
2692
2693 2002-08-24  Tor Lillqvist  <tml@iki.fi>
2694
2695         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
2696         system handle Alt-Space, too. Thanks to Tim Evans (#91477).
2697
2698 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
2699
2700         * docs/tutorial/gtk-tut.sgml, examples/*:
2701         update g_connect_signal usage
2702
2703         * docs/faq/gtk-faq.html: spelling/grammar fixes
2704
2705 2002-08-21  Tor Lillqvist  <tml@iki.fi>
2706
2707         * gdk/Makefile.am: Move GDK_DEP_LIBS from LDFLAGS to each of the
2708         libgdk_*_LIBADD, to fix problems when cross-compiling, as
2709         suggested by J. Ali Harlow in #87103.
2710
2711 2002-08-19  Padraig O'Briain <padraig.obriain@sun.com>
2712
2713         * gtk/gtkentry.c (gtk_entry_real_delete_text): Use 
2714         gtk_entry_set_positions() to update current_pos and selection_bound
2715         so notifications are emitted (#90548)
2716
2717 2002-08-16  jacob berkman  <jacob@ximian.com>
2718
2719         * gtk/gtkdialog.h (struct _GtkDialog): switch vbox and action_area
2720         back to the order that 2.0 has
2721
2722 Thu Aug 15 22:46:02 BST 2002  Tony Gale <gale@gtk.org>
2723
2724         * docs/tutorial/gtk-tut.sgml, examples/menu/menu.c:
2725           minor menu example comment fix
2726           (feeling my way back in after a long absence)
2727
2728 Wed Aug 14 08:07:53 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2729
2730         * gtk/gtkselection.c (gtk_selection_init): initialize
2731         gtk_selection_atoms only once at the 1st call.
2732         * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): 
2733         set length of selection data from number of read bytes (#90595)
2734
2735 2002-08-14 Padraig O'Briain <padraig.obriain@sun.com>
2736
2737         * gtk/gtktextview.c (gtk_text_view_focus): Move focus to
2738         children, if they exist, after GtkTextView is focused. (#63844)
2739
2740 2002-08-12  Matthias Clasen  <maclas@gmx.de>
2741
2742         * gdk/gdkdisplaymanager.c: 
2743         * gdk/gdkdisplay.c (gdk_pointer_ungrab): Fix doc comments.
2744
2745         * gdk/x11/gdkcolor-x11.c (gdk_colormap_get_screen): 
2746         * gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Make parameter 
2747         names match those in the header file, to silence gtk-doc.
2748
2749 Sat Aug 10 22:18:05 2002  Owen Taylor  <otaylor@redhat.com>
2750
2751         * gdk/gdkpixbuf-render.c 
2752         (gdk_pixbuf_render_pixmap_and_mask[_for_colormap]): Mention
2753         in the docs that @pixmap_return and @mask_return can
2754         be %NULL.
2755
2756 2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>
2757
2758         * docs/reference/gtk/tree_widget.sgml,
2759         docs/reference/gtk/tmpl/gtkdialog.sgml,
2760         docs/reference/gtk/tmpl/gtkentry.sgml,
2761         docs/reference/gtk/tmpl/gtkfilesel.sgml,
2762         docs/reference/gtk/tmpl/gtkfontsel.sgml,
2763         docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
2764         docs/reference/gtk/tmpl/gtktreemodel.sgml,
2765         docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
2766         gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
2767         gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
2768         gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
2769         gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
2770         gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
2771         gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
2772         gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
2773         gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
2774         gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, 
2775         gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, 
2776         gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, 
2777         gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, 
2778         gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
2779         gtk/gtkwindow.c: 
2780
2781         Minor documentation fixes
2782
2783         (#89254, patch from Brett Nash; 
2784          #85809, patch from daten@dnetc.org;
2785          #76391, patch from Ross Burton; 
2786          #74559, Manuel Clos; 
2787          #73569, #72005, Alexey A. Malyshev; 
2788          #70061, patch from Dennis Bj"orklund;
2789          #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; 
2790          #78932, Vitaly Tishkov, patch from Ross Burton;
2791          #73306)
2792
2793 2002-08-10  Matthias Clasen  <maclas@gmx.de>
2794
2795         * gdk/gdkrgb.c (gdk_rgb_try_colormap): 
2796         (gdk_rgb_create_info): 
2797         (gdk_rgb_select_conv): 
2798         (gdk_draw_gray_image): 
2799         (gdk_rgb_cmap_get_info): Changes to support depth 8 StaticColor
2800         visuals.  (#81631)
2801         (gdk_rgb_cmap_free): Don't loop forever.
2802
2803 Fri Aug  9 08:04:47 2002  Owen Taylor  <otaylor@redhat.com>
2804
2805         * gdk/gdkdisplay.h (struct _GdkDisplayClass): Fix 
2806         weird usage of 'class' for GdkDisplay * argumnent name.
2807         (#9031, Laszlo Peter)
2808
2809 Thu Aug  8 23:26:05 2002  Owen Taylor  <otaylor@redhat.com>
2810
2811         * gdk/x11/gdkmain-x11.c gdk/x11/gdkscreen-x11.c: Remove
2812         explicit calls to pango_x/xft_shutdown_display() since
2813         Pango now does it by itself on XCloseDisplay().
2814
2815 Thu Aug  8 21:53:16 2002  Owen Taylor  <otaylor@redhat.com>
2816
2817         * configure.in: Consistently order pangoxft / pangox
2818         in pkg-config calls in hopes of reducing problems
2819         (Eric Mader.)
2820
2821 2002-08-07  Matthias Clasen  <maclas@gmx.de>
2822
2823         * gtk/gtkmain.c (gtk_init): Fix doc comment.
2824
2825         * gtk/gtktreemodel.c (gtk_tree_path_new_from_indices): Make the
2826         doc comment gtk-doc-grokkable.
2827
2828 2002-08-06  jacob berkman  <jacob@ximian.com>
2829
2830         * configure.in: link gdk-pixbuf-xlib against x libs (bug #83442)
2831
2832 Mon Aug  5 17:20:45 2002  Owen Taylor  <otaylor@redhat.com>
2833
2834         * gtk/gtklabel.c: Patch from Soeren Sandmann
2835         to improve GtkLabel behavior when it gets
2836         a too small allocation. (Always display the
2837         initial portion.) (#71742)
2838
2839 Mon Aug  5 17:01:30 2002  Owen Taylor  <otaylor@redhat.com>
2840
2841         * gdk/Makefile.am (LDFLAGS): When overriding LDFLAGS,
2842         include @LDFLAGS@, otherwise LDFLAGS the users passes
2843         to configure don't get used. (#89946, Noah Levitt, 
2844         Albert Chin)
2845
2846         * gdk/linux-fb/Makefile.am: Remove LDFLAGS setting.
2847
2848 Mon Aug  5 15:25:40 2002  Owen Taylor  <otaylor@redhat.com>
2849
2850         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): 
2851         Fix problem with wrong depth being used. (#89941, Jacob
2852         Berkman.) Remove an unneeded 'screen' variable.
2853
2854 Mon Aug  5 15:04:59 2002  Owen Taylor  <otaylor@redhat.com>
2855
2856         More fixes for warnings reported by David L. Cooper II
2857
2858         * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use
2859         GdkModifierType for accel_mods. (#85856)
2860
2861         * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number
2862         signed, since we use -1 as an 'unset' value. (#85854)
2863
2864         * gdk/x11/xsettings-client.c (parse_settings): Suppress
2865         a warning (#85853)
2866
2867         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix
2868         accidental trailing ';'. (#85846)
2869
2870 Mon Aug  5 14:50:13 2002  Owen Taylor  <otaylor@redhat.com>
2871
2872         * gtk/gtkitemfactory.h: Add a note that yes, we do know
2873         what () means and we can't change it.
2874
2875         Fixes for warnings reported by David L. Cooper II
2876
2877         * tests/testtext.c: Warning fixes. Fix order of arguments
2878         to gtk_message_dialog_new(). (#85891)
2879
2880         * gtk/gtktreeitem.c (gtk_tree_item_paint): Fix incorrect
2881         use GTK_STATE_INSENSITIVE for a shadow type. (Not clear
2882         what the drawing intent was, but it's ENABLE_BROKEN
2883         anyways.) (#85880)
2884
2885         * gtk/gtktexttypes.c: Use character literals
2886         instead of direct constants to avoid warning. (#85878)
2887
2888         * gtk/theme-bits/decompose-bits.c gtk/gtkstyle.c:
2889         Fix some signed/unsigned problems (#85876)
2890
2891         * gtk/gtksignal.c (gtk_signal_newv): Add an explicit
2892         cast from GtkSignalRunType to GSignalFlags. (#85875)
2893
2894         * gtk/gtkitemfactory.c (gtk_item_factory_add_item): Fix
2895         use of guint instead of GdkModifierType (#85871)
2896
2897         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
2898         Fix signed/unsigned problem (#85870)
2899
2900         * gtk/gtkimcontext.c (gtk_im_context_class_init): Get
2901         rid of GtkType/Signal*. (Fixes #85869 as a side effect)
2902
2903         * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix some 
2904         signed/unsigned warnings (#85865)
2905
2906 2002-08-04  Matthias Clasen  <maclas@gmx.de>
2907
2908         * gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
2909         across 2.x.y.
2910
2911 Fri Aug  2 18:00:46 2002  Owen Taylor  <otaylor@redhat.com>
2912
2913         * gtk/gtkmenu.c: Fix menus resizing dynamically while
2914         they are popped up or torn off. (#78949)
2915
2916 Fri Aug  2 16:38:34 2002  Owen Taylor  <otaylor@redhat.com>
2917
2918         * gdk/gdkregion-generic.c: Comprehensively add
2919         g_return_[val]if_fail() statements. (#89491, Robin Lu)
2920
2921 Fri Aug  2 16:24:32 2002  Owen Taylor  <otaylor@redhat.com>
2922
2923         * gdk/x11/gdkmain-x11.c: Remove references to 
2924         gdk_initialized (#81060, Jacob Berkman)
2925         
2926         * gdk/gdk.c (gdk_exit): Remove gdk_exit_func().
2927
2928 Fri Aug  2 15:56:47 2002  Owen Taylor  <otaylor@redhat.com>
2929
2930         * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose): Fix
2931         args to pango_x_shutdown_display().
2932
2933         * gdk/linux-fb/gdkinput.c gdk/linux-fb/gdkinputprivate.h
2934         gdk/win32/gdkinput-win32.[ch] gdk/win32/gdkinput.c
2935         gdk/win32/gdkwindow-win32.c gdk/x11/gdkinput-x11.c
2936         gdk/x11/gdkinput-xfree.c gdk/x11/gdkinput.c
2937         gdk/x11/gdkinputprivate.h gdk/x11/gdkwindow-x11.c: Move
2938         a bunch of functions gdk_input => _gdk_input. Clean
2939         up some header file cruft. (#79971)
2940
2941 Fri Aug  2 12:21:41 2002  Owen Taylor  <otaylor@redhat.com>
2942
2943         * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose):
2944         Call pango_x[ft]_shutdown_display().
2945
2946 2002-08-02  jacob berkman  <jacob@ximian.com>
2947
2948         * gdk/x11/gdkscreen-x11.c (check_xfree_xinerama): declare
2949         screen_x11 variable to fix build w/ xinerama
2950
2951 Fri Aug  2 00:43:15 2002  Owen Taylor  <otaylor@redhat.com>
2952
2953         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2954         gdk/x11/gdkpango-x11.c gdk/x11/gdkpixmap-x11.c 
2955         gdk/x11/gdkprivate-x11.h gdk/x11/gdkwindow-x11.c:
2956         Switch back to using XftDraw so that we take 
2957         advantage of the draw-to-non-RENDER capabilities
2958         of Xft2.
2959
2960         * demos/gtk-demo/changedisplay.c (query_for_toplevel): 
2961         Fix the case where the user clicks on the "click on
2962         a window popup".
2963
2964 Thu Aug  1 19:09:39 2002  Owen Taylor  <otaylor@redhat.com>
2965
2966         * demos/gtk-demo/changedisplay.c: New demo for
2967         window migration between different displays and screens.
2968
2969         * gtk/gtkrc.c gtkstyle.[ch]: Add
2970         _gtk_style_init_for_settings(), so that gtkrc.c
2971         can initialize the styles it creates for the 
2972         right display.
2973
2974         * gdk/gdkdisplaymanager.c (gdk_screen_get_default)
2975         * gtk/gtksettings.c (gtk_settings_get_default)
2976         * gtk/gtkstyle.c (gtk_style_init): Handle absence of
2977         a default screen.
2978
2979         * gdk/x11/gdkmain-x11.c (_gdk_windowing_set_default_display):
2980         Handle display == NULL.x
2981
2982         * gdk/gdkdisplay.c (gdk_display_dispose): Free the
2983         event queue.
2984
2985         * gdk/x11/gdkevents-x11.c gdk/x11/gdkdisplay-x11.c:
2986         Remove the event source when closing a display.
2987
2988         * gdk/gdkdisplay.[ch]: Add a ::closed signal, dispose()
2989         isn't convenient enough by itself.
2990
2991         * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb):
2992         Create foreign windows for watch windows if there isn't
2993         an existing window, instead of installing a global filter.
2994         
2995         * gdk/x11/gdkscreen-x11.c gdk/x11/gdkprivate-x11.h
2996         gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen):
2997         Clean up the xsettings_client when we are done with
2998         it.
2999
3000         * gdk/x11/gdkevents-x11.c (_gdk_events_init): Remove
3001         excess call to _gdk_x11_events_init_screen()
3002
3003 2002-08-01  Sven Neumann  <sven@gimp.org>
3004
3005         Merge from stable:
3006
3007         * gdk/gdkrgb.c: trivial changes to some debug code so it compiles
3008         with VERBOSE being defined.
3009
3010 Thu Aug  1 11:26:03 2002  Owen Taylor  <otaylor@redhat.com>
3011
3012         * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdkinternals.h:
3013         Start implementing display/screen closing scheme; keep a
3014         flag for whether displays and screens are closed,
3015         call g_object_run_dispose(). Remove public gdk_screen_close().
3016
3017         * gdk/x11/gdkdisplay-x11.c gdk/x11/gdkscreen-x11.c: Add 
3018         dispose() methods; move appropriate parts of the finalize
3019         there.
3020
3021         * gdk/x11/gdkcolor-x11.c gdk/x11/gdkimage-x11.c
3022         gdk/x11/gdkmain-x11.c gdk/x11/gdkpango-x11.c 
3023         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkproperty-x11.c
3024         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.c:
3025         Start of making everything correctly ignore operations
3026         when a display has been closed.
3027
3028         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
3029         Handle decorations == NULL.
3030
3031         * gdk/x11/gdkcolor-x11.c (gdk_colormap_remove): 
3032         Remove unnecessary hash table creation.
3033
3034         * gdk/x11/gdkinput.c gdk/x11/gdkinput-x11.c gdk/win32/gdkinput.c
3035         Fix up gdk_device_get_history - handle events, n_events == NULL,
3036         etc.
3037
3038         * gdk/x11/gdkproperty-x11.c (gdk_property_get):
3039         Handle failure better.
3040         
3041         * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
3042         Handle failure better, handle data == NULL, move docs
3043         here, remove an excess round trip by asking for
3044         all selection data at once.
3045         
3046         * gdk/gdkselection.c gdk/win32/{x11,win32}/gdkselection-{x11,win32}.c
3047           gdk/{x11,win32}/gdkmain-{x11,win32}.c gdk/gdkdisplay.c: Move
3048         gdk_text_property_to_text_list(), gdk_string_to_compound_text(),
3049         gdk_display_set_sm_client_id() to display-independent part of GDK.
3050
3051         * gdk/Makefile.am (gdk_c_sources): Sort gdkdisplay/screen.[ch]
3052         into the right place.
3053
3054 2002-07-31  jacob berkman  <jacob@ximian.com>
3055
3056         * gtk/queryimmodules.c (print_escaped): escape_string() only takes
3057         one arg
3058
3059 Wed Jul 31 12:50:51 2002  Owen Taylor  <otaylor@redhat.com>
3060
3061         * gtk/queryimmodules.c: Avoid using g_strescape(),
3062         since it mangles UTF-8, (#89479, Yao Zhang.)
3063
3064 Tue Jul 30 19:09:46 2002  Owen Taylor  <otaylor@redhat.com>
3065
3066         * gtk/gtkrange.c (gtk_range_scroll_event): Handle 
3067         inverted ranges correctly (#85436, fix from 
3068         Norihiro UMEDA)
3069
3070 Tue Jul 30 16:36:53 2002  Owen Taylor  <otaylor@redhat.com>
3071
3072         * tests/testgtk.c: Fix bug in the selection mode option
3073         menus which were setting the wrong values. 
3074         (#85763, Manuel Op de Coul)
3075
3076 Tue Jul 30 15:39:06 2002  Owen Taylor  <otaylor@redhat.com>
3077
3078         * demos/Makefile.am: Honor GDK_PIXBUF_CSOURCE from
3079         configure.in when cross-compiling. (#87099,
3080         J. Ali Harlow)
3081
3082 Mon Jul 29 16:42:30 2002  Owen Taylor  <otaylor@redhat.com>
3083
3084         * gtk/gtkimcontext.c (gtk_im_context_real_get_surrounding):
3085         Unset gtk-im-surrounding-info object data again.
3086         (Fix from Yao Zhang, #86811)
3087
3088 Fri Jul 26 17:59:06 2002  Owen Taylor  <otaylor@redhat.com>
3089  
3090         * configure.in: Replace uses of grep \(A\|B\) ... with
3091         egrep (A|B). (#84872, Arnaud Charlet)
3092  
3093 Fri Jul 26 22:53:37 2002  Kristian Rietveld  <kris@gtk.org>
3094
3095         API additions: _move, _reorder and _swap for stores, path
3096         constructor.
3097
3098         * gtk/gtktreemodel.[ch] (gtk_tree_path_new_from_indices): new function.
3099
3100         * gtk/gtkliststore.[ch]: added gtk_list_store_reorder_func (private),
3101         gtk_list_store_reorder, gtk_list_store_swap, gtk_list_store_move.
3102
3103         * gtk/gtktreestore.[ch]: added gtk_tree_store_reorder_func (private),
3104         gtk_tree_store_reorder, gtk_tree_store_swap, gtk_tree_store_move.
3105
3106 Fri Jul 26 22:32:57 2002  Kristian Rietveld  <kris@gtk.org>
3107
3108         Merge from stable:
3109
3110         * gtk/gtktreestore.c (node_free): return FALSE,
3111         (gtk_tree_store_finalize): use g_node_traverse instead of
3112         g_node_children_foreach, so the whole tree will be freed (#88854,
3113         patch from Emmanuel Briot).
3114
3115 Fri Jul 26 22:32:24 2002  Kristian Rietveld  <kris@gtk.org>
3116
3117         Merge from stable:
3118
3119         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix some memleaks,
3120         (#84426, patch from Matthias Clasen).
3121
3122 Fri Jul 26 22:31:25 2002  Kristian Rietveld  <kris@gtk.org>
3123
3124         Merge from stable:
3125
3126         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): _iter_children
3127         check shouldn't be in g_return_return_val_if_fail (pointed out by
3128         Josh Green, #88997),
3129         (gtk_tree_view_set_model): call _gtk_tree_view_column_unset_model
3130         for each column when we unset the model (part of #82484),
3131         (gtk_tree_view_get_cell_area): return if we ran out of tree or
3132         if we got an invalid path (#82376).
3133
3134         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_unset_model.
3135
3136         * gtk/gtktreeviewcolumn.c: implement _gtk_tree_view_column_unset_model
3137         which disconnects the sort_column_changed_signal (part of #82484).
3138
3139         * gtk/gtkliststore.c (gtk_list_store_insert): append row if the
3140         given postion is off the end of the tree (#85813).
3141
3142         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): let's use
3143         2-space indent, commit changes if up/down keys has been pressed,
3144         this overrides the focus key foo so the user won't be surprised
3145         (#84665).
3146
3147 Fri Jul 26 16:34:34 2002  Shivram U  <shivaram.upadhyayula@wipro.com>
3148
3149         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable),
3150         (gdk_pixbuf_get_from_image), (rgbconvert), (convert_real_slow):
3151         Check if depth of the source is not equal to the depth of the colormap
3152         passed. (#75597)
3153
3154 2002-07-25  Matthias Clasen  <maclas@gmx.de>
3155
3156         * gdk/gdkrgb.c (gdk_rgb_select_conv): Use gdk_rgb_convert_4,
3157         not gdk_rgb_convert_8 for depth 4, bpp 8, PseudoColor visuals.
3158         (#88697)
3159         
3160 Thu Jul 25 14:14:46 2002  Owen Taylor  <otaylor@redhat.com>
3161
3162         * gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle
3163         menubars, not Control-Tab (#87159, Calum Benson. Patch from
3164         Padraig O'Briain.)
3165         
3166         * gtk/gtkmenubar.c: When cycling menu bars, cancel
3167         after the last instead of wrapping around.
3168
3169 Thu Jul 25 11:57:57 2002  Owen Taylor  <otaylor@redhat.com>
3170
3171         [ Patch from Padraig O'Briain, #87904 ]
3172
3173         * gtk/gtkwidget.c (gtk_widget_class_init): Cleanup -
3174         use G_SIGNAL_RUN_LAST not GTK_RUN_LAST when using
3175         g_signal new.
3176
3177         * gtk/gtktogglebutton.c (gtk_toggle_button_mnemonic_activate): 
3178         Always focus the widget, even when we are activating
3179         as well.
3180
3181 2002-07-24  Havoc Pennington  <hp@pobox.com>
3182
3183         * gtk/gtktextview.c: Apply patch from Gustavo
3184         Giraldez for bug #78513
3185
3186 Wed Jul 24 16:43:49 2002  Owen Taylor  <otaylor@redhat.com>
3187  
3188         * gtk/gtkrc.c docs/references/tmpl/gtkrc.sgml: Don't use
3189         GTK_RC_FILES, since it causes problems with what KDE (etc.)
3190         does to customize GTK+ themes, use GTK2_RC_FILES instead. (#88987)
3191  
3192 2002-07-16  Federico Mena Quintero  <federico@ximian.com>
3193
3194         * gdk/gdkpixbuf-drawable.c (rgb565lsb): Fixed the LSB -> MSB case.
3195         Fixes #79463.
3196
3197 2002-07-16  Sven Neumann  <sven@gimp.org>
3198
3199         * gdk/gdk.c
3200         * gdk/gdkinternals.h
3201         * gdk/win32/gdkmain-win32.c
3202         * gdk/x11/gdkmain-x11.c: pass argc and argv to the GDK backend in
3203         _gdk_windowing_init() so that the backend has a chance to process
3204         the command-line arguments (GTK+-DirectFB needs this).
3205
3206 2002-07-10  jacob berkman  <jacob@ximian.com>
3207
3208         * gtk/gtkoptionmenu.c (gtk_option_menu_scroll_event): activate the
3209         menu item so old apps work properly
3210
3211 Wed Jul 10 14:27:14 2002  Owen Taylor  <otaylor@redhat.com>
3212
3213         * modules/input/gtkimcontextxim.c gtk/gtkcolorsel.c 
3214         gtk/gtkdialog.c gtk/gtktextbtree.c: Fix some cases
3215         where signal connection IDs where being assigned to 
3216         guint rather than gulong. (part of #87281, Shivram U)
3217
3218 Fri Jul  5 20:18:23 2002  Owen Taylor  <otaylor@redhat.com>
3219
3220         * gtk/gtkmenushell.[ch] gtk/gtkmenubar.c gtk/gtkmenuitem.c
3221         gtk/gtkentry.c gtk/gtktextview.c: Add an extra parameter
3222         to _gtk_menu_item_select_first() to allow us to choose
3223         whether we want to select the first item predictably
3224         or to select the first sensitive item. Fixes problem
3225         with insensitive menu items and keynav. (#85796,
3226         reported by Bill Haneman and others.)
3227
3228 Fri Jul  5 02:50:24 2002  Jonathan Blandford  <jrb@gnome.org>
3229
3230         * gtk/gtktreeview.c (gtk_tree_view_collapse_all): fix warning.
3231         (gtk_tree_view_search_iter): fix warning, #85884
3232
3233         * gtk/gtktreestore.c (gtk_tree_store_get_flags): change return
3234         value to GtkTreeModelFlags to fix compiler warning, #85883
3235
3236         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags): change
3237         return value to GtkTreeModelFlags to fix compiler warning, #85882
3238
3239         * gtk/gtktreemodel.c (gtk_tree_path_prepend_index): fix compiler
3240         warning, #85881
3241
3242 Fri Jul  5 12:51:39 2002  Kristian Rietveld  <kris@gtk.org>
3243
3244         Merge from HEAD.
3245
3246         * gtk/gtkliststore.c (gtk_list_store_sort): also update ->tail after    
3247         sorting.
3248
3249 2002-07-02 Padraig O'Briain <padraig.obriain@sun.com>
3250
3251         * gtk/gtksocket.c (gtk_socket_hierarchy_changed):
3252         Use hyphen instead of underscore in signal names in calls to
3253         g_signal_connect_swapped (Fixes bug #86339)
3254
3255 Tue Jul  2 00:33:26 2002  Jonathan Blandford  <jrb@gnome.org>
3256
3257     * gtk/gtktreeview.c (validate_visible_area): only validate the
3258       visible area if we've ever been requisitioned.
3259
3260 Mon Jul  1 17:04:09 2002  Jonathan Blandford  <jrb@redhat.com>
3261
3262         * gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
3263         white space/variable names to match tree_store equiv.
3264
3265         * gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
3266         set the value.
3267
3268 Mon Jul 01 17:19:00 2002  Bill Haneman <bill.haneman@sun.com>
3269
3270         * contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
3271         (xlib_window_is_viewable):
3272         Fixed failure of assertion when drawable is root window.
3273
3274 Thu Jun 20 19:41:09 2002  Owen Taylor  <otaylor@redhat.com>
3275
3276         * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/*.c gtk/*.c
3277         tests/*.c: Renames:
3278
3279          gdk_get_default_display => gdk_display_get_default
3280          gdk_get_default_screen  => gdk_screen_get_default
3281          gdk_open_display        => gdk_display_open
3282
3283 Thu Jun 20 16:49:00 2002  Owen Taylor  <otaylor@redhat.com>
3284
3285         * gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c 
3286         gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c 
3287         gdk/win32/gdkdisplay-win32.c: Add a singleton object that
3288         we can use to get notification when displays 
3289         appear / disappear or the default display changes.
3290
3291         gdk_set_default_display() => gdk_display_manager_set_default_display()
3292         gdk_list_displays() => gdk_display_manager_list_displays().
3293         (#85696)
3294
3295         * gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler
3296         generation.
3297
3298         * gdk/gdkintl.h: Add this.
3299
3300         * gtk/gtkmain.c: Add gtk_parse_args() that initializes
3301         GTK+ without opening a display.
3302
3303         * gtk/gtkmain.c: Set things up so if a module
3304         exports gtk_module_init() and gtk_module_display_init(), 
3305         then we treat it as multihead aware, otherwise, 
3306         we only initialize it after the default display is set.
3307
3308 Thu Jun 20 15:53:21 2002  Owen Taylor  <otaylor@redhat.com>
3309
3310         Patch from Erwann Chenede.
3311
3312         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkprivate-x11.h:
3313         Introduce a yes/no/unknown GdkTristate, use it
3314         in a couple of places. (#79962)
3315
3316         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.h: Make 
3317         gravity_works per-display. (#79963)
3318
3319 Thu Jun 20 15:36:40 2002  Owen Taylor  <otaylor@redhat.com>
3320
3321         * gtk/gtkselection.c (gtk_selection_owner_set): Get
3322         the owner from the display if !NULL. Otherwise, warn for
3323         multihead. (#85680)
3324
3325 Thu Jun 20 15:17:14 2002  Owen Taylor  <otaylor@redhat.com>
3326
3327         * gtk/gtkstyle.[ch]: Get rid of gtk_style_get_font_for_display(),
3328         make gtk_style_get_font() warn for multihead if called
3329         on an unattached style. (#80277)
3330
3331         * gtk/gtktext.c: Remove use of gtk_style_get_font_for_display();
3332         this makes gtktext not multihead safe, but it doesn't matter;
3333         it's ENABLE_BROKEN anyways.
3334
3335         * gtk/gtkmain.c gtk/gtkdebug.h: Add GTK_NOTE(MULTIHEAD,[])
3336
3337 Thu Jun 20 14:51:30 2002  Owen Taylor  <otaylor@redhat.com>
3338
3339         * gtk/gtksettings.c (gtk_settings_notify): Only
3340         change the double click time if the screen for
3341         the notification is screen 0 of the display.
3342         (#77978)
3343
3344         * gdk/gdkevents.c (gdk_display_set_double_click_time): Fix 
3345         half-done rename.
3346
3347 Thu Jun 20 12:16:00 2002  Owen Taylor  <otaylor@redhat.com>
3348
3349         * gtk/gtkinvisible.c (gtk_invisible_set_screen): Add
3350         notification for screen property. (#80280)
3351
3352 Wed Jun 19 19:30:45 2002  Owen Taylor  <otaylor@redhat.com>
3353
3354         * gtk/gtkrc.c: Keep a global list of strings and
3355         RC files to reparse, make gtk_rc_parse_string(),
3356         gtk_rc_parse() add to the list, and parse the
3357         string or file in _all_ contexts.
3358
3359         * gtk/gtkrc.c (gtk_rc_reparse_all): Reparse all
3360         contexts, not just the default context.
3361
3362 Tue Jun 18 19:38:08 2002  Owen Taylor  <otaylor@redhat.com>
3363
3364         * gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
3365         display.
3366
3367         * gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
3368         missing check for mv_resize == NULL.
3369
3370 Tue Jun 18 19:30:25 2002  Owen Taylor  <otaylor@redhat.com>
3371
3372         * gtk/gtktreeview.c: Typo fix.
3373
3374 Tue Jun 18 19:11:51 2002  Owen Taylor  <otaylor@redhat.com>
3375
3376         * gdk/gdkdisplay.[ch] gdk/gdkevents.c gdk/gdkinput.h 
3377         gdk/gdkinternals.h gdk/win32/gdkevents-win32.c
3378         gdk/win32/gdkinput-win32.[ch] gdk/x11/gdkevents-x11.c
3379         gdk/x11/gdkinput{,-none,-x11}.c gdk/x11/gdkinputprivate.h:
3380         Make the core pointer object per-display. (#85698)
3381
3382         * gtk/gtkdnd.c gtk/gtktreeview.c: Adapt to above change.
3383
3384 2002-06-18  Yanko Kaneti <yaneti@declera.com>
3385
3386         * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
3387
3388 Tue Jun 18 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>
3389
3390         * gdk/gdkcursor.[ch] gdk/x11/gdkcursor-x11.c
3391         gdk/x11/gdkprivate-x11.h gdk/win32/gdkcursor-win32.c: Replace
3392         gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().
3393         (#85671)
3394
3395         * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcurve.c gtk/gtkdnd.c
3396         gtk/gtkentry.c gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtklabel.c 
3397         gtk/gtkpaned.c gtk/gtktext.c gtk/gtktextview.c 
3398         gtk/gtktipsquery.c gtk/gtktreeviewcolumn.c: 
3399         Adapt to above change.
3400
3401 Tue Jun 18 12:04:10 2002  Owen Taylor  <otaylor@redhat.com>
3402
3403         * gdk/gdk.c (gdk_init_check): Change handling 
3404         of gdk_intialized(), so that gdk_parse_args(),
3405         gdk_init_check() sequence works.
3406
3407 Tue Jun 18 11:46:33 2002  Owen Taylor  <otaylor@redhat.com>
3408
3409         * gdk/x11/gdkwindow-x11.c (get_move_resize_data): Add
3410         a gboolean create argument, so we don't create the
3411         structure unless we actually emulate move-resize
3412         drags.
3413
3414 Sat Jun 15 23:53:03 2002  Owen Taylor  <otaylor@redhat.com>
3415
3416         * gtk/gtkfilesel.c (gtk_file_selection_set_filename): 
3417         Actually use the UTF-8 filename, so we actually
3418         fix #77948.
3419
3420         * tests/testgtk.c: Remember the directory as a
3421         test of gtk_file_selection_set_filename().
3422
3423 Sat Jun 15 23:05:19 2002  Owen Taylor  <otaylor@redhat.com>
3424  
3425         * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
3426         Fix backwards asssertion. (#85434)
3427  
3428 Sat Jun 15 16:10:00 2002  James M. Cape <jcape@ignore-your.tv>
3429
3430         * gtk/gtktexttag.c (gtk_text_tag_set_property):
3431         Notify about "background-full-height-set", not
3432         "bg_full_height_set". (#83336)
3433                         
3434 Fri Jun 14 15:41:50 2002  Jonathan Blandford  <jrb@redhat.com>
3435
3436         * gtk/gtktreeview.c: Fix bug #84268, where validate_rows sometimes
3437         didn't remove itself correctly.  Thanks to Dave Camp for the fix.
3438
3439 Fri Jun 14 15:09:11 2002  Jonathan Blandford  <jrb@redhat.com>
3440
3441         * gtk/gtktreeview.c (gtk_tree_view_set_adjustments):
3442         disconnect_by_func instead of disconnect_by_data.  Someone else
3443         could use the same data as us.
3444
3445         * gtk/gtktreeview.c (do_validate_rows): update the adjustment
3446         immediately after we update the size.  Fixes some scroll_to bugs.
3447         (validate_visible_area): ditto
3448
3449 Fri Jun 14 10:31:59 2002  Owen Taylor  <otaylor@redhat.com>
3450
3451         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): 
3452         Ignore state change events for windows that aren't
3453         our toplevels. (#84482, Thomas Leonard)
3454
3455 Fri Jun 14 10:00:29 2002  Owen Taylor  <otaylor@redhat.com>
3456
3457         * gdk/gdkwindow.c (gdk_window_update_idle): Add
3458         missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
3459         (Report of non-thread-safety from Nicholas Allen)
3460
3461         * gtk/gtkmain.c (rewrite_events_translate): Fix sign
3462         problem with coordinate translation. (Fix from
3463         Robin Lu, #85229)
3464
3465 Thu Jun 13 19:41:56 2002  Owen Taylor  <otaylor@redhat.com>
3466
3467         * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c
3468         gtk/gtktextiter.c gtk/gtktexttag.c gtk/gtktreemodel.c
3469         gtk/gtkwidget.c: Fix type names for GtkIconSet,
3470         GtkIconSource, GtkSelectionData, GtkBorder, GtkTextIter,
3471         GtkTextAttributes, GtkTreePath, GtkTreeIter, 
3472         GtkRequisition, which were all registered as GtkType*.
3473         (#84634, James Henstridge; patch from Jonathan Blandford.)
3474         
3475 Thu Jun 13 18:48:14 2002  Owen Taylor  <otaylor@redhat.com>
3476
3477         * gdk/x11/gdkcolor-x11.c: Make work
3478         gdk_colormap_sync() work for DirectColor visuals 
3479         as well. Fill in the ->colors array in
3480         gdk_screen_get_system_colormap () for DirectColor visuals.
3481         (#81954, Based on a patch from shivaram.upadhyayula@wipro.com)
3482  
3483 Thu Jun 13 17:50:36 2002  Owen Taylor  <otaylor@redhat.com>
3484
3485         * gtk/gtktextview.c gtk/gtkentry.c: Add the obsolete
3486         CUA cut/copy/paste bindings. (#79078)
3487
3488         * gtk/gtktextview.c gtk/gtkentry.c: Make <Shift>BackSpace
3489         a synonym for for Backspace. (#80302, Jeff Waugh)
3490
3491 Thu Jun 13 15:02:49 2002  Owen Taylor  <otaylor@redhat.com>
3492
3493         * gdk/x11/gdkdnd-x11.c: Ignore all client events that
3494         were sent to a window that we don't know about or
3495         to a foreign window. (#81543, Young-Ho, Cha)
3496
3497 Thu Jun 13 12:24:09 2002  Owen Taylor  <otaylor@redhat.com>
3498
3499         * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
3500         Fix so that the encoding of the filename is handled
3501         properly in the case of non-UTF-8 filesystems;
3502         document the encoding. (#77948, Sebastian Ritau)
3503
3504         * gtk/gtkfilesel.c (filenames_drag_get): Remove
3505         debug printf. Fix UTF-8 / filename encoding 
3506         confusion.
3507
3508 2002-06-13  Christian Rose  <menthos@menthos.com>
3509
3510         * Makefile.am (EXTRA_DIST): Remove po/README.tools, po/desk.pl
3511         and po/update.pl.
3512
3513 Thu Jun 13 12:01:36 2002  Owen Taylor  <otaylor@redhat.com>
3514
3515         * gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
3516         a positive status unless there is a text target in
3517         the drag. (#83386, Thomas Leonard.)
3518
3519 Thu Jun 13 11:36:37 2002  Owen Taylor  <otaylor@redhat.com>
3520  
3521         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
3522         the initial grab time, use that when changing the
3523         pointer. (#83052, help from Dave Camp tracking it down.)
3524  
3525 Thu Jun 13 16:42:40 2002  Kristian Rietveld  <kris@gtk.org>
3526
3527         * gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,
3528         not just the leafs (pointed out by Josh Parsons)
3529
3530 2002-06-12  Havoc Pennington  <hp@redhat.com>
3531  
3532         * configure.in: check that pango has Xft2 support, instead of
3533         checking whether Xft2 exists.
3534
3535 Wed Jun 12 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
3536
3537         * gtk/gtkentry.c (blink_cb): Add an informative 
3538         g_warning() when the entry has lost a focus-out-event.
3539         (#78305, Michel Selten)
3540
3541 Wed Jun 12 17:31:15 2002  Owen Taylor  <otaylor@redhat.com>
3542
3543         * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item): 
3544         Check to see if the menu item is selectable before
3545         setting menu_shell->active_menu_item. This hopefully
3546         will keep gail from getting confused.
3547         (#84115, Remus Draica)
3548
3549 Wed Jun 12 17:13:13 2002  Owen Taylor  <otaylor@redhat.com>
3550
3551         * gtk/gtkwindow.c (gtk_window_move_resize): Fix bug
3552         where if CENTER_ON_PARENT was set, but there was
3553         no parent, GDK_HINT_POS would be set, resulting
3554         in a dialog at 0,0. (#83479, Havoc Pennington)
3555
3556 Wed Jun 12 16:34:13 2002  Owen Taylor  <otaylor@redhat.com>
3557
3558         * gtk/gtkmenubar.c: When fetching the menubars for
3559         the window for F10 handling, only add viewable menu
3560         bars. (Apparently, people sometimes put menu bars
3561         in notebook pages!) (Tim Janik, #82627)
3562
3563 Wed Jun 12 16:21:38 2002  Owen Taylor  <otaylor@redhat.com>
3564
3565         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
3566         Clamp size of child to at least 1x1. (#82431, 
3567         Boris Shingarov.)
3568
3569 Wed Jun 12 15:43:38 2002  Owen Taylor  <otaylor@redhat.com>
3570
3571         * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
3572         0 increment, to fix division-by-zero problem.
3573         (#82816, George Lebl.)
3574
3575 Wed Jun 12 15:38:01 2002  Owen Taylor  <otaylor@redhat.com>
3576
3577         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
3578         Fix memory leak. (Patch from Matthias Clasen, #84926)
3579
3580         * gtk/gtkrange.c (gtk_range_init): Initialize
3581         mouse_x, mouse_y to -1,-1. (#84871, Garrett Lesage)
3582
3583 Wed Jun 12 15:08:37 2002  Owen Taylor  <otaylor@redhat.com>
3584
3585         * gtk/gtkrc.c (gtk_rc_get_style_by_paths): Allow 
3586         NULL for widget path or class path as documented.
3587         (#83150, Sergey Kuzminov)
3588
3589 Wed Jun 12 15:02:30 2002  Owen Taylor  <otaylor@redhat.com>
3590
3591         * gtk/gtktextutil.c: Fix ZWJ => ZWN typo.
3592         (#83092, Tino Meinen)
3593
3594 Wed Jun 12 14:41:43 2002  Owen Taylor  <otaylor@redhat.com>
3595
3596         * configure.in: Fix some problems with case statements
3597         for checking for omitted deps. (#84202, Jacob Berkman.)
3598
3599         * configure.in: Remove USE_X11R6_XIM checks since we 
3600         no longer use them.
3601
3602 Wed Jun 12 14:18:45 2002  Owen Taylor  <otaylor@redhat.com>
3603  
3604         * gtk/gtkimcontextsimple.c: Add compose sequences
3605         of dead_acute + c/C => C WITH CEDDILLA.
3606         (Nano Golveia, #83492)
3607  
3608 2002-06-10  Hans Breuer  <hans@breuer.org>
3609
3610         * gdk/makefile.msc : added gdkdisplay and gdkscreen
3611
3612         * gdk/win32/gdkdisplay-win32.c (gdk_open_display) : 
3613         need to gdk_screen_set_default_colormap(). Also un-static
3614         some exported gdk_display_*() functions
3615
3616         * gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
3617
3618         * gdk/win32/gdkscreen-win32.c : implement
3619         gdk_screen_get_number, fixed typo, added rewuired headers
3620
3621         [merge from 2.0.x branch, should we really manifest 
3622          GtkPlug as being an X11 only thing this way? See #58541]
3623         * gtk/gtkwindow.c (gtk_window_show): Conditionalize
3624         GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
3625         reported by Sven Neumann)
3626
3627 2002-06-10  Tor Lillqvist  <tml@iki.fi>
3628
3629         [ merge from stable ]
3630
3631         * gdk/win32/gdkmain-win32.c (gdk_screen_get_width_mm,
3632         gdk_screen_get_height_mm): Use the "logical dpi" to calculate
3633         (pseudo) physical sizes. Similar to the use of "logical dpi" in
3634         Pango as suggested by Joaquin Cuenca Abela.
3635
3636         Two fixes by Florent Duguet:
3637
3638         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Correct
3639         semantics for setting cursor to NULL (should use cursor of parent
3640         window).
3641
3642         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Plug memory
3643         leak.
3644
3645 2002-06-10  Naba Kumar <kh_naba@users.sourceforge.net>
3646
3647         * configure.in: Added hi in ALL_LINGUAS
3648
3649 2002-06-09  Matthias Clasen  <maclas@gmx.de>
3650
3651         * gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
3652         child_anchor_table.  (#84425)
3653
3654         * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
3655         one_display_cache.  (#84424)
3656
3657 Fri Jun  7 23:11:42 2002  Jonathan Blandford  <jrb@gnome.org>
3658
3659         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing
3660         bug.
3661
3662         * docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's.
3663
3664 2002-06-07  Matthias Clasen  <maclas@gmx.de>
3665
3666         * gtk/gtktreeviewcolumn.c
3667         (gtk_tree_view_column_clear_attributes_by_info): New function,
3668         split off from gtk_tree_view_column_clear_attributes.
3669         (gtk_tree_view_column_clear_attributes):
3670         (gtk_tree_view_column_finalize):  Call the new function, avoid
3671         recalculating the info from the renderer.  (#84413) 
3672         
3673         * gtk/gtktextview.c (text_view_child_new_anchored): Initialize
3674         vc->type in order to avoid a later UMR.  (#84415)
3675
3676 2002-06-07  Mark McLoughlin  <mark@skynet.ie>
3677
3678         * gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
3679         the RootWindow of this screen for gdk_window_get_pointer.
3680
3681 2002-06-06  Matthias Clasen  <maclas@gmx.de>
3682
3683         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Set
3684         hardware_keycode for KeyRelease events.  (#84305)
3685
3686 Thu May 23 15:44:30 2002  Owen Taylor  <otaylor@redhat.com>
3687
3688         * gtk/gtktextview.c (changed_handler): Don't redraw
3689         when the area is completely above the visible area.
3690
3691 Fri May 17 17:27:21 2002  Owen Taylor  <otaylor@redhat.com>
3692
3693         * gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
3694         property indicating whether a widget is the focus
3695         widget within the toplevel.
3696
3697         * gtk/gtkwindow.[ch]: Add "is_active" "has_toplevel_focus"
3698         properties to indicate (separately) the idea of
3699         being the part of the toplevel with the input focus
3700         and being the active widget. (Needed for full XEMBED
3701         compliance.)
3702
3703         * gtk/gtkplug.c gtk/gtksocket.c: Update to work
3704         in terms of is_active/has_toplevel_focus, and thus
3705         handle the active/focused XEMBED distinction
3706         correctly.
3707
3708         * gtk/gtkplug.c (gtk_plug_realize): Remove
3709         FOCUS_CHANGE_MASK, since we don't need it.
3710
3711 Fri May 17 18:07:34 2002  Owen Taylor  <otaylor@redhat.com>
3712
3713         * gtk/gtksocket.c (gtk_socket_add_window): Send
3714         XEMBED_EMBEDDED_NOTIFY.
3715
3716         * gtk/gtksocket.c: Assume windows without _XEMBED_INFO 
3717         property want to be mapped, for better 
3718         current-Qt compatibility.
3719
3720 Thu Jun  6 17:27:01 2002  Kristian Rietveld  <kris@gtk.org>
3721
3722         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): don't leak the GArray
3723         (figured out by Matthias Clasen, fixes #82026).
3724
3725 Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>
3726
3727         Changes multihead reorganizing code for win32 support,
3728         mostly from a patch by Hans Breuer.
3729
3730         * gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
3731           gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
3732           gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
3733           gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
3734           gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
3735           gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
3736           gdk/x11/gdkpango-x11.c gdk/gdkselection.c
3737           gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
3738           gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
3739           Move port-independent singlehead wrapper functions into
3740           port-independent part of GDK. (#80009)
3741
3742         * gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
3743           gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
3744           gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
3745           gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
3746           gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c: 
3747         Turn singlehead functions into "multihead" functions that ignore 
3748         their GdkDisplay or GdkScreen arguments.
3749
3750         * gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3751         gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h: 
3752         Misc multihead-compatibility changes.
3753
3754         * gtk/gtk.def gdk/gdk.def: Update for multihead functions.
3755
3756         * gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c 
3757         gdk/x11/gdkvisual-x11.c: Remove the screen fields
3758         from the public parts of the colormap/visual structures, add accessors
3759         instead.
3760
3761         * gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
3762           gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
3763           gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
3764           gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
3765         for colormaps, visuals; move the fields into the private
3766         structures for the x11 backend.
3767
3768         * gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
3769           gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c: 
3770         Remove virtualization of screen and display functions.
3771         (#79990, patch from Erwann Chenede)
3772
3773         * gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
3774         gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
3775         New files containing stub implementations of Display,
3776         Screen functions.
3777
3778         * gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
3779         gdk/x11/gdkx.h: Clean up function exports and what 
3780         headers they are in. (#79954)
3781
3782         * gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
3783         screen->screen_num. (In the patch for #79972, Erwann Chenede)
3784
3785         * gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
3786          gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
3787         to use window hooks. (#79972, patch partly from Erwann Chenede)
3788
3789         * gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
3790         some warnings.
3791
3792 Wed Jun  5 23:29:41 2002  Kristian Rietveld  <kris@gtk.org>
3793
3794         Related bugs: #76252, #76396, #80866.
3795
3796         * gtk/gtktreeselection.[ch]: added
3797         gtk_tree_selection_get_selected_rows(),
3798         added gtk_tree_selection_count_selected_rows(),
3799         renamed gtk_tree_selection_real_select_range() to
3800         gtk_tree_selection_real_modify_range(), and added mode parameter,
3801         added gtk_tree_selection_unselect_range().
3802         
3803 Tue Jun  4 17:39:34 2002  Owen Taylor  <otaylor@redhat.com>
3804
3805         * configure.in: If we have xft .pc file, use that
3806         when checking for Xft/Xrender. (Still need to separate
3807         out HAVE_XFT, HAVE_RENDER)
3808  
3809         * configure.in: Make sure Xft cflags come before X cflags.
3810  
3811 Tue Jun  4 21:13:57 2002  Kristian Rietveld  <kris@gtk.org>
3812
3813         * gtk/gtktreeview.[ch]: added gtk_tree_view_expand_to_path.
3814
3815 Tue Jun  4 19:24:41 2002  Kristian Rietveld  <kris@gtk.org>
3816
3817         Discussed in #76249.
3818
3819         * gtk/gtkliststore.[ch]: made gtk_list_store_remove return a gboolean,
3820         added gtk_list_store_iter_is_valid.
3821
3822         * gtk/gtktreestore.[ch]: made gtk_tree_store_remove return a gboolean,
3823         added gtk_tree_store_iter_is_valid.
3824
3825         * gtk/gtktreemodelsort.[ch]: added VALID_ITER macro as in liststore
3826         and treestore sources, added gtk_tree_model_sort_iter_is_valid.
3827         
3828 Tue Jun  4 19:18:20 2002  Kristian Rietveld  <kris@gtk.org>
3829
3830         * gtk/gtktreemodel.[ch]: add gtk_tree_model_get_string_from_iter
3831         (#74667).
3832
3833 2002-06-04  Daniel Elstner  <daniel.elstner@gmx.net>
3834
3835         [ merge from stable ]
3836
3837         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3838         Really fix #83796: Revert jrb's last patch, and move the second
3839         if-clause into the fist one's else-branch.  This is also what
3840         the other cell renderers do.
3841
3842 2002-06-03  Federico Mena Quintero  <federico@ximian.com>
3843
3844         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fix the MSB -> MSB case.
3845         Fixes #79190.
3846
3847 Sat Jun  1 10:43:28 2002  Jonathan Blandford  <jrb@gnome.org>
3848
3849         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3850         add missing flag, #83796
3851
3852 2002-05-30  Michael Meeks  <michael@ximian.com>
3853
3854         * gtk/gtkmenu.c (gtk_menu_popup): destroy the transfer
3855         window if the grab fails so we don't get events on this
3856         window after the menu is finalized with a duff GtkWidget
3857         pointer: #82366
3858
3859 Mon May 28 13:28:10  Shivram U  <shivaram.upadhyayula@wipro.com>
3860
3861         * gtk/gtktextbuffer.c (selection_data_get_buffer): Check if the owner
3862         got is of type GDK_WINDOW_FOREIGN. If so the owner is not in-process,
3863         and so return NULL.
3864
3865 2002-05-24  Michael Meeks  <michael@ximian.com>
3866
3867         * gtk/gtkmain.c (_gtk_find_module): don't leak the paths.
3868
3869 Thu May 30 07:59:38 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
3870
3871         * gtk/gtkmenu.c (gtk_menu_style_set): add
3872         gtk_menu_style_set(). fixes #79345
3873
3874 2002-05-29  Dave Camp  <dave@ximian.com>
3875
3876         * gtk/gtkdnd.c (gtk_drag_end): Disconnect from keypress events.
3877
3878 2002-05-28  Matthias Clasen  <maclas@gmx.de>
3879
3880         * gtk/gtkwindow.c (gtk_window_move): Markup fixes
3881
3882         * gtk/gtkrc.c (gtk_rc_get_module_dir): Markup fixes.
3883         
3884         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_for_screen): Update docs
3885         for Docbook XML.
3886
3887 2002-05-27  Daniel Elstner  <daniel.elstner@gmx.net>
3888
3889         [ merge from stable ]
3890
3891         Fixes for #83190
3892
3893         * gtk/gtktreedatalist.h (_GtkTreeDataList::data): Add missing
3894         fields to anonymous union: glong, gulong, gint64 and guint64.
3895         This is an internal header file, so it should not affect ABI
3896         or API compatibility.
3897
3898         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
3899         Implement missing support for glong, gulong, gint64 and guint64
3900         fundamental types.  Use data.v_uint instead of data.v_int for
3901         G_TYPE_FLAGS, as GValue does.
3902         (_gtk_tree_data_list_value_to_node): ditto
3903         (_gtk_tree_data_list_node_copy): Add case labels for missing
3904         fundamental types, and reorder them to match the other functions.
3905         (gtk_tree_data_list_compare_func): Implement comparison for
3906         glong, gulong, gint64 and guint64.  Use g_value_get_enum()
3907         for G_TYPE_ENUM and g_value_get_flags() for G_TYPE_FLAGS, rather
3908         than accessing them as gint/guint.  The G_VALUE_HOLDS() check
3909         probably won't like this.
3910
3911 2002-05-24  Dave Camp  <dave@ximian.com>
3912
3913         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): 
3914         Built an iter directly instead of using
3915         gtk_tree_model_sort_elt_get_path(), since that returns a path for
3916         the child model.
3917
3918 2002-05-24  Dave Camp  <dave@ximian.com>
3919
3920         * gtk/gtktreemodelsort.c: Use indices[i] >= level->array->len
3921         rather than level->array->len > indices[i] in the bounds check.
3922
3923 2002-05-23  Tor Lillqvist  <tml@iki.fi>
3924
3925         * gtk-zip.sh.in: Use correct path to the loaders and immodules
3926         directories (GTK_BINARY_VERSION, not GTK_VERSION).
3927
3928 Wed May 22 16:12:38 2002  Owen Taylor  <otaylor@redhat.com>
3929
3930         * configure.in: Require autoconf-2.52 explicitely,
3931         since otherwise Debian will process it with 2.13 (ugh!).
3932
3933 Wed May 22 12:29:20 2002  Jonathan Blandford  <jrb@redhat.com>
3934
3935         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_init): remove
3936         GTK_RESIZE_QUEUE setting.
3937
3938 Tue May 21 16:46:15 2002  Owen Taylor  <otaylor@redhat.com>
3939  
3940         * gdk/x11/gdkdisplay-x11.c (gdk_internal_connection_watch): 
3941         Fix missing dereference. (HideToshi Tajima)
3942  
3943 Mon May 20 15:02:21 2002  Owen Taylor  <otaylor@redhat.com>
3944
3945         * gdk/x11/gdkdisplay-x11.c: Patch from HideToshi Tajima
3946         to handle Xlib internal connections. (#76681)
3947
3948 Mon May 20 12:59:14 2002  Owen Taylor  <otaylor@redhat.com>
3949
3950         * gtk/gtktooltips.c: Set the private LEAVE_PENDING
3951         flag to fix problem where with menu items with
3952         submenus, tooltips were getting stuck. (Effectively
3953         disables tooltips for menu items with submenus.)
3954         (Bug #75961, Soeren Sandmann)
3955
3956         * tests/testgtk.c: Set a tooltip on a menu item
3957         with a submenu.
3958
3959 Mon May 20 11:47:59 2002  Owen Taylor  <otaylor@redhat.com>
3960  
3961         * gtk/gtkplug.c: Undo an accidental revert of
3962         fixes of May 16. (Caught by Padraig O'Briain)
3963  
3964         * gtk/gtkctree.c (cell_size_request): Fix bug where
3965         size request for text cells was being overwritten.
3966         (#82264, Graham Swallow.)
3967
3968 2002-05-18  Matthias Clasen  <maclas@gmx.de>
3969
3970         * configure.in: Check for endianness. Sorry about REBUILD_PNGS...
3971
3972 Fri May 17 16:05:34 2002  Owen Taylor  <otaylor@redhat.com>
3973
3974         * configure.in (REBUILD_PNGS): Re-add REBUILD_PNGS
3975         definition that got accidentally removed.
3976
3977 Fri May 17 14:40:24 2002  Owen Taylor  <otaylor@redhat.com>
3978
3979         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
3980         Protect against reentrancy problems by emitting 
3981         ::preedit_changed at the end, fixing input context
3982         leak. (Yao Zhang)
3983
3984         * modules/input/gtkimcontextxim.c (status_window_free): 
3985         Patch from Federico Mena Quintero to fix problem where
3986         references to IMContextXIM were kept around after
3987         module was unloaded. (#77008)
3988
3989         * gtk/gtkdnd.c (gtk_drag_dest_set): NULL initialize
3990         proxy window.
3991
3992 Fri May 17 13:56:23 2002  Owen Taylor  <otaylor@redhat.com>
3993  
3994         * gtk/gtkplug.c (gtk_plug_filter_func): Fix a missing
3995         unref in the local/passive case. (#82067, Michael
3996         Meeks)
3997  
3998         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Fix
3999         reference leak on the plug window.
4000  
4001         * tests/testsocket.c (add_child): Fix memory leak.
4002  
4003         * gtk/gtkdnd.c (gtk_drag_dest_site_destroy): Unref
4004         the proxy window.
4005  
4006 Thu May 16 19:49:24 2002  Owen Taylor  <otaylor@redhat.com>
4007  
4008         * gtk/gtkwindow.c (gtk_window_configure_event): Only 
4009         optimize out the full configure handling if we got
4010         a gratuitous configure event(configure_request_count == 0)
4011         and the size didn't change.
4012  
4013         * gtk/gtkwindow.c (gtk_window_move_resize): Use 
4014         g_message(), not g_print() for debug spew.b
4015  
4016         * gtk/gtkwindow.c (gtk_window_real_set_focus): Ref
4017         the old and new focus widgets for the scope of
4018         the function.
4019  
4020         * gtk/gtksocket.c gtkplug.c: Remove various #if 0'd
4021         bits of old code.
4022  
4023  Thu May 16 18:47:29 2002  Owen Taylor  <otaylor@redhat.com>
4024  
4025         * gtk/gtkwindow.c (gtk_window_show): Disable the
4026         focus-some-widget code for GtkPlug descendants.
4027  
4028         * gtk/gtkplug.c (gtk_plug_focus_event): Eat 
4029         focus-in/out events since they can be generated
4030         by keyboard grabs, but are spurious for an embeddded
4031         widget. (#79196, Padraig O'Briain)
4032  
4033         * gtk/gtksocket.c (gtk_socket_size_request): Only
4034         pay attention to the minimum size hints, and changes
4035         to that ... ignore the default size.
4036  
4037         * gtk/gtksocket.c (gtk_socket_send_configure_event):
4038         Pass in root-window relative coordinates as per
4039         the ICCCM.
4040  
4041         * gtk/gtksocket.c (gtk_socket_size_allocate): Send
4042         as many synthetic configures as necessary to make
4043         up for ConfigureRequest events we got. (#78799,
4044         Dave Camp.)
4045
4046 Thu May 16 23:59:56 2002  Kristian Rietveld  <kris@gtk.org>
4047
4048         Merged from gtk-2-0.
4049
4050         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed): set the prev
4051         of the next node correctly, so we don't corrupt the list and cause
4052         bad things. (fixes #71374)
4053  
4054 Thu May 16 17:29:08 2002  Jonathan Blandford  <jrb@redhat.com>
4055
4056         * gtk/gtkrbtree.c (_gtk_rbtree_remove): include missing #ifdef G_ENABLE_DEBUG
4057
4058 Thu May 16 15:44:15 2002  Owen Taylor  <otaylor@redhat.com>
4059
4060         * demos/gtk-demo/editable_cells.c (cell_edited): Fix
4061         typo in earlier patch.
4062
4063 Tue May  7 15:50:51 2002  Owen Taylor  <otaylor@redhat.com>
4064
4065         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
4066         Don't filter control-shift+[non-hex]. 
4067         (#80252, reported by Nalin Dahyabhai)
4068
4069 Thu May 16 14:51:14 2002  Owen Taylor  <otaylor@redhat.com>
4070
4071         Fixes for #78258
4072
4073         * gtk/gtkrbtree.c demos/gtk-demo/editable-cells.c:
4074         Fix some 64-bit warning problems. (Patch from Matthias
4075         Clasen.)
4076         
4077         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew_helper): Surround
4078         a bunch of debug code with G_ENABLE_DEBUG.
4079
4080         * configure.in demos/gtk-demo/main.c: Replace
4081         #ifndef G_OS_WIN32 with proper #ifdef HAVE_FLOCKFILE.
4082
4083 Thu May 16 12:56:38 2002  Owen Taylor  <otaylor@redhat.com>
4084
4085         * gtk/gtkrange.c (gtk_range_calc_layout): Fix a missed
4086         check for division by zero. (#77820, Gareth Pearce)
4087
4088 Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
4089
4090         * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
4091         gdk_event_put() copies the event and setting name,
4092         so we don't have to strdup() it here. (Fix from
4093         Michael Meeks, #81953)
4094
4095 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
4096
4097         * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
4098         up, and some of the widget area is empty, don't fill it in with
4099         GTK_SHADOW_IN rectangles that make it looks strange.  Fixes
4100         #72695.
4101
4102 Wed May 15 18:15:45 2002  Owen Taylor  <otaylor@redhat.com>
4103
4104         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Don't
4105         call gdk_pointer_grab() to change the cursor if we've
4106         already ungrabbed on button release / escape.
4107         (#80420, Dave Camp)
4108
4109 Wed May 15 17:12:50 2002  Owen Taylor  <otaylor@redhat.com>
4110
4111         * gtk/gtktooltips.c: Special case menu items to
4112         pop down on motion. (#75961)
4113
4114         * tests/testgtk.c (create_item_factory): Add tooltips
4115         to the File menu.
4116
4117         * gtk/gtkentry.c (update_im_cursor_location): Fix 
4118         cursor locations passed to the IM context.
4119         (#80027, Yao Zhang)
4120
4121 Wed May 15 16:52:57 2002  Owen Taylor  <otaylor@redhat.com>
4122
4123         * gtk/gtkfontsel.c: Update from contents of size entry
4124         on focus out. (#76493, Lauris Kaplinski)
4125
4126         * gtk/gtkclipboard.c (selection_get_cb): Fix backwads
4127         info/time arguments. (#80226)
4128
4129 Wed May 15 11:13:19 2002  Owen Taylor  <otaylor@redhat.com>
4130
4131         * configure.in gtk/stock-icons/Makefile.am: If not
4132         building libpng, don't rebuild gtkstockpixbufs.h
4133         (#81819, Bill Janssen)
4134
4135 2002-05-15  jacob berkman  <jacob@ximian.com>
4136
4137         * demos/gtk-demo/Makefile.am (demos.h): just run perl on the
4138         geninclude script manually
4139
4140 Tue May 14 19:53:15 2002  Owen Taylor  <otaylor@redhat.com>
4141
4142         * demos/gtk-demo/geninclude.pl.in configure.in:
4143         Subsitute in @PERL@ instead of hardcoded 
4144         /usr/bin/perl. (#78355, Gareth Pearce. Fix based
4145         on patch from Matthias Clasen)
4146
4147         * gdk/Makefile.am: Patch from Daniel Elstner to use glib-mkenums
4148         instead of makeenums.pl.
4149
4150         * gdk/{x11,linux-fb,win32}/Makefile.am: Hack to
4151         get gdkenumtypes.h built first.
4152
4153 Tue May 14 18:41:58 2002  Owen Taylor  <otaylor@redhat.com>
4154
4155         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
4156         Remove the result file on error. (#79929, David
4157         Highley)
4158
4159         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu):
4160         If the menu is currently active, cancel it before
4161         setting the new menu. (#79162, Jonathan Blandford.)
4162
4163 Tue May 14 18:13:10 2002  Owen Taylor  <otaylor@redhat.com>
4164
4165         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix
4166         prepending at the start of the list. (#56349,
4167         Thomas Leonard.)
4168
4169         * gtk/gtksignal.h (gtk_signal_disconnect_by_func): Add
4170         explicit casts to GSignalMatchType for C++ compatibility.
4171         (#77601)
4172
4173 Tue May 14 18:02:37 2002  Owen Taylor  <otaylor@redhat.com>
4174
4175         * gtk/gtkwindow.c (gtk_window_realize): Fix
4176         frame_right/frame_top screwup. (Detlef Reichl,
4177         #78111)
4178
4179         * gtk/Makefile.am (install-data-local): Use
4180         $(INSTALL_DATA) not $(INSTALL) when installing
4181         theme files. (#77094, Ben Liblit)
4182
4183 Tue May 14 17:30:57 2002  Owen Taylor  <otaylor@redhat.com>
4184
4185         * gtk/gtkctree.c gtk/gtkclist.c: Fix format of 
4186         selection data to be 8 rather than GTK_TYPE_POINTER.
4187         (#79751, James Henstridge)
4188         
4189         * gtk/gtkmenu.c (gtk_menu_key_press): Call 
4190         gtk_accelerator_valid() with cleaned up
4191         accel_key/accel_mods, not the raw values from
4192         the event. (#80513, Havoc Pennington.)
4193
4194         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Remove
4195         some dead code that set the tearoff window not 
4196         resizable and removed decorations. (#80235)
4197
4198 Tue May 14 16:44:09 2002  Owen Taylor  <otaylor@redhat.com>
4199
4200         * gtk/gtklabel.c (gtk_label_ensure_layout): Set
4201         the width of the layout to the actual wrap width 
4202         (our requisition) not the width we set when calculating
4203         the width. This results in the lines being justified
4204         within the correct area. (#79157, Anders Carlsson)
4205
4206         * gtk/gtkaccelgroup.c gtk/gtkmarshelers.list: Corrected 
4207         registered parameter types of "accel_activate" and 
4208         "accel_changed" signals. (Patch from Murray Cumming, #78798)
4209         
4210         * gtk/gtkrc.c (gtk_rc_make_default_dir): Switch
4211         binary-version and type to correspond to the 
4212         current ordering in _gtk_get_module_path.
4213         (#78746, Sergey Kuzminov) 
4214
4215         * gtk/gtkrc.c (gtk_rc_get_module_dir): Add docs
4216         pointing to the GTK_PATH documentation.
4217
4218         * gtk/Makefile.am (uninstall-local): Delete 
4219         key themes as well. (#81286, Kristian Rietveld.)
4220
4221 Tue May 14 15:40:49 2002  Owen Taylor  <otaylor@redhat.com>
4222
4223         * gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
4224         Add a sanity g_return_if_fail() check for the depths
4225         for the window and pixmap. (#79191, Shivaram Upadhyayula)
4226
4227 Tue May 14 15:09:33 2002  Owen Taylor  <otaylor@redhat.com>
4228
4229         * gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
4230         for XkbKeySymEntry to make up for OSF broken 
4231         XKB extension. (#77819, Gareth Pearce)
4232
4233         * gtk/gtklayout.c: Clamp the upper values in response
4234         to ::size-allocate if necessary. (#81290, Christophe Saout)
4235         
4236         * gtk/gtkcombo.c (gtk_combo_entry_focus_out): Handle
4237         combo being destroyed before idle fires.
4238         (#81396, Timo Sirainen)
4239
4240 Tue May 14 11:21:19 2002  Owen Taylor  <otaylor@redhat.com>
4241  
4242         * gdk/x11/gdkevents-x11.c (gdk_event_translate): 
4243         Discard configure events from SubstructureNotify.
4244         (#81760, Rich Burridge)
4245  
4246         * gtk/gtkfontsel.c (cmp_families): Use g_utf8_strcoll(), not
4247         strcmp().
4248  
4249         * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): Clamp 
4250         width of child allocation to >= 1. (Fixes warnings from
4251         #77639, Martin Schulze)
4252         
4253 2002-05-14  Matthias Clasen  <maclas@gmx.de>
4254
4255         * gtk/gtkcontainer.c (gtk_container_class_install_child_property): 
4256         (gtk_container_class_find_child_property): 
4257         (gtk_container_class_list_child_properties): 
4258         * gtk/gtkwidget.c (gtk_widget_class_find_style_property): 
4259         (gtk_widget_class_list_style_properties): Change parameter names
4260         to match the header file and the documentation.
4261
4262 2002-05-13 Vitaly Tishkov <tvv@sparc.spb.su>
4263
4264         * gtk/gtkfilesel.c
4265         * gtk/gtkplug.c 
4266         * gtk/gtkwidget.c
4267         * gtk/gtkwindow.c
4268         a few typos in docs were fixed
4269
4270 2002-05-10  Daniel Elstner  <daniel.elstner@gmx.net>
4271
4272         [ merge from stable ]
4273
4274         * gtk/gtktreemodel.c: #define INITIALIZE_TREE_ITER(),
4275         which zeroes out all GtkTreeIter fields. (#81380)
4276         (gtk_tree_model_get_iter): Use it.
4277         (gtk_tree_model_iter_children): ditto
4278         (gtk_tree_model_iter_nth_child): ditto
4279         (gtk_tree_model_iter_parent): ditto
4280
4281 2002-05-08  Michael Natterer  <mitch@gimp.org>
4282
4283         * configure.in: fixed yesterdays fix for cross compiling: simply
4284         check the variable "cross_compiling" which gets set by autoconf.
4285
4286 Wed May  8 16:14:49 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
4287
4288         * gtk/gtktreeview.c 
4289         (gtk_tree_view_init): set_redraw_on_allocate (FALSE);
4290         (gtk_tree_view_size_allocate): invalidate last column if width
4291         changed.
4292         (gtk_tree_view_bin_expose): skip over cells that aren't in
4293         event->region
4294
4295 Tue May  7 18:36:03 2002  Owen Taylor  <otaylor@redhat.com>
4296  
4297         * gdk/x11/xsettings-client.c (xsettings_client_process_event): 
4298         Check for selection_atom, not property name atom.
4299  
4300 2002-05-07  Michael Natterer  <mitch@gimp.org>
4301
4302         * configure.in: added a new conditional CROSS_COMPILING which
4303         indicates ($build != $host). If it is set, look for
4304         gdk-pixbuf-csource in PATH. Error out if it was not found.
4305
4306         * gtk/stock-icons/Makefile.am: use the gdk-pixbuf-csource found at
4307         configure time if CROSS_COMPILING is set, use the one which was
4308         just built otherwise.
4309
4310 2002-05-07  Anders Carlsson  <andersca@gnu.org>
4311
4312         * gdk/x11/xsettings-client.c (xsettings_client_process_event): 
4313         Only process manager events with the correct atom.
4314
4315 2002-05-07  Matthias Clasen  <maclas@gmx.de>
4316
4317         Fix for #79248:
4318         
4319         * gdk/x11/gdkwindow-x11.c (gdk_window_new): 
4320         (gdk_window_set_events): Always select for property notify for
4321         maintaining window state.
4322
4323         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Only propagate
4324         property notifys if they were selected by gdk_window_set_events.
4325
4326 Mon May  6 23:48:14 2002  Kristian Rietveld  <kris@gtk.org>
4327
4328         * gtk/gtktreeview.c (gtk_tree_view_map_expanded_rows_helper): call
4329         func on current node before the child nodes.
4330
4331 Mon May  6 23:17:42 2002  Kristian Rietveld  <kris@gtk.org>
4332
4333         * gtk/gtktreeview.c (gtk_tree_view_motion_draw_column_motion_arrow):
4334         unset user_data before destroying the window. (fixes #80065).
4335
4336 Mon May  6 12:17:14 2002  Owen Taylor  <otaylor@redhat.com>
4337
4338         * configure.in: Fix versioning to avoid changing the
4339         soname!
4340
4341         [ merge from stable ]
4342
4343         * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
4344
4345         * m4macros/gtk-2.0.m4: save CFLAGS/LIBS properly when
4346         compiling "what went wrong" test case. (#79329)
4347
4348         * m4macros/gtk-2.0.m4: Remove reference to editing
4349         pkg-config script. (From Jim Gettys)
4350
4351 02-05-05  Matthias Clasen  <maclas@gmx.de>
4352
4353         * configure.in: Bump version to 2.1.0, binary, interface age 0.
4354
4355         * gtk/gtkcontainer.c (gtk_container_class_list_child_properties): 
4356         (gtk_container_class_find_child_property): Document.
4357
4358         * gtk/gtkwidget.c: 
4359         * gtk/gtkwidget.h: New functions gtk_widget_class_list_child_properties
4360         and gtk_widget_class_find_child_property.  (#80652)
4361         
4362 Sun May  5 15:56:50 2002  Owen Taylor  <otaylor@redhat.com>
4363
4364         * configure.in: Fix problem with == in test argument.
4365         (#80732, Hidetoshi Tajima)
4366
4367 Sun May  5 16:42:32 2002  Kristian Rietveld  <kris@gtk.org>
4368
4369         The "big treeview focus patch". Fixes several issues and adds some
4370         goodies. Related bugs: #73676, #73734, #78660.
4371
4372         * gtk/gtktreeview.h: add gtk_tree_view_set_cursor_on_cell
4373
4374         * gtk/gtktreeview.c (gtk_tree_view_button_press): focus on a cell
4375         if applicable,
4376         (gtk_tree_view_bin_expose): set_cell_data before iterating columns,
4377         add support for row-spanning focus rectangles,
4378         (gtk_tree_view_has_special_cell): new function,
4379         (gtk_tree_view_move_cursor_left_right): add support for multiple
4380         focusable cells in one column,
4381         (gtk_tree_view_set_cursor): call _set_cursor_on_cell now,
4382         (gtk_tree_view_set_cursor_on_cell): copy of _set_cursor, extended
4383         with focus_cell parameter,
4384         (gtk_tree_view_search_iter): removed unused column variable,
4385         (gtk_tree_view_start_editing): add neighbor size code to allow
4386         for multiple editable cells in one column.
4387
4388         * gtk/gtktreeviewcolumn.c (_GtkTreeViewColumnCellInfo): add
4389         in_editing_mode field,
4390         (gtk_tree_view_column_get_edited_cell): new function, removed
4391         _get_editable_cell,
4392         (_gtk_tree_view_column_get_cell_at_pos): new function,
4393         (gtk_tree_view_column_pack_end): s/g_new/g_new0/ ...,
4394         (gtk_tree_view_column_cell_process_action): loads of changes to get
4395         it right and to allow for multiple special cells, etc,
4396         (gtk_tree_view_column_cell_first): new function,
4397         (gtk_tree_view_column_cell_last): ditto,
4398         (gtk_tree_view_column_cell_next): ditto,
4399         (gtk_tree_view_column_cell_prev): ditto,
4400         (gtk_tree_view_column_cell_focus): add left and right parameters,       
4401         allow for multiple special cells,
4402         (gtk_tree_view_column_cell_is_visible): add assertion,
4403         (gtk_tree_view_column_focus_cell): new function,
4404         (gtk_tree_view_column_stop_editing): unset in_editing_mode flag,
4405         (_gtk_tree_view_column_get_neighbor_sizes): iterate through cells
4406         correctly
4407
4408         * gtk/gtktreeviewcolumn.h: add gtk_tree_view_column_focus_cell
4409
4410         * gtk/gtktreeprivate.h: s/_get_editable_cell/_get_edited_cell/, add
4411         _gtk_tree_view_column_get_cell_at_pos, add new parameters to
4412         _gtk_tree_view_column_cell_focus.
4413
4414         * tests/testtreeedit.c: add some cells in order to test new code.
4415
4416 Sun May  5 02:22:59 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
4417
4418         * tests/test-images/*: image files for testing pixbuf loaders
4419         * tests/pixbuf-*.c: the old test-loaders.c split into four 
4420         different programs
4421         * tests/Makefile.am: add new pixbuf tests
4422
4423 2002-05-03 Erwann Chenede - <erwann.chenede@sun.com>
4424
4425         * gdk/x11/gdkvisual-x11.c:
4426         * gdk/x11/gdkwindow-x11.c:
4427         * gdk/x11/gdkdisplay-x11.[hc] (gdk_open_display) :
4428         Rationalized the screen initialization process,
4429         changed the GdkDisplayX11 screen list to an array.
4430         
4431         * gdk/x11/gdkscreen-x11.[hc] (_gdk_x11_screen_new) :
4432         Moved the xinerama init functions to gdkdisplay-x11.c to
4433         this file, create a single function to fully initialize
4434         a GdkScreen. #79981
4435         
4436 2002-05-03 Erwann Chenede - <erwann.chenede@sun.com>
4437   
4438         * gtk/gtkplug.[hc] (gtk_plug_construct_for_display):
4439         changed the order of the arguments. #80278
4440
4441 2002-05-02  Matthias Clasen  <maclas@gmx.de>
4442
4443         * gdk/gdkscreen.c (gdk_screen_get_monitor_at_window): Fix doc comment.
4444
4445         * gdk/x11/gdkdisplay-x11.c (gdk_open_display): 
4446         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_default): 
4447         * gdk/x11/gdkfont-x11.c (gdk_fontset_load_for_display): 
4448         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
4449         * gdk/x11/gdkfont-x11.c (gdk_font_load_for_display): 
4450         * gdk/x11/gdkscreen-x11.c (gdk_x11_screen_get_xscreen):
4451         * gdk/x11/gdkscreen-x11.c (gdk_x11_screen_get_screen_number): 
4452         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_xdisplay): 
4453         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): Document.
4454
4455         * gtk/gtknotebook.c (gtk_notebook_set_show_border): Typo fix.
4456
4457         * gtk/gtkwidget.c (gtk_widget_class_init): Correct the
4458         composite_child blurb.   
4459
4460         * gtk/gtknotebook.c (gtk_notebook_set_show_border): Clarify docs.  (#73093)
4461
4462 2002-05-02 Erwann Chenede - <erwann.chenede@sun.com>
4463         
4464         * gdk/gdkscreen.c (gdk_screen_get_monitor_at_point):
4465         * gdk/gdkscreen.h :
4466         * gdk/x11/gdkscreen-x11.c :
4467         make gdk_screen_get_monitor_at_point cross platform instead
4468         of backend dependant. #80480
4469         * tests/testxinerama.c (main):
4470         changed the warning message.
4471         
4472 2002-05-02 Erwann Chenede - <erwann.chenede@sun.com>
4473
4474         * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_get_root_window):
4475         removed unneeded ref. #79977
4476         * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_use_virtual_screen):
4477         * gdk/x11/gdkdisplay-x11.c (check_*_xinerama):
4478         removed gdk_screen_use_virtual_screen function and 
4479         use_virtual_screen member variable from GdkScreenX11. #79957
4480         
4481 2002-05-02  Matthias Clasen  <maclas@gmx.de>
4482
4483         * gtk/gtktable.c (gtk_table_class_init): 
4484         * gtk/gtknotebook.c (gtk_notebook_class_init): 
4485         * gtk/gtkbox.c (gtk_box_class_init): Add nicks and blurbs for
4486         child properties.  (#57143)
4487
4488 2002-05-01 Erwann Chenede - <erwann.chenede@sun.com>
4489         
4490         * gdk/gdkpixmap.[hc] (gdk_pixmap_get_screen):
4491         * x11/gdkpixmap-x11.c:
4492         removed that function as gdk_drawable_get_screen
4493         does the job. #79964
4494
4495 2002-05-01 Erwann Chenede - <erwann.chenede@sun.com>
4496
4497         * gdk/gdkscreen.[hc] (gdk_screen_x11_get_monitor_at_window):
4498         remove virtualization and made it cross platform. #79961
4499         * gdk/x11/gdkdisplay-x11.c (check_solaris_xinerama):
4500         fixed initialization bugs.
4501         * gdk/x11/gdkscreen-x11.[hc] (gdk_screen_get_monitor_geometry):
4502         * tests/testxinerama.c:
4503         * gtk/gtkwindow.c (gtk_window_compute_configure_request):
4504         * gtk/gtkmenu.c (gtk_menu_position):
4505         take a GdkRectangle argument instead of returning 
4506         a GdkRectangle * and propagated the changes. #79974
4507         
4508 2002-05-01  Anders Carlsson  <andersca@gnu.org>
4509
4510         * gdk/x11/gdkevents-x11.c 
4511         (gdk_x11_screen_supports_net_wm_hint): Use the same
4512         key when setting and getting NetWmSupportedAtoms.
4513
4514 Tue Apr 30 18:42:25 2002  Owen Taylor  <otaylor@redhat.com>
4515
4516         * gtk/gtkwindow.c (gtk_window_set_screen): Make it
4517         work, even if the window is already realized or
4518         mapped.
4519
4520         * tests/testgtk.c: Erwann's multihead changes, slightly
4521         dumbed down. (Removed logic for pulling windows onto
4522         the current screen, people can click twice on the demo
4523         to destroy and create again.)
4524
4525         * tests/prop-editor.c: Set the screen on the property
4526         editor if the edited object is a widget.
4527
4528 2002-05-01  Matthias Clasen  <maclas@gmx.de>
4529
4530         * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
4531         Improve a warning.
4532
4533         * gdk/linux-fb/gdkinput.c (gdk_device_get_axis): Remove a broken
4534         and redundant doc comment.
4535
4536 2002-04-30  Matthias Clasen  <maclas@gmx.de>
4537
4538         * gtk/gtkprogress.c (gtk_progress_class_init): 
4539         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): 
4540         * gtk/gtktexttag.c (gtk_text_tag_class_init): 
4541         * gtk/gtknotebook.c (gtk_notebook_class_init): Better blurbs,
4542         incorporating stuff from the doc templates.
4543
4544         * gtk/gtkplug.c (gtk_plug_construct): Fix docs.
4545
4546 Tue Apr 30 15:59:53 2002  Owen Taylor  <otaylor@redhat.com>
4547
4548         * tests/testmultiscreen.c: Multi-screen test case
4549         form multihead branch with a few cleanups. (Get rid
4550         of use of g_object_connect())
4551
4552         * tests/testmultidisplay.c: Multi-display test case
4553         from multihead branch with a few improvements.
4554         (Allow the other display name to be passed on
4555         the command line, use a GtkDialog to get more attractive
4556         spacing.)
4557
4558 Tue Apr 30 14:23:43 2002  Owen Taylor  <otaylor@redhat.com>
4559
4560         * gdk/x11/gdkdisplay-x11.c (gdk_open_display): fix
4561         problem with finalizing non-initialized fully display
4562         when failing to open display.
4563
4564         * tests/testxinerama.c: Xinerama test case from
4565         multihead branch, with some cleanups. (Start even
4566         if there is only one monitor, for one.)
4567
4568 Tue Apr 30 14:15:14 2002  Owen Taylor  <otaylor@redhat.com>
4569
4570         * gtk/gtkfilesel.c gtk/gtkselection.c: Doc fixes.
4571
4572 2002-04-30  Erwann Chenede - <erwann.chenede@sun.com>
4573
4574         * gdk/x11/gdkimage-x11.c : rationalized multihead code
4575         in _gdk_x11_copy_to_image. fixes #80256 and ungrab problems.
4576
4577 2002-04-30  Havoc Pennington  <hp@redhat.com>
4578
4579         * gtk/gtktextlayout.c (gtk_text_layout_real_free_line_data): use
4580         gtk_text_layout_invalidate_cache instead of cut-and-paste
4581         (gtk_text_layout_real_invalidate): always invalidate cache, even
4582         if the line has no stored line data. #78573
4583
4584         * gtk/gtktextview.c (gtk_text_view_get_iter_location): add call to
4585         gtk_text_view_ensure_layout, #77388
4586         (gtk_text_view_get_iter_at_location): ditto
4587         (gtk_text_view_get_line_yrange): ditto
4588         (gtk_text_view_get_line_at_y): ditto
4589
4590 2002-04-30  Havoc Pennington  <hp@redhat.com>
4591
4592         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): assign
4593         something to "prev" so that removing tag info succeeds.
4594         Part of #77301
4595
4596         * gtk/gtktextbtree.c (_gtk_text_btree_unref): reorder so that it
4597         unrefs the tag table first, so that the btree is in a consistent
4598         state when we're removing tags from it. 
4599
4600 Tue Apr 30 12:28:27 2002  Owen Taylor  <otaylor@redhat.com>
4601
4602         * gdk/gdkdisplay.c gdk/gdkpango.c gdk/gdkpixmap.c
4603         gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c
4604         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkx.h: Doc fixes.
4605
4606 Tue Apr 30 11:37:09 2002  Owen Taylor  <otaylor@redhat.com>
4607
4608         * modules/input/gtkimcontextxim.c: Make multihead-safe;
4609         use a different IM context per display.
4610
4611         * configure.in acconfig.h: Add Xinerama checks from
4612         multihead branch, changing HAS_XINERAMA => HAVE_XINERAMA.
4613
4614         * gdk/x11/gdkdisplay-x11.c: HAS_XINERAMA => HAVE_XINERAMA.
4615
4616 2002-04-29  Alex Larsson  <alexl@redhat.com>
4617
4618         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
4619         Use tmp also if foreground is set.
4620
4621 Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
4622
4623         Integrate Erwann Chenede's multihead changes for the gtk/ directory.
4624
4625         * gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
4626         make internals multihead aware.
4627
4628         * gtk/gtkcolorsel.[ch]: Add
4629         gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
4630         make up for non-multihead safety of
4631         gtk_color_selection_set_change_palette_hook()
4632
4633         * gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
4634         gtk_{invisible,menu,window}_set_screen(); add "screen" properties
4635         for GtkWindow and GtkMenu.
4636
4637         * gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
4638         gtk_plug_new_for_display(). Multihead fixes.
4639
4640         * gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
4641         make internals multihead aware.
4642
4643         * gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
4644         rid of now-useless gtk_settings_constructor().
4645
4646         * gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
4647         check/radio button indicators bitmap handling to be multihead
4648         safe.
4649
4650         * gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
4651         gtk_widget_get_display(), gtk_widget_get_clipboard(),
4652         gtk_widget_get_root_window().
4653         
4654         * gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
4655         gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
4656         gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
4657         gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
4658         gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
4659         gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
4660         gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
4661         gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
4662         misc mechanical multihead-safety fixes.
4663         
4664         * gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
4665         the dropper, look up the color palette only at realization time,
4666         other multihead fixes.
4667
4668         * gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when 
4669         unrealizing.
4670
4671         * gtk/gtkentry.c: Only claim ownership of the primary selection 
4672         when realized, misc multihead fixes.
4673
4674         * gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
4675         fix gtk_font_selection_get_font() for multihead.
4676
4677         * gtk/gtkgc.c: make the depth => drawable hash per-screen.
4678
4679         * gtk/gtkinvisible.c: Add a constructor that realizes the
4680         widget, so we get a realized widget with g_object_new() as
4681         well gtk_invisible_new() as before.
4682
4683         * gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
4684         variables.
4685
4686         * gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
4687         are used on the wrong screen.
4688
4689         * gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
4690         read properties and connect to settings when the screen is changed,
4691         rather than on init/finalize.
4692
4693         * gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
4694         default icon pixmaps/mask are only shared between windows on the 
4695         same screen. Misc multihead fixes.
4696
4697 Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
4698
4699         * gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
4700         Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
4701
4702 2002-04-29  Alex Larsson  <alexl@redhat.com>
4703
4704         * gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
4705         Fix silly bug, noticed by Sven Neumann.
4706
4707 Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
4708
4709         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
4710         so that you can set a new sort func.
4711
4712 2002-04-27  Anders Carlsson  <andersca@gnu.org>
4713
4714         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display): 
4715         Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
4716         we pass in a GdkDisplay * in the macro.
4717
4718 2002-04-26  Anders Carlsson  <andersca@gnu.org>
4719
4720         * gdk/gdkdisplay.c: (gdk_set_default_display):
4721         Call _gdk_windowing_set_default_display.
4722         
4723         * gdk/gdkinternals.h:
4724         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
4725         New function that sets gdk_display to the default display.
4726         Fixes #79965
4727         
4728 Fri Apr 26 21:58:16 2002  Kristian Rietveld  <kris@gtk.org>
4729
4730         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
4731         deleted node was "below" this path, then do not unref all nodes
4732         between the deleted parent and the node this rowref is pointing too
4733         (see added comment in gtk_tree_row_ref_deleted_callback),
4734         (fixes #77977)
4735
4736 2002-04-26  Sven Neumann  <sven@gimp.org>
4737  
4738         * tests/testtreecolumns.c
4739         * tests/testtreeview.c: quit the main loop when the window is
4740         destroyed. Removed compiler warnings about wrong format in printf().
4741  
4742 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
4743
4744         This commit fixes binary compatibility, which I broke with my
4745         recent cell renderer commits :/.
4746
4747         * gtk/gtkcellrenderer.h: move cell_background out of _GtkCellRenderer
4748
4749         * gtk/gtkcellrenderer.c: create GtkCellRendererInfo, with the
4750         cell_background field and use this as object data. This way we keep
4751         the field private and dont break ABI.
4752
4753         * gtk/gtkcellrendererpixbuf.h: remove stock_id, stock_size and
4754         stock_detail from _GtkCellRendererPixbuf
4755
4756         * gtk/gtkcellrendererpixbuf.c: create a GtkCellRendererPixbufInfo
4757         with above mentioned fields. And update everything.
4758
4759 Fri Apr 26 21:42:02 2002  Kristian Rietveld  <kris@gtk.org>
4760
4761         * gdk/x11/gdkdrawable-x11.h: include X11/Xlib.h, fixes the build
4762
4763 Fri Apr 26 10:34:15 2002  Owen Taylor  <otaylor@redhat.com>
4764
4765         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): Add
4766         missing gdkscreen/display-x11.h files.
4767
4768 Thu Apr 25 16:51:40 2002  Owen Taylor  <otaylor@redhat.com>
4769
4770         Start of integration of Erwann Chenede's multihead work
4771         from the gtk-multihead branch.
4772
4773         * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]
4774         gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch]
4775         New classes representing a set of screens with attached
4776         input devices and a single contiguous area, respectively.
4777
4778         * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c:
4779         gdk/x11/gdkprivate-x11.h: Make the initialization interface
4780         simple _gdk_windowing_init() and do the rest in
4781         gdk_open_display() calls.
4782
4783         * gdk/gdk.[ch]: Add gdk_parse_args() which can be used
4784         to do the display-independent part of initialization
4785         instead of gdk_init_[check].
4786
4787         * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h
4788         gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h:
4789         Add multihead variants (_for_display(), for_screen()) of functions
4790         getting information specific to a particular screen screen or
4791         display.
4792
4793         * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions
4794         like gdk_rgb_get_colormap() that used to get/list global
4795         objects.
4796
4797         * gdk/x11/gdkx.h: Add functions for converting GdkScreen
4798         and GdkDisplay into the X equivalents.
4799
4800         * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords() 
4801         not in the headers and unused.
4802
4803         * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}:
4804         Remove gxid support ... has not been tested for a long time...
4805         "xfree" support is more portable to non XFree86.
4806
4807         * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be
4808         used to turn off functions that are inherently non-multihead
4809         safe.
4810
4811         * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions
4812         are used in non-multihead-safe ways.
4813
4814         * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK
4815         multihead safe.
4816
4817 Thu Apr 25 23:49:01 2002  Kristian Rietveld  <kris@gtk.org>
4818
4819         Fixes #74206.
4820
4821         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_count_special_cells
4822
4823         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_has_editable_cell),
4824         (_gtk_tree_view_column_get_editable_cell): remove a space which made
4825         the code look ugly
4826         (_gtk_tree_view_column_count_special_cells): new function,
4827         (gtk_tree_view_column_cell_process_action): if there's only one
4828         activatable cell, the whole column will activate that renderer.
4829
4830 Thu Apr 25 23:36:55 2002  Kristian Rietveld  <kris@gtk.org>
4831
4832         * gtk/gtktreeview.c (gtk_tree_view_search_iter): make the search
4833         dialog not scroll horizontally (prolly fixes #74806).
4834
4835 2002-04-25  Matthias Clasen  <maclas@gmx.de>
4836
4837         * gtk/gtkrange.c (gtk_range_calc_layout): Avoid a possible
4838         division by zero.  (#77820)
4839
4840 Thu Apr 25 20:24:37 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
4841
4842         * gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): use the child's
4843         requisition.height, not allocation.height, as width of submenu
4844         indicator. (#75948)
4845
4846 Thu Apr 25 00:26:34 2002  Kristian Rietveld  <kris@gtk.org>
4847
4848         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
4849         resort if we're already in 'unsorted' state, and update the docs
4850
4851 2002-04-24  Matthias Clasen  <maclas@gmx.de>
4852
4853         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc
4854         comment markers on freeform comments.
4855
4856 Wed Apr 24 17:34:16 2002  Kristian Rietveld  <kris@gtk.org>
4857
4858         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): temporarily set
4859         ->priv->edited_column to NULL. Pleas read the comment in this
4860         function for an explanation (fixes #79632).
4861
4862 2002-04-23  Matthias Clasen  <maclas@gmx.de>
4863
4864         * gtk/gtktextview.c (gtk_text_view_buffer_to_window_coords): 
4865         (gtk_text_view_window_to_buffer_coords): Improve docs.  (#62359)
4866
4867 Tue Apr 23 18:35:34 2002  Kristian Rietveld  <kris@gtk.org>
4868
4869         This commit adds a cell_background property for cell renderers. With
4870         this property you can make your TreeView look incredibly ugly.
4871
4872         * gtk/gtkcellrenderer.c: add cell_background, cell_background_gdk and
4873         cell_background_set properties,
4874         (set_cell_bg_color): new function,
4875         (gtk_cell_renderer_get_property), (gtk_cell_renderer_set_property):
4876         support for new properties,
4877         (gtk_cell_renderer_render): render a background when set.
4878
4879         * gtk/gtkcellrenderer.h: add cell_background_set and cell_background
4880         fields.
4881
4882         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4883         when rendering, pass in just the background_area of the cell and not
4884         the background_area of the entire column.
4885
4886 2002-04-22  Anders Carlsson  <andersca@gnu.org>
4887
4888         * gtk/gtkentry.c (gtk_entry_drag_data_get): Use 
4889         gtk_entry_get_public_chars. 
4890         Fixes #79532 (Reported by Ovidiu Gheorghioiu).
4891
4892 Mon Apr 22 19:24:29 2002  Kristian Rietveld  <kris@gtk.org>
4893
4894         This commit adds stock icon functionality to GtkCellRendererPixbuf
4895         which is totally cool.
4896
4897         * gtk/gtkcellrendererpixbuf.h: add some fields
4898
4899         * gtk/gtkcellrendererpixbuf.c: add finalize method, add some
4900         properties, add some stock icon rendering code.
4901
4902         * demos/gtk-demo/stock_browser.c: modified to use the stock
4903         icon stuff in the cellrendererpixbuf instead of its own stock icon
4904         rendering code.
4905
4906 2002-04-21  Alexander Larsson  <alla@lysator.liu.se>
4907
4908         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
4909         Save x and y in window_private.
4910
4911         * gtk/gtkplug.c (_gtk_plug_add_to_socket):
4912         Move plug window outside the visible area to avoid flashing until
4913         the first size_allocate.
4914
4915 2002-04-21  Matthias Clasen  <maclas@gmx.de>
4916
4917         * gtk/gtktextiter.c (gtk_text_iter_forward_search): More verbose
4918         description of match_start and match_end return values.  (#57929)
4919
4920         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
4921         * gtk/gtktreeview.c (_gtk_tree_view_column_autosize): Remove doc
4922         comment markers on freeform comments.
4923
4924         * gtk/gtktreemodelsort.c
4925         (gtk_tree_model_sort_convert_path_to_child_path): Doc fixes. (#68404)
4926
4927 Sat Apr 20 21:15:11 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
4928
4929         * gtk/gtkmenuitem.c: add "selected_shadow_type" style property
4930
4931 Sat Apr 20 12:07:14 2002  Owen Taylor  <otaylor@redhat.com>
4932
4933         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Accept
4934         NULL for color to mean "unmodify"
4935
4936         * gtk/gtkwidget.c (gtk_widget_modify_font): Accept NULL for
4937         font_desc to mean "unmodify".
4938
4939 Sat Apr 20 16:49:26 2002  Kristian Rietveld  <kris@gtk.org>
4940
4941         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_new): replace GDK_IS_WINDOW
4942         with GDK_IS_DRAWABLE in the assert, only check GDK_WINDOW_DESTROYED
4943         if window is a GdkWindow,
4944         (gdk_bitmap_create_from_data): ditto,
4945         (gdk_pixmap_create_from_data): ditto
4946
4947 Fri Apr 19 23:38:16 2002  Kristian Rietveld  <kris@gtk.org>
4948
4949         Fixes #50310.
4950
4951         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_autosize
4952
4953         * gtk/gtktreeview.c: privately export _gtk_tree_view_column_autosize,
4954         and add a small note about that function,
4955         (gtk_tree_view_button_press): check for double click and
4956         "not having an autosize" column before autosizing the column,
4957         
4958         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_min_width):
4959         call _gtk_tree_view_column_autosize to update autosized column width
4960         (gtk_tree_view_column_set_max_width): ditto
4961
4962 2002-04-20  Matthias Clasen  <maclas@gmx.de>
4963
4964         * TODO, TODO.xml, README.nanox, docs/Changes-1.2.txt,
4965         docs/Changes-2.0.txt, docs/gtk-config.txt, docs/debugging.txt,
4966         gdk/TODO: Remove some files whose content is either obsolete or
4967         has been moved elsewhere.
4968
4969         * Makefile.am, gtk+.spec.in, docs/Makefile.am: Remove references
4970         to these files.
4971         
4972 Fri Apr 19 21:31:04 2002  Kristian Rietveld  <kris@gtk.org>
4973
4974         * gtk/gtktreeview.c (gtk_tree_view_row_changed): cancel editing
4975         if tree_view->priv->edited_column != NULL (fixes #76066)
4976
4977 Fri Apr 19 21:06:39 2002  Kristian Rietveld  <kris@gtk.org>
4978
4979         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): subtract
4980         TREE_VIEW_HEADER_HEIGHT from allocation->height to get the real
4981         size for the tree (fixes #72729),
4982         (gtk_tree_view_real_start_editing): correct cell_area->y for
4983         scrolling due to gtk_tree_view_real_set_cursor (fixes #75687)
4984
4985 Fri Apr 19 16:30:09 2002  Kristian Rietveld  <kris@gtk.org>
4986
4987         * gtk/gtktreeprivate.h, gtk/gtktreeview.c: rename
4988         last_single_clicked{,_2} to last_button_press{,_2}, as the latter
4989         is a more sane name.
4990
4991         * gtk/gtktreeview.c (gtk_tree_view_button_press): use ->priv->anchor
4992         instead of ->priv->cursor, check for the anchor at another place, as
4993         you can go in edit mode without having an anchor.
4994
4995 2002-04-18  Matthias Clasen  <maclas@gmx.de>
4996
4997         * gtk/gtkitemfactory.c:
4998         * gtk/gtkiconfactory.c:
4999         * gtk/gtkwidget.c:
5000         * gtk/gtkstyle.c:
5001         * gtk/gtkrc.c:
5002         * gtk/gtktreeviewcolumn.c:
5003         * gtk/gtkdialog.c:
5004         * gtk/gtktreemodel.c: s/<!>/<!-- -->/g throughout the
5005         documentation to bring the produced Docbook closer to XML.
5006
5007 2002-04-18  Tor Lillqvist  <tml@iki.fi>
5008
5009         * gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib)
5010         * gdk/Makefile.am (uninstall-libtool-import-lib): Fix typo,
5011         thanks to David Sterba for noticing.
5012
5013         * gtk/gtkmain.h
5014         * gtk/gtkmain.c (gtk_init_abi_check, gtk_init_check_abi_check): In
5015         GTK+ 2.0 the GtkWindow struct actually is the same size in gcc on
5016         Win32 whether compiled with -fnative-struct or not. Unfortunately
5017         this wan't noticed until now. So, from now on, check some other
5018         struct, too, for which the use of -fnative-struct still
5019         matters. GtkBox is one such.
5020
5021 Thu Apr 18 00:23:31 2002  Kristian Rietveld  <kris@gtk.org>
5022
5023         * gtk/gtktreemodelsort.c
5024         (gtk_tree_model_sort_convert_path_to_child_path): so this function
5025         was completely broken. Fix it and improve readability.
5026
5027 2002-04-17  Anders Carlsson  <andersca@gnu.org>
5028
5029         * tests/testtreeedit.c (button_press_event): Add a small
5030         test case.
5031
5032 Wed Apr 17 00:21:36 2002  Kristian Rietveld  <kris@gtk.org>
5033
5034         * gtk/gtktreestore.c (gtk_tree_store_insert_before): fix docs
5035
5036 Tue Apr 16 17:28:21 2002  Kristian Rietveld  <kris@gtk.org>
5037
5038         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): check
5039         ->priv->cursor and ->priv->anchor rowrefs before removing
5040         node->children from the rbtree. Also check the
5041         ->priv->last_single_clicked and ->priv->last_single_clicked_2 rowrefs
5042         (I think I really need to rename those two someday).
5043
5044 Tue Apr 16 07:53:49 2002  Tim Janik  <timj@gtk.org>
5045
5046         * gtk/gtkmenu.c (gtk_menu_key_press): don't install/change accelerators
5047         from locked accel groups.
5048
5049         * gtk/gtkwidget.c (_gtk_widget_get_accel_path): export whether the
5050         accel path is from a locked accel group.
5051
5052 Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
5053
5054         * gtk/gtkcontainer.c (gtk_container_focus): include internal
5055         children when doing focus.
5056         (gtk_container_get_all_children): new static function to include
5057         internal children when making a list of them.
5058
5059 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
5060
5061         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
5062         _gtk_tree_view_column_get_neighbor_sizes
5063
5064         * gtk/gtktreeviewcolumn.c (struct _GtkTreeViewColumnCellInfo): add
5065         real_width field,
5066         (_gtk_tree_view_column_get_editable_cell): implement,
5067         (gtk_tree_view_column_cell_process_action): fill info->real_width
5068         (_gtk_tree_view_column_get_neighbor_sizes): implement
5069
5070         * gtk/gtktreeview.c (gtk_tree_view_button_press): make the "editable
5071         widget" show up with the same size as the actual cell, so it doesnt
5072         cover the complete column if there are any other cells in that column.
5073
5074 2002-04-14  Abigail Brady  <morwen@evilmagic.org>
5075
5076         * gtk/gtkfilesel.c: Fix typo in message.
5077
5078 2002-04-13  Havoc Pennington  <hp@pobox.com>
5079
5080         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): create
5081         the target pixbuf AFTER filling in width/height, so that 
5082         passing in -1 for width/height will work.
5083         
5084 Sat Apr 13 22:49:45 2002  Kristian Rietveld  <kris@gtk.org>
5085
5086         Fixes #75510
5087
5088         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): make this
5089         function work correctly and more sane
5090
5091         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): remove
5092         node->children from rbtree before emitting GtkTreeSelection::changed
5093
5094 Sat Apr 13 17:15:12 2002  Kristian Rietveld  <kris@gtk.org>
5095
5096         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_init): dont set
5097         the mode to GTK_CELL_RENDERER_MODE_EDITABLE by default,
5098         (gtk_cell_renderer_text_class_init): for some reason our default for
5099         editable was TRUE, of course this is FALSE.
5100         (gtk_cell_renderer_text_set_property): update mode when editable
5101         has been changed.
5102
5103 2002-04-12  jacob berkman  <jacob@ximian.com>
5104
5105         * gdk/x11/xsettings-client.c (fetch_card8): fix cut-n-paste bug
5106         which breaks big-endian machines (fixes #73585)
5107
5108 2002-04-12  Havoc Pennington  <hp@redhat.com>
5109
5110         * gtk/gtknotebook.c (gtk_notebook_real_remove): relocate the
5111         remove_weak_pointer to just before we free the page, to be sure 
5112         it doesn't get re-added. #75282
5113
5114 Fri Apr 12 18:32:46 2002  Kristian Rietveld  <kris@gtk.org>
5115
5116         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): add
5117         clamp_node argument
5118         (toplevel): update usages of gtk_tree_view_real_set_cursor,
5119         (gtk_tree_view_focus_to_cursor): don't let
5120         gtk_tree_view_real_set_cursor clamp the node, so you won't get
5121         unexpected scrolling
5122
5123 2002-04-11  Michael Meeks  <michael@ximian.com>
5124
5125         * gtk/gtklabel.c
5126         (gtk_label_parse_uline, gtk_label_set_text),
5127         (gtk_label_set_text_with_mnemonic): add freeze / thaws
5128         to stop deluge of 'notify' signals.
5129
5130 Sat Apr  6 06:57:00 2002  Owen Taylor  <otaylor@redhat.com>
5131
5132         * gtk/gtkmenushell.[ch] gtk/gtkmenuitem.c: Export
5133         private _gtk_menu_shell_activate() to encapsulate
5134         cut-and-paste code.
5135
5136         * gtk/gtkmenubar.c: Select the first item on the menu bar
5137         for F10 rather than acting as if the user pressed <Alt>F
5138         to select the file manager.
5139
5140 Tue Apr  9 19:01:28 2002  Owen Taylor  <otaylor@redhat.com>
5141
5142         Fix problems with HandleBox and focusing - #78232
5143
5144         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Handle
5145         GtkHandleBox / GnomeDock style window heirarchy / widget
5146         heirarchy disconnects. :-(. 
5147
5148         * gtk/gtkcontainer.c: Handle failures from
5149         gtk_widget_translate_coordinates (Focusing is not right, but at
5150         least it doesn't go into infinite loops.)
5151
5152 Tue Apr  9 18:34:58 2002  Owen Taylor  <otaylor@redhat.com>
5153
5154         * gtk/gtkcontainer.c (_gtk_container_queue_resize): Always
5155         set the ALLOC_NEEDED and REQUEST_NEEDED flags up the hierarchy,
5156         even if we aren't currently in a resize container... we need
5157         this to properly handle size changes to widgets that are
5158         being moved from one heirarchy to another. (#78226)
5159
5160 Tue Apr  9 21:41:24 2002  Kristian Rietveld  <kris@gtk.org>
5161
5162         Fixes #78110
5163
5164         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
5165         add override_browse_mode argument and implement,
5166         (gtk_tree_selection_unselect_path): always unselect the path,
5167         (toplevel): update uses of _gtk_tree_selection_internal_select_node
5168
5169         * gtk/gtktreeview.c: update uses of
5170         _gtk_tree_selection_internal_select_node
5171
5172         * gtk/gtktreeprivate.h (_gtk_tree_selection_internal_select_node):
5173         update prototype
5174
5175 Tue Apr  9 21:39:44 2002  Kristian Rietveld  <kris@gtk.org>
5176
5177         Fixes #77862
5178
5179         * gtk/gtktreeprivate.h: add _gtk_tree_view_column_has_editable_cell
5180
5181         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_has_editable_cell):
5182         new function
5183
5184         * gtk/gtktreeview.c (gtk_tree_view_button_press): send cell event
5185         on first click when cell isn't editable
5186
5187 Tue Apr  9 21:37:31 2002  Kristian Rietveld  <kris@gtk.org>
5188
5189         * gtk/gtktreedatalist.c (_gtk_tree_data_list_check_type): add some
5190         types which were missing and useful to use (fixes #77870)
5191
5192 2002-04-09  Anders Carlsson  <andersca@gnu.org>
5193
5194         * gtk/gtkfilesel.c (open_new_dir): Initialize error to NULL.
5195
5196 2002-04-08  Manish Singh  <yosh@gimp.org>
5197
5198         * tests/testgtk.c: really revert testgtk.c
5199
5200 Mon Apr  8 20:28:54 2002  Kristian Rietveld  <kris@gtk.org>
5201
5202         * gtk/gtktreeselection.c (gtk_tree_selection_select_path),
5203         (gtk_tree_selection_unselect_path),
5204         (gtk_tree_selection_path_is_selected): check the return value of
5205         _gtk_tree_view_find_node and return if it's TRUE. This makes those
5206         functions work somewhat saner on non-expanded trees.
5207
5208 Fri Apr  5 18:28:56 2002  Kristian Rietveld  <kris@gtk.org>
5209
5210         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): free
5211         anchor row reference after unselecting the selection (fixes #76272)
5212
5213 Fri Apr  5 18:27:48 2002  Kristian Rietveld  <kris@gtk.org>
5214
5215         * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): only return
5216         when we don't have to open all children (fixes #75736)
5217
5218 Fri Apr  5 18:24:24 2002  Kristian Rietveld  <kris@gtk.org>
5219
5220         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear): unref
5221         cellrenderer after clearing the attributes of the renderer (fixes
5222         #75592)
5223
5224 Fri Apr  5 05:55:14 2002  Jonathan Blandford  <jrb@gnome.org>
5225
5226         * gtk/gtktreeview.c (gtk_tree_view_grab_focus): implement.
5227           (gtk_tree_view_move_cursor_up_down): check for focus
5228           (gtk_tree_view_move_cursor_page_up_down): ditto
5229           (gtk_tree_view_move_cursor_left_right): ditto
5230           (gtk_tree_view_move_cursor_start_end): ditto
5231           (gtk_tree_view_real_select_all): ditto
5232           (gtk_tree_view_real_unselect_all): ditto
5233           (gtk_tree_view_real_select_cursor_row): ditto 
5234           (gtk_tree_view_real_toggle_cursor_row): ditto
5235           (gtk_tree_view_real_expand_collapse_cursor_row): ditto
5236           (gtk_tree_view_real_select_cursor_parent): ditto
5237           (gtk_tree_view_real_start_interactive_search): ditto
5238
5239         * gtk/gtktreeviewcolumn.c: grab focus
5240
5241 2002-04-05  Alex Larsson  <alexl@redhat.com>
5242
5243         * gdk/linux-fb/gdkkeyboard-fb.c (write_string):
5244         Fix undefined variable typo.
5245         Patch from Simon Floery <simon.floery@gmx.at>
5246
5247 Fri Apr  5 01:06:15 2002  Tim Janik  <timj@gtk.org>
5248
5249         * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
5250         upon NULL return from gdk_utf8_to_string_target().
5251
5252         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
5253         return value comment to mention NULL returns upon EMFILE.
5254
5255 Thu Apr  4 22:35:42 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
5256
5257         * tests/testgtk.c (menu_items): revert accidentally commited
5258         change to testgtk.c
5259
5260 Thu Apr  4 22:28:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
5261
5262         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem with menu
5263         titles being clipped (#75948)
5264         
5265 2002-04-04  Tor Lillqvist  <tml@iki.fi>
5266
5267         * gdk/gdkrgb.c: Fix some bugs, and introduce a minor feature.
5268
5269         (gdk_rgb_convert_4_pack): New function, for 16-color (4 bits per
5270         pixel) static visuals (fixes #858).
5271
5272         (gdk_rgb_convert_gray4_pack, gdk_rgb_convert_gray4_d_pack): Fix
5273         same bugs in both functions: Odd start coordinate (partial byte)
5274         was not handled correctly. Also a partial final byte was not
5275         handled correctly.
5276
5277         (gdk_rgb_do_colormaps): Use G_N_ELEMENTS.
5278         (gdk_rgb_create_info): For pseudocolor visuals, use the 2x2x2
5279         colorcube only for depths 3 and 4. For static color, use it for
5280         depths 3..7 like before. (Depth 5..7 pseudocolor probably never
5281         occurs on X11. It doesn't normally occur on Win32 either, but
5282         there is experimental code in gdkvisual-win32.c to let the user
5283         restrict the size of palette used.)
5284         (gdk_rgb_init): Set gdk_rgb_verbose if the GDK_DEBUG_GDKRGB flag
5285         is set.
5286         (gdk_rgb_select_conv): Use gdk_rgb_convert_8 also for depths 5, 6
5287         and 7 (see above). Use gdk_rgb_convert_4_pack for 4 bits per pixel
5288         static color.
5289
5290 Tue Apr  2 11:10:13 2002  Jonathan Blandford  <jrb@redhat.com>
5291
5292         * gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
5293         sort_func correctly, 77030
5294
5295 Tue Apr  2 13:44:27 2002  Tim Janik  <timj@gtk.org>
5296
5297         * configure.in: update version to 2.0.2, binary age 2, interface
5298         age 2.
5299
5300         * NEWS: updates for 2.0.2.
5301
5302 Mon Apr  1 22:20:24 2002  Kristian Rietveld  <kris@gtk.org>
5303
5304         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): add
5305         check for y > tree_view->priv->height (fixes #76974)
5306
5307 Mon Apr  1 22:19:39 2002  Kristian Rietveld  <kris@gtk.org>
5308
5309         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): get
5310         the stamp changes right this time
5311
5312 Mon Apr  1 22:13:24 2002  Kristian Rietveld  <kris@gtk.org>
5313
5314         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): only
5315         disconnect the ref callbacks when model == proxy (Thanks go to
5316         Manuel Clos Crespo for the remote debugging)
5317
5318 Sat Mar 30 15:19:24 2002  Kristian Rietveld  <kris@gtk.org>
5319
5320         * gtk/gtktreemodelsort.c: revert the latest stamp increment changes,
5321         as it broke stuff for trees
5322
5323 Fri Mar 29 18:15:12 2002  Owen Taylor  <otaylor@redhat.com>
5324
5325         * ===== Released 2.0.1 ======
5326
5327 Fri Mar 29 18:09:18 2002  Owen Taylor  <otaylor@redhat.com>
5328
5329         * gtk/gtkaccelgroup.c (gtk_accel_group_query): Call 
5330         gdk_keyval_to_lower() on the key passed in, since we
5331         lowercase all other key vals passed in, so querying
5332         keyvals will otherwise fail if the caller used
5333         an uppercase accelerators (#76899, Vitaly Tishkov)
5334
5335 Fri Mar 29 17:41:21 2002  Owen Taylor  <otaylor@redhat.com>
5336
5337         * gtk/gtkmain.c (load_modules): Fix screwup in handling
5338         of module path that was resulting in freed memory being
5339         accessed when both GTK_MODULES and a theme were set.
5340         (#76902, Johan Dahlin)
5341
5342 Fri Mar 29 17:57:36 2002  Owen Taylor  <otaylor@redhat.com>
5343
5344         * gtk/gtkiconfactory.c (get_default_icons): Fix wrong
5345         stock id's for ADD/REMOVE. (#76915, Vitaly Tishkov)
5346
5347 2002-03-29  Hans Breuer  <hans@breuer.org>
5348
5349         * gtk/gtkmain.h : fix typo in gtk_init_check macro, which
5350         caused crashes if argc != 0
5351
5352         * gtk/stock-icons/makefile.msc : added new icons
5353
5354 Fri Mar 29 20:17:35 2002  Kristian Rietveld  <kris@gtk.org>
5355
5356         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
5357         remove call to gtk_tree_model_sort_increment_stamp
5358         (gtk_tree_model_sort_sort_level): always increment the stamp
5359
5360 Fri Mar 29 00:19:41 2002  Owen Taylor  <otaylor@redhat.com>
5361
5362         * NEWS: Updates
5363
5364         * configure.in: Version 2.0.1, binary, interface age 1.
5365
5366         * configure.in (GDK_PIXBUF_VERSION): Up required versions
5367         of dependencies.
5368
5369         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
5370         Add stock_add/remove_16.
5371
5372 Thu Mar 28 18:38:30 2002  Owen Taylor  <otaylor@redhat.com>
5373
5374         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): 
5375         Don't show the window unless the widget is mapped.
5376         (#76742, Dennis Björklund, Soeren Sandmann)
5377
5378 2002-03-29  Hans Breuer  <hans@breuer.org>
5379
5380         Fixed dashed line issues (#74441) to an IMO reasonable extend. 
5381         That is: use PS_USERSTYLE on WinNT (the next GDI limit appears
5382         to be with lines width > 50); Render horizontal and vertical
5383         dashed lines on Win9x 'by hand'. Dotted selection rectangles 
5384         and Dia look nice ...
5385
5386         * gdk/win32/gdkprivate-win32.h : add pen_dashes pointer and
5387         num_pen_dashes to _GdkGCWin32
5388         * gdk/win32/gdkgc-win32.c : initialize pen_dashes and remove
5389         the guesses from dashes to windoze line styles.
5390         (predraw_set_forground) : always ExtCreatePen (PS_SOLID) on
5391         Win9x, which does not support PS_USERSTYLE.
5392         * gdk/win32/gdkdrawable-win32.c : new functions render_line_
5393         <horizontal|vertical>. Use them if not running on NT in
5394         gdk_win32_draw_<rectangle|segments|lines> ()
5395
5396         * gdk/win32/gdkkeys-win32.c (gdk_keyval_name) : return NULL
5397         for keyval == 0 to avoid to have zeros in all menu entries 
5398         without accelerator.
5399
5400 2002-03-29  Jakub Steiner <jimmac@ximian.com>
5401
5402         * gtk/stock-icons/stock_add_24.png:
5403         * gtk/stock-icons/stock_add_16.png:
5404         * gtk/stock-icons/stock_remove_24.png:
5405         * gtk/stock-icons/stock_remove_16.png: use a simple '+' and '-',
5406           works better. the old box was too clumsy
5407
5408 Thu Mar 28 21:11:04 2002  Tim Janik  <timj@gtk.org>
5409
5410         * gtk/gtkfilesel.c (open_new_dir): when encountering non-UTF-8 file
5411         names, alert the user with g_message() instead of g_warning() and
5412         put out the actual conversion error.
5413
5414 2002-03-28  Dave Camp  <dave@ximian.com>
5415
5416         * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
5417         the handler if the widget isn't realized.
5418
5419 2002-03-28  Jakub Steiner <jimmac@ximian.com>
5420
5421         * gtk/stock-icons/stock_font*:
5422         * gtk/stock-icons/stock_align*:
5423         * gtk/stock-icons/stock_text*: better solution to the dark theme
5424           problem. Also looks more pretty IMHO
5425
5426 2002-03-27  Matthias Clasen  <maclas@gmx.de>
5427
5428         * configure.in: Try to find libpng via pkg-config first,
5429         since libpng-1.2.2 will come with a .pc file.
5430
5431 Wed Mar 27 11:10:39 2002  Owen Taylor  <otaylor@redhat.com>
5432
5433         * gtk/gtknotebook.c (gtk_notebook_real_remove): Set
5434         page->last_focus_child to NULL as well as removing the
5435         weak reference, to deal with reentrancy in set_focus_child().
5436         (#76634, Dennis Björklund)
5437
5438 2002-03-27  Murray Cumming  <murrayc@usa.net>
5439  
5440         * gtk/gtktreeview.c: Corrected registered return type of
5441         "move-cursor" signal. Had to add a marshaller to 
5442         gtk/gtkmarshalers.list.
5443         
5444 Tue Mar 26 14:46:50 2002  Owen Taylor  <otaylor@redhat.com>
5445
5446         * gtk/gtkmenu.c (gtk_menu_popup): Shuffle the ordering around
5447         some more (position before realizing) fixing problems with 
5448         arrows popping up at the wrong time (#73386), hopefully not
5449         introducing other problems. (Reported by Ettore Perrazoli, others)
5450
5451 2002-03-26  Dave Camp  <dave@ximian.com>
5452
5453         * gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
5454         after calling gtk_tree_view_row_activated() rather than before.
5455
5456 2002-03-25  Sven Neumann  <sven@gimp.org>
5457
5458         * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
5459         font_description before assigning a new one.
5460         (gtk_rc_parse_stock): always unref the created icon_set. #76289
5461         
5462 2002-03-25  Mark McLoughlin  <mark@skynet.ie>
5463
5464         * gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
5465         kill code duplicated in gtk_binding_entry_add_signall.
5466
5467 Sun Mar 24 10:32:38 2002  Jonathan Blandford  <jrb@redhat.com>
5468
5469         * gtk/gtktreemodel.c (gtk_tree_path_copy): Make path arg const, #75653
5470
5471         * gtk/gtkfontsel.c (gtk_font_selection_show_available_styles): fix
5472         a warning
5473
5474         * gtk/gtktreeview.c (gtk_tree_view_button_press): remove the grab
5475         when we emit row_activated so that listeners of this signal can
5476         grab the mouse, #75629
5477
5478 2002-03-23  Havoc Pennington  <hp@pobox.com>
5479
5480         * gtk/gtktextlayout.c (gtk_text_layout_real_invalidate):
5481         invalidate the line containing start, even if the [start,end)
5482         range is empty (just invalidate [start,end], essentially).
5483         Partially fixes #72374
5484
5485 2002-03-23  Havoc Pennington  <hp@pobox.com>
5486
5487         * gtk/gtktextview.c (gtk_text_view_do_popup): end any selection in
5488         progress, patch from db@zigo.dhs.org, #74620
5489
5490 2002-03-23  Havoc Pennington  <hp@pobox.com>
5491
5492         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): extend
5493         selection for pageup/pagedown and ctrl+pageup/pagedown if 
5494         shift is held. more of #53934
5495
5496 2002-03-23  Havoc Pennington  <hp@pobox.com>
5497
5498         * gtk/gtktextview.c (gtk_text_view_destroy_layout): disconnect 
5499         layout handlers earlier in the function, to avoid possible
5500         reentrancy screwups
5501         (gtk_text_view_invalidate): Don't install idle handlers if 
5502         layout == NULL, otherwise we get problems during finalization 
5503         since clearing the buffer invalidates and puts the idle handlers
5504         back after we destroy the layout. #74660
5505         (gtk_text_view_ensure_layout): Install the validation handlers
5506         right after creating the layout.
5507
5508         * gtk/gtktexttagtable.c (foreach_unref): call
5509         _gtk_text_buffer_notify_will_remove_tag(), #75126
5510
5511 2002-03-22  Havoc Pennington  <hp@pobox.com>
5512
5513         * gdk/x11/gdkfont-x11.c (gdk_fontset_load): add more explanatory
5514         text to the error message about missing charsets, and use
5515         g_printerr() not g_warning() since this is typically not a
5516         programming error (we do not export any API to ask whether 
5517         a font set will have missing charsets so apps realistically can't 
5518         do anything other than try the gdk_fontset_load())
5519
5520         * gtk/gtktextview.c (gtk_text_view_key_press_event): return FALSE
5521         if the text view isn't editable and the user presses Return, 
5522         so default buttons and such can be activated, #74937
5523
5524         * gtk/gtktextbuffer.c (paste_from_buffer): don't insert 
5525         if the insertion point is not editable and the paste 
5526         is interactive, #74125
5527
5528         * gtk/gtkwindow.c (gtk_window_move_resize): enhance the #if 0
5529         debug spew
5530
5531         * gtk/gtktextbuffer.c (cut_or_copy): only remove the previous 
5532         cut/copied data right before replacing it, when we know we are
5533         going to replace it. Fixes #74049
5534
5535 2002-03-22  Richard Hult  <rhult@codefactory.se>
5536
5537         * gdk/gdkevents.c (gdk_event_get_root_coords): Fix typo, where x
5538         value was assigned to both x and y.
5539
5540 Fri Mar 22 11:29:11 2002  Owen Taylor  <otaylor@redhat.com>
5541
5542         Partial fix for problem where keypad keys acted
5543         as shift-arrows in an entry rather than arrows (#74327)
5544
5545         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Sort lookup
5546         results by number of modifiers in the entry. Fixes
5547         problem where if a key matched both modified and unmodified
5548         key bindings ... e.g., the distinguishing key binding
5549         was consumed, then it was random which was used. 
5550
5551         * gtk/gtkbindings.c (gtk_binding_entries_sort_patterns): 
5552         Catch the case where there are multiple entries from the
5553         same bindingset (with different modifiers), and use only
5554         the first entry, which, with the change in _gtk_key_hash_lookup()
5555         will be the preferred value.
5556
5557 Fri Mar 22 10:56:19 2002  Owen Taylor  <otaylor@redhat.com>
5558
5559         * gtk/gtkaccelmap.c (gtk_accel_map_save_fd): Fix memory
5560         leak. (#74400, Morten Welinder.)
5561
5562         * gtk/gtkaccelmap.c: Properly handle short returns from
5563         write() calls. (Handling EINTR isn't enough... that only
5564         handles the case where you were interrupted before you
5565         wrote a single byte.)
5566         
5567         * gdk/linux-fb/gdkmouse-fb.c gdk/linux-fb/gdkkeyboard-fb.c:
5568         Robustify against short returns from write() calls.
5569
5570 Fri Mar 22 10:12:10 2002  Owen Taylor  <otaylor@redhat.com>
5571
5572         * gtk/gtktextview.c (gtk_text_view_paint): Change
5573         G_BREAKPOINT() to g_assert_not_reached ().
5574         (#75865, Ashok Venkiteswaran)
5575         
5576 2002-03-22  Tor Lillqvist  <tml@iki.fi>
5577
5578         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Don't clear
5579         all of the pen_style, just the PS_STYLE_MASK. Seems to fix #74441,
5580         but that is just the special case of one-pixel wide one-pixel
5581         on-off dotted lines. To fully implement generic X11 style dashed
5582         lines a major rewrite would be needed.
5583
5584 2002-03-21  Matthias Clasen  <maclas@gmx.de>
5585
5586         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
5587         fix. (Vitaly Tishkov, #75726)
5588
5589 Thu Mar 21 10:04:05 2002  Owen Taylor  <otaylor@redhat.com>
5590
5591         * gdk/gdkwindow.c (gdk_window_real_get_depth): Remove
5592         some left over debugging code with a G_BREAKPOINT()
5593         in it.
5594
5595 Wed Mar 20 19:33:31 2002  Owen Taylor  <otaylor@redhat.com>
5596
5597         * gtk/gtkcalendar.c (gtk_calendar_main_button): When
5598         changing months when the user clicks on a prev-month
5599         or next-month day, focus and select the new day.
5600         Ignore double clicks on prev-month, next-month days.
5601         (Based on suggestions from Andras Salamon, #74173)
5602
5603         * gtk/gtkcalendar.c: Implement the focused/unfocused
5604         selected color change.
5605
5606 2002-03-20  Alex Larsson  <alexl@redhat.com>
5607
5608         Patches from Carlo E. Prelz <fluido@fluido.as>
5609         Now gtkfb at least compiles and mostly works. The keyboard
5610         stuff needs more loving.
5611         
5612         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_get_for_keyval,
5613         xlate_get_for_keycode, raw_get_for_keyval, raw_get_for_keycode):
5614         At least set the out parameters for these calls.
5615
5616         * gdk/linux-fb/gdkmain-fb.c:
5617         (gdk_pointer_grab_info_libgtk_only, gdk_keyboard_grab_info_libgtk_only):
5618         Implement new functions.
5619         
5620 Wed Mar 20 19:00:03 2002  Owen Taylor  <otaylor@redhat.com>
5621
5622         * gtk/gtkentry.c (gtk_entry_set_text): Short-circuit
5623         the text to the exact same thing, so we don't 
5624         unexpectedly change the selection or cursor position.
5625         (#74290, John Ellis.)
5626
5627 Thu Mar 21 00:05:14 2002  Kristian Rietveld  <kris@gtk.org>
5628
5629         * gtk/gtktreeview.c (gtk_tree_view_get_background_area),
5630         (gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
5631
5632 Wed Mar 20 17:11:51 2002  Owen Taylor  <otaylor@redhat.com>
5633
5634         * gtk/gtkrc.c: Patch from Richard Hestilow to fix
5635         gtk-font-name changes for widgets that get the actual
5636         default style. (#73709)
5637
5638 Wed Mar 20 22:59:23 2002  Kristian Rietveld  <kris@gtk.org>
5639
5640         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_set_fixed_height()
5641
5642         * gtk/gtktreeprivate.h: add fixed_height_check field
5643
5644         * gtk/gtktreeview.c (gtk_tree_view_init): initialize
5645         scroll_sync_timer and fixed_height_check
5646         (do_validate_rows): add fixed_height_check. If all validated rows
5647         in the first cycle have the same height, then we set that height for
5648         the entire tree. This is some sort of 'fake' optimization, but helps
5649         a lot for the common case. We keep validating the entire tree in
5650         the background though.
5651         (gtk_tree_view_set_model): reset fixed_height_check
5652
5653 Wed Mar 20 16:36:08 2002  Owen Taylor  <otaylor@redhat.com>
5654
5655         * gtk/*.c: Patch from Erwann Chenede, #73900 fixing
5656         a lot of warnings with Forte CC, mostly implicit
5657         casts between void * and function pointers.
5658         
5659         * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
5660         state field is not a GdkModifierType. (Also #73900)
5661
5662 Wed Mar 20 12:35:22 2002  Owen Taylor  <otaylor@redhat.com>
5663
5664         * gtk/gtkwidget.c (gtk_widget_grab_default): Remove
5665         leftover notification of has-default. (#75508, Jacob
5666         Berkman.)
5667
5668 Wed Mar 20 12:27:07 2002  Owen Taylor  <otaylor@redhat.com>
5669
5670         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow
5671         arrow keys as accelerators, as long as some modifier
5672         is pressed. (#75495)
5673
5674         * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Fix
5675         incorrect example in the docs.
5676
5677 Wed Mar 20 12:06:30 2002  Owen Taylor  <otaylor@redhat.com>
5678
5679         * gtk/gtkwidget.c (gtk_widget_set_child_visible):
5680         Fix segfault when widget->parent is NULL. 
5681         (#75615, Alexey A. Malyshev) 
5682
5683 Wed Mar 20 11:32:07 2002  Owen Taylor  <otaylor@redhat.com>
5684
5685         * gtk/gtkentry.c: Improve test to prevent infinite
5686         loop. (#74952, Thomas Leonard)
5687
5688         * gtk/gtkmenushell.c (gtk_real_menu_shell_cycle_focus):
5689         Fix warning when toplevel menu shell isn't a menu
5690         bar. (Thomas Leonard, #75602)
5691
5692 Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>
5693
5694         * configure.in: Use $PKG_CONFIG, not pkg-config.
5695         (LEE Sau Dan, #75572)
5696
5697 Wed Mar 20 10:55:56 2002  Owen Taylor  <otaylor@redhat.com>
5698
5699         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix assignment
5700         of time in scroll events. (Sven Neumann, #75574)
5701
5702 2002-03-20  Tor Lillqvist  <tml@iki.fi>
5703
5704         * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window): Use
5705         gdk_window_get_toplevel(), as it is the top-level windows that are
5706         registered for DND.
5707
5708         * gdk/win32/gdkwin32.h: Don't include gdkinternals.h.
5709
5710 2002-03-19  jacob berkman  <jacob@ximian.com>
5711
5712         * gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
5713         gtk_combo_func() returns NULL (bug #75464)
5714
5715 2002-03-18  jacob berkman  <jacob@ximian.com>
5716
5717         * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
5718         correct min/max values for the ratio property (fixes #75331)
5719
5720 Mon Mar 18 11:55:03 2002  Owen Taylor  <otaylor@redhat.com>
5721
5722         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave):
5723         Patch from Yao Zhang fixing reference count leak.
5724
5725         * gtk/gtkentry.c (gtk_entry_key_release): if (entry->editable),
5726         not if (!entry->editable).
5727
5728 Mon Mar 18 11:09:17 2002  Owen Taylor  <otaylor@redhat.com>
5729
5730         * gdk/x11/gdkwindow-x11.c (gdk_window_set_override_redirect): 
5731         Fix backwards conditional. (#75019, Dan Winship.)
5732
5733 Sun Mar 17 01:11:16 2002  Kristian Rietveld  <kris@gtk.org>
5734
5735         * gtk/gtktreeview.c (gtk_tree_view_size_request): use
5736         do_validate_rows instead of validate_rows_handler (fix by
5737         Mike Pieper, #74126)
5738
5739 Sat Mar 16 23:54:56 2002  Kristian Rietveld  <kris@gtk.org>
5740
5741         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_bit_gravity): just
5742         return when we have an input_only window (fix by Owen Taylor)
5743
5744         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add
5745         scroll_sync_timer
5746
5747         * gtk/gtktreeview.c (install_scroll_sync_handler): new function,
5748         (scroll_sync_handler): ditto,
5749         (gtk_tree_view_unrealize): take scroll_sync_timer into account
5750         (gtk_tree_view_row_deleted): install scroll_sync_timer instead of
5751         calling top_row_to_dy/dy_to_top_row directly
5752         -- this greatly speeds up clearing the model (#73199)
5753
5754         * gtk/gtktreemodelsort.c
5755         (gtk_tree_model_sort_convert_path_to_child_path): fix up this function,
5756         for some reason I really screwed it up (fixes #74663)
5757
5758 2002-03-16  Sven Neumann  <sven@gimp.org>
5759
5760         * configure.in (GDK_PIXBUF_DEP_CFLAGS) (GDK_PIXBUF_XLIB_DEP_CFLAGS) 
5761         (GDK_DEP_CFLAGS) (GTK_DEP_CFLAGS): include CFLAGS from gthread-2.0
5762         so that the libs work correctly in a threaded environment.
5763
5764 Fri Mar 15 12:51:42 2002  Jonathan Blandford  <jrb@redhat.com>
5765
5766         * gtk/gtktreeviewcolumn.c
5767         (gtk_tree_view_column_new_with_attributes): add example to docs,
5768         as people are seeming to have trouble with this function.
5769
5770 2002-03-15  Tor Lillqvist  <tml@iki.fi>
5771
5772         * configure.in: Set MATH_LIB to empty also on Win32.
5773
5774 Fri Mar 15 15:37:01 2002  Owen Taylor  <otaylor@redhat.com>
5775
5776         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
5777         Fix byte shift arithmetic for big-endian. (Tracked
5778         down with help from Tuomas Kuosmanen)
5779
5780 Fri Mar 15 11:28:41 2002  Jonathan Blandford  <jrb@redhat.com>
5781
5782         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
5783         make args const, 74159
5784         (gtk_tree_view_insert_column_with_attributes): ditto
5785
5786         * gtk/gtktreeviewcolumn.c
5787         (gtk_tree_view_column_cell_process_action): remov unused variables.
5788
5789 Fri Mar 15 13:31:51 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
5790
5791         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix test for "active
5792         submenu".
5793
5794 2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
5795
5796         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
5797         upper case variants if there is only a single keysym per keycode and
5798         the key symbol has upper and lower case variants (#74512)
5799
5800 Thu Mar 14 17:09:52 2002  Owen Taylor  <otaylor@redhat.com>
5801
5802         * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
5803         improbable reentrancy problem if a window is destroyed
5804         while updates are being processed on another window. (Noticed
5805         by Michael Meeks, #74708)
5806
5807 2002-03-14 Vitaly Tishkov <tvv@sparc.spb.su>
5808
5809         * gtk/gtktreemodelsort.c
5810         typo in docs for gtk_tree_model_sort_convert_iter_to_child_iter() fixed
5811
5812
5813 Thu Mar 14 11:17:18 2002  Owen Taylor  <otaylor@redhat.com>
5814
5815         * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
5816         removing keys from the key hash, reinsert the right list
5817         back into the hash. (Dave Camp, #74571)
5818
5819 Wed Mar 13 17:17:40 2002  Owen Taylor  <otaylor@redhat.com>
5820
5821         * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
5822         macro that was defined in terms of the now-gone GTK_CONNECTED
5823         flag. (Seth Burgess, #74028)
5824
5825 Wed Mar 13 17:11:10 2002  Owen Taylor  <otaylor@redhat.com>
5826
5827         * gtk/gtkaccelgroup.c (accel_group_weak_ref_detach): Unset 
5828         the acceleratable_groups qdata because qdata isn't removed
5829         on ->dispose but rather on ->finalize. (#74569, found
5830         by Matt Wilson.)
5831
5832 Tue Mar 12 23:14:23 2002  Jonathan Blandford  <jrb@redhat.com>
5833
5834         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
5835         cut-n-paste bug.
5836
5837 Sat Mar  9 18:23:25 2002  Richard Hestilow  <hestilow@ximian.com>
5838
5839         * gtk/gtkimage.c (gtk_image_set_from_filename): Allow NULL
5840         filenames.
5841         
5842 Tue Mar 12 10:50:09 2002  Owen Taylor  <otaylor@redhat.com>
5843
5844         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
5845         Fix incorrect return value, filter out returns of 0x7f for
5846         the delete key. (#74179, Kang Jeong-He)
5847
5848 Mon Mar 11 23:42:11 2002  Jonathan Blandford  <jrb@redhat.com>
5849
5850         * gtk/gtktreemodel.c (gtk_tree_model_foreach): fix totally broken
5851         foreach function.
5852
5853 2002-03-11  Matthias Clasen  <maclas@gmx.de>
5854
5855         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document
5856         gtk_{menu_item,widget}_set_accel_path() as the recommended API.  
5857         (#69244)
5858
5859 2002-03-11  James Henstridge  <james@daa.com.au>
5860
5861         * configure.in: set CCAS and CCASFLAGS to get automake 1.6
5862         compatibility without breaking things for people using 1.4.
5863
5864 Sun Mar 10 21:04:30 2002  Jonathan Blandford  <jrb@redhat.com>
5865
5866         * gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
5867         right behavior.
5868
5869 Mon Mar 11 01:25:14 2002  Kristian Rietveld  <kris@gtk.org>
5870
5871         * gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
5872         cursor path and not with the selected iter in the 'decide to edit'
5873         check
5874