]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Make the arrow and separator regular children of an hbox inside the
[~andy/gtk] / ChangeLog.pre-2-4
1 2004-04-14  Matthias Clasen  <mclasen@redhat.com>
2
3         * gtk/gtkcombobox.c: Make the arrow and separator regular
4         children of an hbox inside the button, and propagate state
5         changes from the button to the cell view.  (part of the fix
6         for #138650, should also fix #137535)
7
8         * gtk/gtkcellview.c (gtk_cell_view_expose): Pass the PRELIT
9         state to gtk_cell_renderer_render() when prelighted. (part 
10         of the fix for #138650)
11
12         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
13         Use PRELIGHT state when appropriate.  (part of the fix for 
14         #138650)
15
16         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't spit 
17         out warnings if called before the combo box is 
18         realized.  (#139742, Philip Langdale)
19
20 Wed Apr 14 03:45:39 2004  Jonathan Blandford  <jrb@gnome.org>
21
22         * gtk/gtktreeview.c (gtk_tree_view_expose): propagate expose
23         events to children.
24
25 Wed Apr 14 03:32:58 2004  Jonathan Blandford  <jrb@gnome.org>
26
27         * gtk/gtkpathbar.c (make_directory_button): remove spurious
28         gtk_box_pack_start.
29
30 Tue Apr 13 16:19:23 2004  Jonathan Blandford  <jrb@redhat.com>
31
32         * gtk/gtkpathbar.c (make_directory_button): patch from Owen to
33         make the buttons sized by a bold label.  This makes the text
34         'swim' a little, but stops the buttons from resizing, #137210
35
36 2004-04-13  Matthias Clasen  <mclasen@redhat.com>
37
38         * gtk/gtkuimanager.c (get_child_node): Don't crash if a node 
39         has no name.
40         (start_element_handler): Accept separators without unique 
41         names.  (#133302, Anders Carlsson)
42
43         * gtk/gtkactiongroup.c (gtk_action_group_add_action): Document
44         possible accelerator gotcha when using this function.  (#139641, 
45         Christian Persch)
46
47         * gtk/gtkuimanager.c (node_remove_ui_reference): Don't leak
48         list nodes.  (#138862, Morten Welinder)
49
50 Tue Apr 13 12:24:49 2004  Jonathan Blandford  <jrb@redhat.com>
51
52         * gtk/gtktreeview.c (gtk_tree_view_destroy): remove unused
53         variable.
54         (gtk_tree_view_button_press): If we activated the row we don't
55         want to grab focus back, as moving focus to another widget is
56         pretty common, #138458
57
58 2004-04-12  Federico Mena Quintero  <federico@ximian.com>
59
60         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Added
61         documentation to all the signals.
62
63 2004-04-12  Matthias Clasen  <mclasen@dhcp64-228.boston.redhat.com>
64
65         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
66         model if it is NULL. (#139770)
67
68         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
69
70         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
71         a shadow inside the scrolled window, add it around the vbox.
72
73         * gtk/gtkentryprivate.h: 
74         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
75         Return a boolean indicating whether the popup is positioned above 
76         or below. Scroll the completions to the beginning or the end, 
77         depending on the positioning.
78
79         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
80         wrap around in the entry completion popup, and allow GDK_UP to 
81         enter the popup.  (#137440)
82
83 2004-04-12  Matthias Clasen  <mclasen@redhat.com>
84
85         * gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is 
86         there before using it.
87
88 Sun Apr 11 15:08:45 2004  Jonathan Blandford  <jrb@gnome.org>
89
90         * gtk/gtktreeprivate.h: Moved search entries into priv data.
91
92         * gtk/gtktreeview.c: Prep for type-ahead support.
93
94         (gtk_tree_view_destroy): Destroy the search window explicitly.
95         (gtk_tree_view_key_press): Minor change; prep for type-ahead
96         (gtk_tree_view_ensure_interactive_directory): New function
97         (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
98         (gtk_tree_view_real_start_interactive_search): rework
99         (gtk_tree_view_search_dialog_hide): ditto
100         (gtk_tree_view_search_delete_event): ditto
101         (gtk_tree_view_search_button_press_event): ditto
102         (gtk_tree_view_search_key_press_event): ditto
103         (gtk_tree_view_search_move): ditto
104         (gtk_tree_view_search_init): ditto
105
106         * gtk/gtktreeviewcolumn.c:
107         (gtk_tree_view_column_cell_layout_clear): remove unused variable.
108
109         * tests/testfilechooser.c: (main): change
110
111 2004-04-11  Hans Breuer  <hans@breuer.org>
112
113         * gdk/win32/gdkspawn-win32.c : workaround for bug #137496,
114         the real fix would involve just another small API breakage,
115         i.e. gdk_spawn_* using GPid not just gint.
116
117         * gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
118
119 2004-04-10  Tor Lillqvist  <tml@iki.fi>
120
121         * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state):
122         If both Shift and CapsLock pressed, ignore the shift only for
123         letters (that would have been affected by the CapsLock). (#139095)
124
125         * gdk/win32/gdkglobals-win32.c: Disable tablet support by default,
126         seems to be even buggier now than it used to be. (#138341)
127         Initialize _gdk_input_ignore_wintab to TRUE.
128
129         * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and
130         GDK_USE_WINTAB environment variable to turn on tablet support.
131
132 2004-04-09  Christian Persch  <chpe@cvs.gnome.org>
133
134         * gtk/gtkuimanager.c: (gtk_ui_manager_insert_action_group),
135         (gtk_ui_manager_remove_action_group): Terminate
136         g_object_[dis]connect() calls with NULL instead of 0.
137         Fixes #138997.
138
139 2004-04-09  Guntupalli Karunakar  <karunakar@freedomink.org>
140
141         * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
142
143 2004-04-07  Federico Mena Quintero  <federico@ximian.com>
144
145         Fix #132500.
146
147         * gtk/gtkfilesystem.c (gtk_file_system_parse): Ensure that the
148         passed-in 'str' is not NULL.
149
150         * gtk/gtkfilesystemunix.c (expand_tilde): New helper function;
151         expands "~/" or "~foo/" at the beginning of a filename.
152         (gtk_file_system_unix_parse): Use expand_tilde() before doing
153         anything else.
154
155         * gtk/gtkfilechooserentry.c
156         (gtk_file_chooser_entry_maybe_update_directory): Take in a
157         force_reload argument.
158         (gtk_file_chooser_entry_changed): If gtk_file_system_parse()
159         returns an error, set the file_part_pos to -1.
160         (load_directory_callback): Only populate the model if the
161         file_part_pos is not -1.
162
163 2004-04-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
164
165         * configure.in: Added Icelandic (is) to ALL_LINGUAS
166
167 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
168
169         * gtk/gtkfilechooserdefault.c (location_popup_handler): Use a
170         title for SAVE and CREATE_FOLDER modes.  Fixes #137272.
171
172         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Look
173         for G_DIR_SEPARATOR in the display_name, and err out if it is
174         present; use the same error message as Nautilus.  Fixes #136467.
175
176         * gtk/gtkfilechooserdefault.c (file_pane_create): Make the
177         new-folder button say "Create Fo_lder" rather than "Create
178         _Folder", so that the mnemonic doesn't conflict with the "Save in
179         _folder" label.  Fixes #136975.
180
181 2004-04-05  Federico Mena Quintero  <federico@ximian.com>
182
183         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Ref/sink the
184         buttons.  Also, free them correctly upon failure.  Based on a
185         patch by Morten Welinder, fixes #137956.
186
187 2004-04-05  Anders Carlsson  <andersca@gnome.org>
188
189         * gdk/gdk.c (gdk_arg_context_parse): Handle '--' correctly.
190
191 Fri Apr  2 17:57:33 2004  Jonathan Blandford  <jrb@redhat.com>
192
193         * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set the height
194         correctly for fixed height when inserting a node, #138082
195
196 2004-04-01  Federico Mena Quintero  <federico@ximian.com>
197
198         Fix #136077.
199
200         * gtk/gtkpathbar.h (struct _GtkPathBarClass): Add a
201         "child_is_hidden" boolean argument to the "path-clicked" signal.
202
203         * gtk/gtkpathbar.c (struct _ButtonData): Added a file_is_hidden
204         field.
205         (make_directory_button): Take a file_is_hidden argument; put it in
206         the ButtonData.
207         (_gtk_path_bar_set_path): See whether each path component path is
208         a hidden file.
209         (gtk_path_bar_class_init): Add the file_is_hidden argument to the
210         "path-clicked" signal.
211         (button_clicked_cb): See if the downwards button represents a
212         hidden file for the file_is_hidden argument in the signal
213         emission.
214
215         * gtk/gtkmarshalers.list: Added a signal type VOID:POINTER,BOOLEAN.
216
217         * gtk/gtkfilechooserdefault.c
218         (gtk_file_chooser_default_select_path): If we fail to switch
219         folders, don't try to select the path in the file system model.
220         Also, return the result from _gtk_file_system_model_path_do().
221         (gtk_file_chooser_default_select_path): Turn on show_hidden in the
222         file system model if we are asked to select a hidden file.
223         (path_bar_clicked): Show hidden files based on whether the
224         immediate downwards folder in the path bar is a hidden file
225         itself.
226         (struct _GtkFileChooserDefault): Added fields
227         browse_files_popup_menu and browse_files_popup_menu_hidden_files_item.
228         (create_file_list): Set an object data key of
229         "GtkFileChooserDefault" on the tree view so that we can find the
230         impl from the popup menu callbacks.  Also, hook up to the
231         "button-press-event" and "popup-menu" signals in the file list to
232         bring up a popup menu.
233         (list_popup_menu_cb): New callback.
234         (list_button_press_event_cb): New callback.
235
236         Fix #138763:
237
238         * gtk/gtkfilesystemmodel.c
239         (_gtk_file_system_model_new): Oops, connect_object to
240         "finished-loading".
241
242 2004-03-31  Tor Lillqvist  <tml@iki.fi>
243
244         * configure.in: Move AC_CANONICAL_HOST earlier, before the check
245         for native Win32. (#136559, J. Ali Harlow)
246
247         * gdk/win32/gdkdrawable-win32.c (draw_arc): Use X11 semantics for
248         angles. Thanks to Tim Newsham.
249
250 2004-03-29  Federico Mena Quintero  <federico@ximian.com>
251
252         Fix #137520.
253
254         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
255         for an ::is_finished_loading() method and a ::finished_loading()
256         signal at the end of the struct.
257
258         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
259         "finished-loading" signal.
260         (gtk_file_folder_is_finished_loading): New function.
261
262         * gtk/gtkfilesystemunix.c
263         (gtk_file_folder_unix_is_finished_loading): Implement.
264
265         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
266         slot for a "finished-loading" signal.
267         (gtk_file_system_model_class_init): Create the "finished-loading"
268         signal.
269         (struct _GtkFileSystemModel): New field
270         idle_finished_loading_source.  We emit the "finished-loading"
271         signal in an idle if the root folder was done loading right in
272         _gtk_file_system_model_new(), so that the caller has a chance to
273         connect to the signal.
274         (_gtk_file_system_model_new): Connect to the normal signals of the
275         folder even if the initial _list_children() fails.  Also, see if
276         the folder is finished loading; connect to the "finished-loading"
277         signal otherwise.
278         (gtk_file_system_model_finalize): Remove the idle handler.
279
280         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
281         and connect to the model's "finished-loading" signal.
282         (get_toplevel): New helper function.
283         (error_message): Use get_toplevel().
284         (trap_activate_cb): Likewise.
285         (location_popup_handler): Likewise.
286         (set_busy_cursor): New function.
287         (browse_files_model_finished_loading_cb): New callback.
288
289 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
290
291         * gtk/gtkfilechooserdefault.c (check_preview_change): Just use the
292         file under the cursor; we don't need the logic from
293         GtkFileSelection after all.  Fixes #132255.
294
295 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
296
297         * gtk/gtkfilechooserdefault.c (location_entry_create): Fill the
298         location entry with the display name of the file under the cursor
299         for Open mode, or the typed filename in Save mode.
300
301 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
302
303         * gtk/gtkfilesystemwin32.c
304         (filename_is_root): Bare drive designators (eg., "c:") are
305         no longer considered as root filenames.  Fixed #137942
306
307 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
308
309         * gtk/gtkfilesystemwin32.c
310         (gtk_file_system_win32_create_folder): Invert test for error in
311         mkdir.  Fixes #137945
312
313 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
314
315         Fixed #138004 using Federico's code from #132327.
316
317         * gtk/gtkfilesystemwin32.c (struct _GtkFileSystemWin32): Add a
318         folder_hash field to keep a list of live folder objects.
319         (gtk_file_system_win32_init): Create the folder_hash.
320         (gtk_file_system_win32_finalize): Destroy the folder_hash.
321         (gtk_file_system_win32_get_folder): Ref and return an existing
322         folder if we have it around, otherwise return a new folder object.
323         (struct _GtkFileFolderWin32): Add a field for the parent file system.
324         (gtk_file_folder_win32_finalize): Remove the folder from the file
325         system's hash table.
326         (gtk_file_system_win32_create_folder):  Emit "files-added" on the
327         newly-created folder's parent.  Fixes #138004.
328
329 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
330
331         * gtk/gtkfilesystemwin32.c
332         (gtk_file_system_win32_get_folder): Test that path is actually
333         a directory and throw error if not. Fixed bug #137950
334
335 2004-03-22  J. Ali Harlow  <ali@juiblex.co.uk>
336
337         * gtk/gtkfilesystemwin32.c
338         (gtk_file_system_win32_volume_get_display_name): Ignore empty
339         volume labels; assume that GetVolumeInformation would fail if
340         GetVolumeInformationW does; catches a small memory leak;
341         pass the buffer size to GetVolumeInformationW in wide
342         characters instead of bytes. Fixes bug #137543
343         (list_volumes): Cope with the theoretical possibility of
344         more than 26 logical drives. Fixes bug #137940
345         (bookmarks_serialize): Now actually removes bookmarks.
346         Fixes bug #137943
347
348 2004-03-22  Guntupalli Karunakar  <karunakar@freedomink.org>
349
350         * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
351
352 2004-03-21  Tor Lillqvist  <tml@iki.fi>
353
354         * gtk/gtkfilesystemwin32.c
355         (gtk_file_system_win32_volume_get_base_path): Include the
356         backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
357         NULL for a volume base path, as g_filename_to_uri() requires an
358         absolute path, and just a drive letter and colon isn't. (#137543)
359
360 2004-03-20  Hans Breuer  <hans@breuer.org>
361
362         * gtk/gtkfilesystemwin32.c : applied the undisputable and
363         required [due to recent gtkfilesystem internal api semantic 
364         changes] part of patches to fix bug #137543 (Tor Lillqvist,
365         J. Ali Harlow)
366
367         * gdk/gdkevents-win32.c (handle_configure_event) :
368              (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize
369         GdkWindowObject::x, y with screen coords to make 
370         gdk_window_get_position () return the right thing and thus fix
371         drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
372
373 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
374
375         * Revert the patch to #137520, as 2.4.1 is for conservative bug
376         fixes only.  The patch is attached to the bug report, for
377         reference.
378
379 2004-03-19  Morten Welinder  <terra@gnome.org>
380
381         * gtk/gtkfilechooserdefault.c
382         (gtk_file_chooser_default_set_current_folder): Test existance of
383         the path after checking for locality, if needed.
384
385 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
386
387         Fix #137520.
388
389         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
390         for an ::is_finished_loading() method and a ::finished_loading()
391         signal at the end of the struct.
392
393         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
394         "finished-loading" signal.
395         (gtk_file_folder_is_finished_loading): New function.
396
397         * gtk/gtkfilesystemunix.c
398         (gtk_file_folder_unix_is_finished_loading): Implement.
399
400         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
401         slot for a "finished-loading" signal.
402         (gtk_file_system_model_class_init): Create the "finished-loading"
403         signal.
404         (struct _GtkFileSystemModel): New field
405         idle_finished_loading_source.  We emit the "finished-loading"
406         signal in an idle if the root folder was done loading right in
407         _gtk_file_system_model_new(), so that the caller has a chance to
408         connect to the signal.
409         (_gtk_file_system_model_new): Connect to the normal signals of the
410         folder even if the initial _list_children() fails.  Also, see if
411         the folder is finished loading; connect to the "finished-loading"
412         signal otherwise.
413         (gtk_file_system_model_finalize): Remove the idle handler.
414
415         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
416         and connect to the model's "finished-loading" signal.
417         (get_toplevel): New helper function.
418         (error_message): Use get_toplevel().
419         (trap_activate_cb): Likewise.
420         (location_popup_handler): Likewise.
421         (set_busy_cursor): New function.
422         (browse_files_model_finished_loading_cb): New callback.
423
424 Thu Mar 18 12:10:45 2004  Owen Taylor  <otaylor@redhat.com>
425
426         * gtk/gtktreeitem.c (gtk_tree_item_forall): Include 
427         eventbox for expander. (#137564, reported by
428         Jacques Garrigue)
429
430 2004-03-18  Guntupalli Karunakar  <karunakar@freedomink.org>
431
432         * mr.po: Added "mr" for Marathi to ALL_LINGUAS.
433
434 2004-03-17  Morten Welinder  <terra@gnome.org>
435
436         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
437         volumes not actually put into the shortcut list.
438
439         * tests/prop-editor.c (object_changed): Plug leak.
440
441         * tests/testfilechooser.c (main): Plug some leaks and expose
442         others.
443
444         * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip
445         object.  Fixed #136652.
446
447         * gtk/gtkfilechooserdefault.c (check_icon_theme): Do nothing if we
448         have no screen.  Fixes #137260.
449         (shortcuts_add_bookmark_from_path): Simplify using check_is_folder
450         thereby fixing leak.  Fixes #137259.
451
452         * gtk/gtkpathbar.c (gtk_path_bar_forall): Make this work when the
453         slider buttons have been destroyed.
454         (gtk_path_bar_remove): Make this work for slider buttons too.
455         Fixes #137257
456
457 2004-03-15  Morten Welinder  <terra@gnome.org>
458
459         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
460         Sanitize and plug leak.
461         (check_icon_theme): Only do something if the widget has a screen.
462
463 Wed Mar 17 01:20:28 2004  Matthias Clasen  <maclas@gmx.de>
464
465         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
466         Move the repositioning logic from _gtk_entry_completion() popup
467         over here. Fixes #137355, reported by Niklas Knutsson.
468
469 Tue Mar 16 13:29:58 2004  Owen Taylor  <otaylor@redhat.com>
470
471         * === Released 2.4.0 ===
472
473         * configure.in: Version 2.4.0, interface age 0; 
474         require glib-2.4.0, pango-1.4.0.
475
476         * configure.in: Change gtk_binary_version to 2.4.0;
477         there are some compatibility issues with older theme engines.
478         
479         * NEWS: Updates
480
481         * README.in: Updates
482
483 Tue Mar 16 13:54:07 2004  Jonathan Blandford  <jrb@redhat.com>
484
485         * gtk/gtkentry.c (gtk_entry_completion_key_press): Block the
486         ::changed handler during the ::match-selected when done by
487         keyboard.
488
489 Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
490
491         * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
492         Block the ::changed handler during the emission of ::match-selected.
493         Partial fix for #137226.
494
495         * gtk/gtkfilechooserentry.c: Remove the no longer needed 
496         no_pop_down flag.
497
498 Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
499
500         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
501         Fix a typo in the docs.
502
503 2004-03-15  Tor Lillqvist  <tml@iki.fi>
504
505         * README.win32: Updates.
506
507 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
508
509         * gtk/gtkfilechooserdefault.c (update_appearance): Only hide the
510         "create folder" button in OPEN mode; all the others should show it
511         it.
512         (get_paths_foreach): Handle the editable row.
513
514         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder):
515         Force a re-get of the folder so that the new directory gets added
516         to its hash table of file info.
517
518 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
519
520         * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
521         modes, set the Name entry of the file chooser if we get a
522         nonexistent filename from the file entry.  Fixes #135911.
523         (gtk_file_chooser_default_set_current_name): Oops, this should
524         also work if we are in CREATE_FOLDER mode.
525
526         * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
527         gtk_file_path_copy().
528
529         * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
530         path that we got from the model.
531         (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
532         hard-coded constant.
533
534 Mon Mar 15 13:50:14 2004  Owen Taylor  <otaylor@redhat.com>
535
536         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
537         Don't leak the temporary font description. (Nils O. SelÃ¥sdal)
538
539 Mon Mar 15 12:51:17 2004  Jonathan Blandford  <jrb@gnome.org>
540
541         * gtk/gtkfilechooserdefault.c (location_popup_handler): Only show
542         the title string in OPEN/SELECT_FOLDER mode as it's open-specific.
543         Put a blank title for SAVE/CREATE_FOLDER; we are in string freeze,
544         so we'll fix it for 2.4.1 as #137272.
545
546         * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): calculate
547         space_available correctly for RTL mode.  w/o this, you can't
548         scroll down again.  Fixes #137021.
549
550 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
551
552         * gtk/gtkpathbar.c (gtk_path_bar_scroll_up): Queue a resize.
553         (gtk_path_bar_scroll_down): Likewise.
554
555 Mon Mar 15 11:40:43 2004  Owen Taylor  <otaylor@redhat.com>
556
557         * gtk/gtkfilechooserentry.c: Store the position of the 
558         file part and use that in check_completion_callback()
559         and match_selected_callback() to figure out where
560         to operate on the text, rather than recomputing the
561         information.
562
563 Mon Mar 15 10:35:19 2004  Jonathan Blandford  <jrb@gnome.org>
564
565         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): set
566         changing_folders to be true so we don't trigger a callback when we
567         remove the selection
568         (shortcuts_add_bookmarks): ditto
569
570 Mon Mar 15 10:47:18 2004  Owen Taylor  <otaylor@redhat.com>
571
572         * gtk/gtkfilechooserentry.c: s/seperator/separator/.
573
574 Mon Mar 15 09:54:36 2004  Owen Taylor  <otaylor@redhat.com>
575
576         * gtk/gtklabel.c (gtk_label_focus): Check for 
577         Control-Tab or Control-Shift-Tab, not any Control-key
578         as a current event ... handles the case where a dialog
579         is triggered from a control accelerator better.
580
581 Mon Mar 15 08:48:48 2004  Jonathan Blandford  <jrb@gnome.org>
582
583         * gtk/gtkfilechooserentry.c (match_selected_callback): implement
584         correctly.
585         (completion_match_func): Allow surpressing popdowns.
586         (maybe_append_seperator_to_path): New function to add a separator
587         item to a display_name.  Bad hack.
588         (check_completion_callback): Implement select-ahead as an idle.
589         (add_completion_idle): new function to handle select-ahead
590         (gtk_file_chooser_entry_do_insert_text): starf the select-ahead
591         idle.
592         (gtk_file_chooser_entry_focus): Override tab for completion.
593         (gtk_file_chooser_entry_activate): commit select_ahead when
594         activated.
595
596         * gtk/gtkfilechooserdefault.c (location_popup_handler): grab the
597         appropriate widget for the mode.
598
599 2004-03-15  Tor Lillqvist  <tml@iki.fi>
600
601         * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole
602         GdkGCWin32 with a single assignment, that overwrites GObject's
603         private data (for instance ref_count). (#137012, John Ehresman)
604
605 2004-03-15  Mark McLoughlin  <mark@skynet.ie>
606
607         * gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
608         GtkFileChooserDefault member. Leftover from my original patch
609         for bug #136987.
610
611 Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
612
613         * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
614         API more correctly.  Now pops down the dropdown well.
615
616         * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
617         FilePath.
618
619         * test/testfilechooser.c: disable preview widget temporarily.
620         It's not representative of a good preview widget.
621
622 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
623
624         * gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
625         Renamed from shortcuts_unselect_all(); now selects the row that
626         corresponds to the current folder, if any.  Fixes #135916.
627
628         * gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
629         _gtk_path_bar_down().
630
631 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
632
633         * gtk/gtkfilechooserdefault.c: Surround the
634         drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
635         too unstable right now.
636
637 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
638
639         * gtk/gtkfilechooserdefault.c: Implement local_only by
640         filtering the shortcuts and bookmarks list by 
641         gtk_file_system_path_to_filename (file_system, path) != NULL.
642         (#132894)
643
644         * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
645         a convenience function, may by interesting to push to the 
646         file system vtable later for performance.
647
648 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
649
650         * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
651         to be NULL, so that people can ask for information about a
652         parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
653
654         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
655         the condition describe above.
656
657         * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
658         information of root paths.
659
660         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
661
662 Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
663
664         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
665         GtkTreeViewSearchEqualFunc return value oddity here as well.
666
667         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
668         to get a string to compare to, return TRUE (no match), not 
669         FALSE (match). Handle %NULL string values gracefully.
670         Remove unused variable. (#135962, Mark McLoughlin)
671
672 2004-03-14  Morten Welinder  <terra@gnome.org>
673
674         * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
675
676 Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
677
678         * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
679         _gtk_path_bar_down().
680
681         * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
682         _gtk_path_bar_down() as bindings for Alt-Up
683         and new Alt-Down. (Partly based on a patch by
684         Mark McLoughlin, #136987)
685
686 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
687
688         Fixes #136185, patch by Morten Welinder, with some changes.
689
690         * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
691         (shortcuts_insert_path): Check the path first with check_is_folder().
692         (gtk_file_chooser_default_set_current_folder): Likewise.
693         (gtk_file_chooser_default_add_shortcut_folder): Likewise.
694         (browse_widgets_create): Unref the size group.
695
696         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
697         Handle the case where the file exists but it is not a directory.
698         (IconType): Add value for ICON_UNDECIDED.
699         (struct stat_info_entry): New structure to hold a file's struct
700         stat, its MIME type and its icon type.
701         (struct _GtkFileFolderUnix): Added a hash of struct
702         stat_info_entry, and flags to remember which info types we've read
703         so far.
704         (get_icon_type): Use a helper function for the icons-from-stat
705         types.
706         (gtk_file_system_unix_render_icon): Use the cached file info.
707         (gtk_file_folder_unix_get_info): Put the info in the cache.
708         (gtk_file_system_unix_get_folder): Create the cache of file info
709         structures.
710
711         * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
712         case where display_name is the same as the existing
713         info->display_name.
714
715 Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
716
717         #136672, reported by Christian Persch; fixes based
718         on a patch by Soeren Sandmann.
719
720         * gtk/gtkmenu.c: Change the handling of mixed gridded
721         and non-gridded menu items; the old method was causing
722         major performance problems even with the "avoid relayout
723         on destruction" hack put in recently.
724
725         Now we first lay out the gridded items and then put the 
726         non-gridded items into empty rows / after the gridded items. 
727         Layout is done in a central menu_shell_ensure_layout(). Also
728         avoid emitting property notifications when we initially
729         insert or attach items.
730         
731         * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
732         unused menu_shell->menu_flag, and document it as unused
733         in the header.
734
735         * tests/testactions.c: Add a test of creating/removing
736         lots of items.
737
738         * test/testgtk.c: Add some more cruft to the menu test.
739
740 Mon Mar 15 02:36:07 2004  Matthias Clasen  <maclas@gmx.de>
741
742         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
743         some signal docs.
744
745 Sun Mar 14 15:38:39 2004  Jonathan Blandford  <jrb@gnome.org>
746
747         * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
748         always use the match_func, even if text_column is set.
749
750 2004-03-14  Morten Welinder  <terra@gnome.org>
751
752         * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
753         "".
754         (gtk_file_system_unix_get_folder): Use the same value for lookup
755         as for insertion.  Make sure we have a directory.
756
757         * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
758         path; don't crash on NULL error.
759
760 2004-03-14  Hans Breuer  <hans@breuer.org>
761
762         gtk/gtkcombobox.c : prototype cell_view_sync_cells() before 
763         first usage
764
765         gtk/makefile.msc.in : updated 'gtk_public_h_sources'
766
767         tests/makefile.msc : added testspinbutton
768
769 Sun Mar 14 01:01:18 2004  Matthias Clasen  <maclas@gmx.de>
770
771         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
772         this function with gtk_tree_view_column_set_cell_data();
773         call the cell data func after setting the attributes.
774
775 Sun Mar 14 01:00:08 2004  Matthias Clasen  <maclas@gmx.de>
776
777         * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
778         make sure not to call gtk_cell_view_set_cell_data() when
779         displayed_row is NULL.
780
781 Sat Mar 13 18:13:13 2004  Owen Taylor  <otaylor@redhat.com>
782
783         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
784         wrapping, do the offset of the line for justification ourselves.
785         (#120256, Felipe Heidrich)
786
787 Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>
788
789         * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
790         model-less use of GtkCellView shown in testcombo.c.
791
792 2004-03-13  Tor Lillqvist  <tml@iki.fi>
793
794         * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
795         when compiling with gcc. Mingw's headers do have the required
796         definitions.
797
798         * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
799         filled polygons, don't draw the outline, similarily as
800         draw_rectangle(). Apparently GTK and GIMP don't use
801         gdk_draw_polygon() much (or always draw the outline, too), as this
802         has gone undetected for so long. Thanks to Bruce Hochstetler.
803
804 Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
805
806         * gtk/gtkwindow.c (gtk_window_destroy): Remove
807         the window from the toplevel_list here rather in destroy.
808         While this is theoretically speaking wrong, it fits
809         in better with the current reality that destroyed
810         widgets are not reusable. (#126808, Michael Natterer)
811
812 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
813
814         * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
815         beyond clearing to the background if there is no active row.
816         (#137066, reported by Owen Taylor)
817
818 Sat Mar 13 21:37:44 2004  Matthias Clasen  <maclas@gmx.de>
819
820         * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
821         list when an item is selected via the keyboard.
822
823 2004-03-13  Anders Carlsson  <andersca@gnome.org>
824
825         * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
826         (gtk_file_system_unix_get_folder),
827         (gtk_file_system_unix_create_folder), (get_parent_dir),
828         (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
829         Remove trailing slashes in path names.
830         
831 Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
832
833         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
834         this a total no-op when the new or old parent is
835         destroyed. (#134230, patch from Soeren Sandmann)
836
837         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
838         For foreign windows in our heirarchy, call
839         _gdk_windowing_window_destroy_foreign (window) and skip
840         all the normal destruction logic.
841
842         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
843         Move code to request destruction of a foreign window
844         code into a separate _gdk_windowing_window_destroy_foreign().
845
846         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
847         Call GDK_WINDOW_DISPLAY() on the wrapper not on the
848         impl. (Also from Soeren's patch)
849
850 Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
851
852         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
853         GTK_IS_PLUG toplevels, call gdk_window_get_origin() 
854         not gtk_window_get_position, as a hackround for not
855         having accurate notification of window position for
856         embedded windows. (#136112, Dan Winship)
857
858 Sat Mar 13 10:34:03 2004  Owen Taylor  <otaylor@redhat.com>
859
860         * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
861         it causes problems for pastes from other applications; see
862         comments in bugzilla for #81880.
863
864 Sat Mar 13 02:55:51 2004  Matthias Clasen  <maclas@gmx.de>
865
866         Fix middle button pasting in the TextView  (#81880, reported
867         by Evert Verhellen, patch by Paolo Borelli):
868         
869         * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve 
870         the insert mark and move the cursor to it making sure of also 
871         scroll the window if needed.
872         
873         * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
874         to the insertion point.
875
876 Sat Mar 13 01:38:55 2004  Matthias Clasen  <maclas@gmx.de>
877
878         * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove 
879         implemenatation which restores the cell_view when the custom 
880         child is removed.  (#136555, Owen Taylor)
881
882 Sat Mar 13 00:07:51 2004  Matthias Clasen  <maclas@gmx.de>
883
884         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear): 
885         Keep the cell_list in a consistent state while iterating over it, 
886         since clear_attributes() also iterates over it.  (another instance
887         of #136585, Morten Welinder)
888         
889 Fri Mar 12 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
890
891         * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
892         and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
893         Semion Chichelnitsky)
894
895         * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed 
896         gtk_toolbar_direction-changed handlers and explicit
897         flipping of GtkArrow widgets.
898
899 Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
900
901         * gtk/gtkfilechooserdialog.c
902         (file_chooser_widget_default_realized_size_changed): Clamp the
903         new size to the screen.
904
905 Fri Mar 12 15:06:44 2004  Owen Taylor  <otaylor@redhat.com>
906
907         * gtk/gtkexpander.c (gtk_expander_realize): Create the
908         event_window at the right size using the same logic as
909         in size_allocate. (#136994, Niklas Knuttson)
910
911 2004-03-12  Federico Mena Quintero  <federico@ximian.com>
912
913         * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
914         return value of gtk_widget_activate().
915         (gtk_window_activate_default): Likewise.  Fixes #137008.
916
917         * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
918         response IDs we recognize, rather than bailing out on cancellation
919         ones.  Fixes #136237; patch by Olivier Andrieu
920         <oliv__a@users.sourceforge.net>.
921         (file_chooser_widget_file_activated): If the dialog doesn't have a
922         default widget, try to find a suitable response widget on our own.
923         People should *really* be using gtk_dialog_set_default_response(),
924         but this is to help lazy programmers.
925
926         * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
927         internal function.
928         (get_response_data): Add a "create" argument so that we don't
929         unconditionally create the response data.
930
931 2004-03-12  Morten Welinder  <terra@gnome.org>
932
933         * tests/Makefile.am: Add new testspinbutton.c
934
935 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
936
937         * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
938         Put the trash icon on the right for LTR locales, or on the left
939         for RTL.
940         (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
941         (shortcuts_drag_leave_cb): Test whether the idle is present.
942         (shortcuts_drag_data_received_cb): Ahem, don't assert here.
943
944 Thu Mar 11 17:51:10 2004  Owen Taylor  <otaylor@redhat.com>
945
946         * modules/input/gtkimcontextxim.c (preedit_done_callback):
947         Clear preedit string and emit preedit_changed as needed
948         on AIX. (#130617, Philip K Warren)
949
950 2004-03-11  Morten Welinder  <terra@gnome.org>
951
952         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
953
954 Thu Mar 11 16:28:15 2004  Owen Taylor  <otaylor@redhat.com>
955
956         * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
957         type. (#136919, Tim Mooney)
958
959 Thu Mar 11 16:18:51 2004  Jonathan Blandford  <jrb@redhat.com>
960
961         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
962         earlier change to insert_path so that we test that the directory
963         exists.
964
965         * gtk/gtkfilechooserdialog.c
966         (gtk_file_chooser_dialog_constructor): move focus.
967
968 Thu Mar 11 22:12:14 2004  Matthias Clasen  <maclas@gmx.de>
969
970         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
971         logic as GtkEntry when calculating border width.  (#116368, reported
972         by Morten Welinder)
973
974 Thu Mar 11 15:59:05 2004  Owen Taylor  <otaylor@redhat.com>
975
976         * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
977         rather than gtk_widget_set_size_request().
978
979 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
980
981         * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
982         function, copied from gtkpathbar.c.
983         (gtk_file_chooser_default_dispose): Use remove_settings_signal()
984         rather than our own code.
985         (gtk_file_chooser_default_screen_changed): Use
986         remove_settings_signal(); this should handle per-screen settings
987         correctly.
988
989 Thu Mar 11 14:07:18 2004  Owen Taylor  <otaylor@redhat.com>
990
991         * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
992         value.
993
994 Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
995
996         * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
997         put-labels-into-the-standard-focus-chain patches 
998         from bug #59707.
999
1000         * gtk/gtklabel.c (gtk_label_focus): Only put the
1001         label in the tab chain when the control key is pressed.
1002
1003 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
1004
1005         * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
1006         single OK button, not a Close button, as per the HIG.
1007
1008         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
1009
1010 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
1011
1012         * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
1013         initialize "action" before jumping.  Fixes #136900.
1014
1015 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
1016
1017         * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
1018         application properties. Fixes bug #136802.
1019
1020 2004-03-11  Dov Grobgeld  <dov@imagic.weizmann.ac.il>
1021
1022         * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
1023         call to gtk_text_layout_update_cursor_line() to solve in 
1024         problem of switching keyboard direction at widget creation:
1025         bug #136680
1026
1027 Thu Mar 11 10:28:30 2004  Owen Taylor  <otaylor@redhat.com>
1028
1029         * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
1030         stray 'return' statement. (#136855, David L. Cooper II)
1031
1032 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
1033
1034         * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
1035         fg color for drawing the expander when prelit. Fixes problem
1036         with the HighContrast theme: bug #136789.
1037
1038 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
1039
1040         Fix #135912 and #135913.
1041
1042         * gtk/gtkfilechooserdefault.c
1043         (shortcuts_filter_model_row_draggable): Implement.
1044         (shortcuts_model_filter_new): New function, create a
1045         ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
1046         we can implement our own DnD interface methods.
1047         (shortcuts_model_create): Use shortcuts_model_filter_new().
1048         (shortcuts_list_create): Enable the shortcuts list as a drag
1049         source.
1050         (file_list_source_targets): Renamed from shortcuts_targets.
1051         (shortcuts_list_create): Change the options for
1052         gtk_drag_dest_set().  Connect to more drag signals so that we can
1053         implement drops by hand.
1054         (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
1055         (shortcuts_drag_motion_cb): New handler; validate the drop.
1056         (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
1057         (shortcuts_drag_drop_cb): New handler; just stop the emission and
1058         remove the idle handler for the drag cursor.
1059         (shortcuts_add_bookmark_from_path): Add a position argument,
1060         return a boolean success code.
1061         (shortcuts_drag_data_received_cb): Handle two cases:  1) Insert
1062         the bookmarks at the proper position, rather than always appending
1063         them to the list; 2) alternatively, reorder the bookmarks.
1064         (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
1065         (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
1066         (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
1067         an idle handler.
1068         (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
1069
1070 Thu Mar 11 01:08:25 2004  Jonathan Blandford  <jrb@gnome.org>
1071
1072         * gtk/gtkfilechooserdefault.c (location_entry_create): up the
1073         width of the entry a tad.
1074
1075         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
1076         gtk_entry_completion_selection_changed.  Also, unref the
1077         completion as we were leaking a reference to it.
1078
1079 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
1080
1081         * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon.  Thanks to
1082         Kjartan Maraas for pointing it out.
1083
1084 Wed Mar 10 23:40:15 2004  Matthias Clasen  <maclas@gmx.de>
1085
1086         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
1087         background on the action view cell renderer here, not in init, so 
1088         that a) we catch style changes, and b) we get the real style, not 
1089         the default one. Partial fix for #127648, reported by Dave Bordoley.
1090
1091 2004-03-10  Tor Lillqvist  <tml@iki.fi>
1092
1093         * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
1094         the pointer button bits. (#136636, Dave Neary)
1095
1096         * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
1097         transparent (input only) windows using SetWindowPos(). (#132331,
1098         John Ehresman)
1099
1100         (gdk_window_set_type_hint): For splash screens, remove the resize
1101         handles, menu, and minimize/maximize/close buttons. (#132896)
1102
1103 Wed Mar 10 22:30:23 2004  Matthias Clasen  <maclas@gmx.de>
1104
1105         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
1106         cell_list in a consistent state while iterating over it, since
1107         clear_attributes() also iterates over it.  (#136585, Morten Welinder)
1108
1109 2004-03-10  Mark McLoughlin  <mark@skynet.ie>
1110
1111         * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
1112         the expose to the label. The expose handler for GtkContainer
1113         already does that. Fixes bug #136719. Reported by Dennis
1114         Cranston, exact cause nailed down by Owen.
1115
1116 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
1117
1118         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
1119         untranslatable "%x" for dates, rather than a custom format.  Fixes
1120         #136357.
1121
1122 2004-03-10  Morten Welinder  <terra@gnome.org>
1123
1124         * gtk/gtkfilechooserdefault.c
1125         (gtk_file_chooser_default_add_shortcut_folder): Test validity of
1126         path here.
1127         (shortcuts_insert_path): Don't check here.
1128         (get_file_info): Barf if name-only fails.
1129
1130         * tests/testfilechooser.c (main): Add support for --multiple.
1131
1132 Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
1133
1134         * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
1135         (remove_settings_signal), (gtk_path_bar_dispose),
1136         (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
1137         (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
1138         (settings_notify_cb), (gtk_path_bar_check_icon_theme),
1139         (get_button_image), (gtk_path_bar_update_button_appearance),
1140         (make_directory_button), (gtk_path_bar_check_parent_path): Support
1141         changes in icon themes.
1142
1143         * gtk/gtkpathbar.h: add two elements
1144
1145         * tests/testfilechooser.c: (main): use gnome-vfs method again to
1146         get more testing.
1147
1148 Wed Mar 10 01:17:40 2004  Jonathan Blandford  <jrb@gnome.org>
1149
1150         * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes.  We
1151         don't have any more untranlated strings in the dialog.
1152
1153 Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>
1154
1155         * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
1156         the pathname for UTF-8 safety.
1157
1158 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
1159
1160         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
1161         check to see if the shortcuts exists.  We don't want to put
1162         invalid dirs in the shortcuts pane.
1163
1164 Tue Mar  9 16:40:34 2004  Jonathan Blandford  <jrb@gnome.org>
1165
1166         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1167         remove unneeded shortuts_swin;
1168
1169 Wed Mar 10 01:49:27 2004  Matthias Clasen  <maclas@gmx.de>
1170
1171         Fix #136614 in a better way:
1172         
1173         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
1174         * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
1175         * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
1176         * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
1177         alignment if priv->align_set is set.
1178         * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
1179
1180 Wed Mar 10 01:21:05 2004  Matthias Clasen  <maclas@gmx.de>
1181
1182         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
1183         grid mode popups left aligned, not right aligned.
1184
1185 Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
1186
1187         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
1188         the label that is reparented from the menuitem.  (#136614, Dennis
1189         Cranston)
1190
1191 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
1192
1193         * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
1194         information about a button in a struct instead of ugly
1195         g_object_set_data.
1196         (gtk_path_bar_size_request): Use ButtonData.
1197         (gtk_path_bar_update_slider_buttons): ditto
1198         (gtk_path_bar_size_allocate): ditto
1199         (gtk_path_bar_remove): ditto
1200         (gtk_path_bar_forall): ditto
1201         (gtk_path_bar_scroll_down): ditto
1202         (gtk_path_bar_clear_buttons): ditto
1203         (button_clicked_cb): ditto.  Also, add an ignore_changes variable
1204         (button_data_free): destroy ButtonData
1205         (update_button_appearance): Use ButtonData
1206         (make_directory_button): ditto
1207         (gtk_path_bar_check_parent_path): ditto
1208         (_gtk_path_bar_set_path): ditto
1209
1210 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
1211
1212         Fix #136533.
1213
1214         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
1215         function.
1216         (check_icon_theme): New helper function, installs a handler for
1217         changes in the icon theme.
1218         (gtk_file_chooser_default_style_set): Use check_icon_theme().
1219         (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
1220         (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
1221         (change_icon_theme): New function, updates impl->icon_size and
1222         reloads the icons.
1223         (struct _GtkFileChooserDefault): New field settings_signal_id.
1224         (struct _GtkFileChooserDefault): New field icon_size.
1225         (shortcuts_insert_path): Use impl->icon_size.
1226         (list_icon_data_func): Likewise.
1227
1228 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
1229
1230         * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
1231         parent_path being NULL.  Fixes #136662.
1232
1233 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
1234
1235         * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
1236         Stop the emission so that GtkTreeView's handler won't try to poke
1237         the filter model.  Fixes #136127.
1238
1239 Tue Mar  9 13:49:14 2004  Owen Taylor  <otaylor@redhat.com>
1240
1241         * gtk/gtkstyle.c (gtk_paint_polygon): Fix 
1242         g_return_if_fail() that was checking draw_shadow.
1243         (#136669, Morten Welinder)
1244
1245 Tue Mar  9 09:57:25 2004  Owen Taylor  <otaylor@redhat.com>
1246
1247         * === Released 2.3.6 ===
1248
1249         * configure.in: Version 2.3.6, interface age 0.
1250
1251         * NEWS: Updates
1252
1253 Tue Mar  9 11:01:45 2004  Jonathan Blandford  <jrb@gnome.org>
1254
1255         * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
1256         icon.  Reported by Michael Natterer <mitch@gimp.org>.
1257
1258 2004-03-09  Morten Welinder  <terra@gnome.org>
1259
1260         * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
1261
1262 Tue Mar  9 02:11:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1263
1264         * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
1265         (struct _GtkMenuPrivate): Add boolean destroying
1266         (gtk_menu_destroy): Set priv->destroying
1267         (gtk_menu_remove): don't update the table information when the
1268         menu is being destroyed.
1269
1270         * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
1271
1272         * gtk/gtktoolbar.[ch]: Some formatting fixes
1273
1274 Tue Mar  9 01:25:10 2004  Matthias Clasen  <maclas@gmx.de>
1275
1276         * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
1277
1278 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1279
1280         Fixes #136080.
1281
1282         * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
1283         ENOENT.
1284         (filename_get_info): Likewise.
1285
1286 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1287
1288         * gtk/gtkfilechooserdefault.c
1289         (gtk_file_chooser_default_initial_focus): Use
1290         gtk_tree_view_set_cursor().
1291
1292 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1293
1294         Patch "1a" from #136185, by Morten Welinder.
1295
1296         * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
1297         that says whether the caller just wants the display name.
1298         (shortcuts_insert_path): We only want the name in the call to
1299         get_file_info().
1300
1301         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
1302         info than needed from the file_folder.
1303
1304 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1305
1306         Fixes #136105.
1307
1308         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1309         Added an ::initial_focus() method.
1310
1311         * gtk/gtkfilechooserembed.c
1312         (_gtk_file_chooser_embed_delegate_iface_init): Set the
1313         initial_focus method.
1314         (delegate_initial_focus): Implement.
1315         (_gtk_file_chooser_embed_initial_focus): New function.
1316
1317         * gtk/gtkfilechooserdialog.c
1318         (gtk_file_chooser_dialog_constructor): Call
1319         _gtk_file_chooser_embed_initial_focus().
1320
1321         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1322         Install the ::initial_focus() handler.
1323         (gtk_file_chooser_default_initial_focus): Implement.
1324
1325 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1326
1327         * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
1328         boolean success code.
1329         (location_popup_handler): Refocus the file chooser if appropriate.
1330         Fixes #135905.
1331         (save_widgets_create): Don't set the text of the save_folder_label
1332         here.
1333         (update_appearance): Set the text here as appropriate for the save
1334         mode.  Also fixes #136387.
1335         (update_appearance): Don't show the Create Folder button in
1336         SELECT_FOLDER mode.
1337         (update_appearance): Show the extra widget in all Save modes
1338         correctly.
1339
1340 Mon Mar  8 11:57:27 2004  Owen Taylor  <otaylor@redhat.com>
1341
1342         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
1343         call g_signal_handler_disonnect() if priv->model is
1344         NULL. (#136551, Damon Chaplin)
1345
1346         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1347         Back out code to set the active item when the first
1348         item is added to the model; this causes problems for
1349         GtkComboBoxText. (#136535)
1350
1351         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
1352         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
1353         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1354         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): 
1355         Remove calls to gtk_combo_box_unset_model.
1356
1357         * gtk/gtkcombobox.c (gtk_combo_box_check_appearance): 
1358         Clean up handling of wrap->width > 0.
1359
1360         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
1361         switch list/menu mode here.
1362
1363         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
1364         against the same model being set back.
1365
1366         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
1367         gtk_combo_box_menu_fill() rather than duplicating
1368         a large chunk of code.
1369
1370 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1371
1372         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): 
1373         If max_depth is 0 then we have a list.
1374
1375 2004-03-08  Morten Welinder  <terra@gnome.org>
1376
1377         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
1378         widget unchanged.  Explicitly verify final directory.
1379
1380         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
1381         get_icon_type, filename_get_info): Protect errno.
1382
1383 2004-03-08  Marco Pesenti Gritti  <marco@gnome.org>
1384
1385         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
1386
1387         When an action is selected stop the event to be propagated
1388         otherwise the activate signal is emitted too. (Bug #133394)
1389
1390 Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
1391
1392         * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
1393         consolidate creating the path_bar.
1394         (gtk_file_chooser_default_set_current_folder): no longer need to
1395         pass in the filesystem.
1396
1397         * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
1398         of just setting the filesystem.
1399
1400         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
1401         home_dir.
1402         (get_button_image): Add images to path_bar.
1403         (update_button_appearance): use images
1404         (make_directory_button): Clasify buttons based upon location.
1405         (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
1406         rerooting, #135845, #135914
1407
1408         * tests/testfilechooser.c: Fix reused error handling.
1409
1410 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1411
1412         * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
1413         (gtk_file_system_unix_render_icon):
1414         Use better icons for home and desktop.
1415
1416 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1417
1418         * gtk/gtkfilechooserentry.c:
1419         (_gtk_file_chooser_entry_set_base_folder):
1420         Set the base folder path in the entry.
1421         
1422 2004-03-08  Christian Neumair  <chris@gnome-de.org>
1423
1424         * tests/testentrycompletion.c: Fix typo.
1425
1426 2004-03-08  Tor Lillqvist  <tml@iki.fi>
1427
1428         * README.win32: Update.
1429
1430         * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
1431
1432         * tests/testfilechooser.c: Correct localtime_r() emulation on
1433         Win32. Remove a couple of unnecessary Win32-only includes.
1434
1435 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
1436
1437         * tests/testentrycompletion.c: Test dynamic addition/removal. 
1438
1439 Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
1440
1441         * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not 
1442         xthickness in the calculation of vertical dimensions.
1443
1444 Sun Mar  7 17:38:03 2004  Jonathan Blandford  <jrb@gnome.org>
1445
1446         * gtk/gtkbutton.c (gtk_button_class_init): actually use
1447         gtk_button_add.
1448
1449         * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
1450         use the uri, not the path, #136317
1451         (renderer_edited_cb): ditto
1452         (shortcuts_add_bookmark_from_path): ditto
1453         (remove_bookmark_button_clicked_cb): ditto
1454         (gtk_file_chooser_default_remove_shortcut): ditto
1455         (update_from_entry): ditto
1456         (up_folder_handler): ditto
1457
1458 Sun Mar  7 16:07:08 2004  Jonathan Blandford  <jrb@gnome.org>
1459
1460         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
1461         redraw_on_allocate, #135902.
1462
1463         * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
1464         Damon Chaplin to set a node to be visible before emitting the
1465         inserted signal, #135555.
1466
1467 Sun Mar  7 22:24:28 2004  Matthias Clasen  <maclas@gmx.de>
1468
1469         * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
1470         height calculation.
1471
1472 Sun Mar  7 14:34:04 2004  Jonathan Blandford  <jrb@gnome.org>
1473
1474         Fixes #121500.
1475
1476         * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
1477         from unselecting rows when pressed in multiple-selection mode.
1478
1479 2004-03-07  Hans Breuer  <hans@breuer.org>
1480
1481         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
1482         some more settings from system, also reflect some name changes
1483         done a while ago in the x11 backend
1484
1485         * gdk/win32/makefile.msc : build gdkspawn-win32.c
1486
1487         * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
1488
1489         * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
1490
1491         * tests/makefile.msc : some more tests get build
1492
1493 Sun Mar  7 03:03:57 2004  Jonathan Blandford  <jrb@gnome.org>
1494
1495         * gtk/gtkfilechooserdefault.c
1496         (gtk_file_chooser_default_get_paths): if action is
1497         SELECT_FOLDER, then return the currentd folder if none is
1498         selected.
1499         (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
1500         no directory is selected in SELECT_FOLDER mode.
1501
1502 Sat Mar  6 23:31:18 2004  Jonathan Blandford  <jrb@gnome.org>
1503
1504         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1505         remove unneeded elements.
1506         (tree_selection_changed): removed
1507         (tree_name_data_func): removed
1508         (gtk_file_chooser_default_finalize): don't unref dir model
1509         (create_folder_tree): removed
1510         (get_selection): no longer need to abstract away the selection
1511         function.
1512         (create_file_list): We now create a tree for all actions.
1513         (file_pane_create): Make one tree.
1514         (update_appearance) We really change the mode only, now.
1515
1516 Sun Mar  7 02:38:00 2004  Matthias Clasen  <maclas@gmx.de>
1517
1518         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a 
1519         size_request on the button and cell_view_frame, otherwise
1520         their style will still be the default here in the initial 
1521         size_request. (#136301, Mark McLoughlin)
1522
1523 2004-03-06  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
1524
1525         * gtk/gtktoolbar.c (internal_insert_element): Check return value
1526         of gtk_stock_lookup; if stock lookup fails, just use stock_id as
1527         label, instead of crashing. Fixes #136202.
1528
1529 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1530
1531         * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
1532         include.
1533         * gdk/linux-fb/gdkwindow-fb.c: Likewise.
1534         * gdk/linux-fb/gdkinput.c: Likewise.
1535
1536 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1537
1538         Fixes #136082 and #135265, patch by Morten Welinder.
1539
1540         * configure.in: Use AC_SYS_LARGEFILE.
1541
1542         * */*.c: #include <config.h>
1543
1544 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1545
1546         * gtk/gtkfilechooserdefault.c
1547         (gtk_file_chooser_default_select_path): No need to have a
1548         temporary error variable.
1549
1550 2004-03-05  Tor Lillqvist  <tml@iki.fi>
1551
1552         * configure.in: Move check for native Win32 (mingw) a bit
1553         earlier. If Win32, disable static builds (as in GLib). Remove
1554         unnecessary AC_LIBTOOL_WIN32_DLL.
1555
1556         * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
1557
1558         * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
1559
1560         (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
1561         implementation.
1562
1563         (gdk_display_supports_cursor_alpha,
1564         gdk_display_supports_cursor_color): Dummy implementations.
1565
1566         (gdk_display_get_default_cursor_size,
1567         gdk_display_get_maximal_cursor_size): Implement.
1568
1569         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
1570         Dummy implementation.
1571
1572         * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
1573         implementation.
1574
1575         * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
1576
1577         * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
1578         not in API.
1579
1580         * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
1581         implementation.
1582
1583 Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
1584
1585         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
1586         to the new path.
1587
1588         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
1589         allocation when scrolling instead of cancelling editing.
1590
1591 Fri Mar  5 23:52:34 2004  Matthias Clasen  <maclas@gmx.de>
1592
1593         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
1594         Improve the docs.  (#127727, Murray Cumming)
1595
1596 Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
1597
1598         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
1599         doc comment.  (#118602)
1600
1601 Fri Mar  5 22:37:15 2004  Matthias Clasen  <maclas@gmx.de>
1602
1603         * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
1604         the priv->image pointer dangle.  (#136259, Padraig O'Briain)
1605
1606 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1607
1608         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
1609         gboolean return values and GError arguments to
1610         ::set_current_folder() and ::select_path().
1611
1612         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
1613         Return a boolean value for success/failure.
1614         (gtk_file_chooser_set_current_folder_uri): Likewise.
1615         (gtk_file_chooser_select_filename): Likewise.
1616         (gtk_file_chooser_select_uri): Likewise.
1617         (gtk_file_chooser_set_filename): Likewise.
1618         (gtk_file_chooser_set_uri): Likewise.
1619         (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
1620         in a GError.
1621         (_gtk_file_chooser_select_path): Likewise.
1622
1623         * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
1624         Likewise.
1625         (delegate_select_path): Likewise.
1626
1627         * gtk/gtkfilechooserdefault.c
1628         (gtk_file_chooser_default_select_path): Likewise.
1629         (gtk_file_chooser_default_set_current_folder): Likewise; this also
1630         fixes #136024.
1631         (error_changing_folder_dialog): New helper function.
1632         (change_folder_and_display_error): New helper function.
1633         (switch_to_selected_folder): Use change_folder_and_display_error().
1634         (tree_selection_changed): Likewise.
1635         (shortcuts_activate_volume): Likewise.
1636         (shortcuts_activate_item): Likewise.
1637         (list_row_activated): Likewise.
1638         (path_bar_clicked): Likewise.
1639         (update_from_entry): Likewise.
1640         (up_folder_handler): Likewise.
1641         (home_folder_handler): Get the home path from the shortcuts model,
1642         and use change_folder_and_display_error().
1643
1644         * tests/testfilechooser.c (set_current_folder): New helper
1645         function; pops up a simple error dialog if necessary.
1646         (set_filename): Likewise.
1647         (set_folder_nonexistent_cb): Use set_current_folder().
1648         (set_folder_existing_nonexistent_cb): Likewise.
1649         (set_filename_nonexistent_cb): Use set_filename().
1650         (set_filename_existing_nonexistent_cb): Likewise.
1651
1652 Fri Mar  5 11:17:35 2004  Owen Taylor  <otaylor@redhat.com>
1653
1654         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): 
1655         Improve the docs (reported by Vitaly Tishkov, 
1656         #74362) Add some comments to the code about the 
1657         row reference handling that are hopefully not entirely
1658         wrong.
1659
1660 2004-03-05  Michael Natterer  <mitch@gimp.org>
1661
1662         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1663         s/object/widget/. Makes it compile again.
1664
1665 Fri Mar  5 03:37:14 2004  Jonathan Blandford  <jrb@gnome.org>
1666
1667         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1668         chain to the extra_widget.
1669
1670 Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>
1671
1672         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1673         Patch from Damon Chaplin to free models when we're finalized,
1674         #134053
1675
1676 2004-03-05  Alexander Larsson  <alexl@redhat.com>
1677
1678         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1679         Document the fact that there might not be a volume for all
1680         paths.
1681
1682         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1683         Don't assume there is a volume for all paths.
1684
1685 Fri Mar  5 01:45:04 2004  Jonathan Blandford  <jrb@gnome.org>
1686
1687         * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1688         the correct place instead of naïvely appending.
1689         (shortcuts_add_volumes): refilter the model
1690         (shortcuts_add_bookmarks): refilter the model
1691         (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1692
1693 2004-03-04  Federico Mena Quintero  <federico@ximian.com>
1694
1695         * gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
1696         GtkFileChooser widget if it wants to do something special rather
1697         than letting us terminate the dialog.
1698         (gtk_file_chooser_dialog_init): Connect to "response"; see the
1699         comment in the sources to see why we don't override the method in
1700         class_init.
1701
1702         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1703         Added a ::should_respond() method.
1704
1705         * gtk/gtkfilechooserembed.c
1706         (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1707         (delegate_should_respond): New delegate.
1708         (_gtk_file_chooser_embed_should_respond): New function.
1709
1710         * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1711         Use dashes in signal names rather than underscores.
1712         (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1713         (gtk_file_chooser_default_should_respond): Implement.  go into a
1714         folder rather than responding if we are in File mode and the
1715         selected file is a folder.
1716         (get_selection): New helper function.
1717         (add_bookmark_button_clicked_cb): Use get_selection().
1718         (bookmarks_check_add_sensitivity): Likewise.
1719         (gtk_file_chooser_default_get_paths): Likewise.
1720         (check_save_entry): New helper function.
1721         (gtk_file_chooser_default_get_paths): Use check_save_entry().
1722         (selection_check): Renamed from selection_is_folders().  Now
1723         checks whether the selection is empty, all files, all folders.
1724         (bookmarks_check_add_sensitivity): Use selection_check().
1725
1726 Fri Mar  5 00:05:59 2004  Matthias Clasen  <maclas@gmx.de>
1727
1728         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1729         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to 
1730         key_press_event and handle Alt-Down/Alt-Up to show or hide the
1731         list popup. Also handle Down/Up/PageDown/PageUp/Home/End and 
1732         make them change the active item without popping up the list.
1733         These keybindings are inherited from GtkCombo. 
1734
1735 Thu Mar  4 23:15:58 2004  Matthias Clasen  <maclas@gmx.de>
1736
1737         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially 
1738         select the active item when using optionmenu-like positioning. 
1739
1740 Thu Mar  4 16:54:30 2004  Owen Taylor  <otaylor@redhat.com>
1741
1742         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1743         open/close the file, just check for existence
1744         with g_file_test(). This is considerably cheaper,
1745         and lack-of-permissions for pixmap dirs is 
1746         pathological.
1747
1748 Wed Mar  3 17:53:21 2004  Owen Taylor  <otaylor@redhat.com>
1749
1750         * gtk/gtksocket.c (gtk_socket_class_init): Overide
1751         show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1752         since we don't want to propagate to the in-process
1753         plug, if any. (#122949, Michael Meeks)
1754
1755 Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
1756
1757         * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1758         Folder' button in SAVE mode again.
1759
1760 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
1761
1762         * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1763         count of the style when copying the cached icon.  (#135890, Crispin
1764         Flowerday)
1765
1766 Thu Mar  4 21:45:43 2004  Matthias Clasen  <maclas@gmx.de>
1767
1768         * gtk/gtkcombobox.c: In list mode, set the background color 
1769         of the cell view to the base color of the style, instead of
1770         hardwiring white. (#136158)
1771
1772 Thu Mar  4 01:32:19 2004  Jonathan Blandford  <jrb@gnome.org>
1773
1774         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1775         muppet <scott@asofyet.org> to keep child directories around if we
1776         change to a child.
1777
1778         * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1779         icon-setting functions.  Not used yet.
1780         (_gtk_path_bar_set_root_icon): Ditto.
1781         
1782 Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>
1783
1784         * gtk/gtktextview.c (extend_selection): 
1785         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1786         to select the last word in the buffer.  (#135487, Paolo Borelli)
1787
1788 Wed Mar  3 23:54:31 2004  Matthias Clasen  <maclas@gmx.de>
1789
1790         * gtk/gtkentrycompletion.c: Doc update.
1791
1792 Wed Mar  3 17:30:18 2004  Owen Taylor  <otaylor@redhat.com>
1793
1794         * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1795         whether widgets are viewable, not just if they are
1796         mapped. (#122912, reported by Tim Evans)
1797
1798 Wed Mar  3 23:28:48 2004  Matthias Clasen  <maclas@gmx.de>
1799
1800         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1801         implementation into a new gtk_combo_box_set_active_internal() 
1802         function, which doesn't do the short-circuiting. 
1803         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1804         set_active_internal() here, since the active item may change here,
1805         although the index is unchanged.
1806
1807 Wed Mar  3 23:26:49 2004  Matthias Clasen  <maclas@gmx.de>
1808
1809         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1810         traditional option menu placement of the popup for regular combo
1811         boxes. Grids and editable combo boxes use the combo-like placement 
1812         below the entry.  (#136021)
1813         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): 
1814         * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1815         before popping up the menu, to make the placement work.
1816         
1817 Wed Mar  3 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
1818
1819         * gtk/gtkmain.c (gtk_propagate_event): Special case
1820         scroll events so that they propagate up the widget
1821         heirarchy when received on insensitive widgets.
1822         (#101102, reported by Geoff Reedy)
1823
1824 Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
1825
1826          #109594, reported by Olivier Ripoll
1827
1828         * gtk/gtkentry.c (gtk_entry_size_request): Use max of 
1829         width and digit width for gtk_entry_set_width_chars,
1830         and round up.
1831
1832         * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1833         width of the entry to 7 chars.
1834
1835 Wed Mar  3 16:00:10 2004  Owen Taylor  <otaylor@redhat.com>
1836
1837         * configure.in: Strip out the "export-dynamic" libtool
1838         option from library link lines. (#124687, James Henstridge)
1839
1840 Wed Mar  3 16:06:03 2004  Jonathan Blandford  <jrb@gnome.org>
1841
1842         * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1843         Don't activate the combo if we're in the midst of changing
1844         folders.
1845
1846 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1847
1848         * tests/testsocket_common.c: (print_hello): don't try and store
1849         pointers in ints. Fixes 64-bit build.
1850
1851 2004-03-03  Federico Mena Quintero  <federico@ximian.com>
1852
1853         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1854         not using a temporary variable, and clarify the documentation.
1855         Fixes #136008.
1856
1857 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1858
1859         * gtk/gtkexpander.c:
1860         (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1861         (gtk_expander_set_label_widget): Set the label widget's
1862         state to prelight if we're prelit. Fixes bug #136078.
1863
1864 2004-03-03  Murray Cumming  <murrayc@murrayc.com>
1865
1866         * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1867         signal vfunc declaration, adding the first parameter, which is the
1868         widget emitting the signal.
1869
1870 2004-03-03  Morten Welinder  <terra@gnome.org>
1871
1872         * tests/testfilechooser.c (update_preview_cb): Plug leak.
1873
1874 Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
1875
1876         * gtk/gtkfilechooserdialog.c
1877         (file_chooser_widget_default_realized_size_changed): Split
1878         function into realized and unrealized variants, and consolidate
1879         the handling fo size-changing and default changing.
1880
1881         * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1882         remove resizable-hints-changed, as it just complicated things.
1883
1884         * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1885         resizable-hints-changed.
1886         
1887 2004-03-03  Tor Lillqvist  <tml@iki.fi>
1888
1889         * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1890
1891         * NEWS: Correct spelling of my name in one place.
1892
1893 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1894
1895         * gtk/gtkfilechooserdefault.c
1896         (gtk_file_chooser_default_set_current_folder): Handle errors in
1897         setting the path bar's path.  Fixes #136000, based on a patch by
1898         Morten Welinder.
1899
1900         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1901         Don't free our own propagated error.
1902
1903         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1904         parent_path upon error.  Fixes #136006, patch by Morten Welinder.
1905         (gtk_path_bar_set_path): Unref the file_folder upon error.
1906         (gtk_path_bar_set_path): Return a boolean success code.
1907
1908 Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
1909
1910         * tests/testcombochange.c: Add an animation mode, to test 
1911         how the combobox behaves if the model changes while it is popped
1912         up.
1913
1914 Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
1915
1916         * === Released 2.3.5 ===
1917
1918         * NEWS: Updates
1919
1920         * configure.in: Version 2.3.5, interface age 0.
1921         Require glib-2.3.5, pango-1.3.5.
1922
1923 Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
1924
1925         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1926         popping up the completions across the edge of the monitor.
1927         Part of #135561.
1928
1929 Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
1930
1931         * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): 
1932         Move the /nonexistant stuff out of the main window,
1933         keep the main window somewhat normal looking.
1934
1935 Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
1936
1937         * gtk/gtktreestore.c (gtk_tree_store_reorder)
1938         * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1939         up the interpretation of new_order to match what
1940         it means elsewhere, document the meaning of new_order.
1941
1942         * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1943         Fix interpretation of new_order.
1944
1945         * tests/testcombochange.c (on_reorder): Fix interpretation
1946         of new_order.
1947
1948         * tests/testcombochange.c (on_reorder): Fix hitting
1949         "reorder" with an empty list.
1950
1951 Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1952
1953         Patch from Frederic Crozat, test code from Jean-Philippe
1954         Chancelier. Fixes bug #120479.
1955         
1956         * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1957         to the right window group.
1958
1959         * gtk/gtkmenu.c (gtk_menu_popup): Same
1960
1961         * tests/testsocket.c (main): Pack the plugs into an hbox instead
1962         of a vbox.
1963
1964         * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1965         GtkComboBox to the children.
1966
1967 Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
1968
1969         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1970         If the model was empty before, select the first inserted
1971         item.
1972
1973         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1974         Fix up the logic for the new row to select.
1975
1976         * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1977         Rename "appearance" property to "appears-as-list".
1978
1979         * tests/testcombochange.c tests/Makefile.am: Test case
1980         for combos and dynamically changing models.
1981
1982 Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
1983
1984         * gtk/gtkfilechooserdefault.c
1985         (gtk_file_chooser_default_get_resizable_hints): set the default
1986         value, spotted by Morten Welinder.
1987
1988 Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
1989
1990         * gtk/gtkfilechooserdefault.c
1991         (gtk_file_chooser_default_get_resizable_hints): get the logic
1992         correct.  This will fix sizing on save dialogs.
1993
1994         (save_widgets_create): set_mnemonic_widget.
1995
1996 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1997
1998         * gtk/gtkfilechooserdefault.c
1999         (gtk_file_chooser_default_set_current_folder): Don't update the
2000         save folder combo if we are already switching folders; based on a
2001         patch by Jonathan Blandford.
2002
2003         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
2004         Handle failure to insert the path.  Based on a patch by Morten
2005         Welinder attached to bug #135380.
2006
2007         * tests/testfilechooser.c (extra_widget_create): Add a bunch of
2008         buttons to test various things.
2009
2010 Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
2011
2012         * tests/Makefile.am: Add testentrycompletion.
2013
2014         * tests/testentrycompletion.c: New file to test some of the
2015         more exotic GtkEntryCompletion features.
2016
2017 Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
2018
2019         * tests/testfilechooser.c (main): improve tests a little.
2020
2021 Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
2022
2023         * gtk/gtkcombobox.c: Always connect to the changed
2024         signals on the model, update the active item as
2025         appropriate when rows are inserted/deleted/reordered,
2026         re-layout the menu on ::rows-reordered.
2027
2028         * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
2029         Allow %NULL for path to unset and leave no current
2030         path.
2031
2032 Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
2033
2034         * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
2035         the popup above the sample if there is not enough room below.
2036         Part of #135543.
2037
2038 Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
2039
2040         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the 
2041         frame for the list mode etched in, to give the popup a slightly
2042         less flat appearance. 
2043
2044 Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
2045
2046         * gtk/gtk.def: Add gtk_combo_box_entry_new_text().  
2047
2048 2004-03-02  Morten Welinder  <terra@gnome.org>
2049
2050         * tests/testfilechooser.c (size_prepared_cb): Don't scale images
2051         that are small enough to fit.  Avoid using incompatibly typed data
2052         pointer.
2053
2054         * gtk/gtkfilechooserdefault.c
2055         (gtk_file_chooser_default_get_resizable_hints): Test the
2056         resize_horizontally pointer, not the deferenced pointer.
2057
2058 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2059
2060         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
2061         flag shortcuts_current_folder_is_volume.
2062         (shortcuts_add_current_folder): Set
2063         impl->shortcuts_current_folder_is_volume as appropriate.
2064         (remove_current_folder_cb): Handle the flag.
2065         (shortcuts_activate_item): Likewise.
2066         (shortcuts_update_current_folder): Handle the
2067         impl->shortcuts_current_folder_active flag; only add the folder if
2068         it doesn't already exist in the list.
2069         (shortcuts_model_create): Don't insert the current folder
2070         separator here.
2071         (shortcuts_add_current_folder): Insert the separator here.
2072         (shortcut_find_position): Renamed from shortcut_exists(); now
2073         returns an index.
2074         (shortcuts_add_current_folder): Set the active item in the combo.
2075
2076 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2077
2078         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
2079         use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
2080
2081 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2082
2083         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
2084         unref an old model; there isn't one.  This was a leftover from
2085         when we recreated the model on every change.
2086         (save_widgets_create): Create the save folder combo.
2087         (shortcuts_model_create): Don't set the model on the tree view
2088         here.
2089         (gtk_file_chooser_default_constructor): Create the shortcuts model
2090         here, before the rest of the widgets.
2091         (shortcuts_list_create): Don't call shortcuts_model_create() here;
2092         just set the model on the tree.
2093         (save_folder_combo_create): New function, provided by Jonathan
2094         Blandford.
2095         (update_appearance): Set the sensitivity of the folder combo.
2096         (shortcuts_activate_iter): New helper function; code moved from
2097         shortcuts_row_activated_cb().
2098         (shortcuts_activate_item): New helper function.
2099         (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
2100         (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
2101         SHORTCUTS_BOOKMARKS_SEPARATOR.
2102         (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
2103         (shortcuts_insert_separator): Add a position argument.
2104         (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR 
2105         and SHORTCUTS_CURRENT_FOLDER positions.
2106         (shortcut_exists): Ignore the current folder row.
2107         (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
2108         (shortcuts_model_create): Create a filter model for the shortcuts list.
2109         (shortcuts_list_create): Set the model to the shortcuts_filter_model.
2110         (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
2111         (bookmarks_check_remove_sensitivity): Likewise.
2112         (shortcuts_row_activated_cb): Likewise.
2113         (gtk_file_chooser_default_set_current_folder): New function.
2114         (gtk_file_chooser_default_set_current_folder): Update the current
2115         folder row in the shortcuts list.
2116
2117         * gtk/gtkfilechooserwidget.c
2118         (gtk_file_chooser_widget_constructor): Cast correctly for
2119         _gtk_file_chooser_embed_set_delegate().
2120
2121 Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
2122
2123         * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
2124         (#127499, based on patch from Michael Natterer)
2125
2126         * tests/testgtk.c: Fix bidi strings to display correctly
2127         with new auto-bidi.
2128
2129 Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
2130
2131         * gtk/gtksettings.c: Remove the include of Xft.h, which is already
2132         dragged in via pangoxft.h.  (#135496, David Hawthorne)
2133
2134 Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
2135
2136         * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
2137         callers.
2138
2139         * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
2140         the key event propagation mechanism used for focus widgets.
2141         (gtk_window_key_release_event): use the same key event propagation logic
2142         as gtk_window_key_press_event().
2143
2144 2004-03-01  Simon Budig  <simon@gimp.org>
2145
2146         * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
2147         for the XInput extension. We want to see them all.
2148         We now get Proximity Out events again. Fixes bug #135320.
2149
2150 Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
2151
2152         * gtk/gtkimmodule.c (match_locale): Use case-insensitive
2153         comparison. Fixes XIM module loading on AIX.  (#131277)
2154
2155 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
2156
2157         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
2158         Make it work correctly when the child model is cleared 
2159         completely. (#121633)
2160
2161 2004-03-01  Michael Natterer  <mitch@gimp.org>
2162
2163         * gtk/gtkfilechooserwidget.h: removed accidentially committed char
2164         which broke the build.
2165
2166 Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
2167
2168         * gtk/gtkfilechooserdialog.c
2169         (file_chooser_widget_default_size_changed): only store the size if
2170         we can resize in that direction.
2171
2172 Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
2173
2174         * gtk/gtkfilechooserwidget.c
2175         (gtk_file_chooser_widget_new_with_backend): new function.  Long
2176         name.
2177
2178 2004-03-01  Morten Welinder  <terra@gnome.org>
2179
2180         * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
2181         needed.
2182
2183         * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
2184         semantics and check for errors.
2185
2186         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
2187
2188         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
2189         display_name is NULL.
2190
2191 Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
2192
2193         Based on patch by Alex Larsson
2194
2195         * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
2196         GtkSetting to set the backend if the app doesn't specify one.
2197
2198         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
2199         Add Gtk/FileChooserBackend.
2200
2201 Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
2202
2203         * autogen.sh:
2204         - exit with $? instead of 1 in case of failure
2205         - exit with $? if ./configure failed
2206           (that's so autogen.sh && make lines work)
2207         - removed --enable-gtk-doc option
2208         - added $AUTOGEN_CONFIGURE_ARGS
2209
2210 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
2211
2212         * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
2213         filter_info.uri correctly.  Fixes #135379, pointed out by Damon
2214         Chaplin.
2215         (shortcuts_get_index): Compute the bookmarks index correctly.
2216         Fixes #135714, pointed out by Damon Chaplin.
2217         (gtk_file_chooser_default_list_shortcut_folders): Handle the case
2218         with no shortcuts, and don't run off the end of the list if there
2219         are no bookmarks and their separator.  Fixes #135572, patch by
2220         Damon Chaplin.
2221
2222 Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
2223
2224         * gtk/gtklabel.c: Handle dynamically resolved bidi direction
2225         when drawing the cursor. (#118541)
2226
2227         * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
2228
2229         * gtk/gtkentry.c (draw_insertion_cursor): Fix up
2230         some confusion in parameter ordering.
2231
2232 Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
2233
2234         * gtk/gtkfilechooserdialog.c
2235         (file_chooser_widget_resizable_hints_changed): Handle
2236         shrinking/growing.
2237
2238 2004-03-01  Michael Natterer  <mitch@gimp.org>
2239
2240         * gtk/gtktextbtree.c: removed underscores from calls to
2241         gtk_text_btree_resolve_bidi().
2242
2243 Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
2244
2245         Patch from Dov Grobgeld to implement auto-bidi-direction
2246         for GtkTextView (#118543)
2247
2248         * gtk/gtktextbtree.[ch]: Resolve bidi base direction
2249         for each line by propagating backwards/forwards as
2250         necessary.
2251
2252         * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the 
2253         bidi base direction for the ;ine with the cursor from 
2254         the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
2255         
2256 Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
2257
2258         * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
2259         based on a patch from Dov Grobgeld. (#118540)
2260
2261 Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
2262
2263         * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() 
2264         to allow right-aligned entries and a "xalign" 
2265         property. (#59799, patch from Egon Andersen and 
2266         Steffen Gutmann)
2267
2268         * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
2269         xalign property description here too.
2270
2271         * tests/testtext.c: UNDERLINE_ERROR test addition
2272         from Nicolas Settons' patch.
2273
2274 Sun Feb 29 20:34:06 2004  Owen Taylor  <otaylor@redhat.com>
2275
2276         * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
2277         gtk_window_activate_key() (Request from Tim Janik)
2278
2279 Mon Mar  1 01:00:11 2004  Matthias Clasen  <maclas@gmx.de>
2280
2281         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
2282         Make DND operations within a buffer move the dragged 
2283         text instead of copying it; also make DND operations 
2284         a single user action for undo purposes.  (#135191, 
2285         #93139, reported by Tommi Komulainen, patch by Paolo Borelli
2286         and Paolo Maggi)
2287
2288 Mon Mar  1 00:51:11 2004  Matthias Clasen  <maclas@gmx.de>
2289
2290         * NEWS: News for 2.3.5.
2291
2292 Sun Feb 29 23:25:35 2004  Matthias Clasen  <maclas@gmx.de>
2293
2294         * gtk/gtkentry.c (gtk_entry_completion_key_press): 
2295         Fix the Shift-Tab support to go backwards.
2296
2297 Sun Feb 29 16:40:40 2004  Owen Taylor  <otaylor@redhat.com>
2298
2299         * gtk/gtktextview.c (gtk_text_view_class_init): Fix 
2300         capitalization to match other style properties.
2301
2302 Sun Feb 29 16:38:53 2004  Owen Taylor  <otaylor@redhat.com>
2303
2304         * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
2305         typo in property string.
2306
2307 Sun Feb 29 16:35:23 2004  Owen Taylor  <otaylor@redhat.com>
2308
2309         * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
2310         PANGO_UNDERLINE_ERROR (Based on a patch by
2311         Nicolas Setton, #114237)
2312
2313         * gtk/gtktextview.c: Add a error-underline-color style
2314         property.
2315
2316 Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2317
2318         * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
2319         function returning a good step value for the mouse wheel. For
2320         scrollbars, base the step on page_size^(2/3), for other ranges,
2321         use 2 * step_increment.
2322
2323         * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
2324
2325         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): 
2326         ... and here.
2327
2328         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
2329
2330 Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
2331
2332         * gtk/gtkfilechooserembed.c
2333         (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
2334         (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
2335
2336         * gtk/gtkfilechooserdialog.c
2337         (file_chooser_widget_default_size_changed): Get the correct
2338         initial size for the dialog.  Also, don't bother with
2339         gtk_window_set_default_size().  It's not really meaningful.
2340
2341         * gtk/gtkfilechooserdefault.c
2342         (gtk_file_chooser_default_get_default_size): Get the correct
2343         spacing for the preview_widget
2344         (update_preview_widget_visibility): Clear widget field after we
2345         destroy it.
2346
2347 2004-02-29  Federico Mena Quintero  <federico@ximian.com>
2348
2349         * gtk/gtkfilechooserdefault.c
2350         (gtk_file_chooser_default_set_property): Handle
2351         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
2352         (gtk_file_chooser_default_get_property): Likewise.
2353         (struct _GtkFileChooserDefault): Added fields for preview_label,
2354         use_preview_label, preview_display_name, preview_box.  Removed
2355         preview_frame.
2356         (set_preview_widget): Reorder the widget in relation to the label.
2357         (update_preview_widget_visibility): Create or destroy the preview
2358         label.
2359         (check_preview_change): Update impl->preview_display_name and the
2360         label.
2361         (find_good_size_from_style): Use the preview_box.
2362         (gtk_file_chooser_default_finalize): Free
2363         impl->preview_display_name.
2364         (gtk_file_chooser_default_init): Initialize
2365         impl->use_preview_label.
2366
2367         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
2368         "use-preview-label" property.
2369         (gtk_file_chooser_set_use_preview_label): New function.  This sets
2370         whether one wants the file chooser to display a stock label with
2371         the previewed filename.  Apps that do really fancy previews can
2372         turn this off and draw the name themselves.
2373         (gtk_file_chooser_get_use_preview_label): New function.
2374         (gtk_file_chooser_get_preview_widget_active): Documentation fix.
2375
2376         * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
2377         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
2378
2379         * gtk/gtkfilechooserutils.c
2380         (_gtk_file_chooser_install_properties): Override the
2381         "use-preview-label" property.
2382
2383 Sun Feb 29 04:43:29 2004  Matthias Clasen  <maclas@gmx.de>
2384
2385         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
2386         Shift-Tab work when the completion popup is shown.
2387
2388 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
2389
2390         * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
2391         the title of the filename column.
2392         (create_file_list): Likewise.
2393
2394 Sun Feb 29 03:31:42 2004  Matthias Clasen  <maclas@gmx.de>
2395
2396         * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up 
2397         and Page_Down in the completion popup to move page-wise if we're
2398         scrolling.
2399
2400 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
2401
2402         * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
2403         Removed.
2404         (list_name_data_func): Don't call the function above.
2405         (list_mtime_data_func): Likewise.
2406
2407 Sun Feb 29 02:34:35 2004  Matthias Clasen  <maclas@gmx.de>
2408
2409         * gtk/gtkcombobox.c (gtk_combo_box_list_position): New 
2410         function which calculates position and size for the popup in
2411         list mode. Currently it only pushes the popup horizontally 
2412         into the screen.
2413
2414 Sun Feb 29 01:10:09 2004  Matthias Clasen  <maclas@gmx.de>
2415
2416         * gtk/gtkcombobox.c: Implement the previous fix in a better way,
2417         small cleanups.
2418
2419 2004-02-28  Hans Breuer  <hans@breuer.org>
2420
2421         * gtk/gtkfilesystemwin32.c : applied patch from
2422         J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
2423
2424 Sat Feb 28 23:30:36 2004  Matthias Clasen  <maclas@gmx.de>
2425
2426         * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
2427         popup window before popping up.  (#135651)
2428
2429 Sat Feb 28 23:29:35 2004  Matthias Clasen  <maclas@gmx.de>
2430
2431         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2432         * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
2433         handler for style_set in class_init instead of connecting to
2434         the signal in init. (noticed by Yosh).
2435
2436 Sat Feb 28 14:48:35 2004  Owen Taylor  <otaylor@redhat.com>
2437
2438         * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, 
2439         not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
2440
2441 2004-02-28  Hans Breuer  <hans@breuer.org>
2442
2443         * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
2444         change. Also merged some crossplatform code from 
2445         gtkfilesystemunix.c
2446         * gtk/gtk.def : updated externals
2447
2448         * gtk/makefile.msc.in : added gtkfilechooserembed.obj
2449
2450 2004-02-28  Hans Breuer  <hans@breuer.org>
2451
2452         * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
2453         when destroying, fixes bug #120007. Also removed the mirrored
2454         ref counting for deprecated gdk_drag_context_<ref|unref>()
2455         cause it wasn't reliable anymore anyway.
2456
2457         * gdk/win32/gdkdisplay-win32.c : fix typo, which should
2458         have broken the win32 build for everyone not using msvc
2459
2460         * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
2461         return negative values for ptMaxTrackSize, it caused snapping
2462         windows to their minimum size
2463
2464 Sat Feb 28 01:39:01 2004  Matthias Clasen  <maclas@gmx.de>
2465
2466         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
2467         switching back to non-gridded mode.  (#135169)
2468
2469 Fri Feb 27 22:29:46 2004  Matthias Clasen  <maclas@gmx.de>
2470
2471         * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
2472
2473 Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
2474
2475         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
2476         Whoops.  Didn't mean to commit the size change.
2477
2478 Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
2479
2480         * gtk/gtkfilechooserembed.h: New private interface to help
2481         negotiate the default size of the widget.  Still a bit buggy, but
2482         better than the old behavior.
2483
2484         * gtk/gtkfilechooserdefault.c: Implement the embed interface.
2485
2486         * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
2487
2488         * gtk/gtkfilechooserdialog.c: Use the embed interface.
2489
2490 2004-02-27  Federico Mena Quintero  <federico@ximian.com>
2491
2492         * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
2493         "position" argument.
2494
2495         * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for 
2496         GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
2497         (struct _GtkFileSystemIface): Added a "position" argument to the
2498         ::insert_bookmark() method.
2499
2500         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
2501         Updated; renamed from gtk_file_system_unix_add_bookmark().  Return
2502         an error if the path already exists in the bookmarks list.
2503         (gtk_file_system_unix_remove_bookmark): Return an error if the
2504         path does not exist in the bookmarks list.
2505
2506         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
2507         For now, use gtk_file_system_insert_bookmark() with -1 for the
2508         position.  DnD will come next.
2509
2510 Fri Feb 27 21:42:28 2004  Matthias Clasen  <maclas@gmx.de>
2511
2512         * gtk/gtkcombobox.c (gtk_combo_box_relayout): 
2513         * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only 
2514         create a new setup if appearance actually changed.
2515         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear): 
2516         * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make 
2517         these more robust.  (#127623, Damon Chaplin)
2518
2519 Fri Feb 27 15:06:00 2004  Jonathan Blandford  <jrb@redhat.com>
2520
2521         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
2522         folder-mode property.
2523
2524         * gtk/gtkfilechooserutils.c
2525         (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
2526
2527 Thu Feb 26 17:38:40 2004  Manish Singh  <yosh@gimp.org>
2528
2529         * gtk/gtkcombobox.c: Add function declaration for
2530         gtk_combo_box_list_remove_grabs().
2531
2532 Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
2533
2534         * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
2535         cursor move, but not Home and End.
2536
2537         * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
2538         jump to the ends of the list, not Home and End - since we're not 
2539         scrolling yet, a "page" is always the complete list.  (#127430, Marco
2540         Pesenti Gritti)
2541
2542 Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
2543
2544         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): 
2545         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
2546         the priv pointers dangle.  (#127623, Damon Chaplin)
2547
2548 Thu Feb 26 17:31:34 2004  Manish Singh  <yosh@gimp.org>
2549
2550         * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
2551
2552 Thu Feb 26 19:53:32 2004  Owen Taylor  <otaylor@redhat.com>
2553
2554         * gdk/x11/xsettings-common.h (xsettings_client_process_event): 
2555         Add xsettings_client_set_grab_func,
2556         Add xsettings_client_set_ungrab_func to the list of renames.
2557
2558 Thu Feb 26 19:48:39 2004  Owen Taylor  <otaylor@redhat.com>
2559
2560         * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
2561         in case of mismatched property type.
2562
2563 Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
2564
2565         * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
2566         modes to the enum.
2567
2568         * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
2569         (gtk_file_chooser_get_folder_mode): Remove
2570
2571 Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
2572
2573         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
2574         GDK_FILTER_CONTINUE for unhandled message types.
2575
2576         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
2577         multiple filters for the same event type with the standard
2578         "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
2579
2580         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2581         Append to the filter list not prepend, since order now matters.
2582
2583         * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter): 
2584         Append to the filter list not prepend, since order now matters.
2585         
2586 Thu Feb 26 23:39:07 2004  Matthias Clasen  <maclas@gmx.de>
2587
2588         Fixes for #135333, analysed by Damon Chaplin:
2589         
2590         * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
2591         grab here.
2592         * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here, 
2593         so that we don't forget to grab when the menu is popped via
2594         keynav.
2595         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
2596         ungrab here.
2597         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
2598
2599 Thu Feb 26 23:26:00 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2600
2601         * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
2602         cursors for resize grips. (Bug #129621)
2603
2604         * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
2605         fix - patch by Torsten Schoenfeld.
2606
2607         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
2608         space between the items. (Bug #110775)
2609
2610         * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
2611         inside menu items that are inside a menu bar. (Bug #110775)
2612         
2613         * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
2614         not GDK_PACKAGES, to prevent applications from getting linked to
2615         it (Bug #119804)
2616
2617         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
2618         ipadding inside the item. (Bug #61843)
2619
2620 Thu Feb 26 22:56:40 2004  Matthias Clasen  <maclas@gmx.de>
2621
2622         * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets() 
2623         by list_mnemonic_widgets() in doc comments as well.
2624
2625 Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
2626
2627         Fixes from Torsten Schoenfeld.
2628
2629         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): 
2630         Fix name in doc comment.
2631
2632         * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
2633         not get_mnemonic_labels.
2634
2635 Thu Feb 26 22:20:44 2004  Matthias Clasen  <maclas@gmx.de>
2636
2637         * gtk/gtkcomboboxentry.h:
2638         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2639         convenience API to construct simple text combos, implemented by
2640         Damon Chaplin.
2641
2642         * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2643
2644 Thu Feb 26 22:19:29 2004  Matthias Clasen  <maclas@gmx.de>
2645
2646         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2647
2648 Thu Feb 26 15:43:43 2004  Owen Taylor  <otaylor@redhat.com>
2649
2650         * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2651         in a simplified form as gtk_draw_insertion_cursor().
2652         (#99031, request from Alex Larsson)
2653
2654         * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2655         Adapt to new gtk_draw_insertion_cursor().
2656
2657         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2658         gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2659         Since: 2.4.
2660
2661         * gtk/gtkiconfactory.c (icon_size_settings_changed)
2662           gtk/gtkicontheme.c (do_theme_change)
2663           gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2664         * gtk/gtksettings.c (gtk_settings_notify):
2665         _gtk_rc_reset_styles => gtk_rc_reset_styles.
2666
2667 Thu Feb 26 21:52:58 2004  Matthias Clasen  <maclas@gmx.de>
2668
2669         Fixes for #127804 and #134722, Damon Chaplin:
2670         
2671         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end): 
2672         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start): 
2673         Ref and sink the cell renderers here.
2674         
2675         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2676         renderers here, and free attributes and func_data. 
2677
2678 Thu Feb 26 21:41:38 2004  Matthias Clasen  <maclas@gmx.de>
2679
2680         * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2681
2682 Thu Feb 26 14:47:22 2004  Dom Lachowicz <cinamod@hotmail.com>
2683
2684         * gtk/gtk.def: Export gtk_rc_reset_styles()
2685
2686 Thu Feb 26 14:47:22 2004  Owen Taylor  <otaylor@redhat.com>
2687
2688         * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles(). 
2689         (Request from Dom Lachowicz, #123769)
2690
2691 Wed Feb 25 19:11:31 2004  Owen Taylor  <otaylor@redhat.com>
2692
2693         * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2694         ::group-changed signal emitted when the radio button/menu item 
2695         is moved from one group of radio buttons to another. 
2696         (#79563, based partially on a patch from Padraig O'Briain)
2697
2698 Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
2699
2700         * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2701         free() function. (#135511, George Bronnikov)
2702
2703 2004-02-26  Federico Mena Quintero  <federico@ximian.com>
2704
2705         * configure.in: Added a comment to inform translators that they
2706         must add .po files to both po/ and po-properties/ when they add
2707         new languages to ALL_LINGUAS.
2708
2709 Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
2710
2711         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2712         Call g_convert(), not g_convert() with fallback, since Emacs is
2713         happier if we reject the COMPOUND_TEXT request and it can
2714         then ask for UTF-8. (#114527)
2715
2716         * gtk/gtkselection.c (gtk_selection_data_set_text): When
2717         TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2718
2719 Wed Feb 25 22:35:00 2004  Tomasz KÅ‚oczko <kloczek@pld.org.pl>
2720
2721         * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2722         vesion for build gtk+ is now 2.3.3.
2723
2724 Wed Feb 25 16:00:40 2004  Jonathan Blandford  <jrb@gnome.org>
2725
2726         * gtk/gtkfilechooserdefault.c (update_appearance): move the
2727         expander code.
2728
2729 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2730
2731         * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2732         adding back sr@ije.
2733
2734 2004-02-25  Federico Mena Quintero  <federico@ximian.com>
2735
2736         * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2737         is fixed for it.
2738
2739 Wed Feb 25 12:44:49 2004  Owen Taylor  <otaylor@redhat.com>
2740
2741         * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2742
2743 Wed Feb 25 12:21:32 2004  Owen Taylor  <otaylor@redhat.com>
2744
2745         * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2746         Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2747         gtk_widget_get_mnemonic_labels(). (#103456)
2748
2749 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2750
2751         * configure.in: Added sr@ije to ALL_LINGUAS.
2752
2753 Wed Feb 25 09:46:34 2004  Owen Taylor  <otaylor@redhat.com>
2754
2755         * gtk/gtkstyle.c (gtk_style_finalize): Free 
2756         style->icon_factories (#130128)
2757
2758 Wed Feb 25 03:52:58 2004  Jonathan Blandford  <jrb@gnome.org>
2759
2760         * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2761         internal buttons.
2762
2763         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2764         rename some widgets to make it clear where they are packed.
2765         (update_appearance): New function to handle all the 'logic' of
2766         layout in one place.  We aren't trying to keep all our properties
2767         in sync.
2768         (gtk_file_chooser_default_set_property): use update_appearance()
2769
2770 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2771
2772         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2773         from create_shortcuts_model().
2774         (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2775         to shortcuts_list.
2776         (shortcuts_list_create): Renamed from shortcuts_tree_create().
2777         (create_file_list): Enable the tree view as a model drag source.
2778         (create_folder_tree): Likewise.
2779
2780         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2781         Register the drag source interface.
2782         (drag_source_iface_init): New function.
2783         (drag_source_row_draggable): New function.
2784         (drag_source_drag_data_get): New function.
2785
2786 Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>
2787
2788         * === Released 2.3.4 ===
2789
2790         * configure.in: Bump version to 2.3.4, fix broken
2791         gtk_binary_age value by copying the GLib logic
2792         to automatically set it to the right values.
2793
2794 Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>
2795
2796         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
2797         * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
2798         Don't resize priv->cell_view if it is NULL.  (#127804, 
2799         Damon Chaplin)
2800         
2801 Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>
2802
2803         * gtk/gtkcombobox.c: Add a comment about the different 
2804         modi of this widget. Get rid of priv->hbox, and some other
2805         cleanups. Make sure that gtk_combo_box_unset_model() is 
2806         always called before setting up a different mode. 
2807
2808 Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>
2809
2810         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2811         underscores in keyval names to spaces. (#131480)
2812
2813 Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>
2814
2815         * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2816         Uwe Zeisberger)
2817
2818 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
2819
2820         * === Released 2.3.3 ===
2821
2822         * configure.in: Version 2.3.3, interface age 0.
2823
2824         * NEWS: Finish updates for 2.3.3.
2825
2826 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2827
2828         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2829         GtkEntry for the filename, not a GtkFileChooserEntry.
2830         (update_chooser_entry): Use gtk_entry_set_text() rather than
2831         _gtk_file_chooser_entry_set_file_part().
2832         (gtk_file_chooser_default_set_current_name): Likewise.
2833         (gtk_file_chooser_default_set_current_folder): Don't set the base
2834         folder of the entry, and don't call update_chooser_entry().
2835         (gtk_file_chooser_default_get_paths): Use the plain entry.
2836         (save_widgets_create): Store the "Save in Folder" label in the
2837         impl structure.
2838         (expander_activate_cb): Set the sensitivity of the label and
2839         combo.
2840         (save_widgets_create): Connect to "notify::expanded" rather than
2841         "activate" on the expander.
2842         (expander_changed_cb): Renamed from expander_activate_cb().  Flip
2843         the conditions again...
2844
2845 Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>
2846
2847         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2848         column as different if there are 3 or more visible columns.
2849
2850 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2851
2852         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2853         Fix compilation (#135278, Padraig O'Briain).
2854         
2855 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2856
2857         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2858         Translate the desktop label.
2859         
2860         (shortcuts_get_index), (shortcuts_add_bookmarks),
2861         (shortcuts_insert_separator), (create_shortcuts_model):
2862         Don't show the bookmark separator if there are no bookmarks.
2863         
2864 Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>
2865
2866         * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2867         dialog look like the nautilus dialog.
2868         (expander_activate_cb): get the order correct.
2869
2870 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2871
2872         * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2873         bookmarks_check_add_sensitivity().
2874         (shortcut_exists): New helper function; moved the testing code
2875         over from bookmarks_check_add_sensitivity().
2876         (bookmarks_check_add_sensitivity): Check the contents of the
2877         selection in the file/folder list.  Use shortcut_exists().
2878         (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2879         the path is already in the shortcuts list.
2880         (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2881         selection or from the current folder, as appropriate.
2882
2883 Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>
2884
2885         * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2886         mnemonics.  Sorry translators.
2887
2888 Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>
2889
2890         * NEWS: Additions. This should be complete for the main ChangeLog
2891         now, still need to sift through gdk-pixbuf, docs, and translations.
2892
2893 Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>
2894
2895         * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2896         Add a get_size implementation so that we are no longer the same
2897         height as text.
2898
2899 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2900
2901         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2902         (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2903         (create_shortcuts_model), (shortcuts_tree_create),
2904         (gtk_file_chooser_default_remove_shortcut_folder):
2905         Improve bookmark list rendering by controlling the visibility
2906         of the pixbuf cell so that it will be invisible for the separator
2907         row, also use a list store instead of a tree store for the model
2908         so we won't get unnecessary space for an expander.
2909         
2910 Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>
2911
2912         * gtk/gtkcombobox.c: Add a destroy implementation in order to
2913         set priv->cell_view to NULL before finalize stumbles over the 
2914         dangling pointer. This big array of pointers into the widget 
2915         tree in GtkComboBoxPrivate is really fragile and should be
2916         cleaned up.
2917
2918 Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>
2919
2920         * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2921         group when allocating space for the buttons at the bottom just in
2922         case.  Also, move the filter to below the file list.
2923
2924 Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>
2925
2926         * gtk/gtkfilechooserdefault.c
2927         (gtk_file_chooser_default_class_init): Seth was confused by
2928         keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
2929         home, not up.
2930
2931 Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>
2932
2933         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2934         more cleanly.
2935
2936         * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2937
2938 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2939
2940         Rework the user interface of the file chooser, as per 
2941         Seth Nickell's design.
2942
2943         * gtk/gtkfilechooserdefault.c
2944         (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2945                 "location-popup" - C-l
2946                 "up-folder"      - C-Up
2947                 "home-folder"    - C-Home
2948         (up_folder_handler): New function; moved the code from up_button_clicked().
2949         (up_button_clicked_cb): Call up_folder_handler().
2950         (home_folder_handler): New function.
2951         (location_popup_handler): New function.
2952         (struct _GtkFileChooserDefault): Add an hpaned field.
2953         (gtk_file_chooser_default_set_current_name): Check that we are in
2954         Save mode.
2955         (save_widgets_create): New function, create the widgets specific
2956         to Save mode.
2957         (main_paned_create): New function, create the hpaned's widgets here.
2958         (gtk_file_chooser_default_constructor): Create the open and save
2959         widgets, and show only one set.
2960         (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2961         (gtk_file_chooser_default_get_paths): Only pay attention to the
2962         entry in Save mode.
2963         (update_chooser_entry): Update the entry only in Save mode.
2964         (entry_activate): Removed.
2965
2966 Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>
2967
2968         * configure.in: Remove the configure.in check for fontconfig 
2969         entirely; it's not needed, since PangoXft implies that sufficiently
2970         new fontconfig is present.
2971
2972 Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>
2973
2974         * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2975         for (i = 0; i < 10; i++)
2976           g_print ("I will compile before committing.\n");
2977
2978 Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>
2979
2980         * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2981         GtkPathBar by default now.
2982
2983         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2984         current path from the path.
2985         (gtk_path_bar_class_init): new signal
2986         (button_clicked_cb): emit the signal when we're selected.
2987         (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2988         clearing thr first_scrolled_button.
2989
2990 Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>
2991
2992         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
2993         allocation for the toggle button so that it actually shows up 
2994         in LTR list mode.
2995
2996         * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
2997         * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
2998         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2999         notification, and avoid excessive relayouting. 
3000
3001 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
3002
3003         Fix bug 134982, reported by Morten Welinder:
3004         
3005         * gtk/gtkpathbar.c (gtk_path_bar_destroy): 
3006         * gtk/gtktooltips.c (gtk_tooltips_destroy): 
3007         * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
3008         parent's ::destroy handler.
3009         
3010         * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
3011         parent's ::dispose handler.
3012
3013 Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>
3014
3015         * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
3016         stuff with an #ifdef, so we still build with most fontconfig versions.
3017
3018 Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
3019
3020         * gtk/gtkaction.c: (gtk_action_finalize):
3021         * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
3022         * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
3023         (gtk_entry_completion_finalize):
3024         * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
3025         * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
3026         (gtk_file_system_model_finalize):
3027         * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
3028         (gtk_icon_theme_finalize):
3029         * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
3030         * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
3031         (gtk_ui_manager_finalize):
3032         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
3033         Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
3034         patch by Jan Arne Petersen)
3035
3036 Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>
3037
3038         * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
3039         Don't crash if item is NULL.  (#131542, Dan Damian)
3040
3041 Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>
3042
3043         * configure.in: Add a check for a new enough fontconfig, since
3044         we picked up a direct dependency on it with the Xft settings.
3045
3046 Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>
3047
3048         Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
3049         
3050         * gtk/gtkcheckmenuitem.c: Introduce a new style property 
3051         indicator_size and use it instead of the hardcoded value.
3052         
3053         * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
3054         item gets enough vertical space for the label and the indicator.
3055
3056 Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3057
3058         * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
3059         _ for the new Xft settings.
3060
3061 Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3062
3063         Bug 130790 (Federico Mena Quintero, Owen Taylor)
3064         
3065         * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
3066
3067         * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
3068         XSETTINGS
3069         
3070 Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3071
3072         Bug 132502
3073         
3074         * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
3075         if we enter a non-selectable menu item.
3076
3077         * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
3078         when the user has left the item.
3079
3080 Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3081
3082         * gtk/docs: Commit auto-generated changes
3083
3084 Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>
3085
3086         * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
3087
3088         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
3089         allocation code.  Works fully in RTL languages, I think.
3090         (gtk_path_bar_scroll_up): Scroll up.
3091         (gtk_path_bar_scroll_down): Scroll down.
3092
3093 2004-02-20  Christian Rose  <menthos@menthos.com>
3094
3095         * configure.in: Added "en_CA" to ALL_LINGUAS.
3096
3097 2004-02-20  Michael Meeks  <michael@ximian.com>
3098
3099         * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
3100         (gtk_tool_item_class_init): hook it up.
3101         (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
3102
3103         * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
3104         chain to parent, fix strcmp bug.
3105
3106         * tests/testtoolbar.c (main): re-arrange widgets to allow
3107         more overflowing toolbar goodness.
3108
3109 2004-02-20  Alexander Larsson  <alexl@redhat.com>
3110
3111         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
3112         Desktop directory is not translated.
3113         (set_tree_model):
3114         There might not be volumes for all paths.
3115         * gtk/gtkfilechooserwidget.c:
3116         (gtk_file_chooser_widget_constructor):
3117         Use gtk_file_chooser_set_current_folder to set cwd.
3118
3119 Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>
3120
3121         * gtk/gtkpathbar.[ch]: New widget to handle the path in the
3122         fileselector implementation.  Not hooked up to anything yet.
3123
3124         * gtk/Makefile.am: support the path bar.
3125
3126 Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>
3127
3128         * gtk/gtkstyle.c (gtk_default_draw_handle): 
3129         (gtk_default_draw_box): Make the paned handles gray when the the 
3130         widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)
3131
3132 Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
3133
3134         Fixes for #82099:
3135         
3136         * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
3137         and "Gtk/MenuImages" and map them to "gtk-button-images" and 
3138         "gtk-menu-images".
3139
3140         * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
3141         use it to set the visibility of the embedded image.
3142
3143         * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
3144         it to set the visibility of an embedded image.
3145
3146 Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>
3147
3148         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
3149         Give each radio action its own value.  (#134889, Paolo Borelli)
3150
3151 2004-02-19  Federico Mena Quintero  <federico@ximian.com>
3152
3153         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
3154         Chain to the parent's ::finalize() handler.  Fixes #134885; caught
3155         by Jan Arne Petersen.
3156
3157 2004-02-19  Mark McLoughlin  <mark@skynet.ie>
3158
3159         Make the entire expander widget width prelight as suggested
3160         by Seth in bug #134263.
3161
3162         * gtk/gtkexpander.c:
3163         (gtk_expander_paint_prelight): impl.
3164         (gtk_expander_paint): use it.
3165         (gtk_expander_redraw_expander): don't only redraw the
3166         arrow when prelit.
3167
3168 2004-02-19  Alexander Larsson  <alexl@redhat.com>
3169
3170         * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
3171         * gtk/gtkfilechooserutils.c:
3172         * gtk/gtkfilechooserutils.h:
3173         * gtk/gtkfilechooserwidget.c:
3174         Remove old file-system property.
3175         Add new file-system-backend string property
3176         
3177         * gtk/gtkfilechooserdefault.[ch]:
3178         Handle the file-system-backend property
3179         
3180         * gtk/gtkfilechooserdialog.[ch]:
3181         (gtk_file_chooser_dialog_new_with_backend):
3182         Remove old file-system property.
3183         Add new file-system-backend string property
3184         Add new function gtk_file_chooser_dialog_new_with_backend
3185         
3186         * gtk/gtkfilesystem.c: 
3187         * gtk/gtkfilesystem.h:
3188         Add filesystem module support.  
3189
3190 2004-02-18  Federico Mena Quintero  <federico@ximian.com>
3191
3192         * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
3193         from create_shortcuts_tree().
3194         (shortcuts_pane_create): New function.
3195         (button_new): Renamed from toolbar_button_new().
3196         (shortcuts_pane_create): New function, create the whole shortcuts
3197         pane here.
3198         (current_folder_create): Renamed from toolbar_create().  Don't
3199         create the bookmarks buttons here.
3200         (file_pane_create): New function.
3201         (gtk_file_chooser_default_constructor): Use the new helper
3202         functions, and don't use an extra vbox as GtkFileChooserDefault is
3203         already a vbox.
3204
3205 Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>
3206
3207         * gtk/gtkuimanager.h: 
3208         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
3209         default handlers for all signals; for consistency and for the
3210         benefit of language bindings which still rely on header parsing
3211         to find the signals.  (#134269, Jeroen Zwartepoorte)
3212         
3213 Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>
3214
3215         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
3216         Improve the efficiency here by prepending on the list and reverting
3217         it after the loop.  (#134435, Christian Biere)
3218
3219 Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>
3220
3221         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
3222         removing the plug from the socket.  (#128546, Christopher Blizzard)
3223
3224 Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>
3225
3226         * gtk/gtkradiomenuitem.h:
3227         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
3228         (gtk_radio_menu_item_new_with_label_from_widget): 
3229         (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
3230         convenience functions analogous to similar API on GtkRadioButton.
3231         (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
3232
3233 Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3234
3235         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
3236         case where the background is a solid color.
3237         (gdk_window_clear_backing_rect): Reset the clip region after use.
3238
3239         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
3240         back to using a scratch GC. Pointed out by Owen Taylor
3241         
3242         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
3243         scratch GC if the passed-in one is NULL
3244
3245 Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3246
3247         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
3248         region back to NULL on cached GC (rest of #134728)
3249
3250 Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3251
3252         Fix bug reported by Nam SungHyun (#134728)
3253         
3254         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
3255         Don't use a cached GC here since the function needs to modify the
3256         foreground color.
3257
3258         * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
3259         to NULL on the cached GC.
3260
3261 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
3262
3263         * gtk/gtkfilechooserdialog.c
3264         (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
3265         This sucks a lot.
3266
3267 Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>
3268
3269         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
3270         peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)
3271
3272 Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3273
3274         GC caching, bug #125645 (based on patch by Brian Cameron)
3275         
3276         * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
3277         * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
3278         cached GC's here.
3279         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
3280         get a scratch gc.
3281         * gdk/gdkinternals.h: Declare the function here
3282
3283         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
3284         _gdk_drawable_get_scratch_gc() instead of creating a new GC.
3285         * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
3286         * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
3287         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
3288         * gdk/gdkwindow.c (gdk_window_end_paint): same
3289         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
3290         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
3291         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
3292
3293 Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>
3294
3295         * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
3296         priv->columns to 1.
3297
3298 Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>
3299
3300         * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
3301         priv->columns >= 1 even for empty menus, since we divide by it
3302         somewhere else.  (#133428, Vincent Noel)
3303
3304 Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3305
3306         Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
3307         Taylor.
3308
3309         * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
3310
3311         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
3312         depth.
3313
3314         * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
3315         the colormap, if no colormap, special case depth 1, 
3316
3317         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
3318         _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
3319
3320         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
3321         Special-case bitmaps without a colormap.
3322
3323         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
3324         draw_pixbuf() implementation in the bitmap case.
3325
3326 2004-02-17  Mark McLoughlin  <mark@skynet.ie>
3327
3328         * modules/input/Makefile.am: only reference input method
3329         modules we've actually built. Fixes re-build failure with
3330         stale hangul module lying aroung. Bug #134518.
3331
3332 Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
3333
3334         * gdk/gdkdraw.c: Revert last commit, please don't commit patches
3335         without approval, this isn't the right way to do it.
3336
3337 2004-02-16  DindinX  <david@dindinx.org>
3338
3339         * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
3340         segments at a time, since XDrawSegments cannot handle more than this.
3341
3342         fixes bug #122026.
3343         
3344 Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3345
3346         * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
3347         gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
3348         in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
3349
3350 Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>
3351
3352         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
3353         Split declaration and assignment of combo_box.
3354         
3355         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
3356         pointless cast
3357
3358 Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>
3359
3360         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
3361         deprecation note pointing people to GtkComboBox.
3362
3363 Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
3364
3365         * gtk/gtktreednd.c: 
3366         * gtk/gtktreeview.c: Document the tree DND API.
3367
3368         * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
3369         Call gtk_drag_source_unset().  
3370         
3371 Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>
3372
3373         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
3374         Make stock_size an uint property, to allow custom icon 
3375         sizes. Also clarify the blurb.  (#130047, Erik Grinaker)
3376
3377 Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>
3378
3379         * configure.in: Remove unnecessary STRIP_* definitions, and GNU
3380         make check.
3381
3382 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
3383
3384         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
3385         Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
3386         the very first time you try to save one.
3387
3388 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
3389
3390         Fix #129020.
3391
3392         * gtk/gtkfilechooserdialog.c
3393         (set_default_size): New function, sets a reasonable default size
3394         for the window.
3395         (gtk_file_chooser_dialog_realize): New function, call
3396         set_default_size().
3397         (gtk_file_chooser_dialog_style_set): Likewise.
3398         (gtk_file_chooser_dialog_screen_changed): Likewise.
3399
3400         * tests/testfilechooser.c (main): Don't set a default size for the
3401         dialog.
3402
3403 Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>
3404
3405         * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
3406         Use do instead of while.  (#134031, Morten Welinder);
3407
3408 Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>
3409
3410         * configure.in: Suppress xsltproc and xmlcatalog checks
3411         if enable_man=no.  (#134162, Julio M. Merino Vidal)
3412
3413 Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>
3414
3415         * configure.in: Remove checks for sgml2html. It was once
3416         used for building the linuxdoc version of the tutorial.
3417         Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)
3418
3419 Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>
3420
3421         Fix various compilation problems (#134312, David
3422         Hawthorne)
3423
3424         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
3425         g_return_if_fail(), not g_return_val_if_fail().
3426
3427         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
3428         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
3429         g_return_if_reached(), not g_return_val_if_reached().
3430         
3431         * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
3432         of some parameters.
3433
3434         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
3435         extra 'scale' parameter.
3436
3437 Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>
3438
3439         Various reentrancy fixes for widgets being destroyed
3440         out of focus-out-event. (#128821, Grant Gayed)
3441
3442         * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
3443         Ref window and widget over callbacks.
3444
3445         * gtk/gtkwidget.c (gtk_widget_hide)
3446           gtk/gtkwidget.c (gtk_widget_set_child_visible):
3447         Ref the widget before calling _gtk_window_unset_focus_and_default(),
3448         since that can call user callbacks.
3449
3450         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
3451         Do nothing if the widget isn't realized.
3452
3453 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
3454
3455         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
3456         active, RELIEF_NONE buttons that aren't depressed. This improves
3457         the appearance of buttons in notebook tabs.  (#109213, reported
3458         by Benjamin Otte, patch by Rodney Dawes)
3459
3460 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
3461
3462         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
3463         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
3464
3465 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
3466
3467         Fix for #104811, Padraig O'Briain:
3468
3469         * gtk/gtkscale.h:
3470         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
3471         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
3472         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
3473         text and its position from a GtkScale, to make it more accessible. 
3474         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
3475         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
3476         new GtkScale vfunc.
3477
3478 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
3479
3480         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
3481         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
3482
3483 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
3484
3485         * gtk/gtktooltips.h:
3486         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
3487         function to improve the accessibility of tooltips.  (#114851, 
3488         Padraig O'Briain)
3489
3490 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
3491
3492         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
3493         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
3494         add docs.  (#132847)
3495
3496 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
3497
3498         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
3499         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
3500
3501         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
3502         gdk_property_get call instead of 0.
3503
3504         * docs/reference/gdk/tmpl/properties.sgml: Document the above
3505         as GDK_NONE instead of simply 0.
3506
3507 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3508
3509         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
3510         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
3511
3512 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
3513
3514         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
3515         Correct the docs.
3516
3517 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
3518
3519         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
3520         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
3521         for automatic DND.  (#133485, Tommi Komulainen)
3522
3523 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
3524
3525         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
3526         debug output.
3527
3528 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3529
3530         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
3531         handler.  If no widget has the focus, try to give it to the
3532         default widget.  If there is no default widget, give it to the
3533         first button.  Fixes the cause for which #59707 was reopened.
3534
3535 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3536
3537         Fixes #134051.
3538
3539         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
3540         (icon_info_new): Don't initialize the ref_count field.
3541
3542 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3543
3544         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
3545         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
3546         <kaffeetisch@gmx.de>.
3547
3548 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
3549
3550         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
3551         focus [hv]adjustment correctly when the focus is located deeper
3552         down in the hierarchy.  (#133489)
3553
3554 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
3555
3556         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
3557         arbitrary low upper limits on the xpad, ypad, width and height
3558         properties.  (#129696, John Ellis)
3559
3560 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
3561
3562         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3563         Ugh. Don't try to free ints, even if they're stored in pointers.
3564         (#133997, Morten Welinder)
3565
3566 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3567
3568         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3569         Free the filters.  Fixes #133547, patch by Morten Welinder
3570         <mortenw@gnome.org>.
3571
3572 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
3573
3574         * gdk/x11/xsettings-client.c (read_settings): Avoid
3575         triggering an X error when the client->manager_window
3576         is None...makes logs look cleaner.
3577
3578         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
3579         GDK_NONE to mean AnyPropertyType as documented. (Reported 
3580         by Yu Shao)
3581
3582         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
3583         gdk_x11_screen_get_window_manager_name): Fix error trap
3584         we've been leaking since 2002... (#129538)
3585
3586 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3587
3588         Fixes the entry-related part of #133852.
3589
3590         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
3591         the file part of the entry if the selected item is a folder.
3592
3593 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3594
3595         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
3596
3597         * tests/prop-editor.c (create_prop_editor): Free the title.
3598         (object_changed): Free the children list.
3599
3600 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
3601
3602         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
3603         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
3604         these functions.
3605
3606 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3607
3608         * gtk/gtkfilechooserdefault.c (set_list_model): Request
3609         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
3610         filtering will work.  Perhaps we should have a way of aggregating
3611         info types to the model as filters get installed.
3612
3613 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
3614
3615         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3616         Ugh. Don't try to free ints, even if they're stored in pointers.
3617
3618 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3619
3620         Fix #132256.
3621
3622         * gtk/gtkfilechooserdefault.c
3623         (gtk_file_chooser_default_get_paths): Read the contents of the
3624         filename entry in both OPEN and SAVE mode.  In multiple-selection
3625         mode, add this to the selection from the file/folder list.
3626         (struct get_paths_closure): Add a path_from_entry field.
3627         (get_paths_foreach): Only add the iterated path if it is not the
3628         same as the path from the entry.
3629
3630 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3631
3632         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
3633         the folder is already open, add the requested info types to it.
3634
3635 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
3636
3637         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3638         type casts for the gtk_window_set_screen() call.
3639
3640 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
3641
3642         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
3643         come up on the same screen as the combo box.  (#133544, 
3644         Morten Welinder)
3645
3646 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
3647
3648         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3649         packing of the file selector.
3650
3651 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
3652
3653         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
3654         calls in array initializers, as some compilers seem to hate this.
3655         (#133216, Jonas Jonsson)
3656
3657 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
3658
3659         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3660         by on-demand instantiating a singleton object with a "changed" 
3661         signal. 
3662
3663         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3664         for GtkAccelMap::changed.
3665
3666 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
3667
3668         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
3669         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3670         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3671         Actually free the lists. Pointed out by Morten Welinder.
3672         
3673 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
3674
3675         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
3676         positions in UTF-8 strings correctly.  (#133315, Theppitak 
3677         Karoonboonyanan)
3678
3679 2004-02-06  Morten Welinder  <terra@gnome.org>
3680
3681         * gtk/gtktoolbar.c (show_menu): Cleanup using
3682         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
3683
3684 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3685
3686         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3687         list.  Fixes #133546.
3688
3689 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3690
3691         Fix #132327.
3692
3693         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3694         folder_hash field to keep a list of live folder objects.
3695         (gtk_file_system_unix_init): Create the folder_hash.
3696         (gtk_file_system_unix_finalize): Destroy the folder_hash.
3697         (gtk_file_system_unix_get_folder): Ref and return an existing
3698         folder if we have it around, otherwise return a new folder object.
3699         (struct _GtkFileFolderUnix): Add a field for the parent file system.
3700         (gtk_file_folder_unix_finalize): Remove the folder from the file
3701         system's hash table.
3702         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
3703         newly-created folder's parent.  Fixes #132327.
3704
3705 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
3706
3707         * gtk/gtkstock.c (builtin_items): Change the labels of the 
3708         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3709         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
3710         Suárez-Alvarez)
3711
3712 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
3713
3714         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
3715         function to plug a few memory leaks.  (#133544, Morten Welinder)
3716
3717 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
3718
3719         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
3720         Support mnemonic_activate here as well.
3721         
3722         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3723         the button, not the tree_view.
3724
3725 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3726
3727         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3728         function, to make mnemonic_activate work for combo boxes.
3729         (#133443, Paolo Borelli)
3730
3731 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3732
3733         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3734         to FALSE.  (#133539, Morten Welinder)
3735
3736 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
3737
3738         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3739         of the depth one check.  (#133488, Christian Persch)
3740
3741 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
3742
3743         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3744         the drawing of tearoff menu items which don't come first in their
3745         menu.  (#33311)
3746
3747 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
3748
3749         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
3750         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3751
3752 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
3753
3754         Fix #59707.
3755
3756         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3757         the focus chain.
3758         (gtk_label_button_press): Fix prototype.
3759         (gtk_label_button_release): Likewise.
3760         (gtk_label_motion): Likewise.
3761
3762         * tests/testgtk.c (create_message_dialog): For the dialog with
3763         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3764
3765 2004-02-04  Morten Welinder  <terra@gnome.org>
3766
3767         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
3768         bug 133411, apart from the leak.)
3769
3770 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
3771
3772         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3773         in g_object_new, since it depends on lower and upper being set.
3774
3775 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3776
3777         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3778         window not resizable.  Fixes #114032.
3779
3780 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3781
3782         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3783         documentation for the use_separator style property.
3784
3785 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3786
3787         Fix #68938.
3788
3789         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3790         GtkDialog; right now it only contains an ignore_separator field.
3791         (gtk_dialog_class_init): Register the private structure.
3792         (gtk_dialog_init): Initialize the priv->ignore_separator field.
3793         (_gtk_dialog_set_ignore_separator): New private function.
3794         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3795
3796         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3797         use_separator style property.
3798         (gtk_message_dialog_style_set): Change the dialog's separator
3799         based on the style property.
3800         (gtk_message_dialog_init): Set the dialog box to ignore the
3801         separator setting.
3802
3803 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
3804
3805         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3806         also dist gtkfilesystemwin32.[hc].
3807
3808 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
3809
3810         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3811         in rtl mode.  (#129071, chinen@jp.ibm.com)
3812
3813 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
3814
3815         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3816         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3817         mode.  (#107528)
3818
3819 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
3820
3821         Clip narrow columns in rtl-oriented tree views (#128089,  
3822         chinen@jp.ibm.com):
3823         
3824         * gtk/gtkstyle.c (gtk_default_draw_option): 
3825         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
3826         given area.
3827
3828         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
3829         Use the right clip area when calling gtk_cell_renderer_render().
3830         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
3831         Use the right clip area when calling gtk_paint_focus().
3832         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3833         Use the right clip area when calling gtk_paint_toggle() or
3834         gtk_paint_check().
3835         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3836         Clip to the expose_area when drawing the background rectangle.
3837         
3838 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3839
3840         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3841         Use a weak reference instead of ref()/unref(). (#60857, reported
3842         by Joshua N Pritikin)
3843
3844         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3845
3846 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
3847
3848         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
3849         init_hadjust_value and prev_width.
3850         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
3851         them here.
3852         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3853         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3854         here to properly handle the initial position of rtl-oriented
3855         tree views.  (#127581, chinen@jp.ibm.com)
3856
3857 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3858
3859         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3860
3861         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3862         we handle an event in the colums, and FALSE at the end if the
3863         event is not handled at all.
3864
3865 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
3866
3867         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3868         Don't access the level after removing the node, since that may
3869         kill the level.  (#132615, Crispin Flowerday)
3870
3871 2004-02-02  Tor Lillqvist  <tml@iki.fi>
3872
3873         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3874         in all cases. If no grab cursor specified, use the grabbing
3875         window's cursor. If the grabbing window has no cursor, use the
3876         default arrow cursor. (#118025)
3877
3878 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
3879
3880         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3881         latest in menu separation technology.
3882
3883 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3884
3885         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3886         we have to take our chances with).
3887         
3888         (Bug 97510)
3889
3890 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3891
3892         Fix bug 110224.
3893
3894         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3895         Remove unused variable 'result'
3896
3897         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3898
3899         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3900         here.
3901
3902 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
3903
3904         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3905         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3906
3907 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3908
3909         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3910         sliding when using the new API.
3911
3912 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3913
3914         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3915         item_area is positioned correctly. Fix #133070, reported by Jeroen
3916         Zwartepoorte.
3917
3918 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
3919
3920         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3921         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
3922         muppet)
3923
3924 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
3925
3926         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3927         the documentation for new_order.  (#124790, Tim-Philipp Müller)
3928
3929 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
3930
3931         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3932         Reset use_resized_width when setting fixed_width.  (#108612, 
3933         Felipe Heidrich) 
3934
3935 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
3936
3937         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3938         GtkKeySnooperData.  (#132038, R. McFarland)
3939
3940 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3941
3942         Fixes #132975.
3943
3944         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3945         not FALSE.
3946         (gtk_file_system_volume_render_icon): Likewise.
3947
3948         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3949         Likewise.
3950
3951         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3952         not FALSE.
3953
3954         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3955         FALSE.
3956
3957         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3958         not FALSE.
3959         (gtk_text_iter_get_bytes_in_line): Likewise.
3960
3961         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3962         Likewise.
3963
3964         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3965         0.
3966
3967 2004-01-30  Not Zed  <NotZed@Ximian.com>
3968
3969         Fixes #132929.
3970
3971         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3972         handler when we clear the timeout id.
3973
3974 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3975
3976         Fix #129872, based on a patch by Jan Arne Petersen
3977         <jpetersen@uni-bonn.de>
3978
3979         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3980         Implement.
3981         (gtk_file_system_unix_add_bookmark): Implement.
3982         (gtk_file_system_unix_remove_bookmark): Implement.
3983
3984 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3985
3986         Fixes #132693.
3987
3988         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3989         use filename_from_path().  Also, check that the filename is
3990         absolute.
3991         (gtk_file_system_unix_get_folder): Likewise.
3992         (gtk_file_system_unix_create_folder): Likewise.
3993         (gtk_file_system_unix_make_path): Likewise.
3994         (gtk_file_system_unix_parse): Likewise.
3995         (gtk_file_folder_unix_get_info): Likewise.
3996         (filename_from_path): Removed.
3997
3998 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3999
4000         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
4001         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
4002
4003 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
4004
4005         * gdk/x11/gdkdrawable-x11.c: Revert changes from
4006         #113476 and go back to using XftDrawSetClip, because
4007         XftDrawSetClipRectangles is buggy in XFree86-4.3.
4008
4009 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
4010
4011         * gtk/gtktextlayout.c (line_display_iter_to_index)
4012         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
4013         adjust the preedit position for lines that include the
4014         preedit string. (#132353, Yao Zhang). How the heck
4015         did this work as well as it did?!?!
4016
4017         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
4018         Reverse change to change of XNFilterEvents event mask from
4019         #110493 -- it's documented and in the Xlib code an
4020         unsigned long. 
4021         
4022         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
4023         Return -1 rather than void to indicate no length limit.
4024         (#129548)
4025
4026 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
4027
4028         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
4029         (#64601, Murray Cumming)
4030
4031 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
4032
4033         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
4034         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
4035         
4036 2004-01-28  Richard Hult  <richard@imendio.com>
4037
4038         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
4039         Free font_desc.  Fixes #132805.
4040
4041 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
4042
4043         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
4044         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
4045         Fixes #132574.
4046
4047 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
4048
4049         * gtk/gtkselection.c (gtk_selection_default_handler): 
4050         nul-terminate the target atoms. (#132656, Christian Persch)
4051
4052 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
4053
4054         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
4055         Don't leak path if we bail out early.  (#132505, Christian Persch)
4056
4057 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
4058
4059         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
4060         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
4061         reference counting on the user_data that is shared between
4062         multiple signal handlers, to avoid calling the destroy notify
4063         multiple times.  (#132447, Adam Hooper)
4064
4065 2004-01-28  Hans Breuer  <hans@breuer.org>
4066
4067         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
4068           gtk/gtkstock.[hc] : ... define ...
4069           gtk/gtkiconfactory.c : ... register ...
4070           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
4071         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
4072         IFace changes.
4073
4074         * gtk/gtk.def : added a bunch of new exported symbols
4075
4076         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
4077         on filter_info->display_name being NULL
4078
4079         * tests/testgtk.c : make testgtk --bench=all work again
4080
4081 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
4082
4083         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
4084         Don't leak string.  (#132482, Christian Persch)
4085
4086 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
4087
4088         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
4089         1.8 won't whine at us.
4090
4091 2004-01-28  Tor Lillqvist  <tml@iki.fi>
4092
4093         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
4094         synthesize_enter_event): Don' generate enter or leave events if
4095         the pointer is grabbed with owner_events off, and the grab event
4096         mask doesn't ask for them. (#129242)
4097
4098         (gdk_event_translate): Ditto for focus change events.
4099
4100 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
4101
4102         Fix #132314.
4103
4104         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
4105
4106         * gtk/gtkfilesystem.c: Likewise.
4107
4108         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
4109         icon-type code.
4110         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
4111         from GtkFileInfo to here.
4112         (gtk_file_system_unix_volume_render_icon): Implement.
4113
4114 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
4115
4116         * modules/input/imhangul-defs.h: 
4117         * modules/input/imhangul.c:
4118         * modules/input/Makefile.am: Remove broken hangul input module.
4119         
4120 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4121
4122         * gtk/gtktoolbar.c: Remove obsolete comment.
4123
4124         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
4125         SPACE_LINE_END): Make separators wider and taller, so they are
4126         easier to pick up when editing the toolbar.
4127
4128         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
4129         a bit, 
4130
4131         * gtk/gtktoolbar.c (rect_within): Formatting fix
4132
4133         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
4134         sliding feel more responsive by only restarting sliding when the
4135         placeholder actually changes its goal allocation.
4136
4137 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
4138
4139         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
4140         compiler warning.  (#122725, Kjartan Maraas)
4141         
4142 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
4143
4144         Make menus work better on Xinerama (#126150):
4145         
4146         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
4147         monitor_num on the screen of the menu, not of the attach widget.
4148
4149         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
4150         (gtk_menu_window_size_request): Remember the monitor_num.
4151
4152 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
4153
4154         Fix #105497; constify uses of GdkColor.
4155
4156         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
4157         (gdk_gc_set_rgb_bg_color): Constify.
4158         (gdk_gc_set_foreground): Constify.
4159
4160         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
4161         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
4162         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
4163
4164         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
4165         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
4166         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
4167
4168         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
4169         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
4170         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
4171
4172         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
4173         (gdk_draw_layout_with_colors): Constify.
4174
4175         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
4176         (gdk_pixmap_colormap_create_from_xpm): Constify.
4177         (gdk_pixmap_create_from_xpm): Constify.
4178         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
4179         (gdk_pixmap_create_from_xpm_d): Constify.
4180
4181         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
4182
4183         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
4184         (gtk_clist_set_background): Constify.
4185
4186         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
4187         (gtk_color_button_set_color): Constify.
4188
4189         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
4190         Constify and add a check for color != NULL.
4191         (gtk_color_selection_get_current_color): Add a check for color != NULL.
4192         (gtk_color_selection_set_previous_color): Constify and add a check
4193         for color != NULL.
4194         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
4195
4196         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
4197         (gtk_ctree_node_set_background): Constify.
4198
4199         * gtk/gtktext.c (gtk_text_insert): Constify.
4200         (insert_text_property): Constify.
4201         (text_properties_equal): Constify.
4202         (new_text_property): Constify.
4203
4204         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
4205         (gtk_widget_modify_fg): Constify.
4206         (gtk_widget_modify_bg): Constify.
4207         (gtk_widget_modify_text): Constify.
4208         (gtk_widget_modify_base): Constify.
4209
4210 2004-01-26  Christian Rose  <menthos@menthos.com>
4211
4212         * configure.in: Added "mi" to ALL_LINGUAS.
4213
4214 2004-01-25  Tor Lillqvist  <tml@iki.fi>
4215
4216         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
4217         WM_TRANSIENT_FOR property is being deleted, set the owner of the
4218         window to the root window (i.e., effectively unset it). (#132411)
4219
4220         * gdk/win32/gdkprivate-win32.h
4221         * gdk/win32/gdkglobals-win32.c
4222         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
4223         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
4224
4225         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
4226
4227 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4228
4229         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
4230         to map/unmap items on whether they are actually allocated outside
4231         the toolbar, not on whether that will eventually happen. Improves
4232         animation in the presence of overflown items.
4233
4234         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
4235         queue_resize() to so that the items will get their new goal
4236         values and the idle handler will not immediately return FALSE.
4237
4238         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
4239         make sure that a placeholder becoming invisible doesn't cause a
4240         return TRUE.
4241
4242         * gtk/gtktoolbar.c (get_item_size): Don't special case
4243         placeholders here.
4244
4245 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4246
4247         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
4248         try to pack icon if there actually is one.
4249
4250         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
4251         OVERFLOWN items get an allocation even when they are
4252         unmapped. This ensures they will slide in properly.
4253
4254         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
4255         when there are overflown items that need to slide in. Also add
4256         comments and make formatting more readable.
4257
4258 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4259
4260         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
4261         Add a write-only property ::group to be consistent with
4262         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
4263         Andrieu)
4264
4265 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
4266
4267         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
4268         font description.  (#132168)
4269
4270 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
4271
4272         Fix #132247.
4273
4274         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
4275         mode.
4276         (set_select_multiple): Optionally notify about changes to the
4277         select-multiple property.
4278         (list_selection_changed): Change the condition for the editable row to
4279         test for save mode; this is more clear than testing for not being
4280         in multiple selection mode.
4281         (gtk_file_chooser_default_get_paths): Get impl->action directly
4282         rather than calling gtk_file_chooser_get_action().
4283         (entry_activate): Likewise.
4284         (set_select_multiple): Annotate about #133255.
4285         (update_chooser_entry): Likewise.
4286         (check_preview_change): Likewise.
4287         (tree_selection_changed): Likewise.
4288
4289 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
4290
4291         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
4292         when there are no columns, or all columns are hidden, #131402
4293
4294 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4295
4296         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
4297         mistake. Change back to 225.
4298
4299 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
4300
4301         * === Released 2.3.2 ===
4302
4303 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
4304
4305         * gtk/gtkicontheme.c: Patch from Christian Neumair
4306         to make warning string more translator friendly.
4307
4308         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
4309         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
4310         happy.
4311
4312         * configure.in: Require GLib-2.3.2, version 2.3.2,
4313         interface age 0, binary age 302.
4314
4315         * NEWS: Organized, added some names.
4316
4317 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
4318
4319         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
4320
4321 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
4322
4323         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
4324         GtkWidget::popup_menu.
4325
4326 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
4327
4328         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
4329         info after calling gtk_menu_do_remove(), since that function
4330         uses the attach info. Doh!
4331
4332         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
4333         for being 1 directly after setting it to 0.
4334
4335 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4336
4337         * NEWS: Updates
4338
4339 2004-01-22  Alexander Larsson  <alexl@redhat.com>
4340
4341         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
4342         Fix typo
4343
4344 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
4345
4346         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
4347         Free the path fields.
4348
4349         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
4350         the root_path, reported by <scott@asofyet.org>
4351         (gtk_file_system_model_finalize): Unref the file system.
4352
4353         * gtk/gtkfilefilter.c (filter_rule_free): default:
4354         g_assert_not_reached().
4355         (gtk_file_filter_finalize): Free the filter->name, reported by
4356         <scott@asofyet.org>
4357         (gtk_file_filter_finalize): Free the rules list.
4358
4359 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
4360
4361         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
4362         color button when an alpha is set.
4363         (gtk_color_button_set_alpha): redraw the color button when an
4364         alpha is set.
4365
4366 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
4367
4368         Fix #131869: 
4369         
4370         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
4371         a reference to the group while emitting the signals.
4372
4373         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
4374         destroy notify which does not only unref, but also resets
4375         the action_group property of the action.
4376
4377 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
4378
4379         * NEWS: Added details about GtkFileChooser changes.
4380
4381 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
4382
4383         Fix #99425, add accessor functions for GtkPaned's children.
4384
4385         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
4386         (gtk_paned_get_child2): New function.
4387
4388 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
4389
4390         * NEWS: Start of 2.3.2 section.
4391
4392 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
4393
4394         Fixes for #130370, based on a patch by Michael Meeks:
4395         
4396         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
4397         adjust cell positions and recalculate row and column counts after
4398         removing an item.
4399
4400         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
4401
4402         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
4403         appending items.
4404
4405         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
4406         to avoid an unintended recursion.
4407
4408 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
4409
4410         Fix #131418.
4411
4412         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
4413         function.
4414         (gtk_file_chooser_default_set_property): Use
4415         set_select_multiple().  Also, re-set this mode to single if the
4416         file chooser is set to Save mode.
4417         (entry_activate): Handle the case where the entry is completely
4418         empty *and* its current folder does exist.  Also, there is need to
4419         test for select_multiple here now that we ensure that it won't
4420         happen during Save mode.
4421
4422 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4423
4424         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
4425         _gtk_toolbar_get_default_space_size ();
4426
4427         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
4428         get_space_size): Use them here.
4429
4430 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4431
4432         * tests/testgtk.c (create_toolbar): Set a small size request and
4433         make the window resizable, to test mapping/unmapping of buttons.
4434
4435         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
4436         gtk_toolbar_insert_tool_item): remove these functions.
4437
4438         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
4439         toolbar_content_show_all, gtk_toolbar_hide_all,
4440         toolbar_content_hide_all): New functions. 
4441
4442         Ignore show_all/hide_all for buttons created in compatibility mode.
4443
4444         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
4445         gtk_toolbar_hide_all): Make sure buttons are ignored by
4446         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
4447         
4448         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
4449
4450         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
4451         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
4452
4453         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
4454         could become NULL.
4455
4456         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
4457         instead of prepending them.
4458
4459         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
4460         'elapsed' for all items.
4461
4462         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
4463         into bitfields.
4464
4465         * gtk/gtktoolbar.c: Many formatting fixes
4466         
4467 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
4468
4469         * configure.in: Add the necessary magic to create
4470         po-properties/Makefile.
4471
4472 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
4473
4474         The second part of the fix for #114351 (see also 
4475         gdk-pixbuf/ChangeLog and po/ChangeLog):
4476
4477         * Makefile.am (SUBDIRS): Add po-properties.
4478
4479         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
4480
4481         * gdk/gdkintl.h (P_): 
4482         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
4483
4484         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
4485         bind_textdomain_codeset for gtk20-properties as well.
4486
4487 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4488
4489         * gtk/gtktoolbar.c: 
4490
4491         Fix rest of #128678: Implement all the toolbar_content()
4492         methods for the old API case.
4493
4494 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4495
4496         * gtk/gtktoolbar.c: 
4497
4498         Phase 1 of fixing #128678: Only access ToolbarContent through a
4499         set of new functions:
4500
4501         toolbar_content_expose, toolbar_content_visible,
4502         toolbar_content_size_request, toolbar_content_is_homogeneous,
4503         toolbar_content_get_child_requisition,
4504         toolbar_content_is_placeholder, toolbar_content_disappearing,
4505         toolbar_content_get_state, toolbar_content_child_visible,
4506         toolbar_content_get_goal_allocation,
4507         toolbar_content_get_allocation,
4508         toolbar_content_set_start_allocation,
4509         toolbar_content_get_start_allocation, toolbar_content_get_expand,
4510         toolbar_content_set_goal_allocation,
4511         toolbar_content_set_child_visible, toolbar_content_size_allocate,
4512         toolbar_content_set_state, toolbar_content_get_widget,
4513         toolbar_content_set_disappearing,
4514         toolbar_content_set_size_request,
4515         toolbar_content_toolbar_reconfigured,
4516         toolbar_content_retrieve_menu_item, 
4517         toolbar_content_new_tool_item, toolbar_content_destroy,
4518         toolbar_content_is_separator
4519
4520         Also fix #127092.
4521         
4522 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4523
4524         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
4525         item ID.
4526
4527 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4528
4529         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
4530         overflow menu.
4531         
4532         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
4533         [#127726]
4534
4535 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4536
4537         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
4538         has_editable field.
4539         (_gtk_file_system_model_add_editable): New function.
4540         (_gtk_file_system_model_remove_editable): New function.
4541         (gtk_file_system_model_get_value): Return appropriate values for
4542         the temporary editable row.
4543         (_gtk_file_system_model_get_info): Handle the editable row.
4544         (_gtk_file_system_model_get_path): Likewise.
4545
4546         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
4547         Removed an unused variable.
4548         (toolbar_button_new): Optionally show the button.
4549         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
4550         (toolbar_create): Add a "New Folder" button for Save mode.
4551         (error_building_filename_dialog): New helper function.
4552         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
4553         (create_file_list): Connect to the "edited" signal of the text
4554         cell renderer.  Store the name column and text renderer in the
4555         impl structure.
4556         (renderer_edited_cb): New callback.
4557         (gtk_file_chooser_default_set_property): Show/hide the "New
4558         folder" button when the save action changes.
4559         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
4560         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
4561         tree_model.
4562         (get_list_file_info): Likewise!
4563         (list_icon_data_func): Handle the path being NULL.
4564         (new_folder_button_clicked): New callback.
4565         (list_name_data_func): If we are on the editable row, set the text
4566         to "Type name of new folder".
4567         (list_selection_changed): Handle the editable row.
4568         (list_mtime_data_func): Likewise.
4569
4570         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
4571         NULL, not FALSE.
4572         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
4573
4574 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
4575
4576         The first part of the fix for #114351 (see also 
4577         gdk-pixbuf/ChangeLog and po/ChangeLog):
4578         
4579         * gtk/gtkintl.h: 
4580         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
4581
4582         * gdk/gdkdisplaymanager.c:
4583         * modules/input/gtkimcontextxim.c:
4584         * gtk/*.c:  Mark property blurbs and nicks with P_().
4585         
4586 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4587
4588         Fix #130969.
4589
4590         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
4591         editing_canceled signal.
4592
4593         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
4594         "editing-canceled" signal.
4595         (gtk_cell_renderer_editing_canceled): New function.
4596
4597         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
4598         Call gtk_cell_renderer_editing_canceled().
4599
4600 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4601
4602         * gtk/gtkfilechooserdefault.c
4603         (gtk_file_chooser_default_set_property): Do not allow setting
4604         select_multiple when in Save mode.
4605         (set_list_model): No need to nullify the list_model and
4606         sort_model.
4607         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
4608         (get_paths_foreach): Likewise.
4609
4610         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
4611         documentation about folder mode.
4612         (gtk_file_chooser_get_uri): Likewise.
4613
4614 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4615
4616         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
4617         get_volume_for_path() method.
4618         (struct _GtkFileSystemIface): Finally removed the list_roots() and
4619         get_root_info() methods, and the "roots-changed" signal.
4620
4621         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
4622         function.
4623         (gtk_file_system_list_roots): Removed.
4624         (gtk_file_system_get_root_info): Removed.
4625
4626         * gtk/gtkfilesystemunix.c
4627         (gtk_file_system_unix_get_volume_for_path): Implement.
4628         (get_root_volume): New helper function.
4629         (gtk_file_system_unix_list_volumes): Use get_root_volume().
4630         (gtk_file_system_unix_list_roots): Removed.
4631         (gtk_file_system_unix_get_root_info): Removed.
4632
4633         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
4634         accept a NULL root_path.
4635         (struct _GtkFileSystemModel): Add a field to remember the
4636         root_path.
4637         (_gtk_file_system_model_new): Store the root_path in the model
4638         structure.
4639         (find_and_ref_path): Stop going up the hierarchy at the root_path
4640         of the model.  Also, don't return prematurely when walking up the
4641         hierarchy.
4642
4643         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4644         the rules_hint.
4645         (struct _GtkFileChooserDefault): Added a current_volume_path field.
4646         (set_tree_model): New function; create the folder tree model here.
4647         (create_folder_tree): Don't create the model here.
4648         (set_list_model): Set the show_hidden flag on the list model.
4649
4650 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
4651
4652         * gtk/gtknotebook.h:
4653         * gtk/gtknotebook.c (gtk_notebook_append_page): 
4654         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
4655         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
4656         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
4657         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
4658         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4659         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
4660
4661 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
4662
4663         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4664         a 'newly-allocated' to hint that the list should be freed after
4665         use.
4666
4667 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
4668
4669         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4670         to after handling the button presses in the TreeView to avoid
4671         getting multiple selection_changes()
4672
4673 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
4674
4675         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
4676         Karoonboonyanan)
4677
4678 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
4679
4680         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4681         Don't leak name and stock_id.  (#131358, Morten Welinder)
4682
4683 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
4684
4685         * docs/faq/gtk-faq.sgml: Updates to Section 5
4686
4687 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4688
4689         * gtk/gtkradioaction.c: Add a writable group property to align
4690         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
4691
4692 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
4693
4694         * docs/faq/gtk-faq.sgml: Update info on using autoconf
4695
4696 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
4697
4698         * tests/testmerge.c: Adjust to the new connect_proxy signals.
4699
4700         * gtk/gtkuimanager.c
4701         * gtk/gtkactiongroup.c
4702         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4703         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4704         removes the confusion between the disconnect_/connect_proxy signals 
4705         and the (unrelated) virtual functions of the same name and aligns
4706         the setup with the pre_/post_activate signals.
4707
4708 2004-01-12  Jody Goldberg <jody@gnome.org>
4709
4710         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4711           with no submenus otherwise it looks like we activate every time a
4712           submenu opens.
4713
4714 2004-01-12  Jody Goldberg <jody@gnome.org>
4715
4716         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4717
4718 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
4719
4720         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
4721         (gtk_accel_map_lock_path): 
4722         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4723         entry is silently created during lock_path(), and treated as an error 
4724         during unlock_path(). These changes have been requested by Tim Janik.
4725
4726 2004-01-10  Jody Goldberg <jody@gnome.org>
4727
4728         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4729         s/merge_signals/ui_manager_signals/ for readability.
4730         (gtk_ui_manager_class_init) : add pre_activate and post_activate
4731           signals.
4732         (cb_proxy_pre_activate) : new.
4733         (cb_proxy_post_activate) : new.
4734         (gtk_ui_manager_insert_action_group) : connect the proxies for
4735           GtkActionGroup::pre/post_activate
4736         (gtk_ui_manager_remove_action_group) : disconnect them.
4737
4738         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4739           'sensitive', and 'visible' properties.  Also add pre_activate and
4740           post_activate signals to help deal with activations at a higher
4741           level (eg GtkUIManager)
4742         (gtk_action_group_init) : init sensitive and visible
4743         (gtk_action_group_set_property) : add sensitive and visible
4744         (gtk_action_group_get_property) : add sensitive and visible
4745         (gtk_action_group_get_sensitive) : new.
4746         (gtk_action_group_get_visible) : new.
4747         (cb_set_action_sensitivity) : new with minor optimization that only
4748           signals sensitivity changes if the action could possibly change.
4749         (cb_set_action_visiblility) : ditto.
4750         (gtk_action_group_set_sensitive) : new.  walk the actions directly
4751           rather than using notify::sensitive because that is simpler, easier
4752           to read, and more efficient.
4753         (gtk_action_group_set_visible) : ditto.
4754         (gtk_action_group_add_action) : Each action can only be in 1 group,
4755           set GtkAction::action_group.
4756         (gtk_action_group_remove_action) : clear it.
4757         (gtk_action_group_add_toggle_actions_full) : warning suppression.
4758         (gtk_action_group_add_radio_actions_full) : warning suppression.
4759         (_gtk_action_group_emit_pre_activate) : new protected routine for use
4760           by GtkAction.
4761         (_gtk_action_group_emit_post_activate) : ditto.
4762
4763         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4764         (gtk_action_init) : initialize it.
4765         (gtk_action_get_property) : get.
4766         (gtk_action_set_property) : set it via
4767         (gtk_action_set_action_group) : new function.
4768         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4769           with the logical sensitivity (action & group) rather than the simple
4770           action::sensitivity.
4771         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4772           logical visibility (action & group) rather than the simple
4773           action::visible.  Use widget show/hide directly.
4774         (connect_proxy) : handle the custom sensitivity handler.
4775           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4776           directly, with special cases for TOOL_BUTTON.  Still not especially
4777           good it might be useful to handle label/use_underline by parmspec
4778           lookup.  Those are likely to be implemented by custom types, and are
4779           assumed to exist in GtkToolItem.
4780         (disconnect_proxy) : disconnect the new sensitivity handler.
4781         (_gtk_action_emit_activate) : add pre/post signals.
4782         (gtk_action_activate) : use logical sensitivity.
4783         (gtk_action_is_sensitive) : logical sensitivity.
4784         (gtk_action_get_sensitive) : actual sensitivity.
4785         (closure_accel_activate) : use logical sensitivity.
4786
4787 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
4788
4789         * gtk/gtkuimanager.c: Introduce a new parser state for 
4790         accelerator elements to avoid misparsing files containing 
4791         such elements.  (#131035, Morten Welinder)
4792
4793 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
4794
4795         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4796
4797 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
4798
4799         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4800
4801 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4802
4803         * gtk/gtkuimanager.h:
4804         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4805         obtain a list of toplevel widgets constructed by the ui manager.
4806
4807         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
4808         the values can be combined for gtk_ui_manager_get_toplevels().
4809
4810         * tests/testmerge.c: Add a "Dump toplevels" button to test 
4811         gtk_ui_manager_get_toplevels().
4812
4813 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
4814
4815         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4816         
4817         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
4818         by Anders Carlsson  (#130464).
4819
4820 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
4821
4822         * gtk/gtkmain.h: 
4823         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
4824         gint to gboolean.  (#130718, reported by Johannes Weißl)
4825
4826 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
4827
4828         * gtk/gtkactiongroup.h: 
4829         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4830         Remove the redundant name and stock_id parameters, adjust all callers.
4831
4832 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
4833
4834         * gtk/gtkaction.h: 
4835         * gtk/gtkaction.c (gtk_action_new):  
4836         * gtk/gtktoggleaction.h: 
4837         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
4838         * gtk/gtkradioaction.h: 
4839         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
4840         functions for actions.
4841
4842         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4843         (gtk_action_group_add_toggle_actions_full): 
4844         (gtk_action_group_add_radio_actions_full): and use the
4845         new functions here.  (#125322, Patch by Jeff Frank)
4846
4847 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
4848
4849         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
4850         docs.
4851
4852 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
4853
4854         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4855         (shortcuts_append_home), (shortcuts_append_desktop),
4856         (shortcuts_append_paths), (shortcuts_add_volumes),
4857         (shortcuts_append_bookmarks), (create_shortcuts_model),
4858         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4859         to the shortcuts_model.
4860
4861         (remove_bookmark_button_clicked_cb),
4862         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4863         bookmarks can be removed. Fixes #129873
4864
4865 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4866
4867         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4868         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4869         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
4870         respectively. Tests #82203.
4871
4872 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
4873
4874         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4875         0777 as the mode for mkdir() and let the umask do the right
4876         thing.  Fixes #121819.
4877
4878         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4879         can return NULL; handle this.  Fixes #129565.
4880
4881 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
4882
4883         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4884         that proceeded the end-of-sentence punctuation. Fixes: #130353.
4885
4886 2004-01-06  Jody Goldberg <jody@gnome.org>
4887
4888         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
4889           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4890
4891 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4892
4893         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4894         call shortcuts_add_bookmarks() here.
4895         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4896         iter.
4897         (shortcuts_append_paths): Don't display error dialogs here.
4898         (create_file_list): Remove the @#$% rules hint.
4899
4900 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4901
4902         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4903         function.
4904         (toolbar_create): Do not use a toolbar widget, just an hbox
4905         instead.  Add the bookmarks buttons and the current folder label
4906         here.
4907         (create_filename_entry_and_filter_combo): Create the filter combo
4908         here.
4909         (filter_create): Don't show the filter combo initially.
4910         (up_button_cb): Renamed from toolbar_up_cb().
4911         (create_shortcuts_buttons): Removed.
4912
4913 2004-01-05  Murray Cumming  <murrayc@usa.net>
4914
4915         * gdk/gdkimage.h: Added <public> documentation to the struct, as
4916         suggested by Owen Taylor.
4917
4918 2004-01-05  Jody Goldberg <jody@gnome.org>
4919
4920         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4921           I would have prefered outdent, but compatibility seems more
4922           important.
4923         * gtk/gtkstock.c (builtin_items) : ditto.
4924         * gtk/gtkstock.h : ditto.
4925         * gtk/stock-icons/Makefile.am : ditto.
4926         * gtk/stock-icons/stock_text_indent_16.png :
4927         * gtk/stock-icons/stock_text_indent_24.png :
4928         * gtk/stock-icons/stock_text_unindent_16.png :
4929         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4930
4931 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4932
4933         * gtk/gtkradiotoolbutton.[ch]
4934         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4935         group is a GtkRadioButton, not a GtkWidget.
4936
4937 2004-01-04  Hans Breuer  <hans@breuer.org>
4938
4939         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
4940         gdk_window_set_keep_(above|below) to make DND work again.
4941         Thanks to Alif Wahid for noticing.
4942
4943         * gdk/gdk.def : update externals
4944
4945         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4946
4947         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
4948           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4949           gtk/stock-icons/stock_harddisk_16.png 
4950           gtk/stock-icons/stock_harddisk_24.png 
4951         Harddisk stock icons for file system implementations. Beside
4952         FLOPPY and CDROM there is now HARDDISK, probably some 
4953         GTK_STOCK_NETWORK would be useful, but I could not find one.
4954
4955 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
4956
4957         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4958         Patch from Andrew Moise (#130462).
4959
4960 2004-01-01  Jody Goldberg <jody@gnome.org>
4961
4962         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4963           visible_vertical.
4964         (gtk_action_class_init) : here.
4965         (gtk_action_init) : here.
4966         (gtk_action_set_property) : here.
4967         (gtk_action_get_property) : here.
4968         (connect_proxy) : and here.
4969
4970 2003-12-30  Jody Goldberg <jody@gnome.org>
4971
4972         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
4973           utility routine for use in derived GtkActions with the replicated code
4974           from.
4975         (gtk_action_group_add_actions_full) : here.
4976         (gtk_action_group_add_toggle_actions_full) : here.
4977         (gtk_action_group_add_radio_actions_full) : and here.
4978
4979 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4980
4981         * configure.in: Added "bn" to ALL_LINGUAS.
4982
4983 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4984
4985         * bn.po: Added Bangla translation by 
4986         of Ankur group <gnome-translation@bengalinux.org>.
4987
4988 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
4989
4990         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
4991         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
4992         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
4993         week_start values other than 0 and 1, e.g. 6 will let weeks start
4994         on Saturday.  (#130349, Roozbeh Pournader) 
4995
4996 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4997
4998         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4999         
5000         Fix to allow reasonable pointer behavior in window mode when an
5001         extended input device reports an incorrect resolution of 0.  Fixes
5002         bug #123546
5003         
5004 2003-12-31  Christian Neumair  <chris@gnome-de.org>
5005
5006         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
5007         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
5008         plurals (#123847).
5009
5010 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
5011
5012         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
5013         (gtk_action_group_add_toggle_actions_full):
5014         (gtk_action_group_add_radio_actions_full): Pull accelerator key
5015         from the stock item if stock_id is given, but accelerator 
5016         not.  (Noticed by Jeff Franks and Jody Goldberg)
5017
5018         * tests/testmerge.c: Remove the accelerator from the "Open" entry
5019         to test the above change.
5020         
5021 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
5022
5023         Make show_all() work for the extra and preview widgets; reported
5024         by Paolo Maggi.
5025
5026         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
5027         preview widget.
5028         (set_extra_widget): show_all() the extra widget.
5029
5030 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5031
5032         * gtk/gtkuimanager.c (do_updates): 
5033         * gtk/gtktoolbar.c (slide_idle_handler): 
5034         * gtk/gtkdnd.c (gtk_drag_update_idle): 
5035
5036         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
5037         functions. (#130157, patch from Olexiy Avramchenko).
5038         
5039 2003-12-29  Anders Carlsson  <andersca@gnome.org>
5040
5041         * gtk/gtkradiotoolbutton.c:
5042         * gtk/gtkradiotoolbutton.h:
5043         * gtk/gtkseparatortoolitem.c:
5044         * gtk/gtkseparatortoolitem.h:
5045         * gtk/gtktoggletoolbutton.c:
5046         * gtk/gtktoggletoolbutton.h:
5047         * gtk/gtktoolbar.c:
5048         * gtk/gtktoolbar.h:
5049         * gtk/gtktoolbutton.c:
5050         * gtk/gtktoolbutton.h:
5051         * gtk/gtktoolitem.c:
5052         * gtk/gtktoolitem.h:
5053         Update my e-mail address.
5054         
5055 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
5056
5057         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
5058         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
5059         paths.  (#73207, reported by Havoc Pennington)
5060
5061 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5062
5063         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
5064         instead of VISIBLE to determine whether we should stop
5065         sliding. (#130018, reported by Christian Persch).
5066
5067 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
5068
5069         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
5070         Don't use first_action without initializing it if n_entries is 0.
5071
5072 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
5073
5074         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
5075         Add the missing _get_ to the name of the non-Xcursor version of
5076         this function.  (noticed by Torsten Schoenfeld)
5077
5078 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
5079
5080         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
5081         muppet.
5082
5083 2003-12-24  Jody Goldberg <jody@gnome.org>
5084
5085         * gtk/gtkactiongroup.h : Add some const to the char * in
5086           GtkActionEntry*.  We're reccomending people pass static strings to
5087           them, and not freeing them.  This stems to flood of warnings that
5088           result.
5089         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
5090           temp vars to const to match above.
5091         (gtk_action_group_add_toggle_actions_full) : ditto.
5092         (gtk_action_group_add_radio_actions_full) : ditto.
5093
5094 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
5095
5096         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
5097         gtk_clipboard_request_targets() and 
5098         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
5099
5100 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
5101
5102         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
5103         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
5104         * gtk/gtkcalendar.c (draw_arrow_left):
5105         (draw_arrow_right): Removed. 
5106         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
5107         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
5108         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
5109         insensitive.  (#97376)
5110
5111 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
5112
5113         * gtk/gtkuimanager.c (update_node): 
5114         (update_smart_separators): 
5115         (_gtk_menu_is_empty): 
5116         (find_menu_position): 
5117         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
5118         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
5119         (gtk_combo_box_relayout): Fix memory leaks caused by the
5120         failure to free the result of gtk_container_get_children().
5121
5122 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5123
5124         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
5125         properties when the window becomes a toplevel. When a window that
5126         was previously a toplevel becomes a toplevel again, restore its
5127         window type. Also make sure the focus window is removed from the
5128         XID hash when it is destroyed. (#117579, reported by Morten
5129         Welinder, patch reviewed by Owen Taylor).
5130
5131 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
5132
5133         * gtk/gtkmenushell.h: 
5134         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
5135         to emit the "cancel" signal on a menu shell.
5136
5137         * gtk/gtkmenu.c (gtk_menu_key_press): 
5138         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
5139         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
5140         new function instead of directly emitting the 
5141         signal.  (#81803, Owen Taylor)
5142
5143 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
5144
5145         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
5146         Fix the "language_set" blurb.  
5147         
5148 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
5149
5150         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
5151         all of treeview when resizing (#110074, patch from Soeren Sandmann).
5152
5153 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
5154
5155         Fixes #108458.
5156
5157         * gtk/gtkcelllayout.[ch]: added a reorder method.
5158
5159         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
5160         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
5161
5162         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
5163         (gtk_cell_view_cell_layout_reorder): ditto.
5164
5165         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
5166         (gtk_combo_box_cell_layout_reorder): ditto.
5167
5168         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
5169         (gtk_entry_completion_reorder): ditto.
5170
5171 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
5172
5173         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
5174         instead of strcmp (#117127, suggestion from Soeren Sandmann).
5175
5176 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
5177
5178         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
5179         here from gtk_menu_real_insert(),
5180         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
5181         (gtk_menu_reorder_child): run _do_insert after inserting the child
5182         (unbreaks _reorder_child, reported by Tim Janik).
5183
5184 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
5185
5186         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
5187         g_date_strftime() for UTF-8 correctness; use Julian dates to
5188         simplify the function.
5189
5190 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
5191
5192         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
5193         Test extra_width, not extra_height, when determining whether to
5194         set extra_width.  (#129647, Jan Arne Petersen)
5195
5196 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
5197
5198         Fix the behaviour of insensitive actions, which was broken
5199         when gtk_action_activate() was changed to pay attention to 
5200         sensitivity  (#129557, Christian Persch)
5201         
5202         * gtk/gtkaction.h: 
5203         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
5204         function to emit an activate signal without regard to sensitivity.
5205
5206         * gtk/gtkradioaction.c: 
5207         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
5208         instead of gtk_action_activate().
5209
5210 2003-12-18  Jody Goldberg <jody@gnome.org>
5211
5212         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
5213           to ensure that the base hicolor theme is installed.  Silently
5214           failing to produce icons that apps assume exist in the theme seems
5215           like a bad idea.
5216
5217 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
5218
5219         Fixes #110249, reworked patch from Joshua N Pritikin.
5220
5221         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
5222         (gtk_tree_model_sort_tree_drag_source_init),
5223         (gtk_tree_model_sort_row_draggable),
5224         (gtk_tree_model_sort_drag_data_get),
5225         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
5226
5227         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
5228         (gtk_tree_model_filter_tree_drag_source_init),
5229         (gtk_tree_model_filter_row_draggable),
5230         (gtk_tree_model_filter_drag_data_get),
5231         (gtk_tree_model_filter_drag_data_delete): ditto.
5232
5233 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
5234
5235         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
5236         for "*" and "/" (expand/collapse all). (#110195, reported by
5237         Calum Benson).
5238
5239 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
5240
5241         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
5242         clear the extra_attrs list if we set "text" after "markup".
5243         (Fixes #121933, Federico Mena Quintero).
5244
5245 2003-12-18  Alexander Larsson  <alexl@redhat.com>
5246
5247         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
5248         Fix typo that used the wrong x/y values for the x1, y1 point
5249         (#129605)
5250
5251 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
5252
5253         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
5254         (gtk_cell_renderer_text_finalize),
5255         (gtk_cell_renderer_text_get_property),
5256         (gtk_cell_renderer_text_set_property), (get_layout): added language
5257         and language_set properties like GtkTextTag has. (#103800, reported
5258         by Owen Taylor).
5259
5260 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
5261
5262         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
5263         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
5264         "activate" signal.  (#129358, Ka-Hing Cheung)
5265
5266 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
5267
5268         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
5269         the logical flag backwards in the expand_collapse_cursor_row
5270         bindings, fixing.
5271         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
5272         flag when !logical and in RTL. (Fixes #107527, reported by
5273         Noah Levitt).
5274
5275 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
5276
5277         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
5278         editing when activated by the left mouse button. (#106869,
5279         patch from Evan Martin).
5280
5281 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
5282
5283         Migrating all cell renderers to use the new instance private data
5284         construction.
5285
5286         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
5287         longer being used.
5288
5289         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
5290         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
5291         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
5292         GtkCellRendererInfo handling, migrate to instance private data.
5293
5294         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
5295         (gtk_cell_renderer_text_start_editing): moved focus_out_id
5296         from GtkCellRendererInfo to text renderer private data.
5297
5298         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
5299         (gtk_cell_renderer_pixbuf_class_init),
5300         (gtk_cell_renderer_pixbuf_finalize),
5301         (gtk_cell_renderer_pixbuf_get_property),
5302         (gtk_cell_renderer_pixbuf_set_property),
5303         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
5304         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
5305         migrate to instance private data.
5306
5307         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
5308         (gtk_cell_renderer_toggle_get_property),
5309         (gtk_cell_renderer_toggle_set_property),
5310         (gtk_cell_renderer_toggle_render): migrate to instance private data.
5311
5312 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
5313
5314         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
5315         (gtk_cell_renderer_text_get_property),
5316         (gtk_cell_renderer_text_set_property), (get_layout): add a
5317         single-paragraph-mode property, use private instance data.
5318         (Fixes #114943, reported by Morten Welinder).
5319
5320 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
5321
5322         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
5323         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
5324         by Matthias Clasen).
5325
5326 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
5327
5328         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
5329         if we set a new stock_id and there was a previous stock_id, unref
5330         the pixbuf (since it was used to renderer the previous stock_id
5331         and stock_id might have been set to NULL now). (Fixes #122966).
5332
5333 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
5334
5335         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
5336
5337         Check that index is not bigger than level array length
5338         also when depth is 1. Now get_iter_first correctly return
5339         FALSE when the model is empty (#129411).
5340
5341 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
5342
5343         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
5344         try to strcmp or strlen if we managed to normalize and casefold
5345         the string correctly. Fixes crashes with non-UTF8 strings.
5346         (#121617, Patch from Tim-Philipp Müller).
5347
5348 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
5349
5350         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
5351         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
5352         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
5353         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
5354         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
5355         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
5356
5357 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
5358
5359         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
5360         (#122727, patch from Kjartan Maraas).
5361
5362 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
5363
5364         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
5365
5366         * gtk/gtktreeview.c (gtk_tree_view_class_init),
5367         (gtk_tree_view_init), (gtk_tree_view_set_property),
5368         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
5369         fixed_height_mode property,
5370         (intialize_fixed_height_mode), (do_validate_rows),
5371         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
5372         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
5373         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
5374         (gtk_tree_view_insert_column): implement fixed height mode,
5375         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
5376         (gtk_tree_view_insert_column_with_attributes),
5377         (gtk_tree_view_insert_column_with_data_func): update docs.
5378
5379         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
5380
5381 2003-12-07  Murray Cumming  <murrayc@usa.net>
5382  
5383         * gtk/gtktreemodel.c:
5384         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
5385         Actually call the default signal handlers instead of calling the
5386         marshallers themselves in an endless loop. These default signal handler
5387         callbacks are not actually set so this is only noticed by gtkmm at
5388         the moment. Bug 123923.
5389
5390 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
5391
5392         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5393         "volumes-changed" signal.  Added the following methods:
5394                 list_volumes
5395                 volume_free
5396                 volume_get_base_path
5397                 volume_get_is_mounted
5398                 volume_mount
5399                 volume_get_display_name
5400                 volume_render_icon
5401
5402         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
5403         "volumes-changed" signal.
5404         (gtk_file_system_list_volumes): New function.
5405         (gtk_file_system_volume_free): New function.
5406         (gtk_file_system_volume_get_base_path): New function.
5407         (gtk_file_system_volume_get_is_mounted): New function.
5408         (gtk_file_system_volume_mount): New function.
5409         (gtk_file_system_volume_get_display_name): New function.
5410         (gtk_file_system_volume_render_icon): New function.
5411
5412         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
5413         (gtk_file_system_unix_volume_get_base_path): Implement.
5414         (gtk_file_system_unix_volume_get_is_mounted): Implement.
5415         (gtk_file_system_unix_volume_mount): Implement.
5416         (gtk_file_system_unix_volume_get_display_name): Implement.
5417         (gtk_file_system_unix_volume_render_icon): Implement.
5418
5419         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5420         Added a field for the "volumes-changed" signal connection.
5421         (gtk_file_chooser_default_set_property): Connect to
5422         "volumes-changed" on the file system.
5423         (gtk_file_chooser_default_finalize): Disconnect from
5424         "volumes-changed".
5425
5426         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
5427         function.
5428         (shortcuts_get_index): New helper function.
5429         (shortcuts_insert_path): Can now insert volumes as well as paths.
5430         (shortcuts_append_paths): Don't take is_file_system_root.
5431         (shortcuts_add_volumes): New function.
5432         (shortcuts_append_file_system_roots): Removed.
5433         (create_shortcuts_model): Use shortcuts_add_volumes().
5434         (remove_bookmark_button_clicked_cb): Check that the index is
5435         within range.
5436         (bookmarks_check_add_sensitivity): Take volumes into account.
5437         (shortcuts_get_selected_index): New helper function.
5438         (remove_bookmark_button_clicked_cb): Use
5439         shortcuts_get_selected_index().
5440         (bookmarks_check_remove_sensitivity): Likewise.
5441         (shortcuts_select_func): Likewise.
5442         (shortcuts_row_activated_cb): Handle volumes as well as normal
5443         paths.
5444         (shortcuts_activate_volume): New function.
5445         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
5446         bookmarks_iter fields.
5447         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
5448         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
5449         (remove_bookmark_rows): Removed.
5450         (shortcuts_add_bookmarks): New function; moved most of the code
5451         over from shortcuts_append_bookmarks().
5452         (shortcuts_append_bookmarks): Add the separator node here, and
5453         then call shortcuts_add_bookmarks().
5454
5455 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
5456
5457         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
5458         (G_OS_UNIX/G_OS_WIN32 stuff)
5459
5460 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
5461
5462         Do not interpret distant clicks as double-clicks  (#116541,
5463         Bernhard Walle):
5464         
5465         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
5466         double_click_distance, button_x and button_y.
5467         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
5468
5469         * gdk/gdkdisplay.h: 
5470         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
5471         New function to set the double click distance on a display.
5472
5473         * gdk/gdkevents.c: Take double click distance into account
5474         when generating single, double or triple clicks.
5475
5476         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
5477
5478         * gdk/x11/gdkevents-x11.c: Add the XSetting 
5479         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
5480
5481 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5482
5483         * gtk/gtkdialog.c: Sigh, revert the change.
5484
5485 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5486
5487         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
5488         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
5489         allows sane behavior for #101293.
5490
5491 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
5492
5493         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
5494         getter and setter gtk_button_[sg]et_alignment(), to set the
5495         alignment of the child.  (#70961, Jody Goldberg)
5496
5497 2003-12-14  Hans Breuer  <hans@breuer.org>
5498
5499         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
5500         similar as the other filesystem placement 'constants' (dynamic
5501         resolving on win32)
5502
5503         * gtk/gtkfilechooserwidget.c : handle file system to win32
5504         renaming here as will
5505         * gtk/gtkfilesystemwin32.c : implement render_icon
5506
5507         * gtk/gtk.def gdk/gdk.def : updated externals
5508
5509         * gdk/win32/gdkdisplay-win32.c : make it compile without
5510         <multimon.h> - i.e. even older sdk
5511
5512         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
5513         with TIMERPROC prototype
5514
5515         * gdk/win32/gdkwindow-win32.c : older msvc does not know
5516         BITMAPV5HEADER (from win xp) either
5517
5518         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
5519         not defined
5520
5521         * tests/testfilechooser.c : recent GLib crashes on 
5522         g_print ("%s", NULL) so avoid this
5523
5524 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5525
5526         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
5527         followed by calls to CloseClipboard(). Add a missing call to
5528         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
5529         API_CALL macro in more places.
5530
5531 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5532
5533         Merge from stable:
5534
5535         * gdk/gdkdisplaymanager.c: Mark default_display static.
5536
5537         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
5538
5539         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
5540         output.
5541
5542         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
5543         --gdk-debug=events. In general, output just one line of debugging
5544         output for each Windows message, plus one line for each GDK event
5545         generated. Indent all lines according to window procedure nesting
5546         level.
5547
5548         (inner_window_procedure): Rename from real_window_procedure.
5549
5550         (find_real_window_for_grabbed_mouse_event): Don't get misled when
5551         the point is in the non-client (decoration) area of the window
5552         returned by WindowFromPoint(). Return the root window in that
5553         case.
5554
5555         (build_pointer_event_state): Test also MK_XBUTTON1 and
5556         MK_XBUTTON2 (buttons 4 and 5).
5557
5558         (synthesize_enter_event): Track the mouse leaving the window in
5559         the event being generated, not the one mentioned in the Windows
5560         message.
5561
5562         (propagate): Test for NULL parent earlier. Improves event
5563         generation from a grabbed pointer. Part of fix for #107320.
5564
5565         (handle_stuff_while_moving_or_resizing): New function, to
5566         dispatch the main loop (once).
5567
5568         (resize_timer_proc): New function, set to be called by an inerval
5569         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
5570
5571         (gdk_event_translate): Drop unused return_exposes parameter.
5572
5573         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
5574
5575         On WM_SYSKEYUP, generate a key release event also for just the Alt
5576         key.
5577
5578         On WM_MOUSELEAVE, generate a leave event of type
5579         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
5580         top-level window, and left the app completely.
5581
5582         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
5583         calls resize_timer_proc() at regular intervals. On
5584         WM_EXITSIZEMOVE, kill the timer.
5585
5586         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
5587         and dispatch the main loop (by calling
5588         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
5589         Herman Bloggs.
5590
5591         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
5592         also wintab messages.
5593
5594         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
5595         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
5596         the window's owner. Fixes #118093, reported by Maxime Romano.
5597
5598 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
5599
5600         * gdk/win32/gdkwindow-win32.[ch]: Implement
5601         gdk_window_set_icon_list() for Win32, with support for big and
5602         small icons and support for alpha-channel icons under Windows
5603         XP. Replaces the previous implementation of gdk_window_set_icon().
5604         (#128762)
5605         
5606 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
5607
5608         * gdk/x11/gdkprivate-x11.h: 
5609         * gdk/x11/gdkx.h: 
5610         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
5611         Rename from _gdk_x11_register_event_type(), added API docs.
5612         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
5613         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
5614         all callers.  (#121471, Bill Haneman)
5615
5616 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
5617
5618         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
5619         of gc is ignored.  (#101983, Sebastian Rittau)
5620
5621 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
5622
5623         A trick for a faster treeview, step 1. Patch to short circuit
5624         _build_tree(), inspired by Jonathan (#80868).
5625
5626         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
5627         flags by default,
5628         (gtk_tree_view_build_tree): don't even try to recurse when the
5629         model says that it is a list, remove flag unsetter,
5630         (gtk_tree_view_set_model): change flag setting logic.
5631
5632         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
5633         propagate whether or not the child model has _IS_LIST set.
5634
5635         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5636         ditto.
5637
5638 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
5639
5640         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
5641         since it broke logical keynav. 
5642         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5643         direction in inverted scrollbars here instead.
5644
5645 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
5646
5647         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5648         "gravity" for RTL mode in a better way: Keep the distance from 
5649         the upper end of the page to the upper bound constant. This also 
5650         fixes problems with the initial position of the viewport in RTL 
5651         mode.  (#129063)
5652         
5653 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
5654
5655         Combo box flipping support.
5656
5657         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5658         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5659         patch from Matthias Clasen),
5660         (gtk_combo_box_popup): fix popup window alignment if there's a
5661         cell view frame visible (#126518, patch from Semion Chichelnitsky).
5662
5663         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5664         (#128348, patch from Semion Chichelnitsky).
5665
5666 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
5667
5668         * examples/gtkdial/gtkdial.c:
5669         * examples/menu/menu.c:
5670         * examples/scribble-xinput/scribble-xinput.c:
5671         * examples/progressbar/progressbar.c:
5672         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5673         in examples. (#129074, Olexiy Avramchenko)
5674         * examples/calendar/Makefile:
5675         * examples/rangewidgets/Makefile:
5676         * examples/menu/Makefile: Allow deprecated functions in
5677         examples which use deprecated widgets.
5678
5679 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
5680
5681         * gdk/gdk.c (gdk_threads_set_lock_functions): 
5682         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5683
5684 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
5685
5686         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
5687         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
5688
5689 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
5690
5691         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
5692         unnecessarily reserve space for arrows in RTL mode.  (#129075,
5693         Semion Chichelnitsky)
5694
5695 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
5696
5697         Changes to allow "no input" windows (#64613):
5698         
5699         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5700         field accept_focus.
5701         
5702         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5703         set it.
5704
5705         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5706         and gtk_window_get_focus() and gtk_window_set_focus().
5707
5708         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
5709         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
5710         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5711         Initialize the accept_focus field to TRUE.
5712
5713         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
5714         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
5715         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
5716         Implementations for the various backends. The Win32 and linux-fb
5717         implementations set the accept_focus field, but don't use it yet 
5718         to actually implement noinput windows. The X implementation updates
5719         the WM_HINTS to select the globally active input model (see the
5720         ICCCM) if accept_focus is FALSE.
5721
5722         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5723         WM_TAKE_FOCUS message if accept_focus is FALSE.
5724         
5725 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
5726
5727         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5728         Added toolbar items for the filter separator and the filter item.
5729         (toolbar_create): Add the filter widgets here.
5730         (filter_create): Renamed from create_filter().  Don't store the
5731         alignment in the impl structure, just return it.
5732         (toolbar_show_filters): New function.
5733         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5734         (gtk_file_chooser_default_remove_filter): Likewise.
5735         (gtk_file_chooser_default_constructor): Don't create the filter
5736         widget here.
5737         (struct _GtkFileChooserDefault): Added a field for a current
5738         folder label.
5739         (gtk_file_chooser_default_constructor): Create the folder label.
5740         (gtk_file_chooser_default_set_current_folder): Set the current
5741         folder label.
5742
5743         * tests/testfilechooser.c (main): Dramatically improved the
5744         usability of the extra widget through careful word choice.
5745
5746 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5747
5748         * gdk/gdk.h: include gdkspawn.h.
5749
5750 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5751
5752         * gdk/linux-fb/gdkspawn-fb.c,
5753           gdk/win32/gdkspawn-win32.c,
5754           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5755         s/gdk_spawn/gdk_spawn_on_screen/.
5756
5757 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5758
5759         Utility functions for multi-screen applications which need
5760         to ensure launched applications appear on a certain screen.
5761         See bug #95897.
5762         
5763         * gdk/gdkspawn.h: header for multi-screen launching
5764         support.
5765         
5766         * gdk/Makefile.am: install gdkspawn.h.
5767         
5768         * gdk/x11/Makefile.am:
5769         * gdk/x11/gdkspawn-x11.c:
5770         (gdk_spawn_make_environment_for_screen): private function
5771         to create an environment vector with DISPLAY set appropriately
5772         for the screen.
5773         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5774         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5775         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5776         
5777         * gdk/linux-fb/Makefile.am,
5778           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5779         
5780         * gdk/win32/Makefile.am,
5781           gdk/win32/gdkspawn-win32.c: win32 impl.
5782
5783 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
5784
5785         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5786         rather than "Username's Home" (#125964).
5787         (shortcuts_selection_changed_cb): New callback, check the
5788         sensitivity of the Remove Bookmark button at the right time.
5789         (shortcuts_row_activated_cb): It is not necessary to check the
5790         sensitivity here.
5791
5792 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
5793
5794         Improve the GDK API for dealing with group leaders (#119375):
5795         
5796         * gdk/gdkwindow.h: 
5797         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
5798         get the group leader of a toplevel window as a GdkWindow.
5799
5800         * gdk/gdkdisplay.h: 
5801         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
5802         function to get the default group leader as a GdkWindow.
5803
5804         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5805         the GdkWindow of the default group leader.
5806         
5807         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5808         for the default group leader.
5809
5810 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
5811
5812         * gdk/gdkkeysyms.h:
5813         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5814         Ukrainian_GHE_WITH_UPTURN. (#128529)
5815
5816 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
5817
5818         * gtk/gtkfilechooserdefault.c:
5819         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5820         behavior of the GtkFileSelection to determine selected paths in
5821         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5822
5823 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
5824
5825         * gtk/gtkfilechooserdefault.c
5826         (gtk_file_chooser_default_get_paths): Don't declare the closure
5827         struct twice.
5828         (get_paths_foreach): Likewise.
5829
5830 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
5831
5832         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
5833
5834 2003-12-08  Tor Lillqvist  <tml@iki.fi>
5835
5836         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5837         with MSVC and old headers. (#126933, John Ehresman)
5838
5839 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
5840          
5841         * === Released 2.3.1 ===
5842
5843         * NEWS: Updates for 2.3.1
5844
5845         * configure.in: Version 2.3.1, interface age 0, binary age 301.
5846
5847         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5848         Rename from gtk_menu_item_real_can_activate_accel() to
5849         match GTK+ convention, improve comment.
5850
5851         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5852         can ::can-activate-accel signal.
5853
5854         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5855         in comment.
5856
5857         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
5858         up comment.
5859         
5860         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5861         into the .c file.
5862
5863 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
5864
5865         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5866         missing 'else'. (#128816, Jorn Baayen)
5867
5868 2003-12-02  Michael Meeks  <michael@ximian.com>
5869
5870         Based on a patch by Martin Kretzschmar; #122448
5871         
5872         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5873         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5874         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5875         function pointers. Deprecate the global gdk_threads_mutex variable.
5876         
5877         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5878         extracted from GTK_THREADS_ENTER/LEAVE macros.
5879         (gdk_threads_init): init gtk_threads_[un]lock if not set.
5880         (gdk_threads_set_lock_functions): impl.
5881
5882         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5883
5884 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
5885
5886         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5887         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
5888         Gonzalez)
5889
5890 2003-12-07  Tor Lillqvist  <tml@iki.fi>
5891
5892         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5893         return value from SendMessage(WM_SETICON). That is the old
5894         icon. Fixes GDI resource leak. (#128559, Tim Evans)
5895
5896         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5897         have a pointer grab active with a grab cursor set, destroy that
5898         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5899
5900 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
5901
5902         * configure.in: Added Thai (th) to ALL_LINGUAS.
5903
5904 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
5905
5906         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5907         RTL flipping for GtkAlignment.  (#127585)
5908
5909 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
5910
5911         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
5912         popup window when in RTL mode.  (#127578)
5913
5914 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
5915
5916         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5917         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5918         before doing anything to prevent garbage returns.
5919
5920 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
5921
5922         * gtk/gtkviewport.c: Implement RTL flipping for 
5923         GtkViewport: Adjust the "gravity" when resizing
5924         This is a bit flickery in RTL mode.  (#107526)
5925
5926 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
5927
5928         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
5929         GtkScrolledWindow: the vertical scrollbar shows up on the left
5930         side in RTL mode.  (#107526)
5931
5932 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
5933
5934         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5935         tabs displayed at the top/bottom are rearranged, and tabs on
5936         the left/right are displayed at the opposite edge.  (#96630)
5937
5938 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
5939
5940         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5941         gtk_label_set_attributes() take NULL. See bug #128517.
5942
5943 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
5944
5945         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5946         the in_change flag.
5947         (completion_idle_callback): Use a temporary list store and re-set
5948         it on the completion rather than modifying the old one.  We are
5949         re-reading the folder anyway, and this gets rid of non-atomicity
5950         problems.
5951
5952 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5953
5954         Decouple impl->current_folder from the selection in the folder
5955         tree.  This is so that going to /home/federico/.foo (e.g. from a
5956         bookmark) will work even if show_hidden == FALSE.  The folder tree
5957         needs to be fixed in this case to show such folders explicitly.
5958
5959         * gtk/gtkfilechooserdefault.c
5960         (gtk_file_chooser_default_set_current_folder): When changing
5961         folders, do the entry and list model work here, instead of
5962         tree_selection_changed().
5963         (struct _GtkFileChooserDefault): Added a changing_folder flag
5964         again, dum de dum.
5965         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5966
5967 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
5968
5969         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
5970         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
5971
5972 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5973
5974         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5975         bookmarks buttons with the location entry.
5976
5977         * gtk/gtkfilechooserdefault.c
5978         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5979         bookmarks buttons and the location entry.
5980
5981 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5982
5983         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5984         shortcuts tree as a drag destination.
5985         (shortcuts_drag_data_received_cb): New callback.
5986         (get_file_info): Also fetch information on whether the file is a folder.
5987         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5988         (error_could_not_add_bookmark_dialog): New function.
5989         (shortcuts_add_bookmark_from_path): New helper function.
5990         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5991         (shortcuts_row_activated): We no longer need the changing_folder flag.
5992         (struct _GtkFileChooserDefault): Likewise.
5993
5994 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5995
5996         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5997         disappearing placeholders that are still visible.
5998
5999         * gtk/gtktoolbar.c: formatting fixes
6000
6001         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
6002         disappearing, for placeholders that are going to disappear.
6003
6004         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
6005
6006 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
6007
6008         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
6009         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
6010         Patch from <chinen@jp.ibm.com> to handle RTL support for column
6011         resizers, #127874
6012
6013 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
6014
6015         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
6016         Don't use freed memory.  (#127698, Taavi Talvik) 
6017
6018 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
6019
6020         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
6021
6022 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
6023
6024         * gtk/gtkuimanager.c: Remove debug define.
6025
6026 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
6027
6028         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
6029         and the attach widget.
6030
6031         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
6032         sensitivity and the parent menu.
6033
6034         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
6035         checks whether accelerators may activate a widget. the default handler
6036         demands the widget be sensitive and visible+viewable.
6037
6038         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
6039
6040 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
6041
6042         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
6043         popup menus.  (#127227)
6044
6045 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
6046
6047         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
6048
6049 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6050
6051         * gtk/gtkradiotoolbutton.[ch]
6052         (gtk_radio_tool_button_new_from_widget): Make this function take a
6053         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
6054         Cumming)
6055
6056 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6057
6058         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
6059
6060 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6061
6062         * gtk/gtktoolbar.c: remove variable
6063         n_overflowed_menu_items_when_dnd_started
6064
6065 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6066
6067         Rework sliding algorithm.
6068         - No more weird jumping when items are dragged off and added to
6069         the toolbar,
6070         - More natural item movement
6071
6072         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
6073         function is now responsible for calculating intermediate positions
6074         during item sliding. It is also responsible for starting sliding
6075         if items disappear.  Also turn off expanding when there is an
6076         overflow menu.
6077         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
6078         (slide_idle_handler): New function. All the sliding is now done by
6079         gtk_toolbar_size_allocate(), so the idle handler now just checks
6080         if there is more sliding to be done.
6081         (compute_intermediate_allocation, position): new functions
6082         calculating intermediate steps in the slide animations. The new
6083         animation algorithm uses a constant speed instead of a constant
6084         must-be-finished-within time.
6085         (struct _ToolbarContent): use 
6086         GtkAllocation goal_allocation; and 
6087         GtkAllocation start_allocation; instead of 
6088         gint start/goal_width;
6089
6090         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
6091         documentation
6092
6093 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
6094
6095         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
6096         positioning Xinerama-aware.  (#127332)
6097
6098 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
6099
6100         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
6101         boundaries visible in fake Xinerama mode.
6102
6103 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
6104
6105         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
6106         for the gtk_widget_hide() call.
6107
6108 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
6109
6110         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
6111         from David Hampton to fix sorting on booleans.
6112
6113 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6114
6115         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
6116         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
6117         by Frederic Crozat).
6118
6119 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
6120
6121         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
6122
6123 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6124
6125         Fixes to problems reported by Iain Holmes:
6126
6127         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
6128         throw up an error dialog if the desktop doesn't exist.
6129         (error_message): Handle the case where there is no real toplevel
6130
6131         yet.
6132         (list_model_filter_func): Always let folders pass through (patch
6133         by Dave Malcolm).
6134
6135 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
6136
6137         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
6138         to a somewhat more logical place,
6139         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
6140
6141 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
6142
6143         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
6144         the popup when it is visible, popdown when there are less chars
6145         than the minimum key length in the entry,
6146         (gtk_entry_completion_changed): popdown when the entry is empty.
6147
6148         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
6149         size request of the vscrollbar to (-1, 0), to get a nicely sized
6150         completion treeview (Fixes #126573, reported by Piers Cornwell),
6151         (_gtk_entry_completion_resize_popup): show/hide the action_view
6152         based on items.
6153
6154 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6155
6156         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
6157         off the dialog's separator (thanks to Iain Holmes).
6158
6159 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6160
6161         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
6162         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
6163         on items that have a submenu. (#120104).
6164
6165 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6166
6167         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
6168         "ItemState" field indicating the overflowed-ness etc. of the item.
6169         (gtk_toolbar_size_allocate): update the field here.
6170
6171 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6172
6173         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
6174         to the alignment.  Use the HIG-specified spacing between the
6175         filter label and the combo.
6176         (create_filename_entry): Use HIG-specified spacing between the
6177         location label and the entry.
6178         (gtk_file_chooser_default_constructor): Don't use vertical padding
6179         around the filename entry.
6180
6181 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
6182
6183         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
6184         render_icon virtual method.
6185
6186         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
6187
6188         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
6189         Implement as a stub for now.
6190
6191         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
6192         gtk_file_system_render_icon().
6193         (list_icon_data_func): Likewise.
6194         (toolbar_create): Set the toolbar style to icons only.
6195
6196         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
6197         Fix doc comments.
6198
6199 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
6200
6201         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
6202         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
6203
6204 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
6205
6206         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
6207         only unselect all items if the treeview has focus. (Fixes bug
6208         reported by Marco Pesenti Gritti).
6209
6210 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
6211
6212         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
6213         number of actions is "matches + actions - 1". (Fixes #126572).
6214
6215 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
6216
6217         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
6218         mem leaks (#119435).
6219
6220 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
6221
6222         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
6223         try to fetch the child back, since we do know that it is already
6224         gone by now (#126493, Marco Pesenti Gritti).
6225
6226 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
6227
6228         Fixes based on comments from Owen Taylor, #125264.
6229
6230         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
6231         variable,
6232         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
6233         a resize,
6234         (gtk_cell_view_get_size_of_row): new function,
6235         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
6236         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
6237         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
6238         s/cellview/cell_view/ in the function definitions, so they match
6239         with the header file.
6240
6241         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
6242         flag again (:, and use gtk_cell_view_get_size_of_row instead of
6243         the measurer, remove _set_size_request call,
6244         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
6245         instead of the measurer,
6246         (gtk_combo_box_style_set): queue a resize,
6247         (gtk_combo_box_size_request): update of _remeasure call,
6248         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
6249         (gtk_combo_box_cell_layout_pack_end),
6250         (gtk_combo_box_cell_layout_clear),
6251         (gtk_combo_box_set_model): get rid of the measurer,
6252         (gtk_combo_box_cell_layout_add_attribute),
6253         (gtk_combo_box_cell_layout_set_cell_data_func),
6254         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
6255         resize instead of calling _remeasure.
6256
6257 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
6258
6259         * gdk-pixbuf/Makefile.am
6260         * modules/input/Makefile.am: Use install-data-hook for
6261         gdk-pixbuf.loaders and gtk.immodules install generation targets.
6262         Fixes #112806.
6263
6264         * gtk/gtkexpander.h: Apply missing declarations from #124449.
6265
6266 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
6267
6268         Fix for #119555, Peter Zelezny:
6269         
6270         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
6271         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
6272         by removing the _ prefix. 
6273         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
6274         gdk/gdkwindow.c: Adjust all callers.
6275
6276 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
6277
6278         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
6279         the action is sensitive.  (#127187, Christian Persch)
6280
6281 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
6282
6283         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
6284
6285 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
6286
6287         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
6288
6289         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
6290         mapped, else resize_popup.
6291
6292         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
6293         (_gtk_entry_completion_popup): moved all popup resizing code to
6294         _gtk_entry_completion_resize_popup, and show the window when there
6295         are more than zero items in the completion list again (sigh).
6296
6297 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
6298
6299         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
6300         "use_markup" property. See bug #124449.
6301
6302         * gtk/gtkexpander.c:
6303         (gtk_expander_class_init),
6304         (gtk_expander_init), (gtk_expander_set_property),
6305         (gtk_expander_get_property), (gtk_expander_set_label),
6306         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
6307         Add a "use_markup" property and use it when creating the
6308         child label.
6309
6310 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
6311
6312         Temporary size requisition fix. Will fix it for real tonight.
6313
6314         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
6315         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
6316         a good width for the child,
6317         (gtk_combo_box_cell_layout_add_attribute),
6318         (gtk_combo_box_set_cell_data_func),
6319         (gtk_combo_box_cell_layout_clear_attributes): update.
6320
6321 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
6322
6323         Fixes #124373, Murray Cumming.
6324
6325         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
6326         is no longer construct only,
6327         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
6328         (gtk_combo_box_menu_fill): new functions,
6329         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
6330         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
6331         (gtk_combo_box_list_destroy): updated,
6332         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
6333         functions,
6334         (gtk_combo_box_set_model): is now public, updated,
6335         (gtk_combo_box_get_model): small update.
6336
6337         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
6338         text_column property is no longer construct only,
6339         (gtk_combo_box_entry_set_text_column): now public,
6340         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
6341         new/changed functions.
6342
6343         * tests/testcombo.c: updated.
6344
6345 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
6346
6347         Reinstate fixes for (#124212, Marco Pesenti Gritti):
6348         
6349         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6350         warnings for popups.
6351         (_gtk_menu_is_empty): Return FALSE for non-menus.
6352
6353 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
6354
6355         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
6356         gtk_cell_view_cell_layout_clear instead of trying to free the
6357         structure ourselves here. (#125726, Morten Welinder).
6358
6359 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
6360
6361         * gtk/gtkfilechooser.[hc]: 
6362         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
6363         confuse gtk-doc.
6364
6365 2003-11-15  Hans Breuer  <hans@breuer.org>
6366
6367         * gdk/makefile.msc gdk/gdk.def 
6368             gtk/gtk.def gtk/makefile.msc.in : updated
6369         * tests/makefile.msc : added all the new tests
6370
6371         * gtk/gtkfilefilter.c(finalize) : initialize filter
6372         from object not from itself
6373
6374         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
6375         modified as less as posible to have aworking implementation
6376         on win32. There maybe the desire to merge the unchanged pats into
6377         a common base class.
6378         Also implemented a simple glib based bookmark handling, which
6379         is currently missing in gtkfilesystemunix.[hc] but can be copied
6380         over there.
6381         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
6382
6383         * gdk/win32/gdkwindow-win32.c : implement 
6384         gdk_window_set_keep_above() and gdk_window_set_keep_below()
6385
6386         * tests/testmerge.c : don't include unistd.h unconditionally,
6387         #define STDOUT_FILENO if it isn't defined
6388
6389         * tests/testfilechooser.c : make it compile on win32
6390
6391 2003-11-15  Tor Lillqvist  <tml@iki.fi>
6392
6393         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
6394         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
6395
6396 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
6397
6398         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
6399
6400 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
6401
6402         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
6403         GTK_DATADIR/{icons,pixmaps} instead of 
6404         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
6405
6406 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
6407
6408         Changes to improve menu positioning on Xinerama (#108328, #126150):
6409         
6410         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
6411         window of the menuitem to determine the monitor. This fixes some
6412
6413         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
6414         to store the monitor on which the menu is to be positioned.
6415
6416         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
6417         in the GtkMenuPrivate struct and fetch the monitor geometry after
6418         calling the position_func, in case it has been changed.
6419
6420         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
6421         to be used in GtkMenuPositionFunc implementations for setting
6422         the monitor_num field in GtkMenuPrivate.
6423
6424         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
6425         gtk_menu_set_monitor.
6426
6427 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
6428
6429         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
6430         label for the empty list. String change.  (#95446, Tomas Ã–gren)
6431
6432 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
6433
6434         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
6435         the definition of the values.  (#123361, Marco Pesenti Gritti)
6436
6437 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
6438
6439         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
6440         (#122941, Egmont Koblinger)
6441
6442 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
6443
6444         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
6445         opacity entry widget. Change tooltip for opacity widgets. (#126426)
6446
6447 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
6448
6449         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
6450         affect window menu position when popped from keyboard. (#102660)
6451
6452 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6453
6454         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
6455         are using the old API, make all items "is_important". That way
6456         BOTH_HORIZ will continue to show both icon and label in old API
6457         mode.
6458
6459 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
6460
6461         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
6462         Remember the new value in all cases.  (#126276, Damon Chaplin)
6463
6464 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
6465
6466         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
6467         functions with the toplevel as argument.
6468
6469         * demos/gtk-demo/geninclude.pl.in: Change the signature
6470         of GDoDemoFunc to take a widget argument
6471
6472         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
6473         * demos/gtk-demo/tree_store.c (do_tree_store): 
6474         * demos/gtk-demo/textview.c (do_textview): 
6475         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
6476         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
6477         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
6478         * demos/gtk-demo/panes.c (do_panes): 
6479         * demos/gtk-demo/menus.c (do_menus): 
6480         * demos/gtk-demo/list_store.c (do_list_store): 
6481         * demos/gtk-demo/images.c (do_images): 
6482         * demos/gtk-demo/hypertext.c (do_hypertext): 
6483         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
6484         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
6485         * demos/gtk-demo/dialog.c (do_dialog): 
6486         * demos/gtk-demo/colorsel.c (do_colorsel): 
6487         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
6488         * demos/gtk-demo/button_box.c (do_button_box): 
6489         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
6490         as argument, and make new windows or dialogs appear on the
6491         same screen.  (#80388)
6492
6493 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
6494
6495         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
6496         visible-window default to TRUE, as documented and 
6497         implemented. (#126270 Damon Chaplin)
6498
6499 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
6500
6501         * gtk/gtkicontheme.c: 
6502         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
6503         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
6504         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
6505         2.4 additions.
6506
6507 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
6508
6509         Changing GtkFileChooserEntry to use GtkEntryCompletion.
6510
6511         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
6512         a GtkListStore for the completion list.  Create a
6513         GtkEntryCompletion and attach it to the chooser entry.
6514         (gtk_file_chooser_entry_finalize): Unref the completion store.
6515         (completion_match_func): New callback for the GtkEntryCompletion.
6516         (completion_idle_callback): Fill the completion store with filenames.
6517
6518 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
6519
6520         * gtk/gtkwindow.c (gtk_window_set_role): 
6521         * gtk/gtkwindow.c (gtk_window_set_title): 
6522         * gtk/gtkwidget.c (gtk_widget_set_name): 
6523         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
6524         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
6525         safe for self-assignment.  (#122745, Soeren Sandmann)
6526
6527 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
6528
6529         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
6530         (#126369, Olexiy Avramchenko)
6531
6532 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
6533
6534         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
6535         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
6536         consistency of titles.  (#126193, Damon Chaplin)
6537
6538 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
6539
6540         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
6541         menus to be transient for the toplevel they were torn off from.
6542         (gtk_menu_get_toplevel): Auxiliary function to find the
6543         toplevel of a menu.  (#54775, Jon-Kare Hellan)
6544
6545 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
6546
6547         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
6548         min-position and max-position.  (#58431, Padraig O'Briain)
6549
6550 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
6551
6552         * gtk/gtkcolorsel.c (update_color): 
6553         (make_label_spinbutton): 
6554         (adjustment_changed): Change the ranges for Saturation and
6555         Value to be 0-100 instead of 0-255, since these axes of HSV
6556         are usually expressed in percent.  (#121519, Gregory Merchan)
6557
6558 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
6559
6560         * docs/faq/gtk-faq.sgml: More 2.x updates
6561
6562 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
6563
6564         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
6565         pkg-config command error, update copyright.
6566
6567 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6568
6569         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
6570         well.  Use a helper function.
6571         (shortcuts_append_home): Display an error box if necessary.
6572         (shortcuts_append_desktop): Likewise.
6573         (add_bookmark_button_clicked_cb): Likewise.
6574         (gtk_file_chooser_default_select_path): Likewise.
6575         (entry_activate): Likewise.
6576         (shortcuts_append_paths): New helper function.
6577         (shortcuts_append_file_system_roots): Use
6578         shortcuts_append_paths().
6579         (shortcuts_append_bookmarks): Likewise.
6580
6581 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
6582
6583         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
6584         menu is NULL.
6585         (update_smart_separators): Remove some unneeded ifs.
6586
6587 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
6588
6589         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6590         these usable in C++. Forgot this file in my Oct 11 commit.
6591
6592 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6593
6594         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
6595         icon to the "Add bookmark" button.
6596
6597         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
6598         * gtk/gtkfilesystemmodel.c: Likewise.
6599         * gtk/gtkfilechooser.c: Likewise.
6600         * gtk/gtkfilechooserdefault.c: Likewise.
6601
6602 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
6603
6604         * gdk/gdk.c: 
6605         * gdk/gdkinternals.h: 
6606         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
6607         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
6608         Xinerama mode when no actual Xinerama setup is found. 
6609
6610 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6611
6612         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
6613         (create_shortcuts_tree): Don't call the above.
6614         (bookmarks_changed_cb): Likewise.
6615         (tree_selection_changed): Unselect everything from the shortcuts
6616         list.  This is the behavior that Mac OS has.
6617         (toolbar_add_item): Return the item.
6618         (toolbar_create): Store the up_button in the impl structure.
6619         (toolbar_check_sensitivity): New function to set the sensitivity
6620         of the "Up" button in the toolbar.
6621         (tree_selection_changed): Call toolbar_check_sensitivity().
6622
6623 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
6624
6625         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
6626         not set a border width for the toplevel container.
6627         (toolbar_create): New function; create a simple toolbar for the
6628         file chooser.
6629         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
6630         the table, as per the HIG.
6631         (gtk_file_chooser_default_init): Likewise, for the default
6632         implementation's vbox.
6633
6634         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
6635         note that NULL is a valid return value for the parent path.
6636
6637 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6638
6639         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
6640         Change on activation, not selection change (temporary
6641         workaround for #125955, needed for keynav, likely
6642         the right UI anyways.)
6643
6644         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
6645         Don't allow the separator node to be selected.
6646
6647         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6648         Set the focus chain so that the entry gets focused first.
6649         (Not really right after initial focusing, maybe we
6650         should just have a gtk_file_chooser_focus_entry() that
6651         we call from gtk_file_chooser_dialog on creation.)
6652
6653 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
6654
6655         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6656         residual call to gtk_window_get_private().
6657
6658 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
6659
6660         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6661         into GtkWindowPrivate structure, fixing ABI breakage
6662         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6663         to instance-private-data.
6664
6665 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6666
6667         * gtk/gtktoolbar.c (get_item_requisition): delete this function
6668         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6669         instead of re-calculating for each item.
6670         (gtk_toolbar_size_allocate): Update comments
6671
6672 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6673
6674         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6675         placeholders when include_internals is TRUE.
6676
6677 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6678
6679         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6680         item 0 is a placeholder. (#125826)
6681         * tests/testtoolbar.c: add an assertion that 
6682         gtk_toolbar_get_nth_item (0) != NULL
6683
6684 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6685
6686         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6687         logical == 0.(#125826)
6688
6689 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6690
6691         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6692         return the index of a real item.
6693         (get_nth_item) assert that the returned items is not a
6694         placeholder.  (#125826, Marco Pesenti Gritti).
6695         
6696 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
6697
6698         * gtk/gtkcellrendererseptext.c
6699         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6700         text is NULL, rather than also doing it if it is an empty string.
6701
6702 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
6703
6704         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6705         gtk_message_dialog_new_with_format): Allow NULL
6706         for message_format, as described in the docs and
6707         as worked previously. (#125759, Richard Hult)
6708
6709         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6710         Use g_markup_vprintf_escaped() to escape arguments.
6711
6712         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6713         so there is some way to set literal markup.
6714
6715 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
6716  
6717         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6718         the call to gdk_error_trap_pop() to the right place,
6719         fixing a problem where we'd pop() too many times 
6720         when bailing out. (#123302, Thomas Leonard)
6721         
6722 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
6723
6724         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
6725         Fix infinite recursion. (#125679, Christian Persch)
6726
6727 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
6728
6729         * docs/faq/gtk-faq.sgml: further 2.x updates:
6730         mirrors,compiling,g_main_context_iteration
6731
6732 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6733
6734         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6735         function; remove gtk_toolbar_highlight_drop_location() and
6736         gtk_toolbar_unhighlight_drop_location().
6737
6738         Also fix bug where the number of overflowed items were miscounted.
6739
6740 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
6741
6742         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6743         some accidentally committed duplicate code.
6744
6745 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
6746
6747         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6748
6749 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
6750
6751         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
6752         gtk_has_toplevel_focus): Add getters corresponding to
6753         the is_active and has_toplevel_focus properties.
6754         (#122531)
6755
6756 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
6757
6758         * gtk/gtkexpander.c:
6759         (gtk_expander_class_init): hook up the destroy handler.
6760         (gtk_expander_destroy), (gtk_expander_unrealize):
6761         remove the expand/collapse timeout on destroy instead
6762         of unrealize to avoid leaving the expander in a inconsistent
6763         state when unrealizing during animation.
6764         (gtk_expander_start_animation): remove realized check.
6765         (gtk_expander_set_expanded): if the widget isn't realized,
6766         expand immediately.
6767
6768 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
6769
6770         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6771         do nothing when recipient is NULL, as described in the
6772         doc comment. (#123107, Thomas Leonard)
6773
6774 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
6775
6776         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6777         rewrite docs, mention memory management for the return
6778         value. (Partly addresses #125549, Michael Natterer)
6779
6780 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
6781
6782         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6783         Change index to filter_index to fix compilation error.
6784
6785         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6786
6787 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
6788
6789         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6790         we have RandR support, for XRRUpdateConfiguration declaration.
6791
6792         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6793         declaration.
6794
6795         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6796         length a gsize variable, since that's what g_file_get_contents()
6797         expects.
6798
6799 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
6800
6801         * NEWS: Fix attribution for above/below EWMH work.
6802
6803 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
6804
6805         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
6806         as a construct-only property.  (#125475, Murray Cumming)
6807
6808 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6809
6810         Fix bug 116297 and 125472
6811         
6812         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6813         this function take an index and a GtkToolItem.
6814
6815         * tests/testtoolbar.c (main): Make "Show Arrow" default to
6816         true. Make one of the separators !draw and expand.
6817         Update for new highlight_drop_location() API.
6818
6819         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6820
6821         * gtk/gtktoolbar.h: Formatting fixes.
6822
6823         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6824         separator tool items to expand.
6825         (logical_to_physical, physical_to_logical): Fix off-by-one errors
6826         (Fix #125472, Marco Pesenti Gritti)
6827
6828         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6829         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6830         return FALSE, not TRUE.
6831         (gtk_separator_too_item_{set|get}_property,
6832         (gtk_separator_tool_item_{set|get}_draw): new functions
6833
6834 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
6835
6836         * === Released 2.3.0 ===
6837
6838         * configure.in: Remove a stray comma.
6839
6840         * README.in: Fix a few notes about Xft 1 and pango-1.0.
6841
6842         * NEWS: Finish updates for 2.3.0.
6843
6844         * po/Makefile.in.in: Update to latest GLib version.
6845
6846 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
6847
6848         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6849         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6850         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6851         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6852         Sandmann).
6853
6854 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
6855
6856         * gtk/gtktreemodelfilter.h: add padding to the class structure.
6857
6858 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
6859
6860         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6861         (gtk_file_chooser_remove_filter): Likewise.
6862         (gtk_file_chooser_select_all): Added docs.
6863         (gtk_file_chooser_unselect_all): Likewise.
6864
6865         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6866
6867         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6868
6869 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
6870
6871         * gtk/gtkfilefilter.c: 
6872         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6873
6874 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
6875
6876         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6877
6878 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
6879
6880         * NEWS: Remove a few duplicates, group the menu changes.
6881
6882 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
6883
6884         * NEWS: Updates for 2.3.0; changed header to match the style we used
6885         for 2.1.0.
6886
6887 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
6888
6889         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6890         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
6891
6892 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
6893
6894         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6895         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6896         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6897
6898 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6899
6900         * NEWS: Partial update for 2.3.0.
6901
6902 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
6903
6904         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6905         GtkComboBox.
6906
6907 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
6908
6909         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
6910         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6911         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6912         Basic framework for the new file selector widget.
6913
6914         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
6915         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6916         Initial implementation of the GtkFileChooser user interface.
6917
6918         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6919         for Unix files.
6920
6921         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6922         for freedesktop.org MIME system on Unix.
6923
6924         * tests/testfilechooser.c: Test program for GtkFileChooser
6925
6926         * tests/prop-editor.c: Add support for properties on interfaces.
6927
6928 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6929
6930         * demos/gtk-demo/menus.c (do_menus): Fix some unused
6931         variables.
6932
6933         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6934         variable warning.
6935
6936 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
6937
6938         * NEWS: Partial update for 2.3.0.
6939
6940 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
6941
6942         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6943         ctrl_pressed and shift_pressed according to the current event
6944         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6945
6946 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
6947
6948         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6949         timeout when the user pressed on Enter/ESC. Fixes the bug where the
6950         completion popup popped up after the user pressed on Enter (which is
6951         just weird). Reported by the Epiphany people (all of them).
6952
6953 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6954
6955         Add support for OS X like sliding of toolbar items during drag and
6956         drop, (#110919, Dave Bordoley)
6957
6958         Make dnd highlighting the responsibility of the
6959         application. (Fixes #116298, Owen Taylor)
6960
6961         * gtk/gtktoolbar.h: Add prototypes for new API.
6962         
6963         * gtk/gtktoolbar.c
6964         (physical_to_logical, logical_to_physical): new functions
6965         converting between "position including placeholders" and "position
6966         excluding placeholders".
6967         (gtk_toolbar_class_init): remove drag_leave and drag_motion
6968         handlers
6969         (struct _ToolbarContent): new struct containing information
6970         related to toolbar items.
6971         (gtk_toolbar_highlight_drop_location): new public function
6972         (gtk_toolbar_unhighlight_drop_location): new public function
6973         
6974         * tests/testtoolbar.c
6975         (toolbar_drag_motion, toolbar_drag_leave): new functions
6976         (main): connect to dnd signals.  Make the "New" item expand to
6977         make drag and drop more exciting.
6978
6979 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
6980
6981         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6982         _set_active, not _set_active_item.
6983
6984 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
6985
6986         * gtk/gtkcombobox.h: add padding to the class structure.
6987         * gtk/gtkcomboboxentry.h: ditto.
6988         * gtk/gtkentrycompletion.h: ditto.
6989
6990 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
6991
6992         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6993         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6994         value and what it means.
6995
6996         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6997         item to -1 (default),
6998         (gtk_combo_box_entry_active_changed): do nothing when the index is
6999         < 0.
7000
7001 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
7002
7003         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
7004         to set the active row by iter.
7005
7006         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
7007         to get the active row by iter.
7008
7009 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
7010
7011         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
7012         operations on windows if the tree view is not mapped.
7013         (gtk_tree_view_button_press): Compare equal types of pointers, not
7014         GtkWidget* vs. GtkTreeView*.
7015
7016 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
7017
7018         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
7019         the reset of first_sel_changed, as after the first popup the treeview
7020         will always have a row selected and will thus not focus_to_cursor.
7021
7022         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
7023         whether the keyval should move the completion selection cursor (used
7024         to avoid ending up with extreme cluttered code), also added
7025         all KP_ equivalents of the keys here,
7026         (gtk_entry_completion_key_press): Keynav tweaks based on comments
7027         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
7028         as possible current selection, implement Home/End keys, modified
7029         the down key to stop cycling. Maybe page up/down should be implemented
7030         at some later time.
7031
7032 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
7033
7034         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
7035         as documented when pixmap or mask is NULL.  (#124081) 
7036
7037 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
7038
7039         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
7040         I was adding the signal block/unblock code. Oops. (Noticed by
7041         Marco Pesenti Gritti).
7042
7043 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
7044
7045         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
7046         (set_interp_type), (main): port over from option menu to GtkComboBox.
7047
7048 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
7049
7050         * tests/testmenus.c: Still uses option menus, so turn off
7051         GTK_DISABLE_DEPRECATED.
7052
7053 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
7054
7055         * gtk/gtkalignment.[hc]: 
7056         * gtk/gtkcombobox.[hc]: 
7057         * gtk/gtkcomboboxentry.[hc]: 
7058         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
7059         from header to implementation.
7060
7061 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
7062
7063         * tests/testtreeview.c: 
7064         * demos/testpixbuf-scale.c: 
7065         * tests/prop-editor.c: These files still use option menus,
7066         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
7067
7068 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
7069
7070         * gtk/gtkactiongroup.h: 
7071         * gtk/gtkaction.h: 
7072         * gtk/gtkradioaction.h: 
7073         * gtk/gtkradiotoolbutton.h: 
7074         * gtk/gtkseparatortoolitem.h: 
7075         * gtk/gtktoggleaction.h: 
7076         * gtk/gtktoolitem.h: 
7077         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
7078         these usable in C++.  (#124351, Murray Cumming)
7079
7080 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
7081
7082         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
7083         non-NULL before accessing it. Oops.
7084
7085 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
7086
7087         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
7088         (gtk_entry_completion_insert_action_text),
7089         (gtk_entry_completion_insert_action_markup): the gchar* parameters
7090         should be const (pointed out by both Marco Pesenti Gritti and
7091         Murray Cumming (#124356).
7092
7093 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
7094
7095         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
7096         child list mode, allocate the height allocation->height to the
7097         button instead of the height requested by the button. (Tiny
7098         size allocation screwup noticed by Macro Pesenti Gritti).
7099
7100 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
7101
7102         Fixes based on comments from Marco Pesenti Gritti.
7103
7104         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
7105         signal handler, avoids the completion popup to popup when text is
7106         set programmatically in most cases (we actually have to handle this
7107         in the _editable functions as well, but that will break popping up
7108         when the user actually typed something :),
7109         (gtk_entry_completion_key_press): when handling enter, bail out
7110         when nothing has been selected,
7111         (gtk_entry_completion_changed): don't popdown when the entry content
7112         changed.
7113
7114         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
7115         (gtk_entry_completion_selected_changed): unselect_all on the
7116         first selected changed signal. Avoids having a default row selected,
7117         (_gtk_entry_completion_popup): don't select the first row by default.
7118
7119         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
7120         first_sel_changed field.
7121
7122 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
7123
7124         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
7125         in the intro (again).
7126
7127 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
7128
7129         Fixes for (#124212, Marco Pesenti Gritti):
7130         
7131         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
7132         warnings for popups.
7133         (_gtk_menu_is_empty): Return FALSE for non-menus.
7134
7135 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
7136
7137         * gtk/gtkcombo.h: Deprecate.
7138         * gtk/gtkoptionmenu.h: Ditto.
7139
7140         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
7141         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
7142         needs some work on requesting enough size when taking the items in
7143         the list into account.
7144
7145         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
7146         deprecated" guards.
7147         * gtk/gtkinputdialog.c: ditto.
7148         * gtk/gtkitemfactory.c: ditto.
7149         * gtk/gtkoptionmenu.c: ditto.
7150
7151         * demos/gtk-demo/menus.c: remove the option menu.
7152         * demos/gtk-demo/sizegroup.c: replace the option menus with
7153         GtkComboBox.
7154         * demos/gtk-demo/textview.c: ditto.
7155         (A general GtkComboBox demo will be added later on).
7156
7157 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
7158
7159         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
7160         callback to propertly report radio actions.
7161
7162         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
7163
7164 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
7165
7166         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
7167         version in in the right field of the _XEMBED_INFO property.  
7168         (#123885, Denis Mikhalkin)
7169
7170 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
7171
7172         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
7173         the child if we have one.
7174
7175         (gtk_expander_button_release): use
7176         gtk_widget_activate instead.
7177
7178 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
7179
7180         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
7181         "right_attach" with a capital.  (#123945, Christian Rose)
7182
7183 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
7184
7185         * tests/testsocket.c (child_read_watch): Remove an
7186         extraneous unref.  (#122336, Frederic Crozat)
7187
7188 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
7189
7190         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
7191         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
7192
7193 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7194
7195         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
7196         focus arrow before pack_end items (#123851, Matthias Clasen)
7197
7198 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
7199
7200         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
7201         on ->priv->cell_view if ->priv->cell_view is non-NULL.
7202
7203         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
7204         field to GtkComboBoxEntryPrivate,
7205         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
7206         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
7207         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
7208         a construct-only "text_column" property and reorder code to use it
7209         and support inheriting this widget.
7210
7211 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
7212
7213         * gtk/gtkcombobox.c: Added API doc comments.
7214
7215         * gtk/gtkcomboboxentry.c: Ditto.
7216
7217 2003-10-02  Matthias Clasen  <maclas@gmx.de>
7218
7219         * gtk/gtktoggleaction.c: Documentation tweaks.
7220
7221 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
7222
7223         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
7224         packing/attribute/cell data functions from the header,
7225         (gtk_cell_view_set_cell_data): added support for cell data funcs.
7226
7227         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
7228         packing/attribute/cell data functions from the header, implemented
7229         cell data func support.
7230
7231         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
7232         for the move to GtkCellLayout.
7233
7234         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
7235
7236 2003-10-01  Matthias Clasen  <maclas@gmx.de>
7237
7238         * gtk/gtkaction.c (gtk_action_class_init): 
7239         (gtk_action_[gs]et_property): Introduce a separate
7240         "hide_if_empty" property for empty menu handling.
7241         (_gtk_action_sync_menu_visible): ...and use it here.
7242
7243         * tests/testmerge.c (main): ...and here.
7244
7245         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
7246         comments to pacify gtk-doc.
7247
7248         * gtk/gtkmain.c: Doc formatting tweaks.
7249
7250         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
7251
7252         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
7253         Use the same parameter names as in .c file, to pacify gtk-doc.
7254
7255         * gtk/gtktoggletoolbutton.[hc]: 
7256         * gtk/gtktoolbutton.[hc]: 
7257         * gtk/gtktoolitem.[hc]:
7258         * gtk/gtktoolbar.[hc]: 
7259         * gtk/gtkcolorbutton.[hc]: 
7260         * gtk/gtkfontbutton.[hc]: 
7261         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
7262         source, not in the header.
7263
7264         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
7265         Document these as 2.4 API additions.
7266
7267 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
7268
7269         * gtk/gtkentry.c (gtk_entry_set_completion),
7270         (gtk_entry_get_completion): Add API doc comments.
7271
7272         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
7273
7274 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
7275
7276         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
7277
7278 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
7279
7280         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
7281
7282         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
7283
7284 2003-09-30  Matthias Clasen  <maclas@gmx.de>
7285
7286         * tests/merge-*.ui: 
7287         * tests/testmerge.c: Test handling of empty menus.
7288
7289         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
7290         whether a menu is empty. Used in gtkaction.c.
7291         (update_smart_separators): Also update the visibility of empty menus.
7292         (update_node): When creating a new menu proxy, insert an "Empty" menu 
7293         item which only gets shown if the menu is empty. 
7294
7295         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
7296         "is_important" for menu proxies.
7297         (_gtk_action_sync_menu_visible): New function to sync the visibility
7298         of menu proxies. Used in gtkuimanager.c.
7299         (gtk_action_sync_visible): New function to sync the visibility of 
7300         proxies.
7301
7302 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
7303
7304         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
7305         popup_in_progress to TRUE,
7306         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
7307         won't disappear on the first button release. (Reported by Matthias
7308         Clasen).
7309
7310 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
7311
7312         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
7313
7314         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
7315         Marco Pesenti Gritti).
7316
7317 2003-09-30  Murray Cumming  <murrayc@usa.net>
7318  
7319         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
7320         instead of a GdkWindow*, because that what it is given. The 
7321         documentation was already correct. This should cause no API/ABI
7322         breakage with C compilers.
7323         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
7324         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
7325         implementation accordingly.
7326
7327 2003-09-30  Matthias Clasen  <maclas@gmx.de>
7328
7329         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
7330         "direction-changed" and "keys-changed" signals.
7331
7332         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
7333         "size-changed" signal.
7334
7335         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
7336         Document the "display-opened" signal.
7337
7338         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
7339         (gdk_display_class_init): Document the "closed" signal.
7340
7341 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7342
7343         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
7344         accepts_tab. (#122709 again).
7345
7346 2003-09-27  Matthias Clasen  <maclas@gmx.de>
7347
7348         * gtk/gtkwindow.c (gtk_window_new):
7349         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
7350         the fact that the newly created object does not come with 
7351         a floating reference.  (#103068, patch by Frederic Lespez)
7352         
7353         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
7354         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
7355         since GtkActionGroup uses it.
7356
7357         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
7358         this test uses the soon-to-be-deprecated GtkItemFactory.
7359
7360         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
7361         remove item_factory.c
7362
7363         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
7364         using GtkUIManager instead of GtkItemFactory.
7365
7366         * tests/testmerge.c: Demonstrate the use of the 
7367         connect-proxy signal.
7368
7369         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
7370         disconnect-proxy signals to do small customizations 
7371         like displaying tooltips in the statusbar without 
7372         custom actions.  (#122894, Philip Langdale)
7373
7374         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
7375
7376 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
7377
7378         Landing the new ComboBox. Note that only gtkcombobox.h and
7379         gtkcomboboxentry.h are public.
7380
7381         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
7382         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
7383
7384         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
7385
7386         * tests/testcombo.c: and a new test.
7387
7388         * tests/Makefile.am: adding the new test.
7389
7390 2003-09-25  Tor Lillqvist  <tml@iki.fi>
7391
7392         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
7393
7394 2003-09-21  Tor Lillqvist  <tml@iki.fi>
7395
7396         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
7397         function. Code split out from gdk_event_translate(). Needed
7398         because gdk_event_get_graphics_expose() couldn't do anything
7399         sensible otherwise. (Not that I think graphics exposes work anyway
7400         in gdk/win32, but at least now the code could work.)
7401
7402         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
7403         gdk_event_translate(), which couldn't have worked as it doesn't
7404         take any pre-allocated GdkEvent parameter any longer.
7405         
7406         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
7407         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
7408
7409 2003-09-24  Matthias Clasen  <maclas@gmx.de>
7410
7411         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
7412         on toolitems.
7413
7414         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
7415
7416         * gtk/gtkuimanager.c (update_node): Don't complain about missing
7417         actions on popups. Re-set "tooltip" property on toolitems after
7418         adding them to parent to trigger proxy update.
7419
7420 2003-09-22  Matthias Clasen  <maclas@gmx.de>
7421
7422         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
7423         group member to test the fix for #122904.
7424
7425         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7426         Add the action to the group before activating it, otherwise we
7427         may end up with multiple active group members.  (#122904, Marco
7428         Pesenti Gritti)
7429
7430 2003-09-21  Matthias Clasen  <maclas@gmx.de>
7431
7432         Changes to make cross-process merging feasible:
7433         
7434         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
7435         merged UI definition. Remove the "changed" signal, since its role
7436         is now filled by "notify::ui". Instead add a "actions-changed" signal
7437         which gets emitted when the set of actions changes.
7438
7439         * gtk/gtktoggleactionprivate.h:
7440         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
7441         Add a "draw_as_radio" property to toggle actions so that they can be
7442         used as proxies for radio actions much like the "draw_as_radio" 
7443         property on check menu items enables them to operate as proxies for
7444         radio actions.
7445
7446         Prevent the "show_all" trap for action-based menus (see
7447         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
7448         msg00260.html):
7449
7450         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
7451         calls from static functions.
7452
7453         * gtk/gtkuimanager.c (update_node): 
7454         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
7455         widgets whose visibility is externally controlled.
7456
7457         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
7458         "no_show_all" property with setter and getter. When TRUE, it keeps
7459         gtk_widget_{hide,show}_all() from modifying the visibility of the 
7460         widget and its children.
7461
7462 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7463
7464         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
7465
7466 2003-09-20  Tor Lillqvist  <tml@iki.fi>
7467
7468         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
7469         including editor backup files. List files we want explicitly.
7470
7471         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
7472         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
7473         LC_ALL, LC_CTYPE and LANG environment variables, than calls
7474         g_win32_getlocale().
7475
7476         (gtk_get_default_language): Code snippet moved to above function,
7477         call it.
7478
7479         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
7480         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
7481         _gtk_get_lc_ctype() instead of setlocale().
7482
7483 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7484
7485         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
7486         (#96632)
7487
7488 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7489
7490         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
7491         documentation. (#117306, Steve Chaplin)
7492
7493 2003-09-19  Tor Lillqvist  <tml@iki.fi>
7494
7495         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
7496         present on the US-International keyboard. For clarity, order
7497         keysyms in case statement according to numeric value.
7498
7499         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
7500         correctly. (#120176, Ken Rastatter and Owen Taylor)
7501
7502 2003-09-18  Matthias Clasen  <maclas@gmx.de>
7503
7504         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
7505         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
7506
7507         Install accelerators on actions, not on proxies, support
7508         accelerator-only actions:
7509         
7510         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
7511         and its lock status either via _gtk_widget_get_accel_path() or by 
7512         looking at the accel_path stored in the menu item itself and determining
7513         its lock status by peeking into the contained accel label. This was
7514         already (accidentally) committed a week ago.
7515
7516         * gtk/gtkaction.h (gtk_action_set_accel_group):
7517         (gtk_action_[dis]connect_accelerator): New functions.
7518
7519         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
7520         accel_closure and accel_count. We must have a reference to the 
7521         accel_group, since we need it in connect_proxy. The count is necessary
7522         to ensure that the accelerator isn't removed before the last proxy 
7523         requesting it has been unmerged.
7524         (connect_proxy): Connect the accelerator to the 
7525         action now, only set the accel_path on the menuitem.
7526         (remove_proxy): Disconnect the accelerator from the action, not from
7527         the menuitem.
7528         (gtk_action_set_accel_group): Set the accel group. 
7529         (gtk_action_[dis]connect_accelerator): Count the number of times
7530         this functions have been called and install/remove the accelerator if
7531         the count leaves/reaches zero.
7532
7533         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
7534         GTK_UI_MANAGER_ACCELERATOR.
7535
7536         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
7537         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
7538         <accelerator> elements.
7539         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
7540         type is GTK_UI_MANAGER_ACCELERATOR.
7541         (update_node): Set the accel group on actions before creating their
7542         proxies. Don't set the accel group on created menus. For 
7543         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
7544         (print_node): Also emit <accelerator> elements.
7545
7546         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
7547
7548         * gtk/gtkuimanager.c (update_node): Robustness improvements.
7549
7550 2003-09-17  Matthias Clasen  <maclas@gmx.de>
7551
7552         * gtk/gtkuimanager.c (text_handler): Report unexpected character
7553         data as error from the GMarkup parser, otherwise things like
7554         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
7555         pass unexpectedly.
7556
7557 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7558
7559         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
7560         committed redraw_on_allocate change.
7561
7562 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
7563
7564         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
7565         stubs to fix compilation
7566
7567         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
7568         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
7569
7570         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
7571         variable. Patch from Marc Welz (#121347).
7572
7573 2003-09-16  Matthias Clasen  <maclas@gmx.de>
7574
7575         * gtk/gtkaction.h: Apply egtk-format-protos.
7576
7577 2003-09-15  Matthias Clasen  <maclas@gmx.de>
7578
7579         * gtk/gtkuimanager.c: Doc tweaks.
7580
7581         Smart separators; see 
7582         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
7583         
7584         * gtk/gtkuimanager.c (update_smart_separators): New function which 
7585         implements "smart" separators by iterating once over the entries of a 
7586         menu, hiding and showing separators as necessary.
7587         (update_node): Mark separators used as fences of placeholders as
7588         hidden. Explicitly added separators are marked as smart. Call 
7589         update_smart_separators after updating a menu or toolbar node. 
7590         Connect update_smart_separators to "notify::visible" signal on menu
7591         and tool items.
7592         
7593         * tests/merge-[12].ui: Test smart separators.
7594
7595         Changes to allow setting action state before connecting signal; see
7596         the thread starting at 
7597         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
7598         
7599         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
7600         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
7601         setting the currently selected group member before connecting signals.
7602         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
7603         including a boolean to initialize the action state before connecting
7604         signals.
7605         (gtk_action_group_add_toggle_actions):
7606         (gtk_action_group_add_toggle_actions_full): New functions to construct
7607         toggle actions from an array of GtkToggleActionEntries.
7608
7609         * demos/gtk-demo/appwindow.c: 
7610         * tests/testactions.c: 
7611         * tests/testmerge.c: Adjust to new action group API.
7612
7613 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7614
7615         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
7616         "gtk-toolbar-arrow" so themes can special-case it.
7617
7618 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7619
7620         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
7621
7622 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7623
7624         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
7625         PangoFontMetrics. Patch from Steve Chaplin (#122257).
7626
7627 2003-09-14  Tor Lillqvist  <tml@iki.fi>
7628
7629         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
7630         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
7631         the usefulness of which was already in doubt. Removing it fixes
7632         bugs #118575 and #121851.
7633
7634 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
7635
7636         Merge from stable.
7637
7638         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7639         pressed button (used to determine if we want to initiate a drag later
7640         on) if the current grab widget is either NULL or tree_view (Reported
7641         by Jeroen Zwartepoorte).
7642
7643 2003-09-12  Matthias Clasen  <maclas@gmx.de>
7644
7645         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
7646         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
7647
7648 2003-09-11  Matthias Clasen  <maclas@gmx.de>
7649
7650         * gdk/gdkpango.c: Doc tweaks.
7651
7652         * tests/testgtk.c: Add table menu tests.
7653
7654         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
7655         GtkMenuPrivate struct itself. Pointed out by valgrind.
7656
7657         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
7658         properly.  (#121998)
7659
7660 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
7661
7662         The table menu patch! Turns GtkMenu into a table, so you can attach
7663         menu items in numerous new ways! Be creative!
7664
7665         Contains some bug fixes and RTL adaptions from Matthias Clasen.
7666
7667         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7668         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7669         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7670         the heights array in the private struct,
7671         (gtk_menu_class_init): reorder code a bit, install child properties,
7672         (get_attach_info), (get_child_attach): new utility functions,
7673         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7674         child properties, for the attach info,
7675         (gtk_menu_remove): remove AttachInfo from menu item,
7676         (gtk_menu_real_insert): implemented algorithm to automagically place
7677         inserted menu items at the correct place in the table,
7678         (gtk_menu_size_request), (gtk_menu_size_allocate),
7679         (compute_child_offset): reworked/rewritten to support table menus,
7680         (gtk_menu_attach): new function,
7681         (find_child_containing), (gtk_menu_move_current): new functions to
7682         get table menu keynav right.
7683
7684         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7685
7686 2003-09-10  Matthias Clasen  <maclas@gmx.de>
7687
7688         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
7689         PropertyNotify events from the stream if they have been handled,
7690         in order to enable extending the plug<->socket communication via
7691         properties.
7692
7693 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
7694
7695         Big TreeView DnD fixage, makes drops on empty models work, makes
7696         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7697         Related bugs #95362 and #113314. I don't want to touch this code
7698         ever again.
7699
7700         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7701
7702         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7703         for selection_data->length.
7704
7705         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7706         (set_dest_row), (get_dest_row): we don't store just the row ref
7707         anymore, but a struct with the row ref and additional info,
7708         (set_destination_row): handle drops on empty space and some
7709         style fixes,
7710         (get_logical_dest_row): also return path_down_mode/drop_append_mode
7711         flags, handle dropping childs on their new parents, rewrite
7712         drop append handling into something saner,
7713         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7714         spaces,
7715         (gtk_tree_view_drag_drop): updates for updated backend,
7716         (gtk_tree_view_drag_data_received): updates for updated backend,
7717         path down mode (treestore DnD) handling,
7718         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7719         when we are trying to drop a row on an empty model,
7720         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7721
7722         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7723         (gtk_list_store_row_drop_possible): style and drop-append fixes.
7724
7725         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7726
7727 2003-09-08  Alexander Larsson  <alexl@redhat.com>
7728
7729         * gtk/gtkeventbox.[hc]:
7730         Implement gtk_event_box_get/set_input_only()
7731         
7732         * tests/testgtk.c:
7733         Tests for the new input only event boxes
7734
7735 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
7736
7737         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7738
7739         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7740         the call to gtk_tree_model_filter_add_root,
7741         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7742         the virtual root, allow building levels on the second try to convert
7743         the child path to a filter path,
7744         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7745         root when calling gtk_tree_model_filter_elt_get_path.
7746
7747 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7748
7749         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
7750         Josh Beam)
7751
7752         Fixes for accelerator handling during (un)merging:
7753         
7754         * gtk/gtkuimanager.c (update_node): Move setting info-action
7755         after the switch, since the old action is needed in some cases.
7756         In cases of proxy type mismatch, disconnect the old proxy from
7757         the old action.
7758
7759         * gtk/gtkaction.c (remove_proxy): Renamed from 
7760         gtk_action_remove_proxy(). Move unsetting of the accelerator
7761         here from disconnect_proxy() in order to catch all cases of 
7762         removing a proxy.
7763         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7764         to fail if proxy isn't a proxy of action.
7765
7766 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
7767
7768         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7769         ALL_LINGUAS
7770
7771 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7772
7773         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7774         for toolitems.
7775
7776 2003-09-06  Matthias Clasen  <maclas@gmx.de>
7777
7778         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
7779         prev_action, not from action.  (Fix by David Hampton)
7780
7781 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
7782  
7783         * Back out locale-dependent interpretation of
7784         KP_Decimal, the official XFree86 interpretation
7785         is that KP_Decimal => . KP_Separator => ,
7786         always, independent of locale. 
7787         (#105161, Frederic Crozat, 
7788         http://bugs.xfree86.org/show_bug.cgi?id=534)
7789  
7790 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7791
7792         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7793
7794         * gtk/gtktoggleaction.c (connect_proxy): 
7795         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
7796         that a "draw_as_radio" property is needed for check buttons similar to 
7797         check menu items, in order to fully support button proxies for radio actions.
7798
7799         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7800
7801         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
7802
7803         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7804         'type' argument of gtk_ui_manager_add_ui().
7805
7806         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7807         to make this function as powerful as the XML methods of adding UI.  (#120647)
7808
7809 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
7810
7811         Merge from stable.
7812
7813         * docs/RELEASE-HOWTO: updates.
7814
7815 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7816
7817         * tests/merge-2.ui: Use "position" instead of "pos".
7818
7819         * gtk/gtkuimanager.c (start_element_handler): No need 
7820         to be terse: Change the name of the "pos" attribute
7821         to "position".
7822
7823 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7824
7825         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
7826         GtkUIManagerNode to shorten the names and to make the
7827         GTK_UI_MANAGER_<TYPE> names available for a public enum.
7828
7829         * gtk/gtkactiongroup.c:
7830         * gtk/gtkuimanager.c: Various doc tweaks.       
7831
7832         * gtk/gtkuimanager.c (start_element_handler):
7833         (end_element_handler): Improve error reporting. 
7834
7835 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
7836
7837         Merge from stable.
7838
7839         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7840         use end_position - page_size instead of G_MAXINT, since
7841         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7842         reported by Havoc Pennington).
7843
7844 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
7845
7846         Merge from stable.
7847
7848         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7849         unref it. (Fixes memleak, patch from Kjartan Maraas).
7850
7851 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
7852
7853         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7854         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7855         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7856         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7857         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7858         gtk/gtktypeutils.h: big patch from Kjartan Maraas
7859         to fix numerous typos.
7860
7861 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
7862
7863         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7864
7865 2003-09-02  Tor Lillqvist  <tml@iki.fi>
7866
7867         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7868         CloseHandle() on the HMODULE returned from GetModuleHandle().
7869         Didn't cause any harm, but didn't do anything useful either. When
7870         running a GTK+ program under MS's debugger, the CloseHandle() call
7871         would cause a "first-chance exception" in ntdll.dll to show up.
7872         (The exception is caught appropriately if you let it proceed, but
7873         it confuses the person using the debugger). Thanks to Bruce
7874         Hochstetler for noticing.
7875
7876 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
7877
7878         Merge from stable.
7879
7880         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7881         to only select when button 1 is pressed introduced in the fix of
7882         bug #120187.
7883
7884 2003-09-02  Matthias Clasen  <maclas@gmx.de>
7885
7886         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7887
7888         * gtk/gtkuimanager.c: Shorten the names of some static 
7889         functions.
7890
7891         Support adding and removing merge nodes dynamically (#120647, 
7892         Anders Carlsson):
7893         
7894         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
7895         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
7896         and made it public.
7897         (gtk_ui_manager_add_ui): New function to add UI elements
7898         without juggling XML fragments, currently restricted to menuitems,
7899         toolitems and separators. Actions still come from registered 
7900         action groups.
7901
7902 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7903
7904         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7905         background pixmap was being offset twice, once by the ts_origin in
7906         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7907
7908 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7909
7910         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7911         this public again, since it's occasionally useful.  (#121128,
7912         Marco Pesenti Gritti)
7913
7914         * gtk/gtkaction.c: Add an "is_important" property and propagate
7915         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
7916
7917 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7918
7919         * tests/testtoolbar.c (main): connect to "delete_event" so the
7920         application will actually quit when you close the window
7921
7922 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7923
7924         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
7925         (gtk_ui_manager_get_action): g_return_if_fail() if
7926         path is NULL.
7927         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7928         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
7929         Marco Pesenti Gritti)
7930
7931 2003-08-31  Matthias Clasen  <maclas@gmx.de>
7932
7933         * gtk/gtktoolitem.c: Fix some typos in docs.
7934
7935         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7936         replaces gtk_ui_manager_activate().  (#120658)
7937
7938         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7939         gtk_ui_manager_activate().
7940
7941         * gtk/gtkaction.c: 
7942         * gtk/gtkactiongroup.c: Some doc tweaks.
7943
7944         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7945         wasn't emitted anyway. Some doc tweaks.
7946
7947 2003-08-30  Matthias Clasen  <maclas@gmx.de>
7948
7949         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7950         rather than to "remove" on handlebox. 
7951
7952         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7953         activate an action found by following a path.  (#120658)
7954
7955         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7956
7957         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7958
7959         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
7960         setter and getter. If it is set, add tearoff menu items to regular 
7961         menus, but not to popups. Add a signal "changed", which gets emitted
7962         when the merged ui has changed.  (#120649, #120656)
7963
7964         * tests/testmerge.c: Add button to test the generation of tearoff 
7965         menu items.
7966
7967 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7968
7969         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7970         Actually group the actions together rather than putting each in its 
7971         own group.
7972
7973         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
7974         proxy menu items for radio actions.
7975
7976         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7977
7978 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7979
7980         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7981         Fix use of uninitialized variable.
7982
7983         * gtk/gtktextutil.c
7984         (_gtk_text_util_append_special_char_menuitems): add const cast to
7985         get rid of warning
7986
7987 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7988
7989         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
7990         "draw_as_radio" as a separate property, not as an alias of 
7991         "inconsistent".
7992         (gtk_check_menu_item_get_property): 
7993         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7994
7995 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7996
7997         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7998         are narrower than 13 time the estimated character width of the
7999         font. (#107781, David Bordoley)
8000
8001         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
8002         here if the GtkToggleButton is active. This may be the case if it
8003         is a radio button.
8004
8005         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
8006         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
8007         Suarez-Alvarez).
8008
8009         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
8010         property. (#111207, David Bordoley).
8011
8012         * gtk/gtktoggletoolbutton.c
8013         (gtk_toggle_tool_button_create_menu_proxy): use new
8014         "draw_as_radio" property on the menu item when the item is a radio
8015         tool button
8016
8017         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
8018         to only pay attention to the "use_underline" property when the
8019         button label comes from the "label" property.
8020
8021 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
8022
8023         * configure.in: Added "sq" to ALL_LINGUAS.
8024         
8025 2003-08-28  Matthias Clasen  <maclas@gmx.de>
8026
8027         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
8028         fix in the docs.
8029
8030         * gtk/gtkuimanager.c: Change the XML format:
8031         <Root> element is replaced by <ui>,
8032         <menu> element is replaced by <menubar>,
8033         <submenu> element is replaced by <menu>,
8034         <dockitem> element is replaced by <toolbar>,
8035         <popups> element is gone,
8036         verb attribute is replaced by action,
8037         name defaults to action or the element name. 
8038
8039         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
8040         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
8041         by removing the user_data, entry_type and extra_data fields, 
8042         GtkRadioActionEntry is further simplified by removing the callback. 
8043         The user_data can now be specified as an argument to 
8044         gtk_action_group_add_actions(). There is a new method 
8045         gtk_action_group_add_radio_actions(), which is similar to 
8046         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
8047         and a callback parameter in addition to the user_data. The callback
8048         is connected to the ::changed signal of the first group member.
8049         There are _full() variants taking a GDestroyNotify of 
8050         gtk_action_group_add_[radio_]actions().
8051
8052         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
8053         on every member of the radio group when the active member is changed. 
8054         Add an integer property "value", and a getter for the value of "value"
8055         on the currently active group member. 
8056
8057         * tests/testactions.c: 
8058         * tests/testmerge.c: 
8059         * tests/merge-[123].ui:  
8060         * demos/gtk-demo/appwindow.c: Adjust to these changes.
8061
8062         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
8063
8064 2003-08-27  Anders Carlsson  <andersca@gnome.org>
8065
8066         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
8067         text view, so the tool bar won't have focus.
8068
8069 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
8070
8071         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
8072         declaration not at start of block. (#120371, Damien Carbery)
8073
8074 2003-08-26  Matthias Clasen  <maclas@gmx.de>
8075
8076         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
8077         for length, not gsize.
8078
8079         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
8080         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
8081         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
8082
8083         * demos/gtk-demo/appwindow.c: 
8084         * tests/testactions.c: 
8085         * tests/testmerge.c:
8086         * tests/merge-1.ui:
8087         * tests/merge-2.ui:
8088         * tests/merge-3.ui: Adjust to the new XML format.
8089
8090 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
8091
8092         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
8093         Since we add one to the layout's reported width to
8094         account for the cursor, we need to subtract one when
8095         setting the wrap width for the layout. (Fixes infinite
8096         loop (#120325, Frederic Crozat)
8097
8098         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
8099         Be a bit more careful about rounding when converting
8100         wrapped width from Pango units to pixels.
8101
8102 2003-08-26  Matthias Clasen  <maclas@gmx.de>
8103
8104         Rename GtkMenuMerge to GtkUIManager. 
8105         
8106         * gtk/gtkuimanager.[hc]: New files. 
8107         * gtk/gtkmenumerge.[hc]: Removed. 
8108
8109         * gtk/Makefile.am: 
8110         * gtk/gtk.h:
8111         * tests/testmerge.c: 
8112         * tests/testactions.c: 
8113         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
8114         GtkUIManager.
8115
8116         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
8117         add comments to entries array, remove newlines from ui definition. Don't 
8118         use the ::add_widget signal.
8119
8120 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
8121
8122         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
8123         include page->menu_label - causes various problems,
8124         including #12047.
8125
8126 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
8127
8128         Merge from stable.
8129
8130         Fixes #115871, reported by Michael Natterer.
8131
8132         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
8133         added ctrl_pressed and shift_pressed bitfields,
8134         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
8135         arg with GtkTreeSelectMode.
8136
8137         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
8138         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
8139         (_gtk_tree_selection_internal_select_node): all updated for
8140         GdkModifierType -> GtkTreeSelectMode move.
8141
8142         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
8143         and shift_pressed around selection handling block,
8144         (gtk_tree_view_real_select_cursor_row),
8145         (gtk_tree_view_real_toggle_cursor_row),
8146         (gtk_tree_view_real_selection_cursor_parent),
8147         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
8148         instead of checking the event state. And also updates for the
8149         GdkModifierType -> GtkTreeSelectMode move.
8150
8151 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
8152
8153         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
8154         to the parent when there was no focus widget before
8155         and no focus widget after - that is, when there are
8156         no focusable widgets. (#108678, help tracking it
8157         down from Padraig O'Briain, Federico Mena Quintero, )
8158
8159         * gtk/gtkxembed.[ch]: Move various shared utilities
8160         for the XEMBED protocol eused by GtkPlug and GtkSocket 
8161         here.
8162
8163         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
8164         a flag bit that is sent with focus mesages to indicate
8165         that the focus has wrapped around on the toplevel;
8166         use this bit to catch infinite loops when there is no
8167         focusable widget at ll in the entire toplevel.
8168
8169         * tests/testsocket.c (child_read_watch): Remove an
8170         extraneous unref.
8171
8172         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
8173         Up XEMBED protocol version to 1, add logic for 
8174         sending the right version in XEMBED_EMBEDDED_NOTIFY.
8175
8176         * gtk/gtksocket.c (gtk_socket_add_window): Send
8177         the embedder window in the XEMBED_EMBEDDED_NOTIFY
8178         as the spec requires.
8179
8180 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
8181
8182         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
8183         NumLock handling for non-XKB. Add a special case
8184         hack for NumLock on Sun servers. (Patch from
8185         Robert Basch, #115819)
8186
8187 2003-08-25  Matthias Clasen  <maclas@gmx.de>
8188
8189         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
8190         Welinder)
8191
8192         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
8193         gtk_action_group_set_translation_domain): Hooks for translation of
8194         label and tooltip in GtkActionGroupEntries.  (#120620)
8195
8196 2003-08-25  Matthias Clasen  <maclas@gmx.de>
8197
8198         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
8199         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
8200         
8201         * gtk/gtkactiongroup.c: 
8202         * demos/gtk-demo/appwindow.c: 
8203         * tests/testmerge.c: 
8204         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
8205
8206 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
8207
8208         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
8209
8210 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
8211
8212         * gtk/Makefile.am: Fix accidental commit of references
8213         to gtkresizegrip.[ch]
8214
8215 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
8216
8217         * gtk/gtkrc.c: Fix some missing initializations of
8218         rc_file->directory.
8219
8220 2003-08-24  Matthias Clasen  <maclas@gmx.de>
8221
8222         * gtk/gtkaction.[ch]: 
8223         * gtk/gtktoggleaction.[ch]: 
8224         * gtk/gtktoggleactionprivate.h: 
8225         * gtk/gtkradioaction.[ch]: 
8226         * gtk/gtkactiongroup.[ch]: 
8227         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
8228         toolbars, using the EggMenu code by James Henstridge.
8229
8230         * gtk/gtk.h: Include new headers.
8231         * gtk/Makefile.am: Add new files.
8232
8233         * tests/testactions.c: Test for actions.
8234         * tests/testmerge.c: Test for menu merging.
8235         * tests/merge-[123].ui: Test data for testmerge. 
8236         * tests/Makefile.am: Add testactions and testmerge.
8237
8238         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
8239         menubar and toolbar.
8240         
8241 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
8242  
8243         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
8244         problem where rc_file->directory wasn't always getting
8245         set. (#120549, Luis Villa)
8246  
8247 2003-08-22  Christian Rose  <menthos@menthos.com>
8248
8249         * configure.in: Added "ne" to ALL_LINGUAS.
8250
8251 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
8252  
8253         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
8254         being parsed, not just the directories for those
8255         files. Use that to catch recursion. (Part of
8256         #114988)
8257  
8258 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
8259
8260         Merge from stable.
8261
8262         Fix option menu scrolling (#119821, Owen Taylor).
8263
8264         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
8265         by #80484 and the CLAMP,
8266         (get_menu_height): new function,
8267         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
8268         new_offset to handle page up/down right.
8269
8270 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
8271
8272         * gdk/x11/gdkkeys-x11.c: Change the interpretation
8273         of consumed_modifiers so that it contains:
8274          - Modifiers combinations actually found in
8275            state.
8276          - Single modifier modifier combinations.
8277         But not multi-modifier combinations that aren't
8278         in event->state. Document. (#100439)
8279
8280 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
8281
8282         Slightly modified patch from Yann Rouillard to improve selection
8283         behavior with the mouse. Fixes #120187.
8284
8285         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
8286         select/deselect items on the first button press of button 1,
8287         expand checks for row_activated to include triple clicks.
8288
8289 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
8290
8291         Merge from stable.
8292
8293         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
8294         approximate digit widths up, to avoid truncation, convert to
8295         pango pixels when we have the full string width instead of converting
8296         the approx digit width to pango pixels, take inner border and
8297         interior focus into account correctly. (Fixes #116368, patch from
8298         Morten Welinder).
8299
8300 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
8301
8302         * gtk/queryimmodules.c: Don't look at the same directory twice (in
8303         simple cases). (#120342)
8304
8305 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8306
8307         * gdk/gdkwindow.c: Make the layers in the paint stack have their
8308         own pixmap instead of sharing one. (#118317)
8309
8310         * tests/testgtk.c (create_get_image): Fixes to make the window fit
8311         on an 800x600 screen
8312
8313 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
8314
8315         Merged from stable.
8316
8317         * gtk/gtkspinbutton.c (start_spinning): change the type of step
8318         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
8319
8320 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
8321
8322         * modules/input/gtkimcontextxim.[ch]: Substantially
8323         rework the handling of status windows:
8324         
8325          - Store the current StatusWindow in the 
8326            GtkIMContextXIM structure and vice-versa, so we
8327            don't have to hunt the window hierarchy on
8328            cleanup.
8329          - Use the Gtkidget hierarchy instead of/or as well
8330            as the GdkWindow hierarchy when finding the toplevel;
8331            this helps for things like GtkHandlebox
8332          - Watch GtkWidget::hierarchy_changed to catch 
8333            changes in the toplevel without changes in the
8334            GdkWindow (reparenting)
8335          - Never create the GtkWindow for the status window
8336            unless we have text to display.
8337          - Various cleanups, add lots of comments.
8338
8339         (#115077, much help from Takuro Ashie and Hidetoshi
8340         Tajima in tracking this down and figuring out a fix.)
8341
8342         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
8343
8344         * modules/input/gtkimcontextxim.c: Track the current
8345         screen for each toplevel so that we show the status
8346         window on the right screen. (#116340, James Su)
8347
8348         * modules/input/gtkimcontextxim.c: If create a new IC
8349         when we currently have the focus, call XSetICFocus()
8350         on it.
8351         
8352         * modules/input/gtkimcontextxim.c (get_im): Fix bug
8353         with multiple open screens.
8354
8355 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
8356
8357         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
8358         Replace client_window field with 'priv' pointer,
8359         retaining binary compatibility.
8360
8361         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
8362         save use_preedit/cursor_location/focus status and set
8363         up the new slave appropriately. (#118651, Botond Botyanszki)
8364
8365 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
8366
8367         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
8368         Don't use impl->position_info.clip_rect for toplevels.
8369         (#107068, reported by Thomas Mirlacher)
8370
8371 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
8372
8373         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
8374         Add a fallback for unaligned source data for
8375         FORMAT_ARGB_MASK. (#117217)
8376
8377 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
8378
8379         * configure.in: Rework handling of REBUILD_PNGS,
8380         so that we also don't try to REBUILD_PNGS when
8381         cross-compiling and there is no gdk-pixbuf-csource.
8382         But give an error if gtk/stock-icons/gtkstockpixbufs.h
8383         is not in the source tree. (Note that REBUILDS_PNG
8384         was set backwards before, which is why you always
8385         had to manually recreate gtkstockpixbufs.h!)
8386
8387 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
8388
8389         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
8390         path to libgtk.la. (#120080, Benedikt Spranger)
8391
8392 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
8393
8394         * modules/input/imcedilla.c: Make the list of default
8395         languages more comprehensive. (Suggestion of
8396         Fco. Javier F. Serrador)
8397
8398 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
8399
8400         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
8401         parentheses when skipping args.
8402
8403 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
8404
8405         Fix major bug in row ref handling, so the new combo box
8406         will actually work right (:. Bug #107748. Patch written
8407         with help from Tim Janik.
8408
8409         The basic idea is to update the row refs in a closure,
8410         before the actual signal is emitted (rather than having
8411         the model connect signal handlers).
8412
8413         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
8414         g_signal_new calls for row_inserted, row_deleted and
8415         rows_reordered to use the new marshallers,
8416         (row_inserted_marshall), (row_deleted_marshall),
8417         (rows_reordered_marshall): the new marshallers,
8418         (gtk_tree_row_ref_inserted_callback): renamed to
8419         gtk_tree_row_ref_inserted since it isn't a callback
8420         anymore and gets called by the marshaller now,
8421         (gtk_tree_row_ref_deleted_callback): likewise,
8422         (gtk_tree_row_ref_reordered_callback): likewise,
8423         (connect_ref_callbacks), (disconnect_ref_callbacks):
8424         removed,
8425         (gtk_tree_row_reference_new_proxy),
8426         (gtk_tree_row_reference_free),
8427         (gtk_tree_row_reference_inserted),
8428         (gtk_tree_row_reference_deleted),
8429         (gtk_tree_row_reference_reordered): updated.
8430
8431 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
8432
8433         Improve Cedilla handling - based on a patch from Gustavo 
8434         De Nardin, #111334
8435
8436         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
8437         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
8438         dead_acute+c combinations. Make this the default for
8439         fr and pt.
8440
8441         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
8442         Use LC_CTYPE instead of LC_MESSAGES to pick the default
8443         input method.
8444
8445 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
8446
8447         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
8448         for Multi_key+c+apostrophe.
8449
8450 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
8451
8452         Merged from stable.
8453
8454         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
8455         on vertical scrolling. (#108035, reported by Tim Janik).
8456
8457 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
8458
8459         Merged from stable.
8460
8461         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
8462         (gtk_tree_model_sort_level_find_insert),
8463         (gtk_tree_model_sort_insert_value): fix off-by-one error.
8464         (#109292 continued, patch from Yann Rouillard).
8465
8466 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
8467
8468         (Note: This is not exactly the same as the patch which went in
8469          gtk-2-2).
8470
8471         * gtk/gtktreeview.c (gtk_tree_view_class_init),
8472         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
8473         Also support the up, down, left, right, home, end, page up and
8474         page down keys on the numpad. (#119419, reported by Alex Larsson).
8475
8476 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
8477
8478         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
8479
8480         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
8481         we link libgtk against X explicitely, since we
8482         make GTK+ calls for plug/socket.
8483
8484         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
8485         G_MODULE_SUFFIX here. 
8486
8487         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
8488         XShmPutImage with #ifdef USE_SHM.
8489
8490 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
8491
8492         * gtk/gtkfilesel.c (gtk_file_selection_populate):
8493         Don't reposition the cursor when we aren't trying
8494         to complete. (Fixes problems with selection on
8495         startup, #108433, reported by Mark Finlay.)
8496
8497         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
8498         code that tried to position the cursor after the common
8499         prefix when there was one, it wasn't working, and
8500         would be hard to fix. Just always put the cursor
8501         at the end when completing.
8502
8503 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
8504
8505         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
8506         the current directory fails because of encoding
8507         conversion problems, walk up textually to parent
8508         directories until we can convert. (#113627)
8509
8510 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
8511
8512         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
8513         Remove usage of menu_shell->ignore leave which was
8514         to deal with stray events we no longer get because
8515         we do grabbing differently. Comment it as unused in
8516         the header. (#115837, Keith Bissett)
8517
8518 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
8519
8520         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
8521         Fix some places that weren't properly Xinerama-ified.
8522
8523         * gtk/gtkmenu.c: Fix problem with windows that scroll
8524         at the top of the screen.
8525
8526 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
8527
8528         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
8529         key-press-event on the entry, so input methods get access to 
8530         key presses before GtkCombo customization.
8531         (#115451, Botond Botyanszki)
8532
8533 2003-08-13  Anders Carlsson  <andersca@gnome.org>
8534
8535         * tests/testtoolbar.c: (set_important_func), (important_toggled),
8536         (create_items_list):
8537         Add an important column.
8538         
8539 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
8540
8541         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
8542         against reentrancy from ::focus-out handlers. 
8543         (#118129, Felipe Heidrich)
8544
8545 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
8546
8547         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
8548         GDK_LOCK_MASK before calling
8549         gdk_keymap_translate_keyboard_state so bindings 
8550         and accelerators are independent of the Caps-lock
8551         key. (#115384, reported by Toni Willberg)
8552
8553 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
8554
8555         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
8556         break statements (#119494, Soeren Sandmann)
8557
8558 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
8559
8560         * gtk/gtkwidget.h: Mark parent public as well; it's
8561         extensively accessed in existing code, so there is
8562         no advantage in making people use get_parent().
8563         (Tweak to #119463 fix)
8564
8565 2003-08-11  Matthias Clasen  <maclas@gmx.de>
8566
8567         Add support for EWMH "Above" and "Below" window states.  (105100,
8568         Manuel Clos)
8569         
8570         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
8571         State" demo.
8572
8573         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
8574         gtk_window_set_keep_below.
8575
8576         * gtk/gtk.def: Add gtk_window_set_keep_above and
8577         gtk_window_set_keep_below.
8578
8579         * gtk/gtkwindow.c (gtk_window_set_keep_below):
8580         (gtk_window_set_keep_above): New functions, call the corresponding
8581         gdk functions.
8582
8583         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
8584         function, sets _NET_WM_STATE_BELOW.
8585         (gdk_window_set_keep_above): New function, sets
8586         _NET_WM_STATE_ABOVE.
8587
8588         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
8589         gdk_window_set_keep_below.
8590
8591         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
8592         GDK_WINDOW_STATE_BELOW.
8593
8594         * gdk/gdk.def: Add gdk_window_set_keep_above and
8595         gdk_window_set_keep_below.
8596
8597         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
8598         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
8599         xmlcatalog in PATH.  (#119115)
8600
8601 2003-08-10  Matthias Clasen  <maclas@gmx.de>
8602
8603         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
8604         public.  (#119463)
8605
8606 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
8607
8608         * gdk/gdkevents.h:
8609         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
8610         docs on GdkFilterFunc and GdkFilterReturn.
8611
8612 2003-08-09  Matthias Clasen  <maclas@gmx.de>
8613
8614         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
8615         to let the mouse wheels select the month. Scrolling down
8616         moves forward in time. (#53134, Abigail Brady) 
8617
8618         * gtk/gtkcalendar.c: Complete the RTL flipping support for
8619         GtkCalendar, make it possible to flip the headings using the
8620         "magic translated string" technique.  Translators, note the
8621         comment in gtk_calendar_init() explaining this.  (#102416)
8622
8623         * gtk/gtkcalendar.c: Get the information about the first day of
8624         the week from the locale using another instance of the "magic
8625         translated string" technique.  Ignore the display option
8626         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
8627
8628         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
8629         date is dragged as text, formatted via strftime %x. Text drops are
8630         accepted if g_date_set_parse() can make sense of the text. A
8631         dedicated data format for date DND has not been introduced yet,
8632         since there didn't seem to be sufficient consensus on such a
8633         format on xdg-list.  (#117297)
8634         
8635 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8636
8637         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8638         Fix a segfault.  (#115284, Jan Kratochvil)
8639
8640 2003-08-08  Tor Lillqvist  <tml@iki.fi>
8641
8642         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8643         coordinates for events that have such. Print coordinates for enter
8644         and leave events.
8645
8646         (gdk_event_translate): Don't use event uninitialixed in the
8647         return_exposes branch of the WM_PAINT handler.
8648
8649         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8650         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
8651         Must offset top-level window coordinates here, too.
8652
8653 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8654
8655         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8656         when maximized or fullscreen.
8657
8658 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8659
8660         * gdk/win32/gdkinput-win32.h
8661         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8662         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8663         used.
8664
8665         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8666         accordingly, in fact an uninitialised variable was dereferenced.
8667         
8668
8669         [Win32] Add support for multiple monitors. 
8670         
8671         * gdk/win32/gdkprivate-win32.h
8672         * gdk/win32/gdkglobals-win32.c: New global variables for
8673         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8674         _gdk_offset_x and _gdk_offset_y.
8675         
8676         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8677         functions, enumeration functions passed to EnumDisplayMonitors().
8678
8679         (gdk_display_open): If the EnumDisplayMonitors() and
8680         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8681         if to find out monitor info.
8682
8683         Calculate the offset between Win32 coordinates (relative to the
8684         primary monitor's origin (and thus negative on monitors to the
8685         left of or above it), and GDK's (visible coordinates should be
8686         non-negative).
8687         
8688         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8689         gdk_screen_get_monitor_geometry): Use information collected above.
8690
8691         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8692         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8693
8694         (gdk_window_get_geometry, gdk_window_get_origin,
8695         gdk_window_get_frame_extents): For top-level windows, add
8696         _gdk_offset_{x,y} to GDK root window coordinates
8697
8698         Still need to handle multiple monitors in
8699         gdk_window_fullscreen(). Probably should make the window
8700         fullscreen on the monitor where the cursor is?
8701
8702         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8703         root window coordinates in GdkEvents.
8704
8705         
8706         [Win32] Fix geometry hint handling. Add support for resize
8707         increment and base size, and aspect ratio geometry hints. The
8708         "gridded geometry" test in testgtk now works beautifully.
8709
8710         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8711         Turns out this function shouldn't actually ever modify the
8712         window's size, just store the hints. (Old code kept for a while
8713         inside #if 0.)
8714
8715         (gdk_window_set_hints): Remove presumably broken code that handles
8716         the position hints, this function is obsolete anyway.
8717
8718         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8719         variables, not used.
8720
8721         (adjust_drag): New function, used to implement resize increment
8722         hints.
8723
8724         (gdk_event_translate): Handle WM_SIZING, implement resize
8725         increment and base size, and aspect ratio geometry hints here. The
8726         WM_GETMINMAXINFO handler takes care of the minimum and maximum
8727         size hints as before. Fix the WM_GETMINMAXINFO handler to take
8728         into account window decorations. No need to modify the
8729         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8730         the defaults are fine.
8731         
8732         * gdk/win32/gdkprivate-win32.h 
8733         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8734         _gdk_win32_get_adjusted_client_rect): New helper functions.
8735
8736 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8737
8738         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8739         toplevel->have_* flags before iterating over the _NET_WM_STATE 
8740         atoms.  (#119217) 
8741
8742 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
8743  
8744         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
8745         Fix a bug where on theme change, resize/redraw wasn't
8746         properly getting queued on toplevel windows. (#116346,
8747         Rajkumar Siva)
8748  
8749         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
8750         Fix bug where wrong coordinates were used for toplevel
8751         window.
8752  
8753 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
8754
8755         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8756         page_num variable (Archit Baweja)
8757
8758 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8759
8760         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8761         cope with C libraries with crippled locale support.  (#115293)
8762
8763 2003-08-07  Hans Breuer  <hans@breuer.org>
8764
8765         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8766         (only if the new window not known to Gdk) to get proper
8767         leave notification, and get rid of the wrong placed 
8768         tooltips, bug #102283
8769  
8770         (gdk_event_translate) : small code reordering to not get
8771         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
8772         menus, bug #117367
8773
8774 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8775
8776         * gdk/gdk.def
8777         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8778         missing function, trivially implement.
8779
8780 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8781
8782         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
8783         rendering.  (#118646, Charles Kerr) 
8784
8785 2003-08-06  Hans Breuer  <hans@breuer.org>
8786
8787         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8788         initialize bits to 0 (probably default on NT)
8789
8790         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8791         now it works as intended ;-)
8792
8793 2003-08-04  Hans Breuer  <hans@breuer.org>
8794
8795         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8796         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8797
8798         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8799         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8800
8801         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8802         against all expectations it is basically ony a call with WM_SETICON
8803         needed (the visual effect is there, though colors or mask are
8804         still somewhat wrong).
8805         * gdk/win32/gdkwindow-win32.h : place to store the HICON
8806
8807         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8808         pixel drawing as it was fixed at 1999-08-23
8809
8810         gtk/gtk.def : updated
8811
8812 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
8813
8814         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
8815         Add a missing break. (#119156, Callum McKenzie)
8816
8817 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8818
8819         * gtk/gtkmenu.c (gtk_menu_position): New positioning
8820         algorithm.(#116649)
8821
8822 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8823
8824         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8825         property
8826         
8827         * gtk/gtkradiotoolbutton.c
8828         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8829
8830         * gtk/gtkradiotoolbutton.c
8831         (gtk_radio_tool_button_new_with_stock_from_widget): make this
8832         function take a stock_id.
8833
8834         * gtk/toolbar: documentation
8835
8836 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
8837
8838         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
8839         Fix problem where use_xshm was getting set wrong if
8840         MIT_SHM wasn't found. (George Lebel)
8841
8842 2003-08-04  Tor Lillqvist  <tml@iki.fi
8843
8844         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8845         actually use the passed-in filter list. The function also needs a
8846         GdkWindow parameter, as filter functions expect
8847         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8848
8849 2003-08-03  Matthias Clasen  <maclas@gmx.de>
8850
8851         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
8852         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8853         the term "virtual screen".  (#119030, Tor Lillqvist)
8854
8855 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8856
8857         * tests/testtext.c (test_init): 
8858         * tests/testgtk.c (test_init): 
8859         * tests/testdnd.c (test_init): 
8860         * demos/pixbuf-init.c (pixbuf_init): 
8861         * demos/gtk-demo/main.c (main): Use g_setenv().
8862
8863         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8864         g_unsetenv(). 
8865
8866 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
8867
8868         * configure.in: Requires glib-2.3.0, pango-1.2.0.
8869
8870         * configure.in: Require Xft version 2,
8871         remove code for handling older versions of pango and Xft.
8872         Many miscellaneous improvements to X checks
8873
8874         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
8875         a library to a variable, avoiding dups.
8876
8877         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
8878         Always load "fixed"
8879
8880         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8881         for pangox.
8882
8883 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8884
8885         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
8886         (palette_drop_handle): 
8887         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
8888         drops with the wrong format, since the KDE color chooser incorrectly
8889         drops application/x-color with format 8.  (#118810)
8890
8891         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
8892         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
8893         Accept drops with the wrong format, since the KDE color chooser 
8894         incorrectly drops application/x-color with format 8.  (#118810)
8895
8896 2003-08-02  Tor Lillqvist  <tml@iki.fi>
8897
8898         Fix gdk/win32 window geometry handling again. The window position
8899         in a GDK_CONFIGURE event should be that of the client area, not of
8900         the window decorations. (I was confused by the term "window
8901         border" in X11. It does *not* mean the window manager
8902         decorations. There are no X11-style window borders in Win32.)
8903         Also, this time do take the geometry hints into account
8904         appropriately when moving windows. Now testgtk's gravity test's
8905         move buttons work OK. There are stil problems with taking gravity
8906         into account when showing a hidden window.
8907
8908         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8909         instead of separate fields.
8910         
8911         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8912         adjust for decorations.
8913
8914         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8915         adjust_for_gravity_hints): New functions.
8916         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8917         above functions, take geometry hints into account.
8918         (gdk_window_set_geometry_hints): Size hints specicy client area,
8919         not including decorations.
8920
8921 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
8922
8923         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8924         return an absolute path (#115590), fix a problem where
8925         you could crash the file selector with a looong name
8926         by returning a newly allocated buffer.
8927
8928 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
8929
8930         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8931         bug in rarely or never hit code path (#118071,
8932         Tor Lillqvist)
8933
8934 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
8935
8936         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
8937         If the check for missing depths, try actually creating pixmaps
8938         of the depths to deal with Xinerama not reporting
8939         all the depths it should. (#115822)
8940
8941 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
8942
8943         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8944         forward KeyRelease events as well as KeyPress events.
8945         (#115597)
8946
8947 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
8948  
8949         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8950         if argc is 0 as well, instead of leaving it unset.
8951         (#116023, Michael Meeks)
8952  
8953 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8954
8955         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8956         default to TRUE; ignore the property when api_mode != NEW_API
8957
8958 2003-07-31  Matthias Clasen  <maclas@gmx.de>
8959
8960         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8961         to icon, to pacify gtk-doc.
8962
8963         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
8964         example. 
8965
8966 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8967
8968         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8969
8970 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8971
8972         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8973         overflow_item field.
8974
8975 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8976
8977         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8978         an internal function
8979
8980         * gtk/gtktoolitem.h: remove unused declaration of
8981         _gtk_tool_item_get_drag_window().
8982
8983 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8984
8985         * gtk/gtktoolbutton.[ch]:
8986         (gtk_tool_button_new): swap icon_widget and label arguments to
8987         match BonoboUIToolbarButton.
8988
8989         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8990
8991 2003-07-30  Matthias Clasen  <maclas@gmx.de>
8992
8993         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8994         signal docs. 
8995
8996 2003-07-29  Tor Lillqvist  <tml@iki.fi>
8997
8998         Fix for #108007, #112402, #117042: There was confusion in
8999         gdk/win32 at various places whether a window position refers to
9000         the decoration position or the client area position. Also whether
9001         window size includes decorations or not.
9002         
9003         The correct interpretation apparently is that in GDK (like in
9004         X11), a top-level window position means the decoration's position,
9005         but size means the window's inner size (client area size). In the
9006         Win32 API, the window size usually includes the decorations,
9007         though.
9008         
9009         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
9010         #ifdef G_ENABLE_DEBUG.
9011         (handle_configure_event): New function, generates GDK_CONFIGURE
9012         events from WM_SIZE and WM_MOVE messages. Even if no event is
9013         generated because of the event mask, still set the private
9014         position and size fields. Calculate position and size correctly.
9015         (gdk_event_translate): Call handle_configure_event().
9016
9017         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
9018
9019         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
9020         macros. Cosmetic debugging output changes.
9021         (SafeAdjustWindowRectEx): Remove. If an application wants to
9022         locate a window outside of the screen, it's not GDK's business to
9023         prevent it. And anyway, with multiple monitors, negative
9024         coordinates are perfectly normal.
9025         (gdk_window_new): Adjust the window size for decorations after
9026         _gdk_window_init_position() has done its job. (But the big window
9027         code currently is presumably broken on Win32 anyway.)
9028         (gdk_window_move): The position passed in is supposed to be that
9029         of the window border, so don't need to adjust for decorations.
9030         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
9031
9032 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9033
9034         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
9035         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
9036         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
9037         gtk_toolbar_append_space, gtk_toolbar_insert_item,
9038         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
9039         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
9040         gtk_toolbar_new, gtk_toolbar_prepend_item):
9041
9042         Move documentation inline from template files.
9043
9044         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
9045         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
9046         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
9047         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
9048         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
9049         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
9050         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
9051
9052         Copy documentation from stable that was added after the EggToolbar
9053         branched.
9054
9055         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
9056
9057 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9058
9059         * gtk+/docs/: Commit autogenerated changes, so patches will make
9060         sense.
9061
9062 2003-07-27  Tor Lillqvist  <tml@iki.fi>
9063
9064         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
9065         the keyboard state returned by GetKeyboardState() doesn't
9066         distinguish between the left and right Control and Alt keys. Thus
9067         we cannot detect AltGr (which is supposed to be left Control +
9068         right Alt) the same way as on NT-based systems, but have to accept
9069         either Control + either Alt as AltGr.
9070
9071 2003-07-27  Matthias Clasen  <maclas@gmx.de>
9072
9073         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9074         Fix function name in warning message.  (#118156, Tim-Philipp
9075         Mller)
9076
9077         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
9078         is-expander and is-expanded are boolean properties, not ints.
9079         (#118359, Josh Parsons)
9080
9081 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9082
9083         * gtk/gtkimagemenuitem.c
9084         (gtk_image_menu_item_toggle_size_request): don't request
9085         toggle_space when the image width is 0.
9086
9087 2003-07-25  Tor Lillqvist  <tml@iki.fi>
9088
9089         * gdk/win32/gdkprivate-win32.h
9090         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
9091         and _gdk_keyboard_has_altgr.
9092         
9093         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
9094         ones detailled here.
9095
9096         Code that has been ifdeffed out for a long time removed. Remove
9097         some really old doc comments that were left behind for some public
9098         functions, the official ones are in the X11 backend anyway. Change
9099         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
9100         multi-line boolean expressions to have the operators at ends of
9101         lines.
9102
9103         As mouse capture with SetCapture() indeed seems to work OK, no
9104         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
9105
9106         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
9107         needed at some time, and things seem to work fine now without
9108         (knock on wood).
9109
9110         Ifdef out the search for some Latin locale keyboard layout being
9111         loaded. Not used currently, but might be needed after all, if we
9112         decide that we want to be able to generate ASCII control character
9113         events with a non-Latin keyboard.
9114
9115         (assign_object): New helper function, handles the g_object_ref()
9116         and unref() calls when assigning GObject pointers.
9117                 
9118         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
9119         enter event when the pointer has moved to an ancestor window. Was
9120         left out by mistake.
9121
9122         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
9123
9124         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
9125         functionality, using ClipCursor().
9126                 
9127         (find_window_for_mouse_event): Splice part of code into new
9128         function find_real_window_for_grabbed_mouse_event().
9129
9130         (fixup_event, append_event, apply_filters): New functions, code
9131         refactored out from elsewhere.
9132
9133         (synthesize_enter_or_leave_event, synthesize_leave_event,
9134         synthesize_enter_event,
9135         synthesize_leave_events,synthesize_enter_events): Also take a
9136         GdkCrossingMode parameter, in preparation to generating
9137         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
9138
9139         (fixup_event, append_event, fill_key_event_string): New functions,
9140         code refactoring.
9141
9142         (vk_from_char, build_keypress_event, build_keyrelease_event):
9143         Removed as part of dropping WM_CHAR handling.
9144
9145         (build_key_event_state,gdk_event_translate): Call
9146         GetKeyboardState(), once, for each keyboard message, instead of
9147         several calls to GetKeyState() here and there.
9148
9149         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
9150         at it, do some major refactoring, and some fixes for potential
9151         problems noticed while going through the code.
9152
9153         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
9154         WM_KEYUP. Don't need the state variables related to whether to
9155         wait for WM_CHAR or not, and whether the current key is
9156         AltGr. Remove lots of complexity. Thus don't need the
9157         use_ime_composition flag.
9158
9159         Not handling WM_CHAR means dead key handling will have to be taken
9160         care of by GTK, but that seems to work fine, so no worry.
9161
9162         Another side-effect is that Alt+keypad digits don't work any
9163         longer, but it's better to learn to use GTK's ISO14755 support is
9164         anyway.
9165
9166         Be more careful in checking whether AltGr is involved. Only
9167         attempt to handle it if the keyboard actually has it. And
9168         explicitly check for *left* Control plus *right* Alt being
9169         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
9170         chars.
9171
9172         Handle keys using similar code as in the X11 backend. As we have
9173         built a keymap in gdkkeys-win32.c anyway, use it by calling
9174         gdk_keymap_translate_keyboard_state() to look up the keysym from
9175         the virtual key code and keyboard state. Build the key event
9176         string in exactly the same way as the X11 backend.
9177
9178         If an IME is being used, don't generate GDK events for keys
9179         between receiving WM_IME_STARTCOMPOSITION and
9180         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
9181         
9182         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
9183         the IME, not just the first one.
9184
9185         gdk_event_translate() is still quite complex, could split the
9186         message handler cases out into separate functions.
9187
9188         On mouse events, when the mouse is grabbed, use
9189         find_real_window_for_grabbed_mouse_event() in order to be able to
9190         generate correct crossing events.
9191         
9192         No longer take a pre-allocated GdkEvent as parameter. Instead,
9193         allocate events as needed and append them to the queue. (This is
9194         different from how gdk_event_translate() in the X11 backend
9195         works.) This change made the code much clearer, especially in the
9196         cases where we have to generate several GDK events for one Windows
9197         message.  Return FALSE if DefWindowProc() should be called, TRUE
9198         if not. If DefWindowProc() should not be called, also return the
9199         value to be returned from the window procedure.
9200
9201         (Previously, the interaction with gdk_event_translate()'s caller
9202         was much more complex, when we had to indicate whether the
9203         already-queued event should be left in the queue or removed, and
9204         in addition also had to indicate whether to call DefWindowProc()
9205         or not, and what value to return from the window procedure if
9206         not.)
9207
9208         Don't use a separate "private" variable required to be pointing to
9209         the GdkWindowObject of the "window" variable at all times. Just
9210         use casts, even if looks a bit uglier.
9211
9212         Notice destroyed windows as early as possible, and break out of
9213         the messsage switch.
9214
9215         Use _gdk_pointer_root as current_window when the pointer is
9216         outside GDK's top-level windows.
9217         
9218         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
9219         appropriate, based on ImmIsIME().
9220         
9221         (gdk_event_translate, gdk_event_send_client_message_for_display,
9222         gdk_screen_broadcast_client_message): Implement client messages.
9223         Use a registered Windows message to pass GDK client messages. Note
9224         that the amount of user data is restricted to four bytes, as it is
9225         carried in the LPARAM. (The WPARAM is used for the message type
9226         "atom".)
9227         
9228         (real_window_procedure): Adapt for new gdk_event_translate()
9229         interface.
9230
9231         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
9232         _gdk_input_locale_is_ime initially.
9233
9234         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
9235         of g_colormap_ref()/unref().
9236
9237         (gdk_window_new): Made code a bit more like the X11 one, pretend
9238         to handle screens (although we just have one for now).
9239
9240         * gdk/x11/gdkevents-x11.c
9241         (gdk_event_send_client_message_for_display,
9242         gdk_screen_broadcast_client_message): Document the user data
9243         limitation on Win32.
9244
9245         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
9246         and leave notify detail output.
9247
9248         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
9249         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
9250         for those, so that the GtkIMContextCimple compose tables will
9251         work. Deduce if the keyboard layout has the AltGr key, and set the
9252         above flag accordingly.
9253
9254 2003-07-26  Matthias Clasen  <maclas@gmx.de>
9255
9256         * gtk/gtkwidget.c: Document DND signals.
9257
9258 2003-07-24  Matthias Clasen  <maclas@gmx.de>
9259
9260         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
9261         insensitive when editing isn't possible.  (#118150)
9262
9263 2003-07-23  Matthias Clasen  <maclas@gmx.de>
9264
9265         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
9266         spinbutton wrap.  (#118097, John Darrington)
9267
9268         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
9269
9270 2003-07-20  Hans Breuer  <hans@breuer.org>
9271
9272         * makefile.msc : new file to build it all
9273         * Makefile.am : ... added to EXTRA_DIST
9274
9275         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
9276           gtk/makefile.msc.in tests/makefile.msc : updated
9277
9278         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
9279         functions
9280
9281         * gtk/gtkbbox.c : use g_return_val_if_fail() if
9282         there is a value to return
9283
9284         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
9285         static correctness
9286
9287         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
9288         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
9289
9290         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
9291
9292         * gtk/gtkimmulticontext.c : use gtkprivate.h
9293
9294         * gtk/stock-icons/stock_color_picker_25.png
9295           gtk/stock-icons/stock_jump_to_rtl_16.png
9296           gtk/stock-icons/stock_jump_to_rtl_24.png
9297           gtk/stock-icons/stock_redo_rtl_16.png
9298           gtk/stock-icons/stock_redo_rtl_24.png
9299           gtk/stock-icons/stock_undelete_rtl_16.png
9300           gtk/stock-icons/stock_undelete_rtl_24.png
9301           gtk/stock-icons/stock_undo_rtl_16.png :
9302           gtk/stock-icons/stock_undo_rtl_24.png :
9303         readded as binary
9304
9305 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9306
9307         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
9308         leftover request of {xy}thickness
9309
9310 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9311
9312         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
9313         attempt to add a NULL icon to the box.
9314
9315 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9316
9317         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
9318         on focus in/out.
9319
9320 2003-07-19  Matthias Clasen  <maclas@gmx.de>
9321
9322         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
9323         * gtk/gtkiconfactory.c (get_default_icons): Add
9324         stock_dialog_authentication_48.  (#65765) 
9325         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
9326         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
9327
9328         * gtk/gtkbbox.h: 
9329         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
9330         function. (#64562) 
9331
9332 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9333
9334         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
9335         declaration
9336
9337         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
9338         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
9339         instead of full draws.
9340
9341 2003-07-18  Matthias Clasen  <maclas@gmx.de>
9342
9343         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
9344
9345         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
9346         signal, move_viewport. 
9347         (gtk_text_view_move_viewport): New function which implements the
9348         move_viewport functionality. 
9349         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
9350         the viewport. (#78669) 
9351
9352         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
9353         move_viewport argument. 
9354
9355         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
9356         property.  (#111779) 
9357
9358         * gtk/gtkwindow.h: 
9359         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
9360
9361         * gtk/gtkmessagedialog.h:
9362         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
9363         (#65501, Sebastian Rittau)
9364
9365 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9366
9367         * gtk/gtktextview.c (changed_handler): use
9368         gtk_widget_queue_resize_noredraw().
9369
9370 2003-07-16  Jody Goldberg <jody@gnome.org>
9371
9372         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
9373
9374 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9375
9376         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
9377         API. 
9378
9379 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9380
9381         By popular request give toolbuttons a border.
9382         
9383         * gtk/gtktoolitem.c
9384         (gtk_tool_item_size_allocate):
9385         (gtk_tool_item_size_request): don't request and allocate a border
9386         around the child
9387
9388         * gtk/gtktoolbutton.c 
9389         (gtk_tool_button_size_allocate):
9390         (gtk_tool_button_size_request): remove these functions
9391
9392         * gtk/gtktoolbar.c 
9393         (gtk_toolbar_size_request):
9394         (gtk_toolbar_size_allocate): request and allocate a border if we
9395         have a shadow.
9396
9397 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
9398
9399         Merged from stable.
9400
9401         Fixes issues pointed out by Morten Welinder in #115140.
9402
9403         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
9404         (do_validate_rows): update validated_area with a logic OR instead
9405         of a bitwise OR,
9406         (validate_rows_handler): make the if statement match the one in
9407         validate_rows(), so we don't leak the timeout.
9408
9409 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
9410
9411         Merged from stable.
9412
9413         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
9414         should only grab focus back if the "cell_editable" widget still
9415         has focus. (Fixes #110104, testcase provided by Marco Pesenti
9416         Gritti).
9417
9418 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
9419
9420         Merged from stable.
9421
9422         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
9423         Don't set attr.event_mask twice, those things were meant to be
9424         ORred. (#115139, pointed out by Morten Welinder).
9425
9426 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
9427
9428         Merged from stable.
9429
9430         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
9431         if needed. (Fixes #115869, reported by Michael Natterer).
9432
9433 2003-07-15  Matthias Clasen  <maclas@gmx.de>
9434
9435         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9436         Fight against gtk-doc stupidity.
9437
9438 2003-07-13  Matthias Clasen  <maclas@gmx.de>
9439
9440         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
9441         targets, to pacify gtk-doc.
9442
9443 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9444
9445         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
9446         label_text, label_widget and icon_widget. (#117312, 
9447         Christian Persch)
9448         
9449 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9450
9451         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
9452         "horizontal-offset" and "vertical-offset" that determines the
9453         position of the menu when it is a submenu. 
9454
9455         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
9456         submenus according to new vertical- and horizontal-offset
9457         properties.
9458
9459 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
9460
9461         Merged from stable.
9462
9463         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
9464         case drags to "0", scroll to the top after dropping. (Fixes #94968,
9465         reported by Alp Toker).
9466
9467 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
9468
9469         Merged from stable.
9470
9471         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
9472         code (#115784, Owen Taylor).
9473
9474 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
9475
9476         Merged from stable.
9477
9478         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
9479         free the old text and extra_attrs *after* we parsed the new
9480         markup string. (Fixes #114485, reported by Owen Taylor).
9481
9482 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
9483
9484         Merged from stable.
9485
9486         Fixes #113904, testcase provided by Rene Seindal.
9487
9488         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
9489         pressed_button to -1 when a row has been activated,
9490         (gtk_tree_view_motion_bin_window): only start a drag if there's
9491         a button being pressed.
9492
9493 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
9494
9495         Merged from stable.
9496
9497         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
9498         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
9499         to avoid a roundtrip (#110272, Owen Taylor).
9500
9501 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
9502
9503         Merged from stable.
9504
9505         This patch really really fixes scrolling. Related bugs: #81627,
9506         testcase provided by Timo Sirainen, #111500, testcase provided by
9507         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
9508
9509         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
9510         which is equal to the lower border of the window means scrolling
9511         to an invisible row, always update the dy when scrolling to an
9512         invisible row, corrected area_above/below calculations for
9513         invisible rows, when walking the tree correct the size
9514         subtracted for invalidated rows, fix wrong logic in comment.
9515
9516 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9517
9518         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
9519         mime_types.  (#117219, Steve Chaplin)
9520
9521 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
9522
9523         * gdk/x11/gdkevents-x11.c (get_real_window)
9524         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
9525         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
9526         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
9527         Don't assume that all events start with XEventAny - Xkb events
9528         don't! (#105745). So, only do that for core events, and for
9529         non-core events, add a system for registering event types
9530         that start with XEventAny.
9531
9532         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
9533         Check to see if the result of gdk_window_lookup_for_display()
9534         is actually a window.
9535
9536 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
9537
9538         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
9539         check a silent assert, so it follows the g_free() behaviour.
9540
9541 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9542
9543         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
9544         vertically.  (#109823, Joe Shaw)
9545
9546 2003-07-11  Morten Welinder  <terra@gnome.org>
9547
9548         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
9549         access error.  (#69436)
9550
9551 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
9552
9553         Landing GtkTreeModelFilter and the completion code. (Test program
9554         and documentation will follow next week).
9555
9556         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
9557         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
9558
9559         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
9560         necessary code to hook up completion.
9561
9562         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
9563         GtkCellLayout interface.
9564
9565         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
9566
9567         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
9568         source files.
9569
9570 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
9571
9572         Merge from stable.
9573
9574         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
9575         directly return from ->window_at_pointer, but set win_x and win_y
9576         first if needed. (Fixes #110166, reported by Arno Charlet).
9577
9578         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
9579         function to accept GdkDrawables and not just GdkWindows. This was
9580         already done in some other functions a while back, but this patch
9581         got lost for some reason.
9582
9583 2003-07-09  Matthias Clasen  <maclas@gmx.de>
9584
9585         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
9586         direction when sorting children.  (#116540, Soeren Sandmann)
9587
9588 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
9589
9590         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
9591         Change _gdk_x11_send_xevent_async() to 
9592         _gdk_x11_send_client_message_async() avoid using Xlib
9593         internals that are different on Solaris. 
9594         (#116917, Morten Welinder)
9595
9596 2003-07-08  Matthias Clasen  <maclas@gmx.de>
9597
9598         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
9599         (#116501, Doug Quale)
9600
9601 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9602
9603         * gtk/gtktoggletoolbutton.h: remove strange #define
9604         * gtk/gtktoolbutton.h: fix cut'n'paste error
9605         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
9606         private data
9607         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
9608         private data instead of g_new0()
9609         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
9610         instance private data
9611
9612 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9613
9614         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
9615         for INPUT_ONLY window
9616         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
9617         * gtk/gtknotebook.c (gtk_notebook_realize): same
9618         * gtk/gtkexpander.c (gtk_expander_realize): same
9619         * gtk/gtkrange.c (gtk_range_realize): same
9620
9621         Fix #116303
9622
9623 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9624
9625         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
9626         when detail is "menuitem". With the new menu look is isn't needed
9627         anymore.
9628
9629         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
9630         resize here, so that tool items will get a chance to relayout
9631         themselves based on the toolbar configuration.
9632
9633         change DEFAULT_SPACE_SIZE to 4 instead of 5
9634
9635         * gtk/gtktoolbar.c 
9636         Get rid of "!GTK_BIN (item)->child means separator". Separators
9637         are widgets in their own right
9638
9639         change DEFAULT_SPACE_SIZE to 4 instead of 5
9640         
9641         (get_space_size): remove this function
9642         (toolbar_item_is_homogeneous): new function
9643
9644         * gtk/gtkseparatortoolitem.c
9645         (gtk_separator_tool_item_size_request): new function.
9646
9647 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9648
9649         * gtk/gtktoggletoolbutton.h: use private data, add new
9650         internal function _gtk_toggle_tool_button_get_button()
9651
9652         * gtk/gtktoolbutton.h: move to private data
9653
9654         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9655         private data.
9656
9657 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9658
9659         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9660         type check, (#116947, Krasimir Angelov)
9661
9662         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9663         
9664         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9665         data. Not instance private data yet, because of bug 116921.
9666
9667         * gtk/gtktoolitem.h: new accessors:
9668                 gtk_tool_item_get_homogeneous ()
9669                 gtk_tool_item_get_expand ()
9670                 gtk_tool_item_get_pack_end ()
9671                 gtk_tool_item_get_use_drag_window ()
9672
9673 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9674
9675         * gtk/gtkcellrenderertext.c
9676         (gtk_cell_renderer_text_class_init): remove accidentally committed
9677         debugging spew
9678
9679         * gtk/gtktoolbar.c
9680         (gtk_toolbar_paint_space_line): remove this function
9681         (gtk_toolbar_expose): always propagate expose, even if the item is
9682         a separator item
9683
9684         * gtk/gtkseparatortoolitem.c
9685         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9686         (get_space_size): new function.
9687         (get_space_style): new function
9688
9689 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
9690
9691         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9692         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
9693         of GDK_POINTER_MOTION_HINT_MASK.
9694
9695         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9696         of the drag into an idle as a superior form of 
9697         expose compression.
9698
9699         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9700         creation here, so that we have an icon at the start
9701         of the drag (e.g., when retrieving the window cache
9702         information.)
9703
9704 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9705
9706         * docs/widget_geometry.txt: better drawing of GtkMenuItem
9707         * docs/widget_geometry.txt: add notes about GtkMenu
9708         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9709
9710 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9711
9712         * gtk/gtkmenu.c: add vertical_padding style property.
9713         
9714         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9715         arrow_spacing and horizontal_padding. Also center separators and
9716         make them a bit taller.
9717
9718         * gtk/*menuitem.c: use new style properties.
9719         
9720         * docs/widget_geometry.txt: Add note about GtkMenuItem
9721
9722         * gtk/gtkstyle.c 
9723         (gtk_default_draw_vline, gtk_default_draw_hline):
9724         fix +/-1 errors. 
9725
9726         (gtk_default_draw_shadow): draw a black border around menus.
9727
9728         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9729         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9730         x2 and y1, y2 respectively, not x, width and y, height).
9731
9732 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
9733
9734         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9735         all the atoms in the target list at once.
9736
9737         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9738         Local drag short-circuit.
9739
9740         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9741         local case, poke the actions in directly instead of
9742         going through xdnd_set_actions.
9743
9744         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9745         the local case.
9746
9747         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9748         XSelectInput()/add a filter if the drag is local.
9749
9750         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
9751         Simplify handling of "XdndSelection".
9752
9753         * gdk/x11/gdkevents-x11.c
9754         (gdk_event_send_client_message_to_all_recurse): Somehow,  
9755         a WM_STATE => _NET_WM_STATE change hand been made here.
9756
9757         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9758         xatom_names, not atom_names.
9759
9760         * tests/testdnd.c (target_drag_motion): Make the trashcan
9761         open again. (Got lost in deprecation cleanup.)
9762
9763 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
9764
9765         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9766         earlier, so we don't get a big pile of uncompressed
9767         motion events before the grab takes effect.
9768
9769         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
9770         gdk_window_process_all_updates() so that the area
9771         we are dragging over gets a change to redraw.
9772
9773         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
9774         gdk_window_get_position(), not gdk_window_get_origin().
9775
9776         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9777         gdkdisplay-x11.h: use XShapeQueryExtension to 
9778         avoid duplicate XQueryExtension when we actually
9779         use it. Remove unnecessary caching in GdkDisplayX11.
9780
9781 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
9782
9783         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
9784         Function to get a range of information about all the
9785         children of a window in a single pass.
9786
9787         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9788         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9789         _gdk_x11_get_window_child_info() to greatly reduce
9790         the number of roundtrips.
9791
9792 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
9793
9794         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9795         a function to XSendEvent() and call a calback on
9796         failure/success.
9797
9798         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9799         messages to the same process, use _gdk_send_xevent_async().
9800
9801 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
9802
9803         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9804         toplevel-specific pieces of GdkWindowImplX11 into
9805         a separate GdkToplevelX11 structure.
9806
9807 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
9808
9809         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9810         some leftover fields.
9811
9812 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
9813
9814         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9815         Use asynchronously _gdk_x11_set_input_focus_safe
9816         to avoid having to trap errors and XSync().
9817
9818         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9819         _gdk_x11_set_input_focus_safe() here as well.
9820
9821         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9822         Rework handling of property notifies on _NET_WM_STATE
9823         so that we ignore _NET_WM_DESKTOP notifies unless we
9824         really care.
9825
9826         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9827         XShmQueryExtension() rather than XQueryExtension() to
9828         avoid extra rountrip.
9829
9830         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9831         Remove unused call to XGetWindowAttributes()
9832         
9833         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9834         unused call to XGetKeyboardControl().
9835
9836         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9837         Add (#99571)
9838
9839         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
9840         No-op implementations of gdk_display_flush().
9841
9842         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9843         gdk_display_flush() rather than gdk_flush() to avoid
9844         XSync().
9845         
9846         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9847         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9848         so that we don't have to get the property back from the server.
9849
9850         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9851         the serial of when we map a toplevel to allow optimizing
9852         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9853
9854         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9855         XTranslateCoordinates() for override-redirect windows.
9856
9857 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
9858
9859         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9860         about setting window group after the window is mapped from docs
9861         - nothing the ICCCM forbids that.
9862
9863         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9864         Fix g_return_val_if_fail() in void return function.
9865
9866         * configure.in: Fix misplaced comma that was resulting
9867         in XShm always being disabled.
9868
9869 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9870
9871         * tests/stresstest-toolbar: remove this accidentally committed
9872         file.
9873         
9874         * tests/stresstest-toolbar.c: really add this new test
9875
9876 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9877
9878         * tests/stresstest-toolbar.c: new test for removing items
9879         
9880         * tests/testtoolbar.c: add a popup menu
9881
9882         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9883           assert widget->parent == container when the container is a
9884           toolbar.
9885
9886         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9887         simpler. Also make correct.
9888
9889         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9890         popup_context_menu a boolean handled signal.
9891
9892 2003-07-04  Tor Lillqvist  <tml@iki.fi>
9893
9894         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9895         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9896         the width and height of the bounding rectangle only after the
9897         minumum x and y have been found, and need a separate loop for
9898         it. Thanks to Bruce Hochstetler for providing a sample program
9899         exhibiting the bug.
9900
9901 2003-07-03  Tor Lillqvist  <tml@iki.fi>
9902
9903         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9904         (#116537, Peter Zelezny)
9905
9906 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9907
9908         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9909         fix warning. Assign something to old_value to quiet gcc
9910
9911         * gtk/gtkcalendar.c 
9912         (start_spinning): gtk_timeout_add->g_timeout_add
9913
9914         * gtk/gtkicontheme.c 
9915         (theme_lookup_icon): Make it compile (remove double semicolon)
9916
9917         * gtk/gtktoolbutton.c
9918         (gtk_tool_button_class_init): Long comment about properties.
9919         (gtk_tool_button_class_init): Improve text for "use_underline"
9920         property
9921         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9922         on whether the passed-in label has use_mnemonic set
9923         (gtk_tool_button_create_menu_proxy): Split image cloning out in
9924         new function. Make that function also handle image with pixbuf
9925         storage.
9926         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9927         instead of gtk_container_remove().
9928         (gtk_tool_button_construct_contents): Fix eliding bug
9929
9930         * gtk/gtktoolbar.c
9931         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9932         by Morten Welinder
9933         (gtk_toolbar_button_press): Make popup_context_menu signal provide
9934         coordinates and button number
9935
9936         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9937
9938         * tests/apple-red.png: new file
9939
9940 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
9941          
9942         * gtk/gtkicontheme.[ch]: Implement a loader for
9943         named themed icon based on from gnome-desktop library
9944         by Alex Larsson.
9945
9946         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9947         from gnome-desktop.
9948
9949         * gtk/gtkiconfactory.[ch]: Add
9950         gtk_icon_source_set/get_icon_name() to allow stock icons
9951         to be based off of named theme icons.
9952
9953         * gtk/gtkiconfactory.c: Rework sources so that the source
9954         is *either* a pixbuf, or a filename, or an icon name,
9955         instead of the pixbuf/filename mix it was before. Put a
9956         workaround for get_pixbuf() so that it can return the
9957         filename pixbuf, e.g, for render_icon().
9958
9959         * gtk/gtkiconfactory.c: Make the default setup use
9960         themed icons, and add builtin icons to the default
9961         icon theme for all the standard pixbufs, so we
9962         don't rely on actually having an icon theme on disk.
9963
9964         * gtk/gtkrc.c: Add support for @"icon-name" to specify
9965         a themed icon for a stock icon source.
9966
9967         * tests/Makefile.am test/testicontheme.c: Add a test
9968         program from gnome-desktop.
9969
9970         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9971         Net/IconThemeName / gtk-icon-theme-name setting.
9972
9973         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9974         update the icon cache serial so we don't continually
9975         think we are out-of-date.
9976
9977         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
9978         to ::direction_set that should have been to ::direction-changed
9979
9980 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
9981
9982         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9983         style to the widget.
9984
9985 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9986
9987         * gtk/gtk.h: Add new toolbar headers
9988
9989         * tests/testtoolbar.c: new file
9990
9991         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9992
9993         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9994
9995 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9996
9997         * gtk/gtktoolbar.c:
9998         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9999         inside a for loop (pointed out by Morten Welinder).
10000         (gtk_toolbar_focus_home_or_end): Minor formatting change
10001
10002         Comments from Owen:
10003
10004         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
10005         gtk_toolbar_elide_underscores instead.
10006
10007         * gtk/gtktoolbar.c: rename signal from focus_ends to
10008         focus_home_or_end.
10009         (_gtk_toolbar_elide_underscores): export this as an internal
10010         function.
10011         (gtk_toolbar_move_focus): add comment explaining difference to
10012         gtk_toolbar_focus();
10013         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
10014         TAB_BACKWARD focus the right widgets in RTL mode
10015
10016         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
10017         "label" and "icon" parameters
10018
10019         * gtk/gtktoolbutton.[ch]: remove icon_set property.
10020
10021 2003-07-01  Matthias Clasen  <maclas@gmx.de>
10022
10023         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
10024         (116364, Morten Welinder) 
10025
10026         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
10027         corresponding dialogs.
10028
10029         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
10030         gtkcolorbutton.h.  
10031         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
10032
10033         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
10034
10035         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
10036
10037         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
10038
10039         * gtk/gtkexpander.c: Small additions to the docs. 
10040
10041 2003-07-01  Tor Lillqvist  <tml@iki.fi>
10042
10043         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
10044         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
10045
10046 2003-07-01  Matthias Clasen  <maclas@gmx.de>
10047
10048         * configure.in: Check for Xcursor.
10049         
10050         * gdk/x11/gdkcursor-x11.c:
10051         * gdk/gdkdisplay.h: 
10052         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
10053         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
10054         gdk_display_supports_cursor_color(),
10055         gdk_display_get_default_cursor_size() and 
10056         gdk_display_get_maximal_cursor_size().  (#69436)
10057
10058 2003-06-30  Tor Lillqvist  <tml@iki.fi>
10059
10060         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
10061         callback proc for EnumWindows().
10062         (gdk_drag_find_window_for_screen): Actually take the drag_window
10063         argument into account: Instead of using WindowFromPoint(), use
10064         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
10065         M Brown, Herman Bloggs)
10066
10067         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
10068         gdk_window_ref()/unref() calls with g_object_ref()/unref().
10069         Consistently use %p format in debugging output of pointers and
10070         HANDLEs.
10071
10072 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
10073
10074         * gtk/gtkexpander.h: kill some stray characters
10075         breaking the build.
10076
10077 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
10078
10079         Add GtkExpander. See discussion in bug #60553.
10080
10081         * gtk/gtkexpander.[ch]: add.
10082         
10083         * gtk/Makefile.am: build gtk-expander.[ch].
10084         
10085         * docs/widget_geometry.txt: add info on the layout
10086         of GtkExpander.
10087
10088 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10089
10090         * gtkradiotoolbutton.c:         new file
10091         * gtkradiotoolbutton.h:            "
10092         * gtktoggletoolbutton.c:           "
10093         * gtktoggletoolbutton.h:           "
10094         * gtktoolbutton.c:                 "
10095         * gtktoolbutton.h:                 "
10096         * gtktoolitem.c:                   "
10097         * gtktoolitem.h:                   "
10098         * gtktoolbar.c: many changes
10099         * gtktoolbar.h: many changes
10100         * gtkseparatortoolitem.c:       new file
10101         * gtkseparatortoolitem.h           "
10102
10103         New toolbar.
10104         
10105         - Items on a toolbar are now separate widgets, instances of a
10106           subclass of GtkToolItem.
10107
10108         - Items there aren't room for on the toolbar are unmapped, and an
10109           overflow menu with a proxy menu item is added instead.
10110
10111         - The toolbar is keyboard navigatable. Press TAB to focus the
10112           first item, then use arrow keys and Ctrl TAB to move around the
10113           toolbar. TAB moves focus out of the toolbar.
10114
10115         - Bascially all of the old toolbar API is deprecated in favor of
10116           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
10117
10118         - The toolbar is backwards compatible with the old toolbar.
10119
10120 2003-06-29  Matthias Clasen  <maclas@gmx.de>
10121
10122         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
10123         from docs, some more formatting fixes. 
10124
10125 2003-06-28  Tor Lillqvist  <tml@iki.fi>
10126
10127         Fix for #111028, thanks to J. Ali Harlow, who writes:
10128         I found that the GdkPixmap->GdkImage reference really isn't
10129         important. It's only really there to have somewhere convenient to
10130         store the location of the pixel data in the pixmap and as an easy
10131         way of accessing the dimensions of that data. I have therefore put
10132         together a fix which removes this reference entirely which seems
10133         to solve the problem.
10134
10135         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
10136         Instead of a pointer to a GdkImage, keep a pointer to the pixels
10137         directly.
10138
10139         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
10140         (_gdk_win32_new_image): New function, replacing the above. Creates
10141         a GdkImage without any associated GdkPixmap.
10142         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
10143
10144         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
10145
10146         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
10147         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
10148         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
10149         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
10150         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
10151         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
10152         Corresponding changes.
10153
10154 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10155
10156         * gtk/gtktreeviewcolumn.c
10157         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
10158         and "is_expanded" if the new value is different fromt he old one.
10159
10160 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
10161
10162         * docs/faq/gtk-faq.sgml: Fix typos. Update
10163         thread example I missed yesterday.
10164
10165 2003-06-24  Matthias Clasen  <maclas@gmx.de>
10166
10167         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
10168         shadow_type. 
10169
10170         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
10171         (gtk_widget_class_list_style_properties): Use same parameter names as in  
10172         header (to silence gtk-doc).
10173
10174         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
10175
10176 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
10177
10178         * docs/faq/gtk-faq.sgml: Thread support updates
10179         from Owen. Various suggestions from Steve Chaplin.
10180
10181 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
10182
10183         * po/id.po: Updated Indonesian translation
10184
10185 2003-06-21  Tor Lillqvist  <tml@iki.fi>
10186
10187         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
10188         emulating X11's automatic grab on button down, pass owner_events
10189         as FALSE. According to the XLib spec, automatic grabs use True for
10190         owner_events when OwnerGrabButtonMask is selected, and I don't see
10191         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
10192         (find_window_for_pointer_event): Improve debugging output.
10193
10194 2003-06-17  Tor Lillqvist  <tml@iki.fi>
10195
10196         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
10197         subdirectory, where libtool 1.5 installs them.
10198
10199         * README.win32: Point to FSF's binary Win32 distribution of
10200         gettext-runtime.
10201
10202 2003-06-17  Matthias Clasen  <maclas@gmx.de>
10203
10204         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
10205         macros to check for XML catalog contents and path, borrowed from
10206         gtk-doc. 
10207         * configure.in: New option --enable-man to enable regeneration of
10208         man pages from Docbook, if the necessary tools are found.
10209
10210 2003-06-15  Matthias Clasen  <maclas@gmx.de>
10211
10212         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
10213         * gtk/gtknotebook.c (gtk_notebook_class_init): 
10214         * gtk/gtkalignment.c (gtk_alignment_class_init): 
10215         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
10216         as 2.4 additions.
10217
10218         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
10219         to the proper place, immediately before the g_signal_new() call.
10220
10221         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
10222         more obvious.  (#115122, Jeff Franks)
10223
10224 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
10225
10226         * gtk/gtkwidget.c: (event_window_is_still_viewable):
10227         Special case pixmaps. (#114880)
10228         
10229 2003-06-12  Matthias Clasen  <maclas@gmx.de>
10230
10231         * gtk/gtkwidget.c: Document child-notify and drag-data-received
10232         signals. Owen, we need to figure out where the best place for
10233         these comments in the source is. I currently put them in front of
10234         the signals enum.
10235
10236 2003-06-11  Matthias Clasen  <maclas@gmx.de>
10237
10238         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
10239
10240 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
10241
10242         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10243         silly typo fix. s/seperator/separator/. This gets rid of the
10244         assert spam when using TreeView.
10245
10246 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10247
10248         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
10249         function for XIM instantiate callback.
10250         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
10251         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
10252         actually made.
10253         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
10254         for XIM's destroy callback.
10255         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
10256         is set or not - if it's not set, call xim_info_try_im() to try to
10257         initiaize it.
10258         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
10259         filter_key_release flag of the context.
10260         * modules/input/gtkimcontextxim.c (get_ic_real): removed
10261         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
10262         code from the removed get_ic_real().
10263
10264         For XIM instantiation, destruction and re-instantiation. With
10265         this, Gtk+ apps will be able to connect or reconnect to the XIM,
10266         when it starts after the apps, or when the XIM gets lost and recover.
10267         (#113099, #107782).
10268
10269 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
10270
10271         Merged from stable.
10272
10273         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
10274         check if width is !null, not *width. Doh.
10275
10276 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
10277
10278         Merged from stable.
10279
10280         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10281         Remove the weird dx logic, get all cell_area and background_area
10282         calculations right. Not sure what was up with it before. (Fixes
10283         #110989, testcase from Vasco Alexandre da Silva Costa).
10284
10285 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10286
10287         * tests/testgtk.c: Make it compile with C89 compilers
10288
10289 2003-06-10  Matthias Clasen  <maclas@gmx.de>
10290
10291         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
10292         property "overwrite".
10293         (gtk_text_view_[gs]et_property): Handle "overwrite".
10294         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
10295         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
10296
10297 2003-06-09  Matthias Clasen  <maclas@gmx.de>
10298
10299         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
10300         properties "resize" and "shrink".
10301         (gtk_paned_[gs]et_child_property): Implementations of 
10302         GtkContainer::[gs]et_child_property.  
10303         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
10304         paned child properties instead of remove/add hacks.  (#114667, 
10305         Soeren Sandmann) 
10306
10307 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
10308
10309         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
10310         out event->window test - it wasn't needed because
10311         of the call to get_widget_coordinates().
10312
10313         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
10314         call to gtk_widget_grab_focus() when not clicking on
10315         any tabs. (Real fix for #114534)
10316
10317 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
10318
10319         * tests/testdnd.c: Use application/x-rootwindow-drop for
10320         root window drops. (#108670, Alex Larsson)
10321
10322         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
10323         Accept either application/x-rootwin-drop (what GTK+ has always used)
10324         or application/x-rootwindow-drop (what the XDND standard specifies).
10325
10326 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
10327
10328         * gtk/gtkwidget.c (event_window_still_viewable): 
10329         Before delivering an event to a widget, check that
10330         (if relevant), the event's window is still viewable.
10331         (#105642, Dennis Björklund)
10332
10333         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
10334         NULL out private->parent, since after destruction
10335         it might not be valid any more.
10336
10337         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
10338         accesses before g_return_val_if_fail(). Treat 
10339         DESTROYED windows as unmapped.
10340
10341 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
10342
10343         * gtk/gtkentry.c: Recompute unconditionally in
10344         gtk_entry_style_set, and in a new gtk_label_screen_changed().
10345         Protect the guts of recompute_idle_func() with
10346         gtk_widget_has_screen(). (#114040, Morten Welinder) 
10347         Fix FALSE/0 confusion.
10348         
10349 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10350
10351         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
10352         Fixes (#114669)
10353
10354 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
10355
10356         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
10357         set_adjustment (viewport, NULL);
10358
10359 2003-06-07  Matthias Clasen  <maclas@gmx.de>
10360
10361         * gtk/gtkiconfactory.c (get_default_icons): 
10362         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
10363         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
10364         undelete and revert.  (#96633)
10365         
10366 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
10367
10368         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
10369         refactoring of code to reduce duplication; fixes include:
10370
10371         - gtk_viewport_realize(): Position the window correct from adjustment 
10372         values. (#110737, Michael Natterer)
10373
10374         - Remove some division-by-zero checks in places where there is no 
10375         longer division. (#110737)
10376
10377         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
10378         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
10379         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
10380
10381         - Switch over to encapsulated lazy-creation for hadjustment/
10382         vadjustment; even with the CONSTRUCT property, we need this after
10383         destroy.
10384
10385         - When updating the adjustment, immediate set their values to
10386         match the the current range of the viewport, and update the 
10387         viewport position to match the value of the new adjustments. 
10388         (Part of #1165)
10389
10390 2003-06-06  Tor Lillqvist  <tml@iki.fi>
10391
10392         * gdk/win32/gdkprivate-win32.h: Fix typo.
10393
10394         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
10395         graphics_exposures and subwindow_mode, too, even if they aren't
10396         currently used.
10397
10398 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
10399
10400         Merged from stable.
10401
10402         * gtk/gtktreeview.c (do_expand_collapse),
10403         (expand_collapse_timeout), (cancel_arrow_animation): made
10404         expand_collapse_timeout a wrapper with locks around     
10405         do_expand_collapse, made cancel_arrow_animation use
10406         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
10407         Peter Bloomfield).
10408
10409 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10410
10411         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
10412         * modules/input/gtkimcontextxim.c (preedit_start_callback,
10413         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
10414         to keep preedit-[start,changed,end] signals from being called during
10415         finalization (#111861).
10416
10417 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
10418
10419         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
10420         presses that are not on the tab (#114534).
10421
10422 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
10423
10424         * demos/Makefile.am: Conditionalize dependencies for
10425         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow). 
10426         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
10427         test-inline-pixbufs.h if we don't have libpng.
10428
10429         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
10430         Add a dependency on gdk-pixbuf.loaders when not 
10431         cross-compiling, remove the dependency on gdk-pixbuf-csource
10432         when not cross compiling.
10433
10434 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
10435
10436         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
10437         gtk_window_get_geometry_info() returning NULL.
10438         (#107311, John Finlay)
10439
10440 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
10441
10442         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
10443         twice the border width from the width/height, not
10444         1x the border width. (#106336, Rodney Dawes)
10445
10446 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
10447  
10448         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
10449         If at the end of the buffer, move to the end iter -
10450         parallels behavior of move_iter_to_previous_line.
10451         (#81960, Padraig O'Briain)
10452  
10453 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
10454
10455         #80023, Yao Zhang, TOKUNAGA Hiroyuki
10456
10457         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
10458         Account for the preedit cursor offset if the iter passed
10459         in is at the same place as the insertion cursor.
10460
10461         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
10462         Encapsulate getting the insertion cursor location.
10463
10464         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
10465         Pass the real y/height to the IM context. Take 
10466         text_view->x/yoffset into account.
10467
10468 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
10469
10470         * gtk/gtktextview.[ch]: Never scroll on focus in
10471         (#81893, Patch from Paolo Maggi)
10472
10473         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
10474         Scroll to the current cursor location before handling
10475         the action, in case the user just tabbed in
10476         and the cursor is offscreen.
10477
10478 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
10479          
10480          #107883, Gustavo Giráldez
10481
10482         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
10483         Split out the case where we know we changed, and 
10484         already dealt with our cached line being invalidated
10485         from external calls to gtk_text_layout_changed.
10486
10487         * gtk/gtktextlayout.c (gtk_text_layout_changed):
10488         Check if the invalidate yrange intersects our
10489         cached line, and clear it if necessary.
10490
10491 2003-06-05  Tor Lillqvist  <tml@iki.fi>
10492
10493         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
10494         filters.
10495
10496 2003-06-05  Matthias Clasen  <maclas@gmx.de>
10497
10498         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
10499         (gtk_text_view_grab_notify): 
10500         (gtk_text_view_state_changed): Implement these
10501         to unobscure cursor when grab shadowed or insensitised.
10502         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
10503         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
10504         gtk_text_view_motion_event().
10505         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
10506
10507         * gtk/gtktextview.c (select_all): New keybinding signal for
10508         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
10509
10510         * gtk/gtkcalendar.c (calendar_timer): 
10511         (stop_spinning): Replace deprecated gtk_timeout_* functions by
10512         their GLib counterparts.  (#114429)
10513
10514         * gtk/gtktreestore.c (gtk_tree_store_new): 
10515         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
10516         types.
10517
10518 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
10519
10520         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
10521         When drawing underlines, join up adjacent runs
10522         where possible, so we don't get changes in 
10523         shaper/font/etc. breaking underlines. (#103662,
10524         Kang Jeong-Hee)
10525
10526 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
10527
10528         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
10529         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
10530         improve the speed of inserting rows into an already sorted list,
10531         #109292
10532
10533 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
10534
10535         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
10536         track of when we have a clip mask set for the GC,
10537         and when we unset it, or switch to a clip region,
10538         immediately call XSetClipMask (..., None) to avoid
10539         Xlib caching stale data. (#111806)
10540
10541         * gtk/gtktextdisplay.c: Don't set a clip mask
10542         when drawing alpha pixmaps; it isn't necessary any more.
10543         (#111806)
10544
10545 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
10546
10547         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
10548         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
10549         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
10550         (#92548, Tim Evans)
10551
10552         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
10553         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
10554         Use state_type = STATE_INSENSITIVE for insensitive menu items.
10555
10556 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
10557
10558         Merged from stable.
10559
10560         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
10561         assert for get_info. (reported by Michael Natterer),
10562         (gtk_tree_view_expand_all_emission_helper),
10563         (gtk_tree_view_expand_all_helper): emit row_expanded for all
10564         expanded rows during an _expand_all operation. (Fixes #111280,
10565         reported by Benjamin Bayart).
10566
10567 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
10568
10569         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
10570         respond to pings on a root window; prevents infinite
10571         loops if we are selecting for SubstructureNotify on the
10572         root window. (#111945, Sergey V. Udaltsov)
10573
10574 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
10575
10576         #71597, reported by Morten Welinder
10577
10578         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
10579         (Patch from Christian Petig)
10580
10581         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
10582         Major rewrite of 555 and 565 conversion routines:
10583
10584         - Move all the bit shifting into a small block of macros,
10585           eliminating much duplication of complicated arithmetic.
10586         - Get rid of 2-pixels at a time code, which was buggy,
10587           hard to maintain, caused unaligned accesses, and
10588           probably didn't actually perform any better.
10589         - Simplify cases where different data types were
10590           used for the little and big endian cases, use
10591           GUINT16_SWAP_LE_BE() where appropriate.
10592                 
10593 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
10594
10595         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
10596         bad optimization for src_rowstride == dest_stride.
10597         (Didn't consider the case where we were copying only
10598         partial widths of a wider source buffer)
10599         (#113034, reported by Hans Petter Jansson)
10600
10601 2003-06-03  Michael Natterer  <mitch@gimp.org>
10602
10603         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
10604         reenabled button_release events for xinput devices. (#113948)
10605
10606 2003-06-03  Christian Rose  <menthos@menthos.com>
10607
10608         * configure.in: Added "li" to ALL_LINGUAS.
10609
10610 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
10611
10612         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
10613         map the event window if the notebook isn't mapped. (#113980,
10614         Richard Reich)
10615
10616 2003-06-02  Sven Neumann  <sven@gimp.org>
10617
10618         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
10619
10620         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
10621
10622 2003-06-01  Matthias Clasen  <maclas@gmx.de>
10623
10624         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
10625         Since: 2.4 to the docs.
10626
10627         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
10628         an example to the docs.  (#98427)
10629
10630 2003-05-30  Murray Cumming  <murrayc@usa.net>
10631
10632         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
10633         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
10634         uses the new private data system - see g_type_class_add_private() in
10635         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10636
10637 2003-05-30  Matthias Clasen  <maclas@gmx.de>
10638         
10639         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10640         signature of gtk_notebook_draw_arrow() for Solaris builds to go
10641         through.  (#114043, Anand Subramanian)
10642
10643 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10644
10645         * modules/input/imipa.c: 
10646         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10647
10648 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10649
10650         * gtk/gtkimmodule.c (_gtk_im_module_list):
10651         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10652
10653 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10654
10655         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10656         label of default input method localizable.
10657         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
10658         use translations of input method context names
10659         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10660           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10661           modules/input/imti-er.c, modules/input/imti-et.c
10662           modules/input/imviqr.c, modules/input/imxim.c
10663         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10664         (#113850).
10665
10666 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
10667
10668         Merged from stable.
10669
10670         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10671         grab separate, the user might clear the tree in the focus-in
10672         callback. (Fixes #113086, testcase from Felipe Heidrich).
10673
10674 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
10675
10676         Merged from stable.
10677
10678         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10679         of row reference when we unset the model. Also reset
10680         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10681
10682 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
10683
10684         Merged from stable.
10685
10686         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10687         the current editing, if it exists. (Fixes #108956, reported by
10688         Michael Natterer).
10689
10690 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
10691
10692         Merged from stable.
10693
10694         * gtk/gtktreeview.c (check_selection_helper): new function,
10695         (gtk_tree_view_row_deleted): traverse the tree from the
10696         deleted node to see whether the selection changed, instead of
10697         just checking this node. (Fixes #107400, reported by 'Duncan').
10698
10699 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
10700
10701         Merged from stable.
10702
10703         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10704         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10705         instead of _maybe_begin_dragging_row, so the icon can be
10706         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10707
10708 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
10709
10710         Merged from stable.
10711
10712         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10713         cell_area x/width for the expander if needed. (Fixes #101748,
10714         reported by Dave Cook and Mariano Suarez-Alvarez).
10715
10716 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
10717
10718         Merged from stable.
10719
10720         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10721         if tree/node are still the same after _internal_select_node.
10722         (Fixes #92256, reported by edscott).
10723
10724 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
10725
10726         Fixes #75745, reported by Richard Hult. Merged from stable.
10727
10728         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10729         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10730         cursor or not.
10731
10732         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10733         if we are rendering a cursor row, and the cell the be
10734         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10735         flag (else we unset it).
10736
10737 2003-05-27  Matthias Clasen  <maclas@gmx.de>
10738
10739         * gtk/gtkwindow-decorate.c: 
10740         * gtk/gtktreeprivate.h: 
10741         * gtk/gtkdnd.c: 
10742         * gdk/win32/gdkwindow-win32.h: 
10743         * gdk/linux-fb/gdkprivate-fb.h: 
10744         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10745         unspecified signedness.  (#112919, Morten Welinder)
10746
10747         * gtk/queryimmodules.c (escape_string): 
10748         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
10749         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
10750         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
10751         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
10752         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
10753         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10754         Morten Welinder) 
10755
10756 2003-05-27  Tor Lillqvist  <tml@iki.fi>
10757
10758         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10759         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10760
10761         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10762         win32/libgdk-win32.la.
10763
10764         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10765
10766 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10767
10768         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10769         scrollbar slider length 21 instead of 7.
10770
10771 2003-05-23  Matthias Clasen  <maclas@gmx.de>
10772
10773         * gtk/gtknotebook.c: Add support for up to four scroll
10774         arrows. Control their display by new style properties
10775         "has_forward_stepper", "has_backward_stepper",
10776         "has_secondary_forward_stepper" and
10777         has_secondary_backward_stepper". (#110540)
10778
10779         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10780         click_child three bits wide, add
10781         has_{before,after}_{previous,next} fields.
10782
10783         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10784         focus out of hex_entry.  (#112665)
10785         (hex_focus_out): New signal handler for focus out of hex entry.
10786
10787 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
10788
10789         * gtk/gtkwidget.c (gtk_widget_realize): 
10790         g_return_if_fail() if
10791         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10792         (#107872, Christian Reis)
10793
10794 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10795
10796         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
10797         (gtk_file_selection_rename_file): Some keynav improvements for the
10798         "Rename File" and "Create Directory" subdialogs: Enter in entry
10799         activates default, default is "Create"/"Rename", Escape cancels
10800         dialog.  (#113110)
10801         (gtk_file_selection_set_filename): Add a hint about opening 
10802         directories.  (#113175)
10803
10804 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10805
10806         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10807         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10808         anyway.  (#113476)
10809
10810 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
10811
10812         * gtk/gtkprogress.c (gtk_progress_set_format_string,
10813         gtk_progress_set_show_text): Always queue a resize ... 
10814         we rely on the size-allocate to do the update, plus a 
10815         different format can actually change our size requisition.
10816         (#111052, Vasco Alexandre da Silva Costa)
10817
10818         * gtk/gtkprogress.c (gtk_progress_changed): Track
10819         ::changed as well as ::value_changed, and queue a
10820         resize on ::changed when necessary.
10821
10822         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
10823         Call gtk_progress_changed() here to update or 
10824         queue a resize as necessary.
10825
10826 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10827
10828         * gtk/gtkimcontextsimple.c: added composing rules of
10829         Greek accented letters, patch by Vasilis Vasaitis (#107507)
10830
10831 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10832
10833         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
10834         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10835         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10836
10837 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10838
10839         * gtk/gtkimcontextsimple.c: 
10840         code that can check the compose table for ascending order,
10841         by Vasilis Vasaitis (#104862).
10842
10843 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
10844
10845         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
10846         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
10847         to handle the case where a modifier not in the mask
10848         (like Num_Lock) changes the key value, so replace
10849         the masked state with a state/mask pair. (#106913,
10850         Olivier Ripoll)
10851
10852         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10853         in state/mask pair to _gtk_key_hash_lookup()
10854
10855 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10856
10857         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10858         fix a memory leak, free input context list (#113259).
10859
10860 2003-05-21  Matthias Clasen  <maclas@gmx.de>
10861
10862         * configure.in (all_loaders): Add pcx.
10863
10864         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
10865
10866 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
10867
10868         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10869         accept a missing gtk.immodules file, some people
10870         want to run without one. (#112406, patch from
10871         Arnaud Charlet)
10872
10873 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
10874
10875         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
10876         height/width confusion (#113370, Xan Lopez)
10877
10878 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
10879
10880         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10881         zero all unused parts of client messages (Mainly Motif DND
10882         and EWMH). Also, fix a couple places where we were putting
10883         contents into Motif DND messages that didn't belong.
10884         (#113361, EWMH problem reported by Lubos Lunak)
10885
10886         * gtk/gtkselection.c (_gtk_selection_request): Handle the
10887         case where the property type for the multiple atoms is
10888         ATOM_PAIR by doing the conversions ourselve. This is
10889         needed for Xt inter-operation.
10890
10891 2003-05-19 Arafat Medini <lumina@silverpen.de>
10892
10893         * configure.in: Added ar to ALL_LINGUAS
10894
10895 2003-05-19  Matthias Clasen  <maclas@gmx.de>
10896
10897         * gtk/gtksettings.c (gtk_rc_property_parse_border,
10898         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10899         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10900         Add docs.
10901
10902         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
10903         gtk_widget_class_install_style_property_parser): Add docs. 
10904
10905 2003-05-17  Matthias Clasen  <maclas@gmx.de>
10906
10907         * tests/prop-editor.c: Add navigation for object properties, so
10908         that you can easily edit the properties of the parent of a widget.
10909         (#113152)
10910
10911 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
10912
10913         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10914         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
10915         inconsistency and leave the old name as an aliass (#104873)
10916
10917 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
10918
10919         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10920         from Charles Schmidt to add missing notify (#108305)
10921
10922 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
10923  
10924         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10925         (#105500, Morten Welinder.)
10926  
10927 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10928
10929         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10930         instead of gumake for XNFilterEvents event mask(#110493).
10931
10932 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
10933
10934         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10935         a GObject. (#112762)
10936
10937 2003-05-08  Sven Neumann  <sven@gimp.org>
10938
10939         * configure.in: set the HAVE_X11R6 automake conditional to false
10940         if not compiling for X11.
10941
10942 2003-05-08  Matthias Clasen  <maclas@gmx.de>
10943
10944         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
10945         (gtk_calendar_get_display_options): New functions.
10946         (gtk_calendar_display_options): Depreate.  (#64567)
10947         (gtk_calendar_class_init): Add boolean properties for the display
10948         options.  (#50949)
10949
10950 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
10951
10952         Patch from James Henstridge to update to automake-1.7
10953         (#109542)
10954  
10955         * autogen.sh: update to call newer tools.
10956  
10957         * configure.in: various updates, to use M4 macros to put
10958         variables that change each release at the top.
10959         Use AC_HELP_STRING to format help strings.
10960         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10961  
10962         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
10963         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
10964         during distcheck.
10965  
10966         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10967         makefile fragment.
10968  
10969         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10970         Use BUILT_SOURCES where appropriate.
10971         Build generated files in builddir rather than srcdir.
10972         Fix uninstall and distclean targets to satisfy distcheck.
10973
10974         ===
10975
10976         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10977         built first, since we are now using BUILT_SOURCES.
10978
10979         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10980
10981         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10982         with geninclude.pl.
10983
10984         * configure.in: Update versions to 2.3.0.
10985  
10986 2003-05-06  Tor Lillqvist  <tml@iki.fi>
10987
10988         Fix for #110165 (thanks to Arnaud Charlet):
10989         
10990         * gdk/win32/gdkevents-win32.c (build_keypress_event,
10991         build_keyrelease_event): For unshifted control char, use
10992         lowercase ASCII keyval.
10993         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10994         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10995         lowercase keyval. Use build_key_event_state() here, too, instead
10996         of minor code duplication.
10997
10998 2003-05-06  Matthias Clasen  <maclas@gmx.de>
10999
11000         * tests/testmultidisplay.c: Don't include strings.h, it's not
11001         needed anymore.  (#112388)
11002
11003         * examples/menu/itemfactory.c: 
11004         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
11005         itemfactory example.
11006
11007 2003-05-05  Matthias Clasen  <maclas@gmx.de>
11008
11009         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
11010         icon type to the stock icon type.  (#111735, Dave Bordoley)
11011
11012 2003-05-05  Christian Rose  <menthos@menthos.com>
11013
11014         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
11015         Removed sp, it's replaced by sr@Latn.
11016
11017 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
11018
11019         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
11020         Gonzalo Odiard
11021
11022 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
11023
11024         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
11025         data iff the destroy func isn't NULL.
11026
11027 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
11028
11029         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
11030
11031 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
11032
11033         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
11034
11035 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
11036
11037         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
11038         of UTF-8. (#106419, Roozbeh Pournader)
11039
11040 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
11041
11042         * configure.in: Only check for XFT2 if we found pango-xft
11043         (#105692, Jon Nall)
11044
11045 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
11046
11047         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
11048         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
11049
11050 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
11051
11052         * docs/faq/gtk-faq.sgml: add note about version converage.
11053
11054 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
11055
11056         * gtk/gtksocket.c (activate_key): Fix prototype for
11057         activate_key. (#108927, Jason D. Hildebrand)
11058
11059 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
11060
11061         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
11062         Remove geninclude.pl from CVS and don't dist it either,
11063         it is generated. (#108970, Rich Kinder)
11064
11065 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
11066
11067         * gtk/gtkobject.h: Remove a couple of obsolete comments,
11068         fix another comment. (#109737, Britton Kerin)
11069
11070 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
11071
11072         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
11073         the source list, not just it's contents (Patch
11074         from Charles Kerr, #108243)
11075
11076 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
11077
11078         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
11079         from Alex Larsson fixing problem with restacking during
11080         DND. (#108671)
11081
11082 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
11083
11084         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
11085         Calling XFlush() after ungrabbing, to avoid problems if
11086         the app subsequently blocks on a long-running operation.
11087         (#106520, reported by Rajkumar Siva)
11088
11089 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
11090
11091         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
11092         SKIP_TASKBAR/SKIP_PAGER to set of properties we
11093         might set on map. (#110019, problem reported
11094         by Loban Rahman)
11095
11096 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
11097
11098         * gdk/gdkevents.c (gdk_event_copy): Fix for the
11099         case when gdk_event_copy() is called on a non-allocated
11100         event. (#109716, reported by Rich Burridge)
11101
11102 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
11103
11104         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
11105         Fix pointer arithmetic on 'void *'. (#108322)
11106
11107 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
11108
11109         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
11110         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
11111         use of XAddConnectionWatch. Remove --enable-xim config option.
11112         Should fix building on X11R6 (#110523, Albert Chin)
11113
11114 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
11115
11116         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
11117         Patch from Morten Welinder to catch Sun servers with a 
11118         broken implementation of the RENDER extension. (#108309)
11119
11120 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
11121
11122         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
11123         gdk_free_compound_text(), not g_free(). (#107643,
11124         Michael Zucchi)
11125
11126 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
11127
11128         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
11129         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
11130         wrong use of base_finalize. (#105126, Sven Neumann)
11131
11132 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
11133
11134         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
11135         '/' vs. '*' problem in aspect ration computations. (#108237)
11136
11137 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
11138
11139         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
11140         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
11141         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
11142         event, so select for both. (#108406, Egmont Koblinger)
11143
11144 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
11145
11146         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
11147         caused by not clearing the scroll_to_path.
11148
11149 2003-04-16  Matthias Clasen  <maclas@gmx.de>
11150
11151         * gtk/gtkstyle.c: Doc additions and fixes.
11152
11153         * gtk/gtktreeviewcolumn.c
11154         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
11155
11156 2003-04-14  Michael Natterer  <mitch@gimp.org>
11157
11158         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
11159         that the iter is not reordered to its own position. Prevents model
11160         corruption for the case that the store contains only a single item
11161         (fixes bug #108387).
11162
11163         Unrelated:
11164
11165         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
11166         new list element later so we don't leak it if we decide to return
11167         early.
11168
11169         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
11170         set selection->tree_view->priv->anchor to NULL after freeing it.
11171
11172 2003-04-13  Matthias Clasen  <maclas@gmx.de>
11173
11174         * gtk/gtktreeviewcolumn.c
11175         (gtk_tree_view_column_cell_get_position): Document. 
11176
11177         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
11178         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
11179         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
11180         these as 2.4 additions.
11181
11182 2003-04-09  Matthias Clasen  <maclas@gmx.de>
11183
11184         * INSTALL.in: Fix the real thing.
11185
11186         * INSTALL: Typo fix.
11187
11188 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
11189
11190         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
11191         after ungrabbing the server.
11192  
11193         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
11194         calls to XFlush().
11195
11196         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
11197         Use gdk_x11_display_grab/ungrab.
11198
11199         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
11200         use_xshm to TRUE so SHM gets used when present.
11201  
11202 2003-04-07  Matthias Clasen  <maclas@gmx.de>
11203
11204         * gtk/gtktextlayout.c (set_para_values): 
11205         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
11206         David Brigada)
11207
11208         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
11209         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
11210         misspellings of possessive "its".  (#110027, Doug Quale)
11211
11212 2003-04-03  Matthias Clasen  <maclas@gmx.de>
11213
11214         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
11215         current directory if it looks like the srcdir.  (#109357)
11216
11217 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
11218
11219         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
11220         focus_on_click
11221
11222         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
11223         navigation not wrap around.
11224
11225 2003-04-02  Matthias Clasen  <maclas@gmx.de>
11226
11227         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
11228         Return 0 if lower == upper.  (#109155)
11229         (gtk_progress_get_current_percentage): Use
11230         gtk_progress_get_percentage_from_value().
11231
11232 2003-04-01  Matthias Clasen  <maclas@gmx.de>
11233
11234         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
11235         (#109510, Noah Levitt)
11236
11237 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
11238
11239         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
11240         members so Purify won't complain.
11241
11242         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
11243
11244 2003-03-31  Matthias Clasen  <maclas@gmx.de>
11245
11246         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
11247         gtk_window_[gs]et_role().  (#93904)
11248
11249 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
11250
11251         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
11252         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
11253
11254 2003-03-29  Matthias Clasen  <maclas@gmx.de>
11255
11256         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
11257         of labels back to normal before reparenting back.  (#102387)
11258
11259         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
11260         a default window title to match the GtkFontSelectionDialog behavior.
11261  
11262         (gtk_color_selection_dialog_new): Don't call
11263         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
11264
11265 2003-03-29  Matthias Clasen  <maclas@gmx.de>
11266
11267         Fix for bug #78499:
11268         
11269         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
11270         select_lines. 
11271
11272         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
11273         select_lines on double/triple click.
11274
11275         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
11276         select-by-words and select-by-lines behaviour.
11277
11278         Fixes for bug #56248:
11279         
11280         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
11281         timer and queue a redraw. 
11282         (gtk_notebook_grab_notify): 
11283         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
11284         if necessary.   
11285         (gtk_notebook_button_release): Use stop_scrolling().
11286         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
11287
11288         * gtk/gtkrange.c (stop_scrolling): New function to remove the
11289         grab, remove the timer and queue a redraw.
11290         (gtk_range_grab_notify): 
11291         (gtk_range_state_changed): New functions to call stop_scrolling() 
11292         if necessary.   
11293         (gtk_range_button_release): Use stop_scrolling().
11294
11295         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
11296         (gtk_spin_button_state_changed): Redraw after stop_spinning.
11297         (gtk_spin_button_stop_spinning): Reset click_child to correct the
11298         drawing of the arrows.
11299         (gtk_spin_button_button_release): Use a local copy of click_child,
11300         since stop_spinning() resets it.
11301
11302         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
11303         C-A-PgDown as alternatives to the A-less variants. (This slipped
11304         in accidentally some time ago).  (#97860)
11305
11306 2003-03-26  Sven Neumann  <sven@gimp.org>
11307
11308         * gtk/gtktreeview.c: rewrote the function that does node and arrow
11309         prelighting, queue all redraws from here (Fixes bug #108792).
11310
11311 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
11312
11313         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
11314         Fixes bug #108778.
11315
11316 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
11317
11318         * configure.in: Added "ml" in ALL_LINGUAS
11319
11320 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
11321
11322         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
11323         G_DISABLE_DEPRECATED.
11324
11325 2003-03-14  Tor Lillqvist  <tml@iki.fi>
11326
11327         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
11328         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
11329         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
11330         multiple monitors can have negative coordinates on some of the
11331         monitors. (partial fix for #99496, Arnaud Charlet)
11332
11333 2003-03-15  Matthias Clasen  <maclas@gmx.de>
11334
11335         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
11336
11337 2003-03-13  Sven Neumann  <sven@gimp.org>
11338
11339         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
11340         removed redundant calls to g_object_notify().
11341         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
11342         bug #108236.
11343
11344         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
11345         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
11346         functions return an integer value).
11347
11348 2003-03-13  Tor Lillqvist  <tml@iki.fi>
11349
11350         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
11351         WM_MOUSEMOVE, the test whether we have actually moved (and thus
11352         shouldn't generate an GDK event) moved after the call to
11353         propagate() and translate_mouse_coords(). Otherwise we were
11354         testing wrong values. (#108115, Allin Cottrell)
11355         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
11356         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
11357
11358         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
11359         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
11360         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
11361         cursor right away with SetCursor(), as we won't get any
11362         WM_SETCURSOR messages while the mouse is captured. 
11363         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
11364         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
11365
11366         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
11367         WM_SYSCHAR, return FALSE from the window procedure to prevent the
11368         DefWindowProc from being called. Otherwise Windows would beep,
11369         thinking you are tring to access a (nonexistent) menu when you
11370         press Alt-something. Don't do this for Alt-Space,
11371         though. (#107454, Martyn Russell)
11372
11373         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
11374
11375 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
11376
11377         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
11378         [left/right] expands/collapses the tree, #108092
11379
11380 2003-03-09  Tor Lillqvist  <tml@iki.fi>
11381
11382         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
11383         compensate for LineTo() not drawing the end pixel. It causes more
11384         harm than benefits, see bug #81895.
11385
11386 2003-03-08  Matthias Clasen  <maclas@gmx.de>
11387
11388         Bug #107664 continued:
11389
11390         * gdk/x11/gdkinputprivate.h: 
11391         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
11392         (_gdk_input_other_event): Return gboolean.
11393         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
11394         (_gdk_input_other_event): Return gboolean.
11395         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
11396
11397         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
11398         gboolean, remove pointless call to _gdk_input_window_none_event.
11399
11400         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
11401         (_gdk_input_window_none_event): Remove.
11402
11403         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
11404         (_gtk_text_iter_get_any_segment): 
11405         (_gtk_text_iter_get_segment_byte): 
11406         (_gtk_text_iter_get_segment_char): 
11407         (_gtk_text_iter_get_text_line): 
11408         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
11409         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
11410         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
11411         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
11412         (gdk_window_get_origin): 
11413         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
11414
11415 2003-03-06  Matthias Clasen  <maclas@gmx.de>
11416
11417         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
11418         (#107664, Morten Welinder)
11419
11420         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
11421         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
11422         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
11423         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
11424
11425         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
11426         * gtk/gtkeditable.c (gtk_editable_get_chars): 
11427         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
11428         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
11429         (#107648, Morten Welinder)Fix NULL/FALSE confusion
11430         (#107648, Morten Welinder)
11431
11432 2003-03-04  Matthias Clasen  <maclas@gmx.de>
11433
11434         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
11435
11436 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
11437
11438         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
11439         handle rtl code.  Thanks to Matthias Clasen for an initial patch
11440         to handle the RTL code.
11441
11442         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
11443
11444         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
11445
11446         * gtk/gtktreeview.c: (invalidate_column),
11447         (invalidate_last_column),
11448         (gtk_tree_view_get_real_requested_width_from_column),
11449         (gtk_tree_view_size_allocate_columns),
11450         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
11451         (gtk_tree_view_button_release_drag_column),
11452         (gtk_tree_view_update_current_reorder),
11453         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
11454         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
11455         (gtk_tree_view_get_background_xrange),
11456         (gtk_tree_view_get_arrow_xrange),
11457         (gtk_tree_view_is_expander_column),
11458         (gtk_tree_view_set_column_drag_info),
11459         (gtk_tree_view_move_cursor_left_right):
11460         Add RTL support.
11461
11462         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
11463         expand flag.
11464
11465         * gtk/gtktreeviewcolumn.c:
11466         (gtk_tree_view_column_class_init),
11467         (gtk_tree_view_column_set_property),
11468         (gtk_tree_view_column_get_property),
11469         (gtk_tree_view_column_set_expand),
11470         (gtk_tree_view_column_get_expand),
11471         (gtk_tree_view_column_cell_process_action):
11472         Add support for expand flag.  Thanks to Kristian Rietveld for an
11473         initial patch for this.
11474
11475 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
11476
11477
11478 2003-03-02  Tor Lillqvist  <tml@iki.fi>
11479
11480         * gdk/gdk.def
11481         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
11482         Gustin.
11483
11484 2003-03-01  Matthias Clasen  <maclas@gmx.de>
11485
11486         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
11487         (gtk_scrolled_window_set_hadjustment): Replace uses of
11488         gtk_object_new by g_object_new.
11489
11490 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
11491
11492         * demos/gtk-demo/main.c
11493         * demos/gtk-demo/tree_store.c
11494         * gdk/x11/gdkscreen-x11.c
11495         * gtk/gtkcellrenderertoggle.c
11496         * gtk/gtkcolorsel.c
11497         * gtk/gtkdnd.c
11498         * gtk/gtkeditable.c
11499         * gtk/gtkentry.c
11500         * gtk/gtkmenu.c
11501         * gtk/gtkmenubar.c
11502         * gtk/gtkmenuitem.c
11503         * gtk/gtkmenushell.c
11504         * gtk/gtkrc.c
11505         * gtk/gtksettings.c
11506         * gtk/gtkstyle.c
11507         * gtk/gtktextbuffer.c
11508         * gtk/gtktextview.c
11509         * gtk/gtktreeviewcolumn.c
11510         * tests/testgtk.c
11511         * tests/testtext.c
11512         * tests/testtreeedit.c
11513         * tests/testtreefocus.c
11514         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
11515
11516 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
11517
11518         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
11519         code.
11520
11521 2003-02-24  Sven Neumann  <sven@gimp.org>
11522
11523         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
11524
11525 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
11526
11527         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
11528
11529 2003-02-20  Matthias Clasen  <maclas@gmx.de>
11530
11531         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
11532         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
11533
11534         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
11535         (gtk_text_view_update_adjustments): Make sure cursor stays visible
11536         during horizontal scrolling.  (#75270)
11537
11538 2003-02-19  Matthias Clasen  <maclas@gmx.de>
11539
11540         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
11541         counterparts. (#106532)
11542
11543         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
11544         keys_changed virtual function with the keys_changed signal.
11545         (#106512, Jeff Franks)
11546
11547 2003-02-15  Larry Ewing  <lewing@ximian.com>
11548
11549         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
11550
11551 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
11552
11553         * po/id.po: Added Indonesian translation
11554         * configure.in: Added "id" to ALL_LINGUAS
11555
11556 2003-02-14  Matthias Clasen  <maclas@gmx.de>
11557
11558         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
11559
11560 2003-02-12  Christian Rose  <menthos@menthos.com>
11561
11562         * configure.in: Added "yi" to ALL_LINGUAS.
11563
11564 2003-02-12  Matthias Clasen  <maclas@gmx.de>
11565
11566         Fix for #82734 and #78216:
11567         
11568         * gtk/gtktextview.c (delete_cb): 
11569         (select_all_cb): New callbacks for context menu items.
11570         (popup_targets_received): Add "Delete" and "Select All" to context
11571         menu, mnemonics and title caps for all items.
11572
11573         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
11574         context menu item.
11575         (popup_targets_received): Add "Delete" to context menu, mnemonics
11576         and title caps for all items.
11577
11578 2003-02-09  Tor Lillqvist  <tml@iki.fi>
11579
11580         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
11581         GetDriveType() to recognize removable drives (in order to avoid
11582         hanging if trying to access an empty floppy drive), instead of
11583         hardcoding A: and B: (#105654).
11584
11585 2003-02-09  Matthias Clasen  <maclas@gmx.de>
11586
11587         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
11588         names.  (#57680)
11589
11590 2003-02-09  Christian Rose  <menthos@menthos.com>
11591
11592         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
11593
11594 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
11595
11596         * gtk/gtkobject.c: remove quark_user_data usage in
11597         gtk_object_{g|s}et_user_data(). fixes get_user_data()
11598         returning NULL for user_data set through property interface.
11599
11600         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
11601         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
11602         need to be a programming error (in case of loaded data), (b) it breaks
11603         with 2.0 behaviour where extra magic could be used to create empty
11604         images. don't attempt to retrieve pixbufs from NULL extra_data.
11605
11606 2003-02-06  Matthias Clasen  <maclas@gmx.de>
11607
11608         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
11609         a GdkVisual *, not a GdkVisual **.  (#105243)
11610
11611         * gtk/gtkclist.c: 
11612         * gtk/gtkctree.c: 
11613         * gtk/gtkcontainer.c: 
11614         * gtk/gtkdnd.c: 
11615         * gtk/gtkentry.c: 
11616         * gtk/gtklist.c:
11617         * gtk/gtkmenu.c:
11618         * gtk/gtkmenuitem.c:
11619         * gtk/gtknotebook.c:
11620         * gtk/gtkselection.c:
11621         * gtk/gtkspinbutton.c:
11622         * gtk/gtktext.c:
11623         * gtk/gtktextview.c:
11624         * gtk/gtktooltips.c:
11625         * gtk/gtktreeview.c:
11626         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
11627         their non-deprecated GLib counterparts.
11628         
11629         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
11630         
11631 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
11632
11633         * docs/tutorial/gtk-tut.sgml: cleanups from
11634         Sebastian Rittau (#104832)
11635
11636 2003-02-01  Tor Lillqvist  <tml@iki.fi>
11637
11638         Merge from stable:
11639
11640         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11641         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11642         (#104108, Naofumi Yasufuku)
11643
11644         * gdk/gdk.def: Export the above. Export
11645         gdk_screen_get_system_visual, noticed by Ed Woods.
11646
11647 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
11648
11649         * demos/pixbuf-demo.c
11650         * demos/testpixbuf.c
11651         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11652
11653 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
11654                                                                                 
11655         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11656         on the tab_label before unparenting it, in case the unparent
11657         drops the refcount to 0.
11658
11659 2003-02-01  Matthias Clasen  <maclas@gmx.de>
11660
11661         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11662         headers. Sorry about gtk_selection_clear, Yosh.
11663
11664 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
11665
11666         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11667         too, for gtkwidget.c. Remember people, when introducing new
11668         deprecations, make sure internal code isn't using it, or if so,
11669         reorganize appropriately like I've done in other places.
11670
11671         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11672
11673 2003-01-31  Matthias Clasen  <maclas@gmx.de>
11674
11675         * gtk/gtkselection.h: 
11676         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
11677
11678         * gdk/gdkpixbuf.h: 
11679         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
11680         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
11681
11682         * gtk/gtkcolorsel.h:
11683         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11684         Deprecate.  (#98167)
11685
11686         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11687
11688         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11689         and gtk_input_* functions.  (#71596)
11690         
11691         * gtk/gtkentry.c (gtk_entry_move_cursor): 
11692         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11693         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11694
11695         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
11696
11697         * gtk/gtkitemfactory.h: 
11698         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
11699         (#69244)
11700
11701 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
11702
11703         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11704         only count the special cell if it is also visible,
11705         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11706         account from visible cells,
11707         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11708         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11709         tracking bug was #104563).
11710         
11711 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
11712
11713         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11714         subtract expander space and focus line space from the extra space
11715         we are about the allocate. (Fixes #104635).
11716
11717 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
11718
11719         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11720         (Fixes #96242, patch from Soeren Sandmann).
11721
11722 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
11723
11724         * gtk/gtknotebook.c: Patch from Soeren Sandmann
11725         to update the states of the tab label child
11726         widgets to match the state of the tabs. 
11727         (#93389, Reported by Tommi Komulainen)
11728
11729 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
11730
11731         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11732         EXTRA_DIST, and from dist rules. (#102231)
11733
11734 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11735
11736         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11737         function that sets the icon's and label's packing options and
11738         visibility based on toolbar->style.
11739
11740         (gtk_toolbar_internal_insert_element):
11741         (gtk_real_toolbar_style_changed): Make use of
11742         set_child_packing_and_visibility() to clean up the code and get
11743         the packing right for icon-only/text-only toolbars. (#104679)
11744
11745         (get_first_child): Remove, and use gtk_bin_get_child() instead.
11746
11747 2003-01-30  Matthias Clasen  <maclas@gmx.de>
11748
11749         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11750         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
11751
11752         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11753         
11754 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
11755
11756         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
11757         attempt-to-allocate then free code. To handle multiple
11758         people allocating colors at the same time, we need
11759         to just go ahead and try. (#102213, Shivram U)
11760         
11761 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11762
11763         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11764         rectangle using the background color rather than relying on
11765         gdk_window_clear_area(), so that the palette works properly with
11766         pixmap themes. (#101732)
11767
11768         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11769         to fill the drawing area in the background color.
11770
11771 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
11772
11773         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11774         initialization error for selecting input style (#103549).
11775
11776 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
11777
11778         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
11779         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11780         (#101225)
11781
11782 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
11783
11784         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11785         Make up from the menu bar go to the end of the submenu.
11786         (#96114, Ian Peters.)
11787
11788         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
11789         Only do the select-but-not-activate stuff if the
11790         menu is already active. Otherwise, just activate.
11791         (#101690, Arvind Samptur)
11792
11793 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
11794
11795         * autogen.sh (have_automake): Fix version in complaint
11796         message about automake. (#104366, Rich Burridge)
11797
11798 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
11799
11800         * configure.in: Remove SOEXT stuff; it doesn't work portably.
11801
11802 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
11803
11804         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11805         we appended/prepended, send the rows_reordered signal to the 
11806         correct level ... (Reported by Matthew Tuck).
11807
11808 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
11809
11810         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11811         out if the level only has one item, recurse over the child if there
11812         is one. (Fixes #100458, reported by Gaël Le Mignot).
11813
11814 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
11815
11816         * gtk/gtktreeview.c (gtk_tree_view_set_model),
11817         (gtk_tree_view_search_equal_func): make TreeView search handle
11818         all types which are transformable by GValue. (Fixes #99803, reported
11819         by Muktha Narayan).
11820
11821 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
11822
11823         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11824         *really* handle unsetting the ID. Slightly modified patch from
11825         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11826
11827 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
11828
11829         Fixes the total GtkTreeSortable mess, and #83195, reported by
11830         Jarek Dukat
11831
11832         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11833         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11834         (gtk_tree_store_set_default_sort_func): use the constant
11835         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11836         work as advertised by the documentation.
11837
11838         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11839         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11840         (gtk_list_store_set_default_sort_func): likewise.
11841
11842         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11843         (gtk_tree_model_set_sort_func),
11844         (gtk_tree_model_sort_set_default_sort_func): make functions work
11845         as advertised by the documentation.
11846
11847 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
11848
11849         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11850         before we decide if we edit. (fixes #100973, reported by Dave Cook).
11851
11852 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
11853
11854         Bug report and test case from Paolo Maggi via IRC.
11855
11856         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11857         (gtk_list_store_move): update tail if needed.
11858
11859 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
11860
11861         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11862         might be NULL. Use gtk_widget_get_display (widget) 
11863         (#102860, Thomas Leonard)
11864
11865 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
11866
11867         * configure.in: Fix --without-modules/--disable-modules
11868         confusion that was causing --disable-modules not to work.
11869         (#102865, Akira Tagoh)
11870
11871         * configure.in: Fix problem with plain --with-xinput
11872         (#104266, Akira Tagoh)
11873
11874 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
11875
11876         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11877         patch.
11878
11879 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
11880
11881         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11882
11883 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
11884
11885         * docs/faq/gtk-faq.sgml: Learn to spell Library
11886
11887 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
11888         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
11889
11890            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11891            Composite widget" to modern standards. (I.e. use gobject instead of
11892            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11893
11894         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11895         code in Appendix C to reflect above changes.
11896
11897         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11898         auto resize on page size change
11899
11900 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
11901
11902         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11903         in addition to show_all in order to keep them symmetric. (#102201)
11904
11905 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
11906
11907         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11908         the end of the function, so there is a statement following the "out"
11909         label in all cases (fixes #101961)
11910
11911 2003-01-22  Christian Rose  <menthos@menthos.com>
11912
11913         * configure.in: Added "mn" to ALL_LINGUAS.
11914
11915 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
11916  
11917         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11918         Fix off-by-one error on the backward iteration loop,
11919         that was causing the wrong range to be redrawn.
11920         (at least part of #72734)
11921         
11922 2003-01-21  Matthias Clasen  <maclas@gmx.de>
11923
11924         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11925         vadjustment value after changing its bounds.  (fixes #101963 and 
11926         #73562)
11927
11928         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
11929         unnecessary roundtrip failures.  (#93500)
11930
11931 2003-01-19  Tor Lillqvist  <tml@iki.fi>
11932
11933         Merge from stable:
11934         
11935         Fix for #103614 and some other problems with GtkFileSelection on
11936         Windows:
11937                 
11938         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11939         g_ascii_tolower(). Windows file names are case-insensitive for all
11940         Unicode letters.
11941
11942         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11943         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11944         earlier, as it includes config.h unconditionally, and gtkprivate.h
11945         redefines GTK_LOCALEDIR.
11946         (struct _CompletionDirSent): Ifdef out the fields not used on
11947         Windows.
11948         (compare_utf8_filenames, compare_sys_filenames): Need different
11949         comparison implementation for UTF-8 file names and system locale
11950         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11951         need to casefold all Unicode letters.
11952         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11953         variables not used on Win32 to avoid warnings about unused
11954         variables.
11955         (open_ref_dir): Use g_path_skip_root() to skip past potential
11956         drive letter in front of the leading (back)slash.
11957         (open_new_dir): Ifdef out use of CompletionDirSent fields not
11958         there on Win32.
11959         (correct_parent): Bypass inode check also on Cygwin.
11960
11961         Fix bug noticed by Alex Shaduri: Tooltips and other
11962         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11963         was a regression from earlier versions.
11964         
11965         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11966         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11967         (gdk_window_move, gdk_window_resize): Add debug logging.
11968
11969         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11970         WM_SIZE message for a non-visible (withdrawn) window, don't clear
11971         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11972         even if its size changes.
11973
11974 2003-01-16  Matthias Clasen  <maclas@gmx.de>
11975
11976         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11977         (totally_invisible_line): Fix an incorrect optimization which
11978         caused invisible paragraphs to be occasionally misrendered.
11979
11980 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
11981
11982         * gtk/gtksettings.c: Set the double click speed from
11983         XSETTINGS when creating a new GtkSettings object
11984         as well as when getting a notify. (#103601, reported
11985         by Louis Garcia)
11986
11987 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
11988  
11989         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
11990         Show/hide the notebook event window as necessary,
11991         we weren't previously keeping the visibility updated
11992         properly.  (#103599)
11993  
11994 2003-01-15  Matthias Clasen  <maclas@gmx.de>
11995
11996         * examples/menu/itemfactory.c: 
11997         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11998         example.  (#103211)
11999
12000 2002-12-29  Murray Cumming  <murrayc@usa.net>
12001
12002         Fixes #102168.
12003
12004         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
12005         Actually implement the GtkTreeDragSource::row_draggable virtual 
12006         function in GtkListStore and GtkTreeStore instead of just checking 
12007         whether it's implemented at all. This means that DnD isn't broken by
12008         gtkmm's virtual function wrappers. The alternative would be to
12009         hard-code the TRUE return value into gtkmm's wrappers, but that's 
12010         part of GTK+'s implementation, not it's API.
12011
12012 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
12013
12014         * gtk/gtktreeview.c: fix compiler warning.
12015
12016 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
12017
12018         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
12019         make sure exposed pixbufs are clipped to the exposed area before
12020         drawing, which is a slight speedup. (#102379, patch from Soeren
12021         Sandmann).
12022
12023 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
12024
12025         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
12026         only free scroll_to_path when the complete tree has been validated.
12027         This makes sure that we scrolled to the correct path.
12028
12029 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
12030
12031         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
12032         background of widget->window and bin->window. (Fixes #96650, reported
12033         by Dave Camp).
12034
12035 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
12036
12037         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
12038         updates before scrolling, avoiding a "selection streak". (Fixes
12039         #101235, patch from Soeren Sandmann).
12040
12041 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
12042
12043         * gtk/gtktreeview.c (validate_visible_area): actually put values
12044         in the requisition using gtk_widget_size_request. (Fixes #100172,
12045         reported by Kjartan Maraas).
12046
12047 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
12048
12049         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
12050         arrow animation timeout before we actually reorder the rbtree. If
12051         we don't do this we can get stuck arrows,
12052         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
12053         reported and testcase provided by Hans Petter Jansson).
12054
12055 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
12056
12057         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
12058         anchor_path should be start_path, not end_path. (Fixes #102618,
12059         patch from Carlos Garnacho Parro).
12060
12061 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
12062
12063         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
12064         only correct new_pos if we don't move to the head/tail.
12065
12066 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
12067
12068         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
12069         the parent_iter if depth >= 1, so we send the reordered signal to
12070         the correct level, remove debugging printfs which I forgot the remove
12071         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
12072         testcase provided by Matthew Tuck).
12073
12074 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
12075
12076         * gtk/gtktreeview.c (invalite_last_column): split out actual column
12077         invalidation into invalidate_column(),
12078         (gtk_tree_view_size_allocate_columns): invalidate column if the
12079         new width is larger than the old width.
12080         (fixes #102890, reported by Alex Duggan).
12081
12082 2003-01-14  Matthias Clasen  <maclas@gmx.de>
12083
12084         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
12085         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
12086         GTK_MOVEMENT_WORDS.
12087
12088         * gtk/gtktextiter.c,
12089         gtk/gtktextiter.h: Add some variant movement functions which
12090         skip invisible chars, and do some cleanups.
12091
12092 2003-01-12  Tor Lillqvist  <tml@iki.fi>
12093
12094         Merge from stable:
12095                 
12096         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
12097         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
12098         lookup.
12099
12100         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
12101         gdk.def.
12102
12103         * gdk/gdk.def
12104         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
12105
12106         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
12107         gtk-demo}.exe and share/gtk-2.0.
12108
12109         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
12110         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
12111         window style.
12112         (gdk_window_set_type_hint): Add all cases to the switch (not all
12113         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
12114         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
12115         won't know that the skip_taskbar hint is on for the window, is
12116         this bad?
12117
12118 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
12119
12120         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
12121         <string.h> for strlen.
12122
12123         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
12124         <string.h> for strrchr.
12125
12126         * tests/testgtk.c (create_saved_position): "x" and "y" properties
12127         for widgets no longer exist, use gtk_window_move instead.
12128
12129         * test/testtextbuffer.c (check_get_set_text): cast strlen to
12130         int for g_error.
12131
12132 2003-01-08  Matthias Clasen  <maclas@gmx.de>
12133
12134         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
12135         the selection in the presence of invisible segments.
12136
12137 2003-01-07  Matthias Clasen  <maclas@gmx.de>
12138
12139         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
12140         to "select all" and "unselect all".  (#102065)
12141
12142         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
12143         the just_selected_element is unused.
12144
12145         * gtk/gtktextview.c (extend_selection): New helper function to
12146         find the range that should be added to the selection. 
12147         (selection_motion_event_handler): 
12148         (gtk_text_view_start_selection_drag): 
12149         (gtk_text_view_end_selection_drag): 
12150         (selection_motion_event_handler): 
12151         (selection_scan_timeout): Support select-by-words/lines.
12152         (gtk_text_view_button_press_event): Start a selection drag on
12153         double/triple clicks.  (#78499)
12154
12155 2003-01-06  Matthias Clasen  <maclas@gmx.de>
12156
12157         Implement a utility function proposed in #102534:
12158         
12159         * gtk/gtktextbtree.h: 
12160         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
12161         (_gtk_text_btree_place_cursor): Now a simple wrapper around
12162         _gtk_text_btree_select_range().   
12163
12164         * gtk/gtktextbuffer.h: 
12165         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
12166         (gtk_text_buffer_place_cursor): Now a simple wrapper around
12167         gtk_text_buffer_select_range(). 
12168
12169 2003-01-05  Havoc Pennington  <hp@pobox.com>
12170
12171         * configure.in: fix a stray bracket that was breaking the build
12172
12173 2003-01-05  Tor Lillqvist  <tml@iki.fi>
12174
12175         * gtk-zip.sh.in: Use correct DLL and import library names, with
12176         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
12177         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
12178
12179         * configure.in: Improve check for dimm.h.
12180
12181         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
12182         gdk-pixbuf/Makefile.am.
12183
12184         * gdk-pixbuf/makefile.mingw.in
12185         * gdk-pixbuf/pixops/makefile.mingw.in
12186         * gdk/makefile.mingw.in
12187         * gdk/win32/makefile.mingw.in
12188         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
12189
12190         * gdk-pixbuf/Makefile.am
12191         * gdk-pixbuf/pixops/Makefile.am
12192         * gdk/Makefile.am
12193         * gdk/win32/Makefile.am
12194         * gtk/Makefile.am
12195         * configure.in: Remove makefile.mingw{,.in} from here, too.
12196         
12197         * README.win32: Updates. Don't mention the now removed
12198         makefile.mingw files.
12199
12200         * gdk/gdk.def
12201         * gtk/gtk.def: Add a couple of missing entries.
12202
12203         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
12204
12205         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
12206         earlier.
12207
12208         * gdk/win32/rc/Makefile.am: Add hack to help
12209         build/win32/lt-compile-resource decide which kind of libtool
12210         object file to produce.
12211
12212 2003-01-05  Matthias Clasen  <maclas@gmx.de>
12213
12214         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
12215         C-Down step through the sequence of paragraph ends (old behaviour
12216         included paragraph starts).  (#80340, patch by Narayana Pattipati)
12217
12218         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
12219         Check for a tag toggle at the start iterator before calling
12220         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
12221         Elstner)
12222
12223 2003-01-04  Matthias Clasen  <maclas@gmx.de>
12224
12225         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
12226         and /*< private >*/ as appropriate.  (#97211)
12227
12228 2003-01-04  Tor Lillqvist  <tml@iki.fi>
12229
12230         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
12231         distribute gtk-zip.sh.in.
12232
12233         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
12234
12235 2003-01-03  Havoc Pennington  <hp@pobox.com>
12236
12237         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
12238
12239         * docs/text_widget_internals.txt: add a file documenting some of
12240         the text widget internals
12241
12242 2003-01-02  Matthias Clasen  <maclas@gmx.de>
12243
12244         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
12245         return NULL.  (#102069)
12246
12247 2003-01-01  Matthias Clasen  <maclas@gmx.de>
12248
12249         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
12250         a main() in the library is obviously bad. 
12251
12252 2002-12-27  Matthias Clasen  <maclas@gmx.de>
12253
12254         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
12255         cursor at drop point.  (#72384)
12256         (gtk_text_view_size_allocate): Update the horizontal adjustment
12257         value.  (#75694)
12258
12259 2002-12-25  Matthias Clasen  <maclas@gmx.de>
12260
12261         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
12262         selection wrt. to empty lines.  (#90435, #90582, #91619)
12263
12264         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
12265         Keep the cursor on screen.  (#96929)
12266
12267 2002-12-24  Matthias Clasen  <maclas@gmx.de>
12268
12269         * gtk/gtktextbuffer.c (paste_from_buffer): 
12270         (clipboard_text_received): Let the user action span the insertion
12271         and the deletion of the old selection.  (#82844)
12272
12273 2002-12-23  Matthias Clasen  <maclas@gmx.de>
12274
12275         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
12276         Don't call gtk_text_iter_backward_sentence_start() if
12277         count is zero.  (#99115)
12278
12279         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
12280         move_cursor() even if the cursor hasn't moved, since it has the
12281         side effect of canceling the selection.  (#81395, #98537, #98333)
12282
12283 2002-12-22  Matthias Clasen  <maclas@gmx.de>
12284
12285         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
12286         with empty ranges.  (fixes #101564 and #80637)
12287
12288 2002-12-21  Tor Lillqvist  <tml@iki.fi>
12289
12290         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
12291         sets the window style and extended window style, and adjusts the
12292         width and height to take the window decorations into account
12293         earlier. The adjusted width and height used to be ignored. Remove
12294         the local x, y, width and height variables, no need to further
12295         confuse the code by having local copies. (Partial fix, I hope, for
12296         #101588)
12297
12298         (gdk_window_move): When moving top-level windows, take title bar
12299         and border width into account, offsetting the coordinates before
12300         calling SetWindowPos().
12301
12302         (gdk_window_set_decorations, gdk_window_set_functions):
12303         Reimplement, taking into account the peculiar semantics of
12304         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
12305
12306         (gdk_window_get_decorations): Implement. (#98981)
12307         
12308         (gdk_window_set_type_hint): When setting
12309         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
12310         (#79036)
12311
12312         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
12313
12314 2002-12-21  Matthias Clasen  <maclas@gmx.de>
12315
12316         * gtk/gtktextview.c (gtk_text_view_set_background): New static
12317         function to set the background of all windows.
12318         (gtk_text_view_style_set): Use gtk_text_view_set_background().
12319         (gtk_text_view_state_changed): New function; change background
12320         according to state.  (#88126)
12321
12322 2002-12-21  Havoc Pennington  <hp@pobox.com>
12323
12324         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
12325