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