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