]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Don't spit out warnings if called before the combo box is realized.
[~andy/gtk] / ChangeLog.pre-2-4
1 2004-04-14  Matthias Clasen  <mclasen@redhat.com>
2
3         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't spit 
4         out warnings if called before the combo box is 
5         realized.  (#139742, Philip Langdale)
6
7 Wed Apr 14 03:45:39 2004  Jonathan Blandford  <jrb@gnome.org>
8
9         * gtk/gtktreeview.c (gtk_tree_view_expose): propagate expose
10         events to children.
11
12 Wed Apr 14 03:32:58 2004  Jonathan Blandford  <jrb@gnome.org>
13
14         * gtk/gtkpathbar.c (make_directory_button): remove spurious
15         gtk_box_pack_start.
16
17 Tue Apr 13 16:19:23 2004  Jonathan Blandford  <jrb@redhat.com>
18
19         * gtk/gtkpathbar.c (make_directory_button): patch from Owen to
20         make the buttons sized by a bold label.  This makes the text
21         'swim' a little, but stops the buttons from resizing, #137210
22
23 2004-04-13  Matthias Clasen  <mclasen@redhat.com>
24
25         * gtk/gtkuimanager.c (get_child_node): Don't crash if a node 
26         has no name.
27         (start_element_handler): Accept separators without unique 
28         names.  (#133302, Anders Carlsson)
29
30         * gtk/gtkactiongroup.c (gtk_action_group_add_action): Document
31         possible accelerator gotcha when using this function.  (#139641, 
32         Christian Persch)
33
34         * gtk/gtkuimanager.c (node_remove_ui_reference): Don't leak
35         list nodes.  (#138862, Morten Welinder)
36
37 Tue Apr 13 12:24:49 2004  Jonathan Blandford  <jrb@redhat.com>
38
39         * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
40         variable.
41         (gtk_tree_view_button_press): If we activated the row we don't
42         want to grab focus back, as moving focus to another widget is
43         pretty common, #138458
44
45 2004-04-12  Federico Mena Quintero  <federico@ximian.com>
46
47         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
48         documentation to all the signals.
49
50 2004-04-12  Matthias Clasen  <mclasen@dhcp64-228.boston.redhat.com>
51
52         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
53         model if it is NULL. (#139770)
54
55         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
56
57         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
58         a shadow inside the scrolled window, add it around the vbox.
59
60         * gtk/gtkentryprivate.h: 
61         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
62         Return a boolean indicating whether the popup is positioned above 
63         or below. Scroll the completions to the beginning or the end, 
64         depending on the positioning.
65
66         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
67         wrap around in the entry completion popup, and allow GDK_UP to 
68         enter the popup.  (#137440)
69
70 2004-04-12  Matthias Clasen  <mclasen@redhat.com>
71
72         * gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is 
73         there before using it.
74
75 Sun Apr 11 15:08:45 2004  Jonathan Blandford  <jrb@gnome.org>
76
77         * gtk/gtktreeprivate.h: Moved search entries into priv data.
78
79         * gtk/gtktreeview.c: Prep for type-ahead support.
80
81         (gtk_tree_view_destroy): Destroy the search window explicitly.
82         (gtk_tree_view_key_press): Minor change; prep for type-ahead
83         (gtk_tree_view_ensure_interactive_directory): New function
84         (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
85         (gtk_tree_view_real_start_interactive_search): rework
86         (gtk_tree_view_search_dialog_hide): ditto
87         (gtk_tree_view_search_delete_event): ditto
88         (gtk_tree_view_search_button_press_event): ditto
89         (gtk_tree_view_search_key_press_event): ditto
90         (gtk_tree_view_search_move): ditto
91         (gtk_tree_view_search_init): ditto
92
93         * gtk/gtktreeviewcolumn.c:
94         (gtk_tree_view_column_cell_layout_clear): remove unused variable.
95
96         * tests/testfilechooser.c: (main): change
97
98 2004-04-11  Hans Breuer  <hans@breuer.org>
99
100         * gdk/win32/gdkspawn-win32.c : workaround for bug #137496,
101         the real fix would involve just another small API breakage,
102         i.e. gdk_spawn_* using GPid not just gint.
103
104         * gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
105
106 2004-04-10  Tor Lillqvist  <tml@iki.fi>
107
108         * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
109         If both Shift and CapsLock pressed, ignore the shift only for
110         letters (that would have been affected by the CapsLock). (#139095)
111
112         * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
113         seems to be even buggier now than it used to be. (#138341)
114         Initialize _gdk_input_ignore_wintab to TRUE.
115
116         * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
117         GDK_USE_WINTAB environment variable to turn on tablet support.
118
119 2004-04-09  Christian Persch  <chpe@cvs.gnome.org>
120
121         * gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
122         (gtk_ui_manager_remove_action_group): Terminate
123         g_object_[dis]connect() calls with NULL instead of 0.
124         Fixes #138997.
125
126 2004-04-09  Guntupalli Karunakar  <karunakar@freedomink.org>
127
128         * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
129
130 2004-04-07  Federico Mena Quintero  <federico@ximian.com>
131
132         Fix #132500.
133
134         * gtk/gtkfilesystem.c (gtk_file_system_parse): Ensure that the
135         passed-in 'str' is not NULL.
136
137         * gtk/gtkfilesystemunix.c (expand_tilde): New helper function;
138         expands "~/" or "~foo/" at the beginning of a filename.
139         (gtk_file_system_unix_parse): Use expand_tilde() before doing
140         anything else.
141
142         * gtk/gtkfilechooserentry.c
143         (gtk_file_chooser_entry_maybe_update_directory): Take in a
144         force_reload argument.
145         (gtk_file_chooser_entry_changed): If gtk_file_system_parse()
146         returns an error, set the file_part_pos to -1.
147         (load_directory_callback): Only populate the model if the
148         file_part_pos is not -1.
149
150 2004-04-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
151
152         * configure.in: Added Icelandic (is) to ALL_LINGUAS
153
154 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
155
156         * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a
157         title for SAVE and CREATE_FOLDER modes.  Fixes #137272.
158
159         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Look
160         for G_DIR_SEPARATOR in the display_name, and err out if it is
161         present; use the same error message as Nautilus.  Fixes #136467.
162
163         * gtk/gtkfilechooserdefault.c (file_pane_create): Make the
164         new-folder button say "Create Fo_lder" rather than "Create
165         _Folder", so that the mnemonic doesn't conflict with the "Save in
166         _folder" label.  Fixes #136975.
167
168 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
169
170         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Ref/sink the
171         buttons.  Also, free them correctly upon failure.  Based on a
172         patch by Morten Welinder, fixes #137956.
173
174 2004-04-05  Anders Carlsson  <andersca@gnome.org>
175
176         * gdk/gdk.c (gdk_arg_context_parse): Handle '--' correctly.
177
178 Fri Apr  2 17:57:33 2004  Jonathan Blandford  <jrb@redhat.com>
179
180         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set the height
181         correctly for fixed height when inserting a node, #138082
182
183 2004-04-01  Federico Mena Quintero  <federico@ximian.com>
184
185         Fix #136077.
186
187         * gtk/gtkpathbar.h (struct _GtkPathBarClass): Add a
188         "child_is_hidden" boolean argument to the "path-clicked" signal.
189
190         * gtk/gtkpathbar.c (struct _ButtonData): Added a file_is_hidden
191         field.
192         (make_directory_button): Take a file_is_hidden argument; put it in
193         the ButtonData.
194         (_gtk_path_bar_set_path): See whether each path component path is
195         a hidden file.
196         (gtk_path_bar_class_init): Add the file_is_hidden argument to the
197         "path-clicked" signal.
198         (button_clicked_cb): See if the downwards button represents a
199         hidden file for the file_is_hidden argument in the signal
200         emission.
201
202         * gtk/gtkmarshalers.list: Added a signal type VOID:POINTER,BOOLEAN.
203
204         * gtk/gtkfilechooserdefault.c
205         (gtk_file_chooser_default_select_path): If we fail to switch
206         folders, don't try to select the path in the file system model.
207         Also, return the result from _gtk_file_system_model_path_do().
208         (gtk_file_chooser_default_select_path): Turn on show_hidden in the
209         file system model if we are asked to select a hidden file.
210         (path_bar_clicked): Show hidden files based on whether the
211         immediate downwards folder in the path bar is a hidden file
212         itself.
213         (struct _GtkFileChooserDefault): Added fields
214         browse_files_popup_menu and browse_files_popup_menu_hidden_files_item.
215         (create_file_list): Set an object data key of
216         "GtkFileChooserDefault" on the tree view so that we can find the
217         impl from the popup menu callbacks.  Also, hook up to the
218         "button-press-event" and "popup-menu" signals in the file list to
219         bring up a popup menu.
220         (list_popup_menu_cb): New callback.
221         (list_button_press_event_cb): New callback.
222
223         Fix #138763:
224
225         * gtk/gtkfilesystemmodel.c
226         (_gtk_file_system_model_new): Oops, connect_object to
227         "finished-loading".
228
229 2004-03-31  Tor Lillqvist  <tml@iki.fi>
230
231         * configure.in: Move AC_CANONICAL_HOST earlier, before the check
232         for native Win32. (#136559, J. Ali Harlow)
233
234         * gdk/win32/gdkdrawable-win32.c (draw_arc): Use X11 semantics for
235         angles. Thanks to Tim Newsham.
236
237 2004-03-29  Federico Mena Quintero  <federico@ximian.com>
238
239         Fix #137520.
240
241         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
242         for an ::is_finished_loading() method and a ::finished_loading()
243         signal at the end of the struct.
244
245         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
246         "finished-loading" signal.
247         (gtk_file_folder_is_finished_loading): New function.
248
249         * gtk/gtkfilesystemunix.c
250         (gtk_file_folder_unix_is_finished_loading): Implement.
251
252         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
253         slot for a "finished-loading" signal.
254         (gtk_file_system_model_class_init): Create the "finished-loading"
255         signal.
256         (struct _GtkFileSystemModel): New field
257         idle_finished_loading_source.  We emit the "finished-loading"
258         signal in an idle if the root folder was done loading right in
259         _gtk_file_system_model_new(), so that the caller has a chance to
260         connect to the signal.
261         (_gtk_file_system_model_new): Connect to the normal signals of the
262         folder even if the initial _list_children() fails.  Also, see if
263         the folder is finished loading; connect to the "finished-loading"
264         signal otherwise.
265         (gtk_file_system_model_finalize): Remove the idle handler.
266
267         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
268         and connect to the model's "finished-loading" signal.
269         (get_toplevel): New helper function.
270         (error_message): Use get_toplevel().
271         (trap_activate_cb): Likewise.
272         (location_popup_handler): Likewise.
273         (set_busy_cursor): New function.
274         (browse_files_model_finished_loading_cb): New callback.
275
276 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
277
278         * gtk/gtkfilechooserdefault.c (check_preview_change): Just use the
279         file under the cursor; we don't need the logic from
280         GtkFileSelection after all.  Fixes #132255.
281
282 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
283
284         * gtk/gtkfilechooserdefault.c (location_entry_create): Fill the
285         location entry with the display name of the file under the cursor
286         for Open mode, or the typed filename in Save mode.
287
288 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
289
290         * gtk/gtkfilesystemwin32.c
291         (filename_is_root): Bare drive designators (eg., "c:") are
292         no longer considered as root filenames.  Fixed #137942
293
294 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
295
296         * gtk/gtkfilesystemwin32.c
297         (gtk_file_system_win32_create_folder): Invert test for error in
298         mkdir.  Fixes #137945
299
300 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
301
302         Fixed #138004 using Federico's code from #132327.
303
304         * gtk/gtkfilesystemwin32.c (struct _GtkFileSystemWin32): Add a
305         folder_hash field to keep a list of live folder objects.
306         (gtk_file_system_win32_init): Create the folder_hash.
307         (gtk_file_system_win32_finalize): Destroy the folder_hash.
308         (gtk_file_system_win32_get_folder): Ref and return an existing
309         folder if we have it around, otherwise return a new folder object.
310         (struct _GtkFileFolderWin32): Add a field for the parent file system.
311         (gtk_file_folder_win32_finalize): Remove the folder from the file
312         system's hash table.
313         (gtk_file_system_win32_create_folder):  Emit "files-added" on the
314         newly-created folder's parent.  Fixes #138004.
315
316 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
317
318         * gtk/gtkfilesystemwin32.c
319         (gtk_file_system_win32_get_folder): Test that path is actually
320         a directory and throw error if not. Fixed bug #137950
321
322 2004-03-22  J. Ali Harlow  <ali@juiblex.co.uk>
323
324         * gtk/gtkfilesystemwin32.c
325         (gtk_file_system_win32_volume_get_display_name): Ignore empty
326         volume labels; assume that GetVolumeInformation would fail if
327         GetVolumeInformationW does; catches a small memory leak;
328         pass the buffer size to GetVolumeInformationW in wide
329         characters instead of bytes. Fixes bug #137543
330         (list_volumes): Cope with the theoretical possibility of
331         more than 26 logical drives. Fixes bug #137940
332         (bookmarks_serialize): Now actually removes bookmarks.
333         Fixes bug #137943
334
335 2004-03-22  Guntupalli Karunakar  <karunakar@freedomink.org>
336
337         * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
338
339 2004-03-21  Tor Lillqvist  <tml@iki.fi>
340
341         * gtk/gtkfilesystemwin32.c
342         (gtk_file_system_win32_volume_get_base_path): Include the
343         backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
344         NULL for a volume base path, as g_filename_to_uri() requires an
345         absolute path, and just a drive letter and colon isn't. (#137543)
346
347 2004-03-20  Hans Breuer  <hans@breuer.org>
348
349         * gtk/gtkfilesystemwin32.c : applied the undisputable and
350         required [due to recent gtkfilesystem internal api semantic 
351         changes] part of patches to fix bug #137543 (Tor Lillqvist,
352         J. Ali Harlow)
353
354         * gdk/gdkevents-win32.c (handle_configure_event) :
355              (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize
356         GdkWindowObject::x, y with screen coords to make 
357         gdk_window_get_position () return the right thing and thus fix
358         drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
359
360 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
361
362         * Revert the patch to #137520, as 2.4.1 is for conservative bug
363         fixes only.  The patch is attached to the bug report, for
364         reference.
365
366 2004-03-19  Morten Welinder  <terra@gnome.org>
367
368         * gtk/gtkfilechooserdefault.c
369         (gtk_file_chooser_default_set_current_folder): Test existance of
370         the path after checking for locality, if needed.
371
372 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
373
374         Fix #137520.
375
376         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
377         for an ::is_finished_loading() method and a ::finished_loading()
378         signal at the end of the struct.
379
380         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
381         "finished-loading" signal.
382         (gtk_file_folder_is_finished_loading): New function.
383
384         * gtk/gtkfilesystemunix.c
385         (gtk_file_folder_unix_is_finished_loading): Implement.
386
387         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
388         slot for a "finished-loading" signal.
389         (gtk_file_system_model_class_init): Create the "finished-loading"
390         signal.
391         (struct _GtkFileSystemModel): New field
392         idle_finished_loading_source.  We emit the "finished-loading"
393         signal in an idle if the root folder was done loading right in
394         _gtk_file_system_model_new(), so that the caller has a chance to
395         connect to the signal.
396         (_gtk_file_system_model_new): Connect to the normal signals of the
397         folder even if the initial _list_children() fails.  Also, see if
398         the folder is finished loading; connect to the "finished-loading"
399         signal otherwise.
400         (gtk_file_system_model_finalize): Remove the idle handler.
401
402         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
403         and connect to the model's "finished-loading" signal.
404         (get_toplevel): New helper function.
405         (error_message): Use get_toplevel().
406         (trap_activate_cb): Likewise.
407         (location_popup_handler): Likewise.
408         (set_busy_cursor): New function.
409         (browse_files_model_finished_loading_cb): New callback.
410
411 Thu Mar 18 12:10:45 2004  Owen Taylor  <otaylor@redhat.com>
412
413         * gtk/gtktreeitem.c (gtk_tree_item_forall): Include 
414         eventbox for expander. (#137564, reported by
415         Jacques Garrigue)
416
417 2004-03-18  Guntupalli Karunakar  <karunakar@freedomink.org>
418
419         * mr.po: Added "mr" for Marathi to ALL_LINGUAS.
420
421 2004-03-17  Morten Welinder  <terra@gnome.org>
422
423         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
424         volumes not actually put into the shortcut list.
425
426         * tests/prop-editor.c (object_changed): Plug leak.
427
428         * tests/testfilechooser.c (main): Plug some leaks and expose
429         others.
430
431         * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip
432         object.  Fixed #136652.
433
434         * gtk/gtkfilechooserdefault.c (check_icon_theme): Do nothing if we
435         have no screen.  Fixes #137260.
436         (shortcuts_add_bookmark_from_path): Simplify using check_is_folder
437         thereby fixing leak.  Fixes #137259.
438
439         * gtk/gtkpathbar.c (gtk_path_bar_forall): Make this work when the
440         slider buttons have been destroyed.
441         (gtk_path_bar_remove): Make this work for slider buttons too.
442         Fixes #137257
443
444 2004-03-15  Morten Welinder  <terra@gnome.org>
445
446         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
447         Sanitize and plug leak.
448         (check_icon_theme): Only do something if the widget has a screen.
449
450 Wed Mar 17 01:20:28 2004  Matthias Clasen  <maclas@gmx.de>
451
452         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
453         Move the repositioning logic from _gtk_entry_completion() popup
454         over here. Fixes #137355, reported by Niklas Knutsson.
455
456 Tue Mar 16 13:29:58 2004  Owen Taylor  <otaylor@redhat.com>
457
458         * === Released 2.4.0 ===
459
460         * configure.in: Version 2.4.0, interface age 0; 
461         require glib-2.4.0, pango-1.4.0.
462
463         * configure.in: Change gtk_binary_version to 2.4.0;
464         there are some compatibility issues with older theme engines.
465         
466         * NEWS: Updates
467
468         * README.in: Updates
469
470 Tue Mar 16 13:54:07 2004  Jonathan Blandford  <jrb@redhat.com>
471
472         * gtk/gtkentry.c (gtk_entry_completion_key_press): Block the
473         ::changed handler during the ::match-selected when done by
474         keyboard.
475
476 Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
477
478         * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
479         Block the ::changed handler during the emission of ::match-selected.
480         Partial fix for #137226.
481
482         * gtk/gtkfilechooserentry.c: Remove the no longer needed 
483         no_pop_down flag.
484
485 Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
486
487         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
488         Fix a typo in the docs.
489
490 2004-03-15  Tor Lillqvist  <tml@iki.fi>
491
492         * README.win32: Updates.
493
494 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
495
496         * gtk/gtkfilechooserdefault.c (update_appearance): Only hide the
497         "create folder" button in OPEN mode; all the others should show it
498         it.
499         (get_paths_foreach): Handle the editable row.
500
501         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder):
502         Force a re-get of the folder so that the new directory gets added
503         to its hash table of file info.
504
505 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
506
507         * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
508         modes, set the Name entry of the file chooser if we get a
509         nonexistent filename from the file entry.  Fixes #135911.
510         (gtk_file_chooser_default_set_current_name): Oops, this should
511         also work if we are in CREATE_FOLDER mode.
512
513         * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
514         gtk_file_path_copy().
515
516         * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
517         path that we got from the model.
518         (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
519         hard-coded constant.
520
521 Mon Mar 15 13:50:14 2004  Owen Taylor  <otaylor@redhat.com>
522
523         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
524         Don't leak the temporary font description. (Nils O. SelÃ¥sdal)
525
526 Mon Mar 15 12:51:17 2004  Jonathan Blandford  <jrb@gnome.org>
527
528         * gtk/gtkfilechooserdefault.c (location_popup_handler): Only show
529         the title string in OPEN/SELECT_FOLDER mode as it's open-specific.
530         Put a blank title for SAVE/CREATE_FOLDER; we are in string freeze,
531         so we'll fix it for 2.4.1 as #137272.
532
533         * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): calculate
534         space_available correctly for RTL mode.  w/o this, you can't
535         scroll down again.  Fixes #137021.
536
537 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
538
539         * gtk/gtkpathbar.c (gtk_path_bar_scroll_up): Queue a resize.
540         (gtk_path_bar_scroll_down): Likewise.
541
542 Mon Mar 15 11:40:43 2004  Owen Taylor  <otaylor@redhat.com>
543
544         * gtk/gtkfilechooserentry.c: Store the position of the 
545         file part and use that in check_completion_callback()
546         and match_selected_callback() to figure out where
547         to operate on the text, rather than recomputing the
548         information.
549
550 Mon Mar 15 10:35:19 2004  Jonathan Blandford  <jrb@gnome.org>
551
552         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): set
553         changing_folders to be true so we don't trigger a callback when we
554         remove the selection
555         (shortcuts_add_bookmarks): ditto
556
557 Mon Mar 15 10:47:18 2004  Owen Taylor  <otaylor@redhat.com>
558
559         * gtk/gtkfilechooserentry.c: s/seperator/separator/.
560
561 Mon Mar 15 09:54:36 2004  Owen Taylor  <otaylor@redhat.com>
562
563         * gtk/gtklabel.c (gtk_label_focus): Check for 
564         Control-Tab or Control-Shift-Tab, not any Control-key
565         as a current event ... handles the case where a dialog
566         is triggered from a control accelerator better.
567
568 Mon Mar 15 08:48:48 2004  Jonathan Blandford  <jrb@gnome.org>
569
570         * gtk/gtkfilechooserentry.c (match_selected_callback): implement
571         correctly.
572         (completion_match_func): Allow surpressing popdowns.
573         (maybe_append_seperator_to_path): New function to add a separator
574         item to a display_name.  Bad hack.
575         (check_completion_callback): Implement select-ahead as an idle.
576         (add_completion_idle): new function to handle select-ahead
577         (gtk_file_chooser_entry_do_insert_text): starf the select-ahead
578         idle.
579         (gtk_file_chooser_entry_focus): Override tab for completion.
580         (gtk_file_chooser_entry_activate): commit select_ahead when
581         activated.
582
583         * gtk/gtkfilechooserdefault.c (location_popup_handler): grab the
584         appropriate widget for the mode.
585
586 2004-03-15  Tor Lillqvist  <tml@iki.fi>
587
588         * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole
589         GdkGCWin32 with a single assignment, that overwrites GObject's
590         private data (for instance ref_count). (#137012, John Ehresman)
591
592 2004-03-15  Mark McLoughlin  <mark@skynet.ie>
593
594         * gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
595         GtkFileChooserDefault member. Leftover from my original patch
596         for bug #136987.
597
598 Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
599
600         * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
601         API more correctly.  Now pops down the dropdown well.
602
603         * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
604         FilePath.
605
606         * test/testfilechooser.c: disable preview widget temporarily.
607         It's not representative of a good preview widget.
608
609 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
610
611         * gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
612         Renamed from shortcuts_unselect_all(); now selects the row that
613         corresponds to the current folder, if any.  Fixes #135916.
614
615         * gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
616         _gtk_path_bar_down().
617
618 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
619
620         * gtk/gtkfilechooserdefault.c: Surround the
621         drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
622         too unstable right now.
623
624 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
625
626         * gtk/gtkfilechooserdefault.c: Implement local_only by
627         filtering the shortcuts and bookmarks list by 
628         gtk_file_system_path_to_filename (file_system, path) != NULL.
629         (#132894)
630
631         * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
632         a convenience function, may by interesting to push to the 
633         file system vtable later for performance.
634
635 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
636
637         * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
638         to be NULL, so that people can ask for information about a
639         parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
640
641         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
642         the condition describe above.
643
644         * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
645         information of root paths.
646
647         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
648
649 Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
650
651         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
652         GtkTreeViewSearchEqualFunc return value oddity here as well.
653
654         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
655         to get a string to compare to, return TRUE (no match), not 
656         FALSE (match). Handle %NULL string values gracefully.
657         Remove unused variable. (#135962, Mark McLoughlin)
658
659 2004-03-14  Morten Welinder  <terra@gnome.org>
660
661         * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
662
663 Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
664
665         * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
666         _gtk_path_bar_down().
667
668         * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
669         _gtk_path_bar_down() as bindings for Alt-Up
670         and new Alt-Down. (Partly based on a patch by
671         Mark McLoughlin, #136987)
672
673 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
674
675         Fixes #136185, patch by Morten Welinder, with some changes.
676
677         * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
678         (shortcuts_insert_path): Check the path first with check_is_folder().
679         (gtk_file_chooser_default_set_current_folder): Likewise.
680         (gtk_file_chooser_default_add_shortcut_folder): Likewise.
681         (browse_widgets_create): Unref the size group.
682
683         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
684         Handle the case where the file exists but it is not a directory.
685         (IconType): Add value for ICON_UNDECIDED.
686         (struct stat_info_entry): New structure to hold a file's struct
687         stat, its MIME type and its icon type.
688         (struct _GtkFileFolderUnix): Added a hash of struct
689         stat_info_entry, and flags to remember which info types we've read
690         so far.
691         (get_icon_type): Use a helper function for the icons-from-stat
692         types.
693         (gtk_file_system_unix_render_icon): Use the cached file info.
694         (gtk_file_folder_unix_get_info): Put the info in the cache.
695         (gtk_file_system_unix_get_folder): Create the cache of file info
696         structures.
697
698         * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
699         case where display_name is the same as the existing
700         info->display_name.
701
702 Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
703
704         #136672, reported by Christian Persch; fixes based
705         on a patch by Soeren Sandmann.
706
707         * gtk/gtkmenu.c: Change the handling of mixed gridded
708         and non-gridded menu items; the old method was causing
709         major performance problems even with the "avoid relayout
710         on destruction" hack put in recently.
711
712         Now we first lay out the gridded items and then put the 
713         non-gridded items into empty rows / after the gridded items. 
714         Layout is done in a central menu_shell_ensure_layout(). Also
715         avoid emitting property notifications when we initially
716         insert or attach items.
717         
718         * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
719         unused menu_shell->menu_flag, and document it as unused
720         in the header.
721
722         * tests/testactions.c: Add a test of creating/removing
723         lots of items.
724
725         * test/testgtk.c: Add some more cruft to the menu test.
726
727 Mon Mar 15 02:36:07 2004  Matthias Clasen  <maclas@gmx.de>
728
729         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
730         some signal docs.
731
732 Sun Mar 14 15:38:39 2004  Jonathan Blandford  <jrb@gnome.org>
733
734         * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
735         always use the match_func, even if text_column is set.
736
737 2004-03-14  Morten Welinder  <terra@gnome.org>
738
739         * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
740         "".
741         (gtk_file_system_unix_get_folder): Use the same value for lookup
742         as for insertion.  Make sure we have a directory.
743
744         * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
745         path; don't crash on NULL error.
746
747 2004-03-14  Hans Breuer  <hans@breuer.org>
748
749         gtk/gtkcombobox.c : prototype cell_view_sync_cells() before 
750         first usage
751
752         gtk/makefile.msc.in : updated 'gtk_public_h_sources'
753
754         tests/makefile.msc : added testspinbutton
755
756 Sun Mar 14 01:01:18 2004  Matthias Clasen  <maclas@gmx.de>
757
758         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
759         this function with gtk_tree_view_column_set_cell_data();
760         call the cell data func after setting the attributes.
761
762 Sun Mar 14 01:00:08 2004  Matthias Clasen  <maclas@gmx.de>
763
764         * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
765         make sure not to call gtk_cell_view_set_cell_data() when
766         displayed_row is NULL.
767
768 Sat Mar 13 18:13:13 2004  Owen Taylor  <otaylor@redhat.com>
769
770         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
771         wrapping, do the offset of the line for justification ourselves.
772         (#120256, Felipe Heidrich)
773
774 Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>
775
776         * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
777         model-less use of GtkCellView shown in testcombo.c.
778
779 2004-03-13  Tor Lillqvist  <tml@iki.fi>
780
781         * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
782         when compiling with gcc. Mingw's headers do have the required
783         definitions.
784
785         * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
786         filled polygons, don't draw the outline, similarily as
787         draw_rectangle(). Apparently GTK and GIMP don't use
788         gdk_draw_polygon() much (or always draw the outline, too), as this
789         has gone undetected for so long. Thanks to Bruce Hochstetler.
790
791 Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
792
793         * gtk/gtkwindow.c (gtk_window_destroy): Remove
794         the window from the toplevel_list here rather in destroy.
795         While this is theoretically speaking wrong, it fits
796         in better with the current reality that destroyed
797         widgets are not reusable. (#126808, Michael Natterer)
798
799 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
800
801         * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
802         beyond clearing to the background if there is no active row.
803         (#137066, reported by Owen Taylor)
804
805 Sat Mar 13 21:37:44 2004  Matthias Clasen  <maclas@gmx.de>
806
807         * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
808         list when an item is selected via the keyboard.
809
810 2004-03-13  Anders Carlsson  <andersca@gnome.org>
811
812         * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
813         (gtk_file_system_unix_get_folder),
814         (gtk_file_system_unix_create_folder), (get_parent_dir),
815         (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
816         Remove trailing slashes in path names.
817         
818 Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
819
820         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
821         this a total no-op when the new or old parent is
822         destroyed. (#134230, patch from Soeren Sandmann)
823
824         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
825         For foreign windows in our heirarchy, call
826         _gdk_windowing_window_destroy_foreign (window) and skip
827         all the normal destruction logic.
828
829         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
830         Move code to request destruction of a foreign window
831         code into a separate _gdk_windowing_window_destroy_foreign().
832
833         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
834         Call GDK_WINDOW_DISPLAY() on the wrapper not on the
835         impl. (Also from Soeren's patch)
836
837 Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
838
839         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
840         GTK_IS_PLUG toplevels, call gdk_window_get_origin() 
841         not gtk_window_get_position, as a hackround for not
842         having accurate notification of window position for
843         embedded windows. (#136112, Dan Winship)
844
845 Sat Mar 13 10:34:03 2004  Owen Taylor  <otaylor@redhat.com>
846
847         * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
848         it causes problems for pastes from other applications; see
849         comments in bugzilla for #81880.
850
851 Sat Mar 13 02:55:51 2004  Matthias Clasen  <maclas@gmx.de>
852
853         Fix middle button pasting in the TextView  (#81880, reported
854         by Evert Verhellen, patch by Paolo Borelli):
855         
856         * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve 
857         the insert mark and move the cursor to it making sure of also 
858         scroll the window if needed.
859         
860         * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
861         to the insertion point.
862
863 Sat Mar 13 01:38:55 2004  Matthias Clasen  <maclas@gmx.de>
864
865         * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove 
866         implemenatation which restores the cell_view when the custom 
867         child is removed.  (#136555, Owen Taylor)
868
869 Sat Mar 13 00:07:51 2004  Matthias Clasen  <maclas@gmx.de>
870
871         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear): 
872         Keep the cell_list in a consistent state while iterating over it, 
873         since clear_attributes() also iterates over it.  (another instance
874         of #136585, Morten Welinder)
875         
876 Fri Mar 12 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
877
878         * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
879         and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
880         Semion Chichelnitsky)
881
882         * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed 
883         gtk_toolbar_direction-changed handlers and explicit
884         flipping of GtkArrow widgets.
885
886 Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
887
888         * gtk/gtkfilechooserdialog.c
889         (file_chooser_widget_default_realized_size_changed): Clamp the
890         new size to the screen.
891
892 Fri Mar 12 15:06:44 2004  Owen Taylor  <otaylor@redhat.com>
893
894         * gtk/gtkexpander.c (gtk_expander_realize): Create the
895         event_window at the right size using the same logic as
896         in size_allocate. (#136994, Niklas Knuttson)
897
898 2004-03-12  Federico Mena Quintero  <federico@ximian.com>
899
900         * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
901         return value of gtk_widget_activate().
902         (gtk_window_activate_default): Likewise.  Fixes #137008.
903
904         * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
905         response IDs we recognize, rather than bailing out on cancellation
906         ones.  Fixes #136237; patch by Olivier Andrieu
907         <oliv__a@users.sourceforge.net>.
908         (file_chooser_widget_file_activated): If the dialog doesn't have a
909         default widget, try to find a suitable response widget on our own.
910         People should *really* be using gtk_dialog_set_default_response(),
911         but this is to help lazy programmers.
912
913         * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
914         internal function.
915         (get_response_data): Add a "create" argument so that we don't
916         unconditionally create the response data.
917
918 2004-03-12  Morten Welinder  <terra@gnome.org>
919
920         * tests/Makefile.am: Add new testspinbutton.c
921
922 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
923
924         * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
925         Put the trash icon on the right for LTR locales, or on the left
926         for RTL.
927         (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
928         (shortcuts_drag_leave_cb): Test whether the idle is present.
929         (shortcuts_drag_data_received_cb): Ahem, don't assert here.
930
931 Thu Mar 11 17:51:10 2004  Owen Taylor  <otaylor@redhat.com>
932
933         * modules/input/gtkimcontextxim.c (preedit_done_callback):
934         Clear preedit string and emit preedit_changed as needed
935         on AIX. (#130617, Philip K Warren)
936
937 2004-03-11  Morten Welinder  <terra@gnome.org>
938
939         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
940
941 Thu Mar 11 16:28:15 2004  Owen Taylor  <otaylor@redhat.com>
942
943         * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
944         type. (#136919, Tim Mooney)
945
946 Thu Mar 11 16:18:51 2004  Jonathan Blandford  <jrb@redhat.com>
947
948         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
949         earlier change to insert_path so that we test that the directory
950         exists.
951
952         * gtk/gtkfilechooserdialog.c
953         (gtk_file_chooser_dialog_constructor): move focus.
954
955 Thu Mar 11 22:12:14 2004  Matthias Clasen  <maclas@gmx.de>
956
957         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
958         logic as GtkEntry when calculating border width.  (#116368, reported
959         by Morten Welinder)
960
961 Thu Mar 11 15:59:05 2004  Owen Taylor  <otaylor@redhat.com>
962
963         * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
964         rather than gtk_widget_set_size_request().
965
966 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
967
968         * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
969         function, copied from gtkpathbar.c.
970         (gtk_file_chooser_default_dispose): Use remove_settings_signal()
971         rather than our own code.
972         (gtk_file_chooser_default_screen_changed): Use
973         remove_settings_signal(); this should handle per-screen settings
974         correctly.
975
976 Thu Mar 11 14:07:18 2004  Owen Taylor  <otaylor@redhat.com>
977
978         * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
979         value.
980
981 Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
982
983         * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
984         put-labels-into-the-standard-focus-chain patches 
985         from bug #59707.
986
987         * gtk/gtklabel.c (gtk_label_focus): Only put the
988         label in the tab chain when the control key is pressed.
989
990 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
991
992         * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
993         single OK button, not a Close button, as per the HIG.
994
995         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
996
997 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
998
999         * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
1000         initialize "action" before jumping.  Fixes #136900.
1001
1002 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
1003
1004         * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
1005         application properties. Fixes bug #136802.
1006
1007 2004-03-11  Dov Grobgeld  <dov@imagic.weizmann.ac.il>
1008
1009         * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
1010         call to gtk_text_layout_update_cursor_line() to solve in 
1011         problem of switching keyboard direction at widget creation:
1012         bug #136680
1013
1014 Thu Mar 11 10:28:30 2004  Owen Taylor  <otaylor@redhat.com>
1015
1016         * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
1017         stray 'return' statement. (#136855, David L. Cooper II)
1018
1019 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
1020
1021         * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
1022         fg color for drawing the expander when prelit. Fixes problem
1023         with the HighContrast theme: bug #136789.
1024
1025 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
1026
1027         Fix #135912 and #135913.
1028
1029         * gtk/gtkfilechooserdefault.c
1030         (shortcuts_filter_model_row_draggable): Implement.
1031         (shortcuts_model_filter_new): New function, create a
1032         ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
1033         we can implement our own DnD interface methods.
1034         (shortcuts_model_create): Use shortcuts_model_filter_new().
1035         (shortcuts_list_create): Enable the shortcuts list as a drag
1036         source.
1037         (file_list_source_targets): Renamed from shortcuts_targets.
1038         (shortcuts_list_create): Change the options for
1039         gtk_drag_dest_set().  Connect to more drag signals so that we can
1040         implement drops by hand.
1041         (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
1042         (shortcuts_drag_motion_cb): New handler; validate the drop.
1043         (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
1044         (shortcuts_drag_drop_cb): New handler; just stop the emission and
1045         remove the idle handler for the drag cursor.
1046         (shortcuts_add_bookmark_from_path): Add a position argument,
1047         return a boolean success code.
1048         (shortcuts_drag_data_received_cb): Handle two cases:  1) Insert
1049         the bookmarks at the proper position, rather than always appending
1050         them to the list; 2) alternatively, reorder the bookmarks.
1051         (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
1052         (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
1053         (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
1054         an idle handler.
1055         (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
1056
1057 Thu Mar 11 01:08:25 2004  Jonathan Blandford  <jrb@gnome.org>
1058
1059         * gtk/gtkfilechooserdefault.c (location_entry_create): up the
1060         width of the entry a tad.
1061
1062         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
1063         gtk_entry_completion_selection_changed.  Also, unref the
1064         completion as we were leaking a reference to it.
1065
1066 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
1067
1068         * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon.  Thanks to
1069         Kjartan Maraas for pointing it out.
1070
1071 Wed Mar 10 23:40:15 2004  Matthias Clasen  <maclas@gmx.de>
1072
1073         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
1074         background on the action view cell renderer here, not in init, so 
1075         that a) we catch style changes, and b) we get the real style, not 
1076         the default one. Partial fix for #127648, reported by Dave Bordoley.
1077
1078 2004-03-10  Tor Lillqvist  <tml@iki.fi>
1079
1080         * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
1081         the pointer button bits. (#136636, Dave Neary)
1082
1083         * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
1084         transparent (input only) windows using SetWindowPos(). (#132331,
1085         John Ehresman)
1086
1087         (gdk_window_set_type_hint): For splash screens, remove the resize
1088         handles, menu, and minimize/maximize/close buttons. (#132896)
1089
1090 Wed Mar 10 22:30:23 2004  Matthias Clasen  <maclas@gmx.de>
1091
1092         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
1093         cell_list in a consistent state while iterating over it, since
1094         clear_attributes() also iterates over it.  (#136585, Morten Welinder)
1095
1096 2004-03-10  Mark McLoughlin  <mark@skynet.ie>
1097
1098         * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
1099         the expose to the label. The expose handler for GtkContainer
1100         already does that. Fixes bug #136719. Reported by Dennis
1101         Cranston, exact cause nailed down by Owen.
1102
1103 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
1104
1105         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
1106         untranslatable "%x" for dates, rather than a custom format.  Fixes
1107         #136357.
1108
1109 2004-03-10  Morten Welinder  <terra@gnome.org>
1110
1111         * gtk/gtkfilechooserdefault.c
1112         (gtk_file_chooser_default_add_shortcut_folder): Test validity of
1113         path here.
1114         (shortcuts_insert_path): Don't check here.
1115         (get_file_info): Barf if name-only fails.
1116
1117         * tests/testfilechooser.c (main): Add support for --multiple.
1118
1119 Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
1120
1121         * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
1122         (remove_settings_signal), (gtk_path_bar_dispose),
1123         (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
1124         (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
1125         (settings_notify_cb), (gtk_path_bar_check_icon_theme),
1126         (get_button_image), (gtk_path_bar_update_button_appearance),
1127         (make_directory_button), (gtk_path_bar_check_parent_path): Support
1128         changes in icon themes.
1129
1130         * gtk/gtkpathbar.h: add two elements
1131
1132         * tests/testfilechooser.c: (main): use gnome-vfs method again to
1133         get more testing.
1134
1135 Wed Mar 10 01:17:40 2004  Jonathan Blandford  <jrb@gnome.org>
1136
1137         * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes.  We
1138         don't have any more untranlated strings in the dialog.
1139
1140 Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>
1141
1142         * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
1143         the pathname for UTF-8 safety.
1144
1145 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
1146
1147         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
1148         check to see if the shortcuts exists.  We don't want to put
1149         invalid dirs in the shortcuts pane.
1150
1151 Tue Mar  9 16:40:34 2004  Jonathan Blandford  <jrb@gnome.org>
1152
1153         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1154         remove unneeded shortuts_swin;
1155
1156 Wed Mar 10 01:49:27 2004  Matthias Clasen  <maclas@gmx.de>
1157
1158         Fix #136614 in a better way:
1159         
1160         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
1161         * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
1162         * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
1163         * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
1164         alignment if priv->align_set is set.
1165         * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
1166
1167 Wed Mar 10 01:21:05 2004  Matthias Clasen  <maclas@gmx.de>
1168
1169         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
1170         grid mode popups left aligned, not right aligned.
1171
1172 Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
1173
1174         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
1175         the label that is reparented from the menuitem.  (#136614, Dennis
1176         Cranston)
1177
1178 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
1179
1180         * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
1181         information about a button in a struct instead of ugly
1182         g_object_set_data.
1183         (gtk_path_bar_size_request): Use ButtonData.
1184         (gtk_path_bar_update_slider_buttons): ditto
1185         (gtk_path_bar_size_allocate): ditto
1186         (gtk_path_bar_remove): ditto
1187         (gtk_path_bar_forall): ditto
1188         (gtk_path_bar_scroll_down): ditto
1189         (gtk_path_bar_clear_buttons): ditto
1190         (button_clicked_cb): ditto.  Also, add an ignore_changes variable
1191         (button_data_free): destroy ButtonData
1192         (update_button_appearance): Use ButtonData
1193         (make_directory_button): ditto
1194         (gtk_path_bar_check_parent_path): ditto
1195         (_gtk_path_bar_set_path): ditto
1196
1197 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
1198
1199         Fix #136533.
1200
1201         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
1202         function.
1203         (check_icon_theme): New helper function, installs a handler for
1204         changes in the icon theme.
1205         (gtk_file_chooser_default_style_set): Use check_icon_theme().
1206         (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
1207         (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
1208         (change_icon_theme): New function, updates impl->icon_size and
1209         reloads the icons.
1210         (struct _GtkFileChooserDefault): New field settings_signal_id.
1211         (struct _GtkFileChooserDefault): New field icon_size.
1212         (shortcuts_insert_path): Use impl->icon_size.
1213         (list_icon_data_func): Likewise.
1214
1215 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
1216
1217         * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
1218         parent_path being NULL.  Fixes #136662.
1219
1220 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
1221
1222         * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
1223         Stop the emission so that GtkTreeView's handler won't try to poke
1224         the filter model.  Fixes #136127.
1225
1226 Tue Mar  9 13:49:14 2004  Owen Taylor  <otaylor@redhat.com>
1227
1228         * gtk/gtkstyle.c (gtk_paint_polygon): Fix 
1229         g_return_if_fail() that was checking draw_shadow.
1230         (#136669, Morten Welinder)
1231
1232 Tue Mar  9 09:57:25 2004  Owen Taylor  <otaylor@redhat.com>
1233
1234         * === Released 2.3.6 ===
1235
1236         * configure.in: Version 2.3.6, interface age 0.
1237
1238         * NEWS: Updates
1239
1240 Tue Mar  9 11:01:45 2004  Jonathan Blandford  <jrb@gnome.org>
1241
1242         * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
1243         icon.  Reported by Michael Natterer <mitch@gimp.org>.
1244
1245 2004-03-09  Morten Welinder  <terra@gnome.org>
1246
1247         * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
1248
1249 Tue Mar  9 02:11:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1250
1251         * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
1252         (struct _GtkMenuPrivate): Add boolean destroying
1253         (gtk_menu_destroy): Set priv->destroying
1254         (gtk_menu_remove): don't update the table information when the
1255         menu is being destroyed.
1256
1257         * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
1258
1259         * gtk/gtktoolbar.[ch]: Some formatting fixes
1260
1261 Tue Mar  9 01:25:10 2004  Matthias Clasen  <maclas@gmx.de>
1262
1263         * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
1264
1265 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1266
1267         Fixes #136080.
1268
1269         * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
1270         ENOENT.
1271         (filename_get_info): Likewise.
1272
1273 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1274
1275         * gtk/gtkfilechooserdefault.c
1276         (gtk_file_chooser_default_initial_focus): Use
1277         gtk_tree_view_set_cursor().
1278
1279 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1280
1281         Patch "1a" from #136185, by Morten Welinder.
1282
1283         * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
1284         that says whether the caller just wants the display name.
1285         (shortcuts_insert_path): We only want the name in the call to
1286         get_file_info().
1287
1288         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
1289         info than needed from the file_folder.
1290
1291 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1292
1293         Fixes #136105.
1294
1295         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1296         Added an ::initial_focus() method.
1297
1298         * gtk/gtkfilechooserembed.c
1299         (_gtk_file_chooser_embed_delegate_iface_init): Set the
1300         initial_focus method.
1301         (delegate_initial_focus): Implement.
1302         (_gtk_file_chooser_embed_initial_focus): New function.
1303
1304         * gtk/gtkfilechooserdialog.c
1305         (gtk_file_chooser_dialog_constructor): Call
1306         _gtk_file_chooser_embed_initial_focus().
1307
1308         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1309         Install the ::initial_focus() handler.
1310         (gtk_file_chooser_default_initial_focus): Implement.
1311
1312 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1313
1314         * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
1315         boolean success code.
1316         (location_popup_handler): Refocus the file chooser if appropriate.
1317         Fixes #135905.
1318         (save_widgets_create): Don't set the text of the save_folder_label
1319         here.
1320         (update_appearance): Set the text here as appropriate for the save
1321         mode.  Also fixes #136387.
1322         (update_appearance): Don't show the Create Folder button in
1323         SELECT_FOLDER mode.
1324         (update_appearance): Show the extra widget in all Save modes
1325         correctly.
1326
1327 Mon Mar  8 11:57:27 2004  Owen Taylor  <otaylor@redhat.com>
1328
1329         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
1330         call g_signal_handler_disonnect() if priv->model is
1331         NULL. (#136551, Damon Chaplin)
1332
1333         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1334         Back out code to set the active item when the first
1335         item is added to the model; this causes problems for
1336         GtkComboBoxText. (#136535)
1337
1338         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
1339         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
1340         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1341         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): 
1342         Remove calls to gtk_combo_box_unset_model.
1343
1344         * gtk/gtkcombobox.c (gtk_combo_box_check_appearance): 
1345         Clean up handling of wrap->width > 0.
1346
1347         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
1348         switch list/menu mode here.
1349
1350         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
1351         against the same model being set back.
1352
1353         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
1354         gtk_combo_box_menu_fill() rather than duplicating
1355         a large chunk of code.
1356
1357 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1358
1359         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): 
1360         If max_depth is 0 then we have a list.
1361
1362 2004-03-08  Morten Welinder  <terra@gnome.org>
1363
1364         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
1365         widget unchanged.  Explicitly verify final directory.
1366
1367         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
1368         get_icon_type, filename_get_info): Protect errno.
1369
1370 2004-03-08  Marco Pesenti Gritti  <marco@gnome.org>
1371
1372         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
1373
1374         When an action is selected stop the event to be propagated
1375         otherwise the activate signal is emitted too. (Bug #133394)
1376
1377 Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
1378
1379         * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
1380         consolidate creating the path_bar.
1381         (gtk_file_chooser_default_set_current_folder): no longer need to
1382         pass in the filesystem.
1383
1384         * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
1385         of just setting the filesystem.
1386
1387         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
1388         home_dir.
1389         (get_button_image): Add images to path_bar.
1390         (update_button_appearance): use images
1391         (make_directory_button): Clasify buttons based upon location.
1392         (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
1393         rerooting, #135845, #135914
1394
1395         * tests/testfilechooser.c: Fix reused error handling.
1396
1397 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1398
1399         * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
1400         (gtk_file_system_unix_render_icon):
1401         Use better icons for home and desktop.
1402
1403 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1404
1405         * gtk/gtkfilechooserentry.c:
1406         (_gtk_file_chooser_entry_set_base_folder):
1407         Set the base folder path in the entry.
1408         
1409 2004-03-08  Christian Neumair  <chris@gnome-de.org>
1410
1411         * tests/testentrycompletion.c: Fix typo.
1412
1413 2004-03-08  Tor Lillqvist  <tml@iki.fi>
1414
1415         * README.win32: Update.
1416
1417         * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
1418
1419         * tests/testfilechooser.c: Correct localtime_r() emulation on
1420         Win32. Remove a couple of unnecessary Win32-only includes.
1421
1422 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
1423
1424         * tests/testentrycompletion.c: Test dynamic addition/removal. 
1425
1426 Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
1427
1428         * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not 
1429         xthickness in the calculation of vertical dimensions.
1430
1431 Sun Mar  7 17:38:03 2004  Jonathan Blandford  <jrb@gnome.org>
1432
1433         * gtk/gtkbutton.c (gtk_button_class_init): actually use
1434         gtk_button_add.
1435
1436         * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
1437         use the uri, not the path, #136317
1438         (renderer_edited_cb): ditto
1439         (shortcuts_add_bookmark_from_path): ditto
1440         (remove_bookmark_button_clicked_cb): ditto
1441         (gtk_file_chooser_default_remove_shortcut): ditto
1442         (update_from_entry): ditto
1443         (up_folder_handler): ditto
1444
1445 Sun Mar  7 16:07:08 2004  Jonathan Blandford  <jrb@gnome.org>
1446
1447         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
1448         redraw_on_allocate, #135902.
1449
1450         * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
1451         Damon Chaplin to set a node to be visible before emitting the
1452         inserted signal, #135555.
1453
1454 Sun Mar  7 22:24:28 2004  Matthias Clasen  <maclas@gmx.de>
1455
1456         * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
1457         height calculation.
1458
1459 Sun Mar  7 14:34:04 2004  Jonathan Blandford  <jrb@gnome.org>
1460
1461         Fixes #121500.
1462
1463         * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
1464         from unselecting rows when pressed in multiple-selection mode.
1465
1466 2004-03-07  Hans Breuer  <hans@breuer.org>
1467
1468         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
1469         some more settings from system, also reflect some name changes
1470         done a while ago in the x11 backend
1471
1472         * gdk/win32/makefile.msc : build gdkspawn-win32.c
1473
1474         * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
1475
1476         * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
1477
1478         * tests/makefile.msc : some more tests get build
1479
1480 Sun Mar  7 03:03:57 2004  Jonathan Blandford  <jrb@gnome.org>
1481
1482         * gtk/gtkfilechooserdefault.c
1483         (gtk_file_chooser_default_get_paths): if action is
1484         SELECT_FOLDER, then return the currentd folder if none is
1485         selected.
1486         (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
1487         no directory is selected in SELECT_FOLDER mode.
1488
1489 Sat Mar  6 23:31:18 2004  Jonathan Blandford  <jrb@gnome.org>
1490
1491         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1492         remove unneeded elements.
1493         (tree_selection_changed): removed
1494         (tree_name_data_func): removed
1495         (gtk_file_chooser_default_finalize): don't unref dir model
1496         (create_folder_tree): removed
1497         (get_selection): no longer need to abstract away the selection
1498         function.
1499         (create_file_list): We now create a tree for all actions.
1500         (file_pane_create): Make one tree.
1501         (update_appearance) We really change the mode only, now.
1502
1503 Sun Mar  7 02:38:00 2004  Matthias Clasen  <maclas@gmx.de>
1504
1505         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a 
1506         size_request on the button and cell_view_frame, otherwise
1507         their style will still be the default here in the initial 
1508         size_request. (#136301, Mark McLoughlin)
1509
1510 2004-03-06  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
1511
1512         * gtk/gtktoolbar.c (internal_insert_element): Check return value
1513         of gtk_stock_lookup; if stock lookup fails, just use stock_id as
1514         label, instead of crashing. Fixes #136202.
1515
1516 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1517
1518         * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
1519         include.
1520         * gdk/linux-fb/gdkwindow-fb.c: Likewise.
1521         * gdk/linux-fb/gdkinput.c: Likewise.
1522
1523 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1524
1525         Fixes #136082 and #135265, patch by Morten Welinder.
1526
1527         * configure.in: Use AC_SYS_LARGEFILE.
1528
1529         * */*.c: #include <config.h>
1530
1531 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1532
1533         * gtk/gtkfilechooserdefault.c
1534         (gtk_file_chooser_default_select_path): No need to have a
1535         temporary error variable.
1536
1537 2004-03-05  Tor Lillqvist  <tml@iki.fi>
1538
1539         * configure.in: Move check for native Win32 (mingw) a bit
1540         earlier. If Win32, disable static builds (as in GLib). Remove
1541         unnecessary AC_LIBTOOL_WIN32_DLL.
1542
1543         * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
1544
1545         * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
1546
1547         (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
1548         implementation.
1549
1550         (gdk_display_supports_cursor_alpha,
1551         gdk_display_supports_cursor_color): Dummy implementations.
1552
1553         (gdk_display_get_default_cursor_size,
1554         gdk_display_get_maximal_cursor_size): Implement.
1555
1556         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
1557         Dummy implementation.
1558
1559         * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
1560         implementation.
1561
1562         * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
1563
1564         * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
1565         not in API.
1566
1567         * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
1568         implementation.
1569
1570 Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
1571
1572         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
1573         to the new path.
1574
1575         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
1576         allocation when scrolling instead of cancelling editing.
1577
1578 Fri Mar  5 23:52:34 2004  Matthias Clasen  <maclas@gmx.de>
1579
1580         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
1581         Improve the docs.  (#127727, Murray Cumming)
1582
1583 Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
1584
1585         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
1586         doc comment.  (#118602)
1587
1588 Fri Mar  5 22:37:15 2004  Matthias Clasen  <maclas@gmx.de>
1589
1590         * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
1591         the priv->image pointer dangle.  (#136259, Padraig O'Briain)
1592
1593 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1594
1595         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
1596         gboolean return values and GError arguments to
1597         ::set_current_folder() and ::select_path().
1598
1599         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
1600         Return a boolean value for success/failure.
1601         (gtk_file_chooser_set_current_folder_uri): Likewise.
1602         (gtk_file_chooser_select_filename): Likewise.
1603         (gtk_file_chooser_select_uri): Likewise.
1604         (gtk_file_chooser_set_filename): Likewise.
1605         (gtk_file_chooser_set_uri): Likewise.
1606         (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
1607         in a GError.
1608         (_gtk_file_chooser_select_path): Likewise.
1609
1610         * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
1611         Likewise.
1612         (delegate_select_path): Likewise.
1613
1614         * gtk/gtkfilechooserdefault.c
1615         (gtk_file_chooser_default_select_path): Likewise.
1616         (gtk_file_chooser_default_set_current_folder): Likewise; this also
1617         fixes #136024.
1618         (error_changing_folder_dialog): New helper function.
1619         (change_folder_and_display_error): New helper function.
1620         (switch_to_selected_folder): Use change_folder_and_display_error().
1621         (tree_selection_changed): Likewise.
1622         (shortcuts_activate_volume): Likewise.
1623         (shortcuts_activate_item): Likewise.
1624         (list_row_activated): Likewise.
1625         (path_bar_clicked): Likewise.
1626         (update_from_entry): Likewise.
1627         (up_folder_handler): Likewise.
1628         (home_folder_handler): Get the home path from the shortcuts model,
1629         and use change_folder_and_display_error().
1630
1631         * tests/testfilechooser.c (set_current_folder): New helper
1632         function; pops up a simple error dialog if necessary.
1633         (set_filename): Likewise.
1634         (set_folder_nonexistent_cb): Use set_current_folder().
1635         (set_folder_existing_nonexistent_cb): Likewise.
1636         (set_filename_nonexistent_cb): Use set_filename().
1637         (set_filename_existing_nonexistent_cb): Likewise.
1638
1639 Fri Mar  5 11:17:35 2004  Owen Taylor  <otaylor@redhat.com>
1640
1641         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): 
1642         Improve the docs (reported by Vitaly Tishkov, 
1643         #74362) Add some comments to the code about the 
1644         row reference handling that are hopefully not entirely
1645         wrong.
1646
1647 2004-03-05  Michael Natterer  <mitch@gimp.org>
1648
1649         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1650         s/object/widget/. Makes it compile again.
1651
1652 Fri Mar  5 03:37:14 2004  Jonathan Blandford  <jrb@gnome.org>
1653
1654         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1655         chain to the extra_widget.
1656
1657 Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>
1658
1659         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1660         Patch from Damon Chaplin to free models when we're finalized,
1661         #134053
1662
1663 2004-03-05  Alexander Larsson  <alexl@redhat.com>
1664
1665         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1666         Document the fact that there might not be a volume for all
1667         paths.
1668
1669         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1670         Don't assume there is a volume for all paths.
1671
1672 Fri Mar  5 01:45:04 2004  Jonathan Blandford  <jrb@gnome.org>
1673
1674         * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1675         the correct place instead of naïvely appending.
1676         (shortcuts_add_volumes): refilter the model
1677         (shortcuts_add_bookmarks): refilter the model
1678         (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1679
1680 2004-03-04  Federico Mena Quintero  <federico@ximian.com>
1681
1682         * gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
1683         GtkFileChooser widget if it wants to do something special rather
1684         than letting us terminate the dialog.
1685         (gtk_file_chooser_dialog_init): Connect to "response"; see the
1686         comment in the sources to see why we don't override the method in
1687         class_init.
1688
1689         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1690         Added a ::should_respond() method.
1691
1692         * gtk/gtkfilechooserembed.c
1693         (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1694         (delegate_should_respond): New delegate.
1695         (_gtk_file_chooser_embed_should_respond): New function.
1696
1697         * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1698         Use dashes in signal names rather than underscores.
1699         (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1700         (gtk_file_chooser_default_should_respond): Implement.  go into a
1701         folder rather than responding if we are in File mode and the
1702         selected file is a folder.
1703         (get_selection): New helper function.
1704         (add_bookmark_button_clicked_cb): Use get_selection().
1705         (bookmarks_check_add_sensitivity): Likewise.
1706         (gtk_file_chooser_default_get_paths): Likewise.
1707         (check_save_entry): New helper function.
1708         (gtk_file_chooser_default_get_paths): Use check_save_entry().
1709         (selection_check): Renamed from selection_is_folders().  Now
1710         checks whether the selection is empty, all files, all folders.
1711         (bookmarks_check_add_sensitivity): Use selection_check().
1712
1713 Fri Mar  5 00:05:59 2004  Matthias Clasen  <maclas@gmx.de>
1714
1715         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1716         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to 
1717         key_press_event and handle Alt-Down/Alt-Up to show or hide the
1718         list popup. Also handle Down/Up/PageDown/PageUp/Home/End and 
1719         make them change the active item without popping up the list.
1720         These keybindings are inherited from GtkCombo. 
1721
1722 Thu Mar  4 23:15:58 2004  Matthias Clasen  <maclas@gmx.de>
1723
1724         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially 
1725         select the active item when using optionmenu-like positioning. 
1726
1727 Thu Mar  4 16:54:30 2004  Owen Taylor  <otaylor@redhat.com>
1728
1729         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1730         open/close the file, just check for existence
1731         with g_file_test(). This is considerably cheaper,
1732         and lack-of-permissions for pixmap dirs is 
1733         pathological.
1734
1735 Wed Mar  3 17:53:21 2004  Owen Taylor  <otaylor@redhat.com>
1736
1737         * gtk/gtksocket.c (gtk_socket_class_init): Overide
1738         show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1739         since we don't want to propagate to the in-process
1740         plug, if any. (#122949, Michael Meeks)
1741
1742 Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
1743
1744         * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1745         Folder' button in SAVE mode again.
1746
1747 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
1748
1749         * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1750         count of the style when copying the cached icon.  (#135890, Crispin
1751         Flowerday)
1752
1753 Thu Mar  4 21:45:43 2004  Matthias Clasen  <maclas@gmx.de>
1754
1755         * gtk/gtkcombobox.c: In list mode, set the background color 
1756         of the cell view to the base color of the style, instead of
1757         hardwiring white. (#136158)
1758
1759 Thu Mar  4 01:32:19 2004  Jonathan Blandford  <jrb@gnome.org>
1760
1761         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1762         muppet <scott@asofyet.org> to keep child directories around if we
1763         change to a child.
1764
1765         * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1766         icon-setting functions.  Not used yet.
1767         (_gtk_path_bar_set_root_icon): Ditto.
1768         
1769 Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>
1770
1771         * gtk/gtktextview.c (extend_selection): 
1772         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1773         to select the last word in the buffer.  (#135487, Paolo Borelli)
1774
1775 Wed Mar  3 23:54:31 2004  Matthias Clasen  <maclas@gmx.de>
1776
1777         * gtk/gtkentrycompletion.c: Doc update.
1778
1779 Wed Mar  3 17:30:18 2004  Owen Taylor  <otaylor@redhat.com>
1780
1781         * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1782         whether widgets are viewable, not just if they are
1783         mapped. (#122912, reported by Tim Evans)
1784
1785 Wed Mar  3 23:28:48 2004  Matthias Clasen  <maclas@gmx.de>
1786
1787         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1788         implementation into a new gtk_combo_box_set_active_internal() 
1789         function, which doesn't do the short-circuiting. 
1790         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1791         set_active_internal() here, since the active item may change here,
1792         although the index is unchanged.
1793
1794 Wed Mar  3 23:26:49 2004  Matthias Clasen  <maclas@gmx.de>
1795
1796         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1797         traditional option menu placement of the popup for regular combo
1798         boxes. Grids and editable combo boxes use the combo-like placement 
1799         below the entry.  (#136021)
1800         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): 
1801         * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1802         before popping up the menu, to make the placement work.
1803         
1804 Wed Mar  3 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
1805
1806         * gtk/gtkmain.c (gtk_propagate_event): Special case
1807         scroll events so that they propagate up the widget
1808         heirarchy when received on insensitive widgets.
1809         (#101102, reported by Geoff Reedy)
1810
1811 Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
1812
1813          #109594, reported by Olivier Ripoll
1814
1815         * gtk/gtkentry.c (gtk_entry_size_request): Use max of 
1816         width and digit width for gtk_entry_set_width_chars,
1817         and round up.
1818
1819         * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1820         width of the entry to 7 chars.
1821
1822 Wed Mar  3 16:00:10 2004  Owen Taylor  <otaylor@redhat.com>
1823
1824         * configure.in: Strip out the "export-dynamic" libtool
1825         option from library link lines. (#124687, James Henstridge)
1826
1827 Wed Mar  3 16:06:03 2004  Jonathan Blandford  <jrb@gnome.org>
1828
1829         * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1830         Don't activate the combo if we're in the midst of changing
1831         folders.
1832
1833 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1834
1835         * tests/testsocket_common.c: (print_hello): don't try and store
1836         pointers in ints. Fixes 64-bit build.
1837
1838 2004-03-03  Federico Mena Quintero  <federico@ximian.com>
1839
1840         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1841         not using a temporary variable, and clarify the documentation.
1842         Fixes #136008.
1843
1844 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1845
1846         * gtk/gtkexpander.c:
1847         (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1848         (gtk_expander_set_label_widget): Set the label widget's
1849         state to prelight if we're prelit. Fixes bug #136078.
1850
1851 2004-03-03  Murray Cumming  <murrayc@murrayc.com>
1852
1853         * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1854         signal vfunc declaration, adding the first parameter, which is the
1855         widget emitting the signal.
1856
1857 2004-03-03  Morten Welinder  <terra@gnome.org>
1858
1859         * tests/testfilechooser.c (update_preview_cb): Plug leak.
1860
1861 Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
1862
1863         * gtk/gtkfilechooserdialog.c
1864         (file_chooser_widget_default_realized_size_changed): Split
1865         function into realized and unrealized variants, and consolidate
1866         the handling fo size-changing and default changing.
1867
1868         * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1869         remove resizable-hints-changed, as it just complicated things.
1870
1871         * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1872         resizable-hints-changed.
1873         
1874 2004-03-03  Tor Lillqvist  <tml@iki.fi>
1875
1876         * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1877
1878         * NEWS: Correct spelling of my name in one place.
1879
1880 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1881
1882         * gtk/gtkfilechooserdefault.c
1883         (gtk_file_chooser_default_set_current_folder): Handle errors in
1884         setting the path bar's path.  Fixes #136000, based on a patch by
1885         Morten Welinder.
1886
1887         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1888         Don't free our own propagated error.
1889
1890         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1891         parent_path upon error.  Fixes #136006, patch by Morten Welinder.
1892         (gtk_path_bar_set_path): Unref the file_folder upon error.
1893         (gtk_path_bar_set_path): Return a boolean success code.
1894
1895 Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
1896
1897         * tests/testcombochange.c: Add an animation mode, to test 
1898         how the combobox behaves if the model changes while it is popped
1899         up.
1900
1901 Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
1902
1903         * === Released 2.3.5 ===
1904
1905         * NEWS: Updates
1906
1907         * configure.in: Version 2.3.5, interface age 0.
1908         Require glib-2.3.5, pango-1.3.5.
1909
1910 Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
1911
1912         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1913         popping up the completions across the edge of the monitor.
1914         Part of #135561.
1915
1916 Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
1917
1918         * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): 
1919         Move the /nonexistant stuff out of the main window,
1920         keep the main window somewhat normal looking.
1921
1922 Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
1923
1924         * gtk/gtktreestore.c (gtk_tree_store_reorder)
1925         * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1926         up the interpretation of new_order to match what
1927         it means elsewhere, document the meaning of new_order.
1928
1929         * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1930         Fix interpretation of new_order.
1931
1932         * tests/testcombochange.c (on_reorder): Fix interpretation
1933         of new_order.
1934
1935         * tests/testcombochange.c (on_reorder): Fix hitting
1936         "reorder" with an empty list.
1937
1938 Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1939
1940         Patch from Frederic Crozat, test code from Jean-Philippe
1941         Chancelier. Fixes bug #120479.
1942         
1943         * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1944         to the right window group.
1945
1946         * gtk/gtkmenu.c (gtk_menu_popup): Same
1947
1948         * tests/testsocket.c (main): Pack the plugs into an hbox instead
1949         of a vbox.
1950
1951         * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1952         GtkComboBox to the children.
1953
1954 Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
1955
1956         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1957         If the model was empty before, select the first inserted
1958         item.
1959
1960         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1961         Fix up the logic for the new row to select.
1962
1963         * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1964         Rename "appearance" property to "appears-as-list".
1965
1966         * tests/testcombochange.c tests/Makefile.am: Test case
1967         for combos and dynamically changing models.
1968
1969 Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
1970
1971         * gtk/gtkfilechooserdefault.c
1972         (gtk_file_chooser_default_get_resizable_hints): set the default
1973         value, spotted by Morten Welinder.
1974
1975 Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
1976
1977         * gtk/gtkfilechooserdefault.c
1978         (gtk_file_chooser_default_get_resizable_hints): get the logic
1979         correct.  This will fix sizing on save dialogs.
1980
1981         (save_widgets_create): set_mnemonic_widget.
1982
1983 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1984
1985         * gtk/gtkfilechooserdefault.c
1986         (gtk_file_chooser_default_set_current_folder): Don't update the
1987         save folder combo if we are already switching folders; based on a
1988         patch by Jonathan Blandford.
1989
1990         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1991         Handle failure to insert the path.  Based on a patch by Morten
1992         Welinder attached to bug #135380.
1993
1994         * tests/testfilechooser.c (extra_widget_create): Add a bunch of
1995         buttons to test various things.
1996
1997 Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
1998
1999         * tests/Makefile.am: Add testentrycompletion.
2000
2001         * tests/testentrycompletion.c: New file to test some of the
2002         more exotic GtkEntryCompletion features.
2003
2004 Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
2005
2006         * tests/testfilechooser.c (main): improve tests a little.
2007
2008 Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
2009
2010         * gtk/gtkcombobox.c: Always connect to the changed
2011         signals on the model, update the active item as
2012         appropriate when rows are inserted/deleted/reordered,
2013         re-layout the menu on ::rows-reordered.
2014
2015         * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
2016         Allow %NULL for path to unset and leave no current
2017         path.
2018
2019 Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
2020
2021         * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
2022         the popup above the sample if there is not enough room below.
2023         Part of #135543.
2024
2025 Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
2026
2027         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the 
2028         frame for the list mode etched in, to give the popup a slightly
2029         less flat appearance. 
2030
2031 Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
2032
2033         * gtk/gtk.def: Add gtk_combo_box_entry_new_text().  
2034
2035 2004-03-02  Morten Welinder  <terra@gnome.org>
2036
2037         * tests/testfilechooser.c (size_prepared_cb): Don't scale images
2038         that are small enough to fit.  Avoid using incompatibly typed data
2039         pointer.
2040
2041         * gtk/gtkfilechooserdefault.c
2042         (gtk_file_chooser_default_get_resizable_hints): Test the
2043         resize_horizontally pointer, not the deferenced pointer.
2044
2045 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2046
2047         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
2048         flag shortcuts_current_folder_is_volume.
2049         (shortcuts_add_current_folder): Set
2050         impl->shortcuts_current_folder_is_volume as appropriate.
2051         (remove_current_folder_cb): Handle the flag.
2052         (shortcuts_activate_item): Likewise.
2053         (shortcuts_update_current_folder): Handle the
2054         impl->shortcuts_current_folder_active flag; only add the folder if
2055         it doesn't already exist in the list.
2056         (shortcuts_model_create): Don't insert the current folder
2057         separator here.
2058         (shortcuts_add_current_folder): Insert the separator here.
2059         (shortcut_find_position): Renamed from shortcut_exists(); now
2060         returns an index.
2061         (shortcuts_add_current_folder): Set the active item in the combo.
2062
2063 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2064
2065         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
2066         use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
2067
2068 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2069
2070         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
2071         unref an old model; there isn't one.  This was a leftover from
2072         when we recreated the model on every change.
2073         (save_widgets_create): Create the save folder combo.
2074         (shortcuts_model_create): Don't set the model on the tree view
2075         here.
2076         (gtk_file_chooser_default_constructor): Create the shortcuts model
2077         here, before the rest of the widgets.
2078         (shortcuts_list_create): Don't call shortcuts_model_create() here;
2079         just set the model on the tree.
2080         (save_folder_combo_create): New function, provided by Jonathan
2081         Blandford.
2082         (update_appearance): Set the sensitivity of the folder combo.
2083         (shortcuts_activate_iter): New helper function; code moved from
2084         shortcuts_row_activated_cb().
2085         (shortcuts_activate_item): New helper function.
2086         (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
2087         (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
2088         SHORTCUTS_BOOKMARKS_SEPARATOR.
2089         (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
2090         (shortcuts_insert_separator): Add a position argument.
2091         (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR 
2092         and SHORTCUTS_CURRENT_FOLDER positions.
2093         (shortcut_exists): Ignore the current folder row.
2094         (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
2095         (shortcuts_model_create): Create a filter model for the shortcuts list.
2096         (shortcuts_list_create): Set the model to the shortcuts_filter_model.
2097         (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
2098         (bookmarks_check_remove_sensitivity): Likewise.
2099         (shortcuts_row_activated_cb): Likewise.
2100         (gtk_file_chooser_default_set_current_folder): New function.
2101         (gtk_file_chooser_default_set_current_folder): Update the current
2102         folder row in the shortcuts list.
2103
2104         * gtk/gtkfilechooserwidget.c
2105         (gtk_file_chooser_widget_constructor): Cast correctly for
2106         _gtk_file_chooser_embed_set_delegate().
2107
2108 Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
2109
2110         * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
2111         (#127499, based on patch from Michael Natterer)
2112
2113         * tests/testgtk.c: Fix bidi strings to display correctly
2114         with new auto-bidi.
2115
2116 Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
2117
2118         * gtk/gtksettings.c: Remove the include of Xft.h, which is already
2119         dragged in via pangoxft.h.  (#135496, David Hawthorne)
2120
2121 Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
2122
2123         * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
2124         callers.
2125
2126         * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
2127         the key event propagation mechanism used for focus widgets.
2128         (gtk_window_key_release_event): use the same key event propagation logic
2129         as gtk_window_key_press_event().
2130
2131 2004-03-01  Simon Budig  <simon@gimp.org>
2132
2133         * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
2134         for the XInput extension. We want to see them all.
2135         We now get Proximity Out events again. Fixes bug #135320.
2136
2137 Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
2138
2139         * gtk/gtkimmodule.c (match_locale): Use case-insensitive
2140         comparison. Fixes XIM module loading on AIX.  (#131277)
2141
2142 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
2143
2144         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
2145         Make it work correctly when the child model is cleared 
2146         completely. (#121633)
2147
2148 2004-03-01  Michael Natterer  <mitch@gimp.org>
2149
2150         * gtk/gtkfilechooserwidget.h: removed accidentially committed char
2151         which broke the build.
2152
2153 Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
2154
2155         * gtk/gtkfilechooserdialog.c
2156         (file_chooser_widget_default_size_changed): only store the size if
2157         we can resize in that direction.
2158
2159 Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
2160
2161         * gtk/gtkfilechooserwidget.c
2162         (gtk_file_chooser_widget_new_with_backend): new function.  Long
2163         name.
2164
2165 2004-03-01  Morten Welinder  <terra@gnome.org>
2166
2167         * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
2168         needed.
2169
2170         * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
2171         semantics and check for errors.
2172
2173         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
2174
2175         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
2176         display_name is NULL.
2177
2178 Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
2179
2180         Based on patch by Alex Larsson
2181
2182         * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
2183         GtkSetting to set the backend if the app doesn't specify one.
2184
2185         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
2186         Add Gtk/FileChooserBackend.
2187
2188 Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
2189
2190         * autogen.sh:
2191         - exit with $? instead of 1 in case of failure
2192         - exit with $? if ./configure failed
2193           (that's so autogen.sh && make lines work)
2194         - removed --enable-gtk-doc option
2195         - added $AUTOGEN_CONFIGURE_ARGS
2196
2197 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2198
2199         * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
2200         filter_info.uri correctly.  Fixes #135379, pointed out by Damon
2201         Chaplin.
2202         (shortcuts_get_index): Compute the bookmarks index correctly.
2203         Fixes #135714, pointed out by Damon Chaplin.
2204         (gtk_file_chooser_default_list_shortcut_folders): Handle the case
2205         with no shortcuts, and don't run off the end of the list if there
2206         are no bookmarks and their separator.  Fixes #135572, patch by
2207         Damon Chaplin.
2208
2209 Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
2210
2211         * gtk/gtklabel.c: Handle dynamically resolved bidi direction
2212         when drawing the cursor. (#118541)
2213
2214         * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
2215
2216         * gtk/gtkentry.c (draw_insertion_cursor): Fix up
2217         some confusion in parameter ordering.
2218
2219 Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
2220
2221         * gtk/gtkfilechooserdialog.c
2222         (file_chooser_widget_resizable_hints_changed): Handle
2223         shrinking/growing.
2224
2225 2004-03-01  Michael Natterer  <mitch@gimp.org>
2226
2227         * gtk/gtktextbtree.c: removed underscores from calls to
2228         gtk_text_btree_resolve_bidi().
2229
2230 Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
2231
2232         Patch from Dov Grobgeld to implement auto-bidi-direction
2233         for GtkTextView (#118543)
2234
2235         * gtk/gtktextbtree.[ch]: Resolve bidi base direction
2236         for each line by propagating backwards/forwards as
2237         necessary.
2238
2239         * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the 
2240         bidi base direction for the ;ine with the cursor from 
2241         the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
2242         
2243 Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
2244
2245         * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
2246         based on a patch from Dov Grobgeld. (#118540)
2247
2248 Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
2249
2250         * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() 
2251         to allow right-aligned entries and a "xalign" 
2252         property. (#59799, patch from Egon Andersen and 
2253         Steffen Gutmann)
2254
2255         * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
2256         xalign property description here too.
2257
2258         * tests/testtext.c: UNDERLINE_ERROR test addition
2259         from Nicolas Settons' patch.
2260
2261 Sun Feb 29 20:34:06 2004  Owen Taylor  <otaylor@redhat.com>
2262
2263         * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
2264         gtk_window_activate_key() (Request from Tim Janik)
2265
2266 Mon Mar  1 01:00:11 2004  Matthias Clasen  <maclas@gmx.de>
2267
2268         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
2269         Make DND operations within a buffer move the dragged 
2270         text instead of copying it; also make DND operations 
2271         a single user action for undo purposes.  (#135191, 
2272         #93139, reported by Tommi Komulainen, patch by Paolo Borelli
2273         and Paolo Maggi)
2274
2275 Mon Mar  1 00:51:11 2004  Matthias Clasen  <maclas@gmx.de>
2276
2277         * NEWS: News for 2.3.5.
2278
2279 Sun Feb 29 23:25:35 2004  Matthias Clasen  <maclas@gmx.de>
2280
2281         * gtk/gtkentry.c (gtk_entry_completion_key_press): 
2282         Fix the Shift-Tab support to go backwards.
2283
2284 Sun Feb 29 16:40:40 2004  Owen Taylor  <otaylor@redhat.com>
2285
2286         * gtk/gtktextview.c (gtk_text_view_class_init): Fix 
2287         capitalization to match other style properties.
2288
2289 Sun Feb 29 16:38:53 2004  Owen Taylor  <otaylor@redhat.com>
2290
2291         * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
2292         typo in property string.
2293
2294 Sun Feb 29 16:35:23 2004  Owen Taylor  <otaylor@redhat.com>
2295
2296         * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
2297         PANGO_UNDERLINE_ERROR (Based on a patch by
2298         Nicolas Setton, #114237)
2299
2300         * gtk/gtktextview.c: Add a error-underline-color style
2301         property.
2302
2303 Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2304
2305         * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
2306         function returning a good step value for the mouse wheel. For
2307         scrollbars, base the step on page_size^(2/3), for other ranges,
2308         use 2 * step_increment.
2309
2310         * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
2311
2312         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): 
2313         ... and here.
2314
2315         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
2316
2317 Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
2318
2319         * gtk/gtkfilechooserembed.c
2320         (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
2321         (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
2322
2323         * gtk/gtkfilechooserdialog.c
2324         (file_chooser_widget_default_size_changed): Get the correct
2325         initial size for the dialog.  Also, don't bother with
2326         gtk_window_set_default_size().  It's not really meaningful.
2327
2328         * gtk/gtkfilechooserdefault.c
2329         (gtk_file_chooser_default_get_default_size): Get the correct
2330         spacing for the preview_widget
2331         (update_preview_widget_visibility): Clear widget field after we
2332         destroy it.
2333
2334 2004-02-29  Federico Mena Quintero  <federico@ximian.com>
2335
2336         * gtk/gtkfilechooserdefault.c
2337         (gtk_file_chooser_default_set_property): Handle
2338         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
2339         (gtk_file_chooser_default_get_property): Likewise.
2340         (struct _GtkFileChooserDefault): Added fields for preview_label,
2341         use_preview_label, preview_display_name, preview_box.  Removed
2342         preview_frame.
2343         (set_preview_widget): Reorder the widget in relation to the label.
2344         (update_preview_widget_visibility): Create or destroy the preview
2345         label.
2346         (check_preview_change): Update impl->preview_display_name and the
2347         label.
2348         (find_good_size_from_style): Use the preview_box.
2349         (gtk_file_chooser_default_finalize): Free
2350         impl->preview_display_name.
2351         (gtk_file_chooser_default_init): Initialize
2352         impl->use_preview_label.
2353
2354         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
2355         "use-preview-label" property.
2356         (gtk_file_chooser_set_use_preview_label): New function.  This sets
2357         whether one wants the file chooser to display a stock label with
2358         the previewed filename.  Apps that do really fancy previews can
2359         turn this off and draw the name themselves.
2360         (gtk_file_chooser_get_use_preview_label): New function.
2361         (gtk_file_chooser_get_preview_widget_active): Documentation fix.
2362
2363         * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
2364         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
2365
2366         * gtk/gtkfilechooserutils.c
2367         (_gtk_file_chooser_install_properties): Override the
2368         "use-preview-label" property.
2369
2370 Sun Feb 29 04:43:29 2004  Matthias Clasen  <maclas@gmx.de>
2371
2372         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
2373         Shift-Tab work when the completion popup is shown.
2374
2375 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
2376
2377         * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
2378         the title of the filename column.
2379         (create_file_list): Likewise.
2380
2381 Sun Feb 29 03:31:42 2004  Matthias Clasen  <maclas@gmx.de>
2382
2383         * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up 
2384         and Page_Down in the completion popup to move page-wise if we're
2385         scrolling.
2386
2387 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
2388
2389         * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
2390         Removed.
2391         (list_name_data_func): Don't call the function above.
2392         (list_mtime_data_func): Likewise.
2393
2394 Sun Feb 29 02:34:35 2004  Matthias Clasen  <maclas@gmx.de>
2395
2396         * gtk/gtkcombobox.c (gtk_combo_box_list_position): New 
2397         function which calculates position and size for the popup in
2398         list mode. Currently it only pushes the popup horizontally 
2399         into the screen.
2400
2401 Sun Feb 29 01:10:09 2004  Matthias Clasen  <maclas@gmx.de>
2402
2403         * gtk/gtkcombobox.c: Implement the previous fix in a better way,
2404         small cleanups.
2405
2406 2004-02-28  Hans Breuer  <hans@breuer.org>
2407
2408         * gtk/gtkfilesystemwin32.c : applied patch from
2409         J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
2410
2411 Sat Feb 28 23:30:36 2004  Matthias Clasen  <maclas@gmx.de>
2412
2413         * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
2414         popup window before popping up.  (#135651)
2415
2416 Sat Feb 28 23:29:35 2004  Matthias Clasen  <maclas@gmx.de>
2417
2418         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2419         * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
2420         handler for style_set in class_init instead of connecting to
2421         the signal in init. (noticed by Yosh).
2422
2423 Sat Feb 28 14:48:35 2004  Owen Taylor  <otaylor@redhat.com>
2424
2425         * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, 
2426         not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
2427
2428 2004-02-28  Hans Breuer  <hans@breuer.org>
2429
2430         * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
2431         change. Also merged some crossplatform code from 
2432         gtkfilesystemunix.c
2433         * gtk/gtk.def : updated externals
2434
2435         * gtk/makefile.msc.in : added gtkfilechooserembed.obj
2436
2437 2004-02-28  Hans Breuer  <hans@breuer.org>
2438
2439         * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
2440         when destroying, fixes bug #120007. Also removed the mirrored
2441         ref counting for deprecated gdk_drag_context_<ref|unref>()
2442         cause it wasn't reliable anymore anyway.
2443
2444         * gdk/win32/gdkdisplay-win32.c : fix typo, which should
2445         have broken the win32 build for everyone not using msvc
2446
2447         * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
2448         return negative values for ptMaxTrackSize, it caused snapping
2449         windows to their minimum size
2450
2451 Sat Feb 28 01:39:01 2004  Matthias Clasen  <maclas@gmx.de>
2452
2453         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
2454         switching back to non-gridded mode.  (#135169)
2455
2456 Fri Feb 27 22:29:46 2004  Matthias Clasen  <maclas@gmx.de>
2457
2458         * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
2459
2460 Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
2461
2462         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
2463         Whoops.  Didn't mean to commit the size change.
2464
2465 Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
2466
2467         * gtk/gtkfilechooserembed.h: New private interface to help
2468         negotiate the default size of the widget.  Still a bit buggy, but
2469         better than the old behavior.
2470
2471         * gtk/gtkfilechooserdefault.c: Implement the embed interface.
2472
2473         * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
2474
2475         * gtk/gtkfilechooserdialog.c: Use the embed interface.
2476
2477 2004-02-27  Federico Mena Quintero  <federico@ximian.com>
2478
2479         * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
2480         "position" argument.
2481
2482         * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for 
2483         GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
2484         (struct _GtkFileSystemIface): Added a "position" argument to the
2485         ::insert_bookmark() method.
2486
2487         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
2488         Updated; renamed from gtk_file_system_unix_add_bookmark().  Return
2489         an error if the path already exists in the bookmarks list.
2490         (gtk_file_system_unix_remove_bookmark): Return an error if the
2491         path does not exist in the bookmarks list.
2492
2493         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
2494         For now, use gtk_file_system_insert_bookmark() with -1 for the
2495         position.  DnD will come next.
2496
2497 Fri Feb 27 21:42:28 2004  Matthias Clasen  <maclas@gmx.de>
2498
2499         * gtk/gtkcombobox.c (gtk_combo_box_relayout): 
2500         * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only 
2501         create a new setup if appearance actually changed.
2502         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear): 
2503         * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make 
2504         these more robust.  (#127623, Damon Chaplin)
2505
2506 Fri Feb 27 15:06:00 2004  Jonathan Blandford  <jrb@redhat.com>
2507
2508         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
2509         folder-mode property.
2510
2511         * gtk/gtkfilechooserutils.c
2512         (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
2513
2514 Thu Feb 26 17:38:40 2004  Manish Singh  <yosh@gimp.org>
2515
2516         * gtk/gtkcombobox.c: Add function declaration for
2517         gtk_combo_box_list_remove_grabs().
2518
2519 Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
2520
2521         * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
2522         cursor move, but not Home and End.
2523
2524         * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
2525         jump to the ends of the list, not Home and End - since we're not 
2526         scrolling yet, a "page" is always the complete list.  (#127430, Marco
2527         Pesenti Gritti)
2528
2529 Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
2530
2531         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): 
2532         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
2533         the priv pointers dangle.  (#127623, Damon Chaplin)
2534
2535 Thu Feb 26 17:31:34 2004  Manish Singh  <yosh@gimp.org>
2536
2537         * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
2538
2539 Thu Feb 26 19:53:32 2004  Owen Taylor  <otaylor@redhat.com>
2540
2541         * gdk/x11/xsettings-common.h (xsettings_client_process_event): 
2542         Add xsettings_client_set_grab_func,
2543         Add xsettings_client_set_ungrab_func to the list of renames.
2544
2545 Thu Feb 26 19:48:39 2004  Owen Taylor  <otaylor@redhat.com>
2546
2547         * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
2548         in case of mismatched property type.
2549
2550 Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
2551
2552         * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
2553         modes to the enum.
2554
2555         * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
2556         (gtk_file_chooser_get_folder_mode): Remove
2557
2558 Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
2559
2560         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
2561         GDK_FILTER_CONTINUE for unhandled message types.
2562
2563         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
2564         multiple filters for the same event type with the standard
2565         "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
2566
2567         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2568         Append to the filter list not prepend, since order now matters.
2569
2570         * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter): 
2571         Append to the filter list not prepend, since order now matters.
2572         
2573 Thu Feb 26 23:39:07 2004  Matthias Clasen  <maclas@gmx.de>
2574
2575         Fixes for #135333, analysed by Damon Chaplin:
2576         
2577         * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
2578         grab here.
2579         * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here, 
2580         so that we don't forget to grab when the menu is popped via
2581         keynav.
2582         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
2583         ungrab here.
2584         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
2585
2586 Thu Feb 26 23:26:00 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2587
2588         * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
2589         cursors for resize grips. (Bug #129621)
2590
2591         * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
2592         fix - patch by Torsten Schoenfeld.
2593
2594         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
2595         space between the items. (Bug #110775)
2596
2597         * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
2598         inside menu items that are inside a menu bar. (Bug #110775)
2599         
2600         * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
2601         not GDK_PACKAGES, to prevent applications from getting linked to
2602         it (Bug #119804)
2603
2604         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
2605         ipadding inside the item. (Bug #61843)
2606
2607 Thu Feb 26 22:56:40 2004  Matthias Clasen  <maclas@gmx.de>
2608
2609         * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets() 
2610         by list_mnemonic_widgets() in doc comments as well.
2611
2612 Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
2613
2614         Fixes from Torsten Schoenfeld.
2615
2616         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): 
2617         Fix name in doc comment.
2618
2619         * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
2620         not get_mnemonic_labels.
2621
2622 Thu Feb 26 22:20:44 2004  Matthias Clasen  <maclas@gmx.de>
2623
2624         * gtk/gtkcomboboxentry.h:
2625         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2626         convenience API to construct simple text combos, implemented by
2627         Damon Chaplin.
2628
2629         * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2630
2631 Thu Feb 26 22:19:29 2004  Matthias Clasen  <maclas@gmx.de>
2632
2633         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2634
2635 Thu Feb 26 15:43:43 2004  Owen Taylor  <otaylor@redhat.com>
2636
2637         * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2638         in a simplified form as gtk_draw_insertion_cursor().
2639         (#99031, request from Alex Larsson)
2640
2641         * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2642         Adapt to new gtk_draw_insertion_cursor().
2643
2644         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2645         gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2646         Since: 2.4.
2647
2648         * gtk/gtkiconfactory.c (icon_size_settings_changed)
2649           gtk/gtkicontheme.c (do_theme_change)
2650           gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2651         * gtk/gtksettings.c (gtk_settings_notify):
2652         _gtk_rc_reset_styles => gtk_rc_reset_styles.
2653
2654 Thu Feb 26 21:52:58 2004  Matthias Clasen  <maclas@gmx.de>
2655
2656         Fixes for #127804 and #134722, Damon Chaplin:
2657         
2658         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end): 
2659         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start): 
2660         Ref and sink the cell renderers here.
2661         
2662         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2663         renderers here, and free attributes and func_data. 
2664
2665 Thu Feb 26 21:41:38 2004  Matthias Clasen  <maclas@gmx.de>
2666
2667         * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2668
2669 Thu Feb 26 14:47:22 2004  Dom Lachowicz <cinamod@hotmail.com>
2670
2671         * gtk/gtk.def: Export gtk_rc_reset_styles()
2672
2673 Thu Feb 26 14:47:22 2004  Owen Taylor  <otaylor@redhat.com>
2674
2675         * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles(). 
2676         (Request from Dom Lachowicz, #123769)
2677
2678 Wed Feb 25 19:11:31 2004  Owen Taylor  <otaylor@redhat.com>
2679
2680         * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2681         ::group-changed signal emitted when the radio button/menu item 
2682         is moved from one group of radio buttons to another. 
2683         (#79563, based partially on a patch from Padraig O'Briain)
2684
2685 Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
2686
2687         * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2688         free() function. (#135511, George Bronnikov)
2689
2690 2004-02-26  Federico Mena Quintero  <federico@ximian.com>
2691
2692         * configure.in: Added a comment to inform translators that they
2693         must add .po files to both po/ and po-properties/ when they add
2694         new languages to ALL_LINGUAS.
2695
2696 Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
2697
2698         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2699         Call g_convert(), not g_convert() with fallback, since Emacs is
2700         happier if we reject the COMPOUND_TEXT request and it can
2701         then ask for UTF-8. (#114527)
2702
2703         * gtk/gtkselection.c (gtk_selection_data_set_text): When
2704         TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2705
2706 Wed Feb 25 22:35:00 2004  Tomasz KÅ‚oczko <kloczek@pld.org.pl>
2707
2708         * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2709         vesion for build gtk+ is now 2.3.3.
2710
2711 Wed Feb 25 16:00:40 2004  Jonathan Blandford  <jrb@gnome.org>
2712
2713         * gtk/gtkfilechooserdefault.c (update_appearance): move the
2714         expander code.
2715
2716 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2717
2718         * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2719         adding back sr@ije.
2720
2721 2004-02-25  Federico Mena Quintero  <federico@ximian.com>
2722
2723         * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2724         is fixed for it.
2725
2726 Wed Feb 25 12:44:49 2004  Owen Taylor  <otaylor@redhat.com>
2727
2728         * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2729
2730 Wed Feb 25 12:21:32 2004  Owen Taylor  <otaylor@redhat.com>
2731
2732         * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2733         Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2734         gtk_widget_get_mnemonic_labels(). (#103456)
2735
2736 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2737
2738         * configure.in: Added sr@ije to ALL_LINGUAS.
2739
2740 Wed Feb 25 09:46:34 2004  Owen Taylor  <otaylor@redhat.com>
2741
2742         * gtk/gtkstyle.c (gtk_style_finalize): Free 
2743         style->icon_factories (#130128)
2744
2745 Wed Feb 25 03:52:58 2004  Jonathan Blandford  <jrb@gnome.org>
2746
2747         * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2748         internal buttons.
2749
2750         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2751         rename some widgets to make it clear where they are packed.
2752         (update_appearance): New function to handle all the 'logic' of
2753         layout in one place.  We aren't trying to keep all our properties
2754         in sync.
2755         (gtk_file_chooser_default_set_property): use update_appearance()
2756
2757 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2758
2759         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2760         from create_shortcuts_model().
2761         (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2762         to shortcuts_list.
2763         (shortcuts_list_create): Renamed from shortcuts_tree_create().
2764         (create_file_list): Enable the tree view as a model drag source.
2765         (create_folder_tree): Likewise.
2766
2767         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2768         Register the drag source interface.
2769         (drag_source_iface_init): New function.
2770         (drag_source_row_draggable): New function.
2771         (drag_source_drag_data_get): New function.
2772
2773 Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>
2774
2775         * === Released 2.3.4 ===
2776
2777         * configure.in: Bump version to 2.3.4, fix broken
2778         gtk_binary_age value by copying the GLib logic
2779         to automatically set it to the right values.
2780
2781 Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>
2782
2783         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
2784         * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
2785         Don't resize priv->cell_view if it is NULL.  (#127804, 
2786         Damon Chaplin)
2787         
2788 Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>
2789
2790         * gtk/gtkcombobox.c: Add a comment about the different 
2791         modi of this widget. Get rid of priv->hbox, and some other
2792         cleanups. Make sure that gtk_combo_box_unset_model() is 
2793         always called before setting up a different mode. 
2794
2795 Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>
2796
2797         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2798         underscores in keyval names to spaces. (#131480)
2799
2800 Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>
2801
2802         * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2803         Uwe Zeisberger)
2804
2805 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
2806
2807         * === Released 2.3.3 ===
2808
2809         * configure.in: Version 2.3.3, interface age 0.
2810
2811         * NEWS: Finish updates for 2.3.3.
2812
2813 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2814
2815         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2816         GtkEntry for the filename, not a GtkFileChooserEntry.
2817         (update_chooser_entry): Use gtk_entry_set_text() rather than
2818         _gtk_file_chooser_entry_set_file_part().
2819         (gtk_file_chooser_default_set_current_name): Likewise.
2820         (gtk_file_chooser_default_set_current_folder): Don't set the base
2821         folder of the entry, and don't call update_chooser_entry().
2822         (gtk_file_chooser_default_get_paths): Use the plain entry.
2823         (save_widgets_create): Store the "Save in Folder" label in the
2824         impl structure.
2825         (expander_activate_cb): Set the sensitivity of the label and
2826         combo.
2827         (save_widgets_create): Connect to "notify::expanded" rather than
2828         "activate" on the expander.
2829         (expander_changed_cb): Renamed from expander_activate_cb().  Flip
2830         the conditions again...
2831
2832 Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>
2833
2834         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2835         column as different if there are 3 or more visible columns.
2836
2837 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2838
2839         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2840         Fix compilation (#135278, Padraig O'Briain).
2841         
2842 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2843
2844         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2845         Translate the desktop label.
2846         
2847         (shortcuts_get_index), (shortcuts_add_bookmarks),
2848         (shortcuts_insert_separator), (create_shortcuts_model):
2849         Don't show the bookmark separator if there are no bookmarks.
2850         
2851 Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>
2852
2853         * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2854         dialog look like the nautilus dialog.
2855         (expander_activate_cb): get the order correct.
2856
2857 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2858
2859         * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2860         bookmarks_check_add_sensitivity().
2861         (shortcut_exists): New helper function; moved the testing code
2862         over from bookmarks_check_add_sensitivity().
2863         (bookmarks_check_add_sensitivity): Check the contents of the
2864         selection in the file/folder list.  Use shortcut_exists().
2865         (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2866         the path is already in the shortcuts list.
2867         (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2868         selection or from the current folder, as appropriate.
2869
2870 Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>
2871
2872         * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2873         mnemonics.  Sorry translators.
2874
2875 Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>
2876
2877         * NEWS: Additions. This should be complete for the main ChangeLog
2878         now, still need to sift through gdk-pixbuf, docs, and translations.
2879
2880 Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>
2881
2882         * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2883         Add a get_size implementation so that we are no longer the same
2884         height as text.
2885
2886 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2887
2888         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2889         (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2890         (create_shortcuts_model), (shortcuts_tree_create),
2891         (gtk_file_chooser_default_remove_shortcut_folder):
2892         Improve bookmark list rendering by controlling the visibility
2893         of the pixbuf cell so that it will be invisible for the separator
2894         row, also use a list store instead of a tree store for the model
2895         so we won't get unnecessary space for an expander.
2896         
2897 Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>
2898
2899         * gtk/gtkcombobox.c: Add a destroy implementation in order to
2900         set priv->cell_view to NULL before finalize stumbles over the 
2901         dangling pointer. This big array of pointers into the widget 
2902         tree in GtkComboBoxPrivate is really fragile and should be
2903         cleaned up.
2904
2905 Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>
2906
2907         * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2908         group when allocating space for the buttons at the bottom just in
2909         case.  Also, move the filter to below the file list.
2910
2911 Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>
2912
2913         * gtk/gtkfilechooserdefault.c
2914         (gtk_file_chooser_default_class_init): Seth was confused by
2915         keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
2916         home, not up.
2917
2918 Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>
2919
2920         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2921         more cleanly.
2922
2923         * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2924
2925 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2926
2927         Rework the user interface of the file chooser, as per 
2928         Seth Nickell's design.
2929
2930         * gtk/gtkfilechooserdefault.c
2931         (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2932                 "location-popup" - C-l
2933                 "up-folder"      - C-Up
2934                 "home-folder"    - C-Home
2935         (up_folder_handler): New function; moved the code from up_button_clicked().
2936         (up_button_clicked_cb): Call up_folder_handler().
2937         (home_folder_handler): New function.
2938         (location_popup_handler): New function.
2939         (struct _GtkFileChooserDefault): Add an hpaned field.
2940         (gtk_file_chooser_default_set_current_name): Check that we are in
2941         Save mode.
2942         (save_widgets_create): New function, create the widgets specific
2943         to Save mode.
2944         (main_paned_create): New function, create the hpaned's widgets here.
2945         (gtk_file_chooser_default_constructor): Create the open and save
2946         widgets, and show only one set.
2947         (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2948         (gtk_file_chooser_default_get_paths): Only pay attention to the
2949         entry in Save mode.
2950         (update_chooser_entry): Update the entry only in Save mode.
2951         (entry_activate): Removed.
2952
2953 Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>
2954
2955         * configure.in: Remove the configure.in check for fontconfig 
2956         entirely; it's not needed, since PangoXft implies that sufficiently
2957         new fontconfig is present.
2958
2959 Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>
2960
2961         * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2962         for (i = 0; i < 10; i++)
2963           g_print ("I will compile before committing.\n");
2964
2965 Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>
2966
2967         * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2968         GtkPathBar by default now.
2969
2970         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2971         current path from the path.
2972         (gtk_path_bar_class_init): new signal
2973         (button_clicked_cb): emit the signal when we're selected.
2974         (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2975         clearing thr first_scrolled_button.
2976
2977 Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>
2978
2979         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
2980         allocation for the toggle button so that it actually shows up 
2981         in LTR list mode.
2982
2983         * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
2984         * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
2985         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2986         notification, and avoid excessive relayouting. 
2987
2988 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
2989
2990         Fix bug 134982, reported by Morten Welinder:
2991         
2992         * gtk/gtkpathbar.c (gtk_path_bar_destroy): 
2993         * gtk/gtktooltips.c (gtk_tooltips_destroy): 
2994         * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
2995         parent's ::destroy handler.
2996         
2997         * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
2998         parent's ::dispose handler.
2999
3000 Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>
3001
3002         * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
3003         stuff with an #ifdef, so we still build with most fontconfig versions.
3004
3005 Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
3006
3007         * gtk/gtkaction.c: (gtk_action_finalize):
3008         * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
3009         * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
3010         (gtk_entry_completion_finalize):
3011         * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
3012         * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
3013         (gtk_file_system_model_finalize):
3014         * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
3015         (gtk_icon_theme_finalize):
3016         * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
3017         * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
3018         (gtk_ui_manager_finalize):
3019         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
3020         Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
3021         patch by Jan Arne Petersen)
3022
3023 Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>
3024
3025         * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
3026         Don't crash if item is NULL.  (#131542, Dan Damian)
3027
3028 Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>
3029
3030         * configure.in: Add a check for a new enough fontconfig, since
3031         we picked up a direct dependency on it with the Xft settings.
3032
3033 Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>
3034
3035         Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
3036         
3037         * gtk/gtkcheckmenuitem.c: Introduce a new style property 
3038         indicator_size and use it instead of the hardcoded value.
3039         
3040         * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
3041         item gets enough vertical space for the label and the indicator.
3042
3043 Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3044
3045         * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
3046         _ for the new Xft settings.
3047
3048 Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3049
3050         Bug 130790 (Federico Mena Quintero, Owen Taylor)
3051         
3052         * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
3053
3054         * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
3055         XSETTINGS
3056         
3057 Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3058
3059         Bug 132502
3060         
3061         * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
3062         if we enter a non-selectable menu item.
3063
3064         * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
3065         when the user has left the item.
3066
3067 Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3068
3069         * gtk/docs: Commit auto-generated changes
3070
3071 Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>
3072
3073         * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
3074
3075         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
3076         allocation code.  Works fully in RTL languages, I think.
3077         (gtk_path_bar_scroll_up): Scroll up.
3078         (gtk_path_bar_scroll_down): Scroll down.
3079
3080 2004-02-20  Christian Rose  <menthos@menthos.com>
3081
3082         * configure.in: Added "en_CA" to ALL_LINGUAS.
3083
3084 2004-02-20  Michael Meeks  <michael@ximian.com>
3085
3086         * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
3087         (gtk_tool_item_class_init): hook it up.
3088         (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
3089
3090         * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
3091         chain to parent, fix strcmp bug.
3092
3093         * tests/testtoolbar.c (main): re-arrange widgets to allow
3094         more overflowing toolbar goodness.
3095
3096 2004-02-20  Alexander Larsson  <alexl@redhat.com>
3097
3098         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
3099         Desktop directory is not translated.
3100         (set_tree_model):
3101         There might not be volumes for all paths.
3102         * gtk/gtkfilechooserwidget.c:
3103         (gtk_file_chooser_widget_constructor):
3104         Use gtk_file_chooser_set_current_folder to set cwd.
3105
3106 Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>
3107
3108         * gtk/gtkpathbar.[ch]: New widget to handle the path in the
3109         fileselector implementation.  Not hooked up to anything yet.
3110
3111         * gtk/Makefile.am: support the path bar.
3112
3113 Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>
3114
3115         * gtk/gtkstyle.c (gtk_default_draw_handle): 
3116         (gtk_default_draw_box): Make the paned handles gray when the the 
3117         widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)
3118
3119 Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
3120
3121         Fixes for #82099:
3122         
3123         * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
3124         and "Gtk/MenuImages" and map them to "gtk-button-images" and 
3125         "gtk-menu-images".
3126
3127         * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
3128         use it to set the visibility of the embedded image.
3129
3130         * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
3131         it to set the visibility of an embedded image.
3132
3133 Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>
3134
3135         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
3136         Give each radio action its own value.  (#134889, Paolo Borelli)
3137
3138 2004-02-19  Federico Mena Quintero  <federico@ximian.com>
3139
3140         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
3141         Chain to the parent's ::finalize() handler.  Fixes #134885; caught
3142         by Jan Arne Petersen.
3143
3144 2004-02-19  Mark McLoughlin  <mark@skynet.ie>
3145
3146         Make the entire expander widget width prelight as suggested
3147         by Seth in bug #134263.
3148
3149         * gtk/gtkexpander.c:
3150         (gtk_expander_paint_prelight): impl.
3151         (gtk_expander_paint): use it.
3152         (gtk_expander_redraw_expander): don't only redraw the
3153         arrow when prelit.
3154
3155 2004-02-19  Alexander Larsson  <alexl@redhat.com>
3156
3157         * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
3158         * gtk/gtkfilechooserutils.c:
3159         * gtk/gtkfilechooserutils.h:
3160         * gtk/gtkfilechooserwidget.c:
3161         Remove old file-system property.
3162         Add new file-system-backend string property
3163         
3164         * gtk/gtkfilechooserdefault.[ch]:
3165         Handle the file-system-backend property
3166         
3167         * gtk/gtkfilechooserdialog.[ch]:
3168         (gtk_file_chooser_dialog_new_with_backend):
3169         Remove old file-system property.
3170         Add new file-system-backend string property
3171         Add new function gtk_file_chooser_dialog_new_with_backend
3172         
3173         * gtk/gtkfilesystem.c: 
3174         * gtk/gtkfilesystem.h:
3175         Add filesystem module support.  
3176
3177 2004-02-18  Federico Mena Quintero  <federico@ximian.com>
3178
3179         * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
3180         from create_shortcuts_tree().
3181         (shortcuts_pane_create): New function.
3182         (button_new): Renamed from toolbar_button_new().
3183         (shortcuts_pane_create): New function, create the whole shortcuts
3184         pane here.
3185         (current_folder_create): Renamed from toolbar_create().  Don't
3186         create the bookmarks buttons here.
3187         (file_pane_create): New function.
3188         (gtk_file_chooser_default_constructor): Use the new helper
3189         functions, and don't use an extra vbox as GtkFileChooserDefault is
3190         already a vbox.
3191
3192 Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>
3193
3194         * gtk/gtkuimanager.h: 
3195         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
3196         default handlers for all signals; for consistency and for the
3197         benefit of language bindings which still rely on header parsing
3198         to find the signals.  (#134269, Jeroen Zwartepoorte)
3199         
3200 Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>
3201
3202         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
3203         Improve the efficiency here by prepending on the list and reverting
3204         it after the loop.  (#134435, Christian Biere)
3205
3206 Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>
3207
3208         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
3209         removing the plug from the socket.  (#128546, Christopher Blizzard)
3210
3211 Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>
3212
3213         * gtk/gtkradiomenuitem.h:
3214         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
3215         (gtk_radio_menu_item_new_with_label_from_widget): 
3216         (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
3217         convenience functions analogous to similar API on GtkRadioButton.
3218         (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
3219
3220 Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3221
3222         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
3223         case where the background is a solid color.
3224         (gdk_window_clear_backing_rect): Reset the clip region after use.
3225
3226         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
3227         back to using a scratch GC. Pointed out by Owen Taylor
3228         
3229         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
3230         scratch GC if the passed-in one is NULL
3231
3232 Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3233
3234         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
3235         region back to NULL on cached GC (rest of #134728)
3236
3237 Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3238
3239         Fix bug reported by Nam SungHyun (#134728)
3240         
3241         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
3242         Don't use a cached GC here since the function needs to modify the
3243         foreground color.
3244
3245         * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
3246         to NULL on the cached GC.
3247
3248 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
3249
3250         * gtk/gtkfilechooserdialog.c
3251         (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
3252         This sucks a lot.
3253
3254 Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>
3255
3256         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
3257         peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)
3258
3259 Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3260
3261         GC caching, bug #125645 (based on patch by Brian Cameron)
3262         
3263         * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
3264         * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
3265         cached GC's here.
3266         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
3267         get a scratch gc.
3268         * gdk/gdkinternals.h: Declare the function here
3269
3270         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
3271         _gdk_drawable_get_scratch_gc() instead of creating a new GC.
3272         * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
3273         * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
3274         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
3275         * gdk/gdkwindow.c (gdk_window_end_paint): same
3276         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
3277         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
3278         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
3279
3280 Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>
3281
3282         * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
3283         priv->columns to 1.
3284
3285 Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>
3286
3287         * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
3288         priv->columns >= 1 even for empty menus, since we divide by it
3289         somewhere else.  (#133428, Vincent Noel)
3290
3291 Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3292
3293         Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
3294         Taylor.
3295
3296         * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
3297
3298         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
3299         depth.
3300
3301         * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
3302         the colormap, if no colormap, special case depth 1, 
3303
3304         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
3305         _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
3306
3307         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
3308         Special-case bitmaps without a colormap.
3309
3310         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
3311         draw_pixbuf() implementation in the bitmap case.
3312
3313 2004-02-17  Mark McLoughlin  <mark@skynet.ie>
3314
3315         * modules/input/Makefile.am: only reference input method
3316         modules we've actually built. Fixes re-build failure with
3317         stale hangul module lying aroung. Bug #134518.
3318
3319 Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
3320
3321         * gdk/gdkdraw.c: Revert last commit, please don't commit patches
3322         without approval, this isn't the right way to do it.
3323
3324 2004-02-16  DindinX  <david@dindinx.org>
3325
3326         * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
3327         segments at a time, since XDrawSegments cannot handle more than this.
3328
3329         fixes bug #122026.
3330         
3331 Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3332
3333         * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
3334         gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
3335         in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
3336
3337 Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>
3338
3339         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
3340         Split declaration and assignment of combo_box.
3341         
3342         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
3343         pointless cast
3344
3345 Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>
3346
3347         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
3348         deprecation note pointing people to GtkComboBox.
3349
3350 Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
3351
3352         * gtk/gtktreednd.c: 
3353         * gtk/gtktreeview.c: Document the tree DND API.
3354
3355         * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
3356         Call gtk_drag_source_unset().  
3357         
3358 Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>
3359
3360         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
3361         Make stock_size an uint property, to allow custom icon 
3362         sizes. Also clarify the blurb.  (#130047, Erik Grinaker)
3363
3364 Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>
3365
3366         * configure.in: Remove unnecessary STRIP_* definitions, and GNU
3367         make check.
3368
3369 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
3370
3371         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
3372         Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
3373         the very first time you try to save one.
3374
3375 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
3376
3377         Fix #129020.
3378
3379         * gtk/gtkfilechooserdialog.c
3380         (set_default_size): New function, sets a reasonable default size
3381         for the window.
3382         (gtk_file_chooser_dialog_realize): New function, call
3383         set_default_size().
3384         (gtk_file_chooser_dialog_style_set): Likewise.
3385         (gtk_file_chooser_dialog_screen_changed): Likewise.
3386
3387         * tests/testfilechooser.c (main): Don't set a default size for the
3388         dialog.
3389
3390 Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>
3391
3392         * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
3393         Use do instead of while.  (#134031, Morten Welinder);
3394
3395 Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>
3396
3397         * configure.in: Suppress xsltproc and xmlcatalog checks
3398         if enable_man=no.  (#134162, Julio M. Merino Vidal)
3399
3400 Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>
3401
3402         * configure.in: Remove checks for sgml2html. It was once
3403         used for building the linuxdoc version of the tutorial.
3404         Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)
3405
3406 Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>
3407
3408         Fix various compilation problems (#134312, David
3409         Hawthorne)
3410
3411         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
3412         g_return_if_fail(), not g_return_val_if_fail().
3413
3414         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
3415         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
3416         g_return_if_reached(), not g_return_val_if_reached().
3417         
3418         * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
3419         of some parameters.
3420
3421         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
3422         extra 'scale' parameter.
3423
3424 Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>
3425
3426         Various reentrancy fixes for widgets being destroyed
3427         out of focus-out-event. (#128821, Grant Gayed)
3428
3429         * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
3430         Ref window and widget over callbacks.
3431
3432         * gtk/gtkwidget.c (gtk_widget_hide)
3433           gtk/gtkwidget.c (gtk_widget_set_child_visible):
3434         Ref the widget before calling _gtk_window_unset_focus_and_default(),
3435         since that can call user callbacks.
3436
3437         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
3438         Do nothing if the widget isn't realized.
3439
3440 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
3441
3442         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
3443         active, RELIEF_NONE buttons that aren't depressed. This improves
3444         the appearance of buttons in notebook tabs.  (#109213, reported
3445         by Benjamin Otte, patch by Rodney Dawes)
3446
3447 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
3448
3449         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
3450         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
3451
3452 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
3453
3454         Fix for #104811, Padraig O'Briain:
3455
3456         * gtk/gtkscale.h:
3457         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
3458         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
3459         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
3460         text and its position from a GtkScale, to make it more accessible. 
3461         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
3462         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
3463         new GtkScale vfunc.
3464
3465 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
3466
3467         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
3468         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
3469
3470 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
3471
3472         * gtk/gtktooltips.h:
3473         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
3474         function to improve the accessibility of tooltips.  (#114851, 
3475         Padraig O'Briain)
3476
3477 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
3478
3479         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
3480         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
3481         add docs.  (#132847)
3482
3483 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
3484
3485         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
3486         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
3487
3488         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
3489         gdk_property_get call instead of 0.
3490
3491         * docs/reference/gdk/tmpl/properties.sgml: Document the above
3492         as GDK_NONE instead of simply 0.
3493
3494 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3495
3496         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
3497         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
3498
3499 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
3500
3501         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
3502         Correct the docs.
3503
3504 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
3505
3506         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
3507         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
3508         for automatic DND.  (#133485, Tommi Komulainen)
3509
3510 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
3511
3512         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
3513         debug output.
3514
3515 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3516
3517         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
3518         handler.  If no widget has the focus, try to give it to the
3519         default widget.  If there is no default widget, give it to the
3520         first button.  Fixes the cause for which #59707 was reopened.
3521
3522 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3523
3524         Fixes #134051.
3525
3526         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
3527         (icon_info_new): Don't initialize the ref_count field.
3528
3529 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3530
3531         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
3532         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
3533         <kaffeetisch@gmx.de>.
3534
3535 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
3536
3537         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
3538         focus [hv]adjustment correctly when the focus is located deeper
3539         down in the hierarchy.  (#133489)
3540
3541 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
3542
3543         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
3544         arbitrary low upper limits on the xpad, ypad, width and height
3545         properties.  (#129696, John Ellis)
3546
3547 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
3548
3549         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3550         Ugh. Don't try to free ints, even if they're stored in pointers.
3551         (#133997, Morten Welinder)
3552
3553 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3554
3555         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3556         Free the filters.  Fixes #133547, patch by Morten Welinder
3557         <mortenw@gnome.org>.
3558
3559 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
3560
3561         * gdk/x11/xsettings-client.c (read_settings): Avoid
3562         triggering an X error when the client->manager_window
3563         is None...makes logs look cleaner.
3564
3565         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
3566         GDK_NONE to mean AnyPropertyType as documented. (Reported 
3567         by Yu Shao)
3568
3569         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
3570         gdk_x11_screen_get_window_manager_name): Fix error trap
3571         we've been leaking since 2002... (#129538)
3572
3573 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3574
3575         Fixes the entry-related part of #133852.
3576
3577         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
3578         the file part of the entry if the selected item is a folder.
3579
3580 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3581
3582         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
3583
3584         * tests/prop-editor.c (create_prop_editor): Free the title.
3585         (object_changed): Free the children list.
3586
3587 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
3588
3589         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
3590         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
3591         these functions.
3592
3593 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3594
3595         * gtk/gtkfilechooserdefault.c (set_list_model): Request
3596         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
3597         filtering will work.  Perhaps we should have a way of aggregating
3598         info types to the model as filters get installed.
3599
3600 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
3601
3602         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3603         Ugh. Don't try to free ints, even if they're stored in pointers.
3604
3605 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3606
3607         Fix #132256.
3608
3609         * gtk/gtkfilechooserdefault.c
3610         (gtk_file_chooser_default_get_paths): Read the contents of the
3611         filename entry in both OPEN and SAVE mode.  In multiple-selection
3612         mode, add this to the selection from the file/folder list.
3613         (struct get_paths_closure): Add a path_from_entry field.
3614         (get_paths_foreach): Only add the iterated path if it is not the
3615         same as the path from the entry.
3616
3617 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3618
3619         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
3620         the folder is already open, add the requested info types to it.
3621
3622 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
3623
3624         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3625         type casts for the gtk_window_set_screen() call.
3626
3627 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
3628
3629         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
3630         come up on the same screen as the combo box.  (#133544, 
3631         Morten Welinder)
3632
3633 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
3634
3635         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3636         packing of the file selector.
3637
3638 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
3639
3640         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
3641         calls in array initializers, as some compilers seem to hate this.
3642         (#133216, Jonas Jonsson)
3643
3644 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
3645
3646         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3647         by on-demand instantiating a singleton object with a "changed" 
3648         signal. 
3649
3650         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3651         for GtkAccelMap::changed.
3652
3653 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
3654
3655         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
3656         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3657         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3658         Actually free the lists. Pointed out by Morten Welinder.
3659         
3660 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
3661
3662         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
3663         positions in UTF-8 strings correctly.  (#133315, Theppitak 
3664         Karoonboonyanan)
3665
3666 2004-02-06  Morten Welinder  <terra@gnome.org>
3667
3668         * gtk/gtktoolbar.c (show_menu): Cleanup using
3669         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
3670
3671 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3672
3673         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3674         list.  Fixes #133546.
3675
3676 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3677
3678         Fix #132327.
3679
3680         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3681         folder_hash field to keep a list of live folder objects.
3682         (gtk_file_system_unix_init): Create the folder_hash.
3683         (gtk_file_system_unix_finalize): Destroy the folder_hash.
3684         (gtk_file_system_unix_get_folder): Ref and return an existing
3685         folder if we have it around, otherwise return a new folder object.
3686         (struct _GtkFileFolderUnix): Add a field for the parent file system.
3687         (gtk_file_folder_unix_finalize): Remove the folder from the file
3688         system's hash table.
3689         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
3690         newly-created folder's parent.  Fixes #132327.
3691
3692 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
3693
3694         * gtk/gtkstock.c (builtin_items): Change the labels of the 
3695         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3696         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
3697         Suárez-Alvarez)
3698
3699 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
3700
3701         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
3702         function to plug a few memory leaks.  (#133544, Morten Welinder)
3703
3704 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
3705
3706         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
3707         Support mnemonic_activate here as well.
3708         
3709         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3710         the button, not the tree_view.
3711
3712 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3713
3714         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3715         function, to make mnemonic_activate work for combo boxes.
3716         (#133443, Paolo Borelli)
3717
3718 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3719
3720         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3721         to FALSE.  (#133539, Morten Welinder)
3722
3723 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
3724
3725         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3726         of the depth one check.  (#133488, Christian Persch)
3727
3728 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
3729
3730         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3731         the drawing of tearoff menu items which don't come first in their
3732         menu.  (#33311)
3733
3734 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
3735
3736         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
3737         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3738
3739 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
3740
3741         Fix #59707.
3742
3743         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3744         the focus chain.
3745         (gtk_label_button_press): Fix prototype.
3746         (gtk_label_button_release): Likewise.
3747         (gtk_label_motion): Likewise.
3748
3749         * tests/testgtk.c (create_message_dialog): For the dialog with
3750         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3751
3752 2004-02-04  Morten Welinder  <terra@gnome.org>
3753
3754         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
3755         bug 133411, apart from the leak.)
3756
3757 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
3758
3759         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3760         in g_object_new, since it depends on lower and upper being set.
3761
3762 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3763
3764         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3765         window not resizable.  Fixes #114032.
3766
3767 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3768
3769         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3770         documentation for the use_separator style property.
3771
3772 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3773
3774         Fix #68938.
3775
3776         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3777         GtkDialog; right now it only contains an ignore_separator field.
3778         (gtk_dialog_class_init): Register the private structure.
3779         (gtk_dialog_init): Initialize the priv->ignore_separator field.
3780         (_gtk_dialog_set_ignore_separator): New private function.
3781         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3782
3783         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3784         use_separator style property.
3785         (gtk_message_dialog_style_set): Change the dialog's separator
3786         based on the style property.
3787         (gtk_message_dialog_init): Set the dialog box to ignore the
3788         separator setting.
3789
3790 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
3791
3792         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3793         also dist gtkfilesystemwin32.[hc].
3794
3795 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
3796
3797         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3798         in rtl mode.  (#129071, chinen@jp.ibm.com)
3799
3800 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
3801
3802         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3803         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3804         mode.  (#107528)
3805
3806 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
3807
3808         Clip narrow columns in rtl-oriented tree views (#128089,  
3809         chinen@jp.ibm.com):
3810         
3811         * gtk/gtkstyle.c (gtk_default_draw_option): 
3812         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
3813         given area.
3814
3815         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
3816         Use the right clip area when calling gtk_cell_renderer_render().
3817         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
3818         Use the right clip area when calling gtk_paint_focus().
3819         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3820         Use the right clip area when calling gtk_paint_toggle() or
3821         gtk_paint_check().
3822         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3823         Clip to the expose_area when drawing the background rectangle.
3824         
3825 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3826
3827         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3828         Use a weak reference instead of ref()/unref(). (#60857, reported
3829         by Joshua N Pritikin)
3830
3831         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3832
3833 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
3834
3835         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
3836         init_hadjust_value and prev_width.
3837         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
3838         them here.
3839         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3840         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3841         here to properly handle the initial position of rtl-oriented
3842         tree views.  (#127581, chinen@jp.ibm.com)
3843
3844 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3845
3846         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3847
3848         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3849         we handle an event in the colums, and FALSE at the end if the
3850         event is not handled at all.
3851
3852 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
3853
3854         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3855         Don't access the level after removing the node, since that may
3856         kill the level.  (#132615, Crispin Flowerday)
3857
3858 2004-02-02  Tor Lillqvist  <tml@iki.fi>
3859
3860         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3861         in all cases. If no grab cursor specified, use the grabbing
3862         window's cursor. If the grabbing window has no cursor, use the
3863         default arrow cursor. (#118025)
3864
3865 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
3866
3867         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3868         latest in menu separation technology.
3869
3870 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3871
3872         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3873         we have to take our chances with).
3874         
3875         (Bug 97510)
3876
3877 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3878
3879         Fix bug 110224.
3880
3881         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3882         Remove unused variable 'result'
3883
3884         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3885
3886         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3887         here.
3888
3889 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
3890
3891         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3892         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3893
3894 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3895
3896         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3897         sliding when using the new API.
3898
3899 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3900
3901         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3902         item_area is positioned correctly. Fix #133070, reported by Jeroen
3903         Zwartepoorte.
3904
3905 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
3906
3907         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3908         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
3909         muppet)
3910
3911 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
3912
3913         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3914         the documentation for new_order.  (#124790, Tim-Philipp Müller)
3915
3916 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
3917
3918         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3919         Reset use_resized_width when setting fixed_width.  (#108612, 
3920         Felipe Heidrich) 
3921
3922 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
3923
3924         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3925         GtkKeySnooperData.  (#132038, R. McFarland)
3926
3927 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3928
3929         Fixes #132975.
3930
3931         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3932         not FALSE.
3933         (gtk_file_system_volume_render_icon): Likewise.
3934
3935         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3936         Likewise.
3937
3938         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3939         not FALSE.
3940
3941         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3942         FALSE.
3943
3944         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3945         not FALSE.
3946         (gtk_text_iter_get_bytes_in_line): Likewise.
3947
3948         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3949         Likewise.
3950
3951         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3952         0.
3953
3954 2004-01-30  Not Zed  <NotZed@Ximian.com>
3955
3956         Fixes #132929.
3957
3958         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3959         handler when we clear the timeout id.
3960
3961 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3962
3963         Fix #129872, based on a patch by Jan Arne Petersen
3964         <jpetersen@uni-bonn.de>
3965
3966         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3967         Implement.
3968         (gtk_file_system_unix_add_bookmark): Implement.
3969         (gtk_file_system_unix_remove_bookmark): Implement.
3970
3971 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3972
3973         Fixes #132693.
3974
3975         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3976         use filename_from_path().  Also, check that the filename is
3977         absolute.
3978         (gtk_file_system_unix_get_folder): Likewise.
3979         (gtk_file_system_unix_create_folder): Likewise.
3980         (gtk_file_system_unix_make_path): Likewise.
3981         (gtk_file_system_unix_parse): Likewise.
3982         (gtk_file_folder_unix_get_info): Likewise.
3983         (filename_from_path): Removed.
3984
3985 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3986
3987         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
3988         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
3989
3990 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
3991
3992         * gdk/x11/gdkdrawable-x11.c: Revert changes from
3993         #113476 and go back to using XftDrawSetClip, because
3994         XftDrawSetClipRectangles is buggy in XFree86-4.3.
3995
3996 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
3997
3998         * gtk/gtktextlayout.c (line_display_iter_to_index)
3999         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
4000         adjust the preedit position for lines that include the
4001         preedit string. (#132353, Yao Zhang). How the heck
4002         did this work as well as it did?!?!
4003
4004         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
4005         Reverse change to change of XNFilterEvents event mask from
4006         #110493 -- it's documented and in the Xlib code an
4007         unsigned long. 
4008         
4009         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
4010         Return -1 rather than void to indicate no length limit.
4011         (#129548)
4012
4013 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
4014
4015         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
4016         (#64601, Murray Cumming)
4017
4018 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
4019
4020         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
4021         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
4022         
4023 2004-01-28  Richard Hult  <richard@imendio.com>
4024
4025         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
4026         Free font_desc.  Fixes #132805.
4027
4028 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
4029
4030         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
4031         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
4032         Fixes #132574.
4033
4034 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
4035
4036         * gtk/gtkselection.c (gtk_selection_default_handler): 
4037         nul-terminate the target atoms. (#132656, Christian Persch)
4038
4039 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
4040
4041         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
4042         Don't leak path if we bail out early.  (#132505, Christian Persch)
4043
4044 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
4045
4046         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
4047         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
4048         reference counting on the user_data that is shared between
4049         multiple signal handlers, to avoid calling the destroy notify
4050         multiple times.  (#132447, Adam Hooper)
4051
4052 2004-01-28  Hans Breuer  <hans@breuer.org>
4053
4054         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
4055           gtk/gtkstock.[hc] : ... define ...
4056           gtk/gtkiconfactory.c : ... register ...
4057           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
4058         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
4059         IFace changes.
4060
4061         * gtk/gtk.def : added a bunch of new exported symbols
4062
4063         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
4064         on filter_info->display_name being NULL
4065
4066         * tests/testgtk.c : make testgtk --bench=all work again
4067
4068 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
4069
4070         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
4071         Don't leak string.  (#132482, Christian Persch)
4072
4073 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
4074
4075         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
4076         1.8 won't whine at us.
4077
4078 2004-01-28  Tor Lillqvist  <tml@iki.fi>
4079
4080         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
4081         synthesize_enter_event): Don' generate enter or leave events if
4082         the pointer is grabbed with owner_events off, and the grab event
4083         mask doesn't ask for them. (#129242)
4084
4085         (gdk_event_translate): Ditto for focus change events.
4086
4087 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
4088
4089         Fix #132314.
4090
4091         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
4092
4093         * gtk/gtkfilesystem.c: Likewise.
4094
4095         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
4096         icon-type code.
4097         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
4098         from GtkFileInfo to here.
4099         (gtk_file_system_unix_volume_render_icon): Implement.
4100
4101 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
4102
4103         * modules/input/imhangul-defs.h: 
4104         * modules/input/imhangul.c:
4105         * modules/input/Makefile.am: Remove broken hangul input module.
4106         
4107 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4108
4109         * gtk/gtktoolbar.c: Remove obsolete comment.
4110
4111         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
4112         SPACE_LINE_END): Make separators wider and taller, so they are
4113         easier to pick up when editing the toolbar.
4114
4115         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
4116         a bit, 
4117
4118         * gtk/gtktoolbar.c (rect_within): Formatting fix
4119
4120         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
4121         sliding feel more responsive by only restarting sliding when the
4122         placeholder actually changes its goal allocation.
4123
4124 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
4125
4126         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
4127         compiler warning.  (#122725, Kjartan Maraas)
4128         
4129 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
4130
4131         Make menus work better on Xinerama (#126150):
4132         
4133         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
4134         monitor_num on the screen of the menu, not of the attach widget.
4135
4136         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
4137         (gtk_menu_window_size_request): Remember the monitor_num.
4138
4139 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
4140
4141         Fix #105497; constify uses of GdkColor.
4142
4143         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
4144         (gdk_gc_set_rgb_bg_color): Constify.
4145         (gdk_gc_set_foreground): Constify.
4146
4147         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
4148         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
4149         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
4150
4151         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
4152         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
4153         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
4154
4155         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
4156         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
4157         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
4158
4159         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
4160         (gdk_draw_layout_with_colors): Constify.
4161
4162         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
4163         (gdk_pixmap_colormap_create_from_xpm): Constify.
4164         (gdk_pixmap_create_from_xpm): Constify.
4165         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
4166         (gdk_pixmap_create_from_xpm_d): Constify.
4167
4168         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
4169
4170         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
4171         (gtk_clist_set_background): Constify.
4172
4173         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
4174         (gtk_color_button_set_color): Constify.
4175
4176         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
4177         Constify and add a check for color != NULL.
4178         (gtk_color_selection_get_current_color): Add a check for color != NULL.
4179         (gtk_color_selection_set_previous_color): Constify and add a check
4180         for color != NULL.
4181         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
4182
4183         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
4184         (gtk_ctree_node_set_background): Constify.
4185
4186         * gtk/gtktext.c (gtk_text_insert): Constify.
4187         (insert_text_property): Constify.
4188         (text_properties_equal): Constify.
4189         (new_text_property): Constify.
4190
4191         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
4192         (gtk_widget_modify_fg): Constify.
4193         (gtk_widget_modify_bg): Constify.
4194         (gtk_widget_modify_text): Constify.
4195         (gtk_widget_modify_base): Constify.
4196
4197 2004-01-26  Christian Rose  <menthos@menthos.com>
4198
4199         * configure.in: Added "mi" to ALL_LINGUAS.
4200
4201 2004-01-25  Tor Lillqvist  <tml@iki.fi>
4202
4203         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
4204         WM_TRANSIENT_FOR property is being deleted, set the owner of the
4205         window to the root window (i.e., effectively unset it). (#132411)
4206
4207         * gdk/win32/gdkprivate-win32.h
4208         * gdk/win32/gdkglobals-win32.c
4209         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
4210         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
4211
4212         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
4213
4214 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4215
4216         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
4217         to map/unmap items on whether they are actually allocated outside
4218         the toolbar, not on whether that will eventually happen. Improves
4219         animation in the presence of overflown items.
4220
4221         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
4222         queue_resize() to so that the items will get their new goal
4223         values and the idle handler will not immediately return FALSE.
4224
4225         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
4226         make sure that a placeholder becoming invisible doesn't cause a
4227         return TRUE.
4228
4229         * gtk/gtktoolbar.c (get_item_size): Don't special case
4230         placeholders here.
4231
4232 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4233
4234         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
4235         try to pack icon if there actually is one.
4236
4237         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
4238         OVERFLOWN items get an allocation even when they are
4239         unmapped. This ensures they will slide in properly.
4240
4241         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
4242         when there are overflown items that need to slide in. Also add
4243         comments and make formatting more readable.
4244
4245 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4246
4247         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
4248         Add a write-only property ::group to be consistent with
4249         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
4250         Andrieu)
4251
4252 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
4253
4254         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
4255         font description.  (#132168)
4256
4257 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
4258
4259         Fix #132247.
4260
4261         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
4262         mode.
4263         (set_select_multiple): Optionally notify about changes to the
4264         select-multiple property.
4265         (list_selection_changed): Change the condition for the editable row to
4266         test for save mode; this is more clear than testing for not being
4267         in multiple selection mode.
4268         (gtk_file_chooser_default_get_paths): Get impl->action directly
4269         rather than calling gtk_file_chooser_get_action().
4270         (entry_activate): Likewise.
4271         (set_select_multiple): Annotate about #133255.
4272         (update_chooser_entry): Likewise.
4273         (check_preview_change): Likewise.
4274         (tree_selection_changed): Likewise.
4275
4276 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
4277
4278         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
4279         when there are no columns, or all columns are hidden, #131402
4280
4281 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4282
4283         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
4284         mistake. Change back to 225.
4285
4286 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
4287
4288         * === Released 2.3.2 ===
4289
4290 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
4291
4292         * gtk/gtkicontheme.c: Patch from Christian Neumair
4293         to make warning string more translator friendly.
4294
4295         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
4296         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
4297         happy.
4298
4299         * configure.in: Require GLib-2.3.2, version 2.3.2,
4300         interface age 0, binary age 302.
4301
4302         * NEWS: Organized, added some names.
4303
4304 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
4305
4306         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
4307
4308 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
4309
4310         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
4311         GtkWidget::popup_menu.
4312
4313 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
4314
4315         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
4316         info after calling gtk_menu_do_remove(), since that function
4317         uses the attach info. Doh!
4318
4319         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
4320         for being 1 directly after setting it to 0.
4321
4322 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4323
4324         * NEWS: Updates
4325
4326 2004-01-22  Alexander Larsson  <alexl@redhat.com>
4327
4328         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
4329         Fix typo
4330
4331 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
4332
4333         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
4334         Free the path fields.
4335
4336         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
4337         the root_path, reported by <scott@asofyet.org>
4338         (gtk_file_system_model_finalize): Unref the file system.
4339
4340         * gtk/gtkfilefilter.c (filter_rule_free): default:
4341         g_assert_not_reached().
4342         (gtk_file_filter_finalize): Free the filter->name, reported by
4343         <scott@asofyet.org>
4344         (gtk_file_filter_finalize): Free the rules list.
4345
4346 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
4347
4348         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
4349         color button when an alpha is set.
4350         (gtk_color_button_set_alpha): redraw the color button when an
4351         alpha is set.
4352
4353 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
4354
4355         Fix #131869: 
4356         
4357         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
4358         a reference to the group while emitting the signals.
4359
4360         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
4361         destroy notify which does not only unref, but also resets
4362         the action_group property of the action.
4363
4364 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
4365
4366         * NEWS: Added details about GtkFileChooser changes.
4367
4368 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
4369
4370         Fix #99425, add accessor functions for GtkPaned's children.
4371
4372         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
4373         (gtk_paned_get_child2): New function.
4374
4375 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
4376
4377         * NEWS: Start of 2.3.2 section.
4378
4379 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
4380
4381         Fixes for #130370, based on a patch by Michael Meeks:
4382         
4383         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
4384         adjust cell positions and recalculate row and column counts after
4385         removing an item.
4386
4387         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
4388
4389         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
4390         appending items.
4391
4392         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
4393         to avoid an unintended recursion.
4394
4395 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
4396
4397         Fix #131418.
4398
4399         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
4400         function.
4401         (gtk_file_chooser_default_set_property): Use
4402         set_select_multiple().  Also, re-set this mode to single if the
4403         file chooser is set to Save mode.
4404         (entry_activate): Handle the case where the entry is completely
4405         empty *and* its current folder does exist.  Also, there is need to
4406         test for select_multiple here now that we ensure that it won't
4407         happen during Save mode.
4408
4409 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4410
4411         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
4412         _gtk_toolbar_get_default_space_size ();
4413
4414         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
4415         get_space_size): Use them here.
4416
4417 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4418
4419         * tests/testgtk.c (create_toolbar): Set a small size request and
4420         make the window resizable, to test mapping/unmapping of buttons.
4421
4422         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
4423         gtk_toolbar_insert_tool_item): remove these functions.
4424
4425         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
4426         toolbar_content_show_all, gtk_toolbar_hide_all,
4427         toolbar_content_hide_all): New functions. 
4428
4429         Ignore show_all/hide_all for buttons created in compatibility mode.
4430
4431         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
4432         gtk_toolbar_hide_all): Make sure buttons are ignored by
4433         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
4434         
4435         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
4436
4437         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
4438         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
4439
4440         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
4441         could become NULL.
4442
4443         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
4444         instead of prepending them.
4445
4446         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
4447         'elapsed' for all items.
4448
4449         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
4450         into bitfields.
4451
4452         * gtk/gtktoolbar.c: Many formatting fixes
4453         
4454 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
4455
4456         * configure.in: Add the necessary magic to create
4457         po-properties/Makefile.
4458
4459 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
4460
4461         The second part of the fix for #114351 (see also 
4462         gdk-pixbuf/ChangeLog and po/ChangeLog):
4463
4464         * Makefile.am (SUBDIRS): Add po-properties.
4465
4466         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
4467
4468         * gdk/gdkintl.h (P_): 
4469         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
4470
4471         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
4472         bind_textdomain_codeset for gtk20-properties as well.
4473
4474 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4475
4476         * gtk/gtktoolbar.c: 
4477
4478         Fix rest of #128678: Implement all the toolbar_content()
4479         methods for the old API case.
4480
4481 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4482
4483         * gtk/gtktoolbar.c: 
4484
4485         Phase 1 of fixing #128678: Only access ToolbarContent through a
4486         set of new functions:
4487
4488         toolbar_content_expose, toolbar_content_visible,
4489         toolbar_content_size_request, toolbar_content_is_homogeneous,
4490         toolbar_content_get_child_requisition,
4491         toolbar_content_is_placeholder, toolbar_content_disappearing,
4492         toolbar_content_get_state, toolbar_content_child_visible,
4493         toolbar_content_get_goal_allocation,
4494         toolbar_content_get_allocation,
4495         toolbar_content_set_start_allocation,
4496         toolbar_content_get_start_allocation, toolbar_content_get_expand,
4497         toolbar_content_set_goal_allocation,
4498         toolbar_content_set_child_visible, toolbar_content_size_allocate,
4499         toolbar_content_set_state, toolbar_content_get_widget,
4500         toolbar_content_set_disappearing,
4501         toolbar_content_set_size_request,
4502         toolbar_content_toolbar_reconfigured,
4503         toolbar_content_retrieve_menu_item, 
4504         toolbar_content_new_tool_item, toolbar_content_destroy,
4505         toolbar_content_is_separator
4506
4507         Also fix #127092.
4508         
4509 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4510
4511         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
4512         item ID.
4513
4514 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4515
4516         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
4517         overflow menu.
4518         
4519         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
4520         [#127726]
4521
4522 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4523
4524         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
4525         has_editable field.
4526         (_gtk_file_system_model_add_editable): New function.
4527         (_gtk_file_system_model_remove_editable): New function.
4528         (gtk_file_system_model_get_value): Return appropriate values for
4529         the temporary editable row.
4530         (_gtk_file_system_model_get_info): Handle the editable row.
4531         (_gtk_file_system_model_get_path): Likewise.
4532
4533         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
4534         Removed an unused variable.
4535         (toolbar_button_new): Optionally show the button.
4536         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
4537         (toolbar_create): Add a "New Folder" button for Save mode.
4538         (error_building_filename_dialog): New helper function.
4539         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
4540         (create_file_list): Connect to the "edited" signal of the text
4541         cell renderer.  Store the name column and text renderer in the
4542         impl structure.
4543         (renderer_edited_cb): New callback.
4544         (gtk_file_chooser_default_set_property): Show/hide the "New
4545         folder" button when the save action changes.
4546         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
4547         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
4548         tree_model.
4549         (get_list_file_info): Likewise!
4550         (list_icon_data_func): Handle the path being NULL.
4551         (new_folder_button_clicked): New callback.
4552         (list_name_data_func): If we are on the editable row, set the text
4553         to "Type name of new folder".
4554         (list_selection_changed): Handle the editable row.
4555         (list_mtime_data_func): Likewise.
4556
4557         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
4558         NULL, not FALSE.
4559         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
4560
4561 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
4562
4563         The first part of the fix for #114351 (see also 
4564         gdk-pixbuf/ChangeLog and po/ChangeLog):
4565         
4566         * gtk/gtkintl.h: 
4567         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
4568
4569         * gdk/gdkdisplaymanager.c:
4570         * modules/input/gtkimcontextxim.c:
4571         * gtk/*.c:  Mark property blurbs and nicks with P_().
4572         
4573 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4574
4575         Fix #130969.
4576
4577         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
4578         editing_canceled signal.
4579
4580         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
4581         "editing-canceled" signal.
4582         (gtk_cell_renderer_editing_canceled): New function.
4583
4584         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
4585         Call gtk_cell_renderer_editing_canceled().
4586
4587 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4588
4589         * gtk/gtkfilechooserdefault.c
4590         (gtk_file_chooser_default_set_property): Do not allow setting
4591         select_multiple when in Save mode.
4592         (set_list_model): No need to nullify the list_model and
4593         sort_model.
4594         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
4595         (get_paths_foreach): Likewise.
4596
4597         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
4598         documentation about folder mode.
4599         (gtk_file_chooser_get_uri): Likewise.
4600
4601 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4602
4603         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
4604         get_volume_for_path() method.
4605         (struct _GtkFileSystemIface): Finally removed the list_roots() and
4606         get_root_info() methods, and the "roots-changed" signal.
4607
4608         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
4609         function.
4610         (gtk_file_system_list_roots): Removed.
4611         (gtk_file_system_get_root_info): Removed.
4612
4613         * gtk/gtkfilesystemunix.c
4614         (gtk_file_system_unix_get_volume_for_path): Implement.
4615         (get_root_volume): New helper function.
4616         (gtk_file_system_unix_list_volumes): Use get_root_volume().
4617         (gtk_file_system_unix_list_roots): Removed.
4618         (gtk_file_system_unix_get_root_info): Removed.
4619
4620         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
4621         accept a NULL root_path.
4622         (struct _GtkFileSystemModel): Add a field to remember the
4623         root_path.
4624         (_gtk_file_system_model_new): Store the root_path in the model
4625         structure.
4626         (find_and_ref_path): Stop going up the hierarchy at the root_path
4627         of the model.  Also, don't return prematurely when walking up the
4628         hierarchy.
4629
4630         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4631         the rules_hint.
4632         (struct _GtkFileChooserDefault): Added a current_volume_path field.
4633         (set_tree_model): New function; create the folder tree model here.
4634         (create_folder_tree): Don't create the model here.
4635         (set_list_model): Set the show_hidden flag on the list model.
4636
4637 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
4638
4639         * gtk/gtknotebook.h:
4640         * gtk/gtknotebook.c (gtk_notebook_append_page): 
4641         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
4642         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
4643         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
4644         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
4645         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4646         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
4647
4648 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
4649
4650         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4651         a 'newly-allocated' to hint that the list should be freed after
4652         use.
4653
4654 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
4655
4656         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4657         to after handling the button presses in the TreeView to avoid
4658         getting multiple selection_changes()
4659
4660 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
4661
4662         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
4663         Karoonboonyanan)
4664
4665 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
4666
4667         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4668         Don't leak name and stock_id.  (#131358, Morten Welinder)
4669
4670 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
4671
4672         * docs/faq/gtk-faq.sgml: Updates to Section 5
4673
4674 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4675
4676         * gtk/gtkradioaction.c: Add a writable group property to align
4677         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
4678
4679 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
4680
4681         * docs/faq/gtk-faq.sgml: Update info on using autoconf
4682
4683 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
4684
4685         * tests/testmerge.c: Adjust to the new connect_proxy signals.
4686
4687         * gtk/gtkuimanager.c
4688         * gtk/gtkactiongroup.c
4689         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4690         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4691         removes the confusion between the disconnect_/connect_proxy signals 
4692         and the (unrelated) virtual functions of the same name and aligns
4693         the setup with the pre_/post_activate signals.
4694
4695 2004-01-12  Jody Goldberg <jody@gnome.org>
4696
4697         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4698           with no submenus otherwise it looks like we activate every time a
4699           submenu opens.
4700
4701 2004-01-12  Jody Goldberg <jody@gnome.org>
4702
4703         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4704
4705 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
4706
4707         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
4708         (gtk_accel_map_lock_path): 
4709         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4710         entry is silently created during lock_path(), and treated as an error 
4711         during unlock_path(). These changes have been requested by Tim Janik.
4712
4713 2004-01-10  Jody Goldberg <jody@gnome.org>
4714
4715         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4716         s/merge_signals/ui_manager_signals/ for readability.
4717         (gtk_ui_manager_class_init) : add pre_activate and post_activate
4718           signals.
4719         (cb_proxy_pre_activate) : new.
4720         (cb_proxy_post_activate) : new.
4721         (gtk_ui_manager_insert_action_group) : connect the proxies for
4722           GtkActionGroup::pre/post_activate
4723         (gtk_ui_manager_remove_action_group) : disconnect them.
4724
4725         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4726           'sensitive', and 'visible' properties.  Also add pre_activate and
4727           post_activate signals to help deal with activations at a higher
4728           level (eg GtkUIManager)
4729         (gtk_action_group_init) : init sensitive and visible
4730         (gtk_action_group_set_property) : add sensitive and visible
4731         (gtk_action_group_get_property) : add sensitive and visible
4732         (gtk_action_group_get_sensitive) : new.
4733         (gtk_action_group_get_visible) : new.
4734         (cb_set_action_sensitivity) : new with minor optimization that only
4735           signals sensitivity changes if the action could possibly change.
4736         (cb_set_action_visiblility) : ditto.
4737         (gtk_action_group_set_sensitive) : new.  walk the actions directly
4738           rather than using notify::sensitive because that is simpler, easier
4739           to read, and more efficient.
4740         (gtk_action_group_set_visible) : ditto.
4741         (gtk_action_group_add_action) : Each action can only be in 1 group,
4742           set GtkAction::action_group.
4743         (gtk_action_group_remove_action) : clear it.
4744         (gtk_action_group_add_toggle_actions_full) : warning suppression.
4745         (gtk_action_group_add_radio_actions_full) : warning suppression.
4746         (_gtk_action_group_emit_pre_activate) : new protected routine for use
4747           by GtkAction.
4748         (_gtk_action_group_emit_post_activate) : ditto.
4749
4750         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4751         (gtk_action_init) : initialize it.
4752         (gtk_action_get_property) : get.
4753         (gtk_action_set_property) : set it via
4754         (gtk_action_set_action_group) : new function.
4755         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4756           with the logical sensitivity (action & group) rather than the simple
4757           action::sensitivity.
4758         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4759           logical visibility (action & group) rather than the simple
4760           action::visible.  Use widget show/hide directly.
4761         (connect_proxy) : handle the custom sensitivity handler.
4762           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4763           directly, with special cases for TOOL_BUTTON.  Still not especially
4764           good it might be useful to handle label/use_underline by parmspec
4765           lookup.  Those are likely to be implemented by custom types, and are
4766           assumed to exist in GtkToolItem.
4767         (disconnect_proxy) : disconnect the new sensitivity handler.
4768         (_gtk_action_emit_activate) : add pre/post signals.
4769         (gtk_action_activate) : use logical sensitivity.
4770         (gtk_action_is_sensitive) : logical sensitivity.
4771         (gtk_action_get_sensitive) : actual sensitivity.
4772         (closure_accel_activate) : use logical sensitivity.
4773
4774 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
4775
4776         * gtk/gtkuimanager.c: Introduce a new parser state for 
4777         accelerator elements to avoid misparsing files containing 
4778         such elements.  (#131035, Morten Welinder)
4779
4780 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
4781
4782         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4783
4784 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
4785
4786         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4787
4788 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4789
4790         * gtk/gtkuimanager.h:
4791         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4792         obtain a list of toplevel widgets constructed by the ui manager.
4793
4794         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
4795         the values can be combined for gtk_ui_manager_get_toplevels().
4796
4797         * tests/testmerge.c: Add a "Dump toplevels" button to test 
4798         gtk_ui_manager_get_toplevels().
4799
4800 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
4801
4802         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4803         
4804         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
4805         by Anders Carlsson  (#130464).
4806
4807 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
4808
4809         * gtk/gtkmain.h: 
4810         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
4811         gint to gboolean.  (#130718, reported by Johannes Weißl)
4812
4813 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
4814
4815         * gtk/gtkactiongroup.h: 
4816         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4817         Remove the redundant name and stock_id parameters, adjust all callers.
4818
4819 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
4820
4821         * gtk/gtkaction.h: 
4822         * gtk/gtkaction.c (gtk_action_new):  
4823         * gtk/gtktoggleaction.h: 
4824         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
4825         * gtk/gtkradioaction.h: 
4826         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
4827         functions for actions.
4828
4829         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4830         (gtk_action_group_add_toggle_actions_full): 
4831         (gtk_action_group_add_radio_actions_full): and use the
4832         new functions here.  (#125322, Patch by Jeff Frank)
4833
4834 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
4835
4836         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
4837         docs.
4838
4839 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
4840
4841         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4842         (shortcuts_append_home), (shortcuts_append_desktop),
4843         (shortcuts_append_paths), (shortcuts_add_volumes),
4844         (shortcuts_append_bookmarks), (create_shortcuts_model),
4845         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4846         to the shortcuts_model.
4847
4848         (remove_bookmark_button_clicked_cb),
4849         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4850         bookmarks can be removed. Fixes #129873
4851
4852 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4853
4854         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4855         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4856         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
4857         respectively. Tests #82203.
4858
4859 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
4860
4861         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4862         0777 as the mode for mkdir() and let the umask do the right
4863         thing.  Fixes #121819.
4864
4865         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4866         can return NULL; handle this.  Fixes #129565.
4867
4868 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
4869
4870         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4871         that proceeded the end-of-sentence punctuation. Fixes: #130353.
4872
4873 2004-01-06  Jody Goldberg <jody@gnome.org>
4874
4875         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
4876           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4877
4878 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4879
4880         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4881         call shortcuts_add_bookmarks() here.
4882         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4883         iter.
4884         (shortcuts_append_paths): Don't display error dialogs here.
4885         (create_file_list): Remove the @#$% rules hint.
4886
4887 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4888
4889         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4890         function.
4891         (toolbar_create): Do not use a toolbar widget, just an hbox
4892         instead.  Add the bookmarks buttons and the current folder label
4893         here.
4894         (create_filename_entry_and_filter_combo): Create the filter combo
4895         here.
4896         (filter_create): Don't show the filter combo initially.
4897         (up_button_cb): Renamed from toolbar_up_cb().
4898         (create_shortcuts_buttons): Removed.
4899
4900 2004-01-05  Murray Cumming  <murrayc@usa.net>
4901
4902         * gdk/gdkimage.h: Added <public> documentation to the struct, as
4903         suggested by Owen Taylor.
4904
4905 2004-01-05  Jody Goldberg <jody@gnome.org>
4906
4907         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4908           I would have prefered outdent, but compatibility seems more
4909           important.
4910         * gtk/gtkstock.c (builtin_items) : ditto.
4911         * gtk/gtkstock.h : ditto.
4912         * gtk/stock-icons/Makefile.am : ditto.
4913         * gtk/stock-icons/stock_text_indent_16.png :
4914         * gtk/stock-icons/stock_text_indent_24.png :
4915         * gtk/stock-icons/stock_text_unindent_16.png :
4916         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4917
4918 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4919
4920         * gtk/gtkradiotoolbutton.[ch]
4921         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4922         group is a GtkRadioButton, not a GtkWidget.
4923
4924 2004-01-04  Hans Breuer  <hans@breuer.org>
4925
4926         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
4927         gdk_window_set_keep_(above|below) to make DND work again.
4928         Thanks to Alif Wahid for noticing.
4929
4930         * gdk/gdk.def : update externals
4931
4932         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4933
4934         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
4935           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4936           gtk/stock-icons/stock_harddisk_16.png 
4937           gtk/stock-icons/stock_harddisk_24.png 
4938         Harddisk stock icons for file system implementations. Beside
4939         FLOPPY and CDROM there is now HARDDISK, probably some 
4940         GTK_STOCK_NETWORK would be useful, but I could not find one.
4941
4942 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
4943
4944         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4945         Patch from Andrew Moise (#130462).
4946
4947 2004-01-01  Jody Goldberg <jody@gnome.org>
4948
4949         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4950           visible_vertical.
4951         (gtk_action_class_init) : here.
4952         (gtk_action_init) : here.
4953         (gtk_action_set_property) : here.
4954         (gtk_action_get_property) : here.
4955         (connect_proxy) : and here.
4956
4957 2003-12-30  Jody Goldberg <jody@gnome.org>
4958
4959         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
4960           utility routine for use in derived GtkActions with the replicated code
4961           from.
4962         (gtk_action_group_add_actions_full) : here.
4963         (gtk_action_group_add_toggle_actions_full) : here.
4964         (gtk_action_group_add_radio_actions_full) : and here.
4965
4966 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4967
4968         * configure.in: Added "bn" to ALL_LINGUAS.
4969
4970 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4971
4972         * bn.po: Added Bangla translation by 
4973         of Ankur group <gnome-translation@bengalinux.org>.
4974
4975 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
4976
4977         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
4978         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
4979         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
4980         week_start values other than 0 and 1, e.g. 6 will let weeks start
4981         on Saturday.  (#130349, Roozbeh Pournader) 
4982
4983 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4984
4985         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4986         
4987         Fix to allow reasonable pointer behavior in window mode when an
4988         extended input device reports an incorrect resolution of 0.  Fixes
4989         bug #123546
4990         
4991 2003-12-31  Christian Neumair  <chris@gnome-de.org>
4992
4993         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
4994         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
4995         plurals (#123847).
4996
4997 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
4998
4999         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
5000         (gtk_action_group_add_toggle_actions_full):
5001         (gtk_action_group_add_radio_actions_full): Pull accelerator key
5002         from the stock item if stock_id is given, but accelerator 
5003         not.  (Noticed by Jeff Franks and Jody Goldberg)
5004
5005         * tests/testmerge.c: Remove the accelerator from the "Open" entry
5006         to test the above change.
5007         
5008 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
5009
5010         Make show_all() work for the extra and preview widgets; reported
5011         by Paolo Maggi.
5012
5013         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
5014         preview widget.
5015         (set_extra_widget): show_all() the extra widget.
5016
5017 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5018
5019         * gtk/gtkuimanager.c (do_updates): 
5020         * gtk/gtktoolbar.c (slide_idle_handler): 
5021         * gtk/gtkdnd.c (gtk_drag_update_idle): 
5022
5023         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
5024         functions. (#130157, patch from Olexiy Avramchenko).
5025         
5026 2003-12-29  Anders Carlsson  <andersca@gnome.org>
5027
5028         * gtk/gtkradiotoolbutton.c:
5029         * gtk/gtkradiotoolbutton.h:
5030         * gtk/gtkseparatortoolitem.c:
5031         * gtk/gtkseparatortoolitem.h:
5032         * gtk/gtktoggletoolbutton.c:
5033         * gtk/gtktoggletoolbutton.h:
5034         * gtk/gtktoolbar.c:
5035         * gtk/gtktoolbar.h:
5036         * gtk/gtktoolbutton.c:
5037         * gtk/gtktoolbutton.h:
5038         * gtk/gtktoolitem.c:
5039         * gtk/gtktoolitem.h:
5040         Update my e-mail address.
5041         
5042 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
5043
5044         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
5045         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
5046         paths.  (#73207, reported by Havoc Pennington)
5047
5048 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5049
5050         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
5051         instead of VISIBLE to determine whether we should stop
5052         sliding. (#130018, reported by Christian Persch).
5053
5054 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
5055
5056         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
5057         Don't use first_action without initializing it if n_entries is 0.
5058
5059 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
5060
5061         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
5062         Add the missing _get_ to the name of the non-Xcursor version of
5063         this function.  (noticed by Torsten Schoenfeld)
5064
5065 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
5066
5067         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
5068         muppet.
5069
5070 2003-12-24  Jody Goldberg <jody@gnome.org>
5071
5072         * gtk/gtkactiongroup.h : Add some const to the char * in
5073           GtkActionEntry*.  We're reccomending people pass static strings to
5074           them, and not freeing them.  This stems to flood of warnings that
5075           result.
5076         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
5077           temp vars to const to match above.
5078         (gtk_action_group_add_toggle_actions_full) : ditto.
5079         (gtk_action_group_add_radio_actions_full) : ditto.
5080
5081 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
5082
5083         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
5084         gtk_clipboard_request_targets() and 
5085         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
5086
5087 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
5088
5089         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
5090         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
5091         * gtk/gtkcalendar.c (draw_arrow_left):
5092         (draw_arrow_right): Removed. 
5093         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
5094         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
5095         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
5096         insensitive.  (#97376)
5097
5098 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
5099
5100         * gtk/gtkuimanager.c (update_node): 
5101         (update_smart_separators): 
5102         (_gtk_menu_is_empty): 
5103         (find_menu_position): 
5104         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
5105         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
5106         (gtk_combo_box_relayout): Fix memory leaks caused by the
5107         failure to free the result of gtk_container_get_children().
5108
5109 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5110
5111         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
5112         properties when the window becomes a toplevel. When a window that
5113         was previously a toplevel becomes a toplevel again, restore its
5114         window type. Also make sure the focus window is removed from the
5115         XID hash when it is destroyed. (#117579, reported by Morten
5116         Welinder, patch reviewed by Owen Taylor).
5117
5118 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
5119
5120         * gtk/gtkmenushell.h: 
5121         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
5122         to emit the "cancel" signal on a menu shell.
5123
5124         * gtk/gtkmenu.c (gtk_menu_key_press): 
5125         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
5126         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
5127         new function instead of directly emitting the 
5128         signal.  (#81803, Owen Taylor)
5129
5130 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
5131
5132         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
5133         Fix the "language_set" blurb.  
5134         
5135 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
5136
5137         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
5138         all of treeview when resizing (#110074, patch from Soeren Sandmann).
5139
5140 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
5141
5142         Fixes #108458.
5143
5144         * gtk/gtkcelllayout.[ch]: added a reorder method.
5145
5146         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
5147         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
5148
5149         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
5150         (gtk_cell_view_cell_layout_reorder): ditto.
5151
5152         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
5153         (gtk_combo_box_cell_layout_reorder): ditto.
5154
5155         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
5156         (gtk_entry_completion_reorder): ditto.
5157
5158 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
5159
5160         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
5161         instead of strcmp (#117127, suggestion from Soeren Sandmann).
5162
5163 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
5164
5165         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
5166         here from gtk_menu_real_insert(),
5167         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
5168         (gtk_menu_reorder_child): run _do_insert after inserting the child
5169         (unbreaks _reorder_child, reported by Tim Janik).
5170
5171 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
5172
5173         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
5174         g_date_strftime() for UTF-8 correctness; use Julian dates to
5175         simplify the function.
5176
5177 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
5178
5179         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
5180         Test extra_width, not extra_height, when determining whether to
5181         set extra_width.  (#129647, Jan Arne Petersen)
5182
5183 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
5184
5185         Fix the behaviour of insensitive actions, which was broken
5186         when gtk_action_activate() was changed to pay attention to 
5187         sensitivity  (#129557, Christian Persch)
5188         
5189         * gtk/gtkaction.h: 
5190         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
5191         function to emit an activate signal without regard to sensitivity.
5192
5193         * gtk/gtkradioaction.c: 
5194         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
5195         instead of gtk_action_activate().
5196
5197 2003-12-18  Jody Goldberg <jody@gnome.org>
5198
5199         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
5200           to ensure that the base hicolor theme is installed.  Silently
5201           failing to produce icons that apps assume exist in the theme seems
5202           like a bad idea.
5203
5204 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
5205
5206         Fixes #110249, reworked patch from Joshua N Pritikin.
5207
5208         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
5209         (gtk_tree_model_sort_tree_drag_source_init),
5210         (gtk_tree_model_sort_row_draggable),
5211         (gtk_tree_model_sort_drag_data_get),
5212         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
5213
5214         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
5215         (gtk_tree_model_filter_tree_drag_source_init),
5216         (gtk_tree_model_filter_row_draggable),
5217         (gtk_tree_model_filter_drag_data_get),
5218         (gtk_tree_model_filter_drag_data_delete): ditto.
5219
5220 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
5221
5222         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
5223         for "*" and "/" (expand/collapse all). (#110195, reported by
5224         Calum Benson).
5225
5226 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
5227
5228         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
5229         clear the extra_attrs list if we set "text" after "markup".
5230         (Fixes #121933, Federico Mena Quintero).
5231
5232 2003-12-18  Alexander Larsson  <alexl@redhat.com>
5233
5234         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
5235         Fix typo that used the wrong x/y values for the x1, y1 point
5236         (#129605)
5237
5238 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
5239
5240         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
5241         (gtk_cell_renderer_text_finalize),
5242         (gtk_cell_renderer_text_get_property),
5243         (gtk_cell_renderer_text_set_property), (get_layout): added language
5244         and language_set properties like GtkTextTag has. (#103800, reported
5245         by Owen Taylor).
5246
5247 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
5248
5249         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
5250         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
5251         "activate" signal.  (#129358, Ka-Hing Cheung)
5252
5253 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
5254
5255         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
5256         the logical flag backwards in the expand_collapse_cursor_row
5257         bindings, fixing.
5258         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
5259         flag when !logical and in RTL. (Fixes #107527, reported by
5260         Noah Levitt).
5261
5262 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
5263
5264         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
5265         editing when activated by the left mouse button. (#106869,
5266         patch from Evan Martin).
5267
5268 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
5269
5270         Migrating all cell renderers to use the new instance private data
5271         construction.
5272
5273         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
5274         longer being used.
5275
5276         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
5277         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
5278         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
5279         GtkCellRendererInfo handling, migrate to instance private data.
5280
5281         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
5282         (gtk_cell_renderer_text_start_editing): moved focus_out_id
5283         from GtkCellRendererInfo to text renderer private data.
5284
5285         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
5286         (gtk_cell_renderer_pixbuf_class_init),
5287         (gtk_cell_renderer_pixbuf_finalize),
5288         (gtk_cell_renderer_pixbuf_get_property),
5289         (gtk_cell_renderer_pixbuf_set_property),
5290         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
5291         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
5292         migrate to instance private data.
5293
5294         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
5295         (gtk_cell_renderer_toggle_get_property),
5296         (gtk_cell_renderer_toggle_set_property),
5297         (gtk_cell_renderer_toggle_render): migrate to instance private data.
5298
5299 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
5300
5301         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
5302         (gtk_cell_renderer_text_get_property),
5303         (gtk_cell_renderer_text_set_property), (get_layout): add a
5304         single-paragraph-mode property, use private instance data.
5305         (Fixes #114943, reported by Morten Welinder).
5306
5307 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
5308
5309         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
5310         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
5311         by Matthias Clasen).
5312
5313 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
5314
5315         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
5316         if we set a new stock_id and there was a previous stock_id, unref
5317         the pixbuf (since it was used to renderer the previous stock_id
5318         and stock_id might have been set to NULL now). (Fixes #122966).
5319
5320 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
5321
5322         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
5323
5324         Check that index is not bigger than level array length
5325         also when depth is 1. Now get_iter_first correctly return
5326         FALSE when the model is empty (#129411).
5327
5328 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
5329
5330         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
5331         try to strcmp or strlen if we managed to normalize and casefold
5332         the string correctly. Fixes crashes with non-UTF8 strings.
5333         (#121617, Patch from Tim-Philipp Müller).
5334
5335 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
5336
5337         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
5338         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
5339         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
5340         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
5341         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
5342         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
5343
5344 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
5345
5346         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
5347         (#122727, patch from Kjartan Maraas).
5348
5349 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
5350
5351         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
5352
5353         * gtk/gtktreeview.c (gtk_tree_view_class_init),
5354         (gtk_tree_view_init), (gtk_tree_view_set_property),
5355         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
5356         fixed_height_mode property,
5357         (intialize_fixed_height_mode), (do_validate_rows),
5358         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
5359         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
5360         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
5361         (gtk_tree_view_insert_column): implement fixed height mode,
5362         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
5363         (gtk_tree_view_insert_column_with_attributes),
5364         (gtk_tree_view_insert_column_with_data_func): update docs.
5365
5366         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
5367
5368 2003-12-07  Murray Cumming  <murrayc@usa.net>
5369  
5370         * gtk/gtktreemodel.c:
5371         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
5372         Actually call the default signal handlers instead of calling the
5373         marshallers themselves in an endless loop. These default signal handler
5374         callbacks are not actually set so this is only noticed by gtkmm at
5375         the moment. Bug 123923.
5376
5377 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
5378
5379         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5380         "volumes-changed" signal.  Added the following methods:
5381                 list_volumes
5382                 volume_free
5383                 volume_get_base_path
5384                 volume_get_is_mounted
5385                 volume_mount
5386                 volume_get_display_name
5387                 volume_render_icon
5388
5389         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
5390         "volumes-changed" signal.
5391         (gtk_file_system_list_volumes): New function.
5392         (gtk_file_system_volume_free): New function.
5393         (gtk_file_system_volume_get_base_path): New function.
5394         (gtk_file_system_volume_get_is_mounted): New function.
5395         (gtk_file_system_volume_mount): New function.
5396         (gtk_file_system_volume_get_display_name): New function.
5397         (gtk_file_system_volume_render_icon): New function.
5398
5399         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
5400         (gtk_file_system_unix_volume_get_base_path): Implement.
5401         (gtk_file_system_unix_volume_get_is_mounted): Implement.
5402         (gtk_file_system_unix_volume_mount): Implement.
5403         (gtk_file_system_unix_volume_get_display_name): Implement.
5404         (gtk_file_system_unix_volume_render_icon): Implement.
5405
5406         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5407         Added a field for the "volumes-changed" signal connection.
5408         (gtk_file_chooser_default_set_property): Connect to
5409         "volumes-changed" on the file system.
5410         (gtk_file_chooser_default_finalize): Disconnect from
5411         "volumes-changed".
5412
5413         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
5414         function.
5415         (shortcuts_get_index): New helper function.
5416         (shortcuts_insert_path): Can now insert volumes as well as paths.
5417         (shortcuts_append_paths): Don't take is_file_system_root.
5418         (shortcuts_add_volumes): New function.
5419         (shortcuts_append_file_system_roots): Removed.
5420         (create_shortcuts_model): Use shortcuts_add_volumes().
5421         (remove_bookmark_button_clicked_cb): Check that the index is
5422         within range.
5423         (bookmarks_check_add_sensitivity): Take volumes into account.
5424         (shortcuts_get_selected_index): New helper function.
5425         (remove_bookmark_button_clicked_cb): Use
5426         shortcuts_get_selected_index().
5427         (bookmarks_check_remove_sensitivity): Likewise.
5428         (shortcuts_select_func): Likewise.
5429         (shortcuts_row_activated_cb): Handle volumes as well as normal
5430         paths.
5431         (shortcuts_activate_volume): New function.
5432         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
5433         bookmarks_iter fields.
5434         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
5435         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
5436         (remove_bookmark_rows): Removed.
5437         (shortcuts_add_bookmarks): New function; moved most of the code
5438         over from shortcuts_append_bookmarks().
5439         (shortcuts_append_bookmarks): Add the separator node here, and
5440         then call shortcuts_add_bookmarks().
5441
5442 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
5443
5444         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
5445         (G_OS_UNIX/G_OS_WIN32 stuff)
5446
5447 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
5448
5449         Do not interpret distant clicks as double-clicks  (#116541,
5450         Bernhard Walle):
5451         
5452         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
5453         double_click_distance, button_x and button_y.
5454         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
5455
5456         * gdk/gdkdisplay.h: 
5457         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
5458         New function to set the double click distance on a display.
5459
5460         * gdk/gdkevents.c: Take double click distance into account
5461         when generating single, double or triple clicks.
5462
5463         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
5464
5465         * gdk/x11/gdkevents-x11.c: Add the XSetting 
5466         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
5467
5468 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5469
5470         * gtk/gtkdialog.c: Sigh, revert the change.
5471
5472 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5473
5474         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
5475         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
5476         allows sane behavior for #101293.
5477
5478 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
5479
5480         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
5481         getter and setter gtk_button_[sg]et_alignment(), to set the
5482         alignment of the child.  (#70961, Jody Goldberg)
5483
5484 2003-12-14  Hans Breuer  <hans@breuer.org>
5485
5486         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
5487         similar as the other filesystem placement 'constants' (dynamic
5488         resolving on win32)
5489
5490         * gtk/gtkfilechooserwidget.c : handle file system to win32
5491         renaming here as will
5492         * gtk/gtkfilesystemwin32.c : implement render_icon
5493
5494         * gtk/gtk.def gdk/gdk.def : updated externals
5495
5496         * gdk/win32/gdkdisplay-win32.c : make it compile without
5497         <multimon.h> - i.e. even older sdk
5498
5499         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
5500         with TIMERPROC prototype
5501
5502         * gdk/win32/gdkwindow-win32.c : older msvc does not know
5503         BITMAPV5HEADER (from win xp) either
5504
5505         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
5506         not defined
5507
5508         * tests/testfilechooser.c : recent GLib crashes on 
5509         g_print ("%s", NULL) so avoid this
5510
5511 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5512
5513         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
5514         followed by calls to CloseClipboard(). Add a missing call to
5515         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
5516         API_CALL macro in more places.
5517
5518 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5519
5520         Merge from stable:
5521
5522         * gdk/gdkdisplaymanager.c: Mark default_display static.
5523
5524         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
5525
5526         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
5527         output.
5528
5529         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
5530         --gdk-debug=events. In general, output just one line of debugging
5531         output for each Windows message, plus one line for each GDK event
5532         generated. Indent all lines according to window procedure nesting
5533         level.
5534
5535         (inner_window_procedure): Rename from real_window_procedure.
5536
5537         (find_real_window_for_grabbed_mouse_event): Don't get misled when
5538         the point is in the non-client (decoration) area of the window
5539         returned by WindowFromPoint(). Return the root window in that
5540         case.
5541
5542         (build_pointer_event_state): Test also MK_XBUTTON1 and
5543         MK_XBUTTON2 (buttons 4 and 5).
5544
5545         (synthesize_enter_event): Track the mouse leaving the window in
5546         the event being generated, not the one mentioned in the Windows
5547         message.
5548
5549         (propagate): Test for NULL parent earlier. Improves event
5550         generation from a grabbed pointer. Part of fix for #107320.
5551
5552         (handle_stuff_while_moving_or_resizing): New function, to
5553         dispatch the main loop (once).
5554
5555         (resize_timer_proc): New function, set to be called by an inerval
5556         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
5557
5558         (gdk_event_translate): Drop unused return_exposes parameter.
5559
5560         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
5561
5562         On WM_SYSKEYUP, generate a key release event also for just the Alt
5563         key.
5564
5565         On WM_MOUSELEAVE, generate a leave event of type
5566         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
5567         top-level window, and left the app completely.
5568
5569         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
5570         calls resize_timer_proc() at regular intervals. On
5571         WM_EXITSIZEMOVE, kill the timer.
5572
5573         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
5574         and dispatch the main loop (by calling
5575         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
5576         Herman Bloggs.
5577
5578         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
5579         also wintab messages.
5580
5581         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
5582         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
5583         the window's owner. Fixes #118093, reported by Maxime Romano.
5584
5585 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
5586
5587         * gdk/win32/gdkwindow-win32.[ch]: Implement
5588         gdk_window_set_icon_list() for Win32, with support for big and
5589         small icons and support for alpha-channel icons under Windows
5590         XP. Replaces the previous implementation of gdk_window_set_icon().
5591         (#128762)
5592         
5593 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
5594
5595         * gdk/x11/gdkprivate-x11.h: 
5596         * gdk/x11/gdkx.h: 
5597         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
5598         Rename from _gdk_x11_register_event_type(), added API docs.
5599         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
5600         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
5601         all callers.  (#121471, Bill Haneman)
5602
5603 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
5604
5605         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
5606         of gc is ignored.  (#101983, Sebastian Rittau)
5607
5608 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
5609
5610         A trick for a faster treeview, step 1. Patch to short circuit
5611         _build_tree(), inspired by Jonathan (#80868).
5612
5613         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
5614         flags by default,
5615         (gtk_tree_view_build_tree): don't even try to recurse when the
5616         model says that it is a list, remove flag unsetter,
5617         (gtk_tree_view_set_model): change flag setting logic.
5618
5619         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
5620         propagate whether or not the child model has _IS_LIST set.
5621
5622         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5623         ditto.
5624
5625 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
5626
5627         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
5628         since it broke logical keynav. 
5629         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5630         direction in inverted scrollbars here instead.
5631
5632 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
5633
5634         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5635         "gravity" for RTL mode in a better way: Keep the distance from 
5636         the upper end of the page to the upper bound constant. This also 
5637         fixes problems with the initial position of the viewport in RTL 
5638         mode.  (#129063)
5639         
5640 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
5641
5642         Combo box flipping support.
5643
5644         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5645         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5646         patch from Matthias Clasen),
5647         (gtk_combo_box_popup): fix popup window alignment if there's a
5648         cell view frame visible (#126518, patch from Semion Chichelnitsky).
5649
5650         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5651         (#128348, patch from Semion Chichelnitsky).
5652
5653 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
5654
5655         * examples/gtkdial/gtkdial.c:
5656         * examples/menu/menu.c:
5657         * examples/scribble-xinput/scribble-xinput.c:
5658         * examples/progressbar/progressbar.c:
5659         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5660         in examples. (#129074, Olexiy Avramchenko)
5661         * examples/calendar/Makefile:
5662         * examples/rangewidgets/Makefile:
5663         * examples/menu/Makefile: Allow deprecated functions in
5664         examples which use deprecated widgets.
5665
5666 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
5667
5668         * gdk/gdk.c (gdk_threads_set_lock_functions): 
5669         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5670
5671 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
5672
5673         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
5674         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
5675
5676 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
5677
5678         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
5679         unnecessarily reserve space for arrows in RTL mode.  (#129075,
5680         Semion Chichelnitsky)
5681
5682 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
5683
5684         Changes to allow "no input" windows (#64613):
5685         
5686         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5687         field accept_focus.
5688         
5689         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5690         set it.
5691
5692         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5693         and gtk_window_get_focus() and gtk_window_set_focus().
5694
5695         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
5696         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
5697         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5698         Initialize the accept_focus field to TRUE.
5699
5700         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
5701         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
5702         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
5703         Implementations for the various backends. The Win32 and linux-fb
5704         implementations set the accept_focus field, but don't use it yet 
5705         to actually implement noinput windows. The X implementation updates
5706         the WM_HINTS to select the globally active input model (see the
5707         ICCCM) if accept_focus is FALSE.
5708
5709         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5710         WM_TAKE_FOCUS message if accept_focus is FALSE.
5711         
5712 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
5713
5714         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5715         Added toolbar items for the filter separator and the filter item.
5716         (toolbar_create): Add the filter widgets here.
5717         (filter_create): Renamed from create_filter().  Don't store the
5718         alignment in the impl structure, just return it.
5719         (toolbar_show_filters): New function.
5720         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5721         (gtk_file_chooser_default_remove_filter): Likewise.
5722         (gtk_file_chooser_default_constructor): Don't create the filter
5723         widget here.
5724         (struct _GtkFileChooserDefault): Added a field for a current
5725         folder label.
5726         (gtk_file_chooser_default_constructor): Create the folder label.
5727         (gtk_file_chooser_default_set_current_folder): Set the current
5728         folder label.
5729
5730         * tests/testfilechooser.c (main): Dramatically improved the
5731         usability of the extra widget through careful word choice.
5732
5733 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5734
5735         * gdk/gdk.h: include gdkspawn.h.
5736
5737 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5738
5739         * gdk/linux-fb/gdkspawn-fb.c,
5740           gdk/win32/gdkspawn-win32.c,
5741           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5742         s/gdk_spawn/gdk_spawn_on_screen/.
5743
5744 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5745
5746         Utility functions for multi-screen applications which need
5747         to ensure launched applications appear on a certain screen.
5748         See bug #95897.
5749         
5750         * gdk/gdkspawn.h: header for multi-screen launching
5751         support.
5752         
5753         * gdk/Makefile.am: install gdkspawn.h.
5754         
5755         * gdk/x11/Makefile.am:
5756         * gdk/x11/gdkspawn-x11.c:
5757         (gdk_spawn_make_environment_for_screen): private function
5758         to create an environment vector with DISPLAY set appropriately
5759         for the screen.
5760         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5761         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5762         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5763         
5764         * gdk/linux-fb/Makefile.am,
5765           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5766         
5767         * gdk/win32/Makefile.am,
5768           gdk/win32/gdkspawn-win32.c: win32 impl.
5769
5770 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
5771
5772         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5773         rather than "Username's Home" (#125964).
5774         (shortcuts_selection_changed_cb): New callback, check the
5775         sensitivity of the Remove Bookmark button at the right time.
5776         (shortcuts_row_activated_cb): It is not necessary to check the
5777         sensitivity here.
5778
5779 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
5780
5781         Improve the GDK API for dealing with group leaders (#119375):
5782         
5783         * gdk/gdkwindow.h: 
5784         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
5785         get the group leader of a toplevel window as a GdkWindow.
5786
5787         * gdk/gdkdisplay.h: 
5788         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
5789         function to get the default group leader as a GdkWindow.
5790
5791         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5792         the GdkWindow of the default group leader.
5793         
5794         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5795         for the default group leader.
5796
5797 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
5798
5799         * gdk/gdkkeysyms.h:
5800         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5801         Ukrainian_GHE_WITH_UPTURN. (#128529)
5802
5803 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
5804
5805         * gtk/gtkfilechooserdefault.c:
5806         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5807         behavior of the GtkFileSelection to determine selected paths in
5808         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5809
5810 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
5811
5812         * gtk/gtkfilechooserdefault.c
5813         (gtk_file_chooser_default_get_paths): Don't declare the closure
5814         struct twice.
5815         (get_paths_foreach): Likewise.
5816
5817 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
5818
5819         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
5820
5821 2003-12-08  Tor Lillqvist  <tml@iki.fi>
5822
5823         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5824         with MSVC and old headers. (#126933, John Ehresman)
5825
5826 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
5827          
5828         * === Released 2.3.1 ===
5829
5830         * NEWS: Updates for 2.3.1
5831
5832         * configure.in: Version 2.3.1, interface age 0, binary age 301.
5833
5834         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5835         Rename from gtk_menu_item_real_can_activate_accel() to
5836         match GTK+ convention, improve comment.
5837
5838         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5839         can ::can-activate-accel signal.
5840
5841         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5842         in comment.
5843
5844         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
5845         up comment.
5846         
5847         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5848         into the .c file.
5849
5850 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
5851
5852         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5853         missing 'else'. (#128816, Jorn Baayen)
5854
5855 2003-12-02  Michael Meeks  <michael@ximian.com>
5856
5857         Based on a patch by Martin Kretzschmar; #122448
5858         
5859         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5860         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5861         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5862         function pointers. Deprecate the global gdk_threads_mutex variable.
5863         
5864         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5865         extracted from GTK_THREADS_ENTER/LEAVE macros.
5866         (gdk_threads_init): init gtk_threads_[un]lock if not set.
5867         (gdk_threads_set_lock_functions): impl.
5868
5869         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5870
5871 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
5872
5873         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5874         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
5875         Gonzalez)
5876
5877 2003-12-07  Tor Lillqvist  <tml@iki.fi>
5878
5879         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5880         return value from SendMessage(WM_SETICON). That is the old
5881         icon. Fixes GDI resource leak. (#128559, Tim Evans)
5882
5883         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5884         have a pointer grab active with a grab cursor set, destroy that
5885         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5886
5887 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
5888
5889         * configure.in: Added Thai (th) to ALL_LINGUAS.
5890
5891 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
5892
5893         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5894         RTL flipping for GtkAlignment.  (#127585)
5895
5896 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
5897
5898         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
5899         popup window when in RTL mode.  (#127578)
5900
5901 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
5902
5903         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5904         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5905         before doing anything to prevent garbage returns.
5906
5907 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
5908
5909         * gtk/gtkviewport.c: Implement RTL flipping for 
5910         GtkViewport: Adjust the "gravity" when resizing
5911         This is a bit flickery in RTL mode.  (#107526)
5912
5913 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
5914
5915         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
5916         GtkScrolledWindow: the vertical scrollbar shows up on the left
5917         side in RTL mode.  (#107526)
5918
5919 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
5920
5921         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5922         tabs displayed at the top/bottom are rearranged, and tabs on
5923         the left/right are displayed at the opposite edge.  (#96630)
5924
5925 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
5926
5927         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5928         gtk_label_set_attributes() take NULL. See bug #128517.
5929
5930 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
5931
5932         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5933         the in_change flag.
5934         (completion_idle_callback): Use a temporary list store and re-set
5935         it on the completion rather than modifying the old one.  We are
5936         re-reading the folder anyway, and this gets rid of non-atomicity
5937         problems.
5938
5939 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5940
5941         Decouple impl->current_folder from the selection in the folder
5942         tree.  This is so that going to /home/federico/.foo (e.g. from a
5943         bookmark) will work even if show_hidden == FALSE.  The folder tree
5944         needs to be fixed in this case to show such folders explicitly.
5945
5946         * gtk/gtkfilechooserdefault.c
5947         (gtk_file_chooser_default_set_current_folder): When changing
5948         folders, do the entry and list model work here, instead of
5949         tree_selection_changed().
5950         (struct _GtkFileChooserDefault): Added a changing_folder flag
5951         again, dum de dum.
5952         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5953
5954 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
5955
5956         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
5957         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
5958
5959 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5960
5961         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5962         bookmarks buttons with the location entry.
5963
5964         * gtk/gtkfilechooserdefault.c
5965         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5966         bookmarks buttons and the location entry.
5967
5968 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5969
5970         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5971         shortcuts tree as a drag destination.
5972         (shortcuts_drag_data_received_cb): New callback.
5973         (get_file_info): Also fetch information on whether the file is a folder.
5974         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5975         (error_could_not_add_bookmark_dialog): New function.
5976         (shortcuts_add_bookmark_from_path): New helper function.
5977         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5978         (shortcuts_row_activated): We no longer need the changing_folder flag.
5979         (struct _GtkFileChooserDefault): Likewise.
5980
5981 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5982
5983         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5984         disappearing placeholders that are still visible.
5985
5986         * gtk/gtktoolbar.c: formatting fixes
5987
5988         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
5989         disappearing, for placeholders that are going to disappear.
5990
5991         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
5992
5993 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
5994
5995         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
5996         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5997         Patch from <chinen@jp.ibm.com> to handle RTL support for column
5998         resizers, #127874
5999
6000 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
6001
6002         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
6003         Don't use freed memory.  (#127698, Taavi Talvik) 
6004
6005 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
6006
6007         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
6008
6009 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
6010
6011         * gtk/gtkuimanager.c: Remove debug define.
6012
6013 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
6014
6015         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
6016         and the attach widget.
6017
6018         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
6019         sensitivity and the parent menu.
6020
6021         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
6022         checks whether accelerators may activate a widget. the default handler
6023         demands the widget be sensitive and visible+viewable.
6024
6025         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
6026
6027 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
6028
6029         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
6030         popup menus.  (#127227)
6031
6032 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
6033
6034         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
6035
6036 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6037
6038         * gtk/gtkradiotoolbutton.[ch]
6039         (gtk_radio_tool_button_new_from_widget): Make this function take a
6040         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
6041         Cumming)
6042
6043 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6044
6045         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
6046
6047 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6048
6049         * gtk/gtktoolbar.c: remove variable
6050         n_overflowed_menu_items_when_dnd_started
6051
6052 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6053
6054         Rework sliding algorithm.
6055         - No more weird jumping when items are dragged off and added to
6056         the toolbar,
6057         - More natural item movement
6058
6059         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
6060         function is now responsible for calculating intermediate positions
6061         during item sliding. It is also responsible for starting sliding
6062         if items disappear.  Also turn off expanding when there is an
6063         overflow menu.
6064         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
6065         (slide_idle_handler): New function. All the sliding is now done by
6066         gtk_toolbar_size_allocate(), so the idle handler now just checks
6067         if there is more sliding to be done.
6068         (compute_intermediate_allocation, position): new functions
6069         calculating intermediate steps in the slide animations. The new
6070         animation algorithm uses a constant speed instead of a constant
6071         must-be-finished-within time.
6072         (struct _ToolbarContent): use 
6073         GtkAllocation goal_allocation; and 
6074         GtkAllocation start_allocation; instead of 
6075         gint start/goal_width;
6076
6077         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
6078         documentation
6079
6080 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
6081
6082         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
6083         positioning Xinerama-aware.  (#127332)
6084
6085 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
6086
6087         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
6088         boundaries visible in fake Xinerama mode.
6089
6090 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
6091
6092         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
6093         for the gtk_widget_hide() call.
6094
6095 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
6096
6097         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
6098         from David Hampton to fix sorting on booleans.
6099
6100 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6101
6102         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
6103         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
6104         by Frederic Crozat).
6105
6106 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
6107
6108         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
6109
6110 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6111
6112         Fixes to problems reported by Iain Holmes:
6113
6114         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
6115         throw up an error dialog if the desktop doesn't exist.
6116         (error_message): Handle the case where there is no real toplevel
6117
6118         yet.
6119         (list_model_filter_func): Always let folders pass through (patch
6120         by Dave Malcolm).
6121
6122 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
6123
6124         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
6125         to a somewhat more logical place,
6126         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
6127
6128 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
6129
6130         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
6131         the popup when it is visible, popdown when there are less chars
6132         than the minimum key length in the entry,
6133         (gtk_entry_completion_changed): popdown when the entry is empty.
6134
6135         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
6136         size request of the vscrollbar to (-1, 0), to get a nicely sized
6137         completion treeview (Fixes #126573, reported by Piers Cornwell),
6138         (_gtk_entry_completion_resize_popup): show/hide the action_view
6139         based on items.
6140
6141 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6142
6143         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
6144         off the dialog's separator (thanks to Iain Holmes).
6145
6146 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6147
6148         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
6149         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
6150         on items that have a submenu. (#120104).
6151
6152 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6153
6154         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
6155         "ItemState" field indicating the overflowed-ness etc. of the item.
6156         (gtk_toolbar_size_allocate): update the field here.
6157
6158 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6159
6160         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
6161         to the alignment.  Use the HIG-specified spacing between the
6162         filter label and the combo.
6163         (create_filename_entry): Use HIG-specified spacing between the
6164         location label and the entry.
6165         (gtk_file_chooser_default_constructor): Don't use vertical padding
6166         around the filename entry.
6167
6168 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6169
6170         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
6171         render_icon virtual method.
6172
6173         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
6174
6175         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
6176         Implement as a stub for now.
6177
6178         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
6179         gtk_file_system_render_icon().
6180         (list_icon_data_func): Likewise.
6181         (toolbar_create): Set the toolbar style to icons only.
6182
6183         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
6184         Fix doc comments.
6185
6186 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
6187
6188         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
6189         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
6190
6191 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
6192
6193         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
6194         only unselect all items if the treeview has focus. (Fixes bug
6195         reported by Marco Pesenti Gritti).
6196
6197 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
6198
6199         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
6200         number of actions is "matches + actions - 1". (Fixes #126572).
6201
6202 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
6203
6204         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
6205         mem leaks (#119435).
6206
6207 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
6208
6209         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
6210         try to fetch the child back, since we do know that it is already
6211         gone by now (#126493, Marco Pesenti Gritti).
6212
6213 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
6214
6215         Fixes based on comments from Owen Taylor, #125264.
6216
6217         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
6218         variable,
6219         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
6220         a resize,
6221         (gtk_cell_view_get_size_of_row): new function,
6222         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
6223         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
6224         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
6225         s/cellview/cell_view/ in the function definitions, so they match
6226         with the header file.
6227
6228         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
6229         flag again (:, and use gtk_cell_view_get_size_of_row instead of
6230         the measurer, remove _set_size_request call,
6231         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
6232         instead of the measurer,
6233         (gtk_combo_box_style_set): queue a resize,
6234         (gtk_combo_box_size_request): update of _remeasure call,
6235         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
6236         (gtk_combo_box_cell_layout_pack_end),
6237         (gtk_combo_box_cell_layout_clear),
6238         (gtk_combo_box_set_model): get rid of the measurer,
6239         (gtk_combo_box_cell_layout_add_attribute),
6240         (gtk_combo_box_cell_layout_set_cell_data_func),
6241         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
6242         resize instead of calling _remeasure.
6243
6244 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
6245
6246         * gdk-pixbuf/Makefile.am
6247         * modules/input/Makefile.am: Use install-data-hook for
6248         gdk-pixbuf.loaders and gtk.immodules install generation targets.
6249         Fixes #112806.
6250
6251         * gtk/gtkexpander.h: Apply missing declarations from #124449.
6252
6253 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
6254
6255         Fix for #119555, Peter Zelezny:
6256         
6257         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
6258         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
6259         by removing the _ prefix. 
6260         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
6261         gdk/gdkwindow.c: Adjust all callers.
6262
6263 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
6264
6265         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
6266         the action is sensitive.  (#127187, Christian Persch)
6267
6268 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
6269
6270         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
6271
6272 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
6273
6274         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
6275
6276         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
6277         mapped, else resize_popup.
6278
6279         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
6280         (_gtk_entry_completion_popup): moved all popup resizing code to
6281         _gtk_entry_completion_resize_popup, and show the window when there
6282         are more than zero items in the completion list again (sigh).
6283
6284 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
6285
6286         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
6287         "use_markup" property. See bug #124449.
6288
6289         * gtk/gtkexpander.c:
6290         (gtk_expander_class_init),
6291         (gtk_expander_init), (gtk_expander_set_property),
6292         (gtk_expander_get_property), (gtk_expander_set_label),
6293         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
6294         Add a "use_markup" property and use it when creating the
6295         child label.
6296
6297 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
6298
6299         Temporary size requisition fix. Will fix it for real tonight.
6300
6301         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
6302         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
6303         a good width for the child,
6304         (gtk_combo_box_cell_layout_add_attribute),
6305         (gtk_combo_box_set_cell_data_func),
6306         (gtk_combo_box_cell_layout_clear_attributes): update.
6307
6308 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
6309
6310         Fixes #124373, Murray Cumming.
6311
6312         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
6313         is no longer construct only,
6314         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
6315         (gtk_combo_box_menu_fill): new functions,
6316         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
6317         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
6318         (gtk_combo_box_list_destroy): updated,
6319         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
6320         functions,
6321         (gtk_combo_box_set_model): is now public, updated,
6322         (gtk_combo_box_get_model): small update.
6323
6324         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
6325         text_column property is no longer construct only,
6326         (gtk_combo_box_entry_set_text_column): now public,
6327         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
6328         new/changed functions.
6329
6330         * tests/testcombo.c: updated.
6331
6332 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
6333
6334         Reinstate fixes for (#124212, Marco Pesenti Gritti):
6335         
6336         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6337         warnings for popups.
6338         (_gtk_menu_is_empty): Return FALSE for non-menus.
6339
6340 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
6341
6342         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
6343         gtk_cell_view_cell_layout_clear instead of trying to free the
6344         structure ourselves here. (#125726, Morten Welinder).
6345
6346 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
6347
6348         * gtk/gtkfilechooser.[hc]: 
6349         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
6350         confuse gtk-doc.
6351
6352 2003-11-15  Hans Breuer  <hans@breuer.org>
6353
6354         * gdk/makefile.msc gdk/gdk.def 
6355             gtk/gtk.def gtk/makefile.msc.in : updated
6356         * tests/makefile.msc : added all the new tests
6357
6358         * gtk/gtkfilefilter.c(finalize) : initialize filter
6359         from object not from itself
6360
6361         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
6362         modified as less as posible to have aworking implementation
6363         on win32. There maybe the desire to merge the unchanged pats into
6364         a common base class.
6365         Also implemented a simple glib based bookmark handling, which
6366         is currently missing in gtkfilesystemunix.[hc] but can be copied
6367         over there.
6368         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
6369
6370         * gdk/win32/gdkwindow-win32.c : implement 
6371         gdk_window_set_keep_above() and gdk_window_set_keep_below()
6372
6373         * tests/testmerge.c : don't include unistd.h unconditionally,
6374         #define STDOUT_FILENO if it isn't defined
6375
6376         * tests/testfilechooser.c : make it compile on win32
6377
6378 2003-11-15  Tor Lillqvist  <tml@iki.fi>
6379
6380         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
6381         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
6382
6383 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
6384
6385         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
6386
6387 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
6388
6389         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
6390         GTK_DATADIR/{icons,pixmaps} instead of 
6391         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
6392
6393 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
6394
6395         Changes to improve menu positioning on Xinerama (#108328, #126150):
6396         
6397         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
6398         window of the menuitem to determine the monitor. This fixes some
6399
6400         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
6401         to store the monitor on which the menu is to be positioned.
6402
6403         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
6404         in the GtkMenuPrivate struct and fetch the monitor geometry after
6405         calling the position_func, in case it has been changed.
6406
6407         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
6408         to be used in GtkMenuPositionFunc implementations for setting
6409         the monitor_num field in GtkMenuPrivate.
6410
6411         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
6412         gtk_menu_set_monitor.
6413
6414 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
6415
6416         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
6417         label for the empty list. String change.  (#95446, Tomas Ã–gren)
6418
6419 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
6420
6421         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
6422         the definition of the values.  (#123361, Marco Pesenti Gritti)
6423
6424 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
6425
6426         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
6427         (#122941, Egmont Koblinger)
6428
6429 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
6430
6431         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
6432         opacity entry widget. Change tooltip for opacity widgets. (#126426)
6433
6434 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
6435
6436         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
6437         affect window menu position when popped from keyboard. (#102660)
6438
6439 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6440
6441         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
6442         are using the old API, make all items "is_important". That way
6443         BOTH_HORIZ will continue to show both icon and label in old API
6444         mode.
6445
6446 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
6447
6448         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
6449         Remember the new value in all cases.  (#126276, Damon Chaplin)
6450
6451 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
6452
6453         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
6454         functions with the toplevel as argument.
6455
6456         * demos/gtk-demo/geninclude.pl.in: Change the signature
6457         of GDoDemoFunc to take a widget argument
6458
6459         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
6460         * demos/gtk-demo/tree_store.c (do_tree_store): 
6461         * demos/gtk-demo/textview.c (do_textview): 
6462         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
6463         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
6464         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
6465         * demos/gtk-demo/panes.c (do_panes): 
6466         * demos/gtk-demo/menus.c (do_menus): 
6467         * demos/gtk-demo/list_store.c (do_list_store): 
6468         * demos/gtk-demo/images.c (do_images): 
6469         * demos/gtk-demo/hypertext.c (do_hypertext): 
6470         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
6471         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
6472         * demos/gtk-demo/dialog.c (do_dialog): 
6473         * demos/gtk-demo/colorsel.c (do_colorsel): 
6474         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
6475         * demos/gtk-demo/button_box.c (do_button_box): 
6476         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
6477         as argument, and make new windows or dialogs appear on the
6478         same screen.  (#80388)
6479
6480 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
6481
6482         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
6483         visible-window default to TRUE, as documented and 
6484         implemented. (#126270 Damon Chaplin)
6485
6486 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
6487
6488         * gtk/gtkicontheme.c: 
6489         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
6490         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
6491         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
6492         2.4 additions.
6493
6494 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
6495
6496         Changing GtkFileChooserEntry to use GtkEntryCompletion.
6497
6498         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
6499         a GtkListStore for the completion list.  Create a
6500         GtkEntryCompletion and attach it to the chooser entry.
6501         (gtk_file_chooser_entry_finalize): Unref the completion store.
6502         (completion_match_func): New callback for the GtkEntryCompletion.
6503         (completion_idle_callback): Fill the completion store with filenames.
6504
6505 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
6506
6507         * gtk/gtkwindow.c (gtk_window_set_role): 
6508         * gtk/gtkwindow.c (gtk_window_set_title): 
6509         * gtk/gtkwidget.c (gtk_widget_set_name): 
6510         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
6511         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
6512         safe for self-assignment.  (#122745, Soeren Sandmann)
6513
6514 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
6515
6516         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
6517         (#126369, Olexiy Avramchenko)
6518
6519 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
6520
6521         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
6522         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
6523         consistency of titles.  (#126193, Damon Chaplin)
6524
6525 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
6526
6527         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
6528         menus to be transient for the toplevel they were torn off from.
6529         (gtk_menu_get_toplevel): Auxiliary function to find the
6530         toplevel of a menu.  (#54775, Jon-Kare Hellan)
6531
6532 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
6533
6534         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
6535         min-position and max-position.  (#58431, Padraig O'Briain)
6536
6537 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
6538
6539         * gtk/gtkcolorsel.c (update_color): 
6540         (make_label_spinbutton): 
6541         (adjustment_changed): Change the ranges for Saturation and
6542         Value to be 0-100 instead of 0-255, since these axes of HSV
6543         are usually expressed in percent.  (#121519, Gregory Merchan)
6544
6545 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
6546
6547         * docs/faq/gtk-faq.sgml: More 2.x updates
6548
6549 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
6550
6551         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
6552         pkg-config command error, update copyright.
6553
6554 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6555
6556         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
6557         well.  Use a helper function.
6558         (shortcuts_append_home): Display an error box if necessary.
6559         (shortcuts_append_desktop): Likewise.
6560         (add_bookmark_button_clicked_cb): Likewise.
6561         (gtk_file_chooser_default_select_path): Likewise.
6562         (entry_activate): Likewise.
6563         (shortcuts_append_paths): New helper function.
6564         (shortcuts_append_file_system_roots): Use
6565         shortcuts_append_paths().
6566         (shortcuts_append_bookmarks): Likewise.
6567
6568 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
6569
6570         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
6571         menu is NULL.
6572         (update_smart_separators): Remove some unneeded ifs.
6573
6574 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
6575
6576         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6577         these usable in C++. Forgot this file in my Oct 11 commit.
6578
6579 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6580
6581         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
6582         icon to the "Add bookmark" button.
6583
6584         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
6585         * gtk/gtkfilesystemmodel.c: Likewise.
6586         * gtk/gtkfilechooser.c: Likewise.
6587         * gtk/gtkfilechooserdefault.c: Likewise.
6588
6589 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
6590
6591         * gdk/gdk.c: 
6592         * gdk/gdkinternals.h: 
6593         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
6594         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
6595         Xinerama mode when no actual Xinerama setup is found. 
6596
6597 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6598
6599         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
6600         (create_shortcuts_tree): Don't call the above.
6601         (bookmarks_changed_cb): Likewise.
6602         (tree_selection_changed): Unselect everything from the shortcuts
6603         list.  This is the behavior that Mac OS has.
6604         (toolbar_add_item): Return the item.
6605         (toolbar_create): Store the up_button in the impl structure.
6606         (toolbar_check_sensitivity): New function to set the sensitivity
6607         of the "Up" button in the toolbar.
6608         (tree_selection_changed): Call toolbar_check_sensitivity().
6609
6610 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
6611
6612         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
6613         not set a border width for the toplevel container.
6614         (toolbar_create): New function; create a simple toolbar for the
6615         file chooser.
6616         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
6617         the table, as per the HIG.
6618         (gtk_file_chooser_default_init): Likewise, for the default
6619         implementation's vbox.
6620
6621         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
6622         note that NULL is a valid return value for the parent path.
6623
6624 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6625
6626         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
6627         Change on activation, not selection change (temporary
6628         workaround for #125955, needed for keynav, likely
6629         the right UI anyways.)
6630
6631         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
6632         Don't allow the separator node to be selected.
6633
6634         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6635         Set the focus chain so that the entry gets focused first.
6636         (Not really right after initial focusing, maybe we
6637         should just have a gtk_file_chooser_focus_entry() that
6638         we call from gtk_file_chooser_dialog on creation.)
6639
6640 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
6641
6642         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6643         residual call to gtk_window_get_private().
6644
6645 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
6646
6647         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6648         into GtkWindowPrivate structure, fixing ABI breakage
6649         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6650         to instance-private-data.
6651
6652 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6653
6654         * gtk/gtktoolbar.c (get_item_requisition): delete this function
6655         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6656         instead of re-calculating for each item.
6657         (gtk_toolbar_size_allocate): Update comments
6658
6659 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6660
6661         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6662         placeholders when include_internals is TRUE.
6663
6664 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6665
6666         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6667         item 0 is a placeholder. (#125826)
6668         * tests/testtoolbar.c: add an assertion that 
6669         gtk_toolbar_get_nth_item (0) != NULL
6670
6671 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6672
6673         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6674         logical == 0.(#125826)
6675
6676 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6677
6678         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6679         return the index of a real item.
6680         (get_nth_item) assert that the returned items is not a
6681         placeholder.  (#125826, Marco Pesenti Gritti).
6682         
6683 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
6684
6685         * gtk/gtkcellrendererseptext.c
6686         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6687         text is NULL, rather than also doing it if it is an empty string.
6688
6689 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
6690
6691         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6692         gtk_message_dialog_new_with_format): Allow NULL
6693         for message_format, as described in the docs and
6694         as worked previously. (#125759, Richard Hult)
6695
6696         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6697         Use g_markup_vprintf_escaped() to escape arguments.
6698
6699         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6700         so there is some way to set literal markup.
6701
6702 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
6703  
6704         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6705         the call to gdk_error_trap_pop() to the right place,
6706         fixing a problem where we'd pop() too many times 
6707         when bailing out. (#123302, Thomas Leonard)
6708         
6709 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
6710
6711         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
6712         Fix infinite recursion. (#125679, Christian Persch)
6713
6714 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
6715
6716         * docs/faq/gtk-faq.sgml: further 2.x updates:
6717         mirrors,compiling,g_main_context_iteration
6718
6719 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6720
6721         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6722         function; remove gtk_toolbar_highlight_drop_location() and
6723         gtk_toolbar_unhighlight_drop_location().
6724
6725         Also fix bug where the number of overflowed items were miscounted.
6726
6727 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
6728
6729         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6730         some accidentally committed duplicate code.
6731
6732 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
6733
6734         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6735
6736 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
6737
6738         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
6739         gtk_has_toplevel_focus): Add getters corresponding to
6740         the is_active and has_toplevel_focus properties.
6741         (#122531)
6742
6743 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
6744
6745         * gtk/gtkexpander.c:
6746         (gtk_expander_class_init): hook up the destroy handler.
6747         (gtk_expander_destroy), (gtk_expander_unrealize):
6748         remove the expand/collapse timeout on destroy instead
6749         of unrealize to avoid leaving the expander in a inconsistent
6750         state when unrealizing during animation.
6751         (gtk_expander_start_animation): remove realized check.
6752         (gtk_expander_set_expanded): if the widget isn't realized,
6753         expand immediately.
6754
6755 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
6756
6757         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6758         do nothing when recipient is NULL, as described in the
6759         doc comment. (#123107, Thomas Leonard)
6760
6761 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
6762
6763         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6764         rewrite docs, mention memory management for the return
6765         value. (Partly addresses #125549, Michael Natterer)
6766
6767 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
6768
6769         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6770         Change index to filter_index to fix compilation error.
6771
6772         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6773
6774 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
6775
6776         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6777         we have RandR support, for XRRUpdateConfiguration declaration.
6778
6779         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6780         declaration.
6781
6782         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6783         length a gsize variable, since that's what g_file_get_contents()
6784         expects.
6785
6786 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
6787
6788         * NEWS: Fix attribution for above/below EWMH work.
6789
6790 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
6791
6792         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
6793         as a construct-only property.  (#125475, Murray Cumming)
6794
6795 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6796
6797         Fix bug 116297 and 125472
6798         
6799         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6800         this function take an index and a GtkToolItem.
6801
6802         * tests/testtoolbar.c (main): Make "Show Arrow" default to
6803         true. Make one of the separators !draw and expand.
6804         Update for new highlight_drop_location() API.
6805
6806         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6807
6808         * gtk/gtktoolbar.h: Formatting fixes.
6809
6810         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6811         separator tool items to expand.
6812         (logical_to_physical, physical_to_logical): Fix off-by-one errors
6813         (Fix #125472, Marco Pesenti Gritti)
6814
6815         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6816         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6817         return FALSE, not TRUE.
6818         (gtk_separator_too_item_{set|get}_property,
6819         (gtk_separator_tool_item_{set|get}_draw): new functions
6820
6821 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
6822
6823         * === Released 2.3.0 ===
6824
6825         * configure.in: Remove a stray comma.
6826
6827         * README.in: Fix a few notes about Xft 1 and pango-1.0.
6828
6829         * NEWS: Finish updates for 2.3.0.
6830
6831         * po/Makefile.in.in: Update to latest GLib version.
6832
6833 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
6834
6835         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6836         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6837         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6838         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6839         Sandmann).
6840
6841 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
6842
6843         * gtk/gtktreemodelfilter.h: add padding to the class structure.
6844
6845 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
6846
6847         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6848         (gtk_file_chooser_remove_filter): Likewise.
6849         (gtk_file_chooser_select_all): Added docs.
6850         (gtk_file_chooser_unselect_all): Likewise.
6851
6852         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6853
6854         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6855
6856 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
6857
6858         * gtk/gtkfilefilter.c: 
6859         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6860
6861 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
6862
6863         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6864
6865 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
6866
6867         * NEWS: Remove a few duplicates, group the menu changes.
6868
6869 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
6870
6871         * NEWS: Updates for 2.3.0; changed header to match the style we used
6872         for 2.1.0.
6873
6874 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
6875
6876         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6877         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
6878
6879 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
6880
6881         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6882         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6883         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6884
6885 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6886
6887         * NEWS: Partial update for 2.3.0.
6888
6889 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
6890
6891         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6892         GtkComboBox.
6893
6894 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
6895
6896         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
6897         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6898         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6899         Basic framework for the new file selector widget.
6900
6901         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
6902         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6903         Initial implementation of the GtkFileChooser user interface.
6904
6905         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6906         for Unix files.
6907
6908         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6909         for freedesktop.org MIME system on Unix.
6910
6911         * tests/testfilechooser.c: Test program for GtkFileChooser
6912
6913         * tests/prop-editor.c: Add support for properties on interfaces.
6914
6915 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6916
6917         * demos/gtk-demo/menus.c (do_menus): Fix some unused
6918         variables.
6919
6920         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6921         variable warning.
6922
6923 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
6924
6925         * NEWS: Partial update for 2.3.0.
6926
6927 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
6928
6929         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6930         ctrl_pressed and shift_pressed according to the current event
6931         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6932
6933 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
6934
6935         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6936         timeout when the user pressed on Enter/ESC. Fixes the bug where the
6937         completion popup popped up after the user pressed on Enter (which is
6938         just weird). Reported by the Epiphany people (all of them).
6939
6940 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6941
6942         Add support for OS X like sliding of toolbar items during drag and
6943         drop, (#110919, Dave Bordoley)
6944
6945         Make dnd highlighting the responsibility of the
6946         application. (Fixes #116298, Owen Taylor)
6947
6948         * gtk/gtktoolbar.h: Add prototypes for new API.
6949         
6950         * gtk/gtktoolbar.c
6951         (physical_to_logical, logical_to_physical): new functions
6952         converting between "position including placeholders" and "position
6953         excluding placeholders".
6954         (gtk_toolbar_class_init): remove drag_leave and drag_motion
6955         handlers
6956         (struct _ToolbarContent): new struct containing information
6957         related to toolbar items.
6958         (gtk_toolbar_highlight_drop_location): new public function
6959         (gtk_toolbar_unhighlight_drop_location): new public function
6960         
6961         * tests/testtoolbar.c
6962         (toolbar_drag_motion, toolbar_drag_leave): new functions
6963         (main): connect to dnd signals.  Make the "New" item expand to
6964         make drag and drop more exciting.
6965
6966 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
6967
6968         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6969         _set_active, not _set_active_item.
6970
6971 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
6972
6973         * gtk/gtkcombobox.h: add padding to the class structure.
6974         * gtk/gtkcomboboxentry.h: ditto.
6975         * gtk/gtkentrycompletion.h: ditto.
6976
6977 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
6978
6979         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6980         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6981         value and what it means.
6982
6983         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6984         item to -1 (default),
6985         (gtk_combo_box_entry_active_changed): do nothing when the index is
6986         < 0.
6987
6988 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
6989
6990         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
6991         to set the active row by iter.
6992
6993         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
6994         to get the active row by iter.
6995
6996 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
6997
6998         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
6999         operations on windows if the tree view is not mapped.
7000         (gtk_tree_view_button_press): Compare equal types of pointers, not
7001         GtkWidget* vs. GtkTreeView*.
7002
7003 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
7004
7005         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
7006         the reset of first_sel_changed, as after the first popup the treeview
7007         will always have a row selected and will thus not focus_to_cursor.
7008
7009         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
7010         whether the keyval should move the completion selection cursor (used
7011         to avoid ending up with extreme cluttered code), also added
7012         all KP_ equivalents of the keys here,
7013         (gtk_entry_completion_key_press): Keynav tweaks based on comments
7014         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
7015         as possible current selection, implement Home/End keys, modified
7016         the down key to stop cycling. Maybe page up/down should be implemented
7017         at some later time.
7018
7019 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
7020
7021         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
7022         as documented when pixmap or mask is NULL.  (#124081) 
7023
7024 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
7025
7026         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
7027         I was adding the signal block/unblock code. Oops. (Noticed by
7028         Marco Pesenti Gritti).
7029
7030 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
7031
7032         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
7033         (set_interp_type), (main): port over from option menu to GtkComboBox.
7034
7035 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
7036
7037         * tests/testmenus.c: Still uses option menus, so turn off
7038         GTK_DISABLE_DEPRECATED.
7039
7040 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
7041
7042         * gtk/gtkalignment.[hc]: 
7043         * gtk/gtkcombobox.[hc]: 
7044         * gtk/gtkcomboboxentry.[hc]: 
7045         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
7046         from header to implementation.
7047
7048 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
7049
7050         * tests/testtreeview.c: 
7051         * demos/testpixbuf-scale.c: 
7052         * tests/prop-editor.c: These files still use option menus,
7053         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
7054
7055 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
7056
7057         * gtk/gtkactiongroup.h: 
7058         * gtk/gtkaction.h: 
7059         * gtk/gtkradioaction.h: 
7060         * gtk/gtkradiotoolbutton.h: 
7061         * gtk/gtkseparatortoolitem.h: 
7062         * gtk/gtktoggleaction.h: 
7063         * gtk/gtktoolitem.h: 
7064         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
7065         these usable in C++.  (#124351, Murray Cumming)
7066
7067 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
7068
7069         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
7070         non-NULL before accessing it. Oops.
7071
7072 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
7073
7074         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
7075         (gtk_entry_completion_insert_action_text),
7076         (gtk_entry_completion_insert_action_markup): the gchar* parameters
7077         should be const (pointed out by both Marco Pesenti Gritti and
7078         Murray Cumming (#124356).
7079
7080 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
7081
7082         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
7083         child list mode, allocate the height allocation->height to the
7084         button instead of the height requested by the button. (Tiny
7085         size allocation screwup noticed by Macro Pesenti Gritti).
7086
7087 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
7088
7089         Fixes based on comments from Marco Pesenti Gritti.
7090
7091         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
7092         signal handler, avoids the completion popup to popup when text is
7093         set programmatically in most cases (we actually have to handle this
7094         in the _editable functions as well, but that will break popping up
7095         when the user actually typed something :),
7096         (gtk_entry_completion_key_press): when handling enter, bail out
7097         when nothing has been selected,
7098         (gtk_entry_completion_changed): don't popdown when the entry content
7099         changed.
7100
7101         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
7102         (gtk_entry_completion_selected_changed): unselect_all on the
7103         first selected changed signal. Avoids having a default row selected,
7104         (_gtk_entry_completion_popup): don't select the first row by default.
7105
7106         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
7107         first_sel_changed field.
7108
7109 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
7110
7111         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
7112         in the intro (again).
7113
7114 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
7115
7116         Fixes for (#124212, Marco Pesenti Gritti):
7117         
7118         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
7119         warnings for popups.
7120         (_gtk_menu_is_empty): Return FALSE for non-menus.
7121
7122 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
7123
7124         * gtk/gtkcombo.h: Deprecate.
7125         * gtk/gtkoptionmenu.h: Ditto.
7126
7127         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
7128         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
7129         needs some work on requesting enough size when taking the items in
7130         the list into account.
7131
7132         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
7133         deprecated" guards.
7134         * gtk/gtkinputdialog.c: ditto.
7135         * gtk/gtkitemfactory.c: ditto.
7136         * gtk/gtkoptionmenu.c: ditto.
7137
7138         * demos/gtk-demo/menus.c: remove the option menu.
7139         * demos/gtk-demo/sizegroup.c: replace the option menus with
7140         GtkComboBox.
7141         * demos/gtk-demo/textview.c: ditto.
7142         (A general GtkComboBox demo will be added later on).
7143
7144 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
7145
7146         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
7147         callback to propertly report radio actions.
7148
7149         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
7150
7151 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
7152
7153         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
7154         version in in the right field of the _XEMBED_INFO property.  
7155         (#123885, Denis Mikhalkin)
7156
7157 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
7158
7159         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
7160         the child if we have one.
7161
7162         (gtk_expander_button_release): use
7163         gtk_widget_activate instead.
7164
7165 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
7166
7167         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
7168         "right_attach" with a capital.  (#123945, Christian Rose)
7169
7170 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
7171
7172         * tests/testsocket.c (child_read_watch): Remove an
7173         extraneous unref.  (#122336, Frederic Crozat)
7174
7175 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
7176
7177         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
7178         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
7179
7180 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7181
7182         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
7183         focus arrow before pack_end items (#123851, Matthias Clasen)
7184
7185 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
7186
7187         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
7188         on ->priv->cell_view if ->priv->cell_view is non-NULL.
7189
7190         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
7191         field to GtkComboBoxEntryPrivate,
7192         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
7193         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
7194         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
7195         a construct-only "text_column" property and reorder code to use it
7196         and support inheriting this widget.
7197
7198 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
7199
7200         * gtk/gtkcombobox.c: Added API doc comments.
7201
7202         * gtk/gtkcomboboxentry.c: Ditto.
7203
7204 2003-10-02  Matthias Clasen  <maclas@gmx.de>
7205
7206         * gtk/gtktoggleaction.c: Documentation tweaks.
7207
7208 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
7209
7210         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
7211         packing/attribute/cell data functions from the header,
7212         (gtk_cell_view_set_cell_data): added support for cell data funcs.
7213
7214         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
7215         packing/attribute/cell data functions from the header, implemented
7216         cell data func support.
7217
7218         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
7219         for the move to GtkCellLayout.
7220
7221         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
7222
7223 2003-10-01  Matthias Clasen  <maclas@gmx.de>
7224
7225         * gtk/gtkaction.c (gtk_action_class_init): 
7226         (gtk_action_[gs]et_property): Introduce a separate
7227         "hide_if_empty" property for empty menu handling.
7228         (_gtk_action_sync_menu_visible): ...and use it here.
7229
7230         * tests/testmerge.c (main): ...and here.
7231
7232         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
7233         comments to pacify gtk-doc.
7234
7235         * gtk/gtkmain.c: Doc formatting tweaks.
7236
7237         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
7238
7239         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
7240         Use the same parameter names as in .c file, to pacify gtk-doc.
7241
7242         * gtk/gtktoggletoolbutton.[hc]: 
7243         * gtk/gtktoolbutton.[hc]: 
7244         * gtk/gtktoolitem.[hc]:
7245         * gtk/gtktoolbar.[hc]: 
7246         * gtk/gtkcolorbutton.[hc]: 
7247         * gtk/gtkfontbutton.[hc]: 
7248         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
7249         source, not in the header.
7250
7251         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
7252         Document these as 2.4 API additions.
7253
7254 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
7255
7256         * gtk/gtkentry.c (gtk_entry_set_completion),
7257         (gtk_entry_get_completion): Add API doc comments.
7258
7259         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
7260
7261 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
7262
7263         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
7264
7265 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
7266
7267         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
7268
7269         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
7270
7271 2003-09-30  Matthias Clasen  <maclas@gmx.de>
7272
7273         * tests/merge-*.ui: 
7274         * tests/testmerge.c: Test handling of empty menus.
7275
7276         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
7277         whether a menu is empty. Used in gtkaction.c.
7278         (update_smart_separators): Also update the visibility of empty menus.
7279         (update_node): When creating a new menu proxy, insert an "Empty" menu 
7280         item which only gets shown if the menu is empty. 
7281
7282         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
7283         "is_important" for menu proxies.
7284         (_gtk_action_sync_menu_visible): New function to sync the visibility
7285         of menu proxies. Used in gtkuimanager.c.
7286         (gtk_action_sync_visible): New function to sync the visibility of 
7287         proxies.
7288
7289 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
7290
7291         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
7292         popup_in_progress to TRUE,
7293         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
7294         won't disappear on the first button release. (Reported by Matthias
7295         Clasen).
7296
7297 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
7298
7299         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
7300
7301         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
7302         Marco Pesenti Gritti).
7303
7304 2003-09-30  Murray Cumming  <murrayc@usa.net>
7305  
7306         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
7307         instead of a GdkWindow*, because that what it is given. The 
7308         documentation was already correct. This should cause no API/ABI
7309         breakage with C compilers.
7310         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
7311         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
7312         implementation accordingly.
7313
7314 2003-09-30  Matthias Clasen  <maclas@gmx.de>
7315
7316         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
7317         "direction-changed" and "keys-changed" signals.
7318
7319         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
7320         "size-changed" signal.
7321
7322         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
7323         Document the "display-opened" signal.
7324
7325         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
7326         (gdk_display_class_init): Document the "closed" signal.
7327
7328 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7329
7330         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
7331         accepts_tab. (#122709 again).
7332
7333 2003-09-27  Matthias Clasen  <maclas@gmx.de>
7334
7335         * gtk/gtkwindow.c (gtk_window_new):
7336         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
7337         the fact that the newly created object does not come with 
7338         a floating reference.  (#103068, patch by Frederic Lespez)
7339         
7340         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
7341         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
7342         since GtkActionGroup uses it.
7343
7344         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
7345         this test uses the soon-to-be-deprecated GtkItemFactory.
7346
7347         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
7348         remove item_factory.c
7349
7350         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
7351         using GtkUIManager instead of GtkItemFactory.
7352
7353         * tests/testmerge.c: Demonstrate the use of the 
7354         connect-proxy signal.
7355
7356         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
7357         disconnect-proxy signals to do small customizations 
7358         like displaying tooltips in the statusbar without 
7359         custom actions.  (#122894, Philip Langdale)
7360
7361         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
7362
7363 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
7364
7365         Landing the new ComboBox. Note that only gtkcombobox.h and
7366         gtkcomboboxentry.h are public.
7367
7368         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
7369         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
7370
7371         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
7372
7373         * tests/testcombo.c: and a new test.
7374
7375         * tests/Makefile.am: adding the new test.
7376
7377 2003-09-25  Tor Lillqvist  <tml@iki.fi>
7378
7379         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
7380
7381 2003-09-21  Tor Lillqvist  <tml@iki.fi>
7382
7383         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
7384         function. Code split out from gdk_event_translate(). Needed
7385         because gdk_event_get_graphics_expose() couldn't do anything
7386         sensible otherwise. (Not that I think graphics exposes work anyway
7387         in gdk/win32, but at least now the code could work.)
7388
7389         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
7390         gdk_event_translate(), which couldn't have worked as it doesn't
7391         take any pre-allocated GdkEvent parameter any longer.
7392         
7393         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
7394         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
7395
7396 2003-09-24  Matthias Clasen  <maclas@gmx.de>
7397
7398         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
7399         on toolitems.
7400
7401         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
7402
7403         * gtk/gtkuimanager.c (update_node): Don't complain about missing
7404         actions on popups. Re-set "tooltip" property on toolitems after
7405         adding them to parent to trigger proxy update.
7406
7407 2003-09-22  Matthias Clasen  <maclas@gmx.de>
7408
7409         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
7410         group member to test the fix for #122904.
7411
7412         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7413         Add the action to the group before activating it, otherwise we
7414         may end up with multiple active group members.  (#122904, Marco
7415         Pesenti Gritti)
7416
7417 2003-09-21  Matthias Clasen  <maclas@gmx.de>
7418
7419         Changes to make cross-process merging feasible:
7420         
7421         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
7422         merged UI definition. Remove the "changed" signal, since its role
7423         is now filled by "notify::ui". Instead add a "actions-changed" signal
7424         which gets emitted when the set of actions changes.
7425
7426         * gtk/gtktoggleactionprivate.h:
7427         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
7428         Add a "draw_as_radio" property to toggle actions so that they can be
7429         used as proxies for radio actions much like the "draw_as_radio" 
7430         property on check menu items enables them to operate as proxies for
7431         radio actions.
7432
7433         Prevent the "show_all" trap for action-based menus (see
7434         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
7435         msg00260.html):
7436
7437         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
7438         calls from static functions.
7439
7440         * gtk/gtkuimanager.c (update_node): 
7441         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
7442         widgets whose visibility is externally controlled.
7443
7444         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
7445         "no_show_all" property with setter and getter. When TRUE, it keeps
7446         gtk_widget_{hide,show}_all() from modifying the visibility of the 
7447         widget and its children.
7448
7449 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7450
7451         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
7452
7453 2003-09-20  Tor Lillqvist  <tml@iki.fi>
7454
7455         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
7456         including editor backup files. List files we want explicitly.
7457
7458         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
7459         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
7460         LC_ALL, LC_CTYPE and LANG environment variables, than calls
7461         g_win32_getlocale().
7462
7463         (gtk_get_default_language): Code snippet moved to above function,
7464         call it.
7465
7466         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
7467         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
7468         _gtk_get_lc_ctype() instead of setlocale().
7469
7470 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7471
7472         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
7473         (#96632)
7474
7475 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7476
7477         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
7478         documentation. (#117306, Steve Chaplin)
7479
7480 2003-09-19  Tor Lillqvist  <tml@iki.fi>
7481
7482         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
7483         present on the US-International keyboard. For clarity, order
7484         keysyms in case statement according to numeric value.
7485
7486         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
7487         correctly. (#120176, Ken Rastatter and Owen Taylor)
7488
7489 2003-09-18  Matthias Clasen  <maclas@gmx.de>
7490
7491         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
7492         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
7493
7494         Install accelerators on actions, not on proxies, support
7495         accelerator-only actions:
7496         
7497         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
7498         and its lock status either via _gtk_widget_get_accel_path() or by 
7499         looking at the accel_path stored in the menu item itself and determining
7500         its lock status by peeking into the contained accel label. This was
7501         already (accidentally) committed a week ago.
7502
7503         * gtk/gtkaction.h (gtk_action_set_accel_group):
7504         (gtk_action_[dis]connect_accelerator): New functions.
7505
7506         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
7507         accel_closure and accel_count. We must have a reference to the 
7508         accel_group, since we need it in connect_proxy. The count is necessary
7509         to ensure that the accelerator isn't removed before the last proxy 
7510         requesting it has been unmerged.
7511         (connect_proxy): Connect the accelerator to the 
7512         action now, only set the accel_path on the menuitem.
7513         (remove_proxy): Disconnect the accelerator from the action, not from
7514         the menuitem.
7515         (gtk_action_set_accel_group): Set the accel group. 
7516         (gtk_action_[dis]connect_accelerator): Count the number of times
7517         this functions have been called and install/remove the accelerator if
7518         the count leaves/reaches zero.
7519
7520         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
7521         GTK_UI_MANAGER_ACCELERATOR.
7522
7523         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
7524         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
7525         <accelerator> elements.
7526         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
7527         type is GTK_UI_MANAGER_ACCELERATOR.
7528         (update_node): Set the accel group on actions before creating their
7529         proxies. Don't set the accel group on created menus. For 
7530         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
7531         (print_node): Also emit <accelerator> elements.
7532
7533         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
7534
7535         * gtk/gtkuimanager.c (update_node): Robustness improvements.
7536
7537 2003-09-17  Matthias Clasen  <maclas@gmx.de>
7538
7539         * gtk/gtkuimanager.c (text_handler): Report unexpected character
7540         data as error from the GMarkup parser, otherwise things like
7541         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
7542         pass unexpectedly.
7543
7544 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7545
7546         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
7547         committed redraw_on_allocate change.
7548
7549 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
7550
7551         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
7552         stubs to fix compilation
7553
7554         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
7555         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
7556
7557         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
7558         variable. Patch from Marc Welz (#121347).
7559
7560 2003-09-16  Matthias Clasen  <maclas@gmx.de>
7561
7562         * gtk/gtkaction.h: Apply egtk-format-protos.
7563
7564 2003-09-15  Matthias Clasen  <maclas@gmx.de>
7565
7566         * gtk/gtkuimanager.c: Doc tweaks.
7567
7568         Smart separators; see 
7569         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
7570         
7571         * gtk/gtkuimanager.c (update_smart_separators): New function which 
7572         implements "smart" separators by iterating once over the entries of a 
7573         menu, hiding and showing separators as necessary.
7574         (update_node): Mark separators used as fences of placeholders as
7575         hidden. Explicitly added separators are marked as smart. Call 
7576         update_smart_separators after updating a menu or toolbar node. 
7577         Connect update_smart_separators to "notify::visible" signal on menu
7578         and tool items.
7579         
7580         * tests/merge-[12].ui: Test smart separators.
7581
7582         Changes to allow setting action state before connecting signal; see
7583         the thread starting at 
7584         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
7585         
7586         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
7587         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
7588         setting the currently selected group member before connecting signals.
7589         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
7590         including a boolean to initialize the action state before connecting
7591         signals.
7592         (gtk_action_group_add_toggle_actions):
7593         (gtk_action_group_add_toggle_actions_full): New functions to construct
7594         toggle actions from an array of GtkToggleActionEntries.
7595
7596         * demos/gtk-demo/appwindow.c: 
7597         * tests/testactions.c: 
7598         * tests/testmerge.c: Adjust to new action group API.
7599
7600 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7601
7602         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
7603         "gtk-toolbar-arrow" so themes can special-case it.
7604
7605 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7606
7607         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
7608
7609 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7610
7611         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
7612         PangoFontMetrics. Patch from Steve Chaplin (#122257).
7613
7614 2003-09-14  Tor Lillqvist  <tml@iki.fi>
7615
7616         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
7617         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
7618         the usefulness of which was already in doubt. Removing it fixes
7619         bugs #118575 and #121851.
7620
7621 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
7622
7623         Merge from stable.
7624
7625         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7626         pressed button (used to determine if we want to initiate a drag later
7627         on) if the current grab widget is either NULL or tree_view (Reported
7628         by Jeroen Zwartepoorte).
7629
7630 2003-09-12  Matthias Clasen  <maclas@gmx.de>
7631
7632         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
7633         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
7634
7635 2003-09-11  Matthias Clasen  <maclas@gmx.de>
7636
7637         * gdk/gdkpango.c: Doc tweaks.
7638
7639         * tests/testgtk.c: Add table menu tests.
7640
7641         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
7642         GtkMenuPrivate struct itself. Pointed out by valgrind.
7643
7644         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
7645         properly.  (#121998)
7646
7647 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
7648
7649         The table menu patch! Turns GtkMenu into a table, so you can attach
7650         menu items in numerous new ways! Be creative!
7651
7652         Contains some bug fixes and RTL adaptions from Matthias Clasen.
7653
7654         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7655         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7656         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7657         the heights array in the private struct,
7658         (gtk_menu_class_init): reorder code a bit, install child properties,
7659         (get_attach_info), (get_child_attach): new utility functions,
7660         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7661         child properties, for the attach info,
7662         (gtk_menu_remove): remove AttachInfo from menu item,
7663         (gtk_menu_real_insert): implemented algorithm to automagically place
7664         inserted menu items at the correct place in the table,
7665         (gtk_menu_size_request), (gtk_menu_size_allocate),
7666         (compute_child_offset): reworked/rewritten to support table menus,
7667         (gtk_menu_attach): new function,
7668         (find_child_containing), (gtk_menu_move_current): new functions to
7669         get table menu keynav right.
7670
7671         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7672
7673 2003-09-10  Matthias Clasen  <maclas@gmx.de>
7674
7675         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
7676         PropertyNotify events from the stream if they have been handled,
7677         in order to enable extending the plug<->socket communication via
7678         properties.
7679
7680 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
7681
7682         Big TreeView DnD fixage, makes drops on empty models work, makes
7683         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7684         Related bugs #95362 and #113314. I don't want to touch this code
7685         ever again.
7686
7687         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7688
7689         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7690         for selection_data->length.
7691
7692         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7693         (set_dest_row), (get_dest_row): we don't store just the row ref
7694         anymore, but a struct with the row ref and additional info,
7695         (set_destination_row): handle drops on empty space and some
7696         style fixes,
7697         (get_logical_dest_row): also return path_down_mode/drop_append_mode
7698         flags, handle dropping childs on their new parents, rewrite
7699         drop append handling into something saner,
7700         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7701         spaces,
7702         (gtk_tree_view_drag_drop): updates for updated backend,
7703         (gtk_tree_view_drag_data_received): updates for updated backend,
7704         path down mode (treestore DnD) handling,
7705         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7706         when we are trying to drop a row on an empty model,
7707         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7708
7709         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7710         (gtk_list_store_row_drop_possible): style and drop-append fixes.
7711
7712         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7713
7714 2003-09-08  Alexander Larsson  <alexl@redhat.com>
7715
7716         * gtk/gtkeventbox.[hc]:
7717         Implement gtk_event_box_get/set_input_only()
7718         
7719         * tests/testgtk.c:
7720         Tests for the new input only event boxes
7721
7722 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
7723
7724         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7725
7726         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7727         the call to gtk_tree_model_filter_add_root,
7728         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7729         the virtual root, allow building levels on the second try to convert
7730         the child path to a filter path,
7731         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7732         root when calling gtk_tree_model_filter_elt_get_path.
7733
7734 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7735
7736         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
7737         Josh Beam)
7738
7739         Fixes for accelerator handling during (un)merging:
7740         
7741         * gtk/gtkuimanager.c (update_node): Move setting info-action
7742         after the switch, since the old action is needed in some cases.
7743         In cases of proxy type mismatch, disconnect the old proxy from
7744         the old action.
7745
7746         * gtk/gtkaction.c (remove_proxy): Renamed from 
7747         gtk_action_remove_proxy(). Move unsetting of the accelerator
7748         here from disconnect_proxy() in order to catch all cases of 
7749         removing a proxy.
7750         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7751         to fail if proxy isn't a proxy of action.
7752
7753 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
7754
7755         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7756         ALL_LINGUAS
7757
7758 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7759
7760         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7761         for toolitems.
7762
7763 2003-09-06  Matthias Clasen  <maclas@gmx.de>
7764
7765         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
7766         prev_action, not from action.  (Fix by David Hampton)
7767
7768 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
7769  
7770         * Back out locale-dependent interpretation of
7771         KP_Decimal, the official XFree86 interpretation
7772         is that KP_Decimal => . KP_Separator => ,
7773         always, independent of locale. 
7774         (#105161, Frederic Crozat, 
7775         http://bugs.xfree86.org/show_bug.cgi?id=534)
7776  
7777 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7778
7779         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7780
7781         * gtk/gtktoggleaction.c (connect_proxy): 
7782         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
7783         that a "draw_as_radio" property is needed for check buttons similar to 
7784         check menu items, in order to fully support button proxies for radio actions.
7785
7786         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7787
7788         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
7789
7790         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7791         'type' argument of gtk_ui_manager_add_ui().
7792
7793         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7794         to make this function as powerful as the XML methods of adding UI.  (#120647)
7795
7796 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
7797
7798         Merge from stable.
7799
7800         * docs/RELEASE-HOWTO: updates.
7801
7802 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7803
7804         * tests/merge-2.ui: Use "position" instead of "pos".
7805
7806         * gtk/gtkuimanager.c (start_element_handler): No need 
7807         to be terse: Change the name of the "pos" attribute
7808         to "position".
7809
7810 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7811
7812         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
7813         GtkUIManagerNode to shorten the names and to make the
7814         GTK_UI_MANAGER_<TYPE> names available for a public enum.
7815
7816         * gtk/gtkactiongroup.c:
7817         * gtk/gtkuimanager.c: Various doc tweaks.       
7818
7819         * gtk/gtkuimanager.c (start_element_handler):
7820         (end_element_handler): Improve error reporting. 
7821
7822 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
7823
7824         Merge from stable.
7825
7826         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7827         use end_position - page_size instead of G_MAXINT, since
7828         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7829         reported by Havoc Pennington).
7830
7831 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
7832
7833         Merge from stable.
7834
7835         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7836         unref it. (Fixes memleak, patch from Kjartan Maraas).
7837
7838 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
7839
7840         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7841         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7842         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7843         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7844         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7845         gtk/gtktypeutils.h: big patch from Kjartan Maraas
7846         to fix numerous typos.
7847
7848 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
7849
7850         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7851
7852 2003-09-02  Tor Lillqvist  <tml@iki.fi>
7853
7854         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7855         CloseHandle() on the HMODULE returned from GetModuleHandle().
7856         Didn't cause any harm, but didn't do anything useful either. When
7857         running a GTK+ program under MS's debugger, the CloseHandle() call
7858         would cause a "first-chance exception" in ntdll.dll to show up.
7859         (The exception is caught appropriately if you let it proceed, but
7860         it confuses the person using the debugger). Thanks to Bruce
7861         Hochstetler for noticing.
7862
7863 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
7864
7865         Merge from stable.
7866
7867         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7868         to only select when button 1 is pressed introduced in the fix of
7869         bug #120187.
7870
7871 2003-09-02  Matthias Clasen  <maclas@gmx.de>
7872
7873         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7874
7875         * gtk/gtkuimanager.c: Shorten the names of some static 
7876         functions.
7877
7878         Support adding and removing merge nodes dynamically (#120647, 
7879         Anders Carlsson):
7880         
7881         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
7882         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
7883         and made it public.
7884         (gtk_ui_manager_add_ui): New function to add UI elements
7885         without juggling XML fragments, currently restricted to menuitems,
7886         toolitems and separators. Actions still come from registered 
7887         action groups.
7888
7889 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7890
7891         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7892         background pixmap was being offset twice, once by the ts_origin in
7893         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7894
7895 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7896
7897         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7898         this public again, since it's occasionally useful.  (#121128,
7899         Marco Pesenti Gritti)
7900
7901         * gtk/gtkaction.c: Add an "is_important" property and propagate
7902         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
7903
7904 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7905
7906         * tests/testtoolbar.c (main): connect to "delete_event" so the
7907         application will actually quit when you close the window
7908
7909 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7910
7911         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
7912         (gtk_ui_manager_get_action): g_return_if_fail() if
7913         path is NULL.
7914         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7915         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
7916         Marco Pesenti Gritti)
7917
7918 2003-08-31  Matthias Clasen  <maclas@gmx.de>
7919
7920         * gtk/gtktoolitem.c: Fix some typos in docs.
7921
7922         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7923         replaces gtk_ui_manager_activate().  (#120658)
7924
7925         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7926         gtk_ui_manager_activate().
7927
7928         * gtk/gtkaction.c: 
7929         * gtk/gtkactiongroup.c: Some doc tweaks.
7930
7931         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7932         wasn't emitted anyway. Some doc tweaks.
7933
7934 2003-08-30  Matthias Clasen  <maclas@gmx.de>
7935
7936         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7937         rather than to "remove" on handlebox. 
7938
7939         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7940         activate an action found by following a path.  (#120658)
7941
7942         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7943
7944         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7945
7946         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
7947         setter and getter. If it is set, add tearoff menu items to regular 
7948         menus, but not to popups. Add a signal "changed", which gets emitted
7949         when the merged ui has changed.  (#120649, #120656)
7950
7951         * tests/testmerge.c: Add button to test the generation of tearoff 
7952         menu items.
7953
7954 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7955
7956         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7957         Actually group the actions together rather than putting each in its 
7958         own group.
7959
7960         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
7961         proxy menu items for radio actions.
7962
7963         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7964
7965 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7966
7967         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7968         Fix use of uninitialized variable.
7969
7970         * gtk/gtktextutil.c
7971         (_gtk_text_util_append_special_char_menuitems): add const cast to
7972         get rid of warning
7973
7974 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7975
7976         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
7977         "draw_as_radio" as a separate property, not as an alias of 
7978         "inconsistent".
7979         (gtk_check_menu_item_get_property): 
7980         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7981
7982 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7983
7984         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7985         are narrower than 13 time the estimated character width of the
7986         font. (#107781, David Bordoley)
7987
7988         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
7989         here if the GtkToggleButton is active. This may be the case if it
7990         is a radio button.
7991
7992         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
7993         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
7994         Suarez-Alvarez).
7995
7996         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
7997         property. (#111207, David Bordoley).
7998
7999         * gtk/gtktoggletoolbutton.c
8000         (gtk_toggle_tool_button_create_menu_proxy): use new
8001         "draw_as_radio" property on the menu item when the item is a radio
8002         tool button
8003
8004         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
8005         to only pay attention to the "use_underline" property when the
8006         button label comes from the "label" property.
8007
8008 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
8009
8010         * configure.in: Added "sq" to ALL_LINGUAS.
8011         
8012 2003-08-28  Matthias Clasen  <maclas@gmx.de>
8013
8014         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
8015         fix in the docs.
8016
8017         * gtk/gtkuimanager.c: Change the XML format:
8018         <Root> element is replaced by <ui>,
8019         <menu> element is replaced by <menubar>,
8020         <submenu> element is replaced by <menu>,
8021         <dockitem> element is replaced by <toolbar>,
8022         <popups> element is gone,
8023         verb attribute is replaced by action,
8024         name defaults to action or the element name. 
8025
8026         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
8027         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
8028         by removing the user_data, entry_type and extra_data fields, 
8029         GtkRadioActionEntry is further simplified by removing the callback. 
8030         The user_data can now be specified as an argument to 
8031         gtk_action_group_add_actions(). There is a new method 
8032         gtk_action_group_add_radio_actions(), which is similar to 
8033         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
8034         and a callback parameter in addition to the user_data. The callback
8035         is connected to the ::changed signal of the first group member.
8036         There are _full() variants taking a GDestroyNotify of 
8037         gtk_action_group_add_[radio_]actions().
8038
8039         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
8040         on every member of the radio group when the active member is changed. 
8041         Add an integer property "value", and a getter for the value of "value"
8042         on the currently active group member. 
8043
8044         * tests/testactions.c: 
8045         * tests/testmerge.c: 
8046         * tests/merge-[123].ui:  
8047         * demos/gtk-demo/appwindow.c: Adjust to these changes.
8048
8049         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
8050
8051 2003-08-27  Anders Carlsson  <andersca@gnome.org>
8052
8053         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
8054         text view, so the tool bar won't have focus.
8055
8056 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
8057
8058         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
8059         declaration not at start of block. (#120371, Damien Carbery)
8060
8061 2003-08-26  Matthias Clasen  <maclas@gmx.de>
8062
8063         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
8064         for length, not gsize.
8065
8066         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
8067         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
8068         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
8069
8070         * demos/gtk-demo/appwindow.c: 
8071         * tests/testactions.c: 
8072         * tests/testmerge.c:
8073         * tests/merge-1.ui:
8074         * tests/merge-2.ui:
8075         * tests/merge-3.ui: Adjust to the new XML format.
8076
8077 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
8078
8079         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
8080         Since we add one to the layout's reported width to
8081         account for the cursor, we need to subtract one when
8082         setting the wrap width for the layout. (Fixes infinite
8083         loop (#120325, Frederic Crozat)
8084
8085         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
8086         Be a bit more careful about rounding when converting
8087         wrapped width from Pango units to pixels.
8088
8089 2003-08-26  Matthias Clasen  <maclas@gmx.de>
8090
8091         Rename GtkMenuMerge to GtkUIManager. 
8092         
8093         * gtk/gtkuimanager.[hc]: New files. 
8094         * gtk/gtkmenumerge.[hc]: Removed. 
8095
8096         * gtk/Makefile.am: 
8097         * gtk/gtk.h:
8098         * tests/testmerge.c: 
8099         * tests/testactions.c: 
8100         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
8101         GtkUIManager.
8102
8103         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
8104         add comments to entries array, remove newlines from ui definition. Don't 
8105         use the ::add_widget signal.
8106
8107 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
8108
8109         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
8110         include page->menu_label - causes various problems,
8111         including #12047.
8112
8113 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
8114
8115         Merge from stable.
8116
8117         Fixes #115871, reported by Michael Natterer.
8118
8119         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
8120         added ctrl_pressed and shift_pressed bitfields,
8121         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
8122         arg with GtkTreeSelectMode.
8123
8124         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
8125         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
8126         (_gtk_tree_selection_internal_select_node): all updated for
8127         GdkModifierType -> GtkTreeSelectMode move.
8128
8129         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
8130         and shift_pressed around selection handling block,
8131         (gtk_tree_view_real_select_cursor_row),
8132         (gtk_tree_view_real_toggle_cursor_row),
8133         (gtk_tree_view_real_selection_cursor_parent),
8134         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
8135         instead of checking the event state. And also updates for the
8136         GdkModifierType -> GtkTreeSelectMode move.
8137
8138 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
8139
8140         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
8141         to the parent when there was no focus widget before
8142         and no focus widget after - that is, when there are
8143         no focusable widgets. (#108678, help tracking it
8144         down from Padraig O'Briain, Federico Mena Quintero, )
8145
8146         * gtk/gtkxembed.[ch]: Move various shared utilities
8147         for the XEMBED protocol eused by GtkPlug and GtkSocket 
8148         here.
8149
8150         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
8151         a flag bit that is sent with focus mesages to indicate
8152         that the focus has wrapped around on the toplevel;
8153         use this bit to catch infinite loops when there is no
8154         focusable widget at ll in the entire toplevel.
8155
8156         * tests/testsocket.c (child_read_watch): Remove an
8157         extraneous unref.
8158
8159         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
8160         Up XEMBED protocol version to 1, add logic for 
8161         sending the right version in XEMBED_EMBEDDED_NOTIFY.
8162
8163         * gtk/gtksocket.c (gtk_socket_add_window): Send
8164         the embedder window in the XEMBED_EMBEDDED_NOTIFY
8165         as the spec requires.
8166
8167 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
8168
8169         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
8170         NumLock handling for non-XKB. Add a special case
8171         hack for NumLock on Sun servers. (Patch from
8172         Robert Basch, #115819)
8173
8174 2003-08-25  Matthias Clasen  <maclas@gmx.de>
8175
8176         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
8177         Welinder)
8178
8179         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
8180         gtk_action_group_set_translation_domain): Hooks for translation of
8181         label and tooltip in GtkActionGroupEntries.  (#120620)
8182
8183 2003-08-25  Matthias Clasen  <maclas@gmx.de>
8184
8185         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
8186         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
8187         
8188         * gtk/gtkactiongroup.c: 
8189         * demos/gtk-demo/appwindow.c: 
8190         * tests/testmerge.c: 
8191         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
8192
8193 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
8194
8195         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
8196
8197 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
8198
8199         * gtk/Makefile.am: Fix accidental commit of references
8200         to gtkresizegrip.[ch]
8201
8202 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
8203
8204         * gtk/gtkrc.c: Fix some missing initializations of
8205         rc_file->directory.
8206
8207 2003-08-24  Matthias Clasen  <maclas@gmx.de>
8208
8209         * gtk/gtkaction.[ch]: 
8210         * gtk/gtktoggleaction.[ch]: 
8211         * gtk/gtktoggleactionprivate.h: 
8212         * gtk/gtkradioaction.[ch]: 
8213         * gtk/gtkactiongroup.[ch]: 
8214         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
8215         toolbars, using the EggMenu code by James Henstridge.
8216
8217         * gtk/gtk.h: Include new headers.
8218         * gtk/Makefile.am: Add new files.
8219
8220         * tests/testactions.c: Test for actions.
8221         * tests/testmerge.c: Test for menu merging.
8222         * tests/merge-[123].ui: Test data for testmerge. 
8223         * tests/Makefile.am: Add testactions and testmerge.
8224
8225         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
8226         menubar and toolbar.
8227         
8228 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
8229  
8230         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
8231         problem where rc_file->directory wasn't always getting
8232         set. (#120549, Luis Villa)
8233  
8234 2003-08-22  Christian Rose  <menthos@menthos.com>
8235
8236         * configure.in: Added "ne" to ALL_LINGUAS.
8237
8238 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
8239  
8240         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
8241         being parsed, not just the directories for those
8242         files. Use that to catch recursion. (Part of
8243         #114988)
8244  
8245 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
8246
8247         Merge from stable.
8248
8249         Fix option menu scrolling (#119821, Owen Taylor).
8250
8251         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
8252         by #80484 and the CLAMP,
8253         (get_menu_height): new function,
8254         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
8255         new_offset to handle page up/down right.
8256
8257 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
8258
8259         * gdk/x11/gdkkeys-x11.c: Change the interpretation
8260         of consumed_modifiers so that it contains:
8261          - Modifiers combinations actually found in
8262            state.
8263          - Single modifier modifier combinations.
8264         But not multi-modifier combinations that aren't
8265         in event->state. Document. (#100439)
8266
8267 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
8268
8269         Slightly modified patch from Yann Rouillard to improve selection
8270         behavior with the mouse. Fixes #120187.
8271
8272         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
8273         select/deselect items on the first button press of button 1,
8274         expand checks for row_activated to include triple clicks.
8275
8276 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
8277
8278         Merge from stable.
8279
8280         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
8281         approximate digit widths up, to avoid truncation, convert to
8282         pango pixels when we have the full string width instead of converting
8283         the approx digit width to pango pixels, take inner border and
8284         interior focus into account correctly. (Fixes #116368, patch from
8285         Morten Welinder).
8286
8287 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
8288
8289         * gtk/queryimmodules.c: Don't look at the same directory twice (in
8290         simple cases). (#120342)
8291
8292 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8293
8294         * gdk/gdkwindow.c: Make the layers in the paint stack have their
8295         own pixmap instead of sharing one. (#118317)
8296
8297         * tests/testgtk.c (create_get_image): Fixes to make the window fit
8298         on an 800x600 screen
8299
8300 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
8301
8302         Merged from stable.
8303
8304         * gtk/gtkspinbutton.c (start_spinning): change the type of step
8305         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
8306
8307 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
8308
8309         * modules/input/gtkimcontextxim.[ch]: Substantially
8310         rework the handling of status windows:
8311         
8312          - Store the current StatusWindow in the 
8313            GtkIMContextXIM structure and vice-versa, so we
8314            don't have to hunt the window hierarchy on
8315            cleanup.
8316          - Use the Gtkidget hierarchy instead of/or as well
8317            as the GdkWindow hierarchy when finding the toplevel;
8318            this helps for things like GtkHandlebox
8319          - Watch GtkWidget::hierarchy_changed to catch 
8320            changes in the toplevel without changes in the
8321            GdkWindow (reparenting)
8322          - Never create the GtkWindow for the status window
8323            unless we have text to display.
8324          - Various cleanups, add lots of comments.
8325
8326         (#115077, much help from Takuro Ashie and Hidetoshi
8327         Tajima in tracking this down and figuring out a fix.)
8328
8329         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
8330
8331         * modules/input/gtkimcontextxim.c: Track the current
8332         screen for each toplevel so that we show the status
8333         window on the right screen. (#116340, James Su)
8334
8335         * modules/input/gtkimcontextxim.c: If create a new IC
8336         when we currently have the focus, call XSetICFocus()
8337         on it.
8338         
8339         * modules/input/gtkimcontextxim.c (get_im): Fix bug
8340         with multiple open screens.
8341
8342 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
8343
8344         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
8345         Replace client_window field with 'priv' pointer,
8346         retaining binary compatibility.
8347
8348         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
8349         save use_preedit/cursor_location/focus status and set
8350         up the new slave appropriately. (#118651, Botond Botyanszki)
8351
8352 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
8353
8354         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
8355         Don't use impl->position_info.clip_rect for toplevels.
8356         (#107068, reported by Thomas Mirlacher)
8357
8358 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
8359
8360         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
8361         Add a fallback for unaligned source data for
8362         FORMAT_ARGB_MASK. (#117217)
8363
8364 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
8365
8366         * configure.in: Rework handling of REBUILD_PNGS,
8367         so that we also don't try to REBUILD_PNGS when
8368         cross-compiling and there is no gdk-pixbuf-csource.
8369         But give an error if gtk/stock-icons/gtkstockpixbufs.h
8370         is not in the source tree. (Note that REBUILDS_PNG
8371         was set backwards before, which is why you always
8372         had to manually recreate gtkstockpixbufs.h!)
8373
8374 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
8375
8376         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
8377         path to libgtk.la. (#120080, Benedikt Spranger)
8378
8379 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
8380
8381         * modules/input/imcedilla.c: Make the list of default
8382         languages more comprehensive. (Suggestion of
8383         Fco. Javier F. Serrador)
8384
8385 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
8386
8387         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
8388         parentheses when skipping args.
8389
8390 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
8391
8392         Fix major bug in row ref handling, so the new combo box
8393         will actually work right (:. Bug #107748. Patch written
8394         with help from Tim Janik.
8395
8396         The basic idea is to update the row refs in a closure,
8397         before the actual signal is emitted (rather than having
8398         the model connect signal handlers).
8399
8400         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
8401         g_signal_new calls for row_inserted, row_deleted and
8402         rows_reordered to use the new marshallers,
8403         (row_inserted_marshall), (row_deleted_marshall),
8404         (rows_reordered_marshall): the new marshallers,
8405         (gtk_tree_row_ref_inserted_callback): renamed to
8406         gtk_tree_row_ref_inserted since it isn't a callback
8407         anymore and gets called by the marshaller now,
8408         (gtk_tree_row_ref_deleted_callback): likewise,
8409         (gtk_tree_row_ref_reordered_callback): likewise,
8410         (connect_ref_callbacks), (disconnect_ref_callbacks):
8411         removed,
8412         (gtk_tree_row_reference_new_proxy),
8413         (gtk_tree_row_reference_free),
8414         (gtk_tree_row_reference_inserted),
8415         (gtk_tree_row_reference_deleted),
8416         (gtk_tree_row_reference_reordered): updated.
8417
8418 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
8419
8420         Improve Cedilla handling - based on a patch from Gustavo 
8421         De Nardin, #111334
8422
8423         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
8424         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
8425         dead_acute+c combinations. Make this the default for
8426         fr and pt.
8427
8428         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
8429         Use LC_CTYPE instead of LC_MESSAGES to pick the default
8430         input method.
8431
8432 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
8433
8434         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
8435         for Multi_key+c+apostrophe.
8436
8437 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
8438
8439         Merged from stable.
8440
8441         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
8442         on vertical scrolling. (#108035, reported by Tim Janik).
8443
8444 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
8445
8446         Merged from stable.
8447
8448         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
8449         (gtk_tree_model_sort_level_find_insert),
8450         (gtk_tree_model_sort_insert_value): fix off-by-one error.
8451         (#109292 continued, patch from Yann Rouillard).
8452
8453 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
8454
8455         (Note: This is not exactly the same as the patch which went in
8456          gtk-2-2).
8457
8458         * gtk/gtktreeview.c (gtk_tree_view_class_init),
8459         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
8460         Also support the up, down, left, right, home, end, page up and
8461         page down keys on the numpad. (#119419, reported by Alex Larsson).
8462
8463 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
8464
8465         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
8466
8467         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
8468         we link libgtk against X explicitely, since we
8469         make GTK+ calls for plug/socket.
8470
8471         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
8472         G_MODULE_SUFFIX here. 
8473
8474         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
8475         XShmPutImage with #ifdef USE_SHM.
8476
8477 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
8478
8479         * gtk/gtkfilesel.c (gtk_file_selection_populate):
8480         Don't reposition the cursor when we aren't trying
8481         to complete. (Fixes problems with selection on
8482         startup, #108433, reported by Mark Finlay.)
8483
8484         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
8485         code that tried to position the cursor after the common
8486         prefix when there was one, it wasn't working, and
8487         would be hard to fix. Just always put the cursor
8488         at the end when completing.
8489
8490 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
8491
8492         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
8493         the current directory fails because of encoding
8494         conversion problems, walk up textually to parent
8495         directories until we can convert. (#113627)
8496
8497 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
8498
8499         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
8500         Remove usage of menu_shell->ignore leave which was
8501         to deal with stray events we no longer get because
8502         we do grabbing differently. Comment it as unused in
8503         the header. (#115837, Keith Bissett)
8504
8505 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
8506
8507         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
8508         Fix some places that weren't properly Xinerama-ified.
8509
8510         * gtk/gtkmenu.c: Fix problem with windows that scroll
8511         at the top of the screen.
8512
8513 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
8514
8515         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
8516         key-press-event on the entry, so input methods get access to 
8517         key presses before GtkCombo customization.
8518         (#115451, Botond Botyanszki)
8519
8520 2003-08-13  Anders Carlsson  <andersca@gnome.org>
8521
8522         * tests/testtoolbar.c: (set_important_func), (important_toggled),
8523         (create_items_list):
8524         Add an important column.
8525         
8526 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
8527
8528         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
8529         against reentrancy from ::focus-out handlers. 
8530         (#118129, Felipe Heidrich)
8531
8532 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
8533
8534         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
8535         GDK_LOCK_MASK before calling
8536         gdk_keymap_translate_keyboard_state so bindings 
8537         and accelerators are independent of the Caps-lock
8538         key. (#115384, reported by Toni Willberg)
8539
8540 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
8541
8542         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
8543         break statements (#119494, Soeren Sandmann)
8544
8545 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
8546
8547         * gtk/gtkwidget.h: Mark parent public as well; it's
8548         extensively accessed in existing code, so there is
8549         no advantage in making people use get_parent().
8550         (Tweak to #119463 fix)
8551
8552 2003-08-11  Matthias Clasen  <maclas@gmx.de>
8553
8554         Add support for EWMH "Above" and "Below" window states.  (105100,
8555         Manuel Clos)
8556         
8557         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
8558         State" demo.
8559
8560         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
8561         gtk_window_set_keep_below.
8562
8563         * gtk/gtk.def: Add gtk_window_set_keep_above and
8564         gtk_window_set_keep_below.
8565
8566         * gtk/gtkwindow.c (gtk_window_set_keep_below):
8567         (gtk_window_set_keep_above): New functions, call the corresponding
8568         gdk functions.
8569
8570         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
8571         function, sets _NET_WM_STATE_BELOW.
8572         (gdk_window_set_keep_above): New function, sets
8573         _NET_WM_STATE_ABOVE.
8574
8575         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
8576         gdk_window_set_keep_below.
8577
8578         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
8579         GDK_WINDOW_STATE_BELOW.
8580
8581         * gdk/gdk.def: Add gdk_window_set_keep_above and
8582         gdk_window_set_keep_below.
8583
8584         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
8585         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
8586         xmlcatalog in PATH.  (#119115)
8587
8588 2003-08-10  Matthias Clasen  <maclas@gmx.de>
8589
8590         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
8591         public.  (#119463)
8592
8593 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
8594
8595         * gdk/gdkevents.h:
8596         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
8597         docs on GdkFilterFunc and GdkFilterReturn.
8598
8599 2003-08-09  Matthias Clasen  <maclas@gmx.de>
8600
8601         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
8602         to let the mouse wheels select the month. Scrolling down
8603         moves forward in time. (#53134, Abigail Brady) 
8604
8605         * gtk/gtkcalendar.c: Complete the RTL flipping support for
8606         GtkCalendar, make it possible to flip the headings using the
8607         "magic translated string" technique.  Translators, note the
8608         comment in gtk_calendar_init() explaining this.  (#102416)
8609
8610         * gtk/gtkcalendar.c: Get the information about the first day of
8611         the week from the locale using another instance of the "magic
8612         translated string" technique.  Ignore the display option
8613         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
8614
8615         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
8616         date is dragged as text, formatted via strftime %x. Text drops are
8617         accepted if g_date_set_parse() can make sense of the text. A
8618         dedicated data format for date DND has not been introduced yet,
8619         since there didn't seem to be sufficient consensus on such a
8620         format on xdg-list.  (#117297)
8621         
8622 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8623
8624         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8625         Fix a segfault.  (#115284, Jan Kratochvil)
8626
8627 2003-08-08  Tor Lillqvist  <tml@iki.fi>
8628
8629         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8630         coordinates for events that have such. Print coordinates for enter
8631         and leave events.
8632
8633         (gdk_event_translate): Don't use event uninitialixed in the
8634         return_exposes branch of the WM_PAINT handler.
8635
8636         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8637         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
8638         Must offset top-level window coordinates here, too.
8639
8640 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8641
8642         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8643         when maximized or fullscreen.
8644
8645 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8646
8647         * gdk/win32/gdkinput-win32.h
8648         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8649         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8650         used.
8651
8652         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8653         accordingly, in fact an uninitialised variable was dereferenced.
8654         
8655
8656         [Win32] Add support for multiple monitors. 
8657         
8658         * gdk/win32/gdkprivate-win32.h
8659         * gdk/win32/gdkglobals-win32.c: New global variables for
8660         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8661         _gdk_offset_x and _gdk_offset_y.
8662         
8663         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8664         functions, enumeration functions passed to EnumDisplayMonitors().
8665
8666         (gdk_display_open): If the EnumDisplayMonitors() and
8667         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8668         if to find out monitor info.
8669
8670         Calculate the offset between Win32 coordinates (relative to the
8671         primary monitor's origin (and thus negative on monitors to the
8672         left of or above it), and GDK's (visible coordinates should be
8673         non-negative).
8674         
8675         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8676         gdk_screen_get_monitor_geometry): Use information collected above.
8677
8678         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8679         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8680
8681         (gdk_window_get_geometry, gdk_window_get_origin,
8682         gdk_window_get_frame_extents): For top-level windows, add
8683         _gdk_offset_{x,y} to GDK root window coordinates
8684
8685         Still need to handle multiple monitors in
8686         gdk_window_fullscreen(). Probably should make the window
8687         fullscreen on the monitor where the cursor is?
8688
8689         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8690         root window coordinates in GdkEvents.
8691
8692         
8693         [Win32] Fix geometry hint handling. Add support for resize
8694         increment and base size, and aspect ratio geometry hints. The
8695         "gridded geometry" test in testgtk now works beautifully.
8696
8697         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8698         Turns out this function shouldn't actually ever modify the
8699         window's size, just store the hints. (Old code kept for a while
8700         inside #if 0.)
8701
8702         (gdk_window_set_hints): Remove presumably broken code that handles
8703         the position hints, this function is obsolete anyway.
8704
8705         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8706         variables, not used.
8707
8708         (adjust_drag): New function, used to implement resize increment
8709         hints.
8710
8711         (gdk_event_translate): Handle WM_SIZING, implement resize
8712         increment and base size, and aspect ratio geometry hints here. The
8713         WM_GETMINMAXINFO handler takes care of the minimum and maximum
8714         size hints as before. Fix the WM_GETMINMAXINFO handler to take
8715         into account window decorations. No need to modify the
8716         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8717         the defaults are fine.
8718         
8719         * gdk/win32/gdkprivate-win32.h 
8720         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8721         _gdk_win32_get_adjusted_client_rect): New helper functions.
8722
8723 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8724
8725         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8726         toplevel->have_* flags before iterating over the _NET_WM_STATE 
8727         atoms.  (#119217) 
8728
8729 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
8730  
8731         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
8732         Fix a bug where on theme change, resize/redraw wasn't
8733         properly getting queued on toplevel windows. (#116346,
8734         Rajkumar Siva)
8735  
8736         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
8737         Fix bug where wrong coordinates were used for toplevel
8738         window.
8739  
8740 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
8741
8742         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8743         page_num variable (Archit Baweja)
8744
8745 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8746
8747         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8748         cope with C libraries with crippled locale support.  (#115293)
8749
8750 2003-08-07  Hans Breuer  <hans@breuer.org>
8751
8752         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8753         (only if the new window not known to Gdk) to get proper
8754         leave notification, and get rid of the wrong placed 
8755         tooltips, bug #102283
8756  
8757         (gdk_event_translate) : small code reordering to not get
8758         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
8759         menus, bug #117367
8760
8761 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8762
8763         * gdk/gdk.def
8764         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8765         missing function, trivially implement.
8766
8767 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8768
8769         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
8770         rendering.  (#118646, Charles Kerr) 
8771
8772 2003-08-06  Hans Breuer  <hans@breuer.org>
8773
8774         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8775         initialize bits to 0 (probably default on NT)
8776
8777         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8778         now it works as intended ;-)
8779
8780 2003-08-04  Hans Breuer  <hans@breuer.org>
8781
8782         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8783         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8784
8785         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8786         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8787
8788         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8789         against all expectations it is basically ony a call with WM_SETICON
8790         needed (the visual effect is there, though colors or mask are
8791         still somewhat wrong).
8792         * gdk/win32/gdkwindow-win32.h : place to store the HICON
8793
8794         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8795         pixel drawing as it was fixed at 1999-08-23
8796
8797         gtk/gtk.def : updated
8798
8799 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
8800
8801         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
8802         Add a missing break. (#119156, Callum McKenzie)
8803
8804 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8805
8806         * gtk/gtkmenu.c (gtk_menu_position): New positioning
8807         algorithm.(#116649)
8808
8809 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8810
8811         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8812         property
8813         
8814         * gtk/gtkradiotoolbutton.c
8815         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8816
8817         * gtk/gtkradiotoolbutton.c
8818         (gtk_radio_tool_button_new_with_stock_from_widget): make this
8819         function take a stock_id.
8820
8821         * gtk/toolbar: documentation
8822
8823 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
8824
8825         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
8826         Fix problem where use_xshm was getting set wrong if
8827         MIT_SHM wasn't found. (George Lebel)
8828
8829 2003-08-04  Tor Lillqvist  <tml@iki.fi
8830
8831         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8832         actually use the passed-in filter list. The function also needs a
8833         GdkWindow parameter, as filter functions expect
8834         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8835
8836 2003-08-03  Matthias Clasen  <maclas@gmx.de>
8837
8838         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
8839         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8840         the term "virtual screen".  (#119030, Tor Lillqvist)
8841
8842 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8843
8844         * tests/testtext.c (test_init): 
8845         * tests/testgtk.c (test_init): 
8846         * tests/testdnd.c (test_init): 
8847         * demos/pixbuf-init.c (pixbuf_init): 
8848         * demos/gtk-demo/main.c (main): Use g_setenv().
8849
8850         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8851         g_unsetenv(). 
8852
8853 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
8854
8855         * configure.in: Requires glib-2.3.0, pango-1.2.0.
8856
8857         * configure.in: Require Xft version 2,
8858         remove code for handling older versions of pango and Xft.
8859         Many miscellaneous improvements to X checks
8860
8861         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
8862         a library to a variable, avoiding dups.
8863
8864         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
8865         Always load "fixed"
8866
8867         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8868         for pangox.
8869
8870 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8871
8872         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
8873         (palette_drop_handle): 
8874         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
8875         drops with the wrong format, since the KDE color chooser incorrectly
8876         drops application/x-color with format 8.  (#118810)
8877
8878         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
8879         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
8880         Accept drops with the wrong format, since the KDE color chooser 
8881         incorrectly drops application/x-color with format 8.  (#118810)
8882
8883 2003-08-02  Tor Lillqvist  <tml@iki.fi>
8884
8885         Fix gdk/win32 window geometry handling again. The window position
8886         in a GDK_CONFIGURE event should be that of the client area, not of
8887         the window decorations. (I was confused by the term "window
8888         border" in X11. It does *not* mean the window manager
8889         decorations. There are no X11-style window borders in Win32.)
8890         Also, this time do take the geometry hints into account
8891         appropriately when moving windows. Now testgtk's gravity test's
8892         move buttons work OK. There are stil problems with taking gravity
8893         into account when showing a hidden window.
8894
8895         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8896         instead of separate fields.
8897         
8898         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8899         adjust for decorations.
8900
8901         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8902         adjust_for_gravity_hints): New functions.
8903         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8904         above functions, take geometry hints into account.
8905         (gdk_window_set_geometry_hints): Size hints specicy client area,
8906         not including decorations.
8907
8908 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
8909
8910         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8911         return an absolute path (#115590), fix a problem where
8912         you could crash the file selector with a looong name
8913         by returning a newly allocated buffer.
8914
8915 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
8916
8917         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8918         bug in rarely or never hit code path (#118071,
8919         Tor Lillqvist)
8920
8921 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
8922
8923         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
8924         If the check for missing depths, try actually creating pixmaps
8925         of the depths to deal with Xinerama not reporting
8926         all the depths it should. (#115822)
8927
8928 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
8929
8930         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8931         forward KeyRelease events as well as KeyPress events.
8932         (#115597)
8933
8934 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
8935  
8936         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8937         if argc is 0 as well, instead of leaving it unset.
8938         (#116023, Michael Meeks)
8939  
8940 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8941
8942         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8943         default to TRUE; ignore the property when api_mode != NEW_API
8944
8945 2003-07-31  Matthias Clasen  <maclas@gmx.de>
8946
8947         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8948         to icon, to pacify gtk-doc.
8949
8950         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
8951         example. 
8952
8953 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8954
8955         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8956
8957 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8958
8959         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8960         overflow_item field.
8961
8962 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8963
8964         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8965         an internal function
8966
8967         * gtk/gtktoolitem.h: remove unused declaration of
8968         _gtk_tool_item_get_drag_window().
8969
8970 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8971
8972         * gtk/gtktoolbutton.[ch]:
8973         (gtk_tool_button_new): swap icon_widget and label arguments to
8974         match BonoboUIToolbarButton.
8975
8976         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8977
8978 2003-07-30  Matthias Clasen  <maclas@gmx.de>
8979
8980         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8981         signal docs. 
8982
8983 2003-07-29  Tor Lillqvist  <tml@iki.fi>
8984
8985         Fix for #108007, #112402, #117042: There was confusion in
8986         gdk/win32 at various places whether a window position refers to
8987         the decoration position or the client area position. Also whether
8988         window size includes decorations or not.
8989         
8990         The correct interpretation apparently is that in GDK (like in
8991         X11), a top-level window position means the decoration's position,
8992         but size means the window's inner size (client area size). In the
8993         Win32 API, the window size usually includes the decorations,
8994         though.
8995         
8996         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
8997         #ifdef G_ENABLE_DEBUG.
8998         (handle_configure_event): New function, generates GDK_CONFIGURE
8999         events from WM_SIZE and WM_MOVE messages. Even if no event is
9000         generated because of the event mask, still set the private
9001         position and size fields. Calculate position and size correctly.
9002         (gdk_event_translate): Call handle_configure_event().
9003
9004         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
9005
9006         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
9007         macros. Cosmetic debugging output changes.
9008         (SafeAdjustWindowRectEx): Remove. If an application wants to
9009         locate a window outside of the screen, it's not GDK's business to
9010         prevent it. And anyway, with multiple monitors, negative
9011         coordinates are perfectly normal.
9012         (gdk_window_new): Adjust the window size for decorations after
9013         _gdk_window_init_position() has done its job. (But the big window
9014         code currently is presumably broken on Win32 anyway.)
9015         (gdk_window_move): The position passed in is supposed to be that
9016         of the window border, so don't need to adjust for decorations.
9017         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
9018
9019 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9020
9021         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
9022         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
9023         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
9024         gtk_toolbar_append_space, gtk_toolbar_insert_item,
9025         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
9026         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
9027         gtk_toolbar_new, gtk_toolbar_prepend_item):
9028
9029         Move documentation inline from template files.
9030
9031         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
9032         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
9033         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
9034         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
9035         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
9036         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
9037         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
9038
9039         Copy documentation from stable that was added after the EggToolbar
9040         branched.
9041
9042         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
9043
9044 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9045
9046         * gtk+/docs/: Commit autogenerated changes, so patches will make
9047         sense.
9048
9049 2003-07-27  Tor Lillqvist  <tml@iki.fi>
9050
9051         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
9052         the keyboard state returned by GetKeyboardState() doesn't
9053         distinguish between the left and right Control and Alt keys. Thus
9054         we cannot detect AltGr (which is supposed to be left Control +
9055         right Alt) the same way as on NT-based systems, but have to accept
9056         either Control + either Alt as AltGr.
9057
9058 2003-07-27  Matthias Clasen  <maclas@gmx.de>
9059
9060         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9061         Fix function name in warning message.  (#118156, Tim-Philipp
9062         Mller)
9063
9064         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
9065         is-expander and is-expanded are boolean properties, not ints.
9066         (#118359, Josh Parsons)
9067
9068 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9069
9070         * gtk/gtkimagemenuitem.c
9071         (gtk_image_menu_item_toggle_size_request): don't request
9072         toggle_space when the image width is 0.
9073
9074 2003-07-25  Tor Lillqvist  <tml@iki.fi>
9075
9076         * gdk/win32/gdkprivate-win32.h
9077         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
9078         and _gdk_keyboard_has_altgr.
9079         
9080         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
9081         ones detailled here.
9082
9083         Code that has been ifdeffed out for a long time removed. Remove
9084         some really old doc comments that were left behind for some public
9085         functions, the official ones are in the X11 backend anyway. Change
9086         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
9087         multi-line boolean expressions to have the operators at ends of
9088         lines.
9089
9090         As mouse capture with SetCapture() indeed seems to work OK, no
9091         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
9092
9093         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
9094         needed at some time, and things seem to work fine now without
9095         (knock on wood).
9096
9097         Ifdef out the search for some Latin locale keyboard layout being
9098         loaded. Not used currently, but might be needed after all, if we
9099         decide that we want to be able to generate ASCII control character
9100         events with a non-Latin keyboard.
9101
9102         (assign_object): New helper function, handles the g_object_ref()
9103         and unref() calls when assigning GObject pointers.
9104                 
9105         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
9106         enter event when the pointer has moved to an ancestor window. Was
9107         left out by mistake.
9108
9109         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
9110
9111         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
9112         functionality, using ClipCursor().
9113                 
9114         (find_window_for_mouse_event): Splice part of code into new
9115         function find_real_window_for_grabbed_mouse_event().
9116
9117         (fixup_event, append_event, apply_filters): New functions, code
9118         refactored out from elsewhere.
9119
9120         (synthesize_enter_or_leave_event, synthesize_leave_event,
9121         synthesize_enter_event,
9122         synthesize_leave_events,synthesize_enter_events): Also take a
9123         GdkCrossingMode parameter, in preparation to generating
9124         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
9125
9126         (fixup_event, append_event, fill_key_event_string): New functions,
9127         code refactoring.
9128
9129         (vk_from_char, build_keypress_event, build_keyrelease_event):
9130         Removed as part of dropping WM_CHAR handling.
9131
9132         (build_key_event_state,gdk_event_translate): Call
9133         GetKeyboardState(), once, for each keyboard message, instead of
9134         several calls to GetKeyState() here and there.
9135
9136         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
9137         at it, do some major refactoring, and some fixes for potential
9138         problems noticed while going through the code.
9139
9140         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
9141         WM_KEYUP. Don't need the state variables related to whether to
9142         wait for WM_CHAR or not, and whether the current key is
9143         AltGr. Remove lots of complexity. Thus don't need the
9144         use_ime_composition flag.
9145
9146         Not handling WM_CHAR means dead key handling will have to be taken
9147         care of by GTK, but that seems to work fine, so no worry.
9148
9149         Another side-effect is that Alt+keypad digits don't work any
9150         longer, but it's better to learn to use GTK's ISO14755 support is
9151         anyway.
9152
9153         Be more careful in checking whether AltGr is involved. Only
9154         attempt to handle it if the keyboard actually has it. And
9155         explicitly check for *left* Control plus *right* Alt being
9156         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
9157         chars.
9158
9159         Handle keys using similar code as in the X11 backend. As we have
9160         built a keymap in gdkkeys-win32.c anyway, use it by calling
9161         gdk_keymap_translate_keyboard_state() to look up the keysym from
9162         the virtual key code and keyboard state. Build the key event
9163         string in exactly the same way as the X11 backend.
9164
9165         If an IME is being used, don't generate GDK events for keys
9166         between receiving WM_IME_STARTCOMPOSITION and
9167         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
9168         
9169         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
9170         the IME, not just the first one.
9171
9172         gdk_event_translate() is still quite complex, could split the
9173         message handler cases out into separate functions.
9174
9175         On mouse events, when the mouse is grabbed, use
9176         find_real_window_for_grabbed_mouse_event() in order to be able to
9177         generate correct crossing events.
9178         
9179         No longer take a pre-allocated GdkEvent as parameter. Instead,
9180         allocate events as needed and append them to the queue. (This is
9181         different from how gdk_event_translate() in the X11 backend
9182         works.) This change made the code much clearer, especially in the
9183         cases where we have to generate several GDK events for one Windows
9184         message.  Return FALSE if DefWindowProc() should be called, TRUE
9185         if not. If DefWindowProc() should not be called, also return the
9186         value to be returned from the window procedure.
9187
9188         (Previously, the interaction with gdk_event_translate()'s caller
9189         was much more complex, when we had to indicate whether the
9190         already-queued event should be left in the queue or removed, and
9191         in addition also had to indicate whether to call DefWindowProc()
9192         or not, and what value to return from the window procedure if
9193         not.)
9194
9195         Don't use a separate "private" variable required to be pointing to
9196         the GdkWindowObject of the "window" variable at all times. Just
9197         use casts, even if looks a bit uglier.
9198
9199         Notice destroyed windows as early as possible, and break out of
9200         the messsage switch.
9201
9202         Use _gdk_pointer_root as current_window when the pointer is
9203         outside GDK's top-level windows.
9204         
9205         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
9206         appropriate, based on ImmIsIME().
9207         
9208         (gdk_event_translate, gdk_event_send_client_message_for_display,
9209         gdk_screen_broadcast_client_message): Implement client messages.
9210         Use a registered Windows message to pass GDK client messages. Note
9211         that the amount of user data is restricted to four bytes, as it is
9212         carried in the LPARAM. (The WPARAM is used for the message type
9213         "atom".)
9214         
9215         (real_window_procedure): Adapt for new gdk_event_translate()
9216         interface.
9217
9218         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
9219         _gdk_input_locale_is_ime initially.
9220
9221         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
9222         of g_colormap_ref()/unref().
9223
9224         (gdk_window_new): Made code a bit more like the X11 one, pretend
9225         to handle screens (although we just have one for now).
9226
9227         * gdk/x11/gdkevents-x11.c
9228         (gdk_event_send_client_message_for_display,
9229         gdk_screen_broadcast_client_message): Document the user data
9230         limitation on Win32.
9231
9232         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
9233         and leave notify detail output.
9234
9235         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
9236         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
9237         for those, so that the GtkIMContextCimple compose tables will
9238         work. Deduce if the keyboard layout has the AltGr key, and set the
9239         above flag accordingly.
9240
9241 2003-07-26  Matthias Clasen  <maclas@gmx.de>
9242
9243         * gtk/gtkwidget.c: Document DND signals.
9244
9245 2003-07-24  Matthias Clasen  <maclas@gmx.de>
9246
9247         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
9248         insensitive when editing isn't possible.  (#118150)
9249
9250 2003-07-23  Matthias Clasen  <maclas@gmx.de>
9251
9252         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
9253         spinbutton wrap.  (#118097, John Darrington)
9254
9255         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
9256
9257 2003-07-20  Hans Breuer  <hans@breuer.org>
9258
9259         * makefile.msc : new file to build it all
9260         * Makefile.am : ... added to EXTRA_DIST
9261
9262         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
9263           gtk/makefile.msc.in tests/makefile.msc : updated
9264
9265         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
9266         functions
9267
9268         * gtk/gtkbbox.c : use g_return_val_if_fail() if
9269         there is a value to return
9270
9271         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
9272         static correctness
9273
9274         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
9275         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
9276
9277         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
9278
9279         * gtk/gtkimmulticontext.c : use gtkprivate.h
9280
9281         * gtk/stock-icons/stock_color_picker_25.png
9282           gtk/stock-icons/stock_jump_to_rtl_16.png
9283           gtk/stock-icons/stock_jump_to_rtl_24.png
9284           gtk/stock-icons/stock_redo_rtl_16.png
9285           gtk/stock-icons/stock_redo_rtl_24.png
9286           gtk/stock-icons/stock_undelete_rtl_16.png
9287           gtk/stock-icons/stock_undelete_rtl_24.png
9288           gtk/stock-icons/stock_undo_rtl_16.png :
9289           gtk/stock-icons/stock_undo_rtl_24.png :
9290         readded as binary
9291
9292 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9293
9294         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
9295         leftover request of {xy}thickness
9296
9297 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9298
9299         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
9300         attempt to add a NULL icon to the box.
9301
9302 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9303
9304         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
9305         on focus in/out.
9306
9307 2003-07-19  Matthias Clasen  <maclas@gmx.de>
9308
9309         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
9310         * gtk/gtkiconfactory.c (get_default_icons): Add
9311         stock_dialog_authentication_48.  (#65765) 
9312         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
9313         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
9314
9315         * gtk/gtkbbox.h: 
9316         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
9317         function. (#64562) 
9318
9319 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9320
9321         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
9322         declaration
9323
9324         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
9325         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
9326         instead of full draws.
9327
9328 2003-07-18  Matthias Clasen  <maclas@gmx.de>
9329
9330         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
9331
9332         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
9333         signal, move_viewport. 
9334         (gtk_text_view_move_viewport): New function which implements the
9335         move_viewport functionality. 
9336         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
9337         the viewport. (#78669) 
9338
9339         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
9340         move_viewport argument. 
9341
9342         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
9343         property.  (#111779) 
9344
9345         * gtk/gtkwindow.h: 
9346         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
9347
9348         * gtk/gtkmessagedialog.h:
9349         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
9350         (#65501, Sebastian Rittau)
9351
9352 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9353
9354         * gtk/gtktextview.c (changed_handler): use
9355         gtk_widget_queue_resize_noredraw().
9356
9357 2003-07-16  Jody Goldberg <jody@gnome.org>
9358
9359         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
9360
9361 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9362
9363         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
9364         API. 
9365
9366 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9367
9368         By popular request give toolbuttons a border.
9369         
9370         * gtk/gtktoolitem.c
9371         (gtk_tool_item_size_allocate):
9372         (gtk_tool_item_size_request): don't request and allocate a border
9373         around the child
9374
9375         * gtk/gtktoolbutton.c 
9376         (gtk_tool_button_size_allocate):
9377         (gtk_tool_button_size_request): remove these functions
9378
9379         * gtk/gtktoolbar.c 
9380         (gtk_toolbar_size_request):
9381         (gtk_toolbar_size_allocate): request and allocate a border if we
9382         have a shadow.
9383
9384 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
9385
9386         Merged from stable.
9387
9388         Fixes issues pointed out by Morten Welinder in #115140.
9389
9390         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
9391         (do_validate_rows): update validated_area with a logic OR instead
9392         of a bitwise OR,
9393         (validate_rows_handler): make the if statement match the one in
9394         validate_rows(), so we don't leak the timeout.
9395
9396 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
9397
9398         Merged from stable.
9399
9400         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
9401         should only grab focus back if the "cell_editable" widget still
9402         has focus. (Fixes #110104, testcase provided by Marco Pesenti
9403         Gritti).
9404
9405 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
9406
9407         Merged from stable.
9408
9409         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
9410         Don't set attr.event_mask twice, those things were meant to be
9411         ORred. (#115139, pointed out by Morten Welinder).
9412
9413 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
9414
9415         Merged from stable.
9416
9417         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
9418         if needed. (Fixes #115869, reported by Michael Natterer).
9419
9420 2003-07-15  Matthias Clasen  <maclas@gmx.de>
9421
9422         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9423         Fight against gtk-doc stupidity.
9424
9425 2003-07-13  Matthias Clasen  <maclas@gmx.de>
9426
9427         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
9428         targets, to pacify gtk-doc.
9429
9430 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9431
9432         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
9433         label_text, label_widget and icon_widget. (#117312, 
9434         Christian Persch)
9435         
9436 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9437
9438         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
9439         "horizontal-offset" and "vertical-offset" that determines the
9440         position of the menu when it is a submenu. 
9441
9442         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
9443         submenus according to new vertical- and horizontal-offset
9444         properties.
9445
9446 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
9447
9448         Merged from stable.
9449
9450         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
9451         case drags to "0", scroll to the top after dropping. (Fixes #94968,
9452         reported by Alp Toker).
9453
9454 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
9455
9456         Merged from stable.
9457
9458         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
9459         code (#115784, Owen Taylor).
9460
9461 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
9462
9463         Merged from stable.
9464
9465         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
9466         free the old text and extra_attrs *after* we parsed the new
9467         markup string. (Fixes #114485, reported by Owen Taylor).
9468
9469 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
9470
9471         Merged from stable.
9472
9473         Fixes #113904, testcase provided by Rene Seindal.
9474
9475         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
9476         pressed_button to -1 when a row has been activated,
9477         (gtk_tree_view_motion_bin_window): only start a drag if there's
9478         a button being pressed.
9479
9480 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
9481
9482         Merged from stable.
9483
9484         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
9485         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
9486         to avoid a roundtrip (#110272, Owen Taylor).
9487
9488 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
9489
9490         Merged from stable.
9491
9492         This patch really really fixes scrolling. Related bugs: #81627,
9493         testcase provided by Timo Sirainen, #111500, testcase provided by
9494         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
9495
9496         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
9497         which is equal to the lower border of the window means scrolling
9498         to an invisible row, always update the dy when scrolling to an
9499         invisible row, corrected area_above/below calculations for
9500         invisible rows, when walking the tree correct the size
9501         subtracted for invalidated rows, fix wrong logic in comment.
9502
9503 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9504
9505         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
9506         mime_types.  (#117219, Steve Chaplin)
9507
9508 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
9509
9510         * gdk/x11/gdkevents-x11.c (get_real_window)
9511         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
9512         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
9513         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
9514         Don't assume that all events start with XEventAny - Xkb events
9515         don't! (#105745). So, only do that for core events, and for
9516         non-core events, add a system for registering event types
9517         that start with XEventAny.
9518
9519         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
9520         Check to see if the result of gdk_window_lookup_for_display()
9521         is actually a window.
9522
9523 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
9524
9525         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
9526         check a silent assert, so it follows the g_free() behaviour.
9527
9528 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9529
9530         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
9531         vertically.  (#109823, Joe Shaw)
9532
9533 2003-07-11  Morten Welinder  <terra@gnome.org>
9534
9535         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
9536         access error.  (#69436)
9537
9538 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
9539
9540         Landing GtkTreeModelFilter and the completion code. (Test program
9541         and documentation will follow next week).
9542
9543         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
9544         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
9545
9546         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
9547         necessary code to hook up completion.
9548
9549         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
9550         GtkCellLayout interface.
9551
9552         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
9553
9554         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
9555         source files.
9556
9557 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
9558
9559         Merge from stable.
9560
9561         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
9562         directly return from ->window_at_pointer, but set win_x and win_y
9563         first if needed. (Fixes #110166, reported by Arno Charlet).
9564
9565         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
9566         function to accept GdkDrawables and not just GdkWindows. This was
9567         already done in some other functions a while back, but this patch
9568         got lost for some reason.
9569
9570 2003-07-09  Matthias Clasen  <maclas@gmx.de>
9571
9572         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
9573         direction when sorting children.  (#116540, Soeren Sandmann)
9574
9575 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
9576
9577         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
9578         Change _gdk_x11_send_xevent_async() to 
9579         _gdk_x11_send_client_message_async() avoid using Xlib
9580         internals that are different on Solaris. 
9581         (#116917, Morten Welinder)
9582
9583 2003-07-08  Matthias Clasen  <maclas@gmx.de>
9584
9585         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
9586         (#116501, Doug Quale)
9587
9588 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9589
9590         * gtk/gtktoggletoolbutton.h: remove strange #define
9591         * gtk/gtktoolbutton.h: fix cut'n'paste error
9592         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
9593         private data
9594         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
9595         private data instead of g_new0()
9596         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
9597         instance private data
9598
9599 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9600
9601         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
9602         for INPUT_ONLY window
9603         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
9604         * gtk/gtknotebook.c (gtk_notebook_realize): same
9605         * gtk/gtkexpander.c (gtk_expander_realize): same
9606         * gtk/gtkrange.c (gtk_range_realize): same
9607
9608         Fix #116303
9609
9610 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9611
9612         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
9613         when detail is "menuitem". With the new menu look is isn't needed
9614         anymore.
9615
9616         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
9617         resize here, so that tool items will get a chance to relayout
9618         themselves based on the toolbar configuration.
9619
9620         change DEFAULT_SPACE_SIZE to 4 instead of 5
9621
9622         * gtk/gtktoolbar.c 
9623         Get rid of "!GTK_BIN (item)->child means separator". Separators
9624         are widgets in their own right
9625
9626         change DEFAULT_SPACE_SIZE to 4 instead of 5
9627         
9628         (get_space_size): remove this function
9629         (toolbar_item_is_homogeneous): new function
9630
9631         * gtk/gtkseparatortoolitem.c
9632         (gtk_separator_tool_item_size_request): new function.
9633
9634 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9635
9636         * gtk/gtktoggletoolbutton.h: use private data, add new
9637         internal function _gtk_toggle_tool_button_get_button()
9638
9639         * gtk/gtktoolbutton.h: move to private data
9640
9641         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9642         private data.
9643
9644 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9645
9646         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9647         type check, (#116947, Krasimir Angelov)
9648
9649         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9650         
9651         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9652         data. Not instance private data yet, because of bug 116921.
9653
9654         * gtk/gtktoolitem.h: new accessors:
9655                 gtk_tool_item_get_homogeneous ()
9656                 gtk_tool_item_get_expand ()
9657                 gtk_tool_item_get_pack_end ()
9658                 gtk_tool_item_get_use_drag_window ()
9659
9660 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9661
9662         * gtk/gtkcellrenderertext.c
9663         (gtk_cell_renderer_text_class_init): remove accidentally committed
9664         debugging spew
9665
9666         * gtk/gtktoolbar.c
9667         (gtk_toolbar_paint_space_line): remove this function
9668         (gtk_toolbar_expose): always propagate expose, even if the item is
9669         a separator item
9670
9671         * gtk/gtkseparatortoolitem.c
9672         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9673         (get_space_size): new function.
9674         (get_space_style): new function
9675
9676 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
9677
9678         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9679         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
9680         of GDK_POINTER_MOTION_HINT_MASK.
9681
9682         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9683         of the drag into an idle as a superior form of 
9684         expose compression.
9685
9686         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9687         creation here, so that we have an icon at the start
9688         of the drag (e.g., when retrieving the window cache
9689         information.)
9690
9691 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9692
9693         * docs/widget_geometry.txt: better drawing of GtkMenuItem
9694         * docs/widget_geometry.txt: add notes about GtkMenu
9695         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9696
9697 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9698
9699         * gtk/gtkmenu.c: add vertical_padding style property.
9700         
9701         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9702         arrow_spacing and horizontal_padding. Also center separators and
9703         make them a bit taller.
9704
9705         * gtk/*menuitem.c: use new style properties.
9706         
9707         * docs/widget_geometry.txt: Add note about GtkMenuItem
9708
9709         * gtk/gtkstyle.c 
9710         (gtk_default_draw_vline, gtk_default_draw_hline):
9711         fix +/-1 errors. 
9712
9713         (gtk_default_draw_shadow): draw a black border around menus.
9714
9715         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9716         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9717         x2 and y1, y2 respectively, not x, width and y, height).
9718
9719 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
9720
9721         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9722         all the atoms in the target list at once.
9723
9724         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9725         Local drag short-circuit.
9726
9727         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9728         local case, poke the actions in directly instead of
9729         going through xdnd_set_actions.
9730
9731         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9732         the local case.
9733
9734         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9735         XSelectInput()/add a filter if the drag is local.
9736
9737         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
9738         Simplify handling of "XdndSelection".
9739
9740         * gdk/x11/gdkevents-x11.c
9741         (gdk_event_send_client_message_to_all_recurse): Somehow,  
9742         a WM_STATE => _NET_WM_STATE change hand been made here.
9743
9744         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9745         xatom_names, not atom_names.
9746
9747         * tests/testdnd.c (target_drag_motion): Make the trashcan
9748         open again. (Got lost in deprecation cleanup.)
9749
9750 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
9751
9752         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9753         earlier, so we don't get a big pile of uncompressed
9754         motion events before the grab takes effect.
9755
9756         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
9757         gdk_window_process_all_updates() so that the area
9758         we are dragging over gets a change to redraw.
9759
9760         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
9761         gdk_window_get_position(), not gdk_window_get_origin().
9762
9763         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9764         gdkdisplay-x11.h: use XShapeQueryExtension to 
9765         avoid duplicate XQueryExtension when we actually
9766         use it. Remove unnecessary caching in GdkDisplayX11.
9767
9768 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
9769
9770         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
9771         Function to get a range of information about all the
9772         children of a window in a single pass.
9773
9774         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9775         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9776         _gdk_x11_get_window_child_info() to greatly reduce
9777         the number of roundtrips.
9778
9779 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
9780
9781         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9782         a function to XSendEvent() and call a calback on
9783         failure/success.
9784
9785         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9786         messages to the same process, use _gdk_send_xevent_async().
9787
9788 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
9789
9790         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9791         toplevel-specific pieces of GdkWindowImplX11 into
9792         a separate GdkToplevelX11 structure.
9793
9794 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
9795
9796         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9797         some leftover fields.
9798
9799 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
9800
9801         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9802         Use asynchronously _gdk_x11_set_input_focus_safe
9803         to avoid having to trap errors and XSync().
9804
9805         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9806         _gdk_x11_set_input_focus_safe() here as well.
9807
9808         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9809         Rework handling of property notifies on _NET_WM_STATE
9810         so that we ignore _NET_WM_DESKTOP notifies unless we
9811         really care.
9812
9813         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9814         XShmQueryExtension() rather than XQueryExtension() to
9815         avoid extra rountrip.
9816
9817         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9818         Remove unused call to XGetWindowAttributes()
9819         
9820         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9821         unused call to XGetKeyboardControl().
9822
9823         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9824         Add (#99571)
9825
9826         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
9827         No-op implementations of gdk_display_flush().
9828
9829         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9830         gdk_display_flush() rather than gdk_flush() to avoid
9831         XSync().
9832         
9833         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9834         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9835         so that we don't have to get the property back from the server.
9836
9837         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9838         the serial of when we map a toplevel to allow optimizing
9839         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9840
9841         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9842         XTranslateCoordinates() for override-redirect windows.
9843
9844 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
9845
9846         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9847         about setting window group after the window is mapped from docs
9848         - nothing the ICCCM forbids that.
9849
9850         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9851         Fix g_return_val_if_fail() in void return function.
9852
9853         * configure.in: Fix misplaced comma that was resulting
9854         in XShm always being disabled.
9855
9856 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9857
9858         * tests/stresstest-toolbar: remove this accidentally committed
9859         file.
9860         
9861         * tests/stresstest-toolbar.c: really add this new test
9862
9863 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9864
9865         * tests/stresstest-toolbar.c: new test for removing items
9866         
9867         * tests/testtoolbar.c: add a popup menu
9868
9869         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9870           assert widget->parent == container when the container is a
9871           toolbar.
9872
9873         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9874         simpler. Also make correct.
9875
9876         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9877         popup_context_menu a boolean handled signal.
9878
9879 2003-07-04  Tor Lillqvist  <tml@iki.fi>
9880
9881         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9882         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9883         the width and height of the bounding rectangle only after the
9884         minumum x and y have been found, and need a separate loop for
9885         it. Thanks to Bruce Hochstetler for providing a sample program
9886         exhibiting the bug.
9887
9888 2003-07-03  Tor Lillqvist  <tml@iki.fi>
9889
9890         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9891         (#116537, Peter Zelezny)
9892
9893 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9894
9895         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9896         fix warning. Assign something to old_value to quiet gcc
9897
9898         * gtk/gtkcalendar.c 
9899         (start_spinning): gtk_timeout_add->g_timeout_add
9900
9901         * gtk/gtkicontheme.c 
9902         (theme_lookup_icon): Make it compile (remove double semicolon)
9903
9904         * gtk/gtktoolbutton.c
9905         (gtk_tool_button_class_init): Long comment about properties.
9906         (gtk_tool_button_class_init): Improve text for "use_underline"
9907         property
9908         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9909         on whether the passed-in label has use_mnemonic set
9910         (gtk_tool_button_create_menu_proxy): Split image cloning out in
9911         new function. Make that function also handle image with pixbuf
9912         storage.
9913         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9914         instead of gtk_container_remove().
9915         (gtk_tool_button_construct_contents): Fix eliding bug
9916
9917         * gtk/gtktoolbar.c
9918         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9919         by Morten Welinder
9920         (gtk_toolbar_button_press): Make popup_context_menu signal provide
9921         coordinates and button number
9922
9923         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9924
9925         * tests/apple-red.png: new file
9926
9927 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
9928          
9929         * gtk/gtkicontheme.[ch]: Implement a loader for
9930         named themed icon based on from gnome-desktop library
9931         by Alex Larsson.
9932
9933         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9934         from gnome-desktop.
9935
9936         * gtk/gtkiconfactory.[ch]: Add
9937         gtk_icon_source_set/get_icon_name() to allow stock icons
9938         to be based off of named theme icons.
9939
9940         * gtk/gtkiconfactory.c: Rework sources so that the source
9941         is *either* a pixbuf, or a filename, or an icon name,
9942         instead of the pixbuf/filename mix it was before. Put a
9943         workaround for get_pixbuf() so that it can return the
9944         filename pixbuf, e.g, for render_icon().
9945
9946         * gtk/gtkiconfactory.c: Make the default setup use
9947         themed icons, and add builtin icons to the default
9948         icon theme for all the standard pixbufs, so we
9949         don't rely on actually having an icon theme on disk.
9950
9951         * gtk/gtkrc.c: Add support for @"icon-name" to specify
9952         a themed icon for a stock icon source.
9953
9954         * tests/Makefile.am test/testicontheme.c: Add a test
9955         program from gnome-desktop.
9956
9957         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9958         Net/IconThemeName / gtk-icon-theme-name setting.
9959
9960         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9961         update the icon cache serial so we don't continually
9962         think we are out-of-date.
9963
9964         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
9965         to ::direction_set that should have been to ::direction-changed
9966
9967 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
9968
9969         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9970         style to the widget.
9971
9972 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9973
9974         * gtk/gtk.h: Add new toolbar headers
9975
9976         * tests/testtoolbar.c: new file
9977
9978         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9979
9980         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9981
9982 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9983
9984         * gtk/gtktoolbar.c:
9985         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9986         inside a for loop (pointed out by Morten Welinder).
9987         (gtk_toolbar_focus_home_or_end): Minor formatting change
9988
9989         Comments from Owen:
9990
9991         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
9992         gtk_toolbar_elide_underscores instead.
9993
9994         * gtk/gtktoolbar.c: rename signal from focus_ends to
9995         focus_home_or_end.
9996         (_gtk_toolbar_elide_underscores): export this as an internal
9997         function.
9998         (gtk_toolbar_move_focus): add comment explaining difference to
9999         gtk_toolbar_focus();
10000         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
10001         TAB_BACKWARD focus the right widgets in RTL mode
10002
10003         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
10004         "label" and "icon" parameters
10005
10006         * gtk/gtktoolbutton.[ch]: remove icon_set property.
10007
10008 2003-07-01  Matthias Clasen  <maclas@gmx.de>
10009
10010         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
10011         (116364, Morten Welinder) 
10012
10013         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
10014         corresponding dialogs.
10015
10016         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
10017         gtkcolorbutton.h.  
10018         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
10019
10020         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
10021
10022         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
10023
10024         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
10025
10026         * gtk/gtkexpander.c: Small additions to the docs. 
10027
10028 2003-07-01  Tor Lillqvist  <tml@iki.fi>
10029
10030         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
10031         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
10032
10033 2003-07-01  Matthias Clasen  <maclas@gmx.de>
10034
10035         * configure.in: Check for Xcursor.
10036         
10037         * gdk/x11/gdkcursor-x11.c:
10038         * gdk/gdkdisplay.h: 
10039         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
10040         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
10041         gdk_display_supports_cursor_color(),
10042         gdk_display_get_default_cursor_size() and 
10043         gdk_display_get_maximal_cursor_size().  (#69436)
10044
10045 2003-06-30  Tor Lillqvist  <tml@iki.fi>
10046
10047         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
10048         callback proc for EnumWindows().
10049         (gdk_drag_find_window_for_screen): Actually take the drag_window
10050         argument into account: Instead of using WindowFromPoint(), use
10051         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
10052         M Brown, Herman Bloggs)
10053
10054         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
10055         gdk_window_ref()/unref() calls with g_object_ref()/unref().
10056         Consistently use %p format in debugging output of pointers and
10057         HANDLEs.
10058
10059 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
10060
10061         * gtk/gtkexpander.h: kill some stray characters
10062         breaking the build.
10063
10064 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
10065
10066         Add GtkExpander. See discussion in bug #60553.
10067
10068         * gtk/gtkexpander.[ch]: add.
10069         
10070         * gtk/Makefile.am: build gtk-expander.[ch].
10071         
10072         * docs/widget_geometry.txt: add info on the layout
10073         of GtkExpander.
10074
10075 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10076
10077         * gtkradiotoolbutton.c:         new file
10078         * gtkradiotoolbutton.h:            "
10079         * gtktoggletoolbutton.c:           "
10080         * gtktoggletoolbutton.h:           "
10081         * gtktoolbutton.c:                 "
10082         * gtktoolbutton.h:                 "
10083         * gtktoolitem.c:                   "
10084         * gtktoolitem.h:                   "
10085         * gtktoolbar.c: many changes
10086         * gtktoolbar.h: many changes
10087         * gtkseparatortoolitem.c:       new file
10088         * gtkseparatortoolitem.h           "
10089
10090         New toolbar.
10091         
10092         - Items on a toolbar are now separate widgets, instances of a
10093           subclass of GtkToolItem.
10094
10095         - Items there aren't room for on the toolbar are unmapped, and an
10096           overflow menu with a proxy menu item is added instead.
10097
10098         - The toolbar is keyboard navigatable. Press TAB to focus the
10099           first item, then use arrow keys and Ctrl TAB to move around the
10100           toolbar. TAB moves focus out of the toolbar.
10101
10102         - Bascially all of the old toolbar API is deprecated in favor of
10103           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
10104
10105         - The toolbar is backwards compatible with the old toolbar.
10106
10107 2003-06-29  Matthias Clasen  <maclas@gmx.de>
10108
10109         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
10110         from docs, some more formatting fixes. 
10111
10112 2003-06-28  Tor Lillqvist  <tml@iki.fi>
10113
10114         Fix for #111028, thanks to J. Ali Harlow, who writes:
10115         I found that the GdkPixmap->GdkImage reference really isn't
10116         important. It's only really there to have somewhere convenient to
10117         store the location of the pixel data in the pixmap and as an easy
10118         way of accessing the dimensions of that data. I have therefore put
10119         together a fix which removes this reference entirely which seems
10120         to solve the problem.
10121
10122         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
10123         Instead of a pointer to a GdkImage, keep a pointer to the pixels
10124         directly.
10125
10126         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
10127         (_gdk_win32_new_image): New function, replacing the above. Creates
10128         a GdkImage without any associated GdkPixmap.
10129         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
10130
10131         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
10132
10133         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
10134         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
10135         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
10136         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
10137         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
10138         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
10139         Corresponding changes.
10140
10141 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10142
10143         * gtk/gtktreeviewcolumn.c
10144         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
10145         and "is_expanded" if the new value is different fromt he old one.
10146
10147 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
10148
10149         * docs/faq/gtk-faq.sgml: Fix typos. Update
10150         thread example I missed yesterday.
10151
10152 2003-06-24  Matthias Clasen  <maclas@gmx.de>
10153
10154         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
10155         shadow_type. 
10156
10157         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
10158         (gtk_widget_class_list_style_properties): Use same parameter names as in  
10159         header (to silence gtk-doc).
10160
10161         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
10162
10163 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
10164
10165         * docs/faq/gtk-faq.sgml: Thread support updates
10166         from Owen. Various suggestions from Steve Chaplin.
10167
10168 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
10169
10170         * po/id.po: Updated Indonesian translation
10171
10172 2003-06-21  Tor Lillqvist  <tml@iki.fi>
10173
10174         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
10175         emulating X11's automatic grab on button down, pass owner_events
10176         as FALSE. According to the XLib spec, automatic grabs use True for
10177         owner_events when OwnerGrabButtonMask is selected, and I don't see
10178         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
10179         (find_window_for_pointer_event): Improve debugging output.
10180
10181 2003-06-17  Tor Lillqvist  <tml@iki.fi>
10182
10183         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
10184         subdirectory, where libtool 1.5 installs them.
10185
10186         * README.win32: Point to FSF's binary Win32 distribution of
10187         gettext-runtime.
10188
10189 2003-06-17  Matthias Clasen  <maclas@gmx.de>
10190
10191         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
10192         macros to check for XML catalog contents and path, borrowed from
10193         gtk-doc. 
10194         * configure.in: New option --enable-man to enable regeneration of
10195         man pages from Docbook, if the necessary tools are found.
10196
10197 2003-06-15  Matthias Clasen  <maclas@gmx.de>
10198
10199         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
10200         * gtk/gtknotebook.c (gtk_notebook_class_init): 
10201         * gtk/gtkalignment.c (gtk_alignment_class_init): 
10202         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
10203         as 2.4 additions.
10204
10205         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
10206         to the proper place, immediately before the g_signal_new() call.
10207
10208         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
10209         more obvious.  (#115122, Jeff Franks)
10210
10211 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
10212
10213         * gtk/gtkwidget.c: (event_window_is_still_viewable):
10214         Special case pixmaps. (#114880)
10215         
10216 2003-06-12  Matthias Clasen  <maclas@gmx.de>
10217
10218         * gtk/gtkwidget.c: Document child-notify and drag-data-received
10219         signals. Owen, we need to figure out where the best place for
10220         these comments in the source is. I currently put them in front of
10221         the signals enum.
10222
10223 2003-06-11  Matthias Clasen  <maclas@gmx.de>
10224
10225         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
10226
10227 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
10228
10229         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10230         silly typo fix. s/seperator/separator/. This gets rid of the
10231         assert spam when using TreeView.
10232
10233 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10234
10235         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
10236         function for XIM instantiate callback.
10237         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
10238         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
10239         actually made.
10240         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
10241         for XIM's destroy callback.
10242         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
10243         is set or not - if it's not set, call xim_info_try_im() to try to
10244         initiaize it.
10245         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
10246         filter_key_release flag of the context.
10247         * modules/input/gtkimcontextxim.c (get_ic_real): removed
10248         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
10249         code from the removed get_ic_real().
10250
10251         For XIM instantiation, destruction and re-instantiation. With
10252         this, Gtk+ apps will be able to connect or reconnect to the XIM,
10253         when it starts after the apps, or when the XIM gets lost and recover.
10254         (#113099, #107782).
10255
10256 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
10257
10258         Merged from stable.
10259
10260         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
10261         check if width is !null, not *width. Doh.
10262
10263 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
10264
10265         Merged from stable.
10266
10267         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10268         Remove the weird dx logic, get all cell_area and background_area
10269         calculations right. Not sure what was up with it before. (Fixes
10270         #110989, testcase from Vasco Alexandre da Silva Costa).
10271
10272 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10273
10274         * tests/testgtk.c: Make it compile with C89 compilers
10275
10276 2003-06-10  Matthias Clasen  <maclas@gmx.de>
10277
10278         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
10279         property "overwrite".
10280         (gtk_text_view_[gs]et_property): Handle "overwrite".
10281         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
10282         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
10283
10284 2003-06-09  Matthias Clasen  <maclas@gmx.de>
10285
10286         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
10287         properties "resize" and "shrink".
10288         (gtk_paned_[gs]et_child_property): Implementations of 
10289         GtkContainer::[gs]et_child_property.  
10290         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
10291         paned child properties instead of remove/add hacks.  (#114667, 
10292         Soeren Sandmann) 
10293
10294 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
10295
10296         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
10297         out event->window test - it wasn't needed because
10298         of the call to get_widget_coordinates().
10299
10300         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
10301         call to gtk_widget_grab_focus() when not clicking on
10302         any tabs. (Real fix for #114534)
10303
10304 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
10305
10306         * tests/testdnd.c: Use application/x-rootwindow-drop for
10307         root window drops. (#108670, Alex Larsson)
10308
10309         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
10310         Accept either application/x-rootwin-drop (what GTK+ has always used)
10311         or application/x-rootwindow-drop (what the XDND standard specifies).
10312
10313 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
10314
10315         * gtk/gtkwidget.c (event_window_still_viewable): 
10316         Before delivering an event to a widget, check that
10317         (if relevant), the event's window is still viewable.
10318         (#105642, Dennis Björklund)
10319
10320         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
10321         NULL out private->parent, since after destruction
10322         it might not be valid any more.
10323
10324         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
10325         accesses before g_return_val_if_fail(). Treat 
10326         DESTROYED windows as unmapped.
10327
10328 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
10329
10330         * gtk/gtkentry.c: Recompute unconditionally in
10331         gtk_entry_style_set, and in a new gtk_label_screen_changed().
10332         Protect the guts of recompute_idle_func() with
10333         gtk_widget_has_screen(). (#114040, Morten Welinder) 
10334         Fix FALSE/0 confusion.
10335         
10336 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10337
10338         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
10339         Fixes (#114669)
10340
10341 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
10342
10343         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
10344         set_adjustment (viewport, NULL);
10345
10346 2003-06-07  Matthias Clasen  <maclas@gmx.de>
10347
10348         * gtk/gtkiconfactory.c (get_default_icons): 
10349         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
10350         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
10351         undelete and revert.  (#96633)
10352         
10353 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
10354
10355         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
10356         refactoring of code to reduce duplication; fixes include:
10357
10358         - gtk_viewport_realize(): Position the window correct from adjustment 
10359         values. (#110737, Michael Natterer)
10360
10361         - Remove some division-by-zero checks in places where there is no 
10362         longer division. (#110737)
10363
10364         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
10365         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
10366         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
10367
10368         - Switch over to encapsulated lazy-creation for hadjustment/
10369         vadjustment; even with the CONSTRUCT property, we need this after
10370         destroy.
10371
10372         - When updating the adjustment, immediate set their values to
10373         match the the current range of the viewport, and update the 
10374         viewport position to match the value of the new adjustments. 
10375         (Part of #1165)
10376
10377 2003-06-06  Tor Lillqvist  <tml@iki.fi>
10378
10379         * gdk/win32/gdkprivate-win32.h: Fix typo.
10380
10381         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
10382         graphics_exposures and subwindow_mode, too, even if they aren't
10383         currently used.
10384
10385 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
10386
10387         Merged from stable.
10388
10389         * gtk/gtktreeview.c (do_expand_collapse),
10390         (expand_collapse_timeout), (cancel_arrow_animation): made
10391         expand_collapse_timeout a wrapper with locks around     
10392         do_expand_collapse, made cancel_arrow_animation use
10393         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
10394         Peter Bloomfield).
10395
10396 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10397
10398         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
10399         * modules/input/gtkimcontextxim.c (preedit_start_callback,
10400         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
10401         to keep preedit-[start,changed,end] signals from being called during
10402         finalization (#111861).
10403
10404 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
10405
10406         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
10407         presses that are not on the tab (#114534).
10408
10409 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
10410
10411         * demos/Makefile.am: Conditionalize dependencies for
10412         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow). 
10413         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
10414         test-inline-pixbufs.h if we don't have libpng.
10415
10416         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
10417         Add a dependency on gdk-pixbuf.loaders when not 
10418         cross-compiling, remove the dependency on gdk-pixbuf-csource
10419         when not cross compiling.
10420
10421 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
10422
10423         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
10424         gtk_window_get_geometry_info() returning NULL.
10425         (#107311, John Finlay)
10426
10427 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
10428
10429         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
10430         twice the border width from the width/height, not
10431         1x the border width. (#106336, Rodney Dawes)
10432
10433 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
10434  
10435         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
10436         If at the end of the buffer, move to the end iter -
10437         parallels behavior of move_iter_to_previous_line.
10438         (#81960, Padraig O'Briain)
10439  
10440 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
10441
10442         #80023, Yao Zhang, TOKUNAGA Hiroyuki
10443
10444         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
10445         Account for the preedit cursor offset if the iter passed
10446         in is at the same place as the insertion cursor.
10447
10448         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
10449         Encapsulate getting the insertion cursor location.
10450
10451         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
10452         Pass the real y/height to the IM context. Take 
10453         text_view->x/yoffset into account.
10454
10455 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
10456
10457         * gtk/gtktextview.[ch]: Never scroll on focus in
10458         (#81893, Patch from Paolo Maggi)
10459
10460         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
10461         Scroll to the current cursor location before handling
10462         the action, in case the user just tabbed in
10463         and the cursor is offscreen.
10464
10465 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
10466          
10467          #107883, Gustavo Giráldez
10468
10469         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
10470         Split out the case where we know we changed, and 
10471         already dealt with our cached line being invalidated
10472         from external calls to gtk_text_layout_changed.
10473
10474         * gtk/gtktextlayout.c (gtk_text_layout_changed):
10475         Check if the invalidate yrange intersects our
10476         cached line, and clear it if necessary.
10477
10478 2003-06-05  Tor Lillqvist  <tml@iki.fi>
10479
10480         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
10481         filters.
10482
10483 2003-06-05  Matthias Clasen  <maclas@gmx.de>
10484
10485         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
10486         (gtk_text_view_grab_notify): 
10487         (gtk_text_view_state_changed): Implement these
10488         to unobscure cursor when grab shadowed or insensitised.
10489         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
10490         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
10491         gtk_text_view_motion_event().
10492         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
10493
10494         * gtk/gtktextview.c (select_all): New keybinding signal for
10495         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
10496
10497         * gtk/gtkcalendar.c (calendar_timer): 
10498         (stop_spinning): Replace deprecated gtk_timeout_* functions by
10499         their GLib counterparts.  (#114429)
10500
10501         * gtk/gtktreestore.c (gtk_tree_store_new): 
10502         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
10503         types.
10504
10505 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
10506
10507         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
10508         When drawing underlines, join up adjacent runs
10509         where possible, so we don't get changes in 
10510         shaper/font/etc. breaking underlines. (#103662,
10511         Kang Jeong-Hee)
10512
10513 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
10514
10515         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
10516         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
10517         improve the speed of inserting rows into an already sorted list,
10518         #109292
10519
10520 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
10521
10522         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
10523         track of when we have a clip mask set for the GC,
10524         and when we unset it, or switch to a clip region,
10525         immediately call XSetClipMask (..., None) to avoid
10526         Xlib caching stale data. (#111806)
10527
10528         * gtk/gtktextdisplay.c: Don't set a clip mask
10529         when drawing alpha pixmaps; it isn't necessary any more.
10530         (#111806)
10531
10532 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
10533
10534         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
10535         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
10536         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
10537         (#92548, Tim Evans)
10538
10539         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
10540         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
10541         Use state_type = STATE_INSENSITIVE for insensitive menu items.
10542
10543 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
10544
10545         Merged from stable.
10546
10547         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
10548         assert for get_info. (reported by Michael Natterer),
10549         (gtk_tree_view_expand_all_emission_helper),
10550         (gtk_tree_view_expand_all_helper): emit row_expanded for all
10551         expanded rows during an _expand_all operation. (Fixes #111280,
10552         reported by Benjamin Bayart).
10553
10554 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
10555
10556         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
10557         respond to pings on a root window; prevents infinite
10558         loops if we are selecting for SubstructureNotify on the
10559         root window. (#111945, Sergey V. Udaltsov)
10560
10561 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
10562
10563         #71597, reported by Morten Welinder
10564
10565         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
10566         (Patch from Christian Petig)
10567
10568         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
10569         Major rewrite of 555 and 565 conversion routines:
10570
10571         - Move all the bit shifting into a small block of macros,
10572           eliminating much duplication of complicated arithmetic.
10573         - Get rid of 2-pixels at a time code, which was buggy,
10574           hard to maintain, caused unaligned accesses, and
10575           probably didn't actually perform any better.
10576         - Simplify cases where different data types were
10577           used for the little and big endian cases, use
10578           GUINT16_SWAP_LE_BE() where appropriate.
10579                 
10580 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
10581
10582         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
10583         bad optimization for src_rowstride == dest_stride.
10584         (Didn't consider the case where we were copying only
10585         partial widths of a wider source buffer)
10586         (#113034, reported by Hans Petter Jansson)
10587
10588 2003-06-03  Michael Natterer  <mitch@gimp.org>
10589
10590         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
10591         reenabled button_release events for xinput devices. (#113948)
10592
10593 2003-06-03  Christian Rose  <menthos@menthos.com>
10594
10595         * configure.in: Added "li" to ALL_LINGUAS.
10596
10597 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
10598
10599         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
10600         map the event window if the notebook isn't mapped. (#113980,
10601         Richard Reich)
10602
10603 2003-06-02  Sven Neumann  <sven@gimp.org>
10604
10605         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
10606
10607         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
10608
10609 2003-06-01  Matthias Clasen  <maclas@gmx.de>
10610
10611         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
10612         Since: 2.4 to the docs.
10613
10614         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
10615         an example to the docs.  (#98427)
10616
10617 2003-05-30  Murray Cumming  <murrayc@usa.net>
10618
10619         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
10620         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
10621         uses the new private data system - see g_type_class_add_private() in
10622         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10623
10624 2003-05-30  Matthias Clasen  <maclas@gmx.de>
10625         
10626         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10627         signature of gtk_notebook_draw_arrow() for Solaris builds to go
10628         through.  (#114043, Anand Subramanian)
10629
10630 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10631
10632         * modules/input/imipa.c: 
10633         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10634
10635 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10636
10637         * gtk/gtkimmodule.c (_gtk_im_module_list):
10638         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10639
10640 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10641
10642         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10643         label of default input method localizable.
10644         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
10645         use translations of input method context names
10646         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10647           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10648           modules/input/imti-er.c, modules/input/imti-et.c
10649           modules/input/imviqr.c, modules/input/imxim.c
10650         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10651         (#113850).
10652
10653 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
10654
10655         Merged from stable.
10656
10657         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10658         grab separate, the user might clear the tree in the focus-in
10659         callback. (Fixes #113086, testcase from Felipe Heidrich).
10660
10661 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
10662
10663         Merged from stable.
10664
10665         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10666         of row reference when we unset the model. Also reset
10667         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10668
10669 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
10670
10671         Merged from stable.
10672
10673         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10674         the current editing, if it exists. (Fixes #108956, reported by
10675         Michael Natterer).
10676
10677 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
10678
10679         Merged from stable.
10680
10681         * gtk/gtktreeview.c (check_selection_helper): new function,
10682         (gtk_tree_view_row_deleted): traverse the tree from the
10683         deleted node to see whether the selection changed, instead of
10684         just checking this node. (Fixes #107400, reported by 'Duncan').
10685
10686 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
10687
10688         Merged from stable.
10689
10690         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10691         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10692         instead of _maybe_begin_dragging_row, so the icon can be
10693         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10694
10695 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
10696
10697         Merged from stable.
10698
10699         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10700         cell_area x/width for the expander if needed. (Fixes #101748,
10701         reported by Dave Cook and Mariano Suarez-Alvarez).
10702
10703 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
10704
10705         Merged from stable.
10706
10707         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10708         if tree/node are still the same after _internal_select_node.
10709         (Fixes #92256, reported by edscott).
10710
10711 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
10712
10713         Fixes #75745, reported by Richard Hult. Merged from stable.
10714
10715         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10716         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10717         cursor or not.
10718
10719         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10720         if we are rendering a cursor row, and the cell the be
10721         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10722         flag (else we unset it).
10723
10724 2003-05-27  Matthias Clasen  <maclas@gmx.de>
10725
10726         * gtk/gtkwindow-decorate.c: 
10727         * gtk/gtktreeprivate.h: 
10728         * gtk/gtkdnd.c: 
10729         * gdk/win32/gdkwindow-win32.h: 
10730         * gdk/linux-fb/gdkprivate-fb.h: 
10731         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10732         unspecified signedness.  (#112919, Morten Welinder)
10733
10734         * gtk/queryimmodules.c (escape_string): 
10735         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
10736         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
10737         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
10738         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
10739         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
10740         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10741         Morten Welinder) 
10742
10743 2003-05-27  Tor Lillqvist  <tml@iki.fi>
10744
10745         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10746         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10747
10748         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10749         win32/libgdk-win32.la.
10750
10751         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10752
10753 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10754
10755         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10756         scrollbar slider length 21 instead of 7.
10757
10758 2003-05-23  Matthias Clasen  <maclas@gmx.de>
10759
10760         * gtk/gtknotebook.c: Add support for up to four scroll
10761         arrows. Control their display by new style properties
10762         "has_forward_stepper", "has_backward_stepper",
10763         "has_secondary_forward_stepper" and
10764         has_secondary_backward_stepper". (#110540)
10765
10766         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10767         click_child three bits wide, add
10768         has_{before,after}_{previous,next} fields.
10769
10770         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10771         focus out of hex_entry.  (#112665)
10772         (hex_focus_out): New signal handler for focus out of hex entry.
10773
10774 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
10775
10776         * gtk/gtkwidget.c (gtk_widget_realize): 
10777         g_return_if_fail() if
10778         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10779         (#107872, Christian Reis)
10780
10781 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10782
10783         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
10784         (gtk_file_selection_rename_file): Some keynav improvements for the
10785         "Rename File" and "Create Directory" subdialogs: Enter in entry
10786         activates default, default is "Create"/"Rename", Escape cancels
10787         dialog.  (#113110)
10788         (gtk_file_selection_set_filename): Add a hint about opening 
10789         directories.  (#113175)
10790
10791 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10792
10793         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10794         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10795         anyway.  (#113476)
10796
10797 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
10798
10799         * gtk/gtkprogress.c (gtk_progress_set_format_string,
10800         gtk_progress_set_show_text): Always queue a resize ... 
10801         we rely on the size-allocate to do the update, plus a 
10802         different format can actually change our size requisition.
10803         (#111052, Vasco Alexandre da Silva Costa)
10804
10805         * gtk/gtkprogress.c (gtk_progress_changed): Track
10806         ::changed as well as ::value_changed, and queue a
10807         resize on ::changed when necessary.
10808
10809         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
10810         Call gtk_progress_changed() here to update or 
10811         queue a resize as necessary.
10812
10813 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10814
10815         * gtk/gtkimcontextsimple.c: added composing rules of
10816         Greek accented letters, patch by Vasilis Vasaitis (#107507)
10817
10818 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10819
10820         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
10821         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10822         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10823
10824 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10825
10826         * gtk/gtkimcontextsimple.c: 
10827         code that can check the compose table for ascending order,
10828         by Vasilis Vasaitis (#104862).
10829
10830 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
10831
10832         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
10833         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
10834         to handle the case where a modifier not in the mask
10835         (like Num_Lock) changes the key value, so replace
10836         the masked state with a state/mask pair. (#106913,
10837         Olivier Ripoll)
10838
10839         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10840         in state/mask pair to _gtk_key_hash_lookup()
10841
10842 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10843
10844         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10845         fix a memory leak, free input context list (#113259).
10846
10847 2003-05-21  Matthias Clasen  <maclas@gmx.de>
10848
10849         * configure.in (all_loaders): Add pcx.
10850
10851         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
10852
10853 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
10854
10855         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10856         accept a missing gtk.immodules file, some people
10857         want to run without one. (#112406, patch from
10858         Arnaud Charlet)
10859
10860 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
10861
10862         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
10863         height/width confusion (#113370, Xan Lopez)
10864
10865 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
10866
10867         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10868         zero all unused parts of client messages (Mainly Motif DND
10869         and EWMH). Also, fix a couple places where we were putting
10870         contents into Motif DND messages that didn't belong.
10871         (#113361, EWMH problem reported by Lubos Lunak)
10872
10873         * gtk/gtkselection.c (_gtk_selection_request): Handle the
10874         case where the property type for the multiple atoms is
10875         ATOM_PAIR by doing the conversions ourselve. This is
10876         needed for Xt inter-operation.
10877
10878 2003-05-19 Arafat Medini <lumina@silverpen.de>
10879
10880         * configure.in: Added ar to ALL_LINGUAS
10881
10882 2003-05-19  Matthias Clasen  <maclas@gmx.de>
10883
10884         * gtk/gtksettings.c (gtk_rc_property_parse_border,
10885         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10886         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10887         Add docs.
10888
10889         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
10890         gtk_widget_class_install_style_property_parser): Add docs. 
10891
10892 2003-05-17  Matthias Clasen  <maclas@gmx.de>
10893
10894         * tests/prop-editor.c: Add navigation for object properties, so
10895         that you can easily edit the properties of the parent of a widget.
10896         (#113152)
10897
10898 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
10899
10900         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10901         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
10902         inconsistency and leave the old name as an aliass (#104873)
10903
10904 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
10905
10906         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10907         from Charles Schmidt to add missing notify (#108305)
10908
10909 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
10910  
10911         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10912         (#105500, Morten Welinder.)
10913  
10914 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10915
10916         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10917         instead of gumake for XNFilterEvents event mask(#110493).
10918
10919 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
10920
10921         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10922         a GObject. (#112762)
10923
10924 2003-05-08  Sven Neumann  <sven@gimp.org>
10925
10926         * configure.in: set the HAVE_X11R6 automake conditional to false
10927         if not compiling for X11.
10928
10929 2003-05-08  Matthias Clasen  <maclas@gmx.de>
10930
10931         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
10932         (gtk_calendar_get_display_options): New functions.
10933         (gtk_calendar_display_options): Depreate.  (#64567)
10934         (gtk_calendar_class_init): Add boolean properties for the display
10935         options.  (#50949)
10936
10937 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
10938
10939         Patch from James Henstridge to update to automake-1.7
10940         (#109542)
10941  
10942         * autogen.sh: update to call newer tools.
10943  
10944         * configure.in: various updates, to use M4 macros to put
10945         variables that change each release at the top.
10946         Use AC_HELP_STRING to format help strings.
10947         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10948  
10949         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
10950         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
10951         during distcheck.
10952  
10953         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10954         makefile fragment.
10955  
10956         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10957         Use BUILT_SOURCES where appropriate.
10958         Build generated files in builddir rather than srcdir.
10959         Fix uninstall and distclean targets to satisfy distcheck.
10960
10961         ===
10962
10963         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10964         built first, since we are now using BUILT_SOURCES.
10965
10966         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10967
10968         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10969         with geninclude.pl.
10970
10971         * configure.in: Update versions to 2.3.0.
10972  
10973 2003-05-06  Tor Lillqvist  <tml@iki.fi>
10974
10975         Fix for #110165 (thanks to Arnaud Charlet):
10976         
10977         * gdk/win32/gdkevents-win32.c (build_keypress_event,
10978         build_keyrelease_event): For unshifted control char, use
10979         lowercase ASCII keyval.
10980         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10981         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10982         lowercase keyval. Use build_key_event_state() here, too, instead
10983         of minor code duplication.
10984
10985 2003-05-06  Matthias Clasen  <maclas@gmx.de>
10986
10987         * tests/testmultidisplay.c: Don't include strings.h, it's not
10988         needed anymore.  (#112388)
10989
10990         * examples/menu/itemfactory.c: 
10991         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
10992         itemfactory example.
10993
10994 2003-05-05  Matthias Clasen  <maclas@gmx.de>
10995
10996         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
10997         icon type to the stock icon type.  (#111735, Dave Bordoley)
10998
10999 2003-05-05  Christian Rose  <menthos@menthos.com>
11000
11001         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
11002         Removed sp, it's replaced by sr@Latn.
11003
11004 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
11005
11006         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
11007         Gonzalo Odiard
11008
11009 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
11010
11011         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
11012         data iff the destroy func isn't NULL.
11013
11014 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
11015
11016         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
11017
11018 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
11019
11020         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
11021
11022 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
11023
11024         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
11025         of UTF-8. (#106419, Roozbeh Pournader)
11026
11027 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
11028
11029         * configure.in: Only check for XFT2 if we found pango-xft
11030         (#105692, Jon Nall)
11031
11032 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
11033
11034         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
11035         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
11036
11037 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
11038
11039         * docs/faq/gtk-faq.sgml: add note about version converage.
11040
11041 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
11042
11043         * gtk/gtksocket.c (activate_key): Fix prototype for
11044         activate_key. (#108927, Jason D. Hildebrand)
11045
11046 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
11047
11048         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
11049         Remove geninclude.pl from CVS and don't dist it either,
11050         it is generated. (#108970, Rich Kinder)
11051
11052 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
11053
11054         * gtk/gtkobject.h: Remove a couple of obsolete comments,
11055         fix another comment. (#109737, Britton Kerin)
11056
11057 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
11058
11059         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
11060         the source list, not just it's contents (Patch
11061         from Charles Kerr, #108243)
11062
11063 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
11064
11065         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
11066         from Alex Larsson fixing problem with restacking during
11067         DND. (#108671)
11068
11069 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
11070
11071         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
11072         Calling XFlush() after ungrabbing, to avoid problems if
11073         the app subsequently blocks on a long-running operation.
11074         (#106520, reported by Rajkumar Siva)
11075
11076 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
11077
11078         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
11079         SKIP_TASKBAR/SKIP_PAGER to set of properties we
11080         might set on map. (#110019, problem reported
11081         by Loban Rahman)
11082
11083 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
11084
11085         * gdk/gdkevents.c (gdk_event_copy): Fix for the
11086         case when gdk_event_copy() is called on a non-allocated
11087         event. (#109716, reported by Rich Burridge)
11088
11089 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
11090
11091         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
11092         Fix pointer arithmetic on 'void *'. (#108322)
11093
11094 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
11095
11096         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
11097         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
11098         use of XAddConnectionWatch. Remove --enable-xim config option.
11099         Should fix building on X11R6 (#110523, Albert Chin)
11100
11101 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
11102
11103         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
11104         Patch from Morten Welinder to catch Sun servers with a 
11105         broken implementation of the RENDER extension. (#108309)
11106
11107 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
11108
11109         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
11110         gdk_free_compound_text(), not g_free(). (#107643,
11111         Michael Zucchi)
11112
11113 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
11114
11115         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
11116         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
11117         wrong use of base_finalize. (#105126, Sven Neumann)
11118
11119 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
11120
11121         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
11122         '/' vs. '*' problem in aspect ration computations. (#108237)
11123
11124 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
11125
11126         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
11127         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
11128         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
11129         event, so select for both. (#108406, Egmont Koblinger)
11130
11131 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
11132
11133         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
11134         caused by not clearing the scroll_to_path.
11135
11136 2003-04-16  Matthias Clasen  <maclas@gmx.de>
11137
11138         * gtk/gtkstyle.c: Doc additions and fixes.
11139
11140         * gtk/gtktreeviewcolumn.c
11141         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
11142
11143 2003-04-14  Michael Natterer  <mitch@gimp.org>
11144
11145         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
11146         that the iter is not reordered to its own position. Prevents model
11147         corruption for the case that the store contains only a single item
11148         (fixes bug #108387).
11149
11150         Unrelated:
11151
11152         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
11153         new list element later so we don't leak it if we decide to return
11154         early.
11155
11156         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
11157         set selection->tree_view->priv->anchor to NULL after freeing it.
11158
11159 2003-04-13  Matthias Clasen  <maclas@gmx.de>
11160
11161         * gtk/gtktreeviewcolumn.c
11162         (gtk_tree_view_column_cell_get_position): Document. 
11163
11164         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
11165         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
11166         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
11167         these as 2.4 additions.
11168
11169 2003-04-09  Matthias Clasen  <maclas@gmx.de>
11170
11171         * INSTALL.in: Fix the real thing.
11172
11173         * INSTALL: Typo fix.
11174
11175 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
11176
11177         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
11178         after ungrabbing the server.
11179  
11180         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
11181         calls to XFlush().
11182
11183         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
11184         Use gdk_x11_display_grab/ungrab.
11185
11186         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
11187         use_xshm to TRUE so SHM gets used when present.
11188  
11189 2003-04-07  Matthias Clasen  <maclas@gmx.de>
11190
11191         * gtk/gtktextlayout.c (set_para_values): 
11192         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
11193         David Brigada)
11194
11195         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
11196         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
11197         misspellings of possessive "its".  (#110027, Doug Quale)
11198
11199 2003-04-03  Matthias Clasen  <maclas@gmx.de>
11200
11201         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
11202         current directory if it looks like the srcdir.  (#109357)
11203
11204 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
11205
11206         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
11207         focus_on_click
11208
11209         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
11210         navigation not wrap around.
11211
11212 2003-04-02  Matthias Clasen  <maclas@gmx.de>
11213
11214         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
11215         Return 0 if lower == upper.  (#109155)
11216         (gtk_progress_get_current_percentage): Use
11217         gtk_progress_get_percentage_from_value().
11218
11219 2003-04-01  Matthias Clasen  <maclas@gmx.de>
11220
11221         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
11222         (#109510, Noah Levitt)
11223
11224 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
11225
11226         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
11227         members so Purify won't complain.
11228
11229         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
11230
11231 2003-03-31  Matthias Clasen  <maclas@gmx.de>
11232
11233         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
11234         gtk_window_[gs]et_role().  (#93904)
11235
11236 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
11237
11238         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
11239         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
11240
11241 2003-03-29  Matthias Clasen  <maclas@gmx.de>
11242
11243         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
11244         of labels back to normal before reparenting back.  (#102387)
11245
11246         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
11247         a default window title to match the GtkFontSelectionDialog behavior.
11248  
11249         (gtk_color_selection_dialog_new): Don't call
11250         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
11251
11252 2003-03-29  Matthias Clasen  <maclas@gmx.de>
11253
11254         Fix for bug #78499:
11255         
11256         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
11257         select_lines. 
11258
11259         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
11260         select_lines on double/triple click.
11261
11262         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
11263         select-by-words and select-by-lines behaviour.
11264
11265         Fixes for bug #56248:
11266         
11267         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
11268         timer and queue a redraw. 
11269         (gtk_notebook_grab_notify): 
11270         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
11271         if necessary.   
11272         (gtk_notebook_button_release): Use stop_scrolling().
11273         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
11274
11275         * gtk/gtkrange.c (stop_scrolling): New function to remove the
11276         grab, remove the timer and queue a redraw.
11277         (gtk_range_grab_notify): 
11278         (gtk_range_state_changed): New functions to call stop_scrolling() 
11279         if necessary.   
11280         (gtk_range_button_release): Use stop_scrolling().
11281
11282         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
11283         (gtk_spin_button_state_changed): Redraw after stop_spinning.
11284         (gtk_spin_button_stop_spinning): Reset click_child to correct the
11285         drawing of the arrows.
11286         (gtk_spin_button_button_release): Use a local copy of click_child,
11287         since stop_spinning() resets it.
11288
11289         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
11290         C-A-PgDown as alternatives to the A-less variants. (This slipped
11291         in accidentally some time ago).  (#97860)
11292
11293 2003-03-26  Sven Neumann  <sven@gimp.org>
11294
11295         * gtk/gtktreeview.c: rewrote the function that does node and arrow
11296         prelighting, queue all redraws from here (Fixes bug #108792).
11297
11298 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
11299
11300         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
11301         Fixes bug #108778.
11302
11303 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
11304
11305         * configure.in: Added "ml" in ALL_LINGUAS
11306
11307 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
11308
11309         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
11310         G_DISABLE_DEPRECATED.
11311
11312 2003-03-14  Tor Lillqvist  <tml@iki.fi>
11313
11314         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
11315         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
11316         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
11317         multiple monitors can have negative coordinates on some of the
11318         monitors. (partial fix for #99496, Arnaud Charlet)
11319
11320 2003-03-15  Matthias Clasen  <maclas@gmx.de>
11321
11322         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
11323
11324 2003-03-13  Sven Neumann  <sven@gimp.org>
11325
11326         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
11327         removed redundant calls to g_object_notify().
11328         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
11329         bug #108236.
11330
11331         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
11332         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
11333         functions return an integer value).
11334
11335 2003-03-13  Tor Lillqvist  <tml@iki.fi>
11336
11337         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
11338         WM_MOUSEMOVE, the test whether we have actually moved (and thus
11339         shouldn't generate an GDK event) moved after the call to
11340         propagate() and translate_mouse_coords(). Otherwise we were
11341         testing wrong values. (#108115, Allin Cottrell)
11342         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
11343         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
11344
11345         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
11346         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
11347         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
11348         cursor right away with SetCursor(), as we won't get any
11349         WM_SETCURSOR messages while the mouse is captured. 
11350         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
11351         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
11352
11353         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
11354         WM_SYSCHAR, return FALSE from the window procedure to prevent the
11355         DefWindowProc from being called. Otherwise Windows would beep,
11356         thinking you are tring to access a (nonexistent) menu when you
11357         press Alt-something. Don't do this for Alt-Space,
11358         though. (#107454, Martyn Russell)
11359
11360         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
11361
11362 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
11363
11364         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
11365         [left/right] expands/collapses the tree, #108092
11366
11367 2003-03-09  Tor Lillqvist  <tml@iki.fi>
11368
11369         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
11370         compensate for LineTo() not drawing the end pixel. It causes more
11371         harm than benefits, see bug #81895.
11372
11373 2003-03-08  Matthias Clasen  <maclas@gmx.de>
11374
11375         Bug #107664 continued:
11376
11377         * gdk/x11/gdkinputprivate.h: 
11378         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
11379         (_gdk_input_other_event): Return gboolean.
11380         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
11381         (_gdk_input_other_event): Return gboolean.
11382         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
11383
11384         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
11385         gboolean, remove pointless call to _gdk_input_window_none_event.
11386
11387         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
11388         (_gdk_input_window_none_event): Remove.
11389
11390         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
11391         (_gtk_text_iter_get_any_segment): 
11392         (_gtk_text_iter_get_segment_byte): 
11393         (_gtk_text_iter_get_segment_char): 
11394         (_gtk_text_iter_get_text_line): 
11395         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
11396         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
11397         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
11398         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
11399         (gdk_window_get_origin): 
11400         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
11401
11402 2003-03-06  Matthias Clasen  <maclas@gmx.de>
11403
11404         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
11405         (#107664, Morten Welinder)
11406
11407         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
11408         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
11409         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
11410         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
11411
11412         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
11413         * gtk/gtkeditable.c (gtk_editable_get_chars): 
11414         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
11415         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
11416         (#107648, Morten Welinder)Fix NULL/FALSE confusion
11417         (#107648, Morten Welinder)
11418
11419 2003-03-04  Matthias Clasen  <maclas@gmx.de>
11420
11421         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
11422
11423 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
11424
11425         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
11426         handle rtl code.  Thanks to Matthias Clasen for an initial patch
11427         to handle the RTL code.
11428
11429         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
11430
11431         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
11432
11433         * gtk/gtktreeview.c: (invalidate_column),
11434         (invalidate_last_column),
11435         (gtk_tree_view_get_real_requested_width_from_column),
11436         (gtk_tree_view_size_allocate_columns),
11437         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
11438         (gtk_tree_view_button_release_drag_column),
11439         (gtk_tree_view_update_current_reorder),
11440         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
11441         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
11442         (gtk_tree_view_get_background_xrange),
11443         (gtk_tree_view_get_arrow_xrange),
11444         (gtk_tree_view_is_expander_column),
11445         (gtk_tree_view_set_column_drag_info),
11446         (gtk_tree_view_move_cursor_left_right):
11447         Add RTL support.
11448
11449         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
11450         expand flag.
11451
11452         * gtk/gtktreeviewcolumn.c:
11453         (gtk_tree_view_column_class_init),
11454         (gtk_tree_view_column_set_property),
11455         (gtk_tree_view_column_get_property),
11456         (gtk_tree_view_column_set_expand),
11457         (gtk_tree_view_column_get_expand),
11458         (gtk_tree_view_column_cell_process_action):
11459         Add support for expand flag.  Thanks to Kristian Rietveld for an
11460         initial patch for this.
11461
11462 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
11463
11464
11465 2003-03-02  Tor Lillqvist  <tml@iki.fi>
11466
11467         * gdk/gdk.def
11468         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
11469         Gustin.
11470
11471 2003-03-01  Matthias Clasen  <maclas@gmx.de>
11472
11473         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
11474         (gtk_scrolled_window_set_hadjustment): Replace uses of
11475         gtk_object_new by g_object_new.
11476
11477 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
11478
11479         * demos/gtk-demo/main.c
11480         * demos/gtk-demo/tree_store.c
11481         * gdk/x11/gdkscreen-x11.c
11482         * gtk/gtkcellrenderertoggle.c
11483         * gtk/gtkcolorsel.c
11484         * gtk/gtkdnd.c
11485         * gtk/gtkeditable.c
11486         * gtk/gtkentry.c
11487         * gtk/gtkmenu.c
11488         * gtk/gtkmenubar.c
11489         * gtk/gtkmenuitem.c
11490         * gtk/gtkmenushell.c
11491         * gtk/gtkrc.c
11492         * gtk/gtksettings.c
11493         * gtk/gtkstyle.c
11494         * gtk/gtktextbuffer.c
11495         * gtk/gtktextview.c
11496         * gtk/gtktreeviewcolumn.c
11497         * tests/testgtk.c
11498         * tests/testtext.c
11499         * tests/testtreeedit.c
11500         * tests/testtreefocus.c
11501         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
11502
11503 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
11504
11505         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
11506         code.
11507
11508 2003-02-24  Sven Neumann  <sven@gimp.org>
11509
11510         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
11511
11512 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
11513
11514         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
11515
11516 2003-02-20  Matthias Clasen  <maclas@gmx.de>
11517
11518         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
11519         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
11520
11521         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
11522         (gtk_text_view_update_adjustments): Make sure cursor stays visible
11523         during horizontal scrolling.  (#75270)
11524
11525 2003-02-19  Matthias Clasen  <maclas@gmx.de>
11526
11527         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
11528         counterparts. (#106532)
11529
11530         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
11531         keys_changed virtual function with the keys_changed signal.
11532         (#106512, Jeff Franks)
11533
11534 2003-02-15  Larry Ewing  <lewing@ximian.com>
11535
11536         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
11537
11538 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
11539
11540         * po/id.po: Added Indonesian translation
11541         * configure.in: Added "id" to ALL_LINGUAS
11542
11543 2003-02-14  Matthias Clasen  <maclas@gmx.de>
11544
11545         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
11546
11547 2003-02-12  Christian Rose  <menthos@menthos.com>
11548
11549         * configure.in: Added "yi" to ALL_LINGUAS.
11550
11551 2003-02-12  Matthias Clasen  <maclas@gmx.de>
11552
11553         Fix for #82734 and #78216:
11554         
11555         * gtk/gtktextview.c (delete_cb): 
11556         (select_all_cb): New callbacks for context menu items.
11557         (popup_targets_received): Add "Delete" and "Select All" to context
11558         menu, mnemonics and title caps for all items.
11559
11560         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
11561         context menu item.
11562         (popup_targets_received): Add "Delete" to context menu, mnemonics
11563         and title caps for all items.
11564
11565 2003-02-09  Tor Lillqvist  <tml@iki.fi>
11566
11567         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
11568         GetDriveType() to recognize removable drives (in order to avoid
11569         hanging if trying to access an empty floppy drive), instead of
11570         hardcoding A: and B: (#105654).
11571
11572 2003-02-09  Matthias Clasen  <maclas@gmx.de>
11573
11574         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
11575         names.  (#57680)
11576
11577 2003-02-09  Christian Rose  <menthos@menthos.com>
11578
11579         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
11580
11581 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
11582
11583         * gtk/gtkobject.c: remove quark_user_data usage in
11584         gtk_object_{g|s}et_user_data(). fixes get_user_data()
11585         returning NULL for user_data set through property interface.
11586
11587         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
11588         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
11589         need to be a programming error (in case of loaded data), (b) it breaks
11590         with 2.0 behaviour where extra magic could be used to create empty
11591         images. don't attempt to retrieve pixbufs from NULL extra_data.
11592
11593 2003-02-06  Matthias Clasen  <maclas@gmx.de>
11594
11595         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
11596         a GdkVisual *, not a GdkVisual **.  (#105243)
11597
11598         * gtk/gtkclist.c: 
11599         * gtk/gtkctree.c: 
11600         * gtk/gtkcontainer.c: 
11601         * gtk/gtkdnd.c: 
11602         * gtk/gtkentry.c: 
11603         * gtk/gtklist.c:
11604         * gtk/gtkmenu.c:
11605         * gtk/gtkmenuitem.c:
11606         * gtk/gtknotebook.c:
11607         * gtk/gtkselection.c:
11608         * gtk/gtkspinbutton.c:
11609         * gtk/gtktext.c:
11610         * gtk/gtktextview.c:
11611         * gtk/gtktooltips.c:
11612         * gtk/gtktreeview.c:
11613         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
11614         their non-deprecated GLib counterparts.
11615         
11616         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
11617         
11618 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
11619
11620         * docs/tutorial/gtk-tut.sgml: cleanups from
11621         Sebastian Rittau (#104832)
11622
11623 2003-02-01  Tor Lillqvist  <tml@iki.fi>
11624
11625         Merge from stable:
11626
11627         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11628         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11629         (#104108, Naofumi Yasufuku)
11630
11631         * gdk/gdk.def: Export the above. Export
11632         gdk_screen_get_system_visual, noticed by Ed Woods.
11633
11634 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
11635
11636         * demos/pixbuf-demo.c
11637         * demos/testpixbuf.c
11638         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11639
11640 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
11641                                                                                 
11642         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11643         on the tab_label before unparenting it, in case the unparent
11644         drops the refcount to 0.
11645
11646 2003-02-01  Matthias Clasen  <maclas@gmx.de>
11647
11648         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11649         headers. Sorry about gtk_selection_clear, Yosh.
11650
11651 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
11652
11653         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11654         too, for gtkwidget.c. Remember people, when introducing new
11655         deprecations, make sure internal code isn't using it, or if so,
11656         reorganize appropriately like I've done in other places.
11657
11658         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11659
11660 2003-01-31  Matthias Clasen  <maclas@gmx.de>
11661
11662         * gtk/gtkselection.h: 
11663         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
11664
11665         * gdk/gdkpixbuf.h: 
11666         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
11667         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
11668
11669         * gtk/gtkcolorsel.h:
11670         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11671         Deprecate.  (#98167)
11672
11673         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11674
11675         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11676         and gtk_input_* functions.  (#71596)
11677         
11678         * gtk/gtkentry.c (gtk_entry_move_cursor): 
11679         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11680         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11681
11682         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
11683
11684         * gtk/gtkitemfactory.h: 
11685         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
11686         (#69244)
11687
11688 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
11689
11690         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11691         only count the special cell if it is also visible,
11692         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11693         account from visible cells,
11694         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11695         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11696         tracking bug was #104563).
11697         
11698 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
11699
11700         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11701         subtract expander space and focus line space from the extra space
11702         we are about the allocate. (Fixes #104635).
11703
11704 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
11705
11706         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11707         (Fixes #96242, patch from Soeren Sandmann).
11708
11709 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
11710
11711         * gtk/gtknotebook.c: Patch from Soeren Sandmann
11712         to update the states of the tab label child
11713         widgets to match the state of the tabs. 
11714         (#93389, Reported by Tommi Komulainen)
11715
11716 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
11717
11718         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11719         EXTRA_DIST, and from dist rules. (#102231)
11720
11721 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11722
11723         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11724         function that sets the icon's and label's packing options and
11725         visibility based on toolbar->style.
11726
11727         (gtk_toolbar_internal_insert_element):
11728         (gtk_real_toolbar_style_changed): Make use of
11729         set_child_packing_and_visibility() to clean up the code and get
11730         the packing right for icon-only/text-only toolbars. (#104679)
11731
11732         (get_first_child): Remove, and use gtk_bin_get_child() instead.
11733
11734 2003-01-30  Matthias Clasen  <maclas@gmx.de>
11735
11736         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11737         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
11738
11739         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11740         
11741 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
11742
11743         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
11744         attempt-to-allocate then free code. To handle multiple
11745         people allocating colors at the same time, we need
11746         to just go ahead and try. (#102213, Shivram U)
11747         
11748 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11749
11750         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11751         rectangle using the background color rather than relying on
11752         gdk_window_clear_area(), so that the palette works properly with
11753         pixmap themes. (#101732)
11754
11755         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11756         to fill the drawing area in the background color.
11757
11758 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
11759
11760         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11761         initialization error for selecting input style (#103549).
11762
11763 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
11764
11765         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
11766         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11767         (#101225)
11768
11769 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
11770
11771         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11772         Make up from the menu bar go to the end of the submenu.
11773         (#96114, Ian Peters.)
11774
11775         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
11776         Only do the select-but-not-activate stuff if the
11777         menu is already active. Otherwise, just activate.
11778         (#101690, Arvind Samptur)
11779
11780 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
11781
11782         * autogen.sh (have_automake): Fix version in complaint
11783         message about automake. (#104366, Rich Burridge)
11784
11785 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
11786
11787         * configure.in: Remove SOEXT stuff; it doesn't work portably.
11788
11789 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
11790
11791         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11792         we appended/prepended, send the rows_reordered signal to the 
11793         correct level ... (Reported by Matthew Tuck).
11794
11795 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
11796
11797         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11798         out if the level only has one item, recurse over the child if there
11799         is one. (Fixes #100458, reported by Gaël Le Mignot).
11800
11801 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
11802
11803         * gtk/gtktreeview.c (gtk_tree_view_set_model),
11804         (gtk_tree_view_search_equal_func): make TreeView search handle
11805         all types which are transformable by GValue. (Fixes #99803, reported
11806         by Muktha Narayan).
11807
11808 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
11809
11810         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11811         *really* handle unsetting the ID. Slightly modified patch from
11812         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11813
11814 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
11815
11816         Fixes the total GtkTreeSortable mess, and #83195, reported by
11817         Jarek Dukat
11818
11819         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11820         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11821         (gtk_tree_store_set_default_sort_func): use the constant
11822         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11823         work as advertised by the documentation.
11824
11825         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11826         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11827         (gtk_list_store_set_default_sort_func): likewise.
11828
11829         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11830         (gtk_tree_model_set_sort_func),
11831         (gtk_tree_model_sort_set_default_sort_func): make functions work
11832         as advertised by the documentation.
11833
11834 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
11835
11836         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11837         before we decide if we edit. (fixes #100973, reported by Dave Cook).
11838
11839 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
11840
11841         Bug report and test case from Paolo Maggi via IRC.
11842
11843         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11844         (gtk_list_store_move): update tail if needed.
11845
11846 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
11847
11848         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11849         might be NULL. Use gtk_widget_get_display (widget) 
11850         (#102860, Thomas Leonard)
11851
11852 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
11853
11854         * configure.in: Fix --without-modules/--disable-modules
11855         confusion that was causing --disable-modules not to work.
11856         (#102865, Akira Tagoh)
11857
11858         * configure.in: Fix problem with plain --with-xinput
11859         (#104266, Akira Tagoh)
11860
11861 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
11862
11863         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11864         patch.
11865
11866 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
11867
11868         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11869
11870 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
11871
11872         * docs/faq/gtk-faq.sgml: Learn to spell Library
11873
11874 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
11875         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
11876
11877            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11878            Composite widget" to modern standards. (I.e. use gobject instead of
11879            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11880
11881         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11882         code in Appendix C to reflect above changes.
11883
11884         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11885         auto resize on page size change
11886
11887 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
11888
11889         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11890         in addition to show_all in order to keep them symmetric. (#102201)
11891
11892 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
11893
11894         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11895         the end of the function, so there is a statement following the "out"
11896         label in all cases (fixes #101961)
11897
11898 2003-01-22  Christian Rose  <menthos@menthos.com>
11899
11900         * configure.in: Added "mn" to ALL_LINGUAS.
11901
11902 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
11903  
11904         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11905         Fix off-by-one error on the backward iteration loop,
11906         that was causing the wrong range to be redrawn.
11907         (at least part of #72734)
11908         
11909 2003-01-21  Matthias Clasen  <maclas@gmx.de>
11910
11911         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11912         vadjustment value after changing its bounds.  (fixes #101963 and 
11913         #73562)
11914
11915         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
11916         unnecessary roundtrip failures.  (#93500)
11917
11918 2003-01-19  Tor Lillqvist  <tml@iki.fi>
11919
11920         Merge from stable:
11921         
11922         Fix for #103614 and some other problems with GtkFileSelection on
11923         Windows:
11924                 
11925         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11926         g_ascii_tolower(). Windows file names are case-insensitive for all
11927         Unicode letters.
11928
11929         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11930         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11931         earlier, as it includes config.h unconditionally, and gtkprivate.h
11932         redefines GTK_LOCALEDIR.
11933         (struct _CompletionDirSent): Ifdef out the fields not used on
11934         Windows.
11935         (compare_utf8_filenames, compare_sys_filenames): Need different
11936         comparison implementation for UTF-8 file names and system locale
11937         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11938         need to casefold all Unicode letters.
11939         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11940         variables not used on Win32 to avoid warnings about unused
11941         variables.
11942         (open_ref_dir): Use g_path_skip_root() to skip past potential
11943         drive letter in front of the leading (back)slash.
11944         (open_new_dir): Ifdef out use of CompletionDirSent fields not
11945         there on Win32.
11946         (correct_parent): Bypass inode check also on Cygwin.
11947
11948         Fix bug noticed by Alex Shaduri: Tooltips and other
11949         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11950         was a regression from earlier versions.
11951         
11952         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11953         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11954         (gdk_window_move, gdk_window_resize): Add debug logging.
11955
11956         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11957         WM_SIZE message for a non-visible (withdrawn) window, don't clear
11958         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11959         even if its size changes.
11960
11961 2003-01-16  Matthias Clasen  <maclas@gmx.de>
11962
11963         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11964         (totally_invisible_line): Fix an incorrect optimization which
11965         caused invisible paragraphs to be occasionally misrendered.
11966
11967 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
11968
11969         * gtk/gtksettings.c: Set the double click speed from
11970         XSETTINGS when creating a new GtkSettings object
11971         as well as when getting a notify. (#103601, reported
11972         by Louis Garcia)
11973
11974 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
11975  
11976         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
11977         Show/hide the notebook event window as necessary,
11978         we weren't previously keeping the visibility updated
11979         properly.  (#103599)
11980  
11981 2003-01-15  Matthias Clasen  <maclas@gmx.de>
11982
11983         * examples/menu/itemfactory.c: 
11984         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11985         example.  (#103211)
11986
11987 2002-12-29  Murray Cumming  <murrayc@usa.net>
11988
11989         Fixes #102168.
11990
11991         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
11992         Actually implement the GtkTreeDragSource::row_draggable virtual 
11993         function in GtkListStore and GtkTreeStore instead of just checking 
11994         whether it's implemented at all. This means that DnD isn't broken by
11995         gtkmm's virtual function wrappers. The alternative would be to
11996         hard-code the TRUE return value into gtkmm's wrappers, but that's 
11997         part of GTK+'s implementation, not it's API.
11998
11999 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
12000
12001         * gtk/gtktreeview.c: fix compiler warning.
12002
12003 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
12004
12005         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
12006         make sure exposed pixbufs are clipped to the exposed area before
12007         drawing, which is a slight speedup. (#102379, patch from Soeren
12008         Sandmann).
12009
12010 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
12011
12012         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
12013         only free scroll_to_path when the complete tree has been validated.
12014         This makes sure that we scrolled to the correct path.
12015
12016 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
12017
12018         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
12019         background of widget->window and bin->window. (Fixes #96650, reported
12020         by Dave Camp).
12021
12022 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
12023
12024         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
12025         updates before scrolling, avoiding a "selection streak". (Fixes
12026         #101235, patch from Soeren Sandmann).
12027
12028 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
12029
12030         * gtk/gtktreeview.c (validate_visible_area): actually put values
12031         in the requisition using gtk_widget_size_request. (Fixes #100172,
12032         reported by Kjartan Maraas).
12033
12034 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
12035
12036         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
12037         arrow animation timeout before we actually reorder the rbtree. If
12038         we don't do this we can get stuck arrows,
12039         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
12040         reported and testcase provided by Hans Petter Jansson).
12041
12042 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
12043
12044         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
12045         anchor_path should be start_path, not end_path. (Fixes #102618,
12046         patch from Carlos Garnacho Parro).
12047
12048 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
12049
12050         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
12051         only correct new_pos if we don't move to the head/tail.
12052
12053 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
12054
12055         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
12056         the parent_iter if depth >= 1, so we send the reordered signal to
12057         the correct level, remove debugging printfs which I forgot the remove
12058         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
12059         testcase provided by Matthew Tuck).
12060
12061 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
12062
12063         * gtk/gtktreeview.c (invalite_last_column): split out actual column
12064         invalidation into invalidate_column(),
12065         (gtk_tree_view_size_allocate_columns): invalidate column if the
12066         new width is larger than the old width.
12067         (fixes #102890, reported by Alex Duggan).
12068
12069 2003-01-14  Matthias Clasen  <maclas@gmx.de>
12070
12071         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
12072         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
12073         GTK_MOVEMENT_WORDS.
12074
12075         * gtk/gtktextiter.c,
12076         gtk/gtktextiter.h: Add some variant movement functions which
12077         skip invisible chars, and do some cleanups.
12078
12079 2003-01-12  Tor Lillqvist  <tml@iki.fi>
12080
12081         Merge from stable:
12082                 
12083         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
12084         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
12085         lookup.
12086
12087         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
12088         gdk.def.
12089
12090         * gdk/gdk.def
12091         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
12092
12093         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
12094         gtk-demo}.exe and share/gtk-2.0.
12095
12096         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
12097         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
12098         window style.
12099         (gdk_window_set_type_hint): Add all cases to the switch (not all
12100         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
12101         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
12102         won't know that the skip_taskbar hint is on for the window, is
12103         this bad?
12104
12105 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
12106
12107         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
12108         <string.h> for strlen.
12109
12110         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
12111         <string.h> for strrchr.
12112
12113         * tests/testgtk.c (create_saved_position): "x" and "y" properties
12114         for widgets no longer exist, use gtk_window_move instead.
12115
12116         * test/testtextbuffer.c (check_get_set_text): cast strlen to
12117         int for g_error.
12118
12119 2003-01-08  Matthias Clasen  <maclas@gmx.de>
12120
12121         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
12122         the selection in the presence of invisible segments.
12123
12124 2003-01-07  Matthias Clasen  <maclas@gmx.de>
12125
12126         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
12127         to "select all" and "unselect all".  (#102065)
12128
12129         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
12130         the just_selected_element is unused.
12131
12132         * gtk/gtktextview.c (extend_selection): New helper function to
12133         find the range that should be added to the selection. 
12134         (selection_motion_event_handler): 
12135         (gtk_text_view_start_selection_drag): 
12136         (gtk_text_view_end_selection_drag): 
12137         (selection_motion_event_handler): 
12138         (selection_scan_timeout): Support select-by-words/lines.
12139         (gtk_text_view_button_press_event): Start a selection drag on
12140         double/triple clicks.  (#78499)
12141
12142 2003-01-06  Matthias Clasen  <maclas@gmx.de>
12143
12144         Implement a utility function proposed in #102534:
12145         
12146         * gtk/gtktextbtree.h: 
12147         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
12148         (_gtk_text_btree_place_cursor): Now a simple wrapper around
12149         _gtk_text_btree_select_range().   
12150
12151         * gtk/gtktextbuffer.h: 
12152         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
12153         (gtk_text_buffer_place_cursor): Now a simple wrapper around
12154         gtk_text_buffer_select_range(). 
12155
12156 2003-01-05  Havoc Pennington  <hp@pobox.com>
12157
12158         * configure.in: fix a stray bracket that was breaking the build
12159
12160 2003-01-05  Tor Lillqvist  <tml@iki.fi>
12161
12162         * gtk-zip.sh.in: Use correct DLL and import library names, with
12163         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
12164         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
12165
12166         * configure.in: Improve check for dimm.h.
12167
12168         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
12169         gdk-pixbuf/Makefile.am.
12170
12171         * gdk-pixbuf/makefile.mingw.in
12172         * gdk-pixbuf/pixops/makefile.mingw.in
12173         * gdk/makefile.mingw.in
12174         * gdk/win32/makefile.mingw.in
12175         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
12176
12177         * gdk-pixbuf/Makefile.am
12178         * gdk-pixbuf/pixops/Makefile.am
12179         * gdk/Makefile.am
12180         * gdk/win32/Makefile.am
12181         * gtk/Makefile.am
12182         * configure.in: Remove makefile.mingw{,.in} from here, too.
12183         
12184         * README.win32: Updates. Don't mention the now removed
12185         makefile.mingw files.
12186
12187         * gdk/gdk.def
12188         * gtk/gtk.def: Add a couple of missing entries.
12189
12190         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
12191
12192         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
12193         earlier.
12194
12195         * gdk/win32/rc/Makefile.am: Add hack to help
12196         build/win32/lt-compile-resource decide which kind of libtool
12197         object file to produce.
12198
12199 2003-01-05  Matthias Clasen  <maclas@gmx.de>
12200
12201         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
12202         C-Down step through the sequence of paragraph ends (old behaviour
12203         included paragraph starts).  (#80340, patch by Narayana Pattipati)
12204
12205         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
12206         Check for a tag toggle at the start iterator before calling
12207         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
12208         Elstner)
12209
12210 2003-01-04  Matthias Clasen  <maclas@gmx.de>
12211
12212         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
12213         and /*< private >*/ as appropriate.  (#97211)
12214
12215 2003-01-04  Tor Lillqvist  <tml@iki.fi>
12216
12217         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
12218         distribute gtk-zip.sh.in.
12219
12220         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
12221
12222 2003-01-03  Havoc Pennington  <hp@pobox.com>
12223
12224         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
12225
12226         * docs/text_widget_internals.txt: add a file documenting some of
12227         the text widget internals
12228
12229 2003-01-02  Matthias Clasen  <maclas@gmx.de>
12230
12231         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
12232         return NULL.  (#102069)
12233
12234 2003-01-01  Matthias Clasen  <maclas@gmx.de>
12235
12236         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
12237         a main() in the library is obviously bad. 
12238
12239 2002-12-27  Matthias Clasen  <maclas@gmx.de>
12240
12241         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
12242         cursor at drop point.  (#72384)
12243         (gtk_text_view_size_allocate): Update the horizontal adjustment
12244         value.  (#75694)
12245
12246 2002-12-25  Matthias Clasen  <maclas@gmx.de>
12247
12248         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
12249         selection wrt. to empty lines.  (#90435, #90582, #91619)
12250
12251         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
12252         Keep the cursor on screen.  (#96929)
12253
12254 2002-12-24  Matthias Clasen  <maclas@gmx.de>
12255
12256         * gtk/gtktextbuffer.c (paste_from_buffer): 
12257         (clipboard_text_received): Let the user action span the insertion
12258         and the deletion of the old selection.  (#82844)
12259
12260 2002-12-23  Matthias Clasen  <maclas@gmx.de>
12261
12262         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
12263         Don't call gtk_text_iter_backward_sentence_start() if
12264         count is zero.  (#99115)
12265
12266         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
12267         move_cursor() even if the cursor hasn't moved, since it has the
12268         side effect of canceling the selection.  (#81395, #98537, #98333)
12269
12270 2002-12-22  Matthias Clasen  <maclas@gmx.de>
12271
12272         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
12273         with empty ranges.  (fixes #101564 and #80637)
12274
12275 2002-12-21  Tor Lillqvist  <tml@iki.fi>
12276
12277         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
12278         sets the window style and extended window style, and adjusts the
12279         width and height to take the window decorations into account
12280         earlier. The adjusted width and height used to be ignored. Remove
12281         the local x, y, width and height variables, no need to further
12282         confuse the code by having local copies. (Partial fix, I hope, for
12283         #101588)
12284
12285         (gdk_window_move): When moving top-level windows, take title bar
12286         and border width into account, offsetting the coordinates before
12287         calling SetWindowPos().
12288
12289         (gdk_window_set_decorations, gdk_window_set_functions):
12290         Reimplement, taking into account the peculiar semantics of
12291         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
12292
12293         (gdk_window_get_decorations): Implement. (#98981)
12294         
12295         (gdk_window_set_type_hint): When setting
12296         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
12297         (#79036)
12298
12299         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
12300
12301 2002-12-21  Matthias Clasen  <maclas@gmx.de>
12302
12303         * gtk/gtktextview.c (gtk_text_view_set_background): New static
12304         function to set the background of all windows.
12305         (gtk_text_view_style_set): Use gtk_text_view_set_background().
12306         (gtk_text_view_state_changed): New function; change background
12307         according to state.  (#88126)
12308
12309 2002-12-21  Havoc Pennington  <hp@pobox.com>
12310
12311         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
12312