]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Document that the clip mask of gc is ignored. (#101983, Sebastian Rittau)
[~andy/gtk] / ChangeLog.pre-2-4
1 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
2
3         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
4         of gc is ignored.  (#101983, Sebastian Rittau)
5
6 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
7
8         A trick for a faster treeview, step 1. Patch to short circuit
9         _build_tree(), inspired by Jonathan (#80868).
10
11         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
12         flags by default,
13         (gtk_tree_view_build_tree): don't even try to recurse when the
14         model says that it is a list, remove flag unsetter,
15         (gtk_tree_view_set_model): change flag setting logic.
16
17         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
18         propagate whether or not the child model has _IS_LIST set.
19
20         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
21         ditto.
22
23 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
24
25         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
26         since it broke logical keynav. 
27         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
28         direction in inverted scrollbars here instead.
29
30 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
31
32         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
33         "gravity" for RTL mode in a better way: Keep the distance from 
34         the upper end of the page to the upper bound constant. This also 
35         fixes problems with the initial position of the viewport in RTL 
36         mode.  (#129063)
37         
38 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
39
40         Combo box flipping support.
41
42         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
43         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
44         patch from Matthias Clasen),
45         (gtk_combo_box_popup): fix popup window alignment if there's a
46         cell view frame visible (#126518, patch from Semion Chichelnitsky).
47
48         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
49         (#128348, patch from Semion Chichelnitsky).
50
51 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
52
53         * examples/gtkdial/gtkdial.c:
54         * examples/menu/menu.c:
55         * examples/scribble-xinput/scribble-xinput.c:
56         * examples/progressbar/progressbar.c:
57         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
58         in examples. (#129074, Olexiy Avramchenko)
59         * examples/calendar/Makefile:
60         * examples/rangewidgets/Makefile:
61         * examples/menu/Makefile: Allow deprecated functions in
62         examples which use deprecated widgets.
63
64 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
65
66         * gdk/gdk.c (gdk_threads_set_lock_functions): 
67         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
68
69 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
70
71         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
72         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
73
74 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
75
76         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
77         unnecessarily reserve space for arrows in RTL mode.  (#129075,
78         Semion Chichelnitsky)
79
80 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
81
82         Changes to allow "no input" windows (#64613):
83         
84         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
85         field accept_focus.
86         
87         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
88         set it.
89
90         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
91         and gtk_window_get_focus() and gtk_window_set_focus().
92
93         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
94         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
95         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
96         Initialize the accept_focus field to TRUE.
97
98         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
99         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
100         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
101         Implementations for the various backends. The Win32 and linux-fb
102         implementations set the accept_focus field, but don't use it yet 
103         to actually implement noinput windows. The X implementation updates
104         the WM_HINTS to select the globally active input model (see the
105         ICCCM) if accept_focus is FALSE.
106
107         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
108         WM_TAKE_FOCUS message if accept_focus is FALSE.
109         
110 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
111
112         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
113         Added toolbar items for the filter separator and the filter item.
114         (toolbar_create): Add the filter widgets here.
115         (filter_create): Renamed from create_filter().  Don't store the
116         alignment in the impl structure, just return it.
117         (toolbar_show_filters): New function.
118         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
119         (gtk_file_chooser_default_remove_filter): Likewise.
120         (gtk_file_chooser_default_constructor): Don't create the filter
121         widget here.
122         (struct _GtkFileChooserDefault): Added a field for a current
123         folder label.
124         (gtk_file_chooser_default_constructor): Create the folder label.
125         (gtk_file_chooser_default_set_current_folder): Set the current
126         folder label.
127
128         * tests/testfilechooser.c (main): Dramatically improved the
129         usability of the extra widget through careful word choice.
130
131 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
132
133         * gdk/gdk.h: include gdkspawn.h.
134
135 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
136
137         * gdk/linux-fb/gdkspawn-fb.c,
138           gdk/win32/gdkspawn-win32.c,
139           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
140         s/gdk_spawn/gdk_spawn_on_screen/.
141
142 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
143
144         Utility functions for multi-screen applications which need
145         to ensure launched applications appear on a certain screen.
146         See bug #95897.
147         
148         * gdk/gdkspawn.h: header for multi-screen launching
149         support.
150         
151         * gdk/Makefile.am: install gdkspawn.h.
152         
153         * gdk/x11/Makefile.am:
154         * gdk/x11/gdkspawn-x11.c:
155         (gdk_spawn_make_environment_for_screen): private function
156         to create an environment vector with DISPLAY set appropriately
157         for the screen.
158         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
159         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
160         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
161         
162         * gdk/linux-fb/Makefile.am,
163           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
164         
165         * gdk/win32/Makefile.am,
166           gdk/win32/gdkspawn-win32.c: win32 impl.
167
168 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
169
170         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
171         rather than "Username's Home" (#125964).
172         (shortcuts_selection_changed_cb): New callback, check the
173         sensitivity of the Remove Bookmark button at the right time.
174         (shortcuts_row_activated_cb): It is not necessary to check the
175         sensitivity here.
176
177 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
178
179         Improve the GDK API for dealing with group leaders (#119375):
180         
181         * gdk/gdkwindow.h: 
182         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
183         get the group leader of a toplevel window as a GdkWindow.
184
185         * gdk/gdkdisplay.h: 
186         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
187         function to get the default group leader as a GdkWindow.
188
189         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
190         the GdkWindow of the default group leader.
191         
192         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
193         for the default group leader.
194
195 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
196
197         * gdk/gdkkeysyms.h:
198         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
199         Ukrainian_GHE_WITH_UPTURN. (#128529)
200
201 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
202
203         * gtk/gtkfilechooserdefault.c:
204         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
205         behavior of the GtkFileSelection to determine selected paths in
206         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
207
208 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
209
210         * gtk/gtkfilechooserdefault.c
211         (gtk_file_chooser_default_get_paths): Don't declare the closure
212         struct twice.
213         (get_paths_foreach): Likewise.
214
215 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
216
217         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
218
219 2003-12-08  Tor Lillqvist  <tml@iki.fi>
220
221         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
222         with MSVC and old headers. (#126933, John Ehresman)
223
224 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
225          
226         * === Released 2.3.1 ===
227
228         * NEWS: Updates for 2.3.1
229
230         * configure.in: Version 2.3.1, interface age 0, binary age 301.
231
232         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
233         Rename from gtk_menu_item_real_can_activate_accel() to
234         match GTK+ convention, improve comment.
235
236         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
237         can ::can-activate-accel signal.
238
239         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
240         in comment.
241
242         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
243         up comment.
244         
245         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
246         into the .c file.
247
248 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
249
250         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
251         missing 'else'. (#128816, Jorn Baayen)
252
253 2003-12-02  Michael Meeks  <michael@ximian.com>
254
255         Based on a patch by Martin Kretzschmar; #122448
256         
257         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
258         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
259         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
260         function pointers. Deprecate the global gdk_threads_mutex variable.
261         
262         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
263         extracted from GTK_THREADS_ENTER/LEAVE macros.
264         (gdk_threads_init): init gtk_threads_[un]lock if not set.
265         (gdk_threads_set_lock_functions): impl.
266
267         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
268
269 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
270
271         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
272         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
273         Gonzalez)
274
275 2003-12-07  Tor Lillqvist  <tml@iki.fi>
276
277         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
278         return value from SendMessage(WM_SETICON). That is the old
279         icon. Fixes GDI resource leak. (#128559, Tim Evans)
280
281         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
282         have a pointer grab active with a grab cursor set, destroy that
283         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
284
285 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
286
287         * configure.in: Added Thai (th) to ALL_LINGUAS.
288
289 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
290
291         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
292         RTL flipping for GtkAlignment.  (#127585)
293
294 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
295
296         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
297         popup window when in RTL mode.  (#127578)
298
299 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
300
301         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
302         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
303         before doing anything to prevent garbage returns.
304
305 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
306
307         * gtk/gtkviewport.c: Implement RTL flipping for 
308         GtkViewport: Adjust the "gravity" when resizing
309         This is a bit flickery in RTL mode.  (#107526)
310
311 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
312
313         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
314         GtkScrolledWindow: the vertical scrollbar shows up on the left
315         side in RTL mode.  (#107526)
316
317 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
318
319         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
320         tabs displayed at the top/bottom are rearranged, and tabs on
321         the left/right are displayed at the opposite edge.  (#96630)
322
323 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
324
325         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
326         gtk_label_set_attributes() take NULL. See bug #128517.
327
328 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
329
330         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
331         the in_change flag.
332         (completion_idle_callback): Use a temporary list store and re-set
333         it on the completion rather than modifying the old one.  We are
334         re-reading the folder anyway, and this gets rid of non-atomicity
335         problems.
336
337 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
338
339         Decouple impl->current_folder from the selection in the folder
340         tree.  This is so that going to /home/federico/.foo (e.g. from a
341         bookmark) will work even if show_hidden == FALSE.  The folder tree
342         needs to be fixed in this case to show such folders explicitly.
343
344         * gtk/gtkfilechooserdefault.c
345         (gtk_file_chooser_default_set_current_folder): When changing
346         folders, do the entry and list model work here, instead of
347         tree_selection_changed().
348         (struct _GtkFileChooserDefault): Added a changing_folder flag
349         again, dum de dum.
350         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
351
352 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
353
354         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
355         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
356
357 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
358
359         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
360         bookmarks buttons with the location entry.
361
362         * gtk/gtkfilechooserdefault.c
363         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
364         bookmarks buttons and the location entry.
365
366 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
367
368         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
369         shortcuts tree as a drag destination.
370         (shortcuts_drag_data_received_cb): New callback.
371         (get_file_info): Also fetch information on whether the file is a folder.
372         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
373         (error_could_not_add_bookmark_dialog): New function.
374         (shortcuts_add_bookmark_from_path): New helper function.
375         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
376         (shortcuts_row_activated): We no longer need the changing_folder flag.
377         (struct _GtkFileChooserDefault): Likewise.
378
379 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
380
381         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
382         disappearing placeholders that are still visible.
383
384         * gtk/gtktoolbar.c: formatting fixes
385
386         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
387         disappearing, for placeholders that are going to disappear.
388
389         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
390
391 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
392
393         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
394         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
395         Patch from <chinen@jp.ibm.com> to handle RTL support for column
396         resizers, #127874
397
398 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
399
400         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
401         Don't use freed memory.  (#127698, Taavi Talvik) 
402
403 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
404
405         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
406
407 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
408
409         * gtk/gtkuimanager.c: Remove debug define.
410
411 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
412
413         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
414         and the attach widget.
415
416         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
417         sensitivity and the parent menu.
418
419         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
420         checks whether accelerators may activate a widget. the default handler
421         demands the widget be sensitive and visible+viewable.
422
423         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
424
425 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
426
427         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
428         popup menus.  (#127227)
429
430 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
431
432         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
433
434 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
435
436         * gtk/gtkradiotoolbutton.[ch]
437         (gtk_radio_tool_button_new_from_widget): Make this function take a
438         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
439         Cumming)
440
441 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
442
443         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
444
445 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
446
447         * gtk/gtktoolbar.c: remove variable
448         n_overflowed_menu_items_when_dnd_started
449
450 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
451
452         Rework sliding algorithm.
453         - No more weird jumping when items are dragged off and added to
454         the toolbar,
455         - More natural item movement
456
457         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
458         function is now responsible for calculating intermediate positions
459         during item sliding. It is also responsible for starting sliding
460         if items disappear.  Also turn off expanding when there is an
461         overflow menu.
462         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
463         (slide_idle_handler): New function. All the sliding is now done by
464         gtk_toolbar_size_allocate(), so the idle handler now just checks
465         if there is more sliding to be done.
466         (compute_intermediate_allocation, position): new functions
467         calculating intermediate steps in the slide animations. The new
468         animation algorithm uses a constant speed instead of a constant
469         must-be-finished-within time.
470         (struct _ToolbarContent): use 
471         GtkAllocation goal_allocation; and 
472         GtkAllocation start_allocation; instead of 
473         gint start/goal_width;
474
475         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
476         documentation
477
478 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
479
480         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
481         positioning Xinerama-aware.  (#127332)
482
483 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
484
485         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
486         boundaries visible in fake Xinerama mode.
487
488 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
489
490         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
491         for the gtk_widget_hide() call.
492
493 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
494
495         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
496         from David Hampton to fix sorting on booleans.
497
498 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
499
500         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
501         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
502         by Frederic Crozat).
503
504 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
505
506         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
507
508 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
509
510         Fixes to problems reported by Iain Holmes:
511
512         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
513         throw up an error dialog if the desktop doesn't exist.
514         (error_message): Handle the case where there is no real toplevel
515
516         yet.
517         (list_model_filter_func): Always let folders pass through (patch
518         by Dave Malcolm).
519
520 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
521
522         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
523         to a somewhat more logical place,
524         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
525
526 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
527
528         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
529         the popup when it is visible, popdown when there are less chars
530         than the minimum key length in the entry,
531         (gtk_entry_completion_changed): popdown when the entry is empty.
532
533         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
534         size request of the vscrollbar to (-1, 0), to get a nicely sized
535         completion treeview (Fixes #126573, reported by Piers Cornwell),
536         (_gtk_entry_completion_resize_popup): show/hide the action_view
537         based on items.
538
539 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
540
541         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
542         off the dialog's separator (thanks to Iain Holmes).
543
544 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
545
546         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
547         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
548         on items that have a submenu. (#120104).
549
550 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
551
552         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
553         "ItemState" field indicating the overflowed-ness etc. of the item.
554         (gtk_toolbar_size_allocate): update the field here.
555
556 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
557
558         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
559         to the alignment.  Use the HIG-specified spacing between the
560         filter label and the combo.
561         (create_filename_entry): Use HIG-specified spacing between the
562         location label and the entry.
563         (gtk_file_chooser_default_constructor): Don't use vertical padding
564         around the filename entry.
565
566 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
567
568         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
569         render_icon virtual method.
570
571         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
572
573         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
574         Implement as a stub for now.
575
576         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
577         gtk_file_system_render_icon().
578         (list_icon_data_func): Likewise.
579         (toolbar_create): Set the toolbar style to icons only.
580
581         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
582         Fix doc comments.
583
584 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
585
586         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
587         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
588
589 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
590
591         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
592         only unselect all items if the treeview has focus. (Fixes bug
593         reported by Marco Pesenti Gritti).
594
595 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
596
597         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
598         number of actions is "matches + actions - 1". (Fixes #126572).
599
600 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
601
602         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
603         mem leaks (#119435).
604
605 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
606
607         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
608         try to fetch the child back, since we do know that it is already
609         gone by now (#126493, Marco Pesenti Gritti).
610
611 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
612
613         Fixes based on comments from Owen Taylor, #125264.
614
615         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
616         variable,
617         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
618         a resize,
619         (gtk_cell_view_get_size_of_row): new function,
620         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
621         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
622         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
623         s/cellview/cell_view/ in the function definitions, so they match
624         with the header file.
625
626         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
627         flag again (:, and use gtk_cell_view_get_size_of_row instead of
628         the measurer, remove _set_size_request call,
629         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
630         instead of the measurer,
631         (gtk_combo_box_style_set): queue a resize,
632         (gtk_combo_box_size_request): update of _remeasure call,
633         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
634         (gtk_combo_box_cell_layout_pack_end),
635         (gtk_combo_box_cell_layout_clear),
636         (gtk_combo_box_set_model): get rid of the measurer,
637         (gtk_combo_box_cell_layout_add_attribute),
638         (gtk_combo_box_cell_layout_set_cell_data_func),
639         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
640         resize instead of calling _remeasure.
641
642 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
643
644         * gdk-pixbuf/Makefile.am
645         * modules/input/Makefile.am: Use install-data-hook for
646         gdk-pixbuf.loaders and gtk.immodules install generation targets.
647         Fixes #112806.
648
649         * gtk/gtkexpander.h: Apply missing declarations from #124449.
650
651 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
652
653         Fix for #119555, Peter Zelezny:
654         
655         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
656         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
657         by removing the _ prefix. 
658         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
659         gdk/gdkwindow.c: Adjust all callers.
660
661 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
662
663         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
664         the action is sensitive.  (#127187, Christian Persch)
665
666 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
667
668         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
669
670 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
671
672         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
673
674         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
675         mapped, else resize_popup.
676
677         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
678         (_gtk_entry_completion_popup): moved all popup resizing code to
679         _gtk_entry_completion_resize_popup, and show the window when there
680         are more than zero items in the completion list again (sigh).
681
682 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
683
684         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
685         "use_markup" property. See bug #124449.
686
687         * gtk/gtkexpander.c:
688         (gtk_expander_class_init),
689         (gtk_expander_init), (gtk_expander_set_property),
690         (gtk_expander_get_property), (gtk_expander_set_label),
691         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
692         Add a "use_markup" property and use it when creating the
693         child label.
694
695 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
696
697         Temporary size requisition fix. Will fix it for real tonight.
698
699         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
700         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
701         a good width for the child,
702         (gtk_combo_box_cell_layout_add_attribute),
703         (gtk_combo_box_set_cell_data_func),
704         (gtk_combo_box_cell_layout_clear_attributes): update.
705
706 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
707
708         Fixes #124373, Murray Cumming.
709
710         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
711         is no longer construct only,
712         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
713         (gtk_combo_box_menu_fill): new functions,
714         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
715         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
716         (gtk_combo_box_list_destroy): updated,
717         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
718         functions,
719         (gtk_combo_box_set_model): is now public, updated,
720         (gtk_combo_box_get_model): small update.
721
722         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
723         text_column property is no longer construct only,
724         (gtk_combo_box_entry_set_text_column): now public,
725         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
726         new/changed functions.
727
728         * tests/testcombo.c: updated.
729
730 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
731
732         Reinstate fixes for (#124212, Marco Pesenti Gritti):
733         
734         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
735         warnings for popups.
736         (_gtk_menu_is_empty): Return FALSE for non-menus.
737
738 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
739
740         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
741         gtk_cell_view_cell_layout_clear instead of trying to free the
742         structure ourselves here. (#125726, Morten Welinder).
743
744 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
745
746         * gtk/gtkfilechooser.[hc]: 
747         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
748         confuse gtk-doc.
749
750 2003-11-15  Hans Breuer  <hans@breuer.org>
751
752         * gdk/makefile.msc gdk/gdk.def 
753             gtk/gtk.def gtk/makefile.msc.in : updated
754         * tests/makefile.msc : added all the new tests
755
756         * gtk/gtkfilefilter.c(finalize) : initialize filter
757         from object not from itself
758
759         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
760         modified as less as posible to have aworking implementation
761         on win32. There maybe the desire to merge the unchanged pats into
762         a common base class.
763         Also implemented a simple glib based bookmark handling, which
764         is currently missing in gtkfilesystemunix.[hc] but can be copied
765         over there.
766         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
767
768         * gdk/win32/gdkwindow-win32.c : implement 
769         gdk_window_set_keep_above() and gdk_window_set_keep_below()
770
771         * tests/testmerge.c : don't include unistd.h unconditionally,
772         #define STDOUT_FILENO if it isn't defined
773
774         * tests/testfilechooser.c : make it compile on win32
775
776 2003-11-15  Tor Lillqvist  <tml@iki.fi>
777
778         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
779         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
780
781 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
782
783         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
784
785 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
786
787         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
788         GTK_DATADIR/{icons,pixmaps} instead of 
789         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
790
791 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
792
793         Changes to improve menu positioning on Xinerama (#108328, #126150):
794         
795         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
796         window of the menuitem to determine the monitor. This fixes some
797
798         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
799         to store the monitor on which the menu is to be positioned.
800
801         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
802         in the GtkMenuPrivate struct and fetch the monitor geometry after
803         calling the position_func, in case it has been changed.
804
805         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
806         to be used in GtkMenuPositionFunc implementations for setting
807         the monitor_num field in GtkMenuPrivate.
808
809         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
810         gtk_menu_set_monitor.
811
812 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
813
814         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
815         label for the empty list. String change.  (#95446, Tomas Ã–gren)
816
817 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
818
819         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
820         the definition of the values.  (#123361, Marco Pesenti Gritti)
821
822 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
823
824         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
825         (#122941, Egmont Koblinger)
826
827 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
828
829         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
830         opacity entry widget. Change tooltip for opacity widgets. (#126426)
831
832 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
833
834         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
835         affect window menu position when popped from keyboard. (#102660)
836
837 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
838
839         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
840         are using the old API, make all items "is_important". That way
841         BOTH_HORIZ will continue to show both icon and label in old API
842         mode.
843
844 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
845
846         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
847         Remember the new value in all cases.  (#126276, Damon Chaplin)
848
849 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
850
851         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
852         functions with the toplevel as argument.
853
854         * demos/gtk-demo/geninclude.pl.in: Change the signature
855         of GDoDemoFunc to take a widget argument
856
857         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
858         * demos/gtk-demo/tree_store.c (do_tree_store): 
859         * demos/gtk-demo/textview.c (do_textview): 
860         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
861         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
862         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
863         * demos/gtk-demo/panes.c (do_panes): 
864         * demos/gtk-demo/menus.c (do_menus): 
865         * demos/gtk-demo/list_store.c (do_list_store): 
866         * demos/gtk-demo/images.c (do_images): 
867         * demos/gtk-demo/hypertext.c (do_hypertext): 
868         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
869         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
870         * demos/gtk-demo/dialog.c (do_dialog): 
871         * demos/gtk-demo/colorsel.c (do_colorsel): 
872         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
873         * demos/gtk-demo/button_box.c (do_button_box): 
874         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
875         as argument, and make new windows or dialogs appear on the
876         same screen.  (#80388)
877
878 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
879
880         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
881         visible-window default to TRUE, as documented and 
882         implemented. (#126270 Damon Chaplin)
883
884 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
885
886         * gtk/gtkicontheme.c: 
887         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
888         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
889         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
890         2.4 additions.
891
892 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
893
894         Changing GtkFileChooserEntry to use GtkEntryCompletion.
895
896         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
897         a GtkListStore for the completion list.  Create a
898         GtkEntryCompletion and attach it to the chooser entry.
899         (gtk_file_chooser_entry_finalize): Unref the completion store.
900         (completion_match_func): New callback for the GtkEntryCompletion.
901         (completion_idle_callback): Fill the completion store with filenames.
902
903 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
904
905         * gtk/gtkwindow.c (gtk_window_set_role): 
906         * gtk/gtkwindow.c (gtk_window_set_title): 
907         * gtk/gtkwidget.c (gtk_widget_set_name): 
908         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
909         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
910         safe for self-assignment.  (#122745, Soeren Sandmann)
911
912 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
913
914         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
915         (#126369, Olexiy Avramchenko)
916
917 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
918
919         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
920         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
921         consistency of titles.  (#126193, Damon Chaplin)
922
923 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
924
925         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
926         menus to be transient for the toplevel they were torn off from.
927         (gtk_menu_get_toplevel): Auxiliary function to find the
928         toplevel of a menu.  (#54775, Jon-Kare Hellan)
929
930 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
931
932         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
933         min-position and max-position.  (#58431, Padraig O'Briain)
934
935 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
936
937         * gtk/gtkcolorsel.c (update_color): 
938         (make_label_spinbutton): 
939         (adjustment_changed): Change the ranges for Saturation and
940         Value to be 0-100 instead of 0-255, since these axes of HSV
941         are usually expressed in percent.  (#121519, Gregory Merchan)
942
943 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
944
945         * docs/faq/gtk-faq.sgml: More 2.x updates
946
947 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
948
949         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
950         pkg-config command error, update copyright.
951
952 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
953
954         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
955         well.  Use a helper function.
956         (shortcuts_append_home): Display an error box if necessary.
957         (shortcuts_append_desktop): Likewise.
958         (add_bookmark_button_clicked_cb): Likewise.
959         (gtk_file_chooser_default_select_path): Likewise.
960         (entry_activate): Likewise.
961         (shortcuts_append_paths): New helper function.
962         (shortcuts_append_file_system_roots): Use
963         shortcuts_append_paths().
964         (shortcuts_append_bookmarks): Likewise.
965
966 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
967
968         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
969         menu is NULL.
970         (update_smart_separators): Remove some unneeded ifs.
971
972 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
973
974         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
975         these usable in C++. Forgot this file in my Oct 11 commit.
976
977 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
978
979         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
980         icon to the "Add bookmark" button.
981
982         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
983         * gtk/gtkfilesystemmodel.c: Likewise.
984         * gtk/gtkfilechooser.c: Likewise.
985         * gtk/gtkfilechooserdefault.c: Likewise.
986
987 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
988
989         * gdk/gdk.c: 
990         * gdk/gdkinternals.h: 
991         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
992         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
993         Xinerama mode when no actual Xinerama setup is found. 
994
995 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
996
997         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
998         (create_shortcuts_tree): Don't call the above.
999         (bookmarks_changed_cb): Likewise.
1000         (tree_selection_changed): Unselect everything from the shortcuts
1001         list.  This is the behavior that Mac OS has.
1002         (toolbar_add_item): Return the item.
1003         (toolbar_create): Store the up_button in the impl structure.
1004         (toolbar_check_sensitivity): New function to set the sensitivity
1005         of the "Up" button in the toolbar.
1006         (tree_selection_changed): Call toolbar_check_sensitivity().
1007
1008 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
1009
1010         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
1011         not set a border width for the toplevel container.
1012         (toolbar_create): New function; create a simple toolbar for the
1013         file chooser.
1014         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
1015         the table, as per the HIG.
1016         (gtk_file_chooser_default_init): Likewise, for the default
1017         implementation's vbox.
1018
1019         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
1020         note that NULL is a valid return value for the parent path.
1021
1022 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
1023
1024         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
1025         Change on activation, not selection change (temporary
1026         workaround for #125955, needed for keynav, likely
1027         the right UI anyways.)
1028
1029         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
1030         Don't allow the separator node to be selected.
1031
1032         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
1033         Set the focus chain so that the entry gets focused first.
1034         (Not really right after initial focusing, maybe we
1035         should just have a gtk_file_chooser_focus_entry() that
1036         we call from gtk_file_chooser_dialog on creation.)
1037
1038 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
1039
1040         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
1041         residual call to gtk_window_get_private().
1042
1043 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
1044
1045         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
1046         into GtkWindowPrivate structure, fixing ABI breakage
1047         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
1048         to instance-private-data.
1049
1050 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1051
1052         * gtk/gtktoolbar.c (get_item_requisition): delete this function
1053         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
1054         instead of re-calculating for each item.
1055         (gtk_toolbar_size_allocate): Update comments
1056
1057 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1058
1059         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
1060         placeholders when include_internals is TRUE.
1061
1062 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1063
1064         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
1065         item 0 is a placeholder. (#125826)
1066         * tests/testtoolbar.c: add an assertion that 
1067         gtk_toolbar_get_nth_item (0) != NULL
1068
1069 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1070
1071         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
1072         logical == 0.(#125826)
1073
1074 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1075
1076         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
1077         return the index of a real item.
1078         (get_nth_item) assert that the returned items is not a
1079         placeholder.  (#125826, Marco Pesenti Gritti).
1080         
1081 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
1082
1083         * gtk/gtkcellrendererseptext.c
1084         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
1085         text is NULL, rather than also doing it if it is an empty string.
1086
1087 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
1088
1089         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
1090         gtk_message_dialog_new_with_format): Allow NULL
1091         for message_format, as described in the docs and
1092         as worked previously. (#125759, Richard Hult)
1093
1094         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
1095         Use g_markup_vprintf_escaped() to escape arguments.
1096
1097         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
1098         so there is some way to set literal markup.
1099
1100 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
1101  
1102         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
1103         the call to gdk_error_trap_pop() to the right place,
1104         fixing a problem where we'd pop() too many times 
1105         when bailing out. (#123302, Thomas Leonard)
1106         
1107 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
1108
1109         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
1110         Fix infinite recursion. (#125679, Christian Persch)
1111
1112 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
1113
1114         * docs/faq/gtk-faq.sgml: further 2.x updates:
1115         mirrors,compiling,g_main_context_iteration
1116
1117 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1118
1119         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
1120         function; remove gtk_toolbar_highlight_drop_location() and
1121         gtk_toolbar_unhighlight_drop_location().
1122
1123         Also fix bug where the number of overflowed items were miscounted.
1124
1125 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
1126
1127         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
1128         some accidentally committed duplicate code.
1129
1130 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
1131
1132         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
1133
1134 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
1135
1136         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
1137         gtk_has_toplevel_focus): Add getters corresponding to
1138         the is_active and has_toplevel_focus properties.
1139         (#122531)
1140
1141 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
1142
1143         * gtk/gtkexpander.c:
1144         (gtk_expander_class_init): hook up the destroy handler.
1145         (gtk_expander_destroy), (gtk_expander_unrealize):
1146         remove the expand/collapse timeout on destroy instead
1147         of unrealize to avoid leaving the expander in a inconsistent
1148         state when unrealizing during animation.
1149         (gtk_expander_start_animation): remove realized check.
1150         (gtk_expander_set_expanded): if the widget isn't realized,
1151         expand immediately.
1152
1153 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
1154
1155         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
1156         do nothing when recipient is NULL, as described in the
1157         doc comment. (#123107, Thomas Leonard)
1158
1159 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
1160
1161         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
1162         rewrite docs, mention memory management for the return
1163         value. (Partly addresses #125549, Michael Natterer)
1164
1165 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
1166
1167         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
1168         Change index to filter_index to fix compilation error.
1169
1170         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
1171
1172 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
1173
1174         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
1175         we have RandR support, for XRRUpdateConfiguration declaration.
1176
1177         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
1178         declaration.
1179
1180         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
1181         length a gsize variable, since that's what g_file_get_contents()
1182         expects.
1183
1184 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
1185
1186         * NEWS: Fix attribution for above/below EWMH work.
1187
1188 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
1189
1190         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
1191         as a construct-only property.  (#125475, Murray Cumming)
1192
1193 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1194
1195         Fix bug 116297 and 125472
1196         
1197         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
1198         this function take an index and a GtkToolItem.
1199
1200         * tests/testtoolbar.c (main): Make "Show Arrow" default to
1201         true. Make one of the separators !draw and expand.
1202         Update for new highlight_drop_location() API.
1203
1204         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
1205
1206         * gtk/gtktoolbar.h: Formatting fixes.
1207
1208         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
1209         separator tool items to expand.
1210         (logical_to_physical, physical_to_logical): Fix off-by-one errors
1211         (Fix #125472, Marco Pesenti Gritti)
1212
1213         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
1214         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
1215         return FALSE, not TRUE.
1216         (gtk_separator_too_item_{set|get}_property,
1217         (gtk_separator_tool_item_{set|get}_draw): new functions
1218
1219 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
1220
1221         * === Released 2.3.0 ===
1222
1223         * configure.in: Remove a stray comma.
1224
1225         * README.in: Fix a few notes about Xft 1 and pango-1.0.
1226
1227         * NEWS: Finish updates for 2.3.0.
1228
1229         * po/Makefile.in.in: Update to latest GLib version.
1230
1231 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
1232
1233         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
1234         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
1235         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
1236         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
1237         Sandmann).
1238
1239 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
1240
1241         * gtk/gtktreemodelfilter.h: add padding to the class structure.
1242
1243 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
1244
1245         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
1246         (gtk_file_chooser_remove_filter): Likewise.
1247         (gtk_file_chooser_select_all): Added docs.
1248         (gtk_file_chooser_unselect_all): Likewise.
1249
1250         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
1251
1252         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
1253
1254 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
1255
1256         * gtk/gtkfilefilter.c: 
1257         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
1258
1259 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
1260
1261         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
1262
1263 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
1264
1265         * NEWS: Remove a few duplicates, group the menu changes.
1266
1267 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
1268
1269         * NEWS: Updates for 2.3.0; changed header to match the style we used
1270         for 2.1.0.
1271
1272 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
1273
1274         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
1275         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
1276
1277 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
1278
1279         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
1280         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
1281         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
1282
1283 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1284
1285         * NEWS: Partial update for 2.3.0.
1286
1287 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
1288
1289         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
1290         GtkComboBox.
1291
1292 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
1293
1294         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
1295         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
1296         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
1297         Basic framework for the new file selector widget.
1298
1299         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
1300         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
1301         Initial implementation of the GtkFileChooser user interface.
1302
1303         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
1304         for Unix files.
1305
1306         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
1307         for freedesktop.org MIME system on Unix.
1308
1309         * tests/testfilechooser.c: Test program for GtkFileChooser
1310
1311         * tests/prop-editor.c: Add support for properties on interfaces.
1312
1313 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
1314
1315         * demos/gtk-demo/menus.c (do_menus): Fix some unused
1316         variables.
1317
1318         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
1319         variable warning.
1320
1321 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
1322
1323         * NEWS: Partial update for 2.3.0.
1324
1325 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
1326
1327         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
1328         ctrl_pressed and shift_pressed according to the current event
1329         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
1330
1331 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
1332
1333         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
1334         timeout when the user pressed on Enter/ESC. Fixes the bug where the
1335         completion popup popped up after the user pressed on Enter (which is
1336         just weird). Reported by the Epiphany people (all of them).
1337
1338 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1339
1340         Add support for OS X like sliding of toolbar items during drag and
1341         drop, (#110919, Dave Bordoley)
1342
1343         Make dnd highlighting the responsibility of the
1344         application. (Fixes #116298, Owen Taylor)
1345
1346         * gtk/gtktoolbar.h: Add prototypes for new API.
1347         
1348         * gtk/gtktoolbar.c
1349         (physical_to_logical, logical_to_physical): new functions
1350         converting between "position including placeholders" and "position
1351         excluding placeholders".
1352         (gtk_toolbar_class_init): remove drag_leave and drag_motion
1353         handlers
1354         (struct _ToolbarContent): new struct containing information
1355         related to toolbar items.
1356         (gtk_toolbar_highlight_drop_location): new public function
1357         (gtk_toolbar_unhighlight_drop_location): new public function
1358         
1359         * tests/testtoolbar.c
1360         (toolbar_drag_motion, toolbar_drag_leave): new functions
1361         (main): connect to dnd signals.  Make the "New" item expand to
1362         make drag and drop more exciting.
1363
1364 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
1365
1366         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
1367         _set_active, not _set_active_item.
1368
1369 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
1370
1371         * gtk/gtkcombobox.h: add padding to the class structure.
1372         * gtk/gtkcomboboxentry.h: ditto.
1373         * gtk/gtkentrycompletion.h: ditto.
1374
1375 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
1376
1377         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
1378         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
1379         value and what it means.
1380
1381         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
1382         item to -1 (default),
1383         (gtk_combo_box_entry_active_changed): do nothing when the index is
1384         < 0.
1385
1386 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
1387
1388         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
1389         to set the active row by iter.
1390
1391         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
1392         to get the active row by iter.
1393
1394 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
1395
1396         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
1397         operations on windows if the tree view is not mapped.
1398         (gtk_tree_view_button_press): Compare equal types of pointers, not
1399         GtkWidget* vs. GtkTreeView*.
1400
1401 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
1402
1403         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
1404         the reset of first_sel_changed, as after the first popup the treeview
1405         will always have a row selected and will thus not focus_to_cursor.
1406
1407         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
1408         whether the keyval should move the completion selection cursor (used
1409         to avoid ending up with extreme cluttered code), also added
1410         all KP_ equivalents of the keys here,
1411         (gtk_entry_completion_key_press): Keynav tweaks based on comments
1412         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
1413         as possible current selection, implement Home/End keys, modified
1414         the down key to stop cycling. Maybe page up/down should be implemented
1415         at some later time.
1416
1417 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
1418
1419         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
1420         as documented when pixmap or mask is NULL.  (#124081) 
1421
1422 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
1423
1424         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
1425         I was adding the signal block/unblock code. Oops. (Noticed by
1426         Marco Pesenti Gritti).
1427
1428 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
1429
1430         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
1431         (set_interp_type), (main): port over from option menu to GtkComboBox.
1432
1433 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
1434
1435         * tests/testmenus.c: Still uses option menus, so turn off
1436         GTK_DISABLE_DEPRECATED.
1437
1438 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
1439
1440         * gtk/gtkalignment.[hc]: 
1441         * gtk/gtkcombobox.[hc]: 
1442         * gtk/gtkcomboboxentry.[hc]: 
1443         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
1444         from header to implementation.
1445
1446 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
1447
1448         * tests/testtreeview.c: 
1449         * demos/testpixbuf-scale.c: 
1450         * tests/prop-editor.c: These files still use option menus,
1451         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
1452
1453 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
1454
1455         * gtk/gtkactiongroup.h: 
1456         * gtk/gtkaction.h: 
1457         * gtk/gtkradioaction.h: 
1458         * gtk/gtkradiotoolbutton.h: 
1459         * gtk/gtkseparatortoolitem.h: 
1460         * gtk/gtktoggleaction.h: 
1461         * gtk/gtktoolitem.h: 
1462         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
1463         these usable in C++.  (#124351, Murray Cumming)
1464
1465 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
1466
1467         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
1468         non-NULL before accessing it. Oops.
1469
1470 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
1471
1472         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
1473         (gtk_entry_completion_insert_action_text),
1474         (gtk_entry_completion_insert_action_markup): the gchar* parameters
1475         should be const (pointed out by both Marco Pesenti Gritti and
1476         Murray Cumming (#124356).
1477
1478 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
1479
1480         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
1481         child list mode, allocate the height allocation->height to the
1482         button instead of the height requested by the button. (Tiny
1483         size allocation screwup noticed by Macro Pesenti Gritti).
1484
1485 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
1486
1487         Fixes based on comments from Marco Pesenti Gritti.
1488
1489         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
1490         signal handler, avoids the completion popup to popup when text is
1491         set programmatically in most cases (we actually have to handle this
1492         in the _editable functions as well, but that will break popping up
1493         when the user actually typed something :),
1494         (gtk_entry_completion_key_press): when handling enter, bail out
1495         when nothing has been selected,
1496         (gtk_entry_completion_changed): don't popdown when the entry content
1497         changed.
1498
1499         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
1500         (gtk_entry_completion_selected_changed): unselect_all on the
1501         first selected changed signal. Avoids having a default row selected,
1502         (_gtk_entry_completion_popup): don't select the first row by default.
1503
1504         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
1505         first_sel_changed field.
1506
1507 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
1508
1509         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
1510         in the intro (again).
1511
1512 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
1513
1514         Fixes for (#124212, Marco Pesenti Gritti):
1515         
1516         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
1517         warnings for popups.
1518         (_gtk_menu_is_empty): Return FALSE for non-menus.
1519
1520 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
1521
1522         * gtk/gtkcombo.h: Deprecate.
1523         * gtk/gtkoptionmenu.h: Ditto.
1524
1525         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
1526         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
1527         needs some work on requesting enough size when taking the items in
1528         the list into account.
1529
1530         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
1531         deprecated" guards.
1532         * gtk/gtkinputdialog.c: ditto.
1533         * gtk/gtkitemfactory.c: ditto.
1534         * gtk/gtkoptionmenu.c: ditto.
1535
1536         * demos/gtk-demo/menus.c: remove the option menu.
1537         * demos/gtk-demo/sizegroup.c: replace the option menus with
1538         GtkComboBox.
1539         * demos/gtk-demo/textview.c: ditto.
1540         (A general GtkComboBox demo will be added later on).
1541
1542 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
1543
1544         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
1545         callback to propertly report radio actions.
1546
1547         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
1548
1549 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
1550
1551         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
1552         version in in the right field of the _XEMBED_INFO property.  
1553         (#123885, Denis Mikhalkin)
1554
1555 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
1556
1557         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
1558         the child if we have one.
1559
1560         (gtk_expander_button_release): use
1561         gtk_widget_activate instead.
1562
1563 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
1564
1565         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
1566         "right_attach" with a capital.  (#123945, Christian Rose)
1567
1568 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
1569
1570         * tests/testsocket.c (child_read_watch): Remove an
1571         extraneous unref.  (#122336, Frederic Crozat)
1572
1573 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
1574
1575         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
1576         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
1577
1578 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1579
1580         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
1581         focus arrow before pack_end items (#123851, Matthias Clasen)
1582
1583 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
1584
1585         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
1586         on ->priv->cell_view if ->priv->cell_view is non-NULL.
1587
1588         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
1589         field to GtkComboBoxEntryPrivate,
1590         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
1591         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
1592         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
1593         a construct-only "text_column" property and reorder code to use it
1594         and support inheriting this widget.
1595
1596 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
1597
1598         * gtk/gtkcombobox.c: Added API doc comments.
1599
1600         * gtk/gtkcomboboxentry.c: Ditto.
1601
1602 2003-10-02  Matthias Clasen  <maclas@gmx.de>
1603
1604         * gtk/gtktoggleaction.c: Documentation tweaks.
1605
1606 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
1607
1608         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
1609         packing/attribute/cell data functions from the header,
1610         (gtk_cell_view_set_cell_data): added support for cell data funcs.
1611
1612         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
1613         packing/attribute/cell data functions from the header, implemented
1614         cell data func support.
1615
1616         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
1617         for the move to GtkCellLayout.
1618
1619         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
1620
1621 2003-10-01  Matthias Clasen  <maclas@gmx.de>
1622
1623         * gtk/gtkaction.c (gtk_action_class_init): 
1624         (gtk_action_[gs]et_property): Introduce a separate
1625         "hide_if_empty" property for empty menu handling.
1626         (_gtk_action_sync_menu_visible): ...and use it here.
1627
1628         * tests/testmerge.c (main): ...and here.
1629
1630         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
1631         comments to pacify gtk-doc.
1632
1633         * gtk/gtkmain.c: Doc formatting tweaks.
1634
1635         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
1636
1637         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
1638         Use the same parameter names as in .c file, to pacify gtk-doc.
1639
1640         * gtk/gtktoggletoolbutton.[hc]: 
1641         * gtk/gtktoolbutton.[hc]: 
1642         * gtk/gtktoolitem.[hc]:
1643         * gtk/gtktoolbar.[hc]: 
1644         * gtk/gtkcolorbutton.[hc]: 
1645         * gtk/gtkfontbutton.[hc]: 
1646         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
1647         source, not in the header.
1648
1649         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
1650         Document these as 2.4 API additions.
1651
1652 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
1653
1654         * gtk/gtkentry.c (gtk_entry_set_completion),
1655         (gtk_entry_get_completion): Add API doc comments.
1656
1657         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
1658
1659 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
1660
1661         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
1662
1663 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
1664
1665         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
1666
1667         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
1668
1669 2003-09-30  Matthias Clasen  <maclas@gmx.de>
1670
1671         * tests/merge-*.ui: 
1672         * tests/testmerge.c: Test handling of empty menus.
1673
1674         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
1675         whether a menu is empty. Used in gtkaction.c.
1676         (update_smart_separators): Also update the visibility of empty menus.
1677         (update_node): When creating a new menu proxy, insert an "Empty" menu 
1678         item which only gets shown if the menu is empty. 
1679
1680         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
1681         "is_important" for menu proxies.
1682         (_gtk_action_sync_menu_visible): New function to sync the visibility
1683         of menu proxies. Used in gtkuimanager.c.
1684         (gtk_action_sync_visible): New function to sync the visibility of 
1685         proxies.
1686
1687 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
1688
1689         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
1690         popup_in_progress to TRUE,
1691         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
1692         won't disappear on the first button release. (Reported by Matthias
1693         Clasen).
1694
1695 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
1696
1697         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
1698
1699         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
1700         Marco Pesenti Gritti).
1701
1702 2003-09-30  Murray Cumming  <murrayc@usa.net>
1703  
1704         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
1705         instead of a GdkWindow*, because that what it is given. The 
1706         documentation was already correct. This should cause no API/ABI
1707         breakage with C compilers.
1708         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
1709         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
1710         implementation accordingly.
1711
1712 2003-09-30  Matthias Clasen  <maclas@gmx.de>
1713
1714         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
1715         "direction-changed" and "keys-changed" signals.
1716
1717         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
1718         "size-changed" signal.
1719
1720         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
1721         Document the "display-opened" signal.
1722
1723         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
1724         (gdk_display_class_init): Document the "closed" signal.
1725
1726 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1727
1728         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
1729         accepts_tab. (#122709 again).
1730
1731 2003-09-27  Matthias Clasen  <maclas@gmx.de>
1732
1733         * gtk/gtkwindow.c (gtk_window_new):
1734         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
1735         the fact that the newly created object does not come with 
1736         a floating reference.  (#103068, patch by Frederic Lespez)
1737         
1738         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
1739         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
1740         since GtkActionGroup uses it.
1741
1742         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
1743         this test uses the soon-to-be-deprecated GtkItemFactory.
1744
1745         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
1746         remove item_factory.c
1747
1748         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
1749         using GtkUIManager instead of GtkItemFactory.
1750
1751         * tests/testmerge.c: Demonstrate the use of the 
1752         connect-proxy signal.
1753
1754         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
1755         disconnect-proxy signals to do small customizations 
1756         like displaying tooltips in the statusbar without 
1757         custom actions.  (#122894, Philip Langdale)
1758
1759         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
1760
1761 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
1762
1763         Landing the new ComboBox. Note that only gtkcombobox.h and
1764         gtkcomboboxentry.h are public.
1765
1766         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
1767         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
1768
1769         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
1770
1771         * tests/testcombo.c: and a new test.
1772
1773         * tests/Makefile.am: adding the new test.
1774
1775 2003-09-25  Tor Lillqvist  <tml@iki.fi>
1776
1777         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
1778
1779 2003-09-21  Tor Lillqvist  <tml@iki.fi>
1780
1781         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
1782         function. Code split out from gdk_event_translate(). Needed
1783         because gdk_event_get_graphics_expose() couldn't do anything
1784         sensible otherwise. (Not that I think graphics exposes work anyway
1785         in gdk/win32, but at least now the code could work.)
1786
1787         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
1788         gdk_event_translate(), which couldn't have worked as it doesn't
1789         take any pre-allocated GdkEvent parameter any longer.
1790         
1791         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
1792         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
1793
1794 2003-09-24  Matthias Clasen  <maclas@gmx.de>
1795
1796         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
1797         on toolitems.
1798
1799         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
1800
1801         * gtk/gtkuimanager.c (update_node): Don't complain about missing
1802         actions on popups. Re-set "tooltip" property on toolitems after
1803         adding them to parent to trigger proxy update.
1804
1805 2003-09-22  Matthias Clasen  <maclas@gmx.de>
1806
1807         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
1808         group member to test the fix for #122904.
1809
1810         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
1811         Add the action to the group before activating it, otherwise we
1812         may end up with multiple active group members.  (#122904, Marco
1813         Pesenti Gritti)
1814
1815 2003-09-21  Matthias Clasen  <maclas@gmx.de>
1816
1817         Changes to make cross-process merging feasible:
1818         
1819         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
1820         merged UI definition. Remove the "changed" signal, since its role
1821         is now filled by "notify::ui". Instead add a "actions-changed" signal
1822         which gets emitted when the set of actions changes.
1823
1824         * gtk/gtktoggleactionprivate.h:
1825         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
1826         Add a "draw_as_radio" property to toggle actions so that they can be
1827         used as proxies for radio actions much like the "draw_as_radio" 
1828         property on check menu items enables them to operate as proxies for
1829         radio actions.
1830
1831         Prevent the "show_all" trap for action-based menus (see
1832         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
1833         msg00260.html):
1834
1835         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
1836         calls from static functions.
1837
1838         * gtk/gtkuimanager.c (update_node): 
1839         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
1840         widgets whose visibility is externally controlled.
1841
1842         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
1843         "no_show_all" property with setter and getter. When TRUE, it keeps
1844         gtk_widget_{hide,show}_all() from modifying the visibility of the 
1845         widget and its children.
1846
1847 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1848
1849         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
1850
1851 2003-09-20  Tor Lillqvist  <tml@iki.fi>
1852
1853         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
1854         including editor backup files. List files we want explicitly.
1855
1856         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
1857         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
1858         LC_ALL, LC_CTYPE and LANG environment variables, than calls
1859         g_win32_getlocale().
1860
1861         (gtk_get_default_language): Code snippet moved to above function,
1862         call it.
1863
1864         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
1865         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
1866         _gtk_get_lc_ctype() instead of setlocale().
1867
1868 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1869
1870         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
1871         (#96632)
1872
1873 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1874
1875         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
1876         documentation. (#117306, Steve Chaplin)
1877
1878 2003-09-19  Tor Lillqvist  <tml@iki.fi>
1879
1880         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
1881         present on the US-International keyboard. For clarity, order
1882         keysyms in case statement according to numeric value.
1883
1884         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
1885         correctly. (#120176, Ken Rastatter and Owen Taylor)
1886
1887 2003-09-18  Matthias Clasen  <maclas@gmx.de>
1888
1889         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
1890         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
1891
1892         Install accelerators on actions, not on proxies, support
1893         accelerator-only actions:
1894         
1895         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
1896         and its lock status either via _gtk_widget_get_accel_path() or by 
1897         looking at the accel_path stored in the menu item itself and determining
1898         its lock status by peeking into the contained accel label. This was
1899         already (accidentally) committed a week ago.
1900
1901         * gtk/gtkaction.h (gtk_action_set_accel_group):
1902         (gtk_action_[dis]connect_accelerator): New functions.
1903
1904         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
1905         accel_closure and accel_count. We must have a reference to the 
1906         accel_group, since we need it in connect_proxy. The count is necessary
1907         to ensure that the accelerator isn't removed before the last proxy 
1908         requesting it has been unmerged.
1909         (connect_proxy): Connect the accelerator to the 
1910         action now, only set the accel_path on the menuitem.
1911         (remove_proxy): Disconnect the accelerator from the action, not from
1912         the menuitem.
1913         (gtk_action_set_accel_group): Set the accel group. 
1914         (gtk_action_[dis]connect_accelerator): Count the number of times
1915         this functions have been called and install/remove the accelerator if
1916         the count leaves/reaches zero.
1917
1918         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
1919         GTK_UI_MANAGER_ACCELERATOR.
1920
1921         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
1922         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
1923         <accelerator> elements.
1924         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
1925         type is GTK_UI_MANAGER_ACCELERATOR.
1926         (update_node): Set the accel group on actions before creating their
1927         proxies. Don't set the accel group on created menus. For 
1928         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
1929         (print_node): Also emit <accelerator> elements.
1930
1931         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
1932
1933         * gtk/gtkuimanager.c (update_node): Robustness improvements.
1934
1935 2003-09-17  Matthias Clasen  <maclas@gmx.de>
1936
1937         * gtk/gtkuimanager.c (text_handler): Report unexpected character
1938         data as error from the GMarkup parser, otherwise things like
1939         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
1940         pass unexpectedly.
1941
1942 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1943
1944         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
1945         committed redraw_on_allocate change.
1946
1947 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
1948
1949         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
1950         stubs to fix compilation
1951
1952         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
1953         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
1954
1955         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
1956         variable. Patch from Marc Welz (#121347).
1957
1958 2003-09-16  Matthias Clasen  <maclas@gmx.de>
1959
1960         * gtk/gtkaction.h: Apply egtk-format-protos.
1961
1962 2003-09-15  Matthias Clasen  <maclas@gmx.de>
1963
1964         * gtk/gtkuimanager.c: Doc tweaks.
1965
1966         Smart separators; see 
1967         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
1968         
1969         * gtk/gtkuimanager.c (update_smart_separators): New function which 
1970         implements "smart" separators by iterating once over the entries of a 
1971         menu, hiding and showing separators as necessary.
1972         (update_node): Mark separators used as fences of placeholders as
1973         hidden. Explicitly added separators are marked as smart. Call 
1974         update_smart_separators after updating a menu or toolbar node. 
1975         Connect update_smart_separators to "notify::visible" signal on menu
1976         and tool items.
1977         
1978         * tests/merge-[12].ui: Test smart separators.
1979
1980         Changes to allow setting action state before connecting signal; see
1981         the thread starting at 
1982         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
1983         
1984         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
1985         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
1986         setting the currently selected group member before connecting signals.
1987         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
1988         including a boolean to initialize the action state before connecting
1989         signals.
1990         (gtk_action_group_add_toggle_actions):
1991         (gtk_action_group_add_toggle_actions_full): New functions to construct
1992         toggle actions from an array of GtkToggleActionEntries.
1993
1994         * demos/gtk-demo/appwindow.c: 
1995         * tests/testactions.c: 
1996         * tests/testmerge.c: Adjust to new action group API.
1997
1998 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1999
2000         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
2001         "gtk-toolbar-arrow" so themes can special-case it.
2002
2003 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2004
2005         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
2006
2007 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2008
2009         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
2010         PangoFontMetrics. Patch from Steve Chaplin (#122257).
2011
2012 2003-09-14  Tor Lillqvist  <tml@iki.fi>
2013
2014         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
2015         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
2016         the usefulness of which was already in doubt. Removing it fixes
2017         bugs #118575 and #121851.
2018
2019 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
2020
2021         Merge from stable.
2022
2023         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
2024         pressed button (used to determine if we want to initiate a drag later
2025         on) if the current grab widget is either NULL or tree_view (Reported
2026         by Jeroen Zwartepoorte).
2027
2028 2003-09-12  Matthias Clasen  <maclas@gmx.de>
2029
2030         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
2031         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
2032
2033 2003-09-11  Matthias Clasen  <maclas@gmx.de>
2034
2035         * gdk/gdkpango.c: Doc tweaks.
2036
2037         * tests/testgtk.c: Add table menu tests.
2038
2039         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
2040         GtkMenuPrivate struct itself. Pointed out by valgrind.
2041
2042         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
2043         properly.  (#121998)
2044
2045 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
2046
2047         The table menu patch! Turns GtkMenu into a table, so you can attach
2048         menu items in numerous new ways! Be creative!
2049
2050         Contains some bug fixes and RTL adaptions from Matthias Clasen.
2051
2052         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
2053         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
2054         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
2055         the heights array in the private struct,
2056         (gtk_menu_class_init): reorder code a bit, install child properties,
2057         (get_attach_info), (get_child_attach): new utility functions,
2058         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
2059         child properties, for the attach info,
2060         (gtk_menu_remove): remove AttachInfo from menu item,
2061         (gtk_menu_real_insert): implemented algorithm to automagically place
2062         inserted menu items at the correct place in the table,
2063         (gtk_menu_size_request), (gtk_menu_size_allocate),
2064         (compute_child_offset): reworked/rewritten to support table menus,
2065         (gtk_menu_attach): new function,
2066         (find_child_containing), (gtk_menu_move_current): new functions to
2067         get table menu keynav right.
2068
2069         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
2070
2071 2003-09-10  Matthias Clasen  <maclas@gmx.de>
2072
2073         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
2074         PropertyNotify events from the stream if they have been handled,
2075         in order to enable extending the plug<->socket communication via
2076         properties.
2077
2078 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
2079
2080         Big TreeView DnD fixage, makes drops on empty models work, makes
2081         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
2082         Related bugs #95362 and #113314. I don't want to touch this code
2083         ever again.
2084
2085         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
2086
2087         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
2088         for selection_data->length.
2089
2090         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
2091         (set_dest_row), (get_dest_row): we don't store just the row ref
2092         anymore, but a struct with the row ref and additional info,
2093         (set_destination_row): handle drops on empty space and some
2094         style fixes,
2095         (get_logical_dest_row): also return path_down_mode/drop_append_mode
2096         flags, handle dropping childs on their new parents, rewrite
2097         drop append handling into something saner,
2098         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
2099         spaces,
2100         (gtk_tree_view_drag_drop): updates for updated backend,
2101         (gtk_tree_view_drag_data_received): updates for updated backend,
2102         path down mode (treestore DnD) handling,
2103         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
2104         when we are trying to drop a row on an empty model,
2105         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
2106
2107         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
2108         (gtk_list_store_row_drop_possible): style and drop-append fixes.
2109
2110         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
2111
2112 2003-09-08  Alexander Larsson  <alexl@redhat.com>
2113
2114         * gtk/gtkeventbox.[hc]:
2115         Implement gtk_event_box_get/set_input_only()
2116         
2117         * tests/testgtk.c:
2118         Tests for the new input only event boxes
2119
2120 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
2121
2122         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
2123
2124         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
2125         the call to gtk_tree_model_filter_add_root,
2126         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
2127         the virtual root, allow building levels on the second try to convert
2128         the child path to a filter path,
2129         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
2130         root when calling gtk_tree_model_filter_elt_get_path.
2131
2132 2003-09-07  Matthias Clasen  <maclas@gmx.de>
2133
2134         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
2135         Josh Beam)
2136
2137         Fixes for accelerator handling during (un)merging:
2138         
2139         * gtk/gtkuimanager.c (update_node): Move setting info-action
2140         after the switch, since the old action is needed in some cases.
2141         In cases of proxy type mismatch, disconnect the old proxy from
2142         the old action.
2143
2144         * gtk/gtkaction.c (remove_proxy): Renamed from 
2145         gtk_action_remove_proxy(). Move unsetting of the accelerator
2146         here from disconnect_proxy() in order to catch all cases of 
2147         removing a proxy.
2148         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
2149         to fail if proxy isn't a proxy of action.
2150
2151 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
2152
2153         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
2154         ALL_LINGUAS
2155
2156 2003-09-07  Matthias Clasen  <maclas@gmx.de>
2157
2158         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
2159         for toolitems.
2160
2161 2003-09-06  Matthias Clasen  <maclas@gmx.de>
2162
2163         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
2164         prev_action, not from action.  (Fix by David Hampton)
2165
2166 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
2167  
2168         * Back out locale-dependent interpretation of
2169         KP_Decimal, the official XFree86 interpretation
2170         is that KP_Decimal => . KP_Separator => ,
2171         always, independent of locale. 
2172         (#105161, Frederic Crozat, 
2173         http://bugs.xfree86.org/show_bug.cgi?id=534)
2174  
2175 2003-09-04  Matthias Clasen  <maclas@gmx.de>
2176
2177         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
2178
2179         * gtk/gtktoggleaction.c (connect_proxy): 
2180         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
2181         that a "draw_as_radio" property is needed for check buttons similar to 
2182         check menu items, in order to fully support button proxies for radio actions.
2183
2184         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
2185
2186         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
2187
2188         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
2189         'type' argument of gtk_ui_manager_add_ui().
2190
2191         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
2192         to make this function as powerful as the XML methods of adding UI.  (#120647)
2193
2194 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
2195
2196         Merge from stable.
2197
2198         * docs/RELEASE-HOWTO: updates.
2199
2200 2003-09-04  Matthias Clasen  <maclas@gmx.de>
2201
2202         * tests/merge-2.ui: Use "position" instead of "pos".
2203
2204         * gtk/gtkuimanager.c (start_element_handler): No need 
2205         to be terse: Change the name of the "pos" attribute
2206         to "position".
2207
2208 2003-09-04  Matthias Clasen  <maclas@gmx.de>
2209
2210         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
2211         GtkUIManagerNode to shorten the names and to make the
2212         GTK_UI_MANAGER_<TYPE> names available for a public enum.
2213
2214         * gtk/gtkactiongroup.c:
2215         * gtk/gtkuimanager.c: Various doc tweaks.       
2216
2217         * gtk/gtkuimanager.c (start_element_handler):
2218         (end_element_handler): Improve error reporting. 
2219
2220 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
2221
2222         Merge from stable.
2223
2224         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
2225         use end_position - page_size instead of G_MAXINT, since
2226         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
2227         reported by Havoc Pennington).
2228
2229 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
2230
2231         Merge from stable.
2232
2233         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
2234         unref it. (Fixes memleak, patch from Kjartan Maraas).
2235
2236 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
2237
2238         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
2239         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
2240         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
2241         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
2242         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
2243         gtk/gtktypeutils.h: big patch from Kjartan Maraas
2244         to fix numerous typos.
2245
2246 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
2247
2248         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
2249
2250 2003-09-02  Tor Lillqvist  <tml@iki.fi>
2251
2252         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
2253         CloseHandle() on the HMODULE returned from GetModuleHandle().
2254         Didn't cause any harm, but didn't do anything useful either. When
2255         running a GTK+ program under MS's debugger, the CloseHandle() call
2256         would cause a "first-chance exception" in ntdll.dll to show up.
2257         (The exception is caught appropriately if you let it proceed, but
2258         it confuses the person using the debugger). Thanks to Bruce
2259         Hochstetler for noticing.
2260
2261 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
2262
2263         Merge from stable.
2264
2265         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
2266         to only select when button 1 is pressed introduced in the fix of
2267         bug #120187.
2268
2269 2003-09-02  Matthias Clasen  <maclas@gmx.de>
2270
2271         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
2272
2273         * gtk/gtkuimanager.c: Shorten the names of some static 
2274         functions.
2275
2276         Support adding and removing merge nodes dynamically (#120647, 
2277         Anders Carlsson):
2278         
2279         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
2280         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
2281         and made it public.
2282         (gtk_ui_manager_add_ui): New function to add UI elements
2283         without juggling XML fragments, currently restricted to menuitems,
2284         toolitems and separators. Actions still come from registered 
2285         action groups.
2286
2287 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2288
2289         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
2290         background pixmap was being offset twice, once by the ts_origin in
2291         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
2292
2293 2003-09-01  Matthias Clasen  <maclas@gmx.de>
2294
2295         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
2296         this public again, since it's occasionally useful.  (#121128,
2297         Marco Pesenti Gritti)
2298
2299         * gtk/gtkaction.c: Add an "is_important" property and propagate
2300         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
2301
2302 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2303
2304         * tests/testtoolbar.c (main): connect to "delete_event" so the
2305         application will actually quit when you close the window
2306
2307 2003-09-01  Matthias Clasen  <maclas@gmx.de>
2308
2309         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
2310         (gtk_ui_manager_get_action): g_return_if_fail() if
2311         path is NULL.
2312         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
2313         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
2314         Marco Pesenti Gritti)
2315
2316 2003-08-31  Matthias Clasen  <maclas@gmx.de>
2317
2318         * gtk/gtktoolitem.c: Fix some typos in docs.
2319
2320         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
2321         replaces gtk_ui_manager_activate().  (#120658)
2322
2323         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
2324         gtk_ui_manager_activate().
2325
2326         * gtk/gtkaction.c: 
2327         * gtk/gtkactiongroup.c: Some doc tweaks.
2328
2329         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
2330         wasn't emitted anyway. Some doc tweaks.
2331
2332 2003-08-30  Matthias Clasen  <maclas@gmx.de>
2333
2334         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
2335         rather than to "remove" on handlebox. 
2336
2337         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
2338         activate an action found by following a path.  (#120658)
2339
2340         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
2341
2342         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
2343
2344         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
2345         setter and getter. If it is set, add tearoff menu items to regular 
2346         menus, but not to popups. Add a signal "changed", which gets emitted
2347         when the merged ui has changed.  (#120649, #120656)
2348
2349         * tests/testmerge.c: Add button to test the generation of tearoff 
2350         menu items.
2351
2352 2003-08-29  Matthias Clasen  <maclas@gmx.de>
2353
2354         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
2355         Actually group the actions together rather than putting each in its 
2356         own group.
2357
2358         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
2359         proxy menu items for radio actions.
2360
2361         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
2362
2363 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2364
2365         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
2366         Fix use of uninitialized variable.
2367
2368         * gtk/gtktextutil.c
2369         (_gtk_text_util_append_special_char_menuitems): add const cast to
2370         get rid of warning
2371
2372 2003-08-29  Matthias Clasen  <maclas@gmx.de>
2373
2374         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
2375         "draw_as_radio" as a separate property, not as an alias of 
2376         "inconsistent".
2377         (gtk_check_menu_item_get_property): 
2378         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
2379
2380 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2381
2382         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
2383         are narrower than 13 time the estimated character width of the
2384         font. (#107781, David Bordoley)
2385
2386         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
2387         here if the GtkToggleButton is active. This may be the case if it
2388         is a radio button.
2389
2390         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
2391         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
2392         Suarez-Alvarez).
2393
2394         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
2395         property. (#111207, David Bordoley).
2396
2397         * gtk/gtktoggletoolbutton.c
2398         (gtk_toggle_tool_button_create_menu_proxy): use new
2399         "draw_as_radio" property on the menu item when the item is a radio
2400         tool button
2401
2402         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
2403         to only pay attention to the "use_underline" property when the
2404         button label comes from the "label" property.
2405
2406 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
2407
2408         * configure.in: Added "sq" to ALL_LINGUAS.
2409         
2410 2003-08-28  Matthias Clasen  <maclas@gmx.de>
2411
2412         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
2413         fix in the docs.
2414
2415         * gtk/gtkuimanager.c: Change the XML format:
2416         <Root> element is replaced by <ui>,
2417         <menu> element is replaced by <menubar>,
2418         <submenu> element is replaced by <menu>,
2419         <dockitem> element is replaced by <toolbar>,
2420         <popups> element is gone,
2421         verb attribute is replaced by action,
2422         name defaults to action or the element name. 
2423
2424         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
2425         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
2426         by removing the user_data, entry_type and extra_data fields, 
2427         GtkRadioActionEntry is further simplified by removing the callback. 
2428         The user_data can now be specified as an argument to 
2429         gtk_action_group_add_actions(). There is a new method 
2430         gtk_action_group_add_radio_actions(), which is similar to 
2431         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
2432         and a callback parameter in addition to the user_data. The callback
2433         is connected to the ::changed signal of the first group member.
2434         There are _full() variants taking a GDestroyNotify of 
2435         gtk_action_group_add_[radio_]actions().
2436
2437         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
2438         on every member of the radio group when the active member is changed. 
2439         Add an integer property "value", and a getter for the value of "value"
2440         on the currently active group member. 
2441
2442         * tests/testactions.c: 
2443         * tests/testmerge.c: 
2444         * tests/merge-[123].ui:  
2445         * demos/gtk-demo/appwindow.c: Adjust to these changes.
2446
2447         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
2448
2449 2003-08-27  Anders Carlsson  <andersca@gnome.org>
2450
2451         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
2452         text view, so the tool bar won't have focus.
2453
2454 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
2455
2456         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
2457         declaration not at start of block. (#120371, Damien Carbery)
2458
2459 2003-08-26  Matthias Clasen  <maclas@gmx.de>
2460
2461         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
2462         for length, not gsize.
2463
2464         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
2465         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
2466         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
2467
2468         * demos/gtk-demo/appwindow.c: 
2469         * tests/testactions.c: 
2470         * tests/testmerge.c:
2471         * tests/merge-1.ui:
2472         * tests/merge-2.ui:
2473         * tests/merge-3.ui: Adjust to the new XML format.
2474
2475 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
2476
2477         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
2478         Since we add one to the layout's reported width to
2479         account for the cursor, we need to subtract one when
2480         setting the wrap width for the layout. (Fixes infinite
2481         loop (#120325, Frederic Crozat)
2482
2483         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
2484         Be a bit more careful about rounding when converting
2485         wrapped width from Pango units to pixels.
2486
2487 2003-08-26  Matthias Clasen  <maclas@gmx.de>
2488
2489         Rename GtkMenuMerge to GtkUIManager. 
2490         
2491         * gtk/gtkuimanager.[hc]: New files. 
2492         * gtk/gtkmenumerge.[hc]: Removed. 
2493
2494         * gtk/Makefile.am: 
2495         * gtk/gtk.h:
2496         * tests/testmerge.c: 
2497         * tests/testactions.c: 
2498         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
2499         GtkUIManager.
2500
2501         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
2502         add comments to entries array, remove newlines from ui definition. Don't 
2503         use the ::add_widget signal.
2504
2505 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
2506
2507         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
2508         include page->menu_label - causes various problems,
2509         including #12047.
2510
2511 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
2512
2513         Merge from stable.
2514
2515         Fixes #115871, reported by Michael Natterer.
2516
2517         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
2518         added ctrl_pressed and shift_pressed bitfields,
2519         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
2520         arg with GtkTreeSelectMode.
2521
2522         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
2523         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
2524         (_gtk_tree_selection_internal_select_node): all updated for
2525         GdkModifierType -> GtkTreeSelectMode move.
2526
2527         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
2528         and shift_pressed around selection handling block,
2529         (gtk_tree_view_real_select_cursor_row),
2530         (gtk_tree_view_real_toggle_cursor_row),
2531         (gtk_tree_view_real_selection_cursor_parent),
2532         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
2533         instead of checking the event state. And also updates for the
2534         GdkModifierType -> GtkTreeSelectMode move.
2535
2536 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
2537
2538         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
2539         to the parent when there was no focus widget before
2540         and no focus widget after - that is, when there are
2541         no focusable widgets. (#108678, help tracking it
2542         down from Padraig O'Briain, Federico Mena Quintero, )
2543
2544         * gtk/gtkxembed.[ch]: Move various shared utilities
2545         for the XEMBED protocol eused by GtkPlug and GtkSocket 
2546         here.
2547
2548         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
2549         a flag bit that is sent with focus mesages to indicate
2550         that the focus has wrapped around on the toplevel;
2551         use this bit to catch infinite loops when there is no
2552         focusable widget at ll in the entire toplevel.
2553
2554         * tests/testsocket.c (child_read_watch): Remove an
2555         extraneous unref.
2556
2557         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
2558         Up XEMBED protocol version to 1, add logic for 
2559         sending the right version in XEMBED_EMBEDDED_NOTIFY.
2560
2561         * gtk/gtksocket.c (gtk_socket_add_window): Send
2562         the embedder window in the XEMBED_EMBEDDED_NOTIFY
2563         as the spec requires.
2564
2565 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
2566
2567         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
2568         NumLock handling for non-XKB. Add a special case
2569         hack for NumLock on Sun servers. (Patch from
2570         Robert Basch, #115819)
2571
2572 2003-08-25  Matthias Clasen  <maclas@gmx.de>
2573
2574         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
2575         Welinder)
2576
2577         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
2578         gtk_action_group_set_translation_domain): Hooks for translation of
2579         label and tooltip in GtkActionGroupEntries.  (#120620)
2580
2581 2003-08-25  Matthias Clasen  <maclas@gmx.de>
2582
2583         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
2584         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
2585         
2586         * gtk/gtkactiongroup.c: 
2587         * demos/gtk-demo/appwindow.c: 
2588         * tests/testmerge.c: 
2589         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
2590
2591 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
2592
2593         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
2594
2595 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
2596
2597         * gtk/Makefile.am: Fix accidental commit of references
2598         to gtkresizegrip.[ch]
2599
2600 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
2601
2602         * gtk/gtkrc.c: Fix some missing initializations of
2603         rc_file->directory.
2604
2605 2003-08-24  Matthias Clasen  <maclas@gmx.de>
2606
2607         * gtk/gtkaction.[ch]: 
2608         * gtk/gtktoggleaction.[ch]: 
2609         * gtk/gtktoggleactionprivate.h: 
2610         * gtk/gtkradioaction.[ch]: 
2611         * gtk/gtkactiongroup.[ch]: 
2612         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
2613         toolbars, using the EggMenu code by James Henstridge.
2614
2615         * gtk/gtk.h: Include new headers.
2616         * gtk/Makefile.am: Add new files.
2617
2618         * tests/testactions.c: Test for actions.
2619         * tests/testmerge.c: Test for menu merging.
2620         * tests/merge-[123].ui: Test data for testmerge. 
2621         * tests/Makefile.am: Add testactions and testmerge.
2622
2623         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
2624         menubar and toolbar.
2625         
2626 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
2627  
2628         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
2629         problem where rc_file->directory wasn't always getting
2630         set. (#120549, Luis Villa)
2631  
2632 2003-08-22  Christian Rose  <menthos@menthos.com>
2633
2634         * configure.in: Added "ne" to ALL_LINGUAS.
2635
2636 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
2637  
2638         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
2639         being parsed, not just the directories for those
2640         files. Use that to catch recursion. (Part of
2641         #114988)
2642  
2643 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
2644
2645         Merge from stable.
2646
2647         Fix option menu scrolling (#119821, Owen Taylor).
2648
2649         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
2650         by #80484 and the CLAMP,
2651         (get_menu_height): new function,
2652         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
2653         new_offset to handle page up/down right.
2654
2655 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
2656
2657         * gdk/x11/gdkkeys-x11.c: Change the interpretation
2658         of consumed_modifiers so that it contains:
2659          - Modifiers combinations actually found in
2660            state.
2661          - Single modifier modifier combinations.
2662         But not multi-modifier combinations that aren't
2663         in event->state. Document. (#100439)
2664
2665 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
2666
2667         Slightly modified patch from Yann Rouillard to improve selection
2668         behavior with the mouse. Fixes #120187.
2669
2670         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
2671         select/deselect items on the first button press of button 1,
2672         expand checks for row_activated to include triple clicks.
2673
2674 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
2675
2676         Merge from stable.
2677
2678         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
2679         approximate digit widths up, to avoid truncation, convert to
2680         pango pixels when we have the full string width instead of converting
2681         the approx digit width to pango pixels, take inner border and
2682         interior focus into account correctly. (Fixes #116368, patch from
2683         Morten Welinder).
2684
2685 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
2686
2687         * gtk/queryimmodules.c: Don't look at the same directory twice (in
2688         simple cases). (#120342)
2689
2690 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2691
2692         * gdk/gdkwindow.c: Make the layers in the paint stack have their
2693         own pixmap instead of sharing one. (#118317)
2694
2695         * tests/testgtk.c (create_get_image): Fixes to make the window fit
2696         on an 800x600 screen
2697
2698 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
2699
2700         Merged from stable.
2701
2702         * gtk/gtkspinbutton.c (start_spinning): change the type of step
2703         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
2704
2705 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
2706
2707         * modules/input/gtkimcontextxim.[ch]: Substantially
2708         rework the handling of status windows:
2709         
2710          - Store the current StatusWindow in the 
2711            GtkIMContextXIM structure and vice-versa, so we
2712            don't have to hunt the window hierarchy on
2713            cleanup.
2714          - Use the Gtkidget hierarchy instead of/or as well
2715            as the GdkWindow hierarchy when finding the toplevel;
2716            this helps for things like GtkHandlebox
2717          - Watch GtkWidget::hierarchy_changed to catch 
2718            changes in the toplevel without changes in the
2719            GdkWindow (reparenting)
2720          - Never create the GtkWindow for the status window
2721            unless we have text to display.
2722          - Various cleanups, add lots of comments.
2723
2724         (#115077, much help from Takuro Ashie and Hidetoshi
2725         Tajima in tracking this down and figuring out a fix.)
2726
2727         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
2728
2729         * modules/input/gtkimcontextxim.c: Track the current
2730         screen for each toplevel so that we show the status
2731         window on the right screen. (#116340, James Su)
2732
2733         * modules/input/gtkimcontextxim.c: If create a new IC
2734         when we currently have the focus, call XSetICFocus()
2735         on it.
2736         
2737         * modules/input/gtkimcontextxim.c (get_im): Fix bug
2738         with multiple open screens.
2739
2740 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
2741
2742         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
2743         Replace client_window field with 'priv' pointer,
2744         retaining binary compatibility.
2745
2746         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
2747         save use_preedit/cursor_location/focus status and set
2748         up the new slave appropriately. (#118651, Botond Botyanszki)
2749
2750 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
2751
2752         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
2753         Don't use impl->position_info.clip_rect for toplevels.
2754         (#107068, reported by Thomas Mirlacher)
2755
2756 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
2757
2758         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
2759         Add a fallback for unaligned source data for
2760         FORMAT_ARGB_MASK. (#117217)
2761
2762 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
2763
2764         * configure.in: Rework handling of REBUILD_PNGS,
2765         so that we also don't try to REBUILD_PNGS when
2766         cross-compiling and there is no gdk-pixbuf-csource.
2767         But give an error if gtk/stock-icons/gtkstockpixbufs.h
2768         is not in the source tree. (Note that REBUILDS_PNG
2769         was set backwards before, which is why you always
2770         had to manually recreate gtkstockpixbufs.h!)
2771
2772 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
2773
2774         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
2775         path to libgtk.la. (#120080, Benedikt Spranger)
2776
2777 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
2778
2779         * modules/input/imcedilla.c: Make the list of default
2780         languages more comprehensive. (Suggestion of
2781         Fco. Javier F. Serrador)
2782
2783 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
2784
2785         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
2786         parentheses when skipping args.
2787
2788 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
2789
2790         Fix major bug in row ref handling, so the new combo box
2791         will actually work right (:. Bug #107748. Patch written
2792         with help from Tim Janik.
2793
2794         The basic idea is to update the row refs in a closure,
2795         before the actual signal is emitted (rather than having
2796         the model connect signal handlers).
2797
2798         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
2799         g_signal_new calls for row_inserted, row_deleted and
2800         rows_reordered to use the new marshallers,
2801         (row_inserted_marshall), (row_deleted_marshall),
2802         (rows_reordered_marshall): the new marshallers,
2803         (gtk_tree_row_ref_inserted_callback): renamed to
2804         gtk_tree_row_ref_inserted since it isn't a callback
2805         anymore and gets called by the marshaller now,
2806         (gtk_tree_row_ref_deleted_callback): likewise,
2807         (gtk_tree_row_ref_reordered_callback): likewise,
2808         (connect_ref_callbacks), (disconnect_ref_callbacks):
2809         removed,
2810         (gtk_tree_row_reference_new_proxy),
2811         (gtk_tree_row_reference_free),
2812         (gtk_tree_row_reference_inserted),
2813         (gtk_tree_row_reference_deleted),
2814         (gtk_tree_row_reference_reordered): updated.
2815
2816 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
2817
2818         Improve Cedilla handling - based on a patch from Gustavo 
2819         De Nardin, #111334
2820
2821         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
2822         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
2823         dead_acute+c combinations. Make this the default for
2824         fr and pt.
2825
2826         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
2827         Use LC_CTYPE instead of LC_MESSAGES to pick the default
2828         input method.
2829
2830 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
2831
2832         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
2833         for Multi_key+c+apostrophe.
2834
2835 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
2836
2837         Merged from stable.
2838
2839         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
2840         on vertical scrolling. (#108035, reported by Tim Janik).
2841
2842 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
2843
2844         Merged from stable.
2845
2846         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
2847         (gtk_tree_model_sort_level_find_insert),
2848         (gtk_tree_model_sort_insert_value): fix off-by-one error.
2849         (#109292 continued, patch from Yann Rouillard).
2850
2851 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
2852
2853         (Note: This is not exactly the same as the patch which went in
2854          gtk-2-2).
2855
2856         * gtk/gtktreeview.c (gtk_tree_view_class_init),
2857         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
2858         Also support the up, down, left, right, home, end, page up and
2859         page down keys on the numpad. (#119419, reported by Alex Larsson).
2860
2861 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
2862
2863         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
2864
2865         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
2866         we link libgtk against X explicitely, since we
2867         make GTK+ calls for plug/socket.
2868
2869         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
2870         G_MODULE_SUFFIX here. 
2871
2872         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
2873         XShmPutImage with #ifdef USE_SHM.
2874
2875 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
2876
2877         * gtk/gtkfilesel.c (gtk_file_selection_populate):
2878         Don't reposition the cursor when we aren't trying
2879         to complete. (Fixes problems with selection on
2880         startup, #108433, reported by Mark Finlay.)
2881
2882         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
2883         code that tried to position the cursor after the common
2884         prefix when there was one, it wasn't working, and
2885         would be hard to fix. Just always put the cursor
2886         at the end when completing.
2887
2888 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
2889
2890         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
2891         the current directory fails because of encoding
2892         conversion problems, walk up textually to parent
2893         directories until we can convert. (#113627)
2894
2895 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
2896
2897         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
2898         Remove usage of menu_shell->ignore leave which was
2899         to deal with stray events we no longer get because
2900         we do grabbing differently. Comment it as unused in
2901         the header. (#115837, Keith Bissett)
2902
2903 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
2904
2905         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
2906         Fix some places that weren't properly Xinerama-ified.
2907
2908         * gtk/gtkmenu.c: Fix problem with windows that scroll
2909         at the top of the screen.
2910
2911 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
2912
2913         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
2914         key-press-event on the entry, so input methods get access to 
2915         key presses before GtkCombo customization.
2916         (#115451, Botond Botyanszki)
2917
2918 2003-08-13  Anders Carlsson  <andersca@gnome.org>
2919
2920         * tests/testtoolbar.c: (set_important_func), (important_toggled),
2921         (create_items_list):
2922         Add an important column.
2923         
2924 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
2925
2926         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
2927         against reentrancy from ::focus-out handlers. 
2928         (#118129, Felipe Heidrich)
2929
2930 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
2931
2932         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
2933         GDK_LOCK_MASK before calling
2934         gdk_keymap_translate_keyboard_state so bindings 
2935         and accelerators are independent of the Caps-lock
2936         key. (#115384, reported by Toni Willberg)
2937
2938 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
2939
2940         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
2941         break statements (#119494, Soeren Sandmann)
2942
2943 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
2944
2945         * gtk/gtkwidget.h: Mark parent public as well; it's
2946         extensively accessed in existing code, so there is
2947         no advantage in making people use get_parent().
2948         (Tweak to #119463 fix)
2949
2950 2003-08-11  Matthias Clasen  <maclas@gmx.de>
2951
2952         Add support for EWMH "Above" and "Below" window states.  (105100,
2953         Manuel Clos)
2954         
2955         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
2956         State" demo.
2957
2958         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
2959         gtk_window_set_keep_below.
2960
2961         * gtk/gtk.def: Add gtk_window_set_keep_above and
2962         gtk_window_set_keep_below.
2963
2964         * gtk/gtkwindow.c (gtk_window_set_keep_below):
2965         (gtk_window_set_keep_above): New functions, call the corresponding
2966         gdk functions.
2967
2968         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
2969         function, sets _NET_WM_STATE_BELOW.
2970         (gdk_window_set_keep_above): New function, sets
2971         _NET_WM_STATE_ABOVE.
2972
2973         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
2974         gdk_window_set_keep_below.
2975
2976         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
2977         GDK_WINDOW_STATE_BELOW.
2978
2979         * gdk/gdk.def: Add gdk_window_set_keep_above and
2980         gdk_window_set_keep_below.
2981
2982         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
2983         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
2984         xmlcatalog in PATH.  (#119115)
2985
2986 2003-08-10  Matthias Clasen  <maclas@gmx.de>
2987
2988         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
2989         public.  (#119463)
2990
2991 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
2992
2993         * gdk/gdkevents.h:
2994         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
2995         docs on GdkFilterFunc and GdkFilterReturn.
2996
2997 2003-08-09  Matthias Clasen  <maclas@gmx.de>
2998
2999         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
3000         to let the mouse wheels select the month. Scrolling down
3001         moves forward in time. (#53134, Abigail Brady) 
3002
3003         * gtk/gtkcalendar.c: Complete the RTL flipping support for
3004         GtkCalendar, make it possible to flip the headings using the
3005         "magic translated string" technique.  Translators, note the
3006         comment in gtk_calendar_init() explaining this.  (#102416)
3007
3008         * gtk/gtkcalendar.c: Get the information about the first day of
3009         the week from the locale using another instance of the "magic
3010         translated string" technique.  Ignore the display option
3011         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
3012
3013         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
3014         date is dragged as text, formatted via strftime %x. Text drops are
3015         accepted if g_date_set_parse() can make sense of the text. A
3016         dedicated data format for date DND has not been introduced yet,
3017         since there didn't seem to be sufficient consensus on such a
3018         format on xdg-list.  (#117297)
3019         
3020 2003-08-08  Matthias Clasen  <maclas@gmx.de>
3021
3022         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
3023         Fix a segfault.  (#115284, Jan Kratochvil)
3024
3025 2003-08-08  Tor Lillqvist  <tml@iki.fi>
3026
3027         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
3028         coordinates for events that have such. Print coordinates for enter
3029         and leave events.
3030
3031         (gdk_event_translate): Don't use event uninitialixed in the
3032         return_exposes branch of the WM_PAINT handler.
3033
3034         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
3035         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
3036         Must offset top-level window coordinates here, too.
3037
3038 2003-08-08  Matthias Clasen  <maclas@gmx.de>
3039
3040         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
3041         when maximized or fullscreen.
3042
3043 2003-08-07  Tor Lillqvist  <tml@iki.fi>
3044
3045         * gdk/win32/gdkinput-win32.h
3046         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
3047         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
3048         used.
3049
3050         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
3051         accordingly, in fact an uninitialised variable was dereferenced.
3052         
3053
3054         [Win32] Add support for multiple monitors. 
3055         
3056         * gdk/win32/gdkprivate-win32.h
3057         * gdk/win32/gdkglobals-win32.c: New global variables for
3058         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
3059         _gdk_offset_x and _gdk_offset_y.
3060         
3061         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
3062         functions, enumeration functions passed to EnumDisplayMonitors().
3063
3064         (gdk_display_open): If the EnumDisplayMonitors() and
3065         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
3066         if to find out monitor info.
3067
3068         Calculate the offset between Win32 coordinates (relative to the
3069         primary monitor's origin (and thus negative on monitors to the
3070         left of or above it), and GDK's (visible coordinates should be
3071         non-negative).
3072         
3073         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
3074         gdk_screen_get_monitor_geometry): Use information collected above.
3075
3076         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
3077         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
3078
3079         (gdk_window_get_geometry, gdk_window_get_origin,
3080         gdk_window_get_frame_extents): For top-level windows, add
3081         _gdk_offset_{x,y} to GDK root window coordinates
3082
3083         Still need to handle multiple monitors in
3084         gdk_window_fullscreen(). Probably should make the window
3085         fullscreen on the monitor where the cursor is?
3086
3087         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
3088         root window coordinates in GdkEvents.
3089
3090         
3091         [Win32] Fix geometry hint handling. Add support for resize
3092         increment and base size, and aspect ratio geometry hints. The
3093         "gridded geometry" test in testgtk now works beautifully.
3094
3095         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
3096         Turns out this function shouldn't actually ever modify the
3097         window's size, just store the hints. (Old code kept for a while
3098         inside #if 0.)
3099
3100         (gdk_window_set_hints): Remove presumably broken code that handles
3101         the position hints, this function is obsolete anyway.
3102
3103         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
3104         variables, not used.
3105
3106         (adjust_drag): New function, used to implement resize increment
3107         hints.
3108
3109         (gdk_event_translate): Handle WM_SIZING, implement resize
3110         increment and base size, and aspect ratio geometry hints here. The
3111         WM_GETMINMAXINFO handler takes care of the minimum and maximum
3112         size hints as before. Fix the WM_GETMINMAXINFO handler to take
3113         into account window decorations. No need to modify the
3114         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
3115         the defaults are fine.
3116         
3117         * gdk/win32/gdkprivate-win32.h 
3118         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
3119         _gdk_win32_get_adjusted_client_rect): New helper functions.
3120
3121 2003-08-07  Matthias Clasen  <maclas@gmx.de>
3122
3123         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
3124         toplevel->have_* flags before iterating over the _NET_WM_STATE 
3125         atoms.  (#119217) 
3126
3127 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
3128  
3129         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
3130         Fix a bug where on theme change, resize/redraw wasn't
3131         properly getting queued on toplevel windows. (#116346,
3132         Rajkumar Siva)
3133  
3134         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
3135         Fix bug where wrong coordinates were used for toplevel
3136         window.
3137  
3138 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
3139
3140         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
3141         page_num variable (Archit Baweja)
3142
3143 2003-08-07  Matthias Clasen  <maclas@gmx.de>
3144
3145         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
3146         cope with C libraries with crippled locale support.  (#115293)
3147
3148 2003-08-07  Hans Breuer  <hans@breuer.org>
3149
3150         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
3151         (only if the new window not known to Gdk) to get proper
3152         leave notification, and get rid of the wrong placed 
3153         tooltips, bug #102283
3154  
3155         (gdk_event_translate) : small code reordering to not get
3156         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
3157         menus, bug #117367
3158
3159 2003-08-07  Tor Lillqvist  <tml@iki.fi>
3160
3161         * gdk/gdk.def
3162         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
3163         missing function, trivially implement.
3164
3165 2003-08-07  Matthias Clasen  <maclas@gmx.de>
3166
3167         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
3168         rendering.  (#118646, Charles Kerr) 
3169
3170 2003-08-06  Hans Breuer  <hans@breuer.org>
3171
3172         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
3173         initialize bits to 0 (probably default on NT)
3174
3175         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
3176         now it works as intended ;-)
3177
3178 2003-08-04  Hans Breuer  <hans@breuer.org>
3179
3180         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
3181         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
3182
3183         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
3184         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
3185
3186         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
3187         against all expectations it is basically ony a call with WM_SETICON
3188         needed (the visual effect is there, though colors or mask are
3189         still somewhat wrong).
3190         * gdk/win32/gdkwindow-win32.h : place to store the HICON
3191
3192         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
3193         pixel drawing as it was fixed at 1999-08-23
3194
3195         gtk/gtk.def : updated
3196
3197 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
3198
3199         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
3200         Add a missing break. (#119156, Callum McKenzie)
3201
3202 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3203
3204         * gtk/gtkmenu.c (gtk_menu_position): New positioning
3205         algorithm.(#116649)
3206
3207 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3208
3209         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
3210         property
3211         
3212         * gtk/gtkradiotoolbutton.c
3213         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
3214
3215         * gtk/gtkradiotoolbutton.c
3216         (gtk_radio_tool_button_new_with_stock_from_widget): make this
3217         function take a stock_id.
3218
3219         * gtk/toolbar: documentation
3220
3221 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
3222
3223         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
3224         Fix problem where use_xshm was getting set wrong if
3225         MIT_SHM wasn't found. (George Lebel)
3226
3227 2003-08-04  Tor Lillqvist  <tml@iki.fi
3228
3229         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
3230         actually use the passed-in filter list. The function also needs a
3231         GdkWindow parameter, as filter functions expect
3232         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
3233
3234 2003-08-03  Matthias Clasen  <maclas@gmx.de>
3235
3236         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
3237         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
3238         the term "virtual screen".  (#119030, Tor Lillquist)
3239
3240 2003-08-02  Matthias Clasen  <maclas@gmx.de>
3241
3242         * tests/testtext.c (test_init): 
3243         * tests/testgtk.c (test_init): 
3244         * tests/testdnd.c (test_init): 
3245         * demos/pixbuf-init.c (pixbuf_init): 
3246         * demos/gtk-demo/main.c (main): Use g_setenv().
3247
3248         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
3249         g_unsetenv(). 
3250
3251 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
3252
3253         * configure.in: Requires glib-2.3.0, pango-1.2.0.
3254
3255         * configure.in: Require Xft version 2,
3256         remove code for handling older versions of pango and Xft.
3257         Many miscellaneous improvements to X checks
3258
3259         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
3260         a library to a variable, avoiding dups.
3261
3262         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
3263         Always load "fixed"
3264
3265         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
3266         for pangox.
3267
3268 2003-08-02  Matthias Clasen  <maclas@gmx.de>
3269
3270         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
3271         (palette_drop_handle): 
3272         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
3273         drops with the wrong format, since the KDE color chooser incorrectly
3274         drops application/x-color with format 8.  (#118810)
3275
3276         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
3277         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
3278         Accept drops with the wrong format, since the KDE color chooser 
3279         incorrectly drops application/x-color with format 8.  (#118810)
3280
3281 2003-08-02  Tor Lillqvist  <tml@iki.fi>
3282
3283         Fix gdk/win32 window geometry handling again. The window position
3284         in a GDK_CONFIGURE event should be that of the client area, not of
3285         the window decorations. (I was confused by the term "window
3286         border" in X11. It does *not* mean the window manager
3287         decorations. There are no X11-style window borders in Win32.)
3288         Also, this time do take the geometry hints into account
3289         appropriately when moving windows. Now testgtk's gravity test's
3290         move buttons work OK. There are stil problems with taking gravity
3291         into account when showing a hidden window.
3292
3293         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
3294         instead of separate fields.
3295         
3296         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
3297         adjust for decorations.
3298
3299         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
3300         adjust_for_gravity_hints): New functions.
3301         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
3302         above functions, take geometry hints into account.
3303         (gdk_window_set_geometry_hints): Size hints specicy client area,
3304         not including decorations.
3305
3306 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
3307
3308         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
3309         return an absolute path (#115590), fix a problem where
3310         you could crash the file selector with a looong name
3311         by returning a newly allocated buffer.
3312
3313 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
3314
3315         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
3316         bug in rarely or never hit code path (#118071,
3317         Tor Lillqvist)
3318
3319 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
3320
3321         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
3322         If the check for missing depths, try actually creating pixmaps
3323         of the depths to deal with Xinerama not reporting
3324         all the depths it should. (#115822)
3325
3326 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
3327
3328         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
3329         forward KeyRelease events as well as KeyPress events.
3330         (#115597)
3331
3332 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
3333  
3334         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
3335         if argc is 0 as well, instead of leaving it unset.
3336         (#116023, Michael Meeks)
3337  
3338 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3339
3340         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
3341         default to TRUE; ignore the property when api_mode != NEW_API
3342
3343 2003-07-31  Matthias Clasen  <maclas@gmx.de>
3344
3345         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
3346         to icon, to pacify gtk-doc.
3347
3348         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
3349         example. 
3350
3351 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3352
3353         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
3354
3355 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3356
3357         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
3358         overflow_item field.
3359
3360 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3361
3362         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
3363         an internal function
3364
3365         * gtk/gtktoolitem.h: remove unused declaration of
3366         _gtk_tool_item_get_drag_window().
3367
3368 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3369
3370         * gtk/gtktoolbutton.[ch]:
3371         (gtk_tool_button_new): swap icon_widget and label arguments to
3372         match BonoboUIToolbarButton.
3373
3374         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
3375
3376 2003-07-30  Matthias Clasen  <maclas@gmx.de>
3377
3378         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
3379         signal docs. 
3380
3381 2003-07-29  Tor Lillqvist  <tml@iki.fi>
3382
3383         Fix for #108007, #112402, #117042: There was confusion in
3384         gdk/win32 at various places whether a window position refers to
3385         the decoration position or the client area position. Also whether
3386         window size includes decorations or not.
3387         
3388         The correct interpretation apparently is that in GDK (like in
3389         X11), a top-level window position means the decoration's position,
3390         but size means the window's inner size (client area size). In the
3391         Win32 API, the window size usually includes the decorations,
3392         though.
3393         
3394         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
3395         #ifdef G_ENABLE_DEBUG.
3396         (handle_configure_event): New function, generates GDK_CONFIGURE
3397         events from WM_SIZE and WM_MOVE messages. Even if no event is
3398         generated because of the event mask, still set the private
3399         position and size fields. Calculate position and size correctly.
3400         (gdk_event_translate): Call handle_configure_event().
3401
3402         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
3403
3404         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
3405         macros. Cosmetic debugging output changes.
3406         (SafeAdjustWindowRectEx): Remove. If an application wants to
3407         locate a window outside of the screen, it's not GDK's business to
3408         prevent it. And anyway, with multiple monitors, negative
3409         coordinates are perfectly normal.
3410         (gdk_window_new): Adjust the window size for decorations after
3411         _gdk_window_init_position() has done its job. (But the big window
3412         code currently is presumably broken on Win32 anyway.)
3413         (gdk_window_move): The position passed in is supposed to be that
3414         of the window border, so don't need to adjust for decorations.
3415         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
3416
3417 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3418
3419         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
3420         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
3421         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
3422         gtk_toolbar_append_space, gtk_toolbar_insert_item,
3423         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
3424         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
3425         gtk_toolbar_new, gtk_toolbar_prepend_item):
3426
3427         Move documentation inline from template files.
3428
3429         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
3430         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
3431         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
3432         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
3433         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
3434         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
3435         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
3436
3437         Copy documentation from stable that was added after the EggToolbar
3438         branched.
3439
3440         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
3441
3442 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3443
3444         * gtk+/docs/: Commit autogenerated changes, so patches will make
3445         sense.
3446
3447 2003-07-27  Tor Lillqvist  <tml@iki.fi>
3448
3449         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
3450         the keyboard state returned by GetKeyboardState() doesn't
3451         distinguish between the left and right Control and Alt keys. Thus
3452         we cannot detect AltGr (which is supposed to be left Control +
3453         right Alt) the same way as on NT-based systems, but have to accept
3454         either Control + either Alt as AltGr.
3455
3456 2003-07-27  Matthias Clasen  <maclas@gmx.de>
3457
3458         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
3459         Fix function name in warning message.  (#118156, Tim-Philipp
3460         Mller)
3461
3462         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
3463         is-expander and is-expanded are boolean properties, not ints.
3464         (#118359, Josh Parsons)
3465
3466 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3467
3468         * gtk/gtkimagemenuitem.c
3469         (gtk_image_menu_item_toggle_size_request): don't request
3470         toggle_space when the image width is 0.
3471
3472 2003-07-25  Tor Lillqvist  <tml@iki.fi>
3473
3474         * gdk/win32/gdkprivate-win32.h
3475         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
3476         and _gdk_keyboard_has_altgr.
3477         
3478         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
3479         ones detailled here.
3480
3481         Code that has been ifdeffed out for a long time removed. Remove
3482         some really old doc comments that were left behind for some public
3483         functions, the official ones are in the X11 backend anyway. Change
3484         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
3485         multi-line boolean expressions to have the operators at ends of
3486         lines.
3487
3488         As mouse capture with SetCapture() indeed seems to work OK, no
3489         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
3490
3491         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
3492         needed at some time, and things seem to work fine now without
3493         (knock on wood).
3494
3495         Ifdef out the search for some Latin locale keyboard layout being
3496         loaded. Not used currently, but might be needed after all, if we
3497         decide that we want to be able to generate ASCII control character
3498         events with a non-Latin keyboard.
3499
3500         (assign_object): New helper function, handles the g_object_ref()
3501         and unref() calls when assigning GObject pointers.
3502                 
3503         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
3504         enter event when the pointer has moved to an ancestor window. Was
3505         left out by mistake.
3506
3507         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
3508
3509         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
3510         functionality, using ClipCursor().
3511                 
3512         (find_window_for_mouse_event): Splice part of code into new
3513         function find_real_window_for_grabbed_mouse_event().
3514
3515         (fixup_event, append_event, apply_filters): New functions, code
3516         refactored out from elsewhere.
3517
3518         (synthesize_enter_or_leave_event, synthesize_leave_event,
3519         synthesize_enter_event,
3520         synthesize_leave_events,synthesize_enter_events): Also take a
3521         GdkCrossingMode parameter, in preparation to generating
3522         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
3523
3524         (fixup_event, append_event, fill_key_event_string): New functions,
3525         code refactoring.
3526
3527         (vk_from_char, build_keypress_event, build_keyrelease_event):
3528         Removed as part of dropping WM_CHAR handling.
3529
3530         (build_key_event_state,gdk_event_translate): Call
3531         GetKeyboardState(), once, for each keyboard message, instead of
3532         several calls to GetKeyState() here and there.
3533
3534         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
3535         at it, do some major refactoring, and some fixes for potential
3536         problems noticed while going through the code.
3537
3538         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
3539         WM_KEYUP. Don't need the state variables related to whether to
3540         wait for WM_CHAR or not, and whether the current key is
3541         AltGr. Remove lots of complexity. Thus don't need the
3542         use_ime_composition flag.
3543
3544         Not handling WM_CHAR means dead key handling will have to be taken
3545         care of by GTK, but that seems to work fine, so no worry.
3546
3547         Another side-effect is that Alt+keypad digits don't work any
3548         longer, but it's better to learn to use GTK's ISO14755 support is
3549         anyway.
3550
3551         Be more careful in checking whether AltGr is involved. Only
3552         attempt to handle it if the keyboard actually has it. And
3553         explicitly check for *left* Control plus *right* Alt being
3554         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
3555         chars.
3556
3557         Handle keys using similar code as in the X11 backend. As we have
3558         built a keymap in gdkkeys-win32.c anyway, use it by calling
3559         gdk_keymap_translate_keyboard_state() to look up the keysym from
3560         the virtual key code and keyboard state. Build the key event
3561         string in exactly the same way as the X11 backend.
3562
3563         If an IME is being used, don't generate GDK events for keys
3564         between receiving WM_IME_STARTCOMPOSITION and
3565         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
3566         
3567         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
3568         the IME, not just the first one.
3569
3570         gdk_event_translate() is still quite complex, could split the
3571         message handler cases out into separate functions.
3572
3573         On mouse events, when the mouse is grabbed, use
3574         find_real_window_for_grabbed_mouse_event() in order to be able to
3575         generate correct crossing events.
3576         
3577         No longer take a pre-allocated GdkEvent as parameter. Instead,
3578         allocate events as needed and append them to the queue. (This is
3579         different from how gdk_event_translate() in the X11 backend
3580         works.) This change made the code much clearer, especially in the
3581         cases where we have to generate several GDK events for one Windows
3582         message.  Return FALSE if DefWindowProc() should be called, TRUE
3583         if not. If DefWindowProc() should not be called, also return the
3584         value to be returned from the window procedure.
3585
3586         (Previously, the interaction with gdk_event_translate()'s caller
3587         was much more complex, when we had to indicate whether the
3588         already-queued event should be left in the queue or removed, and
3589         in addition also had to indicate whether to call DefWindowProc()
3590         or not, and what value to return from the window procedure if
3591         not.)
3592
3593         Don't use a separate "private" variable required to be pointing to
3594         the GdkWindowObject of the "window" variable at all times. Just
3595         use casts, even if looks a bit uglier.
3596
3597         Notice destroyed windows as early as possible, and break out of
3598         the messsage switch.
3599
3600         Use _gdk_pointer_root as current_window when the pointer is
3601         outside GDK's top-level windows.
3602         
3603         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
3604         appropriate, based on ImmIsIME().
3605         
3606         (gdk_event_translate, gdk_event_send_client_message_for_display,
3607         gdk_screen_broadcast_client_message): Implement client messages.
3608         Use a registered Windows message to pass GDK client messages. Note
3609         that the amount of user data is restricted to four bytes, as it is
3610         carried in the LPARAM. (The WPARAM is used for the message type
3611         "atom".)
3612         
3613         (real_window_procedure): Adapt for new gdk_event_translate()
3614         interface.
3615
3616         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
3617         _gdk_input_locale_is_ime initially.
3618
3619         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
3620         of g_colormap_ref()/unref().
3621
3622         (gdk_window_new): Made code a bit more like the X11 one, pretend
3623         to handle screens (although we just have one for now).
3624
3625         * gdk/x11/gdkevents-x11.c
3626         (gdk_event_send_client_message_for_display,
3627         gdk_screen_broadcast_client_message): Document the user data
3628         limitation on Win32.
3629
3630         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
3631         and leave notify detail output.
3632
3633         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
3634         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
3635         for those, so that the GtkIMContextCimple compose tables will
3636         work. Deduce if the keyboard layout has the AltGr key, and set the
3637         above flag accordingly.
3638
3639 2003-07-26  Matthias Clasen  <maclas@gmx.de>
3640
3641         * gtk/gtkwidget.c: Document DND signals.
3642
3643 2003-07-24  Matthias Clasen  <maclas@gmx.de>
3644
3645         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
3646         insensitive when editing isn't possible.  (#118150)
3647
3648 2003-07-23  Matthias Clasen  <maclas@gmx.de>
3649
3650         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
3651         spinbutton wrap.  (#118097, John Darrington)
3652
3653         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
3654
3655 2003-07-20  Hans Breuer  <hans@breuer.org>
3656
3657         * makefile.msc : new file to build it all
3658         * Makefile.am : ... added to EXTRA_DIST
3659
3660         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
3661           gtk/makefile.msc.in tests/makefile.msc : updated
3662
3663         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
3664         functions
3665
3666         * gtk/gtkbbox.c : use g_return_val_if_fail() if
3667         there is a value to return
3668
3669         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
3670         static correctness
3671
3672         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
3673         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
3674
3675         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
3676
3677         * gtk/gtkimmulticontext.c : use gtkprivate.h
3678
3679         * gtk/stock-icons/stock_color_picker_25.png
3680           gtk/stock-icons/stock_jump_to_rtl_16.png
3681           gtk/stock-icons/stock_jump_to_rtl_24.png
3682           gtk/stock-icons/stock_redo_rtl_16.png
3683           gtk/stock-icons/stock_redo_rtl_24.png
3684           gtk/stock-icons/stock_undelete_rtl_16.png
3685           gtk/stock-icons/stock_undelete_rtl_24.png
3686           gtk/stock-icons/stock_undo_rtl_16.png :
3687           gtk/stock-icons/stock_undo_rtl_24.png :
3688         readded as binary
3689
3690 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3691
3692         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
3693         leftover request of {xy}thickness
3694
3695 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3696
3697         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
3698         attempt to add a NULL icon to the box.
3699
3700 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3701
3702         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
3703         on focus in/out.
3704
3705 2003-07-19  Matthias Clasen  <maclas@gmx.de>
3706
3707         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
3708         * gtk/gtkiconfactory.c (get_default_icons): Add
3709         stock_dialog_authentication_48.  (#65765) 
3710         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
3711         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
3712
3713         * gtk/gtkbbox.h: 
3714         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
3715         function. (#64562) 
3716
3717 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3718
3719         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
3720         declaration
3721
3722         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
3723         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
3724         instead of full draws.
3725
3726 2003-07-18  Matthias Clasen  <maclas@gmx.de>
3727
3728         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
3729
3730         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
3731         signal, move_viewport. 
3732         (gtk_text_view_move_viewport): New function which implements the
3733         move_viewport functionality. 
3734         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
3735         the viewport. (#78669) 
3736
3737         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
3738         move_viewport argument. 
3739
3740         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
3741         property.  (#111779) 
3742
3743         * gtk/gtkwindow.h: 
3744         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
3745
3746         * gtk/gtkmessagedialog.h:
3747         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
3748         (#65501, Sebastian Rittau)
3749
3750 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3751
3752         * gtk/gtktextview.c (changed_handler): use
3753         gtk_widget_queue_resize_noredraw().
3754
3755 2003-07-16  Jody Goldberg <jody@gnome.org>
3756
3757         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
3758
3759 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3760
3761         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
3762         API. 
3763
3764 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3765
3766         By popular request give toolbuttons a border.
3767         
3768         * gtk/gtktoolitem.c
3769         (gtk_tool_item_size_allocate):
3770         (gtk_tool_item_size_request): don't request and allocate a border
3771         around the child
3772
3773         * gtk/gtktoolbutton.c 
3774         (gtk_tool_button_size_allocate):
3775         (gtk_tool_button_size_request): remove these functions
3776
3777         * gtk/gtktoolbar.c 
3778         (gtk_toolbar_size_request):
3779         (gtk_toolbar_size_allocate): request and allocate a border if we
3780         have a shadow.
3781
3782 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
3783
3784         Merged from stable.
3785
3786         Fixes issues pointed out by Morten Welinder in #115140.
3787
3788         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
3789         (do_validate_rows): update validated_area with a logic OR instead
3790         of a bitwise OR,
3791         (validate_rows_handler): make the if statement match the one in
3792         validate_rows(), so we don't leak the timeout.
3793
3794 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
3795
3796         Merged from stable.
3797
3798         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
3799         should only grab focus back if the "cell_editable" widget still
3800         has focus. (Fixes #110104, testcase provided by Marco Pesenti
3801         Gritti).
3802
3803 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
3804
3805         Merged from stable.
3806
3807         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
3808         Don't set attr.event_mask twice, those things were meant to be
3809         ORred. (#115139, pointed out by Morten Welinder).
3810
3811 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
3812
3813         Merged from stable.
3814
3815         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
3816         if needed. (Fixes #115869, reported by Michael Natterer).
3817
3818 2003-07-15  Matthias Clasen  <maclas@gmx.de>
3819
3820         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
3821         Fight against gtk-doc stupidity.
3822
3823 2003-07-13  Matthias Clasen  <maclas@gmx.de>
3824
3825         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
3826         targets, to pacify gtk-doc.
3827
3828 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3829
3830         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
3831         label_text, label_widget and icon_widget. (#117312, 
3832         Christian Persch)
3833         
3834 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3835
3836         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
3837         "horizontal-offset" and "vertical-offset" that determines the
3838         position of the menu when it is a submenu. 
3839
3840         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
3841         submenus according to new vertical- and horizontal-offset
3842         properties.
3843
3844 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
3845
3846         Merged from stable.
3847
3848         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
3849         case drags to "0", scroll to the top after dropping. (Fixes #94968,
3850         reported by Alp Toker).
3851
3852 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
3853
3854         Merged from stable.
3855
3856         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
3857         code (#115784, Owen Taylor).
3858
3859 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
3860
3861         Merged from stable.
3862
3863         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
3864         free the old text and extra_attrs *after* we parsed the new
3865         markup string. (Fixes #114485, reported by Owen Taylor).
3866
3867 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
3868
3869         Merged from stable.
3870
3871         Fixes #113904, testcase provided by Rene Seindal.
3872
3873         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
3874         pressed_button to -1 when a row has been activated,
3875         (gtk_tree_view_motion_bin_window): only start a drag if there's
3876         a button being pressed.
3877
3878 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
3879
3880         Merged from stable.
3881
3882         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
3883         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
3884         to avoid a roundtrip (#110272, Owen Taylor).
3885
3886 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
3887
3888         Merged from stable.
3889
3890         This patch really really fixes scrolling. Related bugs: #81627,
3891         testcase provided by Timo Sirainen, #111500, testcase provided by
3892         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
3893
3894         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
3895         which is equal to the lower border of the window means scrolling
3896         to an invisible row, always update the dy when scrolling to an
3897         invisible row, corrected area_above/below calculations for
3898         invisible rows, when walking the tree correct the size
3899         subtracted for invalidated rows, fix wrong logic in comment.
3900
3901 2003-07-11  Matthias Clasen  <maclas@gmx.de>
3902
3903         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
3904         mime_types.  (#117219, Steve Chaplin)
3905
3906 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
3907
3908         * gdk/x11/gdkevents-x11.c (get_real_window)
3909         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
3910         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
3911         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
3912         Don't assume that all events start with XEventAny - Xkb events
3913         don't! (#105745). So, only do that for core events, and for
3914         non-core events, add a system for registering event types
3915         that start with XEventAny.
3916
3917         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
3918         Check to see if the result of gdk_window_lookup_for_display()
3919         is actually a window.
3920
3921 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
3922
3923         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
3924         check a silent assert, so it follows the g_free() behaviour.
3925
3926 2003-07-11  Matthias Clasen  <maclas@gmx.de>
3927
3928         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
3929         vertically.  (#109823, Joe Shaw)
3930
3931 2003-07-11  Morten Welinder  <terra@gnome.org>
3932
3933         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
3934         access error.  (#69436)
3935
3936 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
3937
3938         Landing GtkTreeModelFilter and the completion code. (Test program
3939         and documentation will follow next week).
3940
3941         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
3942         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
3943
3944         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
3945         necessary code to hook up completion.
3946
3947         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
3948         GtkCellLayout interface.
3949
3950         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
3951
3952         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
3953         source files.
3954
3955 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
3956
3957         Merge from stable.
3958
3959         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
3960         directly return from ->window_at_pointer, but set win_x and win_y
3961         first if needed. (Fixes #110166, reported by Arno Charlet).
3962
3963         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
3964         function to accept GdkDrawables and not just GdkWindows. This was
3965         already done in some other functions a while back, but this patch
3966         got lost for some reason.
3967
3968 2003-07-09  Matthias Clasen  <maclas@gmx.de>
3969
3970         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
3971         direction when sorting children.  (#116540, Soeren Sandmann)
3972
3973 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
3974
3975         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
3976         Change _gdk_x11_send_xevent_async() to 
3977         _gdk_x11_send_client_message_async() avoid using Xlib
3978         internals that are different on Solaris. 
3979         (#116917, Morten Welinder)
3980
3981 2003-07-08  Matthias Clasen  <maclas@gmx.de>
3982
3983         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
3984         (#116501, Doug Quale)
3985
3986 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3987
3988         * gtk/gtktoggletoolbutton.h: remove strange #define
3989         * gtk/gtktoolbutton.h: fix cut'n'paste error
3990         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
3991         private data
3992         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
3993         private data instead of g_new0()
3994         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
3995         instance private data
3996
3997 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3998
3999         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
4000         for INPUT_ONLY window
4001         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
4002         * gtk/gtknotebook.c (gtk_notebook_realize): same
4003         * gtk/gtkexpander.c (gtk_expander_realize): same
4004         * gtk/gtkrange.c (gtk_range_realize): same
4005
4006         Fix #116303
4007
4008 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4009
4010         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
4011         when detail is "menuitem". With the new menu look is isn't needed
4012         anymore.
4013
4014         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
4015         resize here, so that tool items will get a chance to relayout
4016         themselves based on the toolbar configuration.
4017
4018         change DEFAULT_SPACE_SIZE to 4 instead of 5
4019
4020         * gtk/gtktoolbar.c 
4021         Get rid of "!GTK_BIN (item)->child means separator". Separators
4022         are widgets in their own right
4023
4024         change DEFAULT_SPACE_SIZE to 4 instead of 5
4025         
4026         (get_space_size): remove this function
4027         (toolbar_item_is_homogeneous): new function
4028
4029         * gtk/gtkseparatortoolitem.c
4030         (gtk_separator_tool_item_size_request): new function.
4031
4032 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4033
4034         * gtk/gtktoggletoolbutton.h: use private data, add new
4035         internal function _gtk_toggle_tool_button_get_button()
4036
4037         * gtk/gtktoolbutton.h: move to private data
4038
4039         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
4040         private data.
4041
4042 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4043
4044         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
4045         type check, (#116947, Krasimir Angelov)
4046
4047         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
4048         
4049         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
4050         data. Not instance private data yet, because of bug 116921.
4051
4052         * gtk/gtktoolitem.h: new accessors:
4053                 gtk_tool_item_get_homogeneous ()
4054                 gtk_tool_item_get_expand ()
4055                 gtk_tool_item_get_pack_end ()
4056                 gtk_tool_item_get_use_drag_window ()
4057
4058 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4059
4060         * gtk/gtkcellrenderertext.c
4061         (gtk_cell_renderer_text_class_init): remove accidentally committed
4062         debugging spew
4063
4064         * gtk/gtktoolbar.c
4065         (gtk_toolbar_paint_space_line): remove this function
4066         (gtk_toolbar_expose): always propagate expose, even if the item is
4067         a separator item
4068
4069         * gtk/gtkseparatortoolitem.c
4070         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
4071         (get_space_size): new function.
4072         (get_space_style): new function
4073
4074 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
4075
4076         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
4077         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
4078         of GDK_POINTER_MOTION_HINT_MASK.
4079
4080         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
4081         of the drag into an idle as a superior form of 
4082         expose compression.
4083
4084         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
4085         creation here, so that we have an icon at the start
4086         of the drag (e.g., when retrieving the window cache
4087         information.)
4088
4089 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4090
4091         * docs/widget_geometry.txt: better drawing of GtkMenuItem
4092         * docs/widget_geometry.txt: add notes about GtkMenu
4093         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
4094
4095 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4096
4097         * gtk/gtkmenu.c: add vertical_padding style property.
4098         
4099         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
4100         arrow_spacing and horizontal_padding. Also center separators and
4101         make them a bit taller.
4102
4103         * gtk/*menuitem.c: use new style properties.
4104         
4105         * docs/widget_geometry.txt: Add note about GtkMenuItem
4106
4107         * gtk/gtkstyle.c 
4108         (gtk_default_draw_vline, gtk_default_draw_hline):
4109         fix +/-1 errors. 
4110
4111         (gtk_default_draw_shadow): draw a black border around menus.
4112
4113         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
4114         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
4115         x2 and y1, y2 respectively, not x, width and y, height).
4116
4117 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
4118
4119         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
4120         all the atoms in the target list at once.
4121
4122         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
4123         Local drag short-circuit.
4124
4125         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
4126         local case, poke the actions in directly instead of
4127         going through xdnd_set_actions.
4128
4129         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
4130         the local case.
4131
4132         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
4133         XSelectInput()/add a filter if the drag is local.
4134
4135         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
4136         Simplify handling of "XdndSelection".
4137
4138         * gdk/x11/gdkevents-x11.c
4139         (gdk_event_send_client_message_to_all_recurse): Somehow,  
4140         a WM_STATE => _NET_WM_STATE change hand been made here.
4141
4142         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
4143         xatom_names, not atom_names.
4144
4145         * tests/testdnd.c (target_drag_motion): Make the trashcan
4146         open again. (Got lost in deprecation cleanup.)
4147
4148 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
4149
4150         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
4151         earlier, so we don't get a big pile of uncompressed
4152         motion events before the grab takes effect.
4153
4154         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
4155         gdk_window_process_all_updates() so that the area
4156         we are dragging over gets a change to redraw.
4157
4158         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
4159         gdk_window_get_position(), not gdk_window_get_origin().
4160
4161         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
4162         gdkdisplay-x11.h: use XShapeQueryExtension to 
4163         avoid duplicate XQueryExtension when we actually
4164         use it. Remove unnecessary caching in GdkDisplayX11.
4165
4166 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
4167
4168         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
4169         Function to get a range of information about all the
4170         children of a window in a single pass.
4171
4172         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
4173         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
4174         _gdk_x11_get_window_child_info() to greatly reduce
4175         the number of roundtrips.
4176
4177 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
4178
4179         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
4180         a function to XSendEvent() and call a calback on
4181         failure/success.
4182
4183         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
4184         messages to the same process, use _gdk_send_xevent_async().
4185
4186 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
4187
4188         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
4189         toplevel-specific pieces of GdkWindowImplX11 into
4190         a separate GdkToplevelX11 structure.
4191
4192 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
4193
4194         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
4195         some leftover fields.
4196
4197 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
4198
4199         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
4200         Use asynchronously _gdk_x11_set_input_focus_safe
4201         to avoid having to trap errors and XSync().
4202
4203         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
4204         _gdk_x11_set_input_focus_safe() here as well.
4205
4206         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
4207         Rework handling of property notifies on _NET_WM_STATE
4208         so that we ignore _NET_WM_DESKTOP notifies unless we
4209         really care.
4210
4211         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
4212         XShmQueryExtension() rather than XQueryExtension() to
4213         avoid extra rountrip.
4214
4215         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
4216         Remove unused call to XGetWindowAttributes()
4217         
4218         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
4219         unused call to XGetKeyboardControl().
4220
4221         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
4222         Add (#99571)
4223
4224         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
4225         No-op implementations of gdk_display_flush().
4226
4227         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
4228         gdk_display_flush() rather than gdk_flush() to avoid
4229         XSync().
4230         
4231         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
4232         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
4233         so that we don't have to get the property back from the server.
4234
4235         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
4236         the serial of when we map a toplevel to allow optimizing
4237         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
4238
4239         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
4240         XTranslateCoordinates() for override-redirect windows.
4241
4242 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
4243
4244         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
4245         about setting window group after the window is mapped from docs
4246         - nothing the ICCCM forbids that.
4247
4248         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
4249         Fix g_return_val_if_fail() in void return function.
4250
4251         * configure.in: Fix misplaced comma that was resulting
4252         in XShm always being disabled.
4253
4254 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4255
4256         * tests/stresstest-toolbar: remove this accidentally committed
4257         file.
4258         
4259         * tests/stresstest-toolbar.c: really add this new test
4260
4261 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4262
4263         * tests/stresstest-toolbar.c: new test for removing items
4264         
4265         * tests/testtoolbar.c: add a popup menu
4266
4267         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
4268           assert widget->parent == container when the container is a
4269           toolbar.
4270
4271         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
4272         simpler. Also make correct.
4273
4274         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
4275         popup_context_menu a boolean handled signal.
4276
4277 2003-07-04  Tor Lillqvist  <tml@iki.fi>
4278
4279         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
4280         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
4281         the width and height of the bounding rectangle only after the
4282         minumum x and y have been found, and need a separate loop for
4283         it. Thanks to Bruce Hochstetler for providing a sample program
4284         exhibiting the bug.
4285
4286 2003-07-03  Tor Lillqvist  <tml@iki.fi>
4287
4288         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
4289         (#116537, Peter Zelezny)
4290
4291 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4292
4293         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
4294         fix warning. Assign something to old_value to quiet gcc
4295
4296         * gtk/gtkcalendar.c 
4297         (start_spinning): gtk_timeout_add->g_timeout_add
4298
4299         * gtk/gtkicontheme.c 
4300         (theme_lookup_icon): Make it compile (remove double semicolon)
4301
4302         * gtk/gtktoolbutton.c
4303         (gtk_tool_button_class_init): Long comment about properties.
4304         (gtk_tool_button_class_init): Improve text for "use_underline"
4305         property
4306         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
4307         on whether the passed-in label has use_mnemonic set
4308         (gtk_tool_button_create_menu_proxy): Split image cloning out in
4309         new function. Make that function also handle image with pixbuf
4310         storage.
4311         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
4312         instead of gtk_container_remove().
4313         (gtk_tool_button_construct_contents): Fix eliding bug
4314
4315         * gtk/gtktoolbar.c
4316         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
4317         by Morten Welinder
4318         (gtk_toolbar_button_press): Make popup_context_menu signal provide
4319         coordinates and button number
4320
4321         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
4322
4323         * tests/apple-red.png: new file
4324
4325 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
4326          
4327         * gtk/gtkicontheme.[ch]: Implement a loader for
4328         named themed icon based on from gnome-desktop library
4329         by Alex Larsson.
4330
4331         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
4332         from gnome-desktop.
4333
4334         * gtk/gtkiconfactory.[ch]: Add
4335         gtk_icon_source_set/get_icon_name() to allow stock icons
4336         to be based off of named theme icons.
4337
4338         * gtk/gtkiconfactory.c: Rework sources so that the source
4339         is *either* a pixbuf, or a filename, or an icon name,
4340         instead of the pixbuf/filename mix it was before. Put a
4341         workaround for get_pixbuf() so that it can return the
4342         filename pixbuf, e.g, for render_icon().
4343
4344         * gtk/gtkiconfactory.c: Make the default setup use
4345         themed icons, and add builtin icons to the default
4346         icon theme for all the standard pixbufs, so we
4347         don't rely on actually having an icon theme on disk.
4348
4349         * gtk/gtkrc.c: Add support for @"icon-name" to specify
4350         a themed icon for a stock icon source.
4351
4352         * tests/Makefile.am test/testicontheme.c: Add a test
4353         program from gnome-desktop.
4354
4355         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
4356         Net/IconThemeName / gtk-icon-theme-name setting.
4357
4358         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
4359         update the icon cache serial so we don't continually
4360         think we are out-of-date.
4361
4362         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
4363         to ::direction_set that should have been to ::direction-changed
4364
4365 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
4366
4367         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
4368         style to the widget.
4369
4370 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4371
4372         * gtk/gtk.h: Add new toolbar headers
4373
4374         * tests/testtoolbar.c: new file
4375
4376         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
4377
4378         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
4379
4380 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4381
4382         * gtk/gtktoolbar.c:
4383         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
4384         inside a for loop (pointed out by Morten Welinder).
4385         (gtk_toolbar_focus_home_or_end): Minor formatting change
4386
4387         Comments from Owen:
4388
4389         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
4390         gtk_toolbar_elide_underscores instead.
4391
4392         * gtk/gtktoolbar.c: rename signal from focus_ends to
4393         focus_home_or_end.
4394         (_gtk_toolbar_elide_underscores): export this as an internal
4395         function.
4396         (gtk_toolbar_move_focus): add comment explaining difference to
4397         gtk_toolbar_focus();
4398         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
4399         TAB_BACKWARD focus the right widgets in RTL mode
4400
4401         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
4402         "label" and "icon" parameters
4403
4404         * gtk/gtktoolbutton.[ch]: remove icon_set property.
4405
4406 2003-07-01  Matthias Clasen  <maclas@gmx.de>
4407
4408         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
4409         (116364, Morten Welinder) 
4410
4411         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
4412         corresponding dialogs.
4413
4414         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
4415         gtkcolorbutton.h.  
4416         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
4417
4418         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
4419
4420         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
4421
4422         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
4423
4424         * gtk/gtkexpander.c: Small additions to the docs. 
4425
4426 2003-07-01  Tor Lillqvist  <tml@iki.fi>
4427
4428         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
4429         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
4430
4431 2003-07-01  Matthias Clasen  <maclas@gmx.de>
4432
4433         * configure.in: Check for Xcursor.
4434         
4435         * gdk/x11/gdkcursor-x11.c:
4436         * gdk/gdkdisplay.h: 
4437         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
4438         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
4439         gdk_display_supports_cursor_color(),
4440         gdk_display_get_default_cursor_size() and 
4441         gdk_display_get_maximal_cursor_size().  (#69436)
4442
4443 2003-06-30  Tor Lillqvist  <tml@iki.fi>
4444
4445         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
4446         callback proc for EnumWindows().
4447         (gdk_drag_find_window_for_screen): Actually take the drag_window
4448         argument into account: Instead of using WindowFromPoint(), use
4449         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
4450         M Brown, Herman Bloggs)
4451
4452         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
4453         gdk_window_ref()/unref() calls with g_object_ref()/unref().
4454         Consistently use %p format in debugging output of pointers and
4455         HANDLEs.
4456
4457 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
4458
4459         * gtk/gtkexpander.h: kill some stray characters
4460         breaking the build.
4461
4462 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
4463
4464         Add GtkExpander. See discussion in bug #60553.
4465
4466         * gtk/gtkexpander.[ch]: add.
4467         
4468         * gtk/Makefile.am: build gtk-expander.[ch].
4469         
4470         * docs/widget_geometry.txt: add info on the layout
4471         of GtkExpander.
4472
4473 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4474
4475         * gtkradiotoolbutton.c:         new file
4476         * gtkradiotoolbutton.h:            "
4477         * gtktoggletoolbutton.c:           "
4478         * gtktoggletoolbutton.h:           "
4479         * gtktoolbutton.c:                 "
4480         * gtktoolbutton.h:                 "
4481         * gtktoolitem.c:                   "
4482         * gtktoolitem.h:                   "
4483         * gtktoolbar.c: many changes
4484         * gtktoolbar.h: many changes
4485         * gtkseparatortoolitem.c:       new file
4486         * gtkseparatortoolitem.h           "
4487
4488         New toolbar.
4489         
4490         - Items on a toolbar are now separate widgets, instances of a
4491           subclass of GtkToolItem.
4492
4493         - Items there aren't room for on the toolbar are unmapped, and an
4494           overflow menu with a proxy menu item is added instead.
4495
4496         - The toolbar is keyboard navigatable. Press TAB to focus the
4497           first item, then use arrow keys and Ctrl TAB to move around the
4498           toolbar. TAB moves focus out of the toolbar.
4499
4500         - Bascially all of the old toolbar API is deprecated in favor of
4501           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
4502
4503         - The toolbar is backwards compatible with the old toolbar.
4504
4505 2003-06-29  Matthias Clasen  <maclas@gmx.de>
4506
4507         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
4508         from docs, some more formatting fixes. 
4509
4510 2003-06-28  Tor Lillqvist  <tml@iki.fi>
4511
4512         Fix for #111028, thanks to J. Ali Harlow, who writes:
4513         I found that the GdkPixmap->GdkImage reference really isn't
4514         important. It's only really there to have somewhere convenient to
4515         store the location of the pixel data in the pixmap and as an easy
4516         way of accessing the dimensions of that data. I have therefore put
4517         together a fix which removes this reference entirely which seems
4518         to solve the problem.
4519
4520         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
4521         Instead of a pointer to a GdkImage, keep a pointer to the pixels
4522         directly.
4523
4524         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
4525         (_gdk_win32_new_image): New function, replacing the above. Creates
4526         a GdkImage without any associated GdkPixmap.
4527         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
4528
4529         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
4530
4531         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
4532         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
4533         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
4534         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
4535         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
4536         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
4537         Corresponding changes.
4538
4539 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4540
4541         * gtk/gtktreeviewcolumn.c
4542         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
4543         and "is_expanded" if the new value is different fromt he old one.
4544
4545 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
4546
4547         * docs/faq/gtk-faq.sgml: Fix typos. Update
4548         thread example I missed yesterday.
4549
4550 2003-06-24  Matthias Clasen  <maclas@gmx.de>
4551
4552         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
4553         shadow_type. 
4554
4555         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
4556         (gtk_widget_class_list_style_properties): Use same parameter names as in  
4557         header (to silence gtk-doc).
4558
4559         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
4560
4561 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
4562
4563         * docs/faq/gtk-faq.sgml: Thread support updates
4564         from Owen. Various suggestions from Steve Chaplin.
4565
4566 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
4567
4568         * po/id.po: Updated Indonesian translation
4569
4570 2003-06-21  Tor Lillqvist  <tml@iki.fi>
4571
4572         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
4573         emulating X11's automatic grab on button down, pass owner_events
4574         as FALSE. According to the XLib spec, automatic grabs use True for
4575         owner_events when OwnerGrabButtonMask is selected, and I don't see
4576         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
4577         (find_window_for_pointer_event): Improve debugging output.
4578
4579 2003-06-17  Tor Lillqvist  <tml@iki.fi>
4580
4581         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
4582         subdirectory, where libtool 1.5 installs them.
4583
4584         * README.win32: Point to FSF's binary Win32 distribution of
4585         gettext-runtime.
4586
4587 2003-06-17  Matthias Clasen  <maclas@gmx.de>
4588
4589         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
4590         macros to check for XML catalog contents and path, borrowed from
4591         gtk-doc. 
4592         * configure.in: New option --enable-man to enable regeneration of
4593         man pages from Docbook, if the necessary tools are found.
4594
4595 2003-06-15  Matthias Clasen  <maclas@gmx.de>
4596
4597         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
4598         * gtk/gtknotebook.c (gtk_notebook_class_init): 
4599         * gtk/gtkalignment.c (gtk_alignment_class_init): 
4600         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
4601         as 2.4 additions.
4602
4603         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
4604         to the proper place, immediately before the g_signal_new() call.
4605
4606         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
4607         more obvious.  (#115122, Jeff Franks)
4608
4609 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
4610
4611         * gtk/gtkwidget.c: (event_window_is_still_viewable):
4612         Special case pixmaps. (#114880)
4613         
4614 2003-06-12  Matthias Clasen  <maclas@gmx.de>
4615
4616         * gtk/gtkwidget.c: Document child-notify and drag-data-received
4617         signals. Owen, we need to figure out where the best place for
4618         these comments in the source is. I currently put them in front of
4619         the signals enum.
4620
4621 2003-06-11  Matthias Clasen  <maclas@gmx.de>
4622
4623         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
4624
4625 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
4626
4627         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4628         silly typo fix. s/seperator/separator/. This gets rid of the
4629         assert spam when using TreeView.
4630
4631 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
4632
4633         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
4634         function for XIM instantiate callback.
4635         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
4636         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
4637         actually made.
4638         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
4639         for XIM's destroy callback.
4640         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
4641         is set or not - if it's not set, call xim_info_try_im() to try to
4642         initiaize it.
4643         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
4644         filter_key_release flag of the context.
4645         * modules/input/gtkimcontextxim.c (get_ic_real): removed
4646         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
4647         code from the removed get_ic_real().
4648
4649         For XIM instantiation, destruction and re-instantiation. With
4650         this, Gtk+ apps will be able to connect or reconnect to the XIM,
4651         when it starts after the apps, or when the XIM gets lost and recover.
4652         (#113099, #107782).
4653
4654 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
4655
4656         Merged from stable.
4657
4658         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
4659         check if width is !null, not *width. Doh.
4660
4661 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
4662
4663         Merged from stable.
4664
4665         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
4666         Remove the weird dx logic, get all cell_area and background_area
4667         calculations right. Not sure what was up with it before. (Fixes
4668         #110989, testcase from Vasco Alexandre da Silva Costa).
4669
4670 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4671
4672         * tests/testgtk.c: Make it compile with C89 compilers
4673
4674 2003-06-10  Matthias Clasen  <maclas@gmx.de>
4675
4676         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
4677         property "overwrite".
4678         (gtk_text_view_[gs]et_property): Handle "overwrite".
4679         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
4680         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
4681
4682 2003-06-09  Matthias Clasen  <maclas@gmx.de>
4683
4684         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
4685         properties "resize" and "shrink".
4686         (gtk_paned_[gs]et_child_property): Implementations of 
4687         GtkContainer::[gs]et_child_property.  
4688         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
4689         paned child properties instead of remove/add hacks.  (#114667, 
4690         Soeren Sandmann) 
4691
4692 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
4693
4694         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
4695         out event->window test - it wasn't needed because
4696         of the call to get_widget_coordinates().
4697
4698         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
4699         call to gtk_widget_grab_focus() when not clicking on
4700         any tabs. (Real fix for #114534)
4701
4702 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
4703
4704         * tests/testdnd.c: Use application/x-rootwindow-drop for
4705         root window drops. (#108670, Alex Larsson)
4706
4707         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
4708         Accept either application/x-rootwin-drop (what GTK+ has always used)
4709         or application/x-rootwindow-drop (what the XDND standard specifies).
4710
4711 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
4712
4713         * gtk/gtkwidget.c (event_window_still_viewable): 
4714         Before delivering an event to a widget, check that
4715         (if relevant), the event's window is still viewable.
4716         (#105642, Dennis Björklund)
4717
4718         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
4719         NULL out private->parent, since after destruction
4720         it might not be valid any more.
4721
4722         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
4723         accesses before g_return_val_if_fail(). Treat 
4724         DESTROYED windows as unmapped.
4725
4726 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
4727
4728         * gtk/gtkentry.c: Recompute unconditionally in
4729         gtk_entry_style_set, and in a new gtk_label_screen_changed().
4730         Protect the guts of recompute_idle_func() with
4731         gtk_widget_has_screen(). (#114040, Morten Welinder) 
4732         Fix FALSE/0 confusion.
4733         
4734 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4735
4736         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
4737         Fixes (#114669)
4738
4739 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
4740
4741         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
4742         set_adjustment (viewport, NULL);
4743
4744 2003-06-07  Matthias Clasen  <maclas@gmx.de>
4745
4746         * gtk/gtkiconfactory.c (get_default_icons): 
4747         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
4748         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
4749         undelete and revert.  (#96633)
4750         
4751 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
4752
4753         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
4754         refactoring of code to reduce duplication; fixes include:
4755
4756         - gtk_viewport_realize(): Position the window correct from adjustment 
4757         values. (#110737, Michael Natterer)
4758
4759         - Remove some division-by-zero checks in places where there is no 
4760         longer division. (#110737)
4761
4762         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
4763         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
4764         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
4765
4766         - Switch over to encapsulated lazy-creation for hadjustment/
4767         vadjustment; even with the CONSTRUCT property, we need this after
4768         destroy.
4769
4770         - When updating the adjustment, immediate set their values to
4771         match the the current range of the viewport, and update the 
4772         viewport position to match the value of the new adjustments. 
4773         (Part of #1165)
4774
4775 2003-06-06  Tor Lillqvist  <tml@iki.fi>
4776
4777         * gdk/win32/gdkprivate-win32.h: Fix typo.
4778
4779         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
4780         graphics_exposures and subwindow_mode, too, even if they aren't
4781         currently used.
4782
4783 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
4784
4785         Merged from stable.
4786
4787         * gtk/gtktreeview.c (do_expand_collapse),
4788         (expand_collapse_timeout), (cancel_arrow_animation): made
4789         expand_collapse_timeout a wrapper with locks around     
4790         do_expand_collapse, made cancel_arrow_animation use
4791         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
4792         Peter Bloomfield).
4793
4794 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
4795
4796         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
4797         * modules/input/gtkimcontextxim.c (preedit_start_callback,
4798         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
4799         to keep preedit-[start,changed,end] signals from being called during
4800         finalization (#111861).
4801
4802 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
4803
4804         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
4805         presses that are not on the tab (#114534).
4806
4807 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
4808
4809         * demos/Makefile.am: Conditionalize dependencies for
4810         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe). 
4811         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
4812         test-inline-pixbufs.h if we don't have libpng.
4813
4814         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
4815         Add a dependency on gdk-pixbuf.loaders when not 
4816         cross-compiling, remove the dependency on gdk-pixbuf-csource
4817         when not cross compiling.
4818
4819 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
4820
4821         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
4822         gtk_window_get_geometry_info() returning NULL.
4823         (#107311, John Finlay)
4824
4825 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
4826
4827         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
4828         twice the border width from the width/height, not
4829         1x the border width. (#106336, Rodney Dawes)
4830
4831 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
4832  
4833         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
4834         If at the end of the buffer, move to the end iter -
4835         parallels behavior of move_iter_to_previous_line.
4836         (#81960, Padraig O'Briain)
4837  
4838 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
4839
4840         #80023, Yao Zhang, TOKUNAGA Hiroyuki
4841
4842         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
4843         Account for the preedit cursor offset if the iter passed
4844         in is at the same place as the insertion cursor.
4845
4846         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
4847         Encapsulate getting the insertion cursor location.
4848
4849         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
4850         Pass the real y/height to the IM context. Take 
4851         text_view->x/yoffset into account.
4852
4853 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
4854
4855         * gtk/gtktextview.[ch]: Never scroll on focus in
4856         (#81893, Patch from Paolo Maggi)
4857
4858         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
4859         Scroll to the current cursor location before handling
4860         the action, in case the user just tabbed in
4861         and the cursor is offscreen.
4862
4863 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
4864          
4865          #107883, Gustavo Giráldez
4866
4867         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
4868         Split out the case where we know we changed, and 
4869         already dealt with our cached line being invalidated
4870         from external calls to gtk_text_layout_changed.
4871
4872         * gtk/gtktextlayout.c (gtk_text_layout_changed):
4873         Check if the invalidate yrange intersects our
4874         cached line, and clear it if necessary.
4875
4876 2003-06-05  Tor Lillqvist  <tml@iki.fi>
4877
4878         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
4879         filters.
4880
4881 2003-06-05  Matthias Clasen  <maclas@gmx.de>
4882
4883         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
4884         (gtk_text_view_grab_notify): 
4885         (gtk_text_view_state_changed): Implement these
4886         to unobscure cursor when grab shadowed or insensitised.
4887         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
4888         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
4889         gtk_text_view_motion_event().
4890         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
4891
4892         * gtk/gtktextview.c (select_all): New keybinding signal for
4893         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
4894
4895         * gtk/gtkcalendar.c (calendar_timer): 
4896         (stop_spinning): Replace deprecated gtk_timeout_* functions by
4897         their GLib counterparts.  (#114429)
4898
4899         * gtk/gtktreestore.c (gtk_tree_store_new): 
4900         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
4901         types.
4902
4903 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
4904
4905         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
4906         When drawing underlines, join up adjacent runs
4907         where possible, so we don't get changes in 
4908         shaper/font/etc. breaking underlines. (#103662,
4909         Kang Jeong-Hee)
4910
4911 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
4912
4913         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
4914         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
4915         improve the speed of inserting rows into an already sorted list,
4916         #109292
4917
4918 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
4919
4920         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
4921         track of when we have a clip mask set for the GC,
4922         and when we unset it, or switch to a clip region,
4923         immediately call XSetClipMask (..., None) to avoid
4924         Xlib caching stale data. (#111806)
4925
4926         * gtk/gtktextdisplay.c: Don't set a clip mask
4927         when drawing alpha pixmaps; it isn't necessary any more.
4928         (#111806)
4929
4930 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
4931
4932         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
4933         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
4934         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
4935         (#92548, Tim Evans)
4936
4937         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
4938         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
4939         Use state_type = STATE_INSENSITIVE for insensitive menu items.
4940
4941 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
4942
4943         Merged from stable.
4944
4945         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
4946         assert for get_info. (reported by Michael Natterer),
4947         (gtk_tree_view_expand_all_emission_helper),
4948         (gtk_tree_view_expand_all_helper): emit row_expanded for all
4949         expanded rows during an _expand_all operation. (Fixes #111280,
4950         reported by Benjamin Bayart).
4951
4952 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
4953
4954         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
4955         respond to pings on a root window; prevents infinite
4956         loops if we are selecting for SubstructureNotify on the
4957         root window. (#111945, Sergey V. Udaltsov)
4958
4959 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
4960
4961         #71597, reported by Morten Welinder
4962
4963         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
4964         (Patch from Christian Petig)
4965
4966         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
4967         Major rewrite of 555 and 565 conversion routines:
4968
4969         - Move all the bit shifting into a small block of macros,
4970           eliminating much duplication of complicated arithmetic.
4971         - Get rid of 2-pixels at a time code, which was buggy,
4972           hard to maintain, caused unaligned accesses, and
4973           probably didn't actually perform any better.
4974         - Simplify cases where different data types were
4975           used for the little and big endian cases, use
4976           GUINT16_SWAP_LE_BE() where appropriate.
4977                 
4978 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
4979
4980         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
4981         bad optimization for src_rowstride == dest_stride.
4982         (Didn't consider the case where we were copying only
4983         partial widths of a wider source buffer)
4984         (#113034, reported by Hans Petter Jansson)
4985
4986 2003-06-03  Michael Natterer  <mitch@gimp.org>
4987
4988         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
4989         reenabled button_release events for xinput devices. (#113948)
4990
4991 2003-06-03  Christian Rose  <menthos@menthos.com>
4992
4993         * configure.in: Added "li" to ALL_LINGUAS.
4994
4995 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
4996
4997         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
4998         map the event window if the notebook isn't mapped. (#113980,
4999         Richard Reich)
5000
5001 2003-06-02  Sven Neumann  <sven@gimp.org>
5002
5003         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
5004
5005         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
5006
5007 2003-06-01  Matthias Clasen  <maclas@gmx.de>
5008
5009         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
5010         Since: 2.4 to the docs.
5011
5012         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
5013         an example to the docs.  (#98427)
5014
5015 2003-05-30  Murray Cumming  <murrayc@usa.net>
5016
5017         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
5018         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
5019         uses the new private data system - see g_type_class_add_private() in
5020         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
5021
5022 2003-05-30  Matthias Clasen  <maclas@gmx.de>
5023         
5024         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
5025         signature of gtk_notebook_draw_arrow() for Solaris builds to go
5026         through.  (#114043, Anand Subramanian)
5027
5028 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5029
5030         * modules/input/imipa.c: 
5031         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
5032
5033 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5034
5035         * gtk/gtkimmodule.c (_gtk_im_module_list):
5036         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
5037
5038 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5039
5040         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
5041         label of default input method localizable.
5042         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
5043         use translations of input method context names
5044         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
5045           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
5046           modules/input/imti-er.c, modules/input/imti-et.c
5047           modules/input/imviqr.c, modules/input/imxim.c
5048         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
5049         (#113850).
5050
5051 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
5052
5053         Merged from stable.
5054
5055         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
5056         grab separate, the user might clear the tree in the focus-in
5057         callback. (Fixes #113086, testcase from Felipe Heidrich).
5058
5059 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
5060
5061         Merged from stable.
5062
5063         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
5064         of row reference when we unset the model. Also reset
5065         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
5066
5067 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
5068
5069         Merged from stable.
5070
5071         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
5072         the current editing, if it exists. (Fixes #108956, reported by
5073         Michael Natterer).
5074
5075 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
5076
5077         Merged from stable.
5078
5079         * gtk/gtktreeview.c (check_selection_helper): new function,
5080         (gtk_tree_view_row_deleted): traverse the tree from the
5081         deleted node to see whether the selection changed, instead of
5082         just checking this node. (Fixes #107400, reported by 'Duncan').
5083
5084 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
5085
5086         Merged from stable.
5087
5088         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
5089         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
5090         instead of _maybe_begin_dragging_row, so the icon can be
5091         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
5092
5093 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
5094
5095         Merged from stable.
5096
5097         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
5098         cell_area x/width for the expander if needed. (Fixes #101748,
5099         reported by Dave Cook and Mariano Suarez-Alvarez).
5100
5101 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
5102
5103         Merged from stable.
5104
5105         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
5106         if tree/node are still the same after _internal_select_node.
5107         (Fixes #92256, reported by edscott).
5108
5109 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
5110
5111         Fixes #75745, reported by Richard Hult. Merged from stable.
5112
5113         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
5114         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
5115         cursor or not.
5116
5117         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
5118         if we are rendering a cursor row, and the cell the be
5119         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
5120         flag (else we unset it).
5121
5122 2003-05-27  Matthias Clasen  <maclas@gmx.de>
5123
5124         * gtk/gtkwindow-decorate.c: 
5125         * gtk/gtktreeprivate.h: 
5126         * gtk/gtkdnd.c: 
5127         * gdk/win32/gdkwindow-win32.h: 
5128         * gdk/linux-fb/gdkprivate-fb.h: 
5129         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
5130         unspecified signedness.  (#112919, Morten Welinder)
5131
5132         * gtk/queryimmodules.c (escape_string): 
5133         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
5134         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
5135         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
5136         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
5137         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
5138         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
5139         Morten Welinder) 
5140
5141 2003-05-27  Tor Lillqvist  <tml@iki.fi>
5142
5143         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
5144         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
5145
5146         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
5147         win32/libgdk-win32.la.
5148
5149         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
5150
5151 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5152
5153         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
5154         scrollbar slider length 21 instead of 7.
5155
5156 2003-05-23  Matthias Clasen  <maclas@gmx.de>
5157
5158         * gtk/gtknotebook.c: Add support for up to four scroll
5159         arrows. Control their display by new style properties
5160         "has_forward_stepper", "has_backward_stepper",
5161         "has_secondary_forward_stepper" and
5162         has_secondary_backward_stepper". (#110540)
5163
5164         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
5165         click_child three bits wide, add
5166         has_{before,after}_{previous,next} fields.
5167
5168         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
5169         focus out of hex_entry.  (#112665)
5170         (hex_focus_out): New signal handler for focus out of hex entry.
5171
5172 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
5173
5174         * gtk/gtkwidget.c (gtk_widget_realize): 
5175         g_return_if_fail() if
5176         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
5177         (#107872, Christian Reis)
5178
5179 2003-05-22  Matthias Clasen  <maclas@gmx.de>
5180
5181         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
5182         (gtk_file_selection_rename_file): Some keynav improvements for the
5183         "Rename File" and "Create Directory" subdialogs: Enter in entry
5184         activates default, default is "Create"/"Rename", Escape cancels
5185         dialog.  (#113110)
5186         (gtk_file_selection_set_filename): Add a hint about opening 
5187         directories.  (#113175)
5188
5189 2003-05-22  Matthias Clasen  <maclas@gmx.de>
5190
5191         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
5192         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
5193         anyway.  (#113476)
5194
5195 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
5196
5197         * gtk/gtkprogress.c (gtk_progress_set_format_string,
5198         gtk_progress_set_show_text): Always queue a resize ... 
5199         we rely on the size-allocate to do the update, plus a 
5200         different format can actually change our size requisition.
5201         (#111052, Vasco Alexandre da Silva Costa)
5202
5203         * gtk/gtkprogress.c (gtk_progress_changed): Track
5204         ::changed as well as ::value_changed, and queue a
5205         resize on ::changed when necessary.
5206
5207         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
5208         Call gtk_progress_changed() here to update or 
5209         queue a resize as necessary.
5210
5211 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5212
5213         * gtk/gtkimcontextsimple.c: added composing rules of
5214         Greek accented letters, patch by Vasilis Vasaitis (#107507)
5215
5216 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5217
5218         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
5219         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
5220         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
5221
5222 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5223
5224         * gtk/gtkimcontextsimple.c: 
5225         code that can check the compose table for ascending order,
5226         by Vasilis Vasaitis (#104862).
5227
5228 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
5229
5230         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
5231         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
5232         to handle the case where a modifier not in the mask
5233         (like Num_Lock) changes the key value, so replace
5234         the masked state with a state/mask pair. (#106913,
5235         Olivier Ripoll)
5236
5237         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
5238         in state/mask pair to _gtk_key_hash_lookup()
5239
5240 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
5241
5242         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
5243         fix a memory leak, free input context list (#113259).
5244
5245 2003-05-21  Matthias Clasen  <maclas@gmx.de>
5246
5247         * configure.in (all_loaders): Add pcx.
5248
5249         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
5250
5251 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
5252
5253         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
5254         accept a missing gtk.immodules file, some people
5255         want to run without one. (#112406, patch from
5256         Arnaud Charlet)
5257
5258 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
5259
5260         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
5261         height/width confusion (#113370, Xan Lopez)
5262
5263 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
5264
5265         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
5266         zero all unused parts of client messages (Mainly Motif DND
5267         and EWMH). Also, fix a couple places where we were putting
5268         contents into Motif DND messages that didn't belong.
5269         (#113361, EWMH problem reported by Lubos Lunak)
5270
5271         * gtk/gtkselection.c (_gtk_selection_request): Handle the
5272         case where the property type for the multiple atoms is
5273         ATOM_PAIR by doing the conversions ourselve. This is
5274         needed for Xt inter-operation.
5275
5276 2003-05-19 Arafat Medini <lumina@silverpen.de>
5277
5278         * configure.in: Added ar to ALL_LINGUAS
5279
5280 2003-05-19  Matthias Clasen  <maclas@gmx.de>
5281
5282         * gtk/gtksettings.c (gtk_rc_property_parse_border,
5283         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
5284         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
5285         Add docs.
5286
5287         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
5288         gtk_widget_class_install_style_property_parser): Add docs. 
5289
5290 2003-05-17  Matthias Clasen  <maclas@gmx.de>
5291
5292         * tests/prop-editor.c: Add navigation for object properties, so
5293         that you can easily edit the properties of the parent of a widget.
5294         (#113152)
5295
5296 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
5297
5298         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
5299         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
5300         inconsistency and leave the old name as an aliass (#104873)
5301
5302 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
5303
5304         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
5305         from Charles Schmidt to add missing notify (#108305)
5306
5307 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
5308  
5309         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
5310         (#105500, Morten Welinder.)
5311  
5312 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
5313
5314         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
5315         instead of gumake for XNFilterEvents event mask(#110493).
5316
5317 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
5318
5319         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
5320         a GObject. (#112762)
5321
5322 2003-05-08  Sven Neumann  <sven@gimp.org>
5323
5324         * configure.in: set the HAVE_X11R6 automake conditional to false
5325         if not compiling for X11.
5326
5327 2003-05-08  Matthias Clasen  <maclas@gmx.de>
5328
5329         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
5330         (gtk_calendar_get_display_options): New functions.
5331         (gtk_calendar_display_options): Depreate.  (#64567)
5332         (gtk_calendar_class_init): Add boolean properties for the display
5333         options.  (#50949)
5334
5335 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
5336
5337         Patch from James Henstridge to update to automake-1.7
5338         (#109542)
5339  
5340         * autogen.sh: update to call newer tools.
5341  
5342         * configure.in: various updates, to use M4 macros to put
5343         variables that change each release at the top.
5344         Use AC_HELP_STRING to format help strings.
5345         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
5346  
5347         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
5348         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
5349         during distcheck.
5350  
5351         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
5352         makefile fragment.
5353  
5354         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
5355         Use BUILT_SOURCES where appropriate.
5356         Build generated files in builddir rather than srcdir.
5357         Fix uninstall and distclean targets to satisfy distcheck.
5358
5359         ===
5360
5361         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
5362         built first, since we are now using BUILT_SOURCES.
5363
5364         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
5365
5366         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
5367         with geninclude.pl.
5368
5369         * configure.in: Update versions to 2.3.0.
5370  
5371 2003-05-06  Tor Lillqvist  <tml@iki.fi>
5372
5373         Fix for #110165 (thanks to Arnaud Charlet):
5374         
5375         * gdk/win32/gdkevents-win32.c (build_keypress_event,
5376         build_keyrelease_event): For unshifted control char, use
5377         lowercase ASCII keyval.
5378         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
5379         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
5380         lowercase keyval. Use build_key_event_state() here, too, instead
5381         of minor code duplication.
5382
5383 2003-05-06  Matthias Clasen  <maclas@gmx.de>
5384
5385         * tests/testmultidisplay.c: Don't include strings.h, it's not
5386         needed anymore.  (#112388)
5387
5388         * examples/menu/itemfactory.c: 
5389         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
5390         itemfactory example.
5391
5392 2003-05-05  Matthias Clasen  <maclas@gmx.de>
5393
5394         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
5395         icon type to the stock icon type.  (#111735, Dave Bordoley)
5396
5397 2003-05-05  Christian Rose  <menthos@menthos.com>
5398
5399         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
5400         Removed sp, it's replaced by sr@Latn.
5401
5402 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
5403
5404         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
5405         Gonzalo Odiard
5406
5407 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
5408
5409         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
5410         data iff the destroy func isn't NULL.
5411
5412 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
5413
5414         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
5415
5416 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
5417
5418         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
5419
5420 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
5421
5422         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
5423         of UTF-8. (#106419, Roozbeh Pournader)
5424
5425 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
5426
5427         * configure.in: Only check for XFT2 if we found pango-xft
5428         (#105692, Jon Nall)
5429
5430 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
5431
5432         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
5433         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
5434
5435 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
5436
5437         * docs/faq/gtk-faq.sgml: add note about version converage.
5438
5439 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
5440
5441         * gtk/gtksocket.c (activate_key): Fix prototype for
5442         activate_key. (#108927, Jason D. Hildebrand)
5443
5444 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
5445
5446         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
5447         Remove geninclude.pl from CVS and don't dist it either,
5448         it is generated. (#108970, Rich Kinder)
5449
5450 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
5451
5452         * gtk/gtkobject.h: Remove a couple of obsolete comments,
5453         fix another comment. (#109737, Britton Kerin)
5454
5455 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
5456
5457         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
5458         the source list, not just it's contents (Patch
5459         from Charles Kerr, #108243)
5460
5461 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
5462
5463         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
5464         from Alex Larsson fixing problem with restacking during
5465         DND. (#108671)
5466
5467 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
5468
5469         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
5470         Calling XFlush() after ungrabbing, to avoid problems if
5471         the app subsequently blocks on a long-running operation.
5472         (#106520, reported by Rajkumar Siva)
5473
5474 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
5475
5476         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
5477         SKIP_TASKBAR/SKIP_PAGER to set of properties we
5478         might set on map. (#110019, problem reported
5479         by Loban Rahman)
5480
5481 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
5482
5483         * gdk/gdkevents.c (gdk_event_copy): Fix for the
5484         case when gdk_event_copy() is called on a non-allocated
5485         event. (#109716, reported by Rich Burridge)
5486
5487 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
5488
5489         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
5490         Fix pointer arithmetic on 'void *'. (#108322)
5491
5492 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
5493
5494         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
5495         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
5496         use of XAddConnectionWatch. Remove --enable-xim config option.
5497         Should fix building on X11R6 (#110523, Albert Chin)
5498
5499 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
5500
5501         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
5502         Patch from Morten Welinder to catch Sun servers with a 
5503         broken implementation of the RENDER extension. (#108309)
5504
5505 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
5506
5507         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
5508         gdk_free_compound_text(), not g_free(). (#107643,
5509         Michael Zucchi)
5510
5511 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
5512
5513         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
5514         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
5515         wrong use of base_finalize. (#105126, Sven Neumann)
5516
5517 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
5518
5519         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
5520         '/' vs. '*' problem in aspect ration computations. (#108237)
5521
5522 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
5523
5524         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
5525         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
5526         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
5527         event, so select for both. (#108406, Egmont Koblinger)
5528
5529 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
5530
5531         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
5532         caused by not clearing the scroll_to_path.
5533
5534 2003-04-16  Matthias Clasen  <maclas@gmx.de>
5535
5536         * gtk/gtkstyle.c: Doc additions and fixes.
5537
5538         * gtk/gtktreeviewcolumn.c
5539         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
5540
5541 2003-04-14  Michael Natterer  <mitch@gimp.org>
5542
5543         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
5544         that the iter is not reordered to its own position. Prevents model
5545         corruption for the case that the store contains only a single item
5546         (fixes bug #108387).
5547
5548         Unrelated:
5549
5550         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
5551         new list element later so we don't leak it if we decide to return
5552         early.
5553
5554         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
5555         set selection->tree_view->priv->anchor to NULL after freeing it.
5556
5557 2003-04-13  Matthias Clasen  <maclas@gmx.de>
5558
5559         * gtk/gtktreeviewcolumn.c
5560         (gtk_tree_view_column_cell_get_position): Document. 
5561
5562         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
5563         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
5564         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
5565         these as 2.4 additions.
5566
5567 2003-04-09  Matthias Clasen  <maclas@gmx.de>
5568
5569         * INSTALL.in: Fix the real thing.
5570
5571         * INSTALL: Typo fix.
5572
5573 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
5574
5575         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
5576         after ungrabbing the server.
5577  
5578         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
5579         calls to XFlush().
5580
5581         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
5582         Use gdk_x11_display_grab/ungrab.
5583
5584         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
5585         use_xshm to TRUE so SHM gets used when present.
5586  
5587 2003-04-07  Matthias Clasen  <maclas@gmx.de>
5588
5589         * gtk/gtktextlayout.c (set_para_values): 
5590         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
5591         David Brigada)
5592
5593         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
5594         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
5595         misspellings of possessive "its".  (#110027, Doug Quale)
5596
5597 2003-04-03  Matthias Clasen  <maclas@gmx.de>
5598
5599         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
5600         current directory if it looks like the srcdir.  (#109357)
5601
5602 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5603
5604         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
5605         focus_on_click
5606
5607         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
5608         navigation not wrap around.
5609
5610 2003-04-02  Matthias Clasen  <maclas@gmx.de>
5611
5612         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
5613         Return 0 if lower == upper.  (#109155)
5614         (gtk_progress_get_current_percentage): Use
5615         gtk_progress_get_percentage_from_value().
5616
5617 2003-04-01  Matthias Clasen  <maclas@gmx.de>
5618
5619         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
5620         (#109510, Noah Levitt)
5621
5622 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
5623
5624         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
5625         members so Purify won't complain.
5626
5627         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
5628
5629 2003-03-31  Matthias Clasen  <maclas@gmx.de>
5630
5631         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
5632         gtk_window_[gs]et_role().  (#93904)
5633
5634 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
5635
5636         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
5637         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
5638
5639 2003-03-29  Matthias Clasen  <maclas@gmx.de>
5640
5641         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
5642         of labels back to normal before reparenting back.  (#102387)
5643
5644         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
5645         a default window title to match the GtkFontSelectionDialog behavior.
5646  
5647         (gtk_color_selection_dialog_new): Don't call
5648         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
5649
5650 2003-03-29  Matthias Clasen  <maclas@gmx.de>
5651
5652         Fix for bug #78499:
5653         
5654         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
5655         select_lines. 
5656
5657         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
5658         select_lines on double/triple click.
5659
5660         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
5661         select-by-words and select-by-lines behaviour.
5662
5663         Fixes for bug #56248:
5664         
5665         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
5666         timer and queue a redraw. 
5667         (gtk_notebook_grab_notify): 
5668         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
5669         if necessary.   
5670         (gtk_notebook_button_release): Use stop_scrolling().
5671         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
5672
5673         * gtk/gtkrange.c (stop_scrolling): New function to remove the
5674         grab, remove the timer and queue a redraw.
5675         (gtk_range_grab_notify): 
5676         (gtk_range_state_changed): New functions to call stop_scrolling() 
5677         if necessary.   
5678         (gtk_range_button_release): Use stop_scrolling().
5679
5680         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
5681         (gtk_spin_button_state_changed): Redraw after stop_spinning.
5682         (gtk_spin_button_stop_spinning): Reset click_child to correct the
5683         drawing of the arrows.
5684         (gtk_spin_button_button_release): Use a local copy of click_child,
5685         since stop_spinning() resets it.
5686
5687         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
5688         C-A-PgDown as alternatives to the A-less variants. (This slipped
5689         in accidentally some time ago).  (#97860)
5690
5691 2003-03-26  Sven Neumann  <sven@gimp.org>
5692
5693         * gtk/gtktreeview.c: rewrote the function that does node and arrow
5694         prelighting, queue all redraws from here (Fixes bug #108792).
5695
5696 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
5697
5698         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
5699         Fixes bug #108778.
5700
5701 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
5702
5703         * configure.in: Added "ml" in ALL_LINGUAS
5704
5705 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
5706
5707         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
5708         G_DISABLE_DEPRECATED.
5709
5710 2003-03-14  Tor Lillqvist  <tml@iki.fi>
5711
5712         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
5713         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
5714         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
5715         multiple monitors can have negative coordinates on some of the
5716         monitors. (partial fix for #99496, Arnaud Charlet)
5717
5718 2003-03-15  Matthias Clasen  <maclas@gmx.de>
5719
5720         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
5721
5722 2003-03-13  Sven Neumann  <sven@gimp.org>
5723
5724         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
5725         removed redundant calls to g_object_notify().
5726         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
5727         bug #108236.
5728
5729         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
5730         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
5731         functions return an integer value).
5732
5733 2003-03-13  Tor Lillqvist  <tml@iki.fi>
5734
5735         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
5736         WM_MOUSEMOVE, the test whether we have actually moved (and thus
5737         shouldn't generate an GDK event) moved after the call to
5738         propagate() and translate_mouse_coords(). Otherwise we were
5739         testing wrong values. (#108115, Allin Cottrell)
5740         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
5741         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
5742
5743         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
5744         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
5745         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
5746         cursor right away with SetCursor(), as we won't get any
5747         WM_SETCURSOR messages while the mouse is captured. 
5748         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
5749         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
5750
5751         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
5752         WM_SYSCHAR, return FALSE from the window procedure to prevent the
5753         DefWindowProc from being called. Otherwise Windows would beep,
5754         thinking you are tring to access a (nonexistent) menu when you
5755         press Alt-something. Don't do this for Alt-Space,
5756         though. (#107454, Martyn Russell)
5757
5758         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
5759
5760 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
5761
5762         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
5763         [left/right] expands/collapses the tree, #108092
5764
5765 2003-03-09  Tor Lillqvist  <tml@iki.fi>
5766
5767         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
5768         compensate for LineTo() not drawing the end pixel. It causes more
5769         harm than benefits, see bug #81895.
5770
5771 2003-03-08  Matthias Clasen  <maclas@gmx.de>
5772
5773         Bug #107664 continued:
5774
5775         * gdk/x11/gdkinputprivate.h: 
5776         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
5777         (_gdk_input_other_event): Return gboolean.
5778         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
5779         (_gdk_input_other_event): Return gboolean.
5780         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
5781
5782         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
5783         gboolean, remove pointless call to _gdk_input_window_none_event.
5784
5785         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
5786         (_gdk_input_window_none_event): Remove.
5787
5788         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
5789         (_gtk_text_iter_get_any_segment): 
5790         (_gtk_text_iter_get_segment_byte): 
5791         (_gtk_text_iter_get_segment_char): 
5792         (_gtk_text_iter_get_text_line): 
5793         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
5794         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
5795         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
5796         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
5797         (gdk_window_get_origin): 
5798         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
5799
5800 2003-03-06  Matthias Clasen  <maclas@gmx.de>
5801
5802         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
5803         (#107664, Morten Welinder)
5804
5805         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
5806         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
5807         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
5808         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
5809
5810         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
5811         * gtk/gtkeditable.c (gtk_editable_get_chars): 
5812         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
5813         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
5814         (#107648, Morten Welinder)Fix NULL/FALSE confusion
5815         (#107648, Morten Welinder)
5816
5817 2003-03-04  Matthias Clasen  <maclas@gmx.de>
5818
5819         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
5820
5821 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
5822
5823         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
5824         handle rtl code.  Thanks to Matthias Clasen for an initial patch
5825         to handle the RTL code.
5826
5827         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
5828
5829         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
5830
5831         * gtk/gtktreeview.c: (invalidate_column),
5832         (invalidate_last_column),
5833         (gtk_tree_view_get_real_requested_width_from_column),
5834         (gtk_tree_view_size_allocate_columns),
5835         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
5836         (gtk_tree_view_button_release_drag_column),
5837         (gtk_tree_view_update_current_reorder),
5838         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
5839         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
5840         (gtk_tree_view_get_background_xrange),
5841         (gtk_tree_view_get_arrow_xrange),
5842         (gtk_tree_view_is_expander_column),
5843         (gtk_tree_view_set_column_drag_info),
5844         (gtk_tree_view_move_cursor_left_right):
5845         Add RTL support.
5846
5847         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
5848         expand flag.
5849
5850         * gtk/gtktreeviewcolumn.c:
5851         (gtk_tree_view_column_class_init),
5852         (gtk_tree_view_column_set_property),
5853         (gtk_tree_view_column_get_property),
5854         (gtk_tree_view_column_set_expand),
5855         (gtk_tree_view_column_get_expand),
5856         (gtk_tree_view_column_cell_process_action):
5857         Add support for expand flag.  Thanks to Kristian Rietveld for an
5858         initial patch for this.
5859
5860 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
5861
5862
5863 2003-03-02  Tor Lillqvist  <tml@iki.fi>
5864
5865         * gdk/gdk.def
5866         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
5867         Gustin.
5868
5869 2003-03-01  Matthias Clasen  <maclas@gmx.de>
5870
5871         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
5872         (gtk_scrolled_window_set_hadjustment): Replace uses of
5873         gtk_object_new by g_object_new.
5874
5875 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
5876
5877         * demos/gtk-demo/main.c
5878         * demos/gtk-demo/tree_store.c
5879         * gdk/x11/gdkscreen-x11.c
5880         * gtk/gtkcellrenderertoggle.c
5881         * gtk/gtkcolorsel.c
5882         * gtk/gtkdnd.c
5883         * gtk/gtkeditable.c
5884         * gtk/gtkentry.c
5885         * gtk/gtkmenu.c
5886         * gtk/gtkmenubar.c
5887         * gtk/gtkmenuitem.c
5888         * gtk/gtkmenushell.c
5889         * gtk/gtkrc.c
5890         * gtk/gtksettings.c
5891         * gtk/gtkstyle.c
5892         * gtk/gtktextbuffer.c
5893         * gtk/gtktextview.c
5894         * gtk/gtktreeviewcolumn.c
5895         * tests/testgtk.c
5896         * tests/testtext.c
5897         * tests/testtreeedit.c
5898         * tests/testtreefocus.c
5899         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
5900
5901 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
5902
5903         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
5904         code.
5905
5906 2003-02-24  Sven Neumann  <sven@gimp.org>
5907
5908         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
5909
5910 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
5911
5912         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
5913
5914 2003-02-20  Matthias Clasen  <maclas@gmx.de>
5915
5916         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
5917         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
5918
5919         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
5920         (gtk_text_view_update_adjustments): Make sure cursor stays visible
5921         during horizontal scrolling.  (#75270)
5922
5923 2003-02-19  Matthias Clasen  <maclas@gmx.de>
5924
5925         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
5926         counterparts. (#106532)
5927
5928         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
5929         keys_changed virtual function with the keys_changed signal.
5930         (#106512, Jeff Franks)
5931
5932 2003-02-15  Larry Ewing  <lewing@ximian.com>
5933
5934         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
5935
5936 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
5937
5938         * po/id.po: Added Indonesian translation
5939         * configure.in: Added "id" to ALL_LINGUAS
5940
5941 2003-02-14  Matthias Clasen  <maclas@gmx.de>
5942
5943         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
5944
5945 2003-02-12  Christian Rose  <menthos@menthos.com>
5946
5947         * configure.in: Added "yi" to ALL_LINGUAS.
5948
5949 2003-02-12  Matthias Clasen  <maclas@gmx.de>
5950
5951         Fix for #82734 and #78216:
5952         
5953         * gtk/gtktextview.c (delete_cb): 
5954         (select_all_cb): New callbacks for context menu items.
5955         (popup_targets_received): Add "Delete" and "Select All" to context
5956         menu, mnemonics and title caps for all items.
5957
5958         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
5959         context menu item.
5960         (popup_targets_received): Add "Delete" to context menu, mnemonics
5961         and title caps for all items.
5962
5963 2003-02-09  Tor Lillqvist  <tml@iki.fi>
5964
5965         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
5966         GetDriveType() to recognize removable drives (in order to avoid
5967         hanging if trying to access an empty floppy drive), instead of
5968         hardcoding A: and B: (#105654).
5969
5970 2003-02-09  Matthias Clasen  <maclas@gmx.de>
5971
5972         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
5973         names.  (#57680)
5974
5975 2003-02-09  Christian Rose  <menthos@menthos.com>
5976
5977         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
5978
5979 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
5980
5981         * gtk/gtkobject.c: remove quark_user_data usage in
5982         gtk_object_{g|s}et_user_data(). fixes get_user_data()
5983         returning NULL for user_data set through property interface.
5984
5985         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
5986         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
5987         need to be a programming error (in case of loaded data), (b) it breaks
5988         with 2.0 behaviour where extra magic could be used to create empty
5989         images. don't attempt to retrieve pixbufs from NULL extra_data.
5990
5991 2003-02-06  Matthias Clasen  <maclas@gmx.de>
5992
5993         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
5994         a GdkVisual *, not a GdkVisual **.  (#105243)
5995
5996         * gtk/gtkclist.c: 
5997         * gtk/gtkctree.c: 
5998         * gtk/gtkcontainer.c: 
5999         * gtk/gtkdnd.c: 
6000         * gtk/gtkentry.c: 
6001         * gtk/gtklist.c:
6002         * gtk/gtkmenu.c:
6003         * gtk/gtkmenuitem.c:
6004         * gtk/gtknotebook.c:
6005         * gtk/gtkselection.c:
6006         * gtk/gtkspinbutton.c:
6007         * gtk/gtktext.c:
6008         * gtk/gtktextview.c:
6009         * gtk/gtktooltips.c:
6010         * gtk/gtktreeview.c:
6011         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
6012         their non-deprecated GLib counterparts.
6013         
6014         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
6015         
6016 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
6017
6018         * docs/tutorial/gtk-tut.sgml: cleanups from
6019         Sebastian Rittau (#104832)
6020
6021 2003-02-01  Tor Lillqvist  <tml@iki.fi>
6022
6023         Merge from stable:
6024
6025         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
6026         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
6027         (#104108, Naofumi Yasufuku)
6028
6029         * gdk/gdk.def: Export the above. Export
6030         gdk_screen_get_system_visual, noticed by Ed Woods.
6031
6032 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
6033
6034         * demos/pixbuf-demo.c
6035         * demos/testpixbuf.c
6036         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
6037
6038 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
6039                                                                                 
6040         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
6041         on the tab_label before unparenting it, in case the unparent
6042         drops the refcount to 0.
6043
6044 2003-02-01  Matthias Clasen  <maclas@gmx.de>
6045
6046         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
6047         headers. Sorry about gtk_selection_clear, Yosh.
6048
6049 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
6050
6051         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
6052         too, for gtkwidget.c. Remember people, when introducing new
6053         deprecations, make sure internal code isn't using it, or if so,
6054         reorganize appropriately like I've done in other places.
6055
6056         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
6057
6058 2003-01-31  Matthias Clasen  <maclas@gmx.de>
6059
6060         * gtk/gtkselection.h: 
6061         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
6062
6063         * gdk/gdkpixbuf.h: 
6064         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
6065         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
6066
6067         * gtk/gtkcolorsel.h:
6068         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
6069         Deprecate.  (#98167)
6070
6071         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
6072
6073         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
6074         and gtk_input_* functions.  (#71596)
6075         
6076         * gtk/gtkentry.c (gtk_entry_move_cursor): 
6077         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
6078         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
6079
6080         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
6081
6082         * gtk/gtkitemfactory.h: 
6083         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
6084         (#69244)
6085
6086 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
6087
6088         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
6089         only count the special cell if it is also visible,
6090         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
6091         account from visible cells,
6092         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
6093         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
6094         tracking bug was #104563).
6095         
6096 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
6097
6098         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
6099         subtract expander space and focus line space from the extra space
6100         we are about the allocate. (Fixes #104635).
6101
6102 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
6103
6104         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
6105         (Fixes #96242, patch from Soeren Sandmann).
6106
6107 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
6108
6109         * gtk/gtknotebook.c: Patch from Soeren Sandmann
6110         to update the states of the tab label child
6111         widgets to match the state of the tabs. 
6112         (#93389, Reported by Tommi Komulainen)
6113
6114 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
6115
6116         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
6117         EXTRA_DIST, and from dist rules. (#102231)
6118
6119 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
6120
6121         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
6122         function that sets the icon's and label's packing options and
6123         visibility based on toolbar->style.
6124
6125         (gtk_toolbar_internal_insert_element):
6126         (gtk_real_toolbar_style_changed): Make use of
6127         set_child_packing_and_visibility() to clean up the code and get
6128         the packing right for icon-only/text-only toolbars. (#104679)
6129
6130         (get_first_child): Remove, and use gtk_bin_get_child() instead.
6131
6132 2003-01-30  Matthias Clasen  <maclas@gmx.de>
6133
6134         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
6135         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
6136
6137         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
6138         
6139 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
6140
6141         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
6142         attempt-to-allocate then free code. To handle multiple
6143         people allocating colors at the same time, we need
6144         to just go ahead and try. (#102213, Shivram U)
6145         
6146 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
6147
6148         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
6149         rectangle using the background color rather than relying on
6150         gdk_window_clear_area(), so that the palette works properly with
6151         pixmap themes. (#101732)
6152
6153         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
6154         to fill the drawing area in the background color.
6155
6156 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
6157
6158         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
6159         initialization error for selecting input style (#103549).
6160
6161 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
6162
6163         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
6164         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
6165         (#101225)
6166
6167 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
6168
6169         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
6170         Make up from the menu bar go to the end of the submenu.
6171         (#96114, Ian Peters.)
6172
6173         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
6174         Only do the select-but-not-activate stuff if the
6175         menu is already active. Otherwise, just activate.
6176         (#101690, Arvind Samptur)
6177
6178 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
6179
6180         * autogen.sh (have_automake): Fix version in complaint
6181         message about automake. (#104366, Rich Burridge)
6182
6183 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
6184
6185         * configure.in: Remove SOEXT stuff; it doesn't work portably.
6186
6187 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
6188
6189         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
6190         we appended/prepended, send the rows_reordered signal to the 
6191         correct level ... (Reported by Matthew Tuck).
6192
6193 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
6194
6195         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
6196         out if the level only has one item, recurse over the child if there
6197         is one. (Fixes #100458, reported by Gaël Le Mignot).
6198
6199 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
6200
6201         * gtk/gtktreeview.c (gtk_tree_view_set_model),
6202         (gtk_tree_view_search_equal_func): make TreeView search handle
6203         all types which are transformable by GValue. (Fixes #99803, reported
6204         by Muktha Narayan).
6205
6206 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
6207
6208         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
6209         *really* handle unsetting the ID. Slightly modified patch from
6210         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
6211
6212 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
6213
6214         Fixes the total GtkTreeSortable mess, and #83195, reported by
6215         Jarek Dukat
6216
6217         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
6218         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
6219         (gtk_tree_store_set_default_sort_func): use the constant
6220         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
6221         work as advertised by the documentation.
6222
6223         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
6224         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
6225         (gtk_list_store_set_default_sort_func): likewise.
6226
6227         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
6228         (gtk_tree_model_set_sort_func),
6229         (gtk_tree_model_sort_set_default_sort_func): make functions work
6230         as advertised by the documentation.
6231
6232 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
6233
6234         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
6235         before we decide if we edit. (fixes #100973, reported by Dave Cook).
6236
6237 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
6238
6239         Bug report and test case from Paolo Maggi via IRC.
6240
6241         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
6242         (gtk_list_store_move): update tail if needed.
6243
6244 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
6245
6246         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
6247         might be NULL. Use gtk_widget_get_display (widget) 
6248         (#102860, Thomas Leonard)
6249
6250 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
6251
6252         * configure.in: Fix --without-modules/--disable-modules
6253         confusion that was causing --disable-modules not to work.
6254         (#102865, Akira Tagoh)
6255
6256         * configure.in: Fix problem with plain --with-xinput
6257         (#104266, Akira Tagoh)
6258
6259 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
6260
6261         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
6262         patch.
6263
6264 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
6265
6266         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
6267
6268 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
6269
6270         * docs/faq/gtk-faq.sgml: Learn to spell Library
6271
6272 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
6273         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
6274
6275            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
6276            Composite widget" to modern standards. (I.e. use gobject instead of
6277            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
6278
6279         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
6280         code in Appendix C to reflect above changes.
6281
6282         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
6283         auto resize on page size change
6284
6285 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
6286
6287         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
6288         in addition to show_all in order to keep them symmetric. (#102201)
6289
6290 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
6291
6292         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
6293         the end of the function, so there is a statement following the "out"
6294         label in all cases (fixes #101961)
6295
6296 2003-01-22  Christian Rose  <menthos@menthos.com>
6297
6298         * configure.in: Added "mn" to ALL_LINGUAS.
6299
6300 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
6301  
6302         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
6303         Fix off-by-one error on the backward iteration loop,
6304         that was causing the wrong range to be redrawn.
6305         (at least part of #72734)
6306         
6307 2003-01-21  Matthias Clasen  <maclas@gmx.de>
6308
6309         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
6310         vadjustment value after changing its bounds.  (fixes #101963 and 
6311         #73562)
6312
6313         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
6314         unnecessary roundtrip failures.  (#93500)
6315
6316 2003-01-19  Tor Lillqvist  <tml@iki.fi>
6317
6318         Merge from stable:
6319         
6320         Fix for #103614 and some other problems with GtkFileSelection on
6321         Windows:
6322                 
6323         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
6324         g_ascii_tolower(). Windows file names are case-insensitive for all
6325         Unicode letters.
6326
6327         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
6328         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
6329         earlier, as it includes config.h unconditionally, and gtkprivate.h
6330         redefines GTK_LOCALEDIR.
6331         (struct _CompletionDirSent): Ifdef out the fields not used on
6332         Windows.
6333         (compare_utf8_filenames, compare_sys_filenames): Need different
6334         comparison implementation for UTF-8 file names and system locale
6335         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
6336         need to casefold all Unicode letters.
6337         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
6338         variables not used on Win32 to avoid warnings about unused
6339         variables.
6340         (open_ref_dir): Use g_path_skip_root() to skip past potential
6341         drive letter in front of the leading (back)slash.
6342         (open_new_dir): Ifdef out use of CompletionDirSent fields not
6343         there on Win32.
6344         (correct_parent): Bypass inode check also on Cygwin.
6345
6346         Fix bug noticed by Alex Shaduri: Tooltips and other
6347         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
6348         was a regression from earlier versions.
6349         
6350         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
6351         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
6352         (gdk_window_move, gdk_window_resize): Add debug logging.
6353
6354         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
6355         WM_SIZE message for a non-visible (withdrawn) window, don't clear
6356         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
6357         even if its size changes.
6358
6359 2003-01-16  Matthias Clasen  <maclas@gmx.de>
6360
6361         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
6362         (totally_invisible_line): Fix an incorrect optimization which
6363         caused invisible paragraphs to be occasionally misrendered.
6364
6365 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
6366
6367         * gtk/gtksettings.c: Set the double click speed from
6368         XSETTINGS when creating a new GtkSettings object
6369         as well as when getting a notify. (#103601, reported
6370         by Louis Garcia)
6371
6372 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
6373  
6374         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
6375         Show/hide the notebook event window as necessary,
6376         we weren't previously keeping the visibility updated
6377         properly.  (#103599)
6378  
6379 2003-01-15  Matthias Clasen  <maclas@gmx.de>
6380
6381         * examples/menu/itemfactory.c: 
6382         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
6383         example.  (#103211)
6384
6385 2002-12-29  Murray Cumming  <murrayc@usa.net>
6386
6387         Fixes #102168.
6388
6389         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
6390         Actually implement the GtkTreeDragSource::row_draggable virtual 
6391         function in GtkListStore and GtkTreeStore instead of just checking 
6392         whether it's implemented at all. This means that DnD isn't broken by
6393         gtkmm's virtual function wrappers. The alternative would be to
6394         hard-code the TRUE return value into gtkmm's wrappers, but that's 
6395         part of GTK+'s implementation, not it's API.
6396
6397 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
6398
6399         * gtk/gtktreeview.c: fix compiler warning.
6400
6401 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
6402
6403         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
6404         make sure exposed pixbufs are clipped to the exposed area before
6405         drawing, which is a slight speedup. (#102379, patch from Soeren
6406         Sandmann).
6407
6408 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
6409
6410         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
6411         only free scroll_to_path when the complete tree has been validated.
6412         This makes sure that we scrolled to the correct path.
6413
6414 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
6415
6416         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
6417         background of widget->window and bin->window. (Fixes #96650, reported
6418         by Dave Camp).
6419
6420 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
6421
6422         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
6423         updates before scrolling, avoiding a "selection streak". (Fixes
6424         #101235, patch from Soeren Sandmann).
6425
6426 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
6427
6428         * gtk/gtktreeview.c (validate_visible_area): actually put values
6429         in the requisition using gtk_widget_size_request. (Fixes #100172,
6430         reported by Kjartan Maraas).
6431
6432 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
6433
6434         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
6435         arrow animation timeout before we actually reorder the rbtree. If
6436         we don't do this we can get stuck arrows,
6437         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
6438         reported and testcase provided by Hans Petter Jansson).
6439
6440 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
6441
6442         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
6443         anchor_path should be start_path, not end_path. (Fixes #102618,
6444         patch from Carlos Garnacho Parro).
6445
6446 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
6447
6448         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
6449         only correct new_pos if we don't move to the head/tail.
6450
6451 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
6452
6453         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
6454         the parent_iter if depth >= 1, so we send the reordered signal to
6455         the correct level, remove debugging printfs which I forgot the remove
6456         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
6457         testcase provided by Matthew Tuck).
6458
6459 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
6460
6461         * gtk/gtktreeview.c (invalite_last_column): split out actual column
6462         invalidation into invalidate_column(),
6463         (gtk_tree_view_size_allocate_columns): invalidate column if the
6464         new width is larger than the old width.
6465         (fixes #102890, reported by Alex Duggan).
6466
6467 2003-01-14  Matthias Clasen  <maclas@gmx.de>
6468
6469         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
6470         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
6471         GTK_MOVEMENT_WORDS.
6472
6473         * gtk/gtktextiter.c,
6474         gtk/gtktextiter.h: Add some variant movement functions which
6475         skip invisible chars, and do some cleanups.
6476
6477 2003-01-12  Tor Lillqvist  <tml@iki.fi>
6478
6479         Merge from stable:
6480                 
6481         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
6482         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
6483         lookup.
6484
6485         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
6486         gdk.def.
6487
6488         * gdk/gdk.def
6489         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
6490
6491         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
6492         gtk-demo}.exe and share/gtk-2.0.
6493
6494         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
6495         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
6496         window style.
6497         (gdk_window_set_type_hint): Add all cases to the switch (not all
6498         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
6499         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
6500         won't know that the skip_taskbar hint is on for the window, is
6501         this bad?
6502
6503 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
6504
6505         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
6506         <string.h> for strlen.
6507
6508         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
6509         <string.h> for strrchr.
6510
6511         * tests/testgtk.c (create_saved_position): "x" and "y" properties
6512         for widgets no longer exist, use gtk_window_move instead.
6513
6514         * test/testtextbuffer.c (check_get_set_text): cast strlen to
6515         int for g_error.
6516
6517 2003-01-08  Matthias Clasen  <maclas@gmx.de>
6518
6519         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
6520         the selection in the presence of invisible segments.
6521
6522 2003-01-07  Matthias Clasen  <maclas@gmx.de>
6523
6524         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
6525         to "select all" and "unselect all".  (#102065)
6526
6527         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
6528         the just_selected_element is unused.
6529
6530         * gtk/gtktextview.c (extend_selection): New helper function to
6531         find the range that should be added to the selection. 
6532         (selection_motion_event_handler): 
6533         (gtk_text_view_start_selection_drag): 
6534         (gtk_text_view_end_selection_drag): 
6535         (selection_motion_event_handler): 
6536         (selection_scan_timeout): Support select-by-words/lines.
6537         (gtk_text_view_button_press_event): Start a selection drag on
6538         double/triple clicks.  (#78499)
6539
6540 2003-01-06  Matthias Clasen  <maclas@gmx.de>
6541
6542         Implement a utility function proposed in #102534:
6543         
6544         * gtk/gtktextbtree.h: 
6545         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
6546         (_gtk_text_btree_place_cursor): Now a simple wrapper around
6547         _gtk_text_btree_select_range().   
6548
6549         * gtk/gtktextbuffer.h: 
6550         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
6551         (gtk_text_buffer_place_cursor): Now a simple wrapper around
6552         gtk_text_buffer_select_range(). 
6553
6554 2003-01-05  Havoc Pennington  <hp@pobox.com>
6555
6556         * configure.in: fix a stray bracket that was breaking the build
6557
6558 2003-01-05  Tor Lillqvist  <tml@iki.fi>
6559
6560         * gtk-zip.sh.in: Use correct DLL and import library names, with
6561         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
6562         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
6563
6564         * configure.in: Improve check for dimm.h.
6565
6566         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
6567         gdk-pixbuf/Makefile.am.
6568
6569         * gdk-pixbuf/makefile.mingw.in
6570         * gdk-pixbuf/pixops/makefile.mingw.in
6571         * gdk/makefile.mingw.in
6572         * gdk/win32/makefile.mingw.in
6573         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
6574
6575         * gdk-pixbuf/Makefile.am
6576         * gdk-pixbuf/pixops/Makefile.am
6577         * gdk/Makefile.am
6578         * gdk/win32/Makefile.am
6579         * gtk/Makefile.am
6580         * configure.in: Remove makefile.mingw{,.in} from here, too.
6581         
6582         * README.win32: Updates. Don't mention the now removed
6583         makefile.mingw files.
6584
6585         * gdk/gdk.def
6586         * gtk/gtk.def: Add a couple of missing entries.
6587
6588         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
6589
6590         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
6591         earlier.
6592
6593         * gdk/win32/rc/Makefile.am: Add hack to help
6594         build/win32/lt-compile-resource decide which kind of libtool
6595         object file to produce.
6596
6597 2003-01-05  Matthias Clasen  <maclas@gmx.de>
6598
6599         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
6600         C-Down step through the sequence of paragraph ends (old behaviour
6601         included paragraph starts).  (#80340, patch by Narayana Pattipati)
6602
6603         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
6604         Check for a tag toggle at the start iterator before calling
6605         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
6606         Elstner)
6607
6608 2003-01-04  Matthias Clasen  <maclas@gmx.de>
6609
6610         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
6611         and /*< private >*/ as appropriate.  (#97211)
6612
6613 2003-01-04  Tor Lillqvist  <tml@iki.fi>
6614
6615         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
6616         distribute gtk-zip.sh.in.
6617
6618         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
6619
6620 2003-01-03  Havoc Pennington  <hp@pobox.com>
6621
6622         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
6623
6624         * docs/text_widget_internals.txt: add a file documenting some of
6625         the text widget internals
6626
6627 2003-01-02  Matthias Clasen  <maclas@gmx.de>
6628
6629         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
6630         return NULL.  (#102069)
6631
6632 2003-01-01  Matthias Clasen  <maclas@gmx.de>
6633
6634         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
6635         a main() in the library is obviously bad. 
6636
6637 2002-12-27  Matthias Clasen  <maclas@gmx.de>
6638
6639         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
6640         cursor at drop point.  (#72384)
6641         (gtk_text_view_size_allocate): Update the horizontal adjustment
6642         value.  (#75694)
6643
6644 2002-12-25  Matthias Clasen  <maclas@gmx.de>
6645
6646         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
6647         selection wrt. to empty lines.  (#90435, #90582, #91619)
6648
6649         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
6650         Keep the cursor on screen.  (#96929)
6651
6652 2002-12-24  Matthias Clasen  <maclas@gmx.de>
6653
6654         * gtk/gtktextbuffer.c (paste_from_buffer): 
6655         (clipboard_text_received): Let the user action span the insertion
6656         and the deletion of the old selection.  (#82844)
6657
6658 2002-12-23  Matthias Clasen  <maclas@gmx.de>
6659
6660         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
6661         Don't call gtk_text_iter_backward_sentence_start() if
6662         count is zero.  (#99115)
6663
6664         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
6665         move_cursor() even if the cursor hasn't moved, since it has the
6666         side effect of canceling the selection.  (#81395, #98537, #98333)
6667
6668 2002-12-22  Matthias Clasen  <maclas@gmx.de>
6669
6670         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
6671         with empty ranges.  (fixes #101564 and #80637)
6672
6673 2002-12-21  Tor Lillqvist  <tml@iki.fi>
6674
6675         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
6676         sets the window style and extended window style, and adjusts the
6677         width and height to take the window decorations into account
6678         earlier. The adjusted width and height used to be ignored. Remove
6679         the local x, y, width and height variables, no need to further
6680         confuse the code by having local copies. (Partial fix, I hope, for
6681         #101588)
6682
6683         (gdk_window_move): When moving top-level windows, take title bar
6684         and border width into account, offsetting the coordinates before
6685         calling SetWindowPos().
6686
6687         (gdk_window_set_decorations, gdk_window_set_functions):
6688         Reimplement, taking into account the peculiar semantics of
6689         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
6690
6691         (gdk_window_get_decorations): Implement. (#98981)
6692         
6693         (gdk_window_set_type_hint): When setting
6694         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
6695         (#79036)
6696
6697         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
6698
6699 2002-12-21  Matthias Clasen  <maclas@gmx.de>
6700
6701         * gtk/gtktextview.c (gtk_text_view_set_background): New static
6702         function to set the background of all windows.
6703         (gtk_text_view_style_set): Use gtk_text_view_set_background().
6704         (gtk_text_view_state_changed): New function; change background
6705         according to state.  (#88126)
6706
6707 2002-12-21  Havoc Pennington  <hp@pobox.com>
6708
6709         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
6710