]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Just use the file under the cursor; we don't need the logic from
[~andy/gtk] / ChangeLog.pre-2-4
1 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
2
3         * gtk/gtkfilechooserdefault.c (check_preview_change): Just use the
4         file under the cursor; we don't need the logic from
5         GtkFileSelection after all.  Fixes #132255.
6
7 2004-03-25  Federico Mena Quintero  <federico@ximian.com>
8
9         * gtk/gtkfilechooserdefault.c (location_entry_create): Fill the
10         location entry with the display name of the file under the cursor
11         for Open mode, or the typed filename in Save mode.
12
13 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
14
15         * gtk/gtkfilesystemwin32.c
16         (filename_is_root): Bare drive designators (eg., "c:") are
17         no longer considered as root filenames.  Fixed #137942
18
19 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
20
21         * gtk/gtkfilesystemwin32.c
22         (gtk_file_system_win32_create_folder): Invert test for error in
23         mkdir.  Fixes #137945
24
25 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
26
27         Fixed #138004 using Federico's code from #132327.
28
29         * gtk/gtkfilesystemwin32.c (struct _GtkFileSystemWin32): Add a
30         folder_hash field to keep a list of live folder objects.
31         (gtk_file_system_win32_init): Create the folder_hash.
32         (gtk_file_system_win32_finalize): Destroy the folder_hash.
33         (gtk_file_system_win32_get_folder): Ref and return an existing
34         folder if we have it around, otherwise return a new folder object.
35         (struct _GtkFileFolderWin32): Add a field for the parent file system.
36         (gtk_file_folder_win32_finalize): Remove the folder from the file
37         system's hash table.
38         (gtk_file_system_win32_create_folder):  Emit "files-added" on the
39         newly-created folder's parent.  Fixes #138004.
40
41 2004-03-24  J. Ali Harlow  <ali@juiblex.co.uk>
42
43         * gtk/gtkfilesystemwin32.c
44         (gtk_file_system_win32_get_folder): Test that path is actually
45         a directory and throw error if not. Fixed bug #137950
46
47 2004-03-22  J. Ali Harlow  <ali@juiblex.co.uk>
48
49         * gtk/gtkfilesystemwin32.c
50         (gtk_file_system_win32_volume_get_display_name): Ignore empty
51         volume labels; assume that GetVolumeInformation would fail if
52         GetVolumeInformationW does; catches a small memory leak;
53         pass the buffer size to GetVolumeInformationW in wide
54         characters instead of bytes. Fixes bug #137543
55         (list_volumes): Cope with the theoretical possibility of
56         more than 26 logical drives. Fixes bug #137940
57         (bookmarks_serialize): Now actually removes bookmarks.
58         Fixes bug #137943
59
60 2004-03-22  Guntupalli Karunakar  <karunakar@freedomink.org>
61
62         * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
63
64 2004-03-21  Tor Lillqvist  <tml@iki.fi>
65
66         * gtk/gtkfilesystemwin32.c
67         (gtk_file_system_win32_volume_get_base_path): Include the
68         backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
69         NULL for a volume base path, as g_filename_to_uri() requires an
70         absolute path, and just a drive letter and colon isn't. (#137543)
71
72 2004-03-20  Hans Breuer  <hans@breuer.org>
73
74         * gtk/gtkfilesystemwin32.c : applied the undisputable and
75         required [due to recent gtkfilesystem internal api semantic 
76         changes] part of patches to fix bug #137543 (Tor Lillqvist,
77         J. Ali Harlow)
78
79         * gdk/gdkevents-win32.c (handle_configure_event) :
80              (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize
81         GdkWindowObject::x, y with screen coords to make 
82         gdk_window_get_position () return the right thing and thus fix
83         drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
84
85 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
86
87         * Revert the patch to #137520, as 2.4.1 is for conservative bug
88         fixes only.  The patch is attached to the bug report, for
89         reference.
90
91 2004-03-19  Morten Welinder  <terra@gnome.org>
92
93         * gtk/gtkfilechooserdefault.c
94         (gtk_file_chooser_default_set_current_folder): Test existance of
95         the path after checking for locality, if needed.
96
97 2004-03-19  Federico Mena Quintero  <federico@ximian.com>
98
99         Fix #137520.
100
101         * gtk/gtkfilesystem.h (struct _GtkFileFolderIface): Added slots
102         for an ::is_finished_loading() method and a ::finished_loading()
103         signal at the end of the struct.
104
105         * gtk/gtkfilesystem.c (gtk_file_folder_base_init): Create the
106         "finished-loading" signal.
107         (gtk_file_folder_is_finished_loading): New function.
108
109         * gtk/gtkfilesystemunix.c
110         (gtk_file_folder_unix_is_finished_loading): Implement.
111
112         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModelClass): New
113         slot for a "finished-loading" signal.
114         (gtk_file_system_model_class_init): Create the "finished-loading"
115         signal.
116         (struct _GtkFileSystemModel): New field
117         idle_finished_loading_source.  We emit the "finished-loading"
118         signal in an idle if the root folder was done loading right in
119         _gtk_file_system_model_new(), so that the caller has a chance to
120         connect to the signal.
121         (_gtk_file_system_model_new): Connect to the normal signals of the
122         folder even if the initial _list_children() fails.  Also, see if
123         the folder is finished loading; connect to the "finished-loading"
124         signal otherwise.
125         (gtk_file_system_model_finalize): Remove the idle handler.
126
127         * gtk/gtkfilechooserdefault.c (set_list_model): Set a busy cursor
128         and connect to the model's "finished-loading" signal.
129         (get_toplevel): New helper function.
130         (error_message): Use get_toplevel().
131         (trap_activate_cb): Likewise.
132         (location_popup_handler): Likewise.
133         (set_busy_cursor): New function.
134         (browse_files_model_finished_loading_cb): New callback.
135
136 Thu Mar 18 12:10:45 2004  Owen Taylor  <otaylor@redhat.com>
137
138         * gtk/gtktreeitem.c (gtk_tree_item_forall): Include 
139         eventbox for expander. (#137564, reported by
140         Jacques Garrigue)
141
142 2004-03-18  Guntupalli Karunakar  <karunakar@freedomink.org>
143
144         * mr.po: Added "mr" for Marathi to ALL_LINGUAS.
145
146 2004-03-17  Morten Welinder  <terra@gnome.org>
147
148         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free
149         volumes not actually put into the shortcut list.
150
151         * tests/prop-editor.c (object_changed): Plug leak.
152
153         * tests/testfilechooser.c (main): Plug some leaks and expose
154         others.
155
156         * tests/prop-editor.c (create_prop_editor): Don't leak the tooltip
157         object.  Fixed #136652.
158
159         * gtk/gtkfilechooserdefault.c (check_icon_theme): Do nothing if we
160         have no screen.  Fixes #137260.
161         (shortcuts_add_bookmark_from_path): Simplify using check_is_folder
162         thereby fixing leak.  Fixes #137259.
163
164         * gtk/gtkpathbar.c (gtk_path_bar_forall): Make this work when the
165         slider buttons have been destroyed.
166         (gtk_path_bar_remove): Make this work for slider buttons too.
167         Fixes #137257
168
169 2004-03-15  Morten Welinder  <terra@gnome.org>
170
171         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
172         Sanitize and plug leak.
173         (check_icon_theme): Only do something if the widget has a screen.
174
175 Wed Mar 17 01:20:28 2004  Matthias Clasen  <maclas@gmx.de>
176
177         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
178         Move the repositioning logic from _gtk_entry_completion() popup
179         over here. Fixes #137355, reported by Niklas Knutsson.
180
181 Tue Mar 16 13:29:58 2004  Owen Taylor  <otaylor@redhat.com>
182
183         * === Released 2.4.0 ===
184
185         * configure.in: Version 2.4.0, interface age 0; 
186         require glib-2.4.0, pango-1.4.0.
187
188         * configure.in: Change gtk_binary_version to 2.4.0;
189         there are some compatibility issues with older theme engines.
190         
191         * NEWS: Updates
192
193         * README.in: Updates
194
195 Tue Mar 16 13:54:07 2004  Jonathan Blandford  <jrb@redhat.com>
196
197         * gtk/gtkentry.c (gtk_entry_completion_key_press): Block the
198         ::changed handler during the ::match-selected when done by
199         keyboard.
200
201 Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
202
203         * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
204         Block the ::changed handler during the emission of ::match-selected.
205         Partial fix for #137226.
206
207         * gtk/gtkfilechooserentry.c: Remove the no longer needed 
208         no_pop_down flag.
209
210 Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
211
212         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
213         Fix a typo in the docs.
214
215 2004-03-15  Tor Lillqvist  <tml@iki.fi>
216
217         * README.win32: Updates.
218
219 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
220
221         * gtk/gtkfilechooserdefault.c (update_appearance): Only hide the
222         "create folder" button in OPEN mode; all the others should show it
223         it.
224         (get_paths_foreach): Handle the editable row.
225
226         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder):
227         Force a re-get of the folder so that the new directory gets added
228         to its hash table of file info.
229
230 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
231
232         * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
233         modes, set the Name entry of the file chooser if we get a
234         nonexistent filename from the file entry.  Fixes #135911.
235         (gtk_file_chooser_default_set_current_name): Oops, this should
236         also work if we are in CREATE_FOLDER mode.
237
238         * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
239         gtk_file_path_copy().
240
241         * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
242         path that we got from the model.
243         (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
244         hard-coded constant.
245
246 Mon Mar 15 13:50:14 2004  Owen Taylor  <otaylor@redhat.com>
247
248         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
249         Don't leak the temporary font description. (Nils O. SelĂ„sdal)
250
251 Mon Mar 15 12:51:17 2004  Jonathan Blandford  <jrb@gnome.org>
252
253         * gtk/gtkfilechooserdefault.c (location_popup_handler): Only show
254         the title string in OPEN/SELECT_FOLDER mode as it's open-specific.
255         Put a blank title for SAVE/CREATE_FOLDER; we are in string freeze,
256         so we'll fix it for 2.4.1 as #137272.
257
258         * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): calculate
259         space_available correctly for RTL mode.  w/o this, you can't
260         scroll down again.  Fixes #137021.
261
262 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
263
264         * gtk/gtkpathbar.c (gtk_path_bar_scroll_up): Queue a resize.
265         (gtk_path_bar_scroll_down): Likewise.
266
267 Mon Mar 15 11:40:43 2004  Owen Taylor  <otaylor@redhat.com>
268
269         * gtk/gtkfilechooserentry.c: Store the position of the 
270         file part and use that in check_completion_callback()
271         and match_selected_callback() to figure out where
272         to operate on the text, rather than recomputing the
273         information.
274
275 Mon Mar 15 10:35:19 2004  Jonathan Blandford  <jrb@gnome.org>
276
277         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): set
278         changing_folders to be true so we don't trigger a callback when we
279         remove the selection
280         (shortcuts_add_bookmarks): ditto
281
282 Mon Mar 15 10:47:18 2004  Owen Taylor  <otaylor@redhat.com>
283
284         * gtk/gtkfilechooserentry.c: s/seperator/separator/.
285
286 Mon Mar 15 09:54:36 2004  Owen Taylor  <otaylor@redhat.com>
287
288         * gtk/gtklabel.c (gtk_label_focus): Check for 
289         Control-Tab or Control-Shift-Tab, not any Control-key
290         as a current event ... handles the case where a dialog
291         is triggered from a control accelerator better.
292
293 Mon Mar 15 08:48:48 2004  Jonathan Blandford  <jrb@gnome.org>
294
295         * gtk/gtkfilechooserentry.c (match_selected_callback): implement
296         correctly.
297         (completion_match_func): Allow surpressing popdowns.
298         (maybe_append_seperator_to_path): New function to add a separator
299         item to a display_name.  Bad hack.
300         (check_completion_callback): Implement select-ahead as an idle.
301         (add_completion_idle): new function to handle select-ahead
302         (gtk_file_chooser_entry_do_insert_text): starf the select-ahead
303         idle.
304         (gtk_file_chooser_entry_focus): Override tab for completion.
305         (gtk_file_chooser_entry_activate): commit select_ahead when
306         activated.
307
308         * gtk/gtkfilechooserdefault.c (location_popup_handler): grab the
309         appropriate widget for the mode.
310
311 2004-03-15  Tor Lillqvist  <tml@iki.fi>
312
313         * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole
314         GdkGCWin32 with a single assignment, that overwrites GObject's
315         private data (for instance ref_count). (#137012, John Ehresman)
316
317 2004-03-15  Mark McLoughlin  <mark@skynet.ie>
318
319         * gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
320         GtkFileChooserDefault member. Leftover from my original patch
321         for bug #136987.
322
323 Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
324
325         * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
326         API more correctly.  Now pops down the dropdown well.
327
328         * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
329         FilePath.
330
331         * test/testfilechooser.c: disable preview widget temporarily.
332         It's not representative of a good preview widget.
333
334 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
335
336         * gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
337         Renamed from shortcuts_unselect_all(); now selects the row that
338         corresponds to the current folder, if any.  Fixes #135916.
339
340         * gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
341         _gtk_path_bar_down().
342
343 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
344
345         * gtk/gtkfilechooserdefault.c: Surround the
346         drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
347         too unstable right now.
348
349 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
350
351         * gtk/gtkfilechooserdefault.c: Implement local_only by
352         filtering the shortcuts and bookmarks list by 
353         gtk_file_system_path_to_filename (file_system, path) != NULL.
354         (#132894)
355
356         * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
357         a convenience function, may by interesting to push to the 
358         file system vtable later for performance.
359
360 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
361
362         * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
363         to be NULL, so that people can ask for information about a
364         parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
365
366         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
367         the condition describe above.
368
369         * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
370         information of root paths.
371
372         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
373
374 Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
375
376         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
377         GtkTreeViewSearchEqualFunc return value oddity here as well.
378
379         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
380         to get a string to compare to, return TRUE (no match), not 
381         FALSE (match). Handle %NULL string values gracefully.
382         Remove unused variable. (#135962, Mark McLoughlin)
383
384 2004-03-14  Morten Welinder  <terra@gnome.org>
385
386         * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
387
388 Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
389
390         * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
391         _gtk_path_bar_down().
392
393         * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
394         _gtk_path_bar_down() as bindings for Alt-Up
395         and new Alt-Down. (Partly based on a patch by
396         Mark McLoughlin, #136987)
397
398 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
399
400         Fixes #136185, patch by Morten Welinder, with some changes.
401
402         * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
403         (shortcuts_insert_path): Check the path first with check_is_folder().
404         (gtk_file_chooser_default_set_current_folder): Likewise.
405         (gtk_file_chooser_default_add_shortcut_folder): Likewise.
406         (browse_widgets_create): Unref the size group.
407
408         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
409         Handle the case where the file exists but it is not a directory.
410         (IconType): Add value for ICON_UNDECIDED.
411         (struct stat_info_entry): New structure to hold a file's struct
412         stat, its MIME type and its icon type.
413         (struct _GtkFileFolderUnix): Added a hash of struct
414         stat_info_entry, and flags to remember which info types we've read
415         so far.
416         (get_icon_type): Use a helper function for the icons-from-stat
417         types.
418         (gtk_file_system_unix_render_icon): Use the cached file info.
419         (gtk_file_folder_unix_get_info): Put the info in the cache.
420         (gtk_file_system_unix_get_folder): Create the cache of file info
421         structures.
422
423         * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
424         case where display_name is the same as the existing
425         info->display_name.
426
427 Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
428
429         #136672, reported by Christian Persch; fixes based
430         on a patch by Soeren Sandmann.
431
432         * gtk/gtkmenu.c: Change the handling of mixed gridded
433         and non-gridded menu items; the old method was causing
434         major performance problems even with the "avoid relayout
435         on destruction" hack put in recently.
436
437         Now we first lay out the gridded items and then put the 
438         non-gridded items into empty rows / after the gridded items. 
439         Layout is done in a central menu_shell_ensure_layout(). Also
440         avoid emitting property notifications when we initially
441         insert or attach items.
442         
443         * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
444         unused menu_shell->menu_flag, and document it as unused
445         in the header.
446
447         * tests/testactions.c: Add a test of creating/removing
448         lots of items.
449
450         * test/testgtk.c: Add some more cruft to the menu test.
451
452 Mon Mar 15 02:36:07 2004  Matthias Clasen  <maclas@gmx.de>
453
454         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
455         some signal docs.
456
457 Sun Mar 14 15:38:39 2004  Jonathan Blandford  <jrb@gnome.org>
458
459         * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
460         always use the match_func, even if text_column is set.
461
462 2004-03-14  Morten Welinder  <terra@gnome.org>
463
464         * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
465         "".
466         (gtk_file_system_unix_get_folder): Use the same value for lookup
467         as for insertion.  Make sure we have a directory.
468
469         * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
470         path; don't crash on NULL error.
471
472 2004-03-14  Hans Breuer  <hans@breuer.org>
473
474         gtk/gtkcombobox.c : prototype cell_view_sync_cells() before 
475         first usage
476
477         gtk/makefile.msc.in : updated 'gtk_public_h_sources'
478
479         tests/makefile.msc : added testspinbutton
480
481 Sun Mar 14 01:01:18 2004  Matthias Clasen  <maclas@gmx.de>
482
483         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
484         this function with gtk_tree_view_column_set_cell_data();
485         call the cell data func after setting the attributes.
486
487 Sun Mar 14 01:00:08 2004  Matthias Clasen  <maclas@gmx.de>
488
489         * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
490         make sure not to call gtk_cell_view_set_cell_data() when
491         displayed_row is NULL.
492
493 Sat Mar 13 18:13:13 2004  Owen Taylor  <otaylor@redhat.com>
494
495         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
496         wrapping, do the offset of the line for justification ourselves.
497         (#120256, Felipe Heidrich)
498
499 Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>
500
501         * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
502         model-less use of GtkCellView shown in testcombo.c.
503
504 2004-03-13  Tor Lillqvist  <tml@iki.fi>
505
506         * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
507         when compiling with gcc. Mingw's headers do have the required
508         definitions.
509
510         * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
511         filled polygons, don't draw the outline, similarily as
512         draw_rectangle(). Apparently GTK and GIMP don't use
513         gdk_draw_polygon() much (or always draw the outline, too), as this
514         has gone undetected for so long. Thanks to Bruce Hochstetler.
515
516 Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
517
518         * gtk/gtkwindow.c (gtk_window_destroy): Remove
519         the window from the toplevel_list here rather in destroy.
520         While this is theoretically speaking wrong, it fits
521         in better with the current reality that destroyed
522         widgets are not reusable. (#126808, Michael Natterer)
523
524 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
525
526         * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
527         beyond clearing to the background if there is no active row.
528         (#137066, reported by Owen Taylor)
529
530 Sat Mar 13 21:37:44 2004  Matthias Clasen  <maclas@gmx.de>
531
532         * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
533         list when an item is selected via the keyboard.
534
535 2004-03-13  Anders Carlsson  <andersca@gnome.org>
536
537         * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
538         (gtk_file_system_unix_get_folder),
539         (gtk_file_system_unix_create_folder), (get_parent_dir),
540         (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
541         Remove trailing slashes in path names.
542         
543 Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
544
545         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
546         this a total no-op when the new or old parent is
547         destroyed. (#134230, patch from Soeren Sandmann)
548
549         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
550         For foreign windows in our heirarchy, call
551         _gdk_windowing_window_destroy_foreign (window) and skip
552         all the normal destruction logic.
553
554         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
555         Move code to request destruction of a foreign window
556         code into a separate _gdk_windowing_window_destroy_foreign().
557
558         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
559         Call GDK_WINDOW_DISPLAY() on the wrapper not on the
560         impl. (Also from Soeren's patch)
561
562 Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
563
564         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
565         GTK_IS_PLUG toplevels, call gdk_window_get_origin() 
566         not gtk_window_get_position, as a hackround for not
567         having accurate notification of window position for
568         embedded windows. (#136112, Dan Winship)
569
570 Sat Mar 13 10:34:03 2004  Owen Taylor  <otaylor@redhat.com>
571
572         * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
573         it causes problems for pastes from other applications; see
574         comments in bugzilla for #81880.
575
576 Sat Mar 13 02:55:51 2004  Matthias Clasen  <maclas@gmx.de>
577
578         Fix middle button pasting in the TextView  (#81880, reported
579         by Evert Verhellen, patch by Paolo Borelli):
580         
581         * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve 
582         the insert mark and move the cursor to it making sure of also 
583         scroll the window if needed.
584         
585         * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
586         to the insertion point.
587
588 Sat Mar 13 01:38:55 2004  Matthias Clasen  <maclas@gmx.de>
589
590         * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove 
591         implemenatation which restores the cell_view when the custom 
592         child is removed.  (#136555, Owen Taylor)
593
594 Sat Mar 13 00:07:51 2004  Matthias Clasen  <maclas@gmx.de>
595
596         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear): 
597         Keep the cell_list in a consistent state while iterating over it, 
598         since clear_attributes() also iterates over it.  (another instance
599         of #136585, Morten Welinder)
600         
601 Fri Mar 12 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
602
603         * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
604         and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
605         Semion Chichelnitsky)
606
607         * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed 
608         gtk_toolbar_direction-changed handlers and explicit
609         flipping of GtkArrow widgets.
610
611 Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
612
613         * gtk/gtkfilechooserdialog.c
614         (file_chooser_widget_default_realized_size_changed): Clamp the
615         new size to the screen.
616
617 Fri Mar 12 15:06:44 2004  Owen Taylor  <otaylor@redhat.com>
618
619         * gtk/gtkexpander.c (gtk_expander_realize): Create the
620         event_window at the right size using the same logic as
621         in size_allocate. (#136994, Niklas Knuttson)
622
623 2004-03-12  Federico Mena Quintero  <federico@ximian.com>
624
625         * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
626         return value of gtk_widget_activate().
627         (gtk_window_activate_default): Likewise.  Fixes #137008.
628
629         * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
630         response IDs we recognize, rather than bailing out on cancellation
631         ones.  Fixes #136237; patch by Olivier Andrieu
632         <oliv__a@users.sourceforge.net>.
633         (file_chooser_widget_file_activated): If the dialog doesn't have a
634         default widget, try to find a suitable response widget on our own.
635         People should *really* be using gtk_dialog_set_default_response(),
636         but this is to help lazy programmers.
637
638         * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
639         internal function.
640         (get_response_data): Add a "create" argument so that we don't
641         unconditionally create the response data.
642
643 2004-03-12  Morten Welinder  <terra@gnome.org>
644
645         * tests/Makefile.am: Add new testspinbutton.c
646
647 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
648
649         * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
650         Put the trash icon on the right for LTR locales, or on the left
651         for RTL.
652         (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
653         (shortcuts_drag_leave_cb): Test whether the idle is present.
654         (shortcuts_drag_data_received_cb): Ahem, don't assert here.
655
656 Thu Mar 11 17:51:10 2004  Owen Taylor  <otaylor@redhat.com>
657
658         * modules/input/gtkimcontextxim.c (preedit_done_callback):
659         Clear preedit string and emit preedit_changed as needed
660         on AIX. (#130617, Philip K Warren)
661
662 2004-03-11  Morten Welinder  <terra@gnome.org>
663
664         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
665
666 Thu Mar 11 16:28:15 2004  Owen Taylor  <otaylor@redhat.com>
667
668         * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
669         type. (#136919, Tim Mooney)
670
671 Thu Mar 11 16:18:51 2004  Jonathan Blandford  <jrb@redhat.com>
672
673         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
674         earlier change to insert_path so that we test that the directory
675         exists.
676
677         * gtk/gtkfilechooserdialog.c
678         (gtk_file_chooser_dialog_constructor): move focus.
679
680 Thu Mar 11 22:12:14 2004  Matthias Clasen  <maclas@gmx.de>
681
682         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
683         logic as GtkEntry when calculating border width.  (#116368, reported
684         by Morten Welinder)
685
686 Thu Mar 11 15:59:05 2004  Owen Taylor  <otaylor@redhat.com>
687
688         * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
689         rather than gtk_widget_set_size_request().
690
691 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
692
693         * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
694         function, copied from gtkpathbar.c.
695         (gtk_file_chooser_default_dispose): Use remove_settings_signal()
696         rather than our own code.
697         (gtk_file_chooser_default_screen_changed): Use
698         remove_settings_signal(); this should handle per-screen settings
699         correctly.
700
701 Thu Mar 11 14:07:18 2004  Owen Taylor  <otaylor@redhat.com>
702
703         * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
704         value.
705
706 Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
707
708         * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
709         put-labels-into-the-standard-focus-chain patches 
710         from bug #59707.
711
712         * gtk/gtklabel.c (gtk_label_focus): Only put the
713         label in the tab chain when the control key is pressed.
714
715 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
716
717         * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
718         single OK button, not a Close button, as per the HIG.
719
720         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
721
722 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
723
724         * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
725         initialize "action" before jumping.  Fixes #136900.
726
727 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
728
729         * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
730         application properties. Fixes bug #136802.
731
732 2004-03-11  Dov Grobgeld  <dov@imagic.weizmann.ac.il>
733
734         * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
735         call to gtk_text_layout_update_cursor_line() to solve in 
736         problem of switching keyboard direction at widget creation:
737         bug #136680
738
739 Thu Mar 11 10:28:30 2004  Owen Taylor  <otaylor@redhat.com>
740
741         * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
742         stray 'return' statement. (#136855, David L. Cooper II)
743
744 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
745
746         * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
747         fg color for drawing the expander when prelit. Fixes problem
748         with the HighContrast theme: bug #136789.
749
750 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
751
752         Fix #135912 and #135913.
753
754         * gtk/gtkfilechooserdefault.c
755         (shortcuts_filter_model_row_draggable): Implement.
756         (shortcuts_model_filter_new): New function, create a
757         ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
758         we can implement our own DnD interface methods.
759         (shortcuts_model_create): Use shortcuts_model_filter_new().
760         (shortcuts_list_create): Enable the shortcuts list as a drag
761         source.
762         (file_list_source_targets): Renamed from shortcuts_targets.
763         (shortcuts_list_create): Change the options for
764         gtk_drag_dest_set().  Connect to more drag signals so that we can
765         implement drops by hand.
766         (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
767         (shortcuts_drag_motion_cb): New handler; validate the drop.
768         (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
769         (shortcuts_drag_drop_cb): New handler; just stop the emission and
770         remove the idle handler for the drag cursor.
771         (shortcuts_add_bookmark_from_path): Add a position argument,
772         return a boolean success code.
773         (shortcuts_drag_data_received_cb): Handle two cases:  1) Insert
774         the bookmarks at the proper position, rather than always appending
775         them to the list; 2) alternatively, reorder the bookmarks.
776         (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
777         (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
778         (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
779         an idle handler.
780         (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
781
782 Thu Mar 11 01:08:25 2004  Jonathan Blandford  <jrb@gnome.org>
783
784         * gtk/gtkfilechooserdefault.c (location_entry_create): up the
785         width of the entry a tad.
786
787         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
788         gtk_entry_completion_selection_changed.  Also, unref the
789         completion as we were leaking a reference to it.
790
791 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
792
793         * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon.  Thanks to
794         Kjartan Maraas for pointing it out.
795
796 Wed Mar 10 23:40:15 2004  Matthias Clasen  <maclas@gmx.de>
797
798         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
799         background on the action view cell renderer here, not in init, so 
800         that a) we catch style changes, and b) we get the real style, not 
801         the default one. Partial fix for #127648, reported by Dave Bordoley.
802
803 2004-03-10  Tor Lillqvist  <tml@iki.fi>
804
805         * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
806         the pointer button bits. (#136636, Dave Neary)
807
808         * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
809         transparent (input only) windows using SetWindowPos(). (#132331,
810         John Ehresman)
811
812         (gdk_window_set_type_hint): For splash screens, remove the resize
813         handles, menu, and minimize/maximize/close buttons. (#132896)
814
815 Wed Mar 10 22:30:23 2004  Matthias Clasen  <maclas@gmx.de>
816
817         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
818         cell_list in a consistent state while iterating over it, since
819         clear_attributes() also iterates over it.  (#136585, Morten Welinder)
820
821 2004-03-10  Mark McLoughlin  <mark@skynet.ie>
822
823         * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
824         the expose to the label. The expose handler for GtkContainer
825         already does that. Fixes bug #136719. Reported by Dennis
826         Cranston, exact cause nailed down by Owen.
827
828 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
829
830         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
831         untranslatable "%x" for dates, rather than a custom format.  Fixes
832         #136357.
833
834 2004-03-10  Morten Welinder  <terra@gnome.org>
835
836         * gtk/gtkfilechooserdefault.c
837         (gtk_file_chooser_default_add_shortcut_folder): Test validity of
838         path here.
839         (shortcuts_insert_path): Don't check here.
840         (get_file_info): Barf if name-only fails.
841
842         * tests/testfilechooser.c (main): Add support for --multiple.
843
844 Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
845
846         * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
847         (remove_settings_signal), (gtk_path_bar_dispose),
848         (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
849         (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
850         (settings_notify_cb), (gtk_path_bar_check_icon_theme),
851         (get_button_image), (gtk_path_bar_update_button_appearance),
852         (make_directory_button), (gtk_path_bar_check_parent_path): Support
853         changes in icon themes.
854
855         * gtk/gtkpathbar.h: add two elements
856
857         * tests/testfilechooser.c: (main): use gnome-vfs method again to
858         get more testing.
859
860 Wed Mar 10 01:17:40 2004  Jonathan Blandford  <jrb@gnome.org>
861
862         * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes.  We
863         don't have any more untranlated strings in the dialog.
864
865 Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>
866
867         * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
868         the pathname for UTF-8 safety.
869
870 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
871
872         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
873         check to see if the shortcuts exists.  We don't want to put
874         invalid dirs in the shortcuts pane.
875
876 Tue Mar  9 16:40:34 2004  Jonathan Blandford  <jrb@gnome.org>
877
878         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
879         remove unneeded shortuts_swin;
880
881 Wed Mar 10 01:49:27 2004  Matthias Clasen  <maclas@gmx.de>
882
883         Fix #136614 in a better way:
884         
885         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
886         * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
887         * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
888         * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
889         alignment if priv->align_set is set.
890         * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
891
892 Wed Mar 10 01:21:05 2004  Matthias Clasen  <maclas@gmx.de>
893
894         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
895         grid mode popups left aligned, not right aligned.
896
897 Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
898
899         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
900         the label that is reparented from the menuitem.  (#136614, Dennis
901         Cranston)
902
903 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
904
905         * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
906         information about a button in a struct instead of ugly
907         g_object_set_data.
908         (gtk_path_bar_size_request): Use ButtonData.
909         (gtk_path_bar_update_slider_buttons): ditto
910         (gtk_path_bar_size_allocate): ditto
911         (gtk_path_bar_remove): ditto
912         (gtk_path_bar_forall): ditto
913         (gtk_path_bar_scroll_down): ditto
914         (gtk_path_bar_clear_buttons): ditto
915         (button_clicked_cb): ditto.  Also, add an ignore_changes variable
916         (button_data_free): destroy ButtonData
917         (update_button_appearance): Use ButtonData
918         (make_directory_button): ditto
919         (gtk_path_bar_check_parent_path): ditto
920         (_gtk_path_bar_set_path): ditto
921
922 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
923
924         Fix #136533.
925
926         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
927         function.
928         (check_icon_theme): New helper function, installs a handler for
929         changes in the icon theme.
930         (gtk_file_chooser_default_style_set): Use check_icon_theme().
931         (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
932         (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
933         (change_icon_theme): New function, updates impl->icon_size and
934         reloads the icons.
935         (struct _GtkFileChooserDefault): New field settings_signal_id.
936         (struct _GtkFileChooserDefault): New field icon_size.
937         (shortcuts_insert_path): Use impl->icon_size.
938         (list_icon_data_func): Likewise.
939
940 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
941
942         * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
943         parent_path being NULL.  Fixes #136662.
944
945 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
946
947         * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
948         Stop the emission so that GtkTreeView's handler won't try to poke
949         the filter model.  Fixes #136127.
950
951 Tue Mar  9 13:49:14 2004  Owen Taylor  <otaylor@redhat.com>
952
953         * gtk/gtkstyle.c (gtk_paint_polygon): Fix 
954         g_return_if_fail() that was checking draw_shadow.
955         (#136669, Morten Welinder)
956
957 Tue Mar  9 09:57:25 2004  Owen Taylor  <otaylor@redhat.com>
958
959         * === Released 2.3.6 ===
960
961         * configure.in: Version 2.3.6, interface age 0.
962
963         * NEWS: Updates
964
965 Tue Mar  9 11:01:45 2004  Jonathan Blandford  <jrb@gnome.org>
966
967         * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
968         icon.  Reported by Michael Natterer <mitch@gimp.org>.
969
970 2004-03-09  Morten Welinder  <terra@gnome.org>
971
972         * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
973
974 Tue Mar  9 02:11:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
975
976         * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
977         (struct _GtkMenuPrivate): Add boolean destroying
978         (gtk_menu_destroy): Set priv->destroying
979         (gtk_menu_remove): don't update the table information when the
980         menu is being destroyed.
981
982         * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
983
984         * gtk/gtktoolbar.[ch]: Some formatting fixes
985
986 Tue Mar  9 01:25:10 2004  Matthias Clasen  <maclas@gmx.de>
987
988         * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
989
990 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
991
992         Fixes #136080.
993
994         * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
995         ENOENT.
996         (filename_get_info): Likewise.
997
998 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
999
1000         * gtk/gtkfilechooserdefault.c
1001         (gtk_file_chooser_default_initial_focus): Use
1002         gtk_tree_view_set_cursor().
1003
1004 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1005
1006         Patch "1a" from #136185, by Morten Welinder.
1007
1008         * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
1009         that says whether the caller just wants the display name.
1010         (shortcuts_insert_path): We only want the name in the call to
1011         get_file_info().
1012
1013         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
1014         info than needed from the file_folder.
1015
1016 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1017
1018         Fixes #136105.
1019
1020         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1021         Added an ::initial_focus() method.
1022
1023         * gtk/gtkfilechooserembed.c
1024         (_gtk_file_chooser_embed_delegate_iface_init): Set the
1025         initial_focus method.
1026         (delegate_initial_focus): Implement.
1027         (_gtk_file_chooser_embed_initial_focus): New function.
1028
1029         * gtk/gtkfilechooserdialog.c
1030         (gtk_file_chooser_dialog_constructor): Call
1031         _gtk_file_chooser_embed_initial_focus().
1032
1033         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
1034         Install the ::initial_focus() handler.
1035         (gtk_file_chooser_default_initial_focus): Implement.
1036
1037 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
1038
1039         * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
1040         boolean success code.
1041         (location_popup_handler): Refocus the file chooser if appropriate.
1042         Fixes #135905.
1043         (save_widgets_create): Don't set the text of the save_folder_label
1044         here.
1045         (update_appearance): Set the text here as appropriate for the save
1046         mode.  Also fixes #136387.
1047         (update_appearance): Don't show the Create Folder button in
1048         SELECT_FOLDER mode.
1049         (update_appearance): Show the extra widget in all Save modes
1050         correctly.
1051
1052 Mon Mar  8 11:57:27 2004  Owen Taylor  <otaylor@redhat.com>
1053
1054         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
1055         call g_signal_handler_disonnect() if priv->model is
1056         NULL. (#136551, Damon Chaplin)
1057
1058         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1059         Back out code to set the active item when the first
1060         item is added to the model; this causes problems for
1061         GtkComboBoxText. (#136535)
1062
1063         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
1064         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
1065         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1066         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): 
1067         Remove calls to gtk_combo_box_unset_model.
1068
1069         * gtk/gtkcombobox.c (gtk_combo_box_check_appearance): 
1070         Clean up handling of wrap->width > 0.
1071
1072         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
1073         switch list/menu mode here.
1074
1075         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
1076         against the same model being set back.
1077
1078         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
1079         gtk_combo_box_menu_fill() rather than duplicating
1080         a large chunk of code.
1081
1082 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1083
1084         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): 
1085         If max_depth is 0 then we have a list.
1086
1087 2004-03-08  Morten Welinder  <terra@gnome.org>
1088
1089         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
1090         widget unchanged.  Explicitly verify final directory.
1091
1092         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
1093         get_icon_type, filename_get_info): Protect errno.
1094
1095 2004-03-08  Marco Pesenti Gritti  <marco@gnome.org>
1096
1097         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
1098
1099         When an action is selected stop the event to be propagated
1100         otherwise the activate signal is emitted too. (Bug #133394)
1101
1102 Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
1103
1104         * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
1105         consolidate creating the path_bar.
1106         (gtk_file_chooser_default_set_current_folder): no longer need to
1107         pass in the filesystem.
1108
1109         * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
1110         of just setting the filesystem.
1111
1112         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
1113         home_dir.
1114         (get_button_image): Add images to path_bar.
1115         (update_button_appearance): use images
1116         (make_directory_button): Clasify buttons based upon location.
1117         (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
1118         rerooting, #135845, #135914
1119
1120         * tests/testfilechooser.c: Fix reused error handling.
1121
1122 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1123
1124         * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
1125         (gtk_file_system_unix_render_icon):
1126         Use better icons for home and desktop.
1127
1128 2004-03-08  Anders Carlsson  <andersca@gnome.org>
1129
1130         * gtk/gtkfilechooserentry.c:
1131         (_gtk_file_chooser_entry_set_base_folder):
1132         Set the base folder path in the entry.
1133         
1134 2004-03-08  Christian Neumair  <chris@gnome-de.org>
1135
1136         * tests/testentrycompletion.c: Fix typo.
1137
1138 2004-03-08  Tor Lillqvist  <tml@iki.fi>
1139
1140         * README.win32: Update.
1141
1142         * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
1143
1144         * tests/testfilechooser.c: Correct localtime_r() emulation on
1145         Win32. Remove a couple of unnecessary Win32-only includes.
1146
1147 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
1148
1149         * tests/testentrycompletion.c: Test dynamic addition/removal. 
1150
1151 Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
1152
1153         * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not 
1154         xthickness in the calculation of vertical dimensions.
1155
1156 Sun Mar  7 17:38:03 2004  Jonathan Blandford  <jrb@gnome.org>
1157
1158         * gtk/gtkbutton.c (gtk_button_class_init): actually use
1159         gtk_button_add.
1160
1161         * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
1162         use the uri, not the path, #136317
1163         (renderer_edited_cb): ditto
1164         (shortcuts_add_bookmark_from_path): ditto
1165         (remove_bookmark_button_clicked_cb): ditto
1166         (gtk_file_chooser_default_remove_shortcut): ditto
1167         (update_from_entry): ditto
1168         (up_folder_handler): ditto
1169
1170 Sun Mar  7 16:07:08 2004  Jonathan Blandford  <jrb@gnome.org>
1171
1172         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
1173         redraw_on_allocate, #135902.
1174
1175         * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
1176         Damon Chaplin to set a node to be visible before emitting the
1177         inserted signal, #135555.
1178
1179 Sun Mar  7 22:24:28 2004  Matthias Clasen  <maclas@gmx.de>
1180
1181         * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
1182         height calculation.
1183
1184 Sun Mar  7 14:34:04 2004  Jonathan Blandford  <jrb@gnome.org>
1185
1186         Fixes #121500.
1187
1188         * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
1189         from unselecting rows when pressed in multiple-selection mode.
1190
1191 2004-03-07  Hans Breuer  <hans@breuer.org>
1192
1193         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
1194         some more settings from system, also reflect some name changes
1195         done a while ago in the x11 backend
1196
1197         * gdk/win32/makefile.msc : build gdkspawn-win32.c
1198
1199         * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
1200
1201         * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
1202
1203         * tests/makefile.msc : some more tests get build
1204
1205 Sun Mar  7 03:03:57 2004  Jonathan Blandford  <jrb@gnome.org>
1206
1207         * gtk/gtkfilechooserdefault.c
1208         (gtk_file_chooser_default_get_paths): if action is
1209         SELECT_FOLDER, then return the currentd folder if none is
1210         selected.
1211         (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
1212         no directory is selected in SELECT_FOLDER mode.
1213
1214 Sat Mar  6 23:31:18 2004  Jonathan Blandford  <jrb@gnome.org>
1215
1216         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1217         remove unneeded elements.
1218         (tree_selection_changed): removed
1219         (tree_name_data_func): removed
1220         (gtk_file_chooser_default_finalize): don't unref dir model
1221         (create_folder_tree): removed
1222         (get_selection): no longer need to abstract away the selection
1223         function.
1224         (create_file_list): We now create a tree for all actions.
1225         (file_pane_create): Make one tree.
1226         (update_appearance) We really change the mode only, now.
1227
1228 Sun Mar  7 02:38:00 2004  Matthias Clasen  <maclas@gmx.de>
1229
1230         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a 
1231         size_request on the button and cell_view_frame, otherwise
1232         their style will still be the default here in the initial 
1233         size_request. (#136301, Mark McLoughlin)
1234
1235 2004-03-06  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
1236
1237         * gtk/gtktoolbar.c (internal_insert_element): Check return value
1238         of gtk_stock_lookup; if stock lookup fails, just use stock_id as
1239         label, instead of crashing. Fixes #136202.
1240
1241 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1242
1243         * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
1244         include.
1245         * gdk/linux-fb/gdkwindow-fb.c: Likewise.
1246         * gdk/linux-fb/gdkinput.c: Likewise.
1247
1248 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1249
1250         Fixes #136082 and #135265, patch by Morten Welinder.
1251
1252         * configure.in: Use AC_SYS_LARGEFILE.
1253
1254         * */*.c: #include <config.h>
1255
1256 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1257
1258         * gtk/gtkfilechooserdefault.c
1259         (gtk_file_chooser_default_select_path): No need to have a
1260         temporary error variable.
1261
1262 2004-03-05  Tor Lillqvist  <tml@iki.fi>
1263
1264         * configure.in: Move check for native Win32 (mingw) a bit
1265         earlier. If Win32, disable static builds (as in GLib). Remove
1266         unnecessary AC_LIBTOOL_WIN32_DLL.
1267
1268         * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
1269
1270         * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
1271
1272         (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
1273         implementation.
1274
1275         (gdk_display_supports_cursor_alpha,
1276         gdk_display_supports_cursor_color): Dummy implementations.
1277
1278         (gdk_display_get_default_cursor_size,
1279         gdk_display_get_maximal_cursor_size): Implement.
1280
1281         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
1282         Dummy implementation.
1283
1284         * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
1285         implementation.
1286
1287         * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
1288
1289         * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
1290         not in API.
1291
1292         * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
1293         implementation.
1294
1295 Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
1296
1297         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
1298         to the new path.
1299
1300         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
1301         allocation when scrolling instead of cancelling editing.
1302
1303 Fri Mar  5 23:52:34 2004  Matthias Clasen  <maclas@gmx.de>
1304
1305         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
1306         Improve the docs.  (#127727, Murray Cumming)
1307
1308 Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
1309
1310         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
1311         doc comment.  (#118602)
1312
1313 Fri Mar  5 22:37:15 2004  Matthias Clasen  <maclas@gmx.de>
1314
1315         * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
1316         the priv->image pointer dangle.  (#136259, Padraig O'Briain)
1317
1318 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1319
1320         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
1321         gboolean return values and GError arguments to
1322         ::set_current_folder() and ::select_path().
1323
1324         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
1325         Return a boolean value for success/failure.
1326         (gtk_file_chooser_set_current_folder_uri): Likewise.
1327         (gtk_file_chooser_select_filename): Likewise.
1328         (gtk_file_chooser_select_uri): Likewise.
1329         (gtk_file_chooser_set_filename): Likewise.
1330         (gtk_file_chooser_set_uri): Likewise.
1331         (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
1332         in a GError.
1333         (_gtk_file_chooser_select_path): Likewise.
1334
1335         * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
1336         Likewise.
1337         (delegate_select_path): Likewise.
1338
1339         * gtk/gtkfilechooserdefault.c
1340         (gtk_file_chooser_default_select_path): Likewise.
1341         (gtk_file_chooser_default_set_current_folder): Likewise; this also
1342         fixes #136024.
1343         (error_changing_folder_dialog): New helper function.
1344         (change_folder_and_display_error): New helper function.
1345         (switch_to_selected_folder): Use change_folder_and_display_error().
1346         (tree_selection_changed): Likewise.
1347         (shortcuts_activate_volume): Likewise.
1348         (shortcuts_activate_item): Likewise.
1349         (list_row_activated): Likewise.
1350         (path_bar_clicked): Likewise.
1351         (update_from_entry): Likewise.
1352         (up_folder_handler): Likewise.
1353         (home_folder_handler): Get the home path from the shortcuts model,
1354         and use change_folder_and_display_error().
1355
1356         * tests/testfilechooser.c (set_current_folder): New helper
1357         function; pops up a simple error dialog if necessary.
1358         (set_filename): Likewise.
1359         (set_folder_nonexistent_cb): Use set_current_folder().
1360         (set_folder_existing_nonexistent_cb): Likewise.
1361         (set_filename_nonexistent_cb): Use set_filename().
1362         (set_filename_existing_nonexistent_cb): Likewise.
1363
1364 Fri Mar  5 11:17:35 2004  Owen Taylor  <otaylor@redhat.com>
1365
1366         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): 
1367         Improve the docs (reported by Vitaly Tishkov, 
1368         #74362) Add some comments to the code about the 
1369         row reference handling that are hopefully not entirely
1370         wrong.
1371
1372 2004-03-05  Michael Natterer  <mitch@gimp.org>
1373
1374         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1375         s/object/widget/. Makes it compile again.
1376
1377 Fri Mar  5 03:37:14 2004  Jonathan Blandford  <jrb@gnome.org>
1378
1379         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1380         chain to the extra_widget.
1381
1382 Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>
1383
1384         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1385         Patch from Damon Chaplin to free models when we're finalized,
1386         #134053
1387
1388 2004-03-05  Alexander Larsson  <alexl@redhat.com>
1389
1390         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1391         Document the fact that there might not be a volume for all
1392         paths.
1393
1394         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1395         Don't assume there is a volume for all paths.
1396
1397 Fri Mar  5 01:45:04 2004  Jonathan Blandford  <jrb@gnome.org>
1398
1399         * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1400         the correct place instead of naĂŻvely appending.
1401         (shortcuts_add_volumes): refilter the model
1402         (shortcuts_add_bookmarks): refilter the model
1403         (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1404
1405 2004-03-04  Federico Mena Quintero  <federico@ximian.com>
1406
1407         * gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
1408         GtkFileChooser widget if it wants to do something special rather
1409         than letting us terminate the dialog.
1410         (gtk_file_chooser_dialog_init): Connect to "response"; see the
1411         comment in the sources to see why we don't override the method in
1412         class_init.
1413
1414         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1415         Added a ::should_respond() method.
1416
1417         * gtk/gtkfilechooserembed.c
1418         (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1419         (delegate_should_respond): New delegate.
1420         (_gtk_file_chooser_embed_should_respond): New function.
1421
1422         * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1423         Use dashes in signal names rather than underscores.
1424         (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1425         (gtk_file_chooser_default_should_respond): Implement.  go into a
1426         folder rather than responding if we are in File mode and the
1427         selected file is a folder.
1428         (get_selection): New helper function.
1429         (add_bookmark_button_clicked_cb): Use get_selection().
1430         (bookmarks_check_add_sensitivity): Likewise.
1431         (gtk_file_chooser_default_get_paths): Likewise.
1432         (check_save_entry): New helper function.
1433         (gtk_file_chooser_default_get_paths): Use check_save_entry().
1434         (selection_check): Renamed from selection_is_folders().  Now
1435         checks whether the selection is empty, all files, all folders.
1436         (bookmarks_check_add_sensitivity): Use selection_check().
1437
1438 Fri Mar  5 00:05:59 2004  Matthias Clasen  <maclas@gmx.de>
1439
1440         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1441         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to 
1442         key_press_event and handle Alt-Down/Alt-Up to show or hide the
1443         list popup. Also handle Down/Up/PageDown/PageUp/Home/End and 
1444         make them change the active item without popping up the list.
1445         These keybindings are inherited from GtkCombo. 
1446
1447 Thu Mar  4 23:15:58 2004  Matthias Clasen  <maclas@gmx.de>
1448
1449         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially 
1450         select the active item when using optionmenu-like positioning. 
1451
1452 Thu Mar  4 16:54:30 2004  Owen Taylor  <otaylor@redhat.com>
1453
1454         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1455         open/close the file, just check for existence
1456         with g_file_test(). This is considerably cheaper,
1457         and lack-of-permissions for pixmap dirs is 
1458         pathological.
1459
1460 Wed Mar  3 17:53:21 2004  Owen Taylor  <otaylor@redhat.com>
1461
1462         * gtk/gtksocket.c (gtk_socket_class_init): Overide
1463         show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1464         since we don't want to propagate to the in-process
1465         plug, if any. (#122949, Michael Meeks)
1466
1467 Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
1468
1469         * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1470         Folder' button in SAVE mode again.
1471
1472 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
1473
1474         * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1475         count of the style when copying the cached icon.  (#135890, Crispin
1476         Flowerday)
1477
1478 Thu Mar  4 21:45:43 2004  Matthias Clasen  <maclas@gmx.de>
1479
1480         * gtk/gtkcombobox.c: In list mode, set the background color 
1481         of the cell view to the base color of the style, instead of
1482         hardwiring white. (#136158)
1483
1484 Thu Mar  4 01:32:19 2004  Jonathan Blandford  <jrb@gnome.org>
1485
1486         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1487         muppet <scott@asofyet.org> to keep child directories around if we
1488         change to a child.
1489
1490         * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1491         icon-setting functions.  Not used yet.
1492         (_gtk_path_bar_set_root_icon): Ditto.
1493         
1494 Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>
1495
1496         * gtk/gtktextview.c (extend_selection): 
1497         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1498         to select the last word in the buffer.  (#135487, Paolo Borelli)
1499
1500 Wed Mar  3 23:54:31 2004  Matthias Clasen  <maclas@gmx.de>
1501
1502         * gtk/gtkentrycompletion.c: Doc update.
1503
1504 Wed Mar  3 17:30:18 2004  Owen Taylor  <otaylor@redhat.com>
1505
1506         * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1507         whether widgets are viewable, not just if they are
1508         mapped. (#122912, reported by Tim Evans)
1509
1510 Wed Mar  3 23:28:48 2004  Matthias Clasen  <maclas@gmx.de>
1511
1512         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1513         implementation into a new gtk_combo_box_set_active_internal() 
1514         function, which doesn't do the short-circuiting. 
1515         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1516         set_active_internal() here, since the active item may change here,
1517         although the index is unchanged.
1518
1519 Wed Mar  3 23:26:49 2004  Matthias Clasen  <maclas@gmx.de>
1520
1521         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1522         traditional option menu placement of the popup for regular combo
1523         boxes. Grids and editable combo boxes use the combo-like placement 
1524         below the entry.  (#136021)
1525         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): 
1526         * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1527         before popping up the menu, to make the placement work.
1528         
1529 Wed Mar  3 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
1530
1531         * gtk/gtkmain.c (gtk_propagate_event): Special case
1532         scroll events so that they propagate up the widget
1533         heirarchy when received on insensitive widgets.
1534         (#101102, reported by Geoff Reedy)
1535
1536 Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
1537
1538          #109594, reported by Olivier Ripoll
1539
1540         * gtk/gtkentry.c (gtk_entry_size_request): Use max of 
1541         width and digit width for gtk_entry_set_width_chars,
1542         and round up.
1543
1544         * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1545         width of the entry to 7 chars.
1546
1547 Wed Mar  3 16:00:10 2004  Owen Taylor  <otaylor@redhat.com>
1548
1549         * configure.in: Strip out the "export-dynamic" libtool
1550         option from library link lines. (#124687, James Henstridge)
1551
1552 Wed Mar  3 16:06:03 2004  Jonathan Blandford  <jrb@gnome.org>
1553
1554         * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1555         Don't activate the combo if we're in the midst of changing
1556         folders.
1557
1558 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1559
1560         * tests/testsocket_common.c: (print_hello): don't try and store
1561         pointers in ints. Fixes 64-bit build.
1562
1563 2004-03-03  Federico Mena Quintero  <federico@ximian.com>
1564
1565         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1566         not using a temporary variable, and clarify the documentation.
1567         Fixes #136008.
1568
1569 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1570
1571         * gtk/gtkexpander.c:
1572         (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1573         (gtk_expander_set_label_widget): Set the label widget's
1574         state to prelight if we're prelit. Fixes bug #136078.
1575
1576 2004-03-03  Murray Cumming  <murrayc@murrayc.com>
1577
1578         * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1579         signal vfunc declaration, adding the first parameter, which is the
1580         widget emitting the signal.
1581
1582 2004-03-03  Morten Welinder  <terra@gnome.org>
1583
1584         * tests/testfilechooser.c (update_preview_cb): Plug leak.
1585
1586 Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
1587
1588         * gtk/gtkfilechooserdialog.c
1589         (file_chooser_widget_default_realized_size_changed): Split
1590         function into realized and unrealized variants, and consolidate
1591         the handling fo size-changing and default changing.
1592
1593         * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1594         remove resizable-hints-changed, as it just complicated things.
1595
1596         * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1597         resizable-hints-changed.
1598         
1599 2004-03-03  Tor Lillqvist  <tml@iki.fi>
1600
1601         * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1602
1603         * NEWS: Correct spelling of my name in one place.
1604
1605 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1606
1607         * gtk/gtkfilechooserdefault.c
1608         (gtk_file_chooser_default_set_current_folder): Handle errors in
1609         setting the path bar's path.  Fixes #136000, based on a patch by
1610         Morten Welinder.
1611
1612         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1613         Don't free our own propagated error.
1614
1615         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1616         parent_path upon error.  Fixes #136006, patch by Morten Welinder.
1617         (gtk_path_bar_set_path): Unref the file_folder upon error.
1618         (gtk_path_bar_set_path): Return a boolean success code.
1619
1620 Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
1621
1622         * tests/testcombochange.c: Add an animation mode, to test 
1623         how the combobox behaves if the model changes while it is popped
1624         up.
1625
1626 Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
1627
1628         * === Released 2.3.5 ===
1629
1630         * NEWS: Updates
1631
1632         * configure.in: Version 2.3.5, interface age 0.
1633         Require glib-2.3.5, pango-1.3.5.
1634
1635 Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
1636
1637         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1638         popping up the completions across the edge of the monitor.
1639         Part of #135561.
1640
1641 Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
1642
1643         * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): 
1644         Move the /nonexistant stuff out of the main window,
1645         keep the main window somewhat normal looking.
1646
1647 Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
1648
1649         * gtk/gtktreestore.c (gtk_tree_store_reorder)
1650         * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1651         up the interpretation of new_order to match what
1652         it means elsewhere, document the meaning of new_order.
1653
1654         * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1655         Fix interpretation of new_order.
1656
1657         * tests/testcombochange.c (on_reorder): Fix interpretation
1658         of new_order.
1659
1660         * tests/testcombochange.c (on_reorder): Fix hitting
1661         "reorder" with an empty list.
1662
1663 Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1664
1665         Patch from Frederic Crozat, test code from Jean-Philippe
1666         Chancelier. Fixes bug #120479.
1667         
1668         * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1669         to the right window group.
1670
1671         * gtk/gtkmenu.c (gtk_menu_popup): Same
1672
1673         * tests/testsocket.c (main): Pack the plugs into an hbox instead
1674         of a vbox.
1675
1676         * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1677         GtkComboBox to the children.
1678
1679 Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
1680
1681         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1682         If the model was empty before, select the first inserted
1683         item.
1684
1685         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1686         Fix up the logic for the new row to select.
1687
1688         * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1689         Rename "appearance" property to "appears-as-list".
1690
1691         * tests/testcombochange.c tests/Makefile.am: Test case
1692         for combos and dynamically changing models.
1693
1694 Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
1695
1696         * gtk/gtkfilechooserdefault.c
1697         (gtk_file_chooser_default_get_resizable_hints): set the default
1698         value, spotted by Morten Welinder.
1699
1700 Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
1701
1702         * gtk/gtkfilechooserdefault.c
1703         (gtk_file_chooser_default_get_resizable_hints): get the logic
1704         correct.  This will fix sizing on save dialogs.
1705
1706         (save_widgets_create): set_mnemonic_widget.
1707
1708 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1709
1710         * gtk/gtkfilechooserdefault.c
1711         (gtk_file_chooser_default_set_current_folder): Don't update the
1712         save folder combo if we are already switching folders; based on a
1713         patch by Jonathan Blandford.
1714
1715         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1716         Handle failure to insert the path.  Based on a patch by Morten
1717         Welinder attached to bug #135380.
1718
1719         * tests/testfilechooser.c (extra_widget_create): Add a bunch of
1720         buttons to test various things.
1721
1722 Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
1723
1724         * tests/Makefile.am: Add testentrycompletion.
1725
1726         * tests/testentrycompletion.c: New file to test some of the
1727         more exotic GtkEntryCompletion features.
1728
1729 Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
1730
1731         * tests/testfilechooser.c (main): improve tests a little.
1732
1733 Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
1734
1735         * gtk/gtkcombobox.c: Always connect to the changed
1736         signals on the model, update the active item as
1737         appropriate when rows are inserted/deleted/reordered,
1738         re-layout the menu on ::rows-reordered.
1739
1740         * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
1741         Allow %NULL for path to unset and leave no current
1742         path.
1743
1744 Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
1745
1746         * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
1747         the popup above the sample if there is not enough room below.
1748         Part of #135543.
1749
1750 Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
1751
1752         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the 
1753         frame for the list mode etched in, to give the popup a slightly
1754         less flat appearance. 
1755
1756 Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
1757
1758         * gtk/gtk.def: Add gtk_combo_box_entry_new_text().  
1759
1760 2004-03-02  Morten Welinder  <terra@gnome.org>
1761
1762         * tests/testfilechooser.c (size_prepared_cb): Don't scale images
1763         that are small enough to fit.  Avoid using incompatibly typed data
1764         pointer.
1765
1766         * gtk/gtkfilechooserdefault.c
1767         (gtk_file_chooser_default_get_resizable_hints): Test the
1768         resize_horizontally pointer, not the deferenced pointer.
1769
1770 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1771
1772         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
1773         flag shortcuts_current_folder_is_volume.
1774         (shortcuts_add_current_folder): Set
1775         impl->shortcuts_current_folder_is_volume as appropriate.
1776         (remove_current_folder_cb): Handle the flag.
1777         (shortcuts_activate_item): Likewise.
1778         (shortcuts_update_current_folder): Handle the
1779         impl->shortcuts_current_folder_active flag; only add the folder if
1780         it doesn't already exist in the list.
1781         (shortcuts_model_create): Don't insert the current folder
1782         separator here.
1783         (shortcuts_add_current_folder): Insert the separator here.
1784         (shortcut_find_position): Renamed from shortcut_exists(); now
1785         returns an index.
1786         (shortcuts_add_current_folder): Set the active item in the combo.
1787
1788 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1789
1790         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
1791         use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
1792
1793 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1794
1795         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
1796         unref an old model; there isn't one.  This was a leftover from
1797         when we recreated the model on every change.
1798         (save_widgets_create): Create the save folder combo.
1799         (shortcuts_model_create): Don't set the model on the tree view
1800         here.
1801         (gtk_file_chooser_default_constructor): Create the shortcuts model
1802         here, before the rest of the widgets.
1803         (shortcuts_list_create): Don't call shortcuts_model_create() here;
1804         just set the model on the tree.
1805         (save_folder_combo_create): New function, provided by Jonathan
1806         Blandford.
1807         (update_appearance): Set the sensitivity of the folder combo.
1808         (shortcuts_activate_iter): New helper function; code moved from
1809         shortcuts_row_activated_cb().
1810         (shortcuts_activate_item): New helper function.
1811         (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
1812         (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
1813         SHORTCUTS_BOOKMARKS_SEPARATOR.
1814         (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
1815         (shortcuts_insert_separator): Add a position argument.
1816         (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR 
1817         and SHORTCUTS_CURRENT_FOLDER positions.
1818         (shortcut_exists): Ignore the current folder row.
1819         (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
1820         (shortcuts_model_create): Create a filter model for the shortcuts list.
1821         (shortcuts_list_create): Set the model to the shortcuts_filter_model.
1822         (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
1823         (bookmarks_check_remove_sensitivity): Likewise.
1824         (shortcuts_row_activated_cb): Likewise.
1825         (gtk_file_chooser_default_set_current_folder): New function.
1826         (gtk_file_chooser_default_set_current_folder): Update the current
1827         folder row in the shortcuts list.
1828
1829         * gtk/gtkfilechooserwidget.c
1830         (gtk_file_chooser_widget_constructor): Cast correctly for
1831         _gtk_file_chooser_embed_set_delegate().
1832
1833 Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
1834
1835         * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
1836         (#127499, based on patch from Michael Natterer)
1837
1838         * tests/testgtk.c: Fix bidi strings to display correctly
1839         with new auto-bidi.
1840
1841 Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
1842
1843         * gtk/gtksettings.c: Remove the include of Xft.h, which is already
1844         dragged in via pangoxft.h.  (#135496, David Hawthorne)
1845
1846 Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
1847
1848         * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
1849         callers.
1850
1851         * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
1852         the key event propagation mechanism used for focus widgets.
1853         (gtk_window_key_release_event): use the same key event propagation logic
1854         as gtk_window_key_press_event().
1855
1856 2004-03-01  Simon Budig  <simon@gimp.org>
1857
1858         * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
1859         for the XInput extension. We want to see them all.
1860         We now get Proximity Out events again. Fixes bug #135320.
1861
1862 Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
1863
1864         * gtk/gtkimmodule.c (match_locale): Use case-insensitive
1865         comparison. Fixes XIM module loading on AIX.  (#131277)
1866
1867 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
1868
1869         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
1870         Make it work correctly when the child model is cleared 
1871         completely. (#121633)
1872
1873 2004-03-01  Michael Natterer  <mitch@gimp.org>
1874
1875         * gtk/gtkfilechooserwidget.h: removed accidentially committed char
1876         which broke the build.
1877
1878 Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
1879
1880         * gtk/gtkfilechooserdialog.c
1881         (file_chooser_widget_default_size_changed): only store the size if
1882         we can resize in that direction.
1883
1884 Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
1885
1886         * gtk/gtkfilechooserwidget.c
1887         (gtk_file_chooser_widget_new_with_backend): new function.  Long
1888         name.
1889
1890 2004-03-01  Morten Welinder  <terra@gnome.org>
1891
1892         * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
1893         needed.
1894
1895         * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
1896         semantics and check for errors.
1897
1898         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
1899
1900         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
1901         display_name is NULL.
1902
1903 Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
1904
1905         Based on patch by Alex Larsson
1906
1907         * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
1908         GtkSetting to set the backend if the app doesn't specify one.
1909
1910         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
1911         Add Gtk/FileChooserBackend.
1912
1913 Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
1914
1915         * autogen.sh:
1916         - exit with $? instead of 1 in case of failure
1917         - exit with $? if ./configure failed
1918           (that's so autogen.sh && make lines work)
1919         - removed --enable-gtk-doc option
1920         - added $AUTOGEN_CONFIGURE_ARGS
1921
1922 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1923
1924         * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
1925         filter_info.uri correctly.  Fixes #135379, pointed out by Damon
1926         Chaplin.
1927         (shortcuts_get_index): Compute the bookmarks index correctly.
1928         Fixes #135714, pointed out by Damon Chaplin.
1929         (gtk_file_chooser_default_list_shortcut_folders): Handle the case
1930         with no shortcuts, and don't run off the end of the list if there
1931         are no bookmarks and their separator.  Fixes #135572, patch by
1932         Damon Chaplin.
1933
1934 Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
1935
1936         * gtk/gtklabel.c: Handle dynamically resolved bidi direction
1937         when drawing the cursor. (#118541)
1938
1939         * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
1940
1941         * gtk/gtkentry.c (draw_insertion_cursor): Fix up
1942         some confusion in parameter ordering.
1943
1944 Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
1945
1946         * gtk/gtkfilechooserdialog.c
1947         (file_chooser_widget_resizable_hints_changed): Handle
1948         shrinking/growing.
1949
1950 2004-03-01  Michael Natterer  <mitch@gimp.org>
1951
1952         * gtk/gtktextbtree.c: removed underscores from calls to
1953         gtk_text_btree_resolve_bidi().
1954
1955 Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
1956
1957         Patch from Dov Grobgeld to implement auto-bidi-direction
1958         for GtkTextView (#118543)
1959
1960         * gtk/gtktextbtree.[ch]: Resolve bidi base direction
1961         for each line by propagating backwards/forwards as
1962         necessary.
1963
1964         * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the 
1965         bidi base direction for the ;ine with the cursor from 
1966         the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
1967         
1968 Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
1969
1970         * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
1971         based on a patch from Dov Grobgeld. (#118540)
1972
1973 Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
1974
1975         * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() 
1976         to allow right-aligned entries and a "xalign" 
1977         property. (#59799, patch from Egon Andersen and 
1978         Steffen Gutmann)
1979
1980         * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
1981         xalign property description here too.
1982
1983         * tests/testtext.c: UNDERLINE_ERROR test addition
1984         from Nicolas Settons' patch.
1985
1986 Sun Feb 29 20:34:06 2004  Owen Taylor  <otaylor@redhat.com>
1987
1988         * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
1989         gtk_window_activate_key() (Request from Tim Janik)
1990
1991 Mon Mar  1 01:00:11 2004  Matthias Clasen  <maclas@gmx.de>
1992
1993         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
1994         Make DND operations within a buffer move the dragged 
1995         text instead of copying it; also make DND operations 
1996         a single user action for undo purposes.  (#135191, 
1997         #93139, reported by Tommi Komulainen, patch by Paolo Borelli
1998         and Paolo Maggi)
1999
2000 Mon Mar  1 00:51:11 2004  Matthias Clasen  <maclas@gmx.de>
2001
2002         * NEWS: News for 2.3.5.
2003
2004 Sun Feb 29 23:25:35 2004  Matthias Clasen  <maclas@gmx.de>
2005
2006         * gtk/gtkentry.c (gtk_entry_completion_key_press): 
2007         Fix the Shift-Tab support to go backwards.
2008
2009 Sun Feb 29 16:40:40 2004  Owen Taylor  <otaylor@redhat.com>
2010
2011         * gtk/gtktextview.c (gtk_text_view_class_init): Fix 
2012         capitalization to match other style properties.
2013
2014 Sun Feb 29 16:38:53 2004  Owen Taylor  <otaylor@redhat.com>
2015
2016         * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
2017         typo in property string.
2018
2019 Sun Feb 29 16:35:23 2004  Owen Taylor  <otaylor@redhat.com>
2020
2021         * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
2022         PANGO_UNDERLINE_ERROR (Based on a patch by
2023         Nicolas Setton, #114237)
2024
2025         * gtk/gtktextview.c: Add a error-underline-color style
2026         property.
2027
2028 Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2029
2030         * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
2031         function returning a good step value for the mouse wheel. For
2032         scrollbars, base the step on page_size^(2/3), for other ranges,
2033         use 2 * step_increment.
2034
2035         * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
2036
2037         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): 
2038         ... and here.
2039
2040         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
2041
2042 Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
2043
2044         * gtk/gtkfilechooserembed.c
2045         (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
2046         (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
2047
2048         * gtk/gtkfilechooserdialog.c
2049         (file_chooser_widget_default_size_changed): Get the correct
2050         initial size for the dialog.  Also, don't bother with
2051         gtk_window_set_default_size().  It's not really meaningful.
2052
2053         * gtk/gtkfilechooserdefault.c
2054         (gtk_file_chooser_default_get_default_size): Get the correct
2055         spacing for the preview_widget
2056         (update_preview_widget_visibility): Clear widget field after we
2057         destroy it.
2058
2059 2004-02-29  Federico Mena Quintero  <federico@ximian.com>
2060
2061         * gtk/gtkfilechooserdefault.c
2062         (gtk_file_chooser_default_set_property): Handle
2063         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
2064         (gtk_file_chooser_default_get_property): Likewise.
2065         (struct _GtkFileChooserDefault): Added fields for preview_label,
2066         use_preview_label, preview_display_name, preview_box.  Removed
2067         preview_frame.
2068         (set_preview_widget): Reorder the widget in relation to the label.
2069         (update_preview_widget_visibility): Create or destroy the preview
2070         label.
2071         (check_preview_change): Update impl->preview_display_name and the
2072         label.
2073         (find_good_size_from_style): Use the preview_box.
2074         (gtk_file_chooser_default_finalize): Free
2075         impl->preview_display_name.
2076         (gtk_file_chooser_default_init): Initialize
2077         impl->use_preview_label.
2078
2079         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
2080         "use-preview-label" property.
2081         (gtk_file_chooser_set_use_preview_label): New function.  This sets
2082         whether one wants the file chooser to display a stock label with
2083         the previewed filename.  Apps that do really fancy previews can
2084         turn this off and draw the name themselves.
2085         (gtk_file_chooser_get_use_preview_label): New function.
2086         (gtk_file_chooser_get_preview_widget_active): Documentation fix.
2087
2088         * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
2089         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
2090
2091         * gtk/gtkfilechooserutils.c
2092         (_gtk_file_chooser_install_properties): Override the
2093         "use-preview-label" property.
2094
2095 Sun Feb 29 04:43:29 2004  Matthias Clasen  <maclas@gmx.de>
2096
2097         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
2098         Shift-Tab work when the completion popup is shown.
2099
2100 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
2101
2102         * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
2103         the title of the filename column.
2104         (create_file_list): Likewise.
2105
2106 Sun Feb 29 03:31:42 2004  Matthias Clasen  <maclas@gmx.de>
2107
2108         * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up 
2109         and Page_Down in the completion popup to move page-wise if we're
2110         scrolling.
2111
2112 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
2113
2114         * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
2115         Removed.
2116         (list_name_data_func): Don't call the function above.
2117         (list_mtime_data_func): Likewise.
2118
2119 Sun Feb 29 02:34:35 2004  Matthias Clasen  <maclas@gmx.de>
2120
2121         * gtk/gtkcombobox.c (gtk_combo_box_list_position): New 
2122         function which calculates position and size for the popup in
2123         list mode. Currently it only pushes the popup horizontally 
2124         into the screen.
2125
2126 Sun Feb 29 01:10:09 2004  Matthias Clasen  <maclas@gmx.de>
2127
2128         * gtk/gtkcombobox.c: Implement the previous fix in a better way,
2129         small cleanups.
2130
2131 2004-02-28  Hans Breuer  <hans@breuer.org>
2132
2133         * gtk/gtkfilesystemwin32.c : applied patch from
2134         J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
2135
2136 Sat Feb 28 23:30:36 2004  Matthias Clasen  <maclas@gmx.de>
2137
2138         * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
2139         popup window before popping up.  (#135651)
2140
2141 Sat Feb 28 23:29:35 2004  Matthias Clasen  <maclas@gmx.de>
2142
2143         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
2144         * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
2145         handler for style_set in class_init instead of connecting to
2146         the signal in init. (noticed by Yosh).
2147
2148 Sat Feb 28 14:48:35 2004  Owen Taylor  <otaylor@redhat.com>
2149
2150         * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, 
2151         not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
2152
2153 2004-02-28  Hans Breuer  <hans@breuer.org>
2154
2155         * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
2156         change. Also merged some crossplatform code from 
2157         gtkfilesystemunix.c
2158         * gtk/gtk.def : updated externals
2159
2160         * gtk/makefile.msc.in : added gtkfilechooserembed.obj
2161
2162 2004-02-28  Hans Breuer  <hans@breuer.org>
2163
2164         * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
2165         when destroying, fixes bug #120007. Also removed the mirrored
2166         ref counting for deprecated gdk_drag_context_<ref|unref>()
2167         cause it wasn't reliable anymore anyway.
2168
2169         * gdk/win32/gdkdisplay-win32.c : fix typo, which should
2170         have broken the win32 build for everyone not using msvc
2171
2172         * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
2173         return negative values for ptMaxTrackSize, it caused snapping
2174         windows to their minimum size
2175
2176 Sat Feb 28 01:39:01 2004  Matthias Clasen  <maclas@gmx.de>
2177
2178         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
2179         switching back to non-gridded mode.  (#135169)
2180
2181 Fri Feb 27 22:29:46 2004  Matthias Clasen  <maclas@gmx.de>
2182
2183         * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
2184
2185 Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
2186
2187         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
2188         Whoops.  Didn't mean to commit the size change.
2189
2190 Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
2191
2192         * gtk/gtkfilechooserembed.h: New private interface to help
2193         negotiate the default size of the widget.  Still a bit buggy, but
2194         better than the old behavior.
2195
2196         * gtk/gtkfilechooserdefault.c: Implement the embed interface.
2197
2198         * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
2199
2200         * gtk/gtkfilechooserdialog.c: Use the embed interface.
2201
2202 2004-02-27  Federico Mena Quintero  <federico@ximian.com>
2203
2204         * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
2205         "position" argument.
2206
2207         * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for 
2208         GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
2209         (struct _GtkFileSystemIface): Added a "position" argument to the
2210         ::insert_bookmark() method.
2211
2212         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
2213         Updated; renamed from gtk_file_system_unix_add_bookmark().  Return
2214         an error if the path already exists in the bookmarks list.
2215         (gtk_file_system_unix_remove_bookmark): Return an error if the
2216         path does not exist in the bookmarks list.
2217
2218         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
2219         For now, use gtk_file_system_insert_bookmark() with -1 for the
2220         position.  DnD will come next.
2221
2222 Fri Feb 27 21:42:28 2004  Matthias Clasen  <maclas@gmx.de>
2223
2224         * gtk/gtkcombobox.c (gtk_combo_box_relayout): 
2225         * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only 
2226         create a new setup if appearance actually changed.
2227         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear): 
2228         * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make 
2229         these more robust.  (#127623, Damon Chaplin)
2230
2231 Fri Feb 27 15:06:00 2004  Jonathan Blandford  <jrb@redhat.com>
2232
2233         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
2234         folder-mode property.
2235
2236         * gtk/gtkfilechooserutils.c
2237         (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
2238
2239 Thu Feb 26 17:38:40 2004  Manish Singh  <yosh@gimp.org>
2240
2241         * gtk/gtkcombobox.c: Add function declaration for
2242         gtk_combo_box_list_remove_grabs().
2243
2244 Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
2245
2246         * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
2247         cursor move, but not Home and End.
2248
2249         * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
2250         jump to the ends of the list, not Home and End - since we're not 
2251         scrolling yet, a "page" is always the complete list.  (#127430, Marco
2252         Pesenti Gritti)
2253
2254 Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
2255
2256         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): 
2257         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
2258         the priv pointers dangle.  (#127623, Damon Chaplin)
2259
2260 Thu Feb 26 17:31:34 2004  Manish Singh  <yosh@gimp.org>
2261
2262         * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
2263
2264 Thu Feb 26 19:53:32 2004  Owen Taylor  <otaylor@redhat.com>
2265
2266         * gdk/x11/xsettings-common.h (xsettings_client_process_event): 
2267         Add xsettings_client_set_grab_func,
2268         Add xsettings_client_set_ungrab_func to the list of renames.
2269
2270 Thu Feb 26 19:48:39 2004  Owen Taylor  <otaylor@redhat.com>
2271
2272         * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
2273         in case of mismatched property type.
2274
2275 Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
2276
2277         * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
2278         modes to the enum.
2279
2280         * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
2281         (gtk_file_chooser_get_folder_mode): Remove
2282
2283 Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
2284
2285         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
2286         GDK_FILTER_CONTINUE for unhandled message types.
2287
2288         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
2289         multiple filters for the same event type with the standard
2290         "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
2291
2292         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2293         Append to the filter list not prepend, since order now matters.
2294
2295         * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter): 
2296         Append to the filter list not prepend, since order now matters.
2297         
2298 Thu Feb 26 23:39:07 2004  Matthias Clasen  <maclas@gmx.de>
2299
2300         Fixes for #135333, analysed by Damon Chaplin:
2301         
2302         * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
2303         grab here.
2304         * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here, 
2305         so that we don't forget to grab when the menu is popped via
2306         keynav.
2307         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
2308         ungrab here.
2309         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
2310
2311 Thu Feb 26 23:26:00 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2312
2313         * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
2314         cursors for resize grips. (Bug #129621)
2315
2316         * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
2317         fix - patch by Torsten Schoenfeld.
2318
2319         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
2320         space between the items. (Bug #110775)
2321
2322         * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
2323         inside menu items that are inside a menu bar. (Bug #110775)
2324         
2325         * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
2326         not GDK_PACKAGES, to prevent applications from getting linked to
2327         it (Bug #119804)
2328
2329         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
2330         ipadding inside the item. (Bug #61843)
2331
2332 Thu Feb 26 22:56:40 2004  Matthias Clasen  <maclas@gmx.de>
2333
2334         * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets() 
2335         by list_mnemonic_widgets() in doc comments as well.
2336
2337 Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
2338
2339         Fixes from Torsten Schoenfeld.
2340
2341         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): 
2342         Fix name in doc comment.
2343
2344         * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
2345         not get_mnemonic_labels.
2346
2347 Thu Feb 26 22:20:44 2004  Matthias Clasen  <maclas@gmx.de>
2348
2349         * gtk/gtkcomboboxentry.h:
2350         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2351         convenience API to construct simple text combos, implemented by
2352         Damon Chaplin.
2353
2354         * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2355
2356 Thu Feb 26 22:19:29 2004  Matthias Clasen  <maclas@gmx.de>
2357
2358         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2359
2360 Thu Feb 26 15:43:43 2004  Owen Taylor  <otaylor@redhat.com>
2361
2362         * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2363         in a simplified form as gtk_draw_insertion_cursor().
2364         (#99031, request from Alex Larsson)
2365
2366         * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2367         Adapt to new gtk_draw_insertion_cursor().
2368
2369         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2370         gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2371         Since: 2.4.
2372
2373         * gtk/gtkiconfactory.c (icon_size_settings_changed)
2374           gtk/gtkicontheme.c (do_theme_change)
2375           gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2376         * gtk/gtksettings.c (gtk_settings_notify):
2377         _gtk_rc_reset_styles => gtk_rc_reset_styles.
2378
2379 Thu Feb 26 21:52:58 2004  Matthias Clasen  <maclas@gmx.de>
2380
2381         Fixes for #127804 and #134722, Damon Chaplin:
2382         
2383         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end): 
2384         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start): 
2385         Ref and sink the cell renderers here.
2386         
2387         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2388         renderers here, and free attributes and func_data. 
2389
2390 Thu Feb 26 21:41:38 2004  Matthias Clasen  <maclas@gmx.de>
2391
2392         * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2393
2394 Thu Feb 26 14:47:22 2004  Dom Lachowicz <cinamod@hotmail.com>
2395
2396         * gtk/gtk.def: Export gtk_rc_reset_styles()
2397
2398 Thu Feb 26 14:47:22 2004  Owen Taylor  <otaylor@redhat.com>
2399
2400         * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles(). 
2401         (Request from Dom Lachowicz, #123769)
2402
2403 Wed Feb 25 19:11:31 2004  Owen Taylor  <otaylor@redhat.com>
2404
2405         * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2406         ::group-changed signal emitted when the radio button/menu item 
2407         is moved from one group of radio buttons to another. 
2408         (#79563, based partially on a patch from Padraig O'Briain)
2409
2410 Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
2411
2412         * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2413         free() function. (#135511, George Bronnikov)
2414
2415 2004-02-26  Federico Mena Quintero  <federico@ximian.com>
2416
2417         * configure.in: Added a comment to inform translators that they
2418         must add .po files to both po/ and po-properties/ when they add
2419         new languages to ALL_LINGUAS.
2420
2421 Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
2422
2423         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2424         Call g_convert(), not g_convert() with fallback, since Emacs is
2425         happier if we reject the COMPOUND_TEXT request and it can
2426         then ask for UTF-8. (#114527)
2427
2428         * gtk/gtkselection.c (gtk_selection_data_set_text): When
2429         TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2430
2431 Wed Feb 25 22:35:00 2004  Tomasz KƂoczko <kloczek@pld.org.pl>
2432
2433         * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2434         vesion for build gtk+ is now 2.3.3.
2435
2436 Wed Feb 25 16:00:40 2004  Jonathan Blandford  <jrb@gnome.org>
2437
2438         * gtk/gtkfilechooserdefault.c (update_appearance): move the
2439         expander code.
2440
2441 2004-02-25  Danilo Ć egan  <dsegan@gmx.net>
2442
2443         * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2444         adding back sr@ije.
2445
2446 2004-02-25  Federico Mena Quintero  <federico@ximian.com>
2447
2448         * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2449         is fixed for it.
2450
2451 Wed Feb 25 12:44:49 2004  Owen Taylor  <otaylor@redhat.com>
2452
2453         * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2454
2455 Wed Feb 25 12:21:32 2004  Owen Taylor  <otaylor@redhat.com>
2456
2457         * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2458         Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2459         gtk_widget_get_mnemonic_labels(). (#103456)
2460
2461 2004-02-25  Danilo Ć egan  <dsegan@gmx.net>
2462
2463         * configure.in: Added sr@ije to ALL_LINGUAS.
2464
2465 Wed Feb 25 09:46:34 2004  Owen Taylor  <otaylor@redhat.com>
2466
2467         * gtk/gtkstyle.c (gtk_style_finalize): Free 
2468         style->icon_factories (#130128)
2469
2470 Wed Feb 25 03:52:58 2004  Jonathan Blandford  <jrb@gnome.org>
2471
2472         * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2473         internal buttons.
2474
2475         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2476         rename some widgets to make it clear where they are packed.
2477         (update_appearance): New function to handle all the 'logic' of
2478         layout in one place.  We aren't trying to keep all our properties
2479         in sync.
2480         (gtk_file_chooser_default_set_property): use update_appearance()
2481
2482 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2483
2484         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2485         from create_shortcuts_model().
2486         (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2487         to shortcuts_list.
2488         (shortcuts_list_create): Renamed from shortcuts_tree_create().
2489         (create_file_list): Enable the tree view as a model drag source.
2490         (create_folder_tree): Likewise.
2491
2492         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2493         Register the drag source interface.
2494         (drag_source_iface_init): New function.
2495         (drag_source_row_draggable): New function.
2496         (drag_source_drag_data_get): New function.
2497
2498 Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>
2499
2500         * === Released 2.3.4 ===
2501
2502         * configure.in: Bump version to 2.3.4, fix broken
2503         gtk_binary_age value by copying the GLib logic
2504         to automatically set it to the right values.
2505
2506 Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>
2507
2508         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
2509         * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
2510         Don't resize priv->cell_view if it is NULL.  (#127804, 
2511         Damon Chaplin)
2512         
2513 Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>
2514
2515         * gtk/gtkcombobox.c: Add a comment about the different 
2516         modi of this widget. Get rid of priv->hbox, and some other
2517         cleanups. Make sure that gtk_combo_box_unset_model() is 
2518         always called before setting up a different mode. 
2519
2520 Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>
2521
2522         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2523         underscores in keyval names to spaces. (#131480)
2524
2525 Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>
2526
2527         * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2528         Uwe Zeisberger)
2529
2530 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
2531
2532         * === Released 2.3.3 ===
2533
2534         * configure.in: Version 2.3.3, interface age 0.
2535
2536         * NEWS: Finish updates for 2.3.3.
2537
2538 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2539
2540         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2541         GtkEntry for the filename, not a GtkFileChooserEntry.
2542         (update_chooser_entry): Use gtk_entry_set_text() rather than
2543         _gtk_file_chooser_entry_set_file_part().
2544         (gtk_file_chooser_default_set_current_name): Likewise.
2545         (gtk_file_chooser_default_set_current_folder): Don't set the base
2546         folder of the entry, and don't call update_chooser_entry().
2547         (gtk_file_chooser_default_get_paths): Use the plain entry.
2548         (save_widgets_create): Store the "Save in Folder" label in the
2549         impl structure.
2550         (expander_activate_cb): Set the sensitivity of the label and
2551         combo.
2552         (save_widgets_create): Connect to "notify::expanded" rather than
2553         "activate" on the expander.
2554         (expander_changed_cb): Renamed from expander_activate_cb().  Flip
2555         the conditions again...
2556
2557 Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>
2558
2559         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2560         column as different if there are 3 or more visible columns.
2561
2562 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2563
2564         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2565         Fix compilation (#135278, Padraig O'Briain).
2566         
2567 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2568
2569         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2570         Translate the desktop label.
2571         
2572         (shortcuts_get_index), (shortcuts_add_bookmarks),
2573         (shortcuts_insert_separator), (create_shortcuts_model):
2574         Don't show the bookmark separator if there are no bookmarks.
2575         
2576 Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>
2577
2578         * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2579         dialog look like the nautilus dialog.
2580         (expander_activate_cb): get the order correct.
2581
2582 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2583
2584         * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2585         bookmarks_check_add_sensitivity().
2586         (shortcut_exists): New helper function; moved the testing code
2587         over from bookmarks_check_add_sensitivity().
2588         (bookmarks_check_add_sensitivity): Check the contents of the
2589         selection in the file/folder list.  Use shortcut_exists().
2590         (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2591         the path is already in the shortcuts list.
2592         (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2593         selection or from the current folder, as appropriate.
2594
2595 Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>
2596
2597         * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2598         mnemonics.  Sorry translators.
2599
2600 Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>
2601
2602         * NEWS: Additions. This should be complete for the main ChangeLog
2603         now, still need to sift through gdk-pixbuf, docs, and translations.
2604
2605 Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>
2606
2607         * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2608         Add a get_size implementation so that we are no longer the same
2609         height as text.
2610
2611 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2612
2613         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2614         (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2615         (create_shortcuts_model), (shortcuts_tree_create),
2616         (gtk_file_chooser_default_remove_shortcut_folder):
2617         Improve bookmark list rendering by controlling the visibility
2618         of the pixbuf cell so that it will be invisible for the separator
2619         row, also use a list store instead of a tree store for the model
2620         so we won't get unnecessary space for an expander.
2621         
2622 Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>
2623
2624         * gtk/gtkcombobox.c: Add a destroy implementation in order to
2625         set priv->cell_view to NULL before finalize stumbles over the 
2626         dangling pointer. This big array of pointers into the widget 
2627         tree in GtkComboBoxPrivate is really fragile and should be
2628         cleaned up.
2629
2630 Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>
2631
2632         * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2633         group when allocating space for the buttons at the bottom just in
2634         case.  Also, move the filter to below the file list.
2635
2636 Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>
2637
2638         * gtk/gtkfilechooserdefault.c
2639         (gtk_file_chooser_default_class_init): Seth was confused by
2640         keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
2641         home, not up.
2642
2643 Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>
2644
2645         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2646         more cleanly.
2647
2648         * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2649
2650 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2651
2652         Rework the user interface of the file chooser, as per 
2653         Seth Nickell's design.
2654
2655         * gtk/gtkfilechooserdefault.c
2656         (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2657                 "location-popup" - C-l
2658                 "up-folder"      - C-Up
2659                 "home-folder"    - C-Home
2660         (up_folder_handler): New function; moved the code from up_button_clicked().
2661         (up_button_clicked_cb): Call up_folder_handler().
2662         (home_folder_handler): New function.
2663         (location_popup_handler): New function.
2664         (struct _GtkFileChooserDefault): Add an hpaned field.
2665         (gtk_file_chooser_default_set_current_name): Check that we are in
2666         Save mode.
2667         (save_widgets_create): New function, create the widgets specific
2668         to Save mode.
2669         (main_paned_create): New function, create the hpaned's widgets here.
2670         (gtk_file_chooser_default_constructor): Create the open and save
2671         widgets, and show only one set.
2672         (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2673         (gtk_file_chooser_default_get_paths): Only pay attention to the
2674         entry in Save mode.
2675         (update_chooser_entry): Update the entry only in Save mode.
2676         (entry_activate): Removed.
2677
2678 Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>
2679
2680         * configure.in: Remove the configure.in check for fontconfig 
2681         entirely; it's not needed, since PangoXft implies that sufficiently
2682         new fontconfig is present.
2683
2684 Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>
2685
2686         * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2687         for (i = 0; i < 10; i++)
2688           g_print ("I will compile before committing.\n");
2689
2690 Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>
2691
2692         * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2693         GtkPathBar by default now.
2694
2695         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2696         current path from the path.
2697         (gtk_path_bar_class_init): new signal
2698         (button_clicked_cb): emit the signal when we're selected.
2699         (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2700         clearing thr first_scrolled_button.
2701
2702 Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>
2703
2704         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
2705         allocation for the toggle button so that it actually shows up 
2706         in LTR list mode.
2707
2708         * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
2709         * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
2710         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2711         notification, and avoid excessive relayouting. 
2712
2713 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
2714
2715         Fix bug 134982, reported by Morten Welinder:
2716         
2717         * gtk/gtkpathbar.c (gtk_path_bar_destroy): 
2718         * gtk/gtktooltips.c (gtk_tooltips_destroy): 
2719         * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
2720         parent's ::destroy handler.
2721         
2722         * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
2723         parent's ::dispose handler.
2724
2725 Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>
2726
2727         * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
2728         stuff with an #ifdef, so we still build with most fontconfig versions.
2729
2730 Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
2731
2732         * gtk/gtkaction.c: (gtk_action_finalize):
2733         * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
2734         * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
2735         (gtk_entry_completion_finalize):
2736         * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
2737         * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
2738         (gtk_file_system_model_finalize):
2739         * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
2740         (gtk_icon_theme_finalize):
2741         * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
2742         * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
2743         (gtk_ui_manager_finalize):
2744         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
2745         Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
2746         patch by Jan Arne Petersen)
2747
2748 Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>
2749
2750         * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
2751         Don't crash if item is NULL.  (#131542, Dan Damian)
2752
2753 Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>
2754
2755         * configure.in: Add a check for a new enough fontconfig, since
2756         we picked up a direct dependency on it with the Xft settings.
2757
2758 Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>
2759
2760         Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
2761         
2762         * gtk/gtkcheckmenuitem.c: Introduce a new style property 
2763         indicator_size and use it instead of the hardcoded value.
2764         
2765         * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
2766         item gets enough vertical space for the label and the indicator.
2767
2768 Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2769
2770         * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
2771         _ for the new Xft settings.
2772
2773 Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2774
2775         Bug 130790 (Federico Mena Quintero, Owen Taylor)
2776         
2777         * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
2778
2779         * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
2780         XSETTINGS
2781         
2782 Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2783
2784         Bug 132502
2785         
2786         * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
2787         if we enter a non-selectable menu item.
2788
2789         * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
2790         when the user has left the item.
2791
2792 Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2793
2794         * gtk/docs: Commit auto-generated changes
2795
2796 Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>
2797
2798         * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
2799
2800         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
2801         allocation code.  Works fully in RTL languages, I think.
2802         (gtk_path_bar_scroll_up): Scroll up.
2803         (gtk_path_bar_scroll_down): Scroll down.
2804
2805 2004-02-20  Christian Rose  <menthos@menthos.com>
2806
2807         * configure.in: Added "en_CA" to ALL_LINGUAS.
2808
2809 2004-02-20  Michael Meeks  <michael@ximian.com>
2810
2811         * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
2812         (gtk_tool_item_class_init): hook it up.
2813         (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
2814
2815         * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
2816         chain to parent, fix strcmp bug.
2817
2818         * tests/testtoolbar.c (main): re-arrange widgets to allow
2819         more overflowing toolbar goodness.
2820
2821 2004-02-20  Alexander Larsson  <alexl@redhat.com>
2822
2823         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2824         Desktop directory is not translated.
2825         (set_tree_model):
2826         There might not be volumes for all paths.
2827         * gtk/gtkfilechooserwidget.c:
2828         (gtk_file_chooser_widget_constructor):
2829         Use gtk_file_chooser_set_current_folder to set cwd.
2830
2831 Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>
2832
2833         * gtk/gtkpathbar.[ch]: New widget to handle the path in the
2834         fileselector implementation.  Not hooked up to anything yet.
2835
2836         * gtk/Makefile.am: support the path bar.
2837
2838 Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>
2839
2840         * gtk/gtkstyle.c (gtk_default_draw_handle): 
2841         (gtk_default_draw_box): Make the paned handles gray when the the 
2842         widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)
2843
2844 Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
2845
2846         Fixes for #82099:
2847         
2848         * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
2849         and "Gtk/MenuImages" and map them to "gtk-button-images" and 
2850         "gtk-menu-images".
2851
2852         * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
2853         use it to set the visibility of the embedded image.
2854
2855         * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
2856         it to set the visibility of an embedded image.
2857
2858 Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>
2859
2860         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
2861         Give each radio action its own value.  (#134889, Paolo Borelli)
2862
2863 2004-02-19  Federico Mena Quintero  <federico@ximian.com>
2864
2865         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
2866         Chain to the parent's ::finalize() handler.  Fixes #134885; caught
2867         by Jan Arne Petersen.
2868
2869 2004-02-19  Mark McLoughlin  <mark@skynet.ie>
2870
2871         Make the entire expander widget width prelight as suggested
2872         by Seth in bug #134263.
2873
2874         * gtk/gtkexpander.c:
2875         (gtk_expander_paint_prelight): impl.
2876         (gtk_expander_paint): use it.
2877         (gtk_expander_redraw_expander): don't only redraw the
2878         arrow when prelit.
2879
2880 2004-02-19  Alexander Larsson  <alexl@redhat.com>
2881
2882         * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
2883         * gtk/gtkfilechooserutils.c:
2884         * gtk/gtkfilechooserutils.h:
2885         * gtk/gtkfilechooserwidget.c:
2886         Remove old file-system property.
2887         Add new file-system-backend string property
2888         
2889         * gtk/gtkfilechooserdefault.[ch]:
2890         Handle the file-system-backend property
2891         
2892         * gtk/gtkfilechooserdialog.[ch]:
2893         (gtk_file_chooser_dialog_new_with_backend):
2894         Remove old file-system property.
2895         Add new file-system-backend string property
2896         Add new function gtk_file_chooser_dialog_new_with_backend
2897         
2898         * gtk/gtkfilesystem.c: 
2899         * gtk/gtkfilesystem.h:
2900         Add filesystem module support.  
2901
2902 2004-02-18  Federico Mena Quintero  <federico@ximian.com>
2903
2904         * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
2905         from create_shortcuts_tree().
2906         (shortcuts_pane_create): New function.
2907         (button_new): Renamed from toolbar_button_new().
2908         (shortcuts_pane_create): New function, create the whole shortcuts
2909         pane here.
2910         (current_folder_create): Renamed from toolbar_create().  Don't
2911         create the bookmarks buttons here.
2912         (file_pane_create): New function.
2913         (gtk_file_chooser_default_constructor): Use the new helper
2914         functions, and don't use an extra vbox as GtkFileChooserDefault is
2915         already a vbox.
2916
2917 Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>
2918
2919         * gtk/gtkuimanager.h: 
2920         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
2921         default handlers for all signals; for consistency and for the
2922         benefit of language bindings which still rely on header parsing
2923         to find the signals.  (#134269, Jeroen Zwartepoorte)
2924         
2925 Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>
2926
2927         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
2928         Improve the efficiency here by prepending on the list and reverting
2929         it after the loop.  (#134435, Christian Biere)
2930
2931 Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>
2932
2933         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
2934         removing the plug from the socket.  (#128546, Christopher Blizzard)
2935
2936 Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>
2937
2938         * gtk/gtkradiomenuitem.h:
2939         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
2940         (gtk_radio_menu_item_new_with_label_from_widget): 
2941         (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
2942         convenience functions analogous to similar API on GtkRadioButton.
2943         (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
2944
2945 Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2946
2947         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
2948         case where the background is a solid color.
2949         (gdk_window_clear_backing_rect): Reset the clip region after use.
2950
2951         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
2952         back to using a scratch GC. Pointed out by Owen Taylor
2953         
2954         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
2955         scratch GC if the passed-in one is NULL
2956
2957 Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2958
2959         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
2960         region back to NULL on cached GC (rest of #134728)
2961
2962 Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2963
2964         Fix bug reported by Nam SungHyun (#134728)
2965         
2966         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
2967         Don't use a cached GC here since the function needs to modify the
2968         foreground color.
2969
2970         * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
2971         to NULL on the cached GC.
2972
2973 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
2974
2975         * gtk/gtkfilechooserdialog.c
2976         (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
2977         This sucks a lot.
2978
2979 Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>
2980
2981         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
2982         peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)
2983
2984 Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2985
2986         GC caching, bug #125645 (based on patch by Brian Cameron)
2987         
2988         * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
2989         * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
2990         cached GC's here.
2991         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
2992         get a scratch gc.
2993         * gdk/gdkinternals.h: Declare the function here
2994
2995         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
2996         _gdk_drawable_get_scratch_gc() instead of creating a new GC.
2997         * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
2998         * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
2999         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
3000         * gdk/gdkwindow.c (gdk_window_end_paint): same
3001         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
3002         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
3003         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
3004
3005 Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>
3006
3007         * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
3008         priv->columns to 1.
3009
3010 Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>
3011
3012         * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
3013         priv->columns >= 1 even for empty menus, since we divide by it
3014         somewhere else.  (#133428, Vincent Noel)
3015
3016 Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3017
3018         Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
3019         Taylor.
3020
3021         * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
3022
3023         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
3024         depth.
3025
3026         * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
3027         the colormap, if no colormap, special case depth 1, 
3028
3029         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
3030         _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
3031
3032         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
3033         Special-case bitmaps without a colormap.
3034
3035         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
3036         draw_pixbuf() implementation in the bitmap case.
3037
3038 2004-02-17  Mark McLoughlin  <mark@skynet.ie>
3039
3040         * modules/input/Makefile.am: only reference input method
3041         modules we've actually built. Fixes re-build failure with
3042         stale hangul module lying aroung. Bug #134518.
3043
3044 Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
3045
3046         * gdk/gdkdraw.c: Revert last commit, please don't commit patches
3047         without approval, this isn't the right way to do it.
3048
3049 2004-02-16  DindinX  <david@dindinx.org>
3050
3051         * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
3052         segments at a time, since XDrawSegments cannot handle more than this.
3053
3054         fixes bug #122026.
3055         
3056 Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3057
3058         * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
3059         gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
3060         in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
3061
3062 Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>
3063
3064         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
3065         Split declaration and assignment of combo_box.
3066         
3067         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
3068         pointless cast
3069
3070 Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>
3071
3072         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
3073         deprecation note pointing people to GtkComboBox.
3074
3075 Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
3076
3077         * gtk/gtktreednd.c: 
3078         * gtk/gtktreeview.c: Document the tree DND API.
3079
3080         * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
3081         Call gtk_drag_source_unset().  
3082         
3083 Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>
3084
3085         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
3086         Make stock_size an uint property, to allow custom icon 
3087         sizes. Also clarify the blurb.  (#130047, Erik Grinaker)
3088
3089 Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>
3090
3091         * configure.in: Remove unnecessary STRIP_* definitions, and GNU
3092         make check.
3093
3094 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
3095
3096         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
3097         Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
3098         the very first time you try to save one.
3099
3100 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
3101
3102         Fix #129020.
3103
3104         * gtk/gtkfilechooserdialog.c
3105         (set_default_size): New function, sets a reasonable default size
3106         for the window.
3107         (gtk_file_chooser_dialog_realize): New function, call
3108         set_default_size().
3109         (gtk_file_chooser_dialog_style_set): Likewise.
3110         (gtk_file_chooser_dialog_screen_changed): Likewise.
3111
3112         * tests/testfilechooser.c (main): Don't set a default size for the
3113         dialog.
3114
3115 Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>
3116
3117         * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
3118         Use do instead of while.  (#134031, Morten Welinder);
3119
3120 Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>
3121
3122         * configure.in: Suppress xsltproc and xmlcatalog checks
3123         if enable_man=no.  (#134162, Julio M. Merino Vidal)
3124
3125 Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>
3126
3127         * configure.in: Remove checks for sgml2html. It was once
3128         used for building the linuxdoc version of the tutorial.
3129         Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)
3130
3131 Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>
3132
3133         Fix various compilation problems (#134312, David
3134         Hawthorne)
3135
3136         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
3137         g_return_if_fail(), not g_return_val_if_fail().
3138
3139         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
3140         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
3141         g_return_if_reached(), not g_return_val_if_reached().
3142         
3143         * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
3144         of some parameters.
3145
3146         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
3147         extra 'scale' parameter.
3148
3149 Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>
3150
3151         Various reentrancy fixes for widgets being destroyed
3152         out of focus-out-event. (#128821, Grant Gayed)
3153
3154         * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
3155         Ref window and widget over callbacks.
3156
3157         * gtk/gtkwidget.c (gtk_widget_hide)
3158           gtk/gtkwidget.c (gtk_widget_set_child_visible):
3159         Ref the widget before calling _gtk_window_unset_focus_and_default(),
3160         since that can call user callbacks.
3161
3162         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
3163         Do nothing if the widget isn't realized.
3164
3165 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
3166
3167         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
3168         active, RELIEF_NONE buttons that aren't depressed. This improves
3169         the appearance of buttons in notebook tabs.  (#109213, reported
3170         by Benjamin Otte, patch by Rodney Dawes)
3171
3172 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
3173
3174         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
3175         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
3176
3177 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
3178
3179         Fix for #104811, Padraig O'Briain:
3180
3181         * gtk/gtkscale.h:
3182         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
3183         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
3184         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
3185         text and its position from a GtkScale, to make it more accessible. 
3186         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
3187         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
3188         new GtkScale vfunc.
3189
3190 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
3191
3192         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
3193         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
3194
3195 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
3196
3197         * gtk/gtktooltips.h:
3198         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
3199         function to improve the accessibility of tooltips.  (#114851, 
3200         Padraig O'Briain)
3201
3202 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
3203
3204         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
3205         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
3206         add docs.  (#132847)
3207
3208 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
3209
3210         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
3211         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
3212
3213         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
3214         gdk_property_get call instead of 0.
3215
3216         * docs/reference/gdk/tmpl/properties.sgml: Document the above
3217         as GDK_NONE instead of simply 0.
3218
3219 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3220
3221         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
3222         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
3223
3224 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
3225
3226         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
3227         Correct the docs.
3228
3229 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
3230
3231         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
3232         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
3233         for automatic DND.  (#133485, Tommi Komulainen)
3234
3235 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
3236
3237         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
3238         debug output.
3239
3240 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3241
3242         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
3243         handler.  If no widget has the focus, try to give it to the
3244         default widget.  If there is no default widget, give it to the
3245         first button.  Fixes the cause for which #59707 was reopened.
3246
3247 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3248
3249         Fixes #134051.
3250
3251         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
3252         (icon_info_new): Don't initialize the ref_count field.
3253
3254 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3255
3256         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
3257         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
3258         <kaffeetisch@gmx.de>.
3259
3260 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
3261
3262         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
3263         focus [hv]adjustment correctly when the focus is located deeper
3264         down in the hierarchy.  (#133489)
3265
3266 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
3267
3268         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
3269         arbitrary low upper limits on the xpad, ypad, width and height
3270         properties.  (#129696, John Ellis)
3271
3272 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
3273
3274         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3275         Ugh. Don't try to free ints, even if they're stored in pointers.
3276         (#133997, Morten Welinder)
3277
3278 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3279
3280         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3281         Free the filters.  Fixes #133547, patch by Morten Welinder
3282         <mortenw@gnome.org>.
3283
3284 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
3285
3286         * gdk/x11/xsettings-client.c (read_settings): Avoid
3287         triggering an X error when the client->manager_window
3288         is None...makes logs look cleaner.
3289
3290         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
3291         GDK_NONE to mean AnyPropertyType as documented. (Reported 
3292         by Yu Shao)
3293
3294         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
3295         gdk_x11_screen_get_window_manager_name): Fix error trap
3296         we've been leaking since 2002... (#129538)
3297
3298 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3299
3300         Fixes the entry-related part of #133852.
3301
3302         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
3303         the file part of the entry if the selected item is a folder.
3304
3305 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3306
3307         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
3308
3309         * tests/prop-editor.c (create_prop_editor): Free the title.
3310         (object_changed): Free the children list.
3311
3312 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
3313
3314         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
3315         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
3316         these functions.
3317
3318 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3319
3320         * gtk/gtkfilechooserdefault.c (set_list_model): Request
3321         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
3322         filtering will work.  Perhaps we should have a way of aggregating
3323         info types to the model as filters get installed.
3324
3325 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
3326
3327         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3328         Ugh. Don't try to free ints, even if they're stored in pointers.
3329
3330 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3331
3332         Fix #132256.
3333
3334         * gtk/gtkfilechooserdefault.c
3335         (gtk_file_chooser_default_get_paths): Read the contents of the
3336         filename entry in both OPEN and SAVE mode.  In multiple-selection
3337         mode, add this to the selection from the file/folder list.
3338         (struct get_paths_closure): Add a path_from_entry field.
3339         (get_paths_foreach): Only add the iterated path if it is not the
3340         same as the path from the entry.
3341
3342 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3343
3344         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
3345         the folder is already open, add the requested info types to it.
3346
3347 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
3348
3349         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3350         type casts for the gtk_window_set_screen() call.
3351
3352 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
3353
3354         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
3355         come up on the same screen as the combo box.  (#133544, 
3356         Morten Welinder)
3357
3358 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
3359
3360         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3361         packing of the file selector.
3362
3363 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
3364
3365         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
3366         calls in array initializers, as some compilers seem to hate this.
3367         (#133216, Jonas Jonsson)
3368
3369 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
3370
3371         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3372         by on-demand instantiating a singleton object with a "changed" 
3373         signal. 
3374
3375         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3376         for GtkAccelMap::changed.
3377
3378 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
3379
3380         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
3381         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3382         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3383         Actually free the lists. Pointed out by Morten Welinder.
3384         
3385 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
3386
3387         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
3388         positions in UTF-8 strings correctly.  (#133315, Theppitak 
3389         Karoonboonyanan)
3390
3391 2004-02-06  Morten Welinder  <terra@gnome.org>
3392
3393         * gtk/gtktoolbar.c (show_menu): Cleanup using
3394         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
3395
3396 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3397
3398         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3399         list.  Fixes #133546.
3400
3401 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3402
3403         Fix #132327.
3404
3405         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3406         folder_hash field to keep a list of live folder objects.
3407         (gtk_file_system_unix_init): Create the folder_hash.
3408         (gtk_file_system_unix_finalize): Destroy the folder_hash.
3409         (gtk_file_system_unix_get_folder): Ref and return an existing
3410         folder if we have it around, otherwise return a new folder object.
3411         (struct _GtkFileFolderUnix): Add a field for the parent file system.
3412         (gtk_file_folder_unix_finalize): Remove the folder from the file
3413         system's hash table.
3414         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
3415         newly-created folder's parent.  Fixes #132327.
3416
3417 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
3418
3419         * gtk/gtkstock.c (builtin_items): Change the labels of the 
3420         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3421         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
3422         SuĂĄrez-Alvarez)
3423
3424 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
3425
3426         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
3427         function to plug a few memory leaks.  (#133544, Morten Welinder)
3428
3429 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
3430
3431         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
3432         Support mnemonic_activate here as well.
3433         
3434         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3435         the button, not the tree_view.
3436
3437 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3438
3439         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3440         function, to make mnemonic_activate work for combo boxes.
3441         (#133443, Paolo Borelli)
3442
3443 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3444
3445         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3446         to FALSE.  (#133539, Morten Welinder)
3447
3448 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
3449
3450         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3451         of the depth one check.  (#133488, Christian Persch)
3452
3453 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
3454
3455         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3456         the drawing of tearoff menu items which don't come first in their
3457         menu.  (#33311)
3458
3459 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
3460
3461         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
3462         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3463
3464 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
3465
3466         Fix #59707.
3467
3468         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3469         the focus chain.
3470         (gtk_label_button_press): Fix prototype.
3471         (gtk_label_button_release): Likewise.
3472         (gtk_label_motion): Likewise.
3473
3474         * tests/testgtk.c (create_message_dialog): For the dialog with
3475         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3476
3477 2004-02-04  Morten Welinder  <terra@gnome.org>
3478
3479         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
3480         bug 133411, apart from the leak.)
3481
3482 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
3483
3484         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3485         in g_object_new, since it depends on lower and upper being set.
3486
3487 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3488
3489         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3490         window not resizable.  Fixes #114032.
3491
3492 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3493
3494         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3495         documentation for the use_separator style property.
3496
3497 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3498
3499         Fix #68938.
3500
3501         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3502         GtkDialog; right now it only contains an ignore_separator field.
3503         (gtk_dialog_class_init): Register the private structure.
3504         (gtk_dialog_init): Initialize the priv->ignore_separator field.
3505         (_gtk_dialog_set_ignore_separator): New private function.
3506         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3507
3508         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3509         use_separator style property.
3510         (gtk_message_dialog_style_set): Change the dialog's separator
3511         based on the style property.
3512         (gtk_message_dialog_init): Set the dialog box to ignore the
3513         separator setting.
3514
3515 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
3516
3517         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3518         also dist gtkfilesystemwin32.[hc].
3519
3520 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
3521
3522         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3523         in rtl mode.  (#129071, chinen@jp.ibm.com)
3524
3525 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
3526
3527         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3528         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3529         mode.  (#107528)
3530
3531 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
3532
3533         Clip narrow columns in rtl-oriented tree views (#128089,  
3534         chinen@jp.ibm.com):
3535         
3536         * gtk/gtkstyle.c (gtk_default_draw_option): 
3537         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
3538         given area.
3539
3540         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
3541         Use the right clip area when calling gtk_cell_renderer_render().
3542         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
3543         Use the right clip area when calling gtk_paint_focus().
3544         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3545         Use the right clip area when calling gtk_paint_toggle() or
3546         gtk_paint_check().
3547         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3548         Clip to the expose_area when drawing the background rectangle.
3549         
3550 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3551
3552         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3553         Use a weak reference instead of ref()/unref(). (#60857, reported
3554         by Joshua N Pritikin)
3555
3556         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3557
3558 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
3559
3560         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
3561         init_hadjust_value and prev_width.
3562         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
3563         them here.
3564         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3565         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3566         here to properly handle the initial position of rtl-oriented
3567         tree views.  (#127581, chinen@jp.ibm.com)
3568
3569 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3570
3571         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3572
3573         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3574         we handle an event in the colums, and FALSE at the end if the
3575         event is not handled at all.
3576
3577 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
3578
3579         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3580         Don't access the level after removing the node, since that may
3581         kill the level.  (#132615, Crispin Flowerday)
3582
3583 2004-02-02  Tor Lillqvist  <tml@iki.fi>
3584
3585         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3586         in all cases. If no grab cursor specified, use the grabbing
3587         window's cursor. If the grabbing window has no cursor, use the
3588         default arrow cursor. (#118025)
3589
3590 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
3591
3592         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3593         latest in menu separation technology.
3594
3595 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3596
3597         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3598         we have to take our chances with).
3599         
3600         (Bug 97510)
3601
3602 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3603
3604         Fix bug 110224.
3605
3606         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3607         Remove unused variable 'result'
3608
3609         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3610
3611         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3612         here.
3613
3614 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
3615
3616         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3617         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3618
3619 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3620
3621         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3622         sliding when using the new API.
3623
3624 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3625
3626         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3627         item_area is positioned correctly. Fix #133070, reported by Jeroen
3628         Zwartepoorte.
3629
3630 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
3631
3632         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3633         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
3634         muppet)
3635
3636 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
3637
3638         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3639         the documentation for new_order.  (#124790, Tim-Philipp MĂŒller)
3640
3641 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
3642
3643         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3644         Reset use_resized_width when setting fixed_width.  (#108612, 
3645         Felipe Heidrich) 
3646
3647 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
3648
3649         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3650         GtkKeySnooperData.  (#132038, R. McFarland)
3651
3652 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3653
3654         Fixes #132975.
3655
3656         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3657         not FALSE.
3658         (gtk_file_system_volume_render_icon): Likewise.
3659
3660         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3661         Likewise.
3662
3663         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3664         not FALSE.
3665
3666         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3667         FALSE.
3668
3669         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3670         not FALSE.
3671         (gtk_text_iter_get_bytes_in_line): Likewise.
3672
3673         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3674         Likewise.
3675
3676         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3677         0.
3678
3679 2004-01-30  Not Zed  <NotZed@Ximian.com>
3680
3681         Fixes #132929.
3682
3683         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3684         handler when we clear the timeout id.
3685
3686 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3687
3688         Fix #129872, based on a patch by Jan Arne Petersen
3689         <jpetersen@uni-bonn.de>
3690
3691         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3692         Implement.
3693         (gtk_file_system_unix_add_bookmark): Implement.
3694         (gtk_file_system_unix_remove_bookmark): Implement.
3695
3696 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3697
3698         Fixes #132693.
3699
3700         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3701         use filename_from_path().  Also, check that the filename is
3702         absolute.
3703         (gtk_file_system_unix_get_folder): Likewise.
3704         (gtk_file_system_unix_create_folder): Likewise.
3705         (gtk_file_system_unix_make_path): Likewise.
3706         (gtk_file_system_unix_parse): Likewise.
3707         (gtk_file_folder_unix_get_info): Likewise.
3708         (filename_from_path): Removed.
3709
3710 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3711
3712         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
3713         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
3714
3715 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
3716
3717         * gdk/x11/gdkdrawable-x11.c: Revert changes from
3718         #113476 and go back to using XftDrawSetClip, because
3719         XftDrawSetClipRectangles is buggy in XFree86-4.3.
3720
3721 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
3722
3723         * gtk/gtktextlayout.c (line_display_iter_to_index)
3724         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
3725         adjust the preedit position for lines that include the
3726         preedit string. (#132353, Yao Zhang). How the heck
3727         did this work as well as it did?!?!
3728
3729         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
3730         Reverse change to change of XNFilterEvents event mask from
3731         #110493 -- it's documented and in the Xlib code an
3732         unsigned long. 
3733         
3734         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
3735         Return -1 rather than void to indicate no length limit.
3736         (#129548)
3737
3738 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
3739
3740         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
3741         (#64601, Murray Cumming)
3742
3743 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
3744
3745         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
3746         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
3747         
3748 2004-01-28  Richard Hult  <richard@imendio.com>
3749
3750         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
3751         Free font_desc.  Fixes #132805.
3752
3753 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3754
3755         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
3756         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
3757         Fixes #132574.
3758
3759 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
3760
3761         * gtk/gtkselection.c (gtk_selection_default_handler): 
3762         nul-terminate the target atoms. (#132656, Christian Persch)
3763
3764 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
3765
3766         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
3767         Don't leak path if we bail out early.  (#132505, Christian Persch)
3768
3769 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
3770
3771         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
3772         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
3773         reference counting on the user_data that is shared between
3774         multiple signal handlers, to avoid calling the destroy notify
3775         multiple times.  (#132447, Adam Hooper)
3776
3777 2004-01-28  Hans Breuer  <hans@breuer.org>
3778
3779         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
3780           gtk/gtkstock.[hc] : ... define ...
3781           gtk/gtkiconfactory.c : ... register ...
3782           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
3783         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
3784         IFace changes.
3785
3786         * gtk/gtk.def : added a bunch of new exported symbols
3787
3788         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
3789         on filter_info->display_name being NULL
3790
3791         * tests/testgtk.c : make testgtk --bench=all work again
3792
3793 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
3794
3795         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
3796         Don't leak string.  (#132482, Christian Persch)
3797
3798 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
3799
3800         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
3801         1.8 won't whine at us.
3802
3803 2004-01-28  Tor Lillqvist  <tml@iki.fi>
3804
3805         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
3806         synthesize_enter_event): Don' generate enter or leave events if
3807         the pointer is grabbed with owner_events off, and the grab event
3808         mask doesn't ask for them. (#129242)
3809
3810         (gdk_event_translate): Ditto for focus change events.
3811
3812 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
3813
3814         Fix #132314.
3815
3816         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
3817
3818         * gtk/gtkfilesystem.c: Likewise.
3819
3820         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
3821         icon-type code.
3822         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
3823         from GtkFileInfo to here.
3824         (gtk_file_system_unix_volume_render_icon): Implement.
3825
3826 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
3827
3828         * modules/input/imhangul-defs.h: 
3829         * modules/input/imhangul.c:
3830         * modules/input/Makefile.am: Remove broken hangul input module.
3831         
3832 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3833
3834         * gtk/gtktoolbar.c: Remove obsolete comment.
3835
3836         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
3837         SPACE_LINE_END): Make separators wider and taller, so they are
3838         easier to pick up when editing the toolbar.
3839
3840         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
3841         a bit, 
3842
3843         * gtk/gtktoolbar.c (rect_within): Formatting fix
3844
3845         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
3846         sliding feel more responsive by only restarting sliding when the
3847         placeholder actually changes its goal allocation.
3848
3849 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
3850
3851         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
3852         compiler warning.  (#122725, Kjartan Maraas)
3853         
3854 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
3855
3856         Make menus work better on Xinerama (#126150):
3857         
3858         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
3859         monitor_num on the screen of the menu, not of the attach widget.
3860
3861         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
3862         (gtk_menu_window_size_request): Remember the monitor_num.
3863
3864 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
3865
3866         Fix #105497; constify uses of GdkColor.
3867
3868         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
3869         (gdk_gc_set_rgb_bg_color): Constify.
3870         (gdk_gc_set_foreground): Constify.
3871
3872         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
3873         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
3874         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
3875
3876         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
3877         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
3878         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
3879
3880         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
3881         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
3882         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
3883
3884         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
3885         (gdk_draw_layout_with_colors): Constify.
3886
3887         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
3888         (gdk_pixmap_colormap_create_from_xpm): Constify.
3889         (gdk_pixmap_create_from_xpm): Constify.
3890         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
3891         (gdk_pixmap_create_from_xpm_d): Constify.
3892
3893         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
3894
3895         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
3896         (gtk_clist_set_background): Constify.
3897
3898         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
3899         (gtk_color_button_set_color): Constify.
3900
3901         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
3902         Constify and add a check for color != NULL.
3903         (gtk_color_selection_get_current_color): Add a check for color != NULL.
3904         (gtk_color_selection_set_previous_color): Constify and add a check
3905         for color != NULL.
3906         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
3907
3908         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
3909         (gtk_ctree_node_set_background): Constify.
3910
3911         * gtk/gtktext.c (gtk_text_insert): Constify.
3912         (insert_text_property): Constify.
3913         (text_properties_equal): Constify.
3914         (new_text_property): Constify.
3915
3916         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
3917         (gtk_widget_modify_fg): Constify.
3918         (gtk_widget_modify_bg): Constify.
3919         (gtk_widget_modify_text): Constify.
3920         (gtk_widget_modify_base): Constify.
3921
3922 2004-01-26  Christian Rose  <menthos@menthos.com>
3923
3924         * configure.in: Added "mi" to ALL_LINGUAS.
3925
3926 2004-01-25  Tor Lillqvist  <tml@iki.fi>
3927
3928         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
3929         WM_TRANSIENT_FOR property is being deleted, set the owner of the
3930         window to the root window (i.e., effectively unset it). (#132411)
3931
3932         * gdk/win32/gdkprivate-win32.h
3933         * gdk/win32/gdkglobals-win32.c
3934         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
3935         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
3936
3937         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
3938
3939 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3940
3941         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
3942         to map/unmap items on whether they are actually allocated outside
3943         the toolbar, not on whether that will eventually happen. Improves
3944         animation in the presence of overflown items.
3945
3946         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
3947         queue_resize() to so that the items will get their new goal
3948         values and the idle handler will not immediately return FALSE.
3949
3950         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
3951         make sure that a placeholder becoming invisible doesn't cause a
3952         return TRUE.
3953
3954         * gtk/gtktoolbar.c (get_item_size): Don't special case
3955         placeholders here.
3956
3957 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3958
3959         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
3960         try to pack icon if there actually is one.
3961
3962         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3963         OVERFLOWN items get an allocation even when they are
3964         unmapped. This ensures they will slide in properly.
3965
3966         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
3967         when there are overflown items that need to slide in. Also add
3968         comments and make formatting more readable.
3969
3970 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3971
3972         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
3973         Add a write-only property ::group to be consistent with
3974         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
3975         Andrieu)
3976
3977 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
3978
3979         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
3980         font description.  (#132168)
3981
3982 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
3983
3984         Fix #132247.
3985
3986         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
3987         mode.
3988         (set_select_multiple): Optionally notify about changes to the
3989         select-multiple property.
3990         (list_selection_changed): Change the condition for the editable row to
3991         test for save mode; this is more clear than testing for not being
3992         in multiple selection mode.
3993         (gtk_file_chooser_default_get_paths): Get impl->action directly
3994         rather than calling gtk_file_chooser_get_action().
3995         (entry_activate): Likewise.
3996         (set_select_multiple): Annotate about #133255.
3997         (update_chooser_entry): Likewise.
3998         (check_preview_change): Likewise.
3999         (tree_selection_changed): Likewise.
4000
4001 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
4002
4003         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
4004         when there are no columns, or all columns are hidden, #131402
4005
4006 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4007
4008         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
4009         mistake. Change back to 225.
4010
4011 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
4012
4013         * === Released 2.3.2 ===
4014
4015 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
4016
4017         * gtk/gtkicontheme.c: Patch from Christian Neumair
4018         to make warning string more translator friendly.
4019
4020         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
4021         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
4022         happy.
4023
4024         * configure.in: Require GLib-2.3.2, version 2.3.2,
4025         interface age 0, binary age 302.
4026
4027         * NEWS: Organized, added some names.
4028
4029 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
4030
4031         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
4032
4033 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
4034
4035         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
4036         GtkWidget::popup_menu.
4037
4038 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
4039
4040         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
4041         info after calling gtk_menu_do_remove(), since that function
4042         uses the attach info. Doh!
4043
4044         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
4045         for being 1 directly after setting it to 0.
4046
4047 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4048
4049         * NEWS: Updates
4050
4051 2004-01-22  Alexander Larsson  <alexl@redhat.com>
4052
4053         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
4054         Fix typo
4055
4056 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
4057
4058         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
4059         Free the path fields.
4060
4061         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
4062         the root_path, reported by <scott@asofyet.org>
4063         (gtk_file_system_model_finalize): Unref the file system.
4064
4065         * gtk/gtkfilefilter.c (filter_rule_free): default:
4066         g_assert_not_reached().
4067         (gtk_file_filter_finalize): Free the filter->name, reported by
4068         <scott@asofyet.org>
4069         (gtk_file_filter_finalize): Free the rules list.
4070
4071 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
4072
4073         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
4074         color button when an alpha is set.
4075         (gtk_color_button_set_alpha): redraw the color button when an
4076         alpha is set.
4077
4078 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
4079
4080         Fix #131869: 
4081         
4082         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
4083         a reference to the group while emitting the signals.
4084
4085         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
4086         destroy notify which does not only unref, but also resets
4087         the action_group property of the action.
4088
4089 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
4090
4091         * NEWS: Added details about GtkFileChooser changes.
4092
4093 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
4094
4095         Fix #99425, add accessor functions for GtkPaned's children.
4096
4097         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
4098         (gtk_paned_get_child2): New function.
4099
4100 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
4101
4102         * NEWS: Start of 2.3.2 section.
4103
4104 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
4105
4106         Fixes for #130370, based on a patch by Michael Meeks:
4107         
4108         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
4109         adjust cell positions and recalculate row and column counts after
4110         removing an item.
4111
4112         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
4113
4114         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
4115         appending items.
4116
4117         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
4118         to avoid an unintended recursion.
4119
4120 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
4121
4122         Fix #131418.
4123
4124         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
4125         function.
4126         (gtk_file_chooser_default_set_property): Use
4127         set_select_multiple().  Also, re-set this mode to single if the
4128         file chooser is set to Save mode.
4129         (entry_activate): Handle the case where the entry is completely
4130         empty *and* its current folder does exist.  Also, there is need to
4131         test for select_multiple here now that we ensure that it won't
4132         happen during Save mode.
4133
4134 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4135
4136         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
4137         _gtk_toolbar_get_default_space_size ();
4138
4139         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
4140         get_space_size): Use them here.
4141
4142 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4143
4144         * tests/testgtk.c (create_toolbar): Set a small size request and
4145         make the window resizable, to test mapping/unmapping of buttons.
4146
4147         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
4148         gtk_toolbar_insert_tool_item): remove these functions.
4149
4150         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
4151         toolbar_content_show_all, gtk_toolbar_hide_all,
4152         toolbar_content_hide_all): New functions. 
4153
4154         Ignore show_all/hide_all for buttons created in compatibility mode.
4155
4156         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
4157         gtk_toolbar_hide_all): Make sure buttons are ignored by
4158         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
4159         
4160         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
4161
4162         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
4163         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
4164
4165         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
4166         could become NULL.
4167
4168         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
4169         instead of prepending them.
4170
4171         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
4172         'elapsed' for all items.
4173
4174         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
4175         into bitfields.
4176
4177         * gtk/gtktoolbar.c: Many formatting fixes
4178         
4179 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
4180
4181         * configure.in: Add the necessary magic to create
4182         po-properties/Makefile.
4183
4184 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
4185
4186         The second part of the fix for #114351 (see also 
4187         gdk-pixbuf/ChangeLog and po/ChangeLog):
4188
4189         * Makefile.am (SUBDIRS): Add po-properties.
4190
4191         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
4192
4193         * gdk/gdkintl.h (P_): 
4194         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
4195
4196         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
4197         bind_textdomain_codeset for gtk20-properties as well.
4198
4199 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4200
4201         * gtk/gtktoolbar.c: 
4202
4203         Fix rest of #128678: Implement all the toolbar_content()
4204         methods for the old API case.
4205
4206 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4207
4208         * gtk/gtktoolbar.c: 
4209
4210         Phase 1 of fixing #128678: Only access ToolbarContent through a
4211         set of new functions:
4212
4213         toolbar_content_expose, toolbar_content_visible,
4214         toolbar_content_size_request, toolbar_content_is_homogeneous,
4215         toolbar_content_get_child_requisition,
4216         toolbar_content_is_placeholder, toolbar_content_disappearing,
4217         toolbar_content_get_state, toolbar_content_child_visible,
4218         toolbar_content_get_goal_allocation,
4219         toolbar_content_get_allocation,
4220         toolbar_content_set_start_allocation,
4221         toolbar_content_get_start_allocation, toolbar_content_get_expand,
4222         toolbar_content_set_goal_allocation,
4223         toolbar_content_set_child_visible, toolbar_content_size_allocate,
4224         toolbar_content_set_state, toolbar_content_get_widget,
4225         toolbar_content_set_disappearing,
4226         toolbar_content_set_size_request,
4227         toolbar_content_toolbar_reconfigured,
4228         toolbar_content_retrieve_menu_item, 
4229         toolbar_content_new_tool_item, toolbar_content_destroy,
4230         toolbar_content_is_separator
4231
4232         Also fix #127092.
4233         
4234 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4235
4236         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
4237         item ID.
4238
4239 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4240
4241         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
4242         overflow menu.
4243         
4244         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
4245         [#127726]
4246
4247 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4248
4249         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
4250         has_editable field.
4251         (_gtk_file_system_model_add_editable): New function.
4252         (_gtk_file_system_model_remove_editable): New function.
4253         (gtk_file_system_model_get_value): Return appropriate values for
4254         the temporary editable row.
4255         (_gtk_file_system_model_get_info): Handle the editable row.
4256         (_gtk_file_system_model_get_path): Likewise.
4257
4258         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
4259         Removed an unused variable.
4260         (toolbar_button_new): Optionally show the button.
4261         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
4262         (toolbar_create): Add a "New Folder" button for Save mode.
4263         (error_building_filename_dialog): New helper function.
4264         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
4265         (create_file_list): Connect to the "edited" signal of the text
4266         cell renderer.  Store the name column and text renderer in the
4267         impl structure.
4268         (renderer_edited_cb): New callback.
4269         (gtk_file_chooser_default_set_property): Show/hide the "New
4270         folder" button when the save action changes.
4271         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
4272         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
4273         tree_model.
4274         (get_list_file_info): Likewise!
4275         (list_icon_data_func): Handle the path being NULL.
4276         (new_folder_button_clicked): New callback.
4277         (list_name_data_func): If we are on the editable row, set the text
4278         to "Type name of new folder".
4279         (list_selection_changed): Handle the editable row.
4280         (list_mtime_data_func): Likewise.
4281
4282         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
4283         NULL, not FALSE.
4284         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
4285
4286 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
4287
4288         The first part of the fix for #114351 (see also 
4289         gdk-pixbuf/ChangeLog and po/ChangeLog):
4290         
4291         * gtk/gtkintl.h: 
4292         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
4293
4294         * gdk/gdkdisplaymanager.c:
4295         * modules/input/gtkimcontextxim.c:
4296         * gtk/*.c:  Mark property blurbs and nicks with P_().
4297         
4298 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4299
4300         Fix #130969.
4301
4302         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
4303         editing_canceled signal.
4304
4305         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
4306         "editing-canceled" signal.
4307         (gtk_cell_renderer_editing_canceled): New function.
4308
4309         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
4310         Call gtk_cell_renderer_editing_canceled().
4311
4312 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4313
4314         * gtk/gtkfilechooserdefault.c
4315         (gtk_file_chooser_default_set_property): Do not allow setting
4316         select_multiple when in Save mode.
4317         (set_list_model): No need to nullify the list_model and
4318         sort_model.
4319         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
4320         (get_paths_foreach): Likewise.
4321
4322         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
4323         documentation about folder mode.
4324         (gtk_file_chooser_get_uri): Likewise.
4325
4326 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4327
4328         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
4329         get_volume_for_path() method.
4330         (struct _GtkFileSystemIface): Finally removed the list_roots() and
4331         get_root_info() methods, and the "roots-changed" signal.
4332
4333         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
4334         function.
4335         (gtk_file_system_list_roots): Removed.
4336         (gtk_file_system_get_root_info): Removed.
4337
4338         * gtk/gtkfilesystemunix.c
4339         (gtk_file_system_unix_get_volume_for_path): Implement.
4340         (get_root_volume): New helper function.
4341         (gtk_file_system_unix_list_volumes): Use get_root_volume().
4342         (gtk_file_system_unix_list_roots): Removed.
4343         (gtk_file_system_unix_get_root_info): Removed.
4344
4345         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
4346         accept a NULL root_path.
4347         (struct _GtkFileSystemModel): Add a field to remember the
4348         root_path.
4349         (_gtk_file_system_model_new): Store the root_path in the model
4350         structure.
4351         (find_and_ref_path): Stop going up the hierarchy at the root_path
4352         of the model.  Also, don't return prematurely when walking up the
4353         hierarchy.
4354
4355         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4356         the rules_hint.
4357         (struct _GtkFileChooserDefault): Added a current_volume_path field.
4358         (set_tree_model): New function; create the folder tree model here.
4359         (create_folder_tree): Don't create the model here.
4360         (set_list_model): Set the show_hidden flag on the list model.
4361
4362 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
4363
4364         * gtk/gtknotebook.h:
4365         * gtk/gtknotebook.c (gtk_notebook_append_page): 
4366         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
4367         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
4368         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
4369         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
4370         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4371         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
4372
4373 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
4374
4375         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4376         a 'newly-allocated' to hint that the list should be freed after
4377         use.
4378
4379 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
4380
4381         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4382         to after handling the button presses in the TreeView to avoid
4383         getting multiple selection_changes()
4384
4385 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
4386
4387         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
4388         Karoonboonyanan)
4389
4390 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
4391
4392         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4393         Don't leak name and stock_id.  (#131358, Morten Welinder)
4394
4395 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
4396
4397         * docs/faq/gtk-faq.sgml: Updates to Section 5
4398
4399 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4400
4401         * gtk/gtkradioaction.c: Add a writable group property to align
4402         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
4403
4404 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
4405
4406         * docs/faq/gtk-faq.sgml: Update info on using autoconf
4407
4408 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
4409
4410         * tests/testmerge.c: Adjust to the new connect_proxy signals.
4411
4412         * gtk/gtkuimanager.c
4413         * gtk/gtkactiongroup.c
4414         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4415         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4416         removes the confusion between the disconnect_/connect_proxy signals 
4417         and the (unrelated) virtual functions of the same name and aligns
4418         the setup with the pre_/post_activate signals.
4419
4420 2004-01-12  Jody Goldberg <jody@gnome.org>
4421
4422         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4423           with no submenus otherwise it looks like we activate every time a
4424           submenu opens.
4425
4426 2004-01-12  Jody Goldberg <jody@gnome.org>
4427
4428         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4429
4430 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
4431
4432         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
4433         (gtk_accel_map_lock_path): 
4434         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4435         entry is silently created during lock_path(), and treated as an error 
4436         during unlock_path(). These changes have been requested by Tim Janik.
4437
4438 2004-01-10  Jody Goldberg <jody@gnome.org>
4439
4440         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4441         s/merge_signals/ui_manager_signals/ for readability.
4442         (gtk_ui_manager_class_init) : add pre_activate and post_activate
4443           signals.
4444         (cb_proxy_pre_activate) : new.
4445         (cb_proxy_post_activate) : new.
4446         (gtk_ui_manager_insert_action_group) : connect the proxies for
4447           GtkActionGroup::pre/post_activate
4448         (gtk_ui_manager_remove_action_group) : disconnect them.
4449
4450         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4451           'sensitive', and 'visible' properties.  Also add pre_activate and
4452           post_activate signals to help deal with activations at a higher
4453           level (eg GtkUIManager)
4454         (gtk_action_group_init) : init sensitive and visible
4455         (gtk_action_group_set_property) : add sensitive and visible
4456         (gtk_action_group_get_property) : add sensitive and visible
4457         (gtk_action_group_get_sensitive) : new.
4458         (gtk_action_group_get_visible) : new.
4459         (cb_set_action_sensitivity) : new with minor optimization that only
4460           signals sensitivity changes if the action could possibly change.
4461         (cb_set_action_visiblility) : ditto.
4462         (gtk_action_group_set_sensitive) : new.  walk the actions directly
4463           rather than using notify::sensitive because that is simpler, easier
4464           to read, and more efficient.
4465         (gtk_action_group_set_visible) : ditto.
4466         (gtk_action_group_add_action) : Each action can only be in 1 group,
4467           set GtkAction::action_group.
4468         (gtk_action_group_remove_action) : clear it.
4469         (gtk_action_group_add_toggle_actions_full) : warning suppression.
4470         (gtk_action_group_add_radio_actions_full) : warning suppression.
4471         (_gtk_action_group_emit_pre_activate) : new protected routine for use
4472           by GtkAction.
4473         (_gtk_action_group_emit_post_activate) : ditto.
4474
4475         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4476         (gtk_action_init) : initialize it.
4477         (gtk_action_get_property) : get.
4478         (gtk_action_set_property) : set it via
4479         (gtk_action_set_action_group) : new function.
4480         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4481           with the logical sensitivity (action & group) rather than the simple
4482           action::sensitivity.
4483         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4484           logical visibility (action & group) rather than the simple
4485           action::visible.  Use widget show/hide directly.
4486         (connect_proxy) : handle the custom sensitivity handler.
4487           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4488           directly, with special cases for TOOL_BUTTON.  Still not especially
4489           good it might be useful to handle label/use_underline by parmspec
4490           lookup.  Those are likely to be implemented by custom types, and are
4491           assumed to exist in GtkToolItem.
4492         (disconnect_proxy) : disconnect the new sensitivity handler.
4493         (_gtk_action_emit_activate) : add pre/post signals.
4494         (gtk_action_activate) : use logical sensitivity.
4495         (gtk_action_is_sensitive) : logical sensitivity.
4496         (gtk_action_get_sensitive) : actual sensitivity.
4497         (closure_accel_activate) : use logical sensitivity.
4498
4499 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
4500
4501         * gtk/gtkuimanager.c: Introduce a new parser state for 
4502         accelerator elements to avoid misparsing files containing 
4503         such elements.  (#131035, Morten Welinder)
4504
4505 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
4506
4507         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4508
4509 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
4510
4511         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4512
4513 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4514
4515         * gtk/gtkuimanager.h:
4516         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4517         obtain a list of toplevel widgets constructed by the ui manager.
4518
4519         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
4520         the values can be combined for gtk_ui_manager_get_toplevels().
4521
4522         * tests/testmerge.c: Add a "Dump toplevels" button to test 
4523         gtk_ui_manager_get_toplevels().
4524
4525 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
4526
4527         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4528         
4529         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
4530         by Anders Carlsson  (#130464).
4531
4532 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
4533
4534         * gtk/gtkmain.h: 
4535         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
4536         gint to gboolean.  (#130718, reported by Johannes Weißl)
4537
4538 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
4539
4540         * gtk/gtkactiongroup.h: 
4541         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4542         Remove the redundant name and stock_id parameters, adjust all callers.
4543
4544 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
4545
4546         * gtk/gtkaction.h: 
4547         * gtk/gtkaction.c (gtk_action_new):  
4548         * gtk/gtktoggleaction.h: 
4549         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
4550         * gtk/gtkradioaction.h: 
4551         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
4552         functions for actions.
4553
4554         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4555         (gtk_action_group_add_toggle_actions_full): 
4556         (gtk_action_group_add_radio_actions_full): and use the
4557         new functions here.  (#125322, Patch by Jeff Frank)
4558
4559 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
4560
4561         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
4562         docs.
4563
4564 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
4565
4566         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4567         (shortcuts_append_home), (shortcuts_append_desktop),
4568         (shortcuts_append_paths), (shortcuts_add_volumes),
4569         (shortcuts_append_bookmarks), (create_shortcuts_model),
4570         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4571         to the shortcuts_model.
4572
4573         (remove_bookmark_button_clicked_cb),
4574         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4575         bookmarks can be removed. Fixes #129873
4576
4577 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4578
4579         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4580         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4581         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
4582         respectively. Tests #82203.
4583
4584 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
4585
4586         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4587         0777 as the mode for mkdir() and let the umask do the right
4588         thing.  Fixes #121819.
4589
4590         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4591         can return NULL; handle this.  Fixes #129565.
4592
4593 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
4594
4595         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4596         that proceeded the end-of-sentence punctuation. Fixes: #130353.
4597
4598 2004-01-06  Jody Goldberg <jody@gnome.org>
4599
4600         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
4601           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4602
4603 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4604
4605         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4606         call shortcuts_add_bookmarks() here.
4607         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4608         iter.
4609         (shortcuts_append_paths): Don't display error dialogs here.
4610         (create_file_list): Remove the @#$% rules hint.
4611
4612 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4613
4614         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4615         function.
4616         (toolbar_create): Do not use a toolbar widget, just an hbox
4617         instead.  Add the bookmarks buttons and the current folder label
4618         here.
4619         (create_filename_entry_and_filter_combo): Create the filter combo
4620         here.
4621         (filter_create): Don't show the filter combo initially.
4622         (up_button_cb): Renamed from toolbar_up_cb().
4623         (create_shortcuts_buttons): Removed.
4624
4625 2004-01-05  Murray Cumming  <murrayc@usa.net>
4626
4627         * gdk/gdkimage.h: Added <public> documentation to the struct, as
4628         suggested by Owen Taylor.
4629
4630 2004-01-05  Jody Goldberg <jody@gnome.org>
4631
4632         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4633           I would have prefered outdent, but compatibility seems more
4634           important.
4635         * gtk/gtkstock.c (builtin_items) : ditto.
4636         * gtk/gtkstock.h : ditto.
4637         * gtk/stock-icons/Makefile.am : ditto.
4638         * gtk/stock-icons/stock_text_indent_16.png :
4639         * gtk/stock-icons/stock_text_indent_24.png :
4640         * gtk/stock-icons/stock_text_unindent_16.png :
4641         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4642
4643 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4644
4645         * gtk/gtkradiotoolbutton.[ch]
4646         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4647         group is a GtkRadioButton, not a GtkWidget.
4648
4649 2004-01-04  Hans Breuer  <hans@breuer.org>
4650
4651         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
4652         gdk_window_set_keep_(above|below) to make DND work again.
4653         Thanks to Alif Wahid for noticing.
4654
4655         * gdk/gdk.def : update externals
4656
4657         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4658
4659         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
4660           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4661           gtk/stock-icons/stock_harddisk_16.png 
4662           gtk/stock-icons/stock_harddisk_24.png 
4663         Harddisk stock icons for file system implementations. Beside
4664         FLOPPY and CDROM there is now HARDDISK, probably some 
4665         GTK_STOCK_NETWORK would be useful, but I could not find one.
4666
4667 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
4668
4669         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4670         Patch from Andrew Moise (#130462).
4671
4672 2004-01-01  Jody Goldberg <jody@gnome.org>
4673
4674         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4675           visible_vertical.
4676         (gtk_action_class_init) : here.
4677         (gtk_action_init) : here.
4678         (gtk_action_set_property) : here.
4679         (gtk_action_get_property) : here.
4680         (connect_proxy) : and here.
4681
4682 2003-12-30  Jody Goldberg <jody@gnome.org>
4683
4684         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
4685           utility routine for use in derived GtkActions with the replicated code
4686           from.
4687         (gtk_action_group_add_actions_full) : here.
4688         (gtk_action_group_add_toggle_actions_full) : here.
4689         (gtk_action_group_add_radio_actions_full) : and here.
4690
4691 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4692
4693         * configure.in: Added "bn" to ALL_LINGUAS.
4694
4695 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4696
4697         * bn.po: Added Bangla translation by 
4698         of Ankur group <gnome-translation@bengalinux.org>.
4699
4700 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
4701
4702         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
4703         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
4704         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
4705         week_start values other than 0 and 1, e.g. 6 will let weeks start
4706         on Saturday.  (#130349, Roozbeh Pournader) 
4707
4708 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4709
4710         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4711         
4712         Fix to allow reasonable pointer behavior in window mode when an
4713         extended input device reports an incorrect resolution of 0.  Fixes
4714         bug #123546
4715         
4716 2003-12-31  Christian Neumair  <chris@gnome-de.org>
4717
4718         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
4719         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
4720         plurals (#123847).
4721
4722 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
4723
4724         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4725         (gtk_action_group_add_toggle_actions_full):
4726         (gtk_action_group_add_radio_actions_full): Pull accelerator key
4727         from the stock item if stock_id is given, but accelerator 
4728         not.  (Noticed by Jeff Franks and Jody Goldberg)
4729
4730         * tests/testmerge.c: Remove the accelerator from the "Open" entry
4731         to test the above change.
4732         
4733 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
4734
4735         Make show_all() work for the extra and preview widgets; reported
4736         by Paolo Maggi.
4737
4738         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
4739         preview widget.
4740         (set_extra_widget): show_all() the extra widget.
4741
4742 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4743
4744         * gtk/gtkuimanager.c (do_updates): 
4745         * gtk/gtktoolbar.c (slide_idle_handler): 
4746         * gtk/gtkdnd.c (gtk_drag_update_idle): 
4747
4748         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
4749         functions. (#130157, patch from Olexiy Avramchenko).
4750         
4751 2003-12-29  Anders Carlsson  <andersca@gnome.org>
4752
4753         * gtk/gtkradiotoolbutton.c:
4754         * gtk/gtkradiotoolbutton.h:
4755         * gtk/gtkseparatortoolitem.c:
4756         * gtk/gtkseparatortoolitem.h:
4757         * gtk/gtktoggletoolbutton.c:
4758         * gtk/gtktoggletoolbutton.h:
4759         * gtk/gtktoolbar.c:
4760         * gtk/gtktoolbar.h:
4761         * gtk/gtktoolbutton.c:
4762         * gtk/gtktoolbutton.h:
4763         * gtk/gtktoolitem.c:
4764         * gtk/gtktoolitem.h:
4765         Update my e-mail address.
4766         
4767 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
4768
4769         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
4770         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
4771         paths.  (#73207, reported by Havoc Pennington)
4772
4773 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4774
4775         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
4776         instead of VISIBLE to determine whether we should stop
4777         sliding. (#130018, reported by Christian Persch).
4778
4779 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
4780
4781         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
4782         Don't use first_action without initializing it if n_entries is 0.
4783
4784 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
4785
4786         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
4787         Add the missing _get_ to the name of the non-Xcursor version of
4788         this function.  (noticed by Torsten Schoenfeld)
4789
4790 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
4791
4792         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
4793         muppet.
4794
4795 2003-12-24  Jody Goldberg <jody@gnome.org>
4796
4797         * gtk/gtkactiongroup.h : Add some const to the char * in
4798           GtkActionEntry*.  We're reccomending people pass static strings to
4799           them, and not freeing them.  This stems to flood of warnings that
4800           result.
4801         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
4802           temp vars to const to match above.
4803         (gtk_action_group_add_toggle_actions_full) : ditto.
4804         (gtk_action_group_add_radio_actions_full) : ditto.
4805
4806 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
4807
4808         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
4809         gtk_clipboard_request_targets() and 
4810         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
4811
4812 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
4813
4814         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
4815         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
4816         * gtk/gtkcalendar.c (draw_arrow_left):
4817         (draw_arrow_right): Removed. 
4818         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
4819         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
4820         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
4821         insensitive.  (#97376)
4822
4823 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
4824
4825         * gtk/gtkuimanager.c (update_node): 
4826         (update_smart_separators): 
4827         (_gtk_menu_is_empty): 
4828         (find_menu_position): 
4829         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
4830         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
4831         (gtk_combo_box_relayout): Fix memory leaks caused by the
4832         failure to free the result of gtk_container_get_children().
4833
4834 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4835
4836         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
4837         properties when the window becomes a toplevel. When a window that
4838         was previously a toplevel becomes a toplevel again, restore its
4839         window type. Also make sure the focus window is removed from the
4840         XID hash when it is destroyed. (#117579, reported by Morten
4841         Welinder, patch reviewed by Owen Taylor).
4842
4843 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
4844
4845         * gtk/gtkmenushell.h: 
4846         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
4847         to emit the "cancel" signal on a menu shell.
4848
4849         * gtk/gtkmenu.c (gtk_menu_key_press): 
4850         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
4851         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
4852         new function instead of directly emitting the 
4853         signal.  (#81803, Owen Taylor)
4854
4855 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
4856
4857         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
4858         Fix the "language_set" blurb.  
4859         
4860 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
4861
4862         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
4863         all of treeview when resizing (#110074, patch from Soeren Sandmann).
4864
4865 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
4866
4867         Fixes #108458.
4868
4869         * gtk/gtkcelllayout.[ch]: added a reorder method.
4870
4871         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
4872         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
4873
4874         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
4875         (gtk_cell_view_cell_layout_reorder): ditto.
4876
4877         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
4878         (gtk_combo_box_cell_layout_reorder): ditto.
4879
4880         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
4881         (gtk_entry_completion_reorder): ditto.
4882
4883 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
4884
4885         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
4886         instead of strcmp (#117127, suggestion from Soeren Sandmann).
4887
4888 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
4889
4890         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
4891         here from gtk_menu_real_insert(),
4892         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
4893         (gtk_menu_reorder_child): run _do_insert after inserting the child
4894         (unbreaks _reorder_child, reported by Tim Janik).
4895
4896 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
4897
4898         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
4899         g_date_strftime() for UTF-8 correctness; use Julian dates to
4900         simplify the function.
4901
4902 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
4903
4904         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
4905         Test extra_width, not extra_height, when determining whether to
4906         set extra_width.  (#129647, Jan Arne Petersen)
4907
4908 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
4909
4910         Fix the behaviour of insensitive actions, which was broken
4911         when gtk_action_activate() was changed to pay attention to 
4912         sensitivity  (#129557, Christian Persch)
4913         
4914         * gtk/gtkaction.h: 
4915         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
4916         function to emit an activate signal without regard to sensitivity.
4917
4918         * gtk/gtkradioaction.c: 
4919         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
4920         instead of gtk_action_activate().
4921
4922 2003-12-18  Jody Goldberg <jody@gnome.org>
4923
4924         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
4925           to ensure that the base hicolor theme is installed.  Silently
4926           failing to produce icons that apps assume exist in the theme seems
4927           like a bad idea.
4928
4929 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
4930
4931         Fixes #110249, reworked patch from Joshua N Pritikin.
4932
4933         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
4934         (gtk_tree_model_sort_tree_drag_source_init),
4935         (gtk_tree_model_sort_row_draggable),
4936         (gtk_tree_model_sort_drag_data_get),
4937         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
4938
4939         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
4940         (gtk_tree_model_filter_tree_drag_source_init),
4941         (gtk_tree_model_filter_row_draggable),
4942         (gtk_tree_model_filter_drag_data_get),
4943         (gtk_tree_model_filter_drag_data_delete): ditto.
4944
4945 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
4946
4947         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
4948         for "*" and "/" (expand/collapse all). (#110195, reported by
4949         Calum Benson).
4950
4951 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
4952
4953         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4954         clear the extra_attrs list if we set "text" after "markup".
4955         (Fixes #121933, Federico Mena Quintero).
4956
4957 2003-12-18  Alexander Larsson  <alexl@redhat.com>
4958
4959         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
4960         Fix typo that used the wrong x/y values for the x1, y1 point
4961         (#129605)
4962
4963 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
4964
4965         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4966         (gtk_cell_renderer_text_finalize),
4967         (gtk_cell_renderer_text_get_property),
4968         (gtk_cell_renderer_text_set_property), (get_layout): added language
4969         and language_set properties like GtkTextTag has. (#103800, reported
4970         by Owen Taylor).
4971
4972 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
4973
4974         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
4975         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
4976         "activate" signal.  (#129358, Ka-Hing Cheung)
4977
4978 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
4979
4980         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
4981         the logical flag backwards in the expand_collapse_cursor_row
4982         bindings, fixing.
4983         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
4984         flag when !logical and in RTL. (Fixes #107527, reported by
4985         Noah Levitt).
4986
4987 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
4988
4989         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
4990         editing when activated by the left mouse button. (#106869,
4991         patch from Evan Martin).
4992
4993 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
4994
4995         Migrating all cell renderers to use the new instance private data
4996         construction.
4997
4998         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
4999         longer being used.
5000
5001         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
5002         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
5003         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
5004         GtkCellRendererInfo handling, migrate to instance private data.
5005
5006         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
5007         (gtk_cell_renderer_text_start_editing): moved focus_out_id
5008         from GtkCellRendererInfo to text renderer private data.
5009
5010         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
5011         (gtk_cell_renderer_pixbuf_class_init),
5012         (gtk_cell_renderer_pixbuf_finalize),
5013         (gtk_cell_renderer_pixbuf_get_property),
5014         (gtk_cell_renderer_pixbuf_set_property),
5015         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
5016         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
5017         migrate to instance private data.
5018
5019         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
5020         (gtk_cell_renderer_toggle_get_property),
5021         (gtk_cell_renderer_toggle_set_property),
5022         (gtk_cell_renderer_toggle_render): migrate to instance private data.
5023
5024 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
5025
5026         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
5027         (gtk_cell_renderer_text_get_property),
5028         (gtk_cell_renderer_text_set_property), (get_layout): add a
5029         single-paragraph-mode property, use private instance data.
5030         (Fixes #114943, reported by Morten Welinder).
5031
5032 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
5033
5034         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
5035         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
5036         by Matthias Clasen).
5037
5038 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
5039
5040         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
5041         if we set a new stock_id and there was a previous stock_id, unref
5042         the pixbuf (since it was used to renderer the previous stock_id
5043         and stock_id might have been set to NULL now). (Fixes #122966).
5044
5045 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
5046
5047         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
5048
5049         Check that index is not bigger than level array length
5050         also when depth is 1. Now get_iter_first correctly return
5051         FALSE when the model is empty (#129411).
5052
5053 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
5054
5055         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
5056         try to strcmp or strlen if we managed to normalize and casefold
5057         the string correctly. Fixes crashes with non-UTF8 strings.
5058         (#121617, Patch from Tim-Philipp MĂŒller).
5059
5060 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
5061
5062         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
5063         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
5064         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
5065         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
5066         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
5067         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
5068
5069 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
5070
5071         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
5072         (#122727, patch from Kjartan Maraas).
5073
5074 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
5075
5076         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
5077
5078         * gtk/gtktreeview.c (gtk_tree_view_class_init),
5079         (gtk_tree_view_init), (gtk_tree_view_set_property),
5080         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
5081         fixed_height_mode property,
5082         (intialize_fixed_height_mode), (do_validate_rows),
5083         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
5084         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
5085         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
5086         (gtk_tree_view_insert_column): implement fixed height mode,
5087         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
5088         (gtk_tree_view_insert_column_with_attributes),
5089         (gtk_tree_view_insert_column_with_data_func): update docs.
5090
5091         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
5092
5093 2003-12-07  Murray Cumming  <murrayc@usa.net>
5094  
5095         * gtk/gtktreemodel.c:
5096         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
5097         Actually call the default signal handlers instead of calling the
5098         marshallers themselves in an endless loop. These default signal handler
5099         callbacks are not actually set so this is only noticed by gtkmm at
5100         the moment. Bug 123923.
5101
5102 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
5103
5104         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5105         "volumes-changed" signal.  Added the following methods:
5106                 list_volumes
5107                 volume_free
5108                 volume_get_base_path
5109                 volume_get_is_mounted
5110                 volume_mount
5111                 volume_get_display_name
5112                 volume_render_icon
5113
5114         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
5115         "volumes-changed" signal.
5116         (gtk_file_system_list_volumes): New function.
5117         (gtk_file_system_volume_free): New function.
5118         (gtk_file_system_volume_get_base_path): New function.
5119         (gtk_file_system_volume_get_is_mounted): New function.
5120         (gtk_file_system_volume_mount): New function.
5121         (gtk_file_system_volume_get_display_name): New function.
5122         (gtk_file_system_volume_render_icon): New function.
5123
5124         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
5125         (gtk_file_system_unix_volume_get_base_path): Implement.
5126         (gtk_file_system_unix_volume_get_is_mounted): Implement.
5127         (gtk_file_system_unix_volume_mount): Implement.
5128         (gtk_file_system_unix_volume_get_display_name): Implement.
5129         (gtk_file_system_unix_volume_render_icon): Implement.
5130
5131         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5132         Added a field for the "volumes-changed" signal connection.
5133         (gtk_file_chooser_default_set_property): Connect to
5134         "volumes-changed" on the file system.
5135         (gtk_file_chooser_default_finalize): Disconnect from
5136         "volumes-changed".
5137
5138         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
5139         function.
5140         (shortcuts_get_index): New helper function.
5141         (shortcuts_insert_path): Can now insert volumes as well as paths.
5142         (shortcuts_append_paths): Don't take is_file_system_root.
5143         (shortcuts_add_volumes): New function.
5144         (shortcuts_append_file_system_roots): Removed.
5145         (create_shortcuts_model): Use shortcuts_add_volumes().
5146         (remove_bookmark_button_clicked_cb): Check that the index is
5147         within range.
5148         (bookmarks_check_add_sensitivity): Take volumes into account.
5149         (shortcuts_get_selected_index): New helper function.
5150         (remove_bookmark_button_clicked_cb): Use
5151         shortcuts_get_selected_index().
5152         (bookmarks_check_remove_sensitivity): Likewise.
5153         (shortcuts_select_func): Likewise.
5154         (shortcuts_row_activated_cb): Handle volumes as well as normal
5155         paths.
5156         (shortcuts_activate_volume): New function.
5157         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
5158         bookmarks_iter fields.
5159         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
5160         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
5161         (remove_bookmark_rows): Removed.
5162         (shortcuts_add_bookmarks): New function; moved most of the code
5163         over from shortcuts_append_bookmarks().
5164         (shortcuts_append_bookmarks): Add the separator node here, and
5165         then call shortcuts_add_bookmarks().
5166
5167 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
5168
5169         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
5170         (G_OS_UNIX/G_OS_WIN32 stuff)
5171
5172 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
5173
5174         Do not interpret distant clicks as double-clicks  (#116541,
5175         Bernhard Walle):
5176         
5177         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
5178         double_click_distance, button_x and button_y.
5179         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
5180
5181         * gdk/gdkdisplay.h: 
5182         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
5183         New function to set the double click distance on a display.
5184
5185         * gdk/gdkevents.c: Take double click distance into account
5186         when generating single, double or triple clicks.
5187
5188         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
5189
5190         * gdk/x11/gdkevents-x11.c: Add the XSetting 
5191         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
5192
5193 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5194
5195         * gtk/gtkdialog.c: Sigh, revert the change.
5196
5197 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5198
5199         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
5200         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
5201         allows sane behavior for #101293.
5202
5203 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
5204
5205         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
5206         getter and setter gtk_button_[sg]et_alignment(), to set the
5207         alignment of the child.  (#70961, Jody Goldberg)
5208
5209 2003-12-14  Hans Breuer  <hans@breuer.org>
5210
5211         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
5212         similar as the other filesystem placement 'constants' (dynamic
5213         resolving on win32)
5214
5215         * gtk/gtkfilechooserwidget.c : handle file system to win32
5216         renaming here as will
5217         * gtk/gtkfilesystemwin32.c : implement render_icon
5218
5219         * gtk/gtk.def gdk/gdk.def : updated externals
5220
5221         * gdk/win32/gdkdisplay-win32.c : make it compile without
5222         <multimon.h> - i.e. even older sdk
5223
5224         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
5225         with TIMERPROC prototype
5226
5227         * gdk/win32/gdkwindow-win32.c : older msvc does not know
5228         BITMAPV5HEADER (from win xp) either
5229
5230         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
5231         not defined
5232
5233         * tests/testfilechooser.c : recent GLib crashes on 
5234         g_print ("%s", NULL) so avoid this
5235
5236 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5237
5238         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
5239         followed by calls to CloseClipboard(). Add a missing call to
5240         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
5241         API_CALL macro in more places.
5242
5243 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5244
5245         Merge from stable:
5246
5247         * gdk/gdkdisplaymanager.c: Mark default_display static.
5248
5249         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
5250
5251         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
5252         output.
5253
5254         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
5255         --gdk-debug=events. In general, output just one line of debugging
5256         output for each Windows message, plus one line for each GDK event
5257         generated. Indent all lines according to window procedure nesting
5258         level.
5259
5260         (inner_window_procedure): Rename from real_window_procedure.
5261
5262         (find_real_window_for_grabbed_mouse_event): Don't get misled when
5263         the point is in the non-client (decoration) area of the window
5264         returned by WindowFromPoint(). Return the root window in that
5265         case.
5266
5267         (build_pointer_event_state): Test also MK_XBUTTON1 and
5268         MK_XBUTTON2 (buttons 4 and 5).
5269
5270         (synthesize_enter_event): Track the mouse leaving the window in
5271         the event being generated, not the one mentioned in the Windows
5272         message.
5273
5274         (propagate): Test for NULL parent earlier. Improves event
5275         generation from a grabbed pointer. Part of fix for #107320.
5276
5277         (handle_stuff_while_moving_or_resizing): New function, to
5278         dispatch the main loop (once).
5279
5280         (resize_timer_proc): New function, set to be called by an inerval
5281         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
5282
5283         (gdk_event_translate): Drop unused return_exposes parameter.
5284
5285         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
5286
5287         On WM_SYSKEYUP, generate a key release event also for just the Alt
5288         key.
5289
5290         On WM_MOUSELEAVE, generate a leave event of type
5291         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
5292         top-level window, and left the app completely.
5293
5294         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
5295         calls resize_timer_proc() at regular intervals. On
5296         WM_EXITSIZEMOVE, kill the timer.
5297
5298         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
5299         and dispatch the main loop (by calling
5300         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
5301         Herman Bloggs.
5302
5303         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
5304         also wintab messages.
5305
5306         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
5307         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
5308         the window's owner. Fixes #118093, reported by Maxime Romano.
5309
5310 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
5311
5312         * gdk/win32/gdkwindow-win32.[ch]: Implement
5313         gdk_window_set_icon_list() for Win32, with support for big and
5314         small icons and support for alpha-channel icons under Windows
5315         XP. Replaces the previous implementation of gdk_window_set_icon().
5316         (#128762)
5317         
5318 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
5319
5320         * gdk/x11/gdkprivate-x11.h: 
5321         * gdk/x11/gdkx.h: 
5322         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
5323         Rename from _gdk_x11_register_event_type(), added API docs.
5324         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
5325         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
5326         all callers.  (#121471, Bill Haneman)
5327
5328 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
5329
5330         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
5331         of gc is ignored.  (#101983, Sebastian Rittau)
5332
5333 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
5334
5335         A trick for a faster treeview, step 1. Patch to short circuit
5336         _build_tree(), inspired by Jonathan (#80868).
5337
5338         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
5339         flags by default,
5340         (gtk_tree_view_build_tree): don't even try to recurse when the
5341         model says that it is a list, remove flag unsetter,
5342         (gtk_tree_view_set_model): change flag setting logic.
5343
5344         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
5345         propagate whether or not the child model has _IS_LIST set.
5346
5347         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5348         ditto.
5349
5350 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
5351
5352         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
5353         since it broke logical keynav. 
5354         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5355         direction in inverted scrollbars here instead.
5356
5357 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
5358
5359         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5360         "gravity" for RTL mode in a better way: Keep the distance from 
5361         the upper end of the page to the upper bound constant. This also 
5362         fixes problems with the initial position of the viewport in RTL 
5363         mode.  (#129063)
5364         
5365 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
5366
5367         Combo box flipping support.
5368
5369         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5370         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5371         patch from Matthias Clasen),
5372         (gtk_combo_box_popup): fix popup window alignment if there's a
5373         cell view frame visible (#126518, patch from Semion Chichelnitsky).
5374
5375         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5376         (#128348, patch from Semion Chichelnitsky).
5377
5378 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
5379
5380         * examples/gtkdial/gtkdial.c:
5381         * examples/menu/menu.c:
5382         * examples/scribble-xinput/scribble-xinput.c:
5383         * examples/progressbar/progressbar.c:
5384         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5385         in examples. (#129074, Olexiy Avramchenko)
5386         * examples/calendar/Makefile:
5387         * examples/rangewidgets/Makefile:
5388         * examples/menu/Makefile: Allow deprecated functions in
5389         examples which use deprecated widgets.
5390
5391 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
5392
5393         * gdk/gdk.c (gdk_threads_set_lock_functions): 
5394         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5395
5396 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
5397
5398         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
5399         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
5400
5401 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
5402
5403         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
5404         unnecessarily reserve space for arrows in RTL mode.  (#129075,
5405         Semion Chichelnitsky)
5406
5407 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
5408
5409         Changes to allow "no input" windows (#64613):
5410         
5411         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5412         field accept_focus.
5413         
5414         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5415         set it.
5416
5417         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5418         and gtk_window_get_focus() and gtk_window_set_focus().
5419
5420         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
5421         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
5422         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5423         Initialize the accept_focus field to TRUE.
5424
5425         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
5426         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
5427         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
5428         Implementations for the various backends. The Win32 and linux-fb
5429         implementations set the accept_focus field, but don't use it yet 
5430         to actually implement noinput windows. The X implementation updates
5431         the WM_HINTS to select the globally active input model (see the
5432         ICCCM) if accept_focus is FALSE.
5433
5434         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5435         WM_TAKE_FOCUS message if accept_focus is FALSE.
5436         
5437 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
5438
5439         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5440         Added toolbar items for the filter separator and the filter item.
5441         (toolbar_create): Add the filter widgets here.
5442         (filter_create): Renamed from create_filter().  Don't store the
5443         alignment in the impl structure, just return it.
5444         (toolbar_show_filters): New function.
5445         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5446         (gtk_file_chooser_default_remove_filter): Likewise.
5447         (gtk_file_chooser_default_constructor): Don't create the filter
5448         widget here.
5449         (struct _GtkFileChooserDefault): Added a field for a current
5450         folder label.
5451         (gtk_file_chooser_default_constructor): Create the folder label.
5452         (gtk_file_chooser_default_set_current_folder): Set the current
5453         folder label.
5454
5455         * tests/testfilechooser.c (main): Dramatically improved the
5456         usability of the extra widget through careful word choice.
5457
5458 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5459
5460         * gdk/gdk.h: include gdkspawn.h.
5461
5462 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5463
5464         * gdk/linux-fb/gdkspawn-fb.c,
5465           gdk/win32/gdkspawn-win32.c,
5466           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5467         s/gdk_spawn/gdk_spawn_on_screen/.
5468
5469 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5470
5471         Utility functions for multi-screen applications which need
5472         to ensure launched applications appear on a certain screen.
5473         See bug #95897.
5474         
5475         * gdk/gdkspawn.h: header for multi-screen launching
5476         support.
5477         
5478         * gdk/Makefile.am: install gdkspawn.h.
5479         
5480         * gdk/x11/Makefile.am:
5481         * gdk/x11/gdkspawn-x11.c:
5482         (gdk_spawn_make_environment_for_screen): private function
5483         to create an environment vector with DISPLAY set appropriately
5484         for the screen.
5485         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5486         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5487         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5488         
5489         * gdk/linux-fb/Makefile.am,
5490           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5491         
5492         * gdk/win32/Makefile.am,
5493           gdk/win32/gdkspawn-win32.c: win32 impl.
5494
5495 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
5496
5497         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5498         rather than "Username's Home" (#125964).
5499         (shortcuts_selection_changed_cb): New callback, check the
5500         sensitivity of the Remove Bookmark button at the right time.
5501         (shortcuts_row_activated_cb): It is not necessary to check the
5502         sensitivity here.
5503
5504 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
5505
5506         Improve the GDK API for dealing with group leaders (#119375):
5507         
5508         * gdk/gdkwindow.h: 
5509         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
5510         get the group leader of a toplevel window as a GdkWindow.
5511
5512         * gdk/gdkdisplay.h: 
5513         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
5514         function to get the default group leader as a GdkWindow.
5515
5516         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5517         the GdkWindow of the default group leader.
5518         
5519         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5520         for the default group leader.
5521
5522 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
5523
5524         * gdk/gdkkeysyms.h:
5525         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5526         Ukrainian_GHE_WITH_UPTURN. (#128529)
5527
5528 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
5529
5530         * gtk/gtkfilechooserdefault.c:
5531         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5532         behavior of the GtkFileSelection to determine selected paths in
5533         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5534
5535 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
5536
5537         * gtk/gtkfilechooserdefault.c
5538         (gtk_file_chooser_default_get_paths): Don't declare the closure
5539         struct twice.
5540         (get_paths_foreach): Likewise.
5541
5542 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
5543
5544         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
5545
5546 2003-12-08  Tor Lillqvist  <tml@iki.fi>
5547
5548         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5549         with MSVC and old headers. (#126933, John Ehresman)
5550
5551 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
5552          
5553         * === Released 2.3.1 ===
5554
5555         * NEWS: Updates for 2.3.1
5556
5557         * configure.in: Version 2.3.1, interface age 0, binary age 301.
5558
5559         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5560         Rename from gtk_menu_item_real_can_activate_accel() to
5561         match GTK+ convention, improve comment.
5562
5563         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5564         can ::can-activate-accel signal.
5565
5566         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5567         in comment.
5568
5569         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
5570         up comment.
5571         
5572         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5573         into the .c file.
5574
5575 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
5576
5577         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5578         missing 'else'. (#128816, Jorn Baayen)
5579
5580 2003-12-02  Michael Meeks  <michael@ximian.com>
5581
5582         Based on a patch by Martin Kretzschmar; #122448
5583         
5584         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5585         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5586         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5587         function pointers. Deprecate the global gdk_threads_mutex variable.
5588         
5589         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5590         extracted from GTK_THREADS_ENTER/LEAVE macros.
5591         (gdk_threads_init): init gtk_threads_[un]lock if not set.
5592         (gdk_threads_set_lock_functions): impl.
5593
5594         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5595
5596 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
5597
5598         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5599         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
5600         Gonzalez)
5601
5602 2003-12-07  Tor Lillqvist  <tml@iki.fi>
5603
5604         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5605         return value from SendMessage(WM_SETICON). That is the old
5606         icon. Fixes GDI resource leak. (#128559, Tim Evans)
5607
5608         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5609         have a pointer grab active with a grab cursor set, destroy that
5610         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5611
5612 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
5613
5614         * configure.in: Added Thai (th) to ALL_LINGUAS.
5615
5616 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
5617
5618         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5619         RTL flipping for GtkAlignment.  (#127585)
5620
5621 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
5622
5623         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
5624         popup window when in RTL mode.  (#127578)
5625
5626 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
5627
5628         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5629         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5630         before doing anything to prevent garbage returns.
5631
5632 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
5633
5634         * gtk/gtkviewport.c: Implement RTL flipping for 
5635         GtkViewport: Adjust the "gravity" when resizing
5636         This is a bit flickery in RTL mode.  (#107526)
5637
5638 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
5639
5640         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
5641         GtkScrolledWindow: the vertical scrollbar shows up on the left
5642         side in RTL mode.  (#107526)
5643
5644 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
5645
5646         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5647         tabs displayed at the top/bottom are rearranged, and tabs on
5648         the left/right are displayed at the opposite edge.  (#96630)
5649
5650 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
5651
5652         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5653         gtk_label_set_attributes() take NULL. See bug #128517.
5654
5655 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
5656
5657         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5658         the in_change flag.
5659         (completion_idle_callback): Use a temporary list store and re-set
5660         it on the completion rather than modifying the old one.  We are
5661         re-reading the folder anyway, and this gets rid of non-atomicity
5662         problems.
5663
5664 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5665
5666         Decouple impl->current_folder from the selection in the folder
5667         tree.  This is so that going to /home/federico/.foo (e.g. from a
5668         bookmark) will work even if show_hidden == FALSE.  The folder tree
5669         needs to be fixed in this case to show such folders explicitly.
5670
5671         * gtk/gtkfilechooserdefault.c
5672         (gtk_file_chooser_default_set_current_folder): When changing
5673         folders, do the entry and list model work here, instead of
5674         tree_selection_changed().
5675         (struct _GtkFileChooserDefault): Added a changing_folder flag
5676         again, dum de dum.
5677         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5678
5679 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
5680
5681         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
5682         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
5683
5684 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5685
5686         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5687         bookmarks buttons with the location entry.
5688
5689         * gtk/gtkfilechooserdefault.c
5690         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5691         bookmarks buttons and the location entry.
5692
5693 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5694
5695         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5696         shortcuts tree as a drag destination.
5697         (shortcuts_drag_data_received_cb): New callback.
5698         (get_file_info): Also fetch information on whether the file is a folder.
5699         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5700         (error_could_not_add_bookmark_dialog): New function.
5701         (shortcuts_add_bookmark_from_path): New helper function.
5702         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5703         (shortcuts_row_activated): We no longer need the changing_folder flag.
5704         (struct _GtkFileChooserDefault): Likewise.
5705
5706 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5707
5708         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5709         disappearing placeholders that are still visible.
5710
5711         * gtk/gtktoolbar.c: formatting fixes
5712
5713         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
5714         disappearing, for placeholders that are going to disappear.
5715
5716         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
5717
5718 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
5719
5720         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
5721         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5722         Patch from <chinen@jp.ibm.com> to handle RTL support for column
5723         resizers, #127874
5724
5725 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
5726
5727         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
5728         Don't use freed memory.  (#127698, Taavi Talvik) 
5729
5730 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
5731
5732         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
5733
5734 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
5735
5736         * gtk/gtkuimanager.c: Remove debug define.
5737
5738 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
5739
5740         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
5741         and the attach widget.
5742
5743         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
5744         sensitivity and the parent menu.
5745
5746         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
5747         checks whether accelerators may activate a widget. the default handler
5748         demands the widget be sensitive and visible+viewable.
5749
5750         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
5751
5752 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
5753
5754         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
5755         popup menus.  (#127227)
5756
5757 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
5758
5759         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
5760
5761 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5762
5763         * gtk/gtkradiotoolbutton.[ch]
5764         (gtk_radio_tool_button_new_from_widget): Make this function take a
5765         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
5766         Cumming)
5767
5768 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5769
5770         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
5771
5772 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5773
5774         * gtk/gtktoolbar.c: remove variable
5775         n_overflowed_menu_items_when_dnd_started
5776
5777 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5778
5779         Rework sliding algorithm.
5780         - No more weird jumping when items are dragged off and added to
5781         the toolbar,
5782         - More natural item movement
5783
5784         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
5785         function is now responsible for calculating intermediate positions
5786         during item sliding. It is also responsible for starting sliding
5787         if items disappear.  Also turn off expanding when there is an
5788         overflow menu.
5789         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
5790         (slide_idle_handler): New function. All the sliding is now done by
5791         gtk_toolbar_size_allocate(), so the idle handler now just checks
5792         if there is more sliding to be done.
5793         (compute_intermediate_allocation, position): new functions
5794         calculating intermediate steps in the slide animations. The new
5795         animation algorithm uses a constant speed instead of a constant
5796         must-be-finished-within time.
5797         (struct _ToolbarContent): use 
5798         GtkAllocation goal_allocation; and 
5799         GtkAllocation start_allocation; instead of 
5800         gint start/goal_width;
5801
5802         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
5803         documentation
5804
5805 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
5806
5807         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
5808         positioning Xinerama-aware.  (#127332)
5809
5810 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
5811
5812         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
5813         boundaries visible in fake Xinerama mode.
5814
5815 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
5816
5817         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
5818         for the gtk_widget_hide() call.
5819
5820 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
5821
5822         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
5823         from David Hampton to fix sorting on booleans.
5824
5825 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5826
5827         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
5828         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
5829         by Frederic Crozat).
5830
5831 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
5832
5833         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
5834
5835 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5836
5837         Fixes to problems reported by Iain Holmes:
5838
5839         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
5840         throw up an error dialog if the desktop doesn't exist.
5841         (error_message): Handle the case where there is no real toplevel
5842
5843         yet.
5844         (list_model_filter_func): Always let folders pass through (patch
5845         by Dave Malcolm).
5846
5847 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
5848
5849         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
5850         to a somewhat more logical place,
5851         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
5852
5853 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
5854
5855         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
5856         the popup when it is visible, popdown when there are less chars
5857         than the minimum key length in the entry,
5858         (gtk_entry_completion_changed): popdown when the entry is empty.
5859
5860         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
5861         size request of the vscrollbar to (-1, 0), to get a nicely sized
5862         completion treeview (Fixes #126573, reported by Piers Cornwell),
5863         (_gtk_entry_completion_resize_popup): show/hide the action_view
5864         based on items.
5865
5866 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5867
5868         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
5869         off the dialog's separator (thanks to Iain Holmes).
5870
5871 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5872
5873         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
5874         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
5875         on items that have a submenu. (#120104).
5876
5877 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5878
5879         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
5880         "ItemState" field indicating the overflowed-ness etc. of the item.
5881         (gtk_toolbar_size_allocate): update the field here.
5882
5883 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5884
5885         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
5886         to the alignment.  Use the HIG-specified spacing between the
5887         filter label and the combo.
5888         (create_filename_entry): Use HIG-specified spacing between the
5889         location label and the entry.
5890         (gtk_file_chooser_default_constructor): Don't use vertical padding
5891         around the filename entry.
5892
5893 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5894
5895         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5896         render_icon virtual method.
5897
5898         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
5899
5900         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
5901         Implement as a stub for now.
5902
5903         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
5904         gtk_file_system_render_icon().
5905         (list_icon_data_func): Likewise.
5906         (toolbar_create): Set the toolbar style to icons only.
5907
5908         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
5909         Fix doc comments.
5910
5911 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
5912
5913         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
5914         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
5915
5916 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
5917
5918         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
5919         only unselect all items if the treeview has focus. (Fixes bug
5920         reported by Marco Pesenti Gritti).
5921
5922 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
5923
5924         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
5925         number of actions is "matches + actions - 1". (Fixes #126572).
5926
5927 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
5928
5929         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
5930         mem leaks (#119435).
5931
5932 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
5933
5934         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
5935         try to fetch the child back, since we do know that it is already
5936         gone by now (#126493, Marco Pesenti Gritti).
5937
5938 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
5939
5940         Fixes based on comments from Owen Taylor, #125264.
5941
5942         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
5943         variable,
5944         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
5945         a resize,
5946         (gtk_cell_view_get_size_of_row): new function,
5947         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
5948         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
5949         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
5950         s/cellview/cell_view/ in the function definitions, so they match
5951         with the header file.
5952
5953         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
5954         flag again (:, and use gtk_cell_view_get_size_of_row instead of
5955         the measurer, remove _set_size_request call,
5956         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
5957         instead of the measurer,
5958         (gtk_combo_box_style_set): queue a resize,
5959         (gtk_combo_box_size_request): update of _remeasure call,
5960         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
5961         (gtk_combo_box_cell_layout_pack_end),
5962         (gtk_combo_box_cell_layout_clear),
5963         (gtk_combo_box_set_model): get rid of the measurer,
5964         (gtk_combo_box_cell_layout_add_attribute),
5965         (gtk_combo_box_cell_layout_set_cell_data_func),
5966         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
5967         resize instead of calling _remeasure.
5968
5969 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
5970
5971         * gdk-pixbuf/Makefile.am
5972         * modules/input/Makefile.am: Use install-data-hook for
5973         gdk-pixbuf.loaders and gtk.immodules install generation targets.
5974         Fixes #112806.
5975
5976         * gtk/gtkexpander.h: Apply missing declarations from #124449.
5977
5978 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
5979
5980         Fix for #119555, Peter Zelezny:
5981         
5982         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
5983         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
5984         by removing the _ prefix. 
5985         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
5986         gdk/gdkwindow.c: Adjust all callers.
5987
5988 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
5989
5990         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
5991         the action is sensitive.  (#127187, Christian Persch)
5992
5993 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
5994
5995         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
5996
5997 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
5998
5999         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
6000
6001         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
6002         mapped, else resize_popup.
6003
6004         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
6005         (_gtk_entry_completion_popup): moved all popup resizing code to
6006         _gtk_entry_completion_resize_popup, and show the window when there
6007         are more than zero items in the completion list again (sigh).
6008
6009 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
6010
6011         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
6012         "use_markup" property. See bug #124449.
6013
6014         * gtk/gtkexpander.c:
6015         (gtk_expander_class_init),
6016         (gtk_expander_init), (gtk_expander_set_property),
6017         (gtk_expander_get_property), (gtk_expander_set_label),
6018         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
6019         Add a "use_markup" property and use it when creating the
6020         child label.
6021
6022 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
6023
6024         Temporary size requisition fix. Will fix it for real tonight.
6025
6026         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
6027         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
6028         a good width for the child,
6029         (gtk_combo_box_cell_layout_add_attribute),
6030         (gtk_combo_box_set_cell_data_func),
6031         (gtk_combo_box_cell_layout_clear_attributes): update.
6032
6033 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
6034
6035         Fixes #124373, Murray Cumming.
6036
6037         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
6038         is no longer construct only,
6039         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
6040         (gtk_combo_box_menu_fill): new functions,
6041         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
6042         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
6043         (gtk_combo_box_list_destroy): updated,
6044         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
6045         functions,
6046         (gtk_combo_box_set_model): is now public, updated,
6047         (gtk_combo_box_get_model): small update.
6048
6049         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
6050         text_column property is no longer construct only,
6051         (gtk_combo_box_entry_set_text_column): now public,
6052         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
6053         new/changed functions.
6054
6055         * tests/testcombo.c: updated.
6056
6057 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
6058
6059         Reinstate fixes for (#124212, Marco Pesenti Gritti):
6060         
6061         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6062         warnings for popups.
6063         (_gtk_menu_is_empty): Return FALSE for non-menus.
6064
6065 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
6066
6067         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
6068         gtk_cell_view_cell_layout_clear instead of trying to free the
6069         structure ourselves here. (#125726, Morten Welinder).
6070
6071 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
6072
6073         * gtk/gtkfilechooser.[hc]: 
6074         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
6075         confuse gtk-doc.
6076
6077 2003-11-15  Hans Breuer  <hans@breuer.org>
6078
6079         * gdk/makefile.msc gdk/gdk.def 
6080             gtk/gtk.def gtk/makefile.msc.in : updated
6081         * tests/makefile.msc : added all the new tests
6082
6083         * gtk/gtkfilefilter.c(finalize) : initialize filter
6084         from object not from itself
6085
6086         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
6087         modified as less as posible to have aworking implementation
6088         on win32. There maybe the desire to merge the unchanged pats into
6089         a common base class.
6090         Also implemented a simple glib based bookmark handling, which
6091         is currently missing in gtkfilesystemunix.[hc] but can be copied
6092         over there.
6093         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
6094
6095         * gdk/win32/gdkwindow-win32.c : implement 
6096         gdk_window_set_keep_above() and gdk_window_set_keep_below()
6097
6098         * tests/testmerge.c : don't include unistd.h unconditionally,
6099         #define STDOUT_FILENO if it isn't defined
6100
6101         * tests/testfilechooser.c : make it compile on win32
6102
6103 2003-11-15  Tor Lillqvist  <tml@iki.fi>
6104
6105         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
6106         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
6107
6108 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
6109
6110         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
6111
6112 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
6113
6114         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
6115         GTK_DATADIR/{icons,pixmaps} instead of 
6116         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
6117
6118 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
6119
6120         Changes to improve menu positioning on Xinerama (#108328, #126150):
6121         
6122         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
6123         window of the menuitem to determine the monitor. This fixes some
6124
6125         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
6126         to store the monitor on which the menu is to be positioned.
6127
6128         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
6129         in the GtkMenuPrivate struct and fetch the monitor geometry after
6130         calling the position_func, in case it has been changed.
6131
6132         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
6133         to be used in GtkMenuPositionFunc implementations for setting
6134         the monitor_num field in GtkMenuPrivate.
6135
6136         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
6137         gtk_menu_set_monitor.
6138
6139 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
6140
6141         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
6142         label for the empty list. String change.  (#95446, Tomas Ă–gren)
6143
6144 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
6145
6146         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
6147         the definition of the values.  (#123361, Marco Pesenti Gritti)
6148
6149 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
6150
6151         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
6152         (#122941, Egmont Koblinger)
6153
6154 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
6155
6156         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
6157         opacity entry widget. Change tooltip for opacity widgets. (#126426)
6158
6159 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
6160
6161         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
6162         affect window menu position when popped from keyboard. (#102660)
6163
6164 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6165
6166         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
6167         are using the old API, make all items "is_important". That way
6168         BOTH_HORIZ will continue to show both icon and label in old API
6169         mode.
6170
6171 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
6172
6173         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
6174         Remember the new value in all cases.  (#126276, Damon Chaplin)
6175
6176 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
6177
6178         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
6179         functions with the toplevel as argument.
6180
6181         * demos/gtk-demo/geninclude.pl.in: Change the signature
6182         of GDoDemoFunc to take a widget argument
6183
6184         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
6185         * demos/gtk-demo/tree_store.c (do_tree_store): 
6186         * demos/gtk-demo/textview.c (do_textview): 
6187         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
6188         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
6189         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
6190         * demos/gtk-demo/panes.c (do_panes): 
6191         * demos/gtk-demo/menus.c (do_menus): 
6192         * demos/gtk-demo/list_store.c (do_list_store): 
6193         * demos/gtk-demo/images.c (do_images): 
6194         * demos/gtk-demo/hypertext.c (do_hypertext): 
6195         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
6196         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
6197         * demos/gtk-demo/dialog.c (do_dialog): 
6198         * demos/gtk-demo/colorsel.c (do_colorsel): 
6199         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
6200         * demos/gtk-demo/button_box.c (do_button_box): 
6201         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
6202         as argument, and make new windows or dialogs appear on the
6203         same screen.  (#80388)
6204
6205 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
6206
6207         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
6208         visible-window default to TRUE, as documented and 
6209         implemented. (#126270 Damon Chaplin)
6210
6211 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
6212
6213         * gtk/gtkicontheme.c: 
6214         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
6215         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
6216         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
6217         2.4 additions.
6218
6219 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
6220
6221         Changing GtkFileChooserEntry to use GtkEntryCompletion.
6222
6223         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
6224         a GtkListStore for the completion list.  Create a
6225         GtkEntryCompletion and attach it to the chooser entry.
6226         (gtk_file_chooser_entry_finalize): Unref the completion store.
6227         (completion_match_func): New callback for the GtkEntryCompletion.
6228         (completion_idle_callback): Fill the completion store with filenames.
6229
6230 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
6231
6232         * gtk/gtkwindow.c (gtk_window_set_role): 
6233         * gtk/gtkwindow.c (gtk_window_set_title): 
6234         * gtk/gtkwidget.c (gtk_widget_set_name): 
6235         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
6236         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
6237         safe for self-assignment.  (#122745, Soeren Sandmann)
6238
6239 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
6240
6241         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
6242         (#126369, Olexiy Avramchenko)
6243
6244 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
6245
6246         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
6247         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
6248         consistency of titles.  (#126193, Damon Chaplin)
6249
6250 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
6251
6252         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
6253         menus to be transient for the toplevel they were torn off from.
6254         (gtk_menu_get_toplevel): Auxiliary function to find the
6255         toplevel of a menu.  (#54775, Jon-Kare Hellan)
6256
6257 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
6258
6259         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
6260         min-position and max-position.  (#58431, Padraig O'Briain)
6261
6262 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
6263
6264         * gtk/gtkcolorsel.c (update_color): 
6265         (make_label_spinbutton): 
6266         (adjustment_changed): Change the ranges for Saturation and
6267         Value to be 0-100 instead of 0-255, since these axes of HSV
6268         are usually expressed in percent.  (#121519, Gregory Merchan)
6269
6270 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
6271
6272         * docs/faq/gtk-faq.sgml: More 2.x updates
6273
6274 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
6275
6276         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
6277         pkg-config command error, update copyright.
6278
6279 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6280
6281         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
6282         well.  Use a helper function.
6283         (shortcuts_append_home): Display an error box if necessary.
6284         (shortcuts_append_desktop): Likewise.
6285         (add_bookmark_button_clicked_cb): Likewise.
6286         (gtk_file_chooser_default_select_path): Likewise.
6287         (entry_activate): Likewise.
6288         (shortcuts_append_paths): New helper function.
6289         (shortcuts_append_file_system_roots): Use
6290         shortcuts_append_paths().
6291         (shortcuts_append_bookmarks): Likewise.
6292
6293 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
6294
6295         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
6296         menu is NULL.
6297         (update_smart_separators): Remove some unneeded ifs.
6298
6299 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
6300
6301         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6302         these usable in C++. Forgot this file in my Oct 11 commit.
6303
6304 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6305
6306         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
6307         icon to the "Add bookmark" button.
6308
6309         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
6310         * gtk/gtkfilesystemmodel.c: Likewise.
6311         * gtk/gtkfilechooser.c: Likewise.
6312         * gtk/gtkfilechooserdefault.c: Likewise.
6313
6314 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
6315
6316         * gdk/gdk.c: 
6317         * gdk/gdkinternals.h: 
6318         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
6319         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
6320         Xinerama mode when no actual Xinerama setup is found. 
6321
6322 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6323
6324         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
6325         (create_shortcuts_tree): Don't call the above.
6326         (bookmarks_changed_cb): Likewise.
6327         (tree_selection_changed): Unselect everything from the shortcuts
6328         list.  This is the behavior that Mac OS has.
6329         (toolbar_add_item): Return the item.
6330         (toolbar_create): Store the up_button in the impl structure.
6331         (toolbar_check_sensitivity): New function to set the sensitivity
6332         of the "Up" button in the toolbar.
6333         (tree_selection_changed): Call toolbar_check_sensitivity().
6334
6335 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
6336
6337         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
6338         not set a border width for the toplevel container.
6339         (toolbar_create): New function; create a simple toolbar for the
6340         file chooser.
6341         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
6342         the table, as per the HIG.
6343         (gtk_file_chooser_default_init): Likewise, for the default
6344         implementation's vbox.
6345
6346         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
6347         note that NULL is a valid return value for the parent path.
6348
6349 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6350
6351         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
6352         Change on activation, not selection change (temporary
6353         workaround for #125955, needed for keynav, likely
6354         the right UI anyways.)
6355
6356         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
6357         Don't allow the separator node to be selected.
6358
6359         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6360         Set the focus chain so that the entry gets focused first.
6361         (Not really right after initial focusing, maybe we
6362         should just have a gtk_file_chooser_focus_entry() that
6363         we call from gtk_file_chooser_dialog on creation.)
6364
6365 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
6366
6367         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6368         residual call to gtk_window_get_private().
6369
6370 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
6371
6372         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6373         into GtkWindowPrivate structure, fixing ABI breakage
6374         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6375         to instance-private-data.
6376
6377 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6378
6379         * gtk/gtktoolbar.c (get_item_requisition): delete this function
6380         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6381         instead of re-calculating for each item.
6382         (gtk_toolbar_size_allocate): Update comments
6383
6384 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6385
6386         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6387         placeholders when include_internals is TRUE.
6388
6389 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6390
6391         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6392         item 0 is a placeholder. (#125826)
6393         * tests/testtoolbar.c: add an assertion that 
6394         gtk_toolbar_get_nth_item (0) != NULL
6395
6396 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6397
6398         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6399         logical == 0.(#125826)
6400
6401 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6402
6403         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6404         return the index of a real item.
6405         (get_nth_item) assert that the returned items is not a
6406         placeholder.  (#125826, Marco Pesenti Gritti).
6407         
6408 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
6409
6410         * gtk/gtkcellrendererseptext.c
6411         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6412         text is NULL, rather than also doing it if it is an empty string.
6413
6414 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
6415
6416         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6417         gtk_message_dialog_new_with_format): Allow NULL
6418         for message_format, as described in the docs and
6419         as worked previously. (#125759, Richard Hult)
6420
6421         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6422         Use g_markup_vprintf_escaped() to escape arguments.
6423
6424         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6425         so there is some way to set literal markup.
6426
6427 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
6428  
6429         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6430         the call to gdk_error_trap_pop() to the right place,
6431         fixing a problem where we'd pop() too many times 
6432         when bailing out. (#123302, Thomas Leonard)
6433         
6434 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
6435
6436         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
6437         Fix infinite recursion. (#125679, Christian Persch)
6438
6439 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
6440
6441         * docs/faq/gtk-faq.sgml: further 2.x updates:
6442         mirrors,compiling,g_main_context_iteration
6443
6444 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6445
6446         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6447         function; remove gtk_toolbar_highlight_drop_location() and
6448         gtk_toolbar_unhighlight_drop_location().
6449
6450         Also fix bug where the number of overflowed items were miscounted.
6451
6452 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
6453
6454         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6455         some accidentally committed duplicate code.
6456
6457 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
6458
6459         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6460
6461 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
6462
6463         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
6464         gtk_has_toplevel_focus): Add getters corresponding to
6465         the is_active and has_toplevel_focus properties.
6466         (#122531)
6467
6468 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
6469
6470         * gtk/gtkexpander.c:
6471         (gtk_expander_class_init): hook up the destroy handler.
6472         (gtk_expander_destroy), (gtk_expander_unrealize):
6473         remove the expand/collapse timeout on destroy instead
6474         of unrealize to avoid leaving the expander in a inconsistent
6475         state when unrealizing during animation.
6476         (gtk_expander_start_animation): remove realized check.
6477         (gtk_expander_set_expanded): if the widget isn't realized,
6478         expand immediately.
6479
6480 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
6481
6482         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6483         do nothing when recipient is NULL, as described in the
6484         doc comment. (#123107, Thomas Leonard)
6485
6486 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
6487
6488         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6489         rewrite docs, mention memory management for the return
6490         value. (Partly addresses #125549, Michael Natterer)
6491
6492 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
6493
6494         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6495         Change index to filter_index to fix compilation error.
6496
6497         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6498
6499 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
6500
6501         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6502         we have RandR support, for XRRUpdateConfiguration declaration.
6503
6504         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6505         declaration.
6506
6507         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6508         length a gsize variable, since that's what g_file_get_contents()
6509         expects.
6510
6511 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
6512
6513         * NEWS: Fix attribution for above/below EWMH work.
6514
6515 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
6516
6517         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
6518         as a construct-only property.  (#125475, Murray Cumming)
6519
6520 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6521
6522         Fix bug 116297 and 125472
6523         
6524         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6525         this function take an index and a GtkToolItem.
6526
6527         * tests/testtoolbar.c (main): Make "Show Arrow" default to
6528         true. Make one of the separators !draw and expand.
6529         Update for new highlight_drop_location() API.
6530
6531         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6532
6533         * gtk/gtktoolbar.h: Formatting fixes.
6534
6535         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6536         separator tool items to expand.
6537         (logical_to_physical, physical_to_logical): Fix off-by-one errors
6538         (Fix #125472, Marco Pesenti Gritti)
6539
6540         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6541         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6542         return FALSE, not TRUE.
6543         (gtk_separator_too_item_{set|get}_property,
6544         (gtk_separator_tool_item_{set|get}_draw): new functions
6545
6546 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
6547
6548         * === Released 2.3.0 ===
6549
6550         * configure.in: Remove a stray comma.
6551
6552         * README.in: Fix a few notes about Xft 1 and pango-1.0.
6553
6554         * NEWS: Finish updates for 2.3.0.
6555
6556         * po/Makefile.in.in: Update to latest GLib version.
6557
6558 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
6559
6560         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6561         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6562         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6563         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6564         Sandmann).
6565
6566 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
6567
6568         * gtk/gtktreemodelfilter.h: add padding to the class structure.
6569
6570 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
6571
6572         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6573         (gtk_file_chooser_remove_filter): Likewise.
6574         (gtk_file_chooser_select_all): Added docs.
6575         (gtk_file_chooser_unselect_all): Likewise.
6576
6577         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6578
6579         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6580
6581 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
6582
6583         * gtk/gtkfilefilter.c: 
6584         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6585
6586 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
6587
6588         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6589
6590 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
6591
6592         * NEWS: Remove a few duplicates, group the menu changes.
6593
6594 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
6595
6596         * NEWS: Updates for 2.3.0; changed header to match the style we used
6597         for 2.1.0.
6598
6599 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
6600
6601         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6602         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
6603
6604 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
6605
6606         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6607         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6608         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6609
6610 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6611
6612         * NEWS: Partial update for 2.3.0.
6613
6614 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
6615
6616         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6617         GtkComboBox.
6618
6619 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
6620
6621         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
6622         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6623         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6624         Basic framework for the new file selector widget.
6625
6626         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
6627         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6628         Initial implementation of the GtkFileChooser user interface.
6629
6630         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6631         for Unix files.
6632
6633         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6634         for freedesktop.org MIME system on Unix.
6635
6636         * tests/testfilechooser.c: Test program for GtkFileChooser
6637
6638         * tests/prop-editor.c: Add support for properties on interfaces.
6639
6640 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6641
6642         * demos/gtk-demo/menus.c (do_menus): Fix some unused
6643         variables.
6644
6645         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6646         variable warning.
6647
6648 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
6649
6650         * NEWS: Partial update for 2.3.0.
6651
6652 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
6653
6654         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6655         ctrl_pressed and shift_pressed according to the current event
6656         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6657
6658 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
6659
6660         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6661         timeout when the user pressed on Enter/ESC. Fixes the bug where the
6662         completion popup popped up after the user pressed on Enter (which is
6663         just weird). Reported by the Epiphany people (all of them).
6664
6665 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6666
6667         Add support for OS X like sliding of toolbar items during drag and
6668         drop, (#110919, Dave Bordoley)
6669
6670         Make dnd highlighting the responsibility of the
6671         application. (Fixes #116298, Owen Taylor)
6672
6673         * gtk/gtktoolbar.h: Add prototypes for new API.
6674         
6675         * gtk/gtktoolbar.c
6676         (physical_to_logical, logical_to_physical): new functions
6677         converting between "position including placeholders" and "position
6678         excluding placeholders".
6679         (gtk_toolbar_class_init): remove drag_leave and drag_motion
6680         handlers
6681         (struct _ToolbarContent): new struct containing information
6682         related to toolbar items.
6683         (gtk_toolbar_highlight_drop_location): new public function
6684         (gtk_toolbar_unhighlight_drop_location): new public function
6685         
6686         * tests/testtoolbar.c
6687         (toolbar_drag_motion, toolbar_drag_leave): new functions
6688         (main): connect to dnd signals.  Make the "New" item expand to
6689         make drag and drop more exciting.
6690
6691 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
6692
6693         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6694         _set_active, not _set_active_item.
6695
6696 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
6697
6698         * gtk/gtkcombobox.h: add padding to the class structure.
6699         * gtk/gtkcomboboxentry.h: ditto.
6700         * gtk/gtkentrycompletion.h: ditto.
6701
6702 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
6703
6704         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6705         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6706         value and what it means.
6707
6708         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6709         item to -1 (default),
6710         (gtk_combo_box_entry_active_changed): do nothing when the index is
6711         < 0.
6712
6713 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
6714
6715         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
6716         to set the active row by iter.
6717
6718         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
6719         to get the active row by iter.
6720
6721 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
6722
6723         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
6724         operations on windows if the tree view is not mapped.
6725         (gtk_tree_view_button_press): Compare equal types of pointers, not
6726         GtkWidget* vs. GtkTreeView*.
6727
6728 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
6729
6730         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
6731         the reset of first_sel_changed, as after the first popup the treeview
6732         will always have a row selected and will thus not focus_to_cursor.
6733
6734         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
6735         whether the keyval should move the completion selection cursor (used
6736         to avoid ending up with extreme cluttered code), also added
6737         all KP_ equivalents of the keys here,
6738         (gtk_entry_completion_key_press): Keynav tweaks based on comments
6739         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
6740         as possible current selection, implement Home/End keys, modified
6741         the down key to stop cycling. Maybe page up/down should be implemented
6742         at some later time.
6743
6744 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
6745
6746         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
6747         as documented when pixmap or mask is NULL.  (#124081) 
6748
6749 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
6750
6751         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
6752         I was adding the signal block/unblock code. Oops. (Noticed by
6753         Marco Pesenti Gritti).
6754
6755 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
6756
6757         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
6758         (set_interp_type), (main): port over from option menu to GtkComboBox.
6759
6760 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
6761
6762         * tests/testmenus.c: Still uses option menus, so turn off
6763         GTK_DISABLE_DEPRECATED.
6764
6765 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
6766
6767         * gtk/gtkalignment.[hc]: 
6768         * gtk/gtkcombobox.[hc]: 
6769         * gtk/gtkcomboboxentry.[hc]: 
6770         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
6771         from header to implementation.
6772
6773 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
6774
6775         * tests/testtreeview.c: 
6776         * demos/testpixbuf-scale.c: 
6777         * tests/prop-editor.c: These files still use option menus,
6778         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
6779
6780 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
6781
6782         * gtk/gtkactiongroup.h: 
6783         * gtk/gtkaction.h: 
6784         * gtk/gtkradioaction.h: 
6785         * gtk/gtkradiotoolbutton.h: 
6786         * gtk/gtkseparatortoolitem.h: 
6787         * gtk/gtktoggleaction.h: 
6788         * gtk/gtktoolitem.h: 
6789         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6790         these usable in C++.  (#124351, Murray Cumming)
6791
6792 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
6793
6794         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
6795         non-NULL before accessing it. Oops.
6796
6797 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
6798
6799         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
6800         (gtk_entry_completion_insert_action_text),
6801         (gtk_entry_completion_insert_action_markup): the gchar* parameters
6802         should be const (pointed out by both Marco Pesenti Gritti and
6803         Murray Cumming (#124356).
6804
6805 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
6806
6807         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
6808         child list mode, allocate the height allocation->height to the
6809         button instead of the height requested by the button. (Tiny
6810         size allocation screwup noticed by Macro Pesenti Gritti).
6811
6812 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
6813
6814         Fixes based on comments from Marco Pesenti Gritti.
6815
6816         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
6817         signal handler, avoids the completion popup to popup when text is
6818         set programmatically in most cases (we actually have to handle this
6819         in the _editable functions as well, but that will break popping up
6820         when the user actually typed something :),
6821         (gtk_entry_completion_key_press): when handling enter, bail out
6822         when nothing has been selected,
6823         (gtk_entry_completion_changed): don't popdown when the entry content
6824         changed.
6825
6826         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
6827         (gtk_entry_completion_selected_changed): unselect_all on the
6828         first selected changed signal. Avoids having a default row selected,
6829         (_gtk_entry_completion_popup): don't select the first row by default.
6830
6831         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
6832         first_sel_changed field.
6833
6834 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
6835
6836         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
6837         in the intro (again).
6838
6839 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
6840
6841         Fixes for (#124212, Marco Pesenti Gritti):
6842         
6843         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6844         warnings for popups.
6845         (_gtk_menu_is_empty): Return FALSE for non-menus.
6846
6847 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
6848
6849         * gtk/gtkcombo.h: Deprecate.
6850         * gtk/gtkoptionmenu.h: Ditto.
6851
6852         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
6853         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
6854         needs some work on requesting enough size when taking the items in
6855         the list into account.
6856
6857         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
6858         deprecated" guards.
6859         * gtk/gtkinputdialog.c: ditto.
6860         * gtk/gtkitemfactory.c: ditto.
6861         * gtk/gtkoptionmenu.c: ditto.
6862
6863         * demos/gtk-demo/menus.c: remove the option menu.
6864         * demos/gtk-demo/sizegroup.c: replace the option menus with
6865         GtkComboBox.
6866         * demos/gtk-demo/textview.c: ditto.
6867         (A general GtkComboBox demo will be added later on).
6868
6869 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
6870
6871         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
6872         callback to propertly report radio actions.
6873
6874         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
6875
6876 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
6877
6878         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
6879         version in in the right field of the _XEMBED_INFO property.  
6880         (#123885, Denis Mikhalkin)
6881
6882 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
6883
6884         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
6885         the child if we have one.
6886
6887         (gtk_expander_button_release): use
6888         gtk_widget_activate instead.
6889
6890 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
6891
6892         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
6893         "right_attach" with a capital.  (#123945, Christian Rose)
6894
6895 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
6896
6897         * tests/testsocket.c (child_read_watch): Remove an
6898         extraneous unref.  (#122336, Frederic Crozat)
6899
6900 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
6901
6902         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
6903         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
6904
6905 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6906
6907         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
6908         focus arrow before pack_end items (#123851, Matthias Clasen)
6909
6910 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
6911
6912         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
6913         on ->priv->cell_view if ->priv->cell_view is non-NULL.
6914
6915         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
6916         field to GtkComboBoxEntryPrivate,
6917         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
6918         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
6919         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
6920         a construct-only "text_column" property and reorder code to use it
6921         and support inheriting this widget.
6922
6923 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
6924
6925         * gtk/gtkcombobox.c: Added API doc comments.
6926
6927         * gtk/gtkcomboboxentry.c: Ditto.
6928
6929 2003-10-02  Matthias Clasen  <maclas@gmx.de>
6930
6931         * gtk/gtktoggleaction.c: Documentation tweaks.
6932
6933 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
6934
6935         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
6936         packing/attribute/cell data functions from the header,
6937         (gtk_cell_view_set_cell_data): added support for cell data funcs.
6938
6939         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
6940         packing/attribute/cell data functions from the header, implemented
6941         cell data func support.
6942
6943         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
6944         for the move to GtkCellLayout.
6945
6946         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
6947
6948 2003-10-01  Matthias Clasen  <maclas@gmx.de>
6949
6950         * gtk/gtkaction.c (gtk_action_class_init): 
6951         (gtk_action_[gs]et_property): Introduce a separate
6952         "hide_if_empty" property for empty menu handling.
6953         (_gtk_action_sync_menu_visible): ...and use it here.
6954
6955         * tests/testmerge.c (main): ...and here.
6956
6957         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
6958         comments to pacify gtk-doc.
6959
6960         * gtk/gtkmain.c: Doc formatting tweaks.
6961
6962         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
6963
6964         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
6965         Use the same parameter names as in .c file, to pacify gtk-doc.
6966
6967         * gtk/gtktoggletoolbutton.[hc]: 
6968         * gtk/gtktoolbutton.[hc]: 
6969         * gtk/gtktoolitem.[hc]:
6970         * gtk/gtktoolbar.[hc]: 
6971         * gtk/gtkcolorbutton.[hc]: 
6972         * gtk/gtkfontbutton.[hc]: 
6973         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
6974         source, not in the header.
6975
6976         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
6977         Document these as 2.4 API additions.
6978
6979 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
6980
6981         * gtk/gtkentry.c (gtk_entry_set_completion),
6982         (gtk_entry_get_completion): Add API doc comments.
6983
6984         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
6985
6986 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
6987
6988         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
6989
6990 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
6991
6992         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
6993
6994         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
6995
6996 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6997
6998         * tests/merge-*.ui: 
6999         * tests/testmerge.c: Test handling of empty menus.
7000
7001         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
7002         whether a menu is empty. Used in gtkaction.c.
7003         (update_smart_separators): Also update the visibility of empty menus.
7004         (update_node): When creating a new menu proxy, insert an "Empty" menu 
7005         item which only gets shown if the menu is empty. 
7006
7007         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
7008         "is_important" for menu proxies.
7009         (_gtk_action_sync_menu_visible): New function to sync the visibility
7010         of menu proxies. Used in gtkuimanager.c.
7011         (gtk_action_sync_visible): New function to sync the visibility of 
7012         proxies.
7013
7014 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
7015
7016         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
7017         popup_in_progress to TRUE,
7018         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
7019         won't disappear on the first button release. (Reported by Matthias
7020         Clasen).
7021
7022 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
7023
7024         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
7025
7026         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
7027         Marco Pesenti Gritti).
7028
7029 2003-09-30  Murray Cumming  <murrayc@usa.net>
7030  
7031         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
7032         instead of a GdkWindow*, because that what it is given. The 
7033         documentation was already correct. This should cause no API/ABI
7034         breakage with C compilers.
7035         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
7036         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
7037         implementation accordingly.
7038
7039 2003-09-30  Matthias Clasen  <maclas@gmx.de>
7040
7041         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
7042         "direction-changed" and "keys-changed" signals.
7043
7044         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
7045         "size-changed" signal.
7046
7047         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
7048         Document the "display-opened" signal.
7049
7050         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
7051         (gdk_display_class_init): Document the "closed" signal.
7052
7053 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7054
7055         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
7056         accepts_tab. (#122709 again).
7057
7058 2003-09-27  Matthias Clasen  <maclas@gmx.de>
7059
7060         * gtk/gtkwindow.c (gtk_window_new):
7061         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
7062         the fact that the newly created object does not come with 
7063         a floating reference.  (#103068, patch by Frederic Lespez)
7064         
7065         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
7066         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
7067         since GtkActionGroup uses it.
7068
7069         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
7070         this test uses the soon-to-be-deprecated GtkItemFactory.
7071
7072         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
7073         remove item_factory.c
7074
7075         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
7076         using GtkUIManager instead of GtkItemFactory.
7077
7078         * tests/testmerge.c: Demonstrate the use of the 
7079         connect-proxy signal.
7080
7081         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
7082         disconnect-proxy signals to do small customizations 
7083         like displaying tooltips in the statusbar without 
7084         custom actions.  (#122894, Philip Langdale)
7085
7086         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
7087
7088 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
7089
7090         Landing the new ComboBox. Note that only gtkcombobox.h and
7091         gtkcomboboxentry.h are public.
7092
7093         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
7094         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
7095
7096         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
7097
7098         * tests/testcombo.c: and a new test.
7099
7100         * tests/Makefile.am: adding the new test.
7101
7102 2003-09-25  Tor Lillqvist  <tml@iki.fi>
7103
7104         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
7105
7106 2003-09-21  Tor Lillqvist  <tml@iki.fi>
7107
7108         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
7109         function. Code split out from gdk_event_translate(). Needed
7110         because gdk_event_get_graphics_expose() couldn't do anything
7111         sensible otherwise. (Not that I think graphics exposes work anyway
7112         in gdk/win32, but at least now the code could work.)
7113
7114         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
7115         gdk_event_translate(), which couldn't have worked as it doesn't
7116         take any pre-allocated GdkEvent parameter any longer.
7117         
7118         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
7119         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
7120
7121 2003-09-24  Matthias Clasen  <maclas@gmx.de>
7122
7123         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
7124         on toolitems.
7125
7126         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
7127
7128         * gtk/gtkuimanager.c (update_node): Don't complain about missing
7129         actions on popups. Re-set "tooltip" property on toolitems after
7130         adding them to parent to trigger proxy update.
7131
7132 2003-09-22  Matthias Clasen  <maclas@gmx.de>
7133
7134         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
7135         group member to test the fix for #122904.
7136
7137         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7138         Add the action to the group before activating it, otherwise we
7139         may end up with multiple active group members.  (#122904, Marco
7140         Pesenti Gritti)
7141
7142 2003-09-21  Matthias Clasen  <maclas@gmx.de>
7143
7144         Changes to make cross-process merging feasible:
7145         
7146         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
7147         merged UI definition. Remove the "changed" signal, since its role
7148         is now filled by "notify::ui". Instead add a "actions-changed" signal
7149         which gets emitted when the set of actions changes.
7150
7151         * gtk/gtktoggleactionprivate.h:
7152         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
7153         Add a "draw_as_radio" property to toggle actions so that they can be
7154         used as proxies for radio actions much like the "draw_as_radio" 
7155         property on check menu items enables them to operate as proxies for
7156         radio actions.
7157
7158         Prevent the "show_all" trap for action-based menus (see
7159         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
7160         msg00260.html):
7161
7162         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
7163         calls from static functions.
7164
7165         * gtk/gtkuimanager.c (update_node): 
7166         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
7167         widgets whose visibility is externally controlled.
7168
7169         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
7170         "no_show_all" property with setter and getter. When TRUE, it keeps
7171         gtk_widget_{hide,show}_all() from modifying the visibility of the 
7172         widget and its children.
7173
7174 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7175
7176         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
7177
7178 2003-09-20  Tor Lillqvist  <tml@iki.fi>
7179
7180         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
7181         including editor backup files. List files we want explicitly.
7182
7183         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
7184         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
7185         LC_ALL, LC_CTYPE and LANG environment variables, than calls
7186         g_win32_getlocale().
7187
7188         (gtk_get_default_language): Code snippet moved to above function,
7189         call it.
7190
7191         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
7192         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
7193         _gtk_get_lc_ctype() instead of setlocale().
7194
7195 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7196
7197         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
7198         (#96632)
7199
7200 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7201
7202         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
7203         documentation. (#117306, Steve Chaplin)
7204
7205 2003-09-19  Tor Lillqvist  <tml@iki.fi>
7206
7207         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
7208         present on the US-International keyboard. For clarity, order
7209         keysyms in case statement according to numeric value.
7210
7211         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
7212         correctly. (#120176, Ken Rastatter and Owen Taylor)
7213
7214 2003-09-18  Matthias Clasen  <maclas@gmx.de>
7215
7216         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
7217         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
7218
7219         Install accelerators on actions, not on proxies, support
7220         accelerator-only actions:
7221         
7222         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
7223         and its lock status either via _gtk_widget_get_accel_path() or by 
7224         looking at the accel_path stored in the menu item itself and determining
7225         its lock status by peeking into the contained accel label. This was
7226         already (accidentally) committed a week ago.
7227
7228         * gtk/gtkaction.h (gtk_action_set_accel_group):
7229         (gtk_action_[dis]connect_accelerator): New functions.
7230
7231         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
7232         accel_closure and accel_count. We must have a reference to the 
7233         accel_group, since we need it in connect_proxy. The count is necessary
7234         to ensure that the accelerator isn't removed before the last proxy 
7235         requesting it has been unmerged.
7236         (connect_proxy): Connect the accelerator to the 
7237         action now, only set the accel_path on the menuitem.
7238         (remove_proxy): Disconnect the accelerator from the action, not from
7239         the menuitem.
7240         (gtk_action_set_accel_group): Set the accel group. 
7241         (gtk_action_[dis]connect_accelerator): Count the number of times
7242         this functions have been called and install/remove the accelerator if
7243         the count leaves/reaches zero.
7244
7245         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
7246         GTK_UI_MANAGER_ACCELERATOR.
7247
7248         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
7249         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
7250         <accelerator> elements.
7251         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
7252         type is GTK_UI_MANAGER_ACCELERATOR.
7253         (update_node): Set the accel group on actions before creating their
7254         proxies. Don't set the accel group on created menus. For 
7255         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
7256         (print_node): Also emit <accelerator> elements.
7257
7258         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
7259
7260         * gtk/gtkuimanager.c (update_node): Robustness improvements.
7261
7262 2003-09-17  Matthias Clasen  <maclas@gmx.de>
7263
7264         * gtk/gtkuimanager.c (text_handler): Report unexpected character
7265         data as error from the GMarkup parser, otherwise things like
7266         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
7267         pass unexpectedly.
7268
7269 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7270
7271         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
7272         committed redraw_on_allocate change.
7273
7274 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
7275
7276         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
7277         stubs to fix compilation
7278
7279         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
7280         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
7281
7282         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
7283         variable. Patch from Marc Welz (#121347).
7284
7285 2003-09-16  Matthias Clasen  <maclas@gmx.de>
7286
7287         * gtk/gtkaction.h: Apply egtk-format-protos.
7288
7289 2003-09-15  Matthias Clasen  <maclas@gmx.de>
7290
7291         * gtk/gtkuimanager.c: Doc tweaks.
7292
7293         Smart separators; see 
7294         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
7295         
7296         * gtk/gtkuimanager.c (update_smart_separators): New function which 
7297         implements "smart" separators by iterating once over the entries of a 
7298         menu, hiding and showing separators as necessary.
7299         (update_node): Mark separators used as fences of placeholders as
7300         hidden. Explicitly added separators are marked as smart. Call 
7301         update_smart_separators after updating a menu or toolbar node. 
7302         Connect update_smart_separators to "notify::visible" signal on menu
7303         and tool items.
7304         
7305         * tests/merge-[12].ui: Test smart separators.
7306
7307         Changes to allow setting action state before connecting signal; see
7308         the thread starting at 
7309         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
7310         
7311         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
7312         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
7313         setting the currently selected group member before connecting signals.
7314         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
7315         including a boolean to initialize the action state before connecting
7316         signals.
7317         (gtk_action_group_add_toggle_actions):
7318         (gtk_action_group_add_toggle_actions_full): New functions to construct
7319         toggle actions from an array of GtkToggleActionEntries.
7320
7321         * demos/gtk-demo/appwindow.c: 
7322         * tests/testactions.c: 
7323         * tests/testmerge.c: Adjust to new action group API.
7324
7325 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7326
7327         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
7328         "gtk-toolbar-arrow" so themes can special-case it.
7329
7330 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7331
7332         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
7333
7334 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7335
7336         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
7337         PangoFontMetrics. Patch from Steve Chaplin (#122257).
7338
7339 2003-09-14  Tor Lillqvist  <tml@iki.fi>
7340
7341         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
7342         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
7343         the usefulness of which was already in doubt. Removing it fixes
7344         bugs #118575 and #121851.
7345
7346 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
7347
7348         Merge from stable.
7349
7350         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7351         pressed button (used to determine if we want to initiate a drag later
7352         on) if the current grab widget is either NULL or tree_view (Reported
7353         by Jeroen Zwartepoorte).
7354
7355 2003-09-12  Matthias Clasen  <maclas@gmx.de>
7356
7357         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
7358         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
7359
7360 2003-09-11  Matthias Clasen  <maclas@gmx.de>
7361
7362         * gdk/gdkpango.c: Doc tweaks.
7363
7364         * tests/testgtk.c: Add table menu tests.
7365
7366         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
7367         GtkMenuPrivate struct itself. Pointed out by valgrind.
7368
7369         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
7370         properly.  (#121998)
7371
7372 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
7373
7374         The table menu patch! Turns GtkMenu into a table, so you can attach
7375         menu items in numerous new ways! Be creative!
7376
7377         Contains some bug fixes and RTL adaptions from Matthias Clasen.
7378
7379         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7380         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7381         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7382         the heights array in the private struct,
7383         (gtk_menu_class_init): reorder code a bit, install child properties,
7384         (get_attach_info), (get_child_attach): new utility functions,
7385         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7386         child properties, for the attach info,
7387         (gtk_menu_remove): remove AttachInfo from menu item,
7388         (gtk_menu_real_insert): implemented algorithm to automagically place
7389         inserted menu items at the correct place in the table,
7390         (gtk_menu_size_request), (gtk_menu_size_allocate),
7391         (compute_child_offset): reworked/rewritten to support table menus,
7392         (gtk_menu_attach): new function,
7393         (find_child_containing), (gtk_menu_move_current): new functions to
7394         get table menu keynav right.
7395
7396         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7397
7398 2003-09-10  Matthias Clasen  <maclas@gmx.de>
7399
7400         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
7401         PropertyNotify events from the stream if they have been handled,
7402         in order to enable extending the plug<->socket communication via
7403         properties.
7404
7405 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
7406
7407         Big TreeView DnD fixage, makes drops on empty models work, makes
7408         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7409         Related bugs #95362 and #113314. I don't want to touch this code
7410         ever again.
7411
7412         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7413
7414         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7415         for selection_data->length.
7416
7417         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7418         (set_dest_row), (get_dest_row): we don't store just the row ref
7419         anymore, but a struct with the row ref and additional info,
7420         (set_destination_row): handle drops on empty space and some
7421         style fixes,
7422         (get_logical_dest_row): also return path_down_mode/drop_append_mode
7423         flags, handle dropping childs on their new parents, rewrite
7424         drop append handling into something saner,
7425         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7426         spaces,
7427         (gtk_tree_view_drag_drop): updates for updated backend,
7428         (gtk_tree_view_drag_data_received): updates for updated backend,
7429         path down mode (treestore DnD) handling,
7430         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7431         when we are trying to drop a row on an empty model,
7432         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7433
7434         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7435         (gtk_list_store_row_drop_possible): style and drop-append fixes.
7436
7437         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7438
7439 2003-09-08  Alexander Larsson  <alexl@redhat.com>
7440
7441         * gtk/gtkeventbox.[hc]:
7442         Implement gtk_event_box_get/set_input_only()
7443         
7444         * tests/testgtk.c:
7445         Tests for the new input only event boxes
7446
7447 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
7448
7449         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7450
7451         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7452         the call to gtk_tree_model_filter_add_root,
7453         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7454         the virtual root, allow building levels on the second try to convert
7455         the child path to a filter path,
7456         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7457         root when calling gtk_tree_model_filter_elt_get_path.
7458
7459 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7460
7461         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
7462         Josh Beam)
7463
7464         Fixes for accelerator handling during (un)merging:
7465         
7466         * gtk/gtkuimanager.c (update_node): Move setting info-action
7467         after the switch, since the old action is needed in some cases.
7468         In cases of proxy type mismatch, disconnect the old proxy from
7469         the old action.
7470
7471         * gtk/gtkaction.c (remove_proxy): Renamed from 
7472         gtk_action_remove_proxy(). Move unsetting of the accelerator
7473         here from disconnect_proxy() in order to catch all cases of 
7474         removing a proxy.
7475         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7476         to fail if proxy isn't a proxy of action.
7477
7478 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
7479
7480         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7481         ALL_LINGUAS
7482
7483 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7484
7485         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7486         for toolitems.
7487
7488 2003-09-06  Matthias Clasen  <maclas@gmx.de>
7489
7490         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
7491         prev_action, not from action.  (Fix by David Hampton)
7492
7493 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
7494  
7495         * Back out locale-dependent interpretation of
7496         KP_Decimal, the official XFree86 interpretation
7497         is that KP_Decimal => . KP_Separator => ,
7498         always, independent of locale. 
7499         (#105161, Frederic Crozat, 
7500         http://bugs.xfree86.org/show_bug.cgi?id=534)
7501  
7502 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7503
7504         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7505
7506         * gtk/gtktoggleaction.c (connect_proxy): 
7507         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
7508         that a "draw_as_radio" property is needed for check buttons similar to 
7509         check menu items, in order to fully support button proxies for radio actions.
7510
7511         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7512
7513         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
7514
7515         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7516         'type' argument of gtk_ui_manager_add_ui().
7517
7518         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7519         to make this function as powerful as the XML methods of adding UI.  (#120647)
7520
7521 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
7522
7523         Merge from stable.
7524
7525         * docs/RELEASE-HOWTO: updates.
7526
7527 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7528
7529         * tests/merge-2.ui: Use "position" instead of "pos".
7530
7531         * gtk/gtkuimanager.c (start_element_handler): No need 
7532         to be terse: Change the name of the "pos" attribute
7533         to "position".
7534
7535 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7536
7537         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
7538         GtkUIManagerNode to shorten the names and to make the
7539         GTK_UI_MANAGER_<TYPE> names available for a public enum.
7540
7541         * gtk/gtkactiongroup.c:
7542         * gtk/gtkuimanager.c: Various doc tweaks.       
7543
7544         * gtk/gtkuimanager.c (start_element_handler):
7545         (end_element_handler): Improve error reporting. 
7546
7547 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
7548
7549         Merge from stable.
7550
7551         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7552         use end_position - page_size instead of G_MAXINT, since
7553         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7554         reported by Havoc Pennington).
7555
7556 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
7557
7558         Merge from stable.
7559
7560         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7561         unref it. (Fixes memleak, patch from Kjartan Maraas).
7562
7563 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
7564
7565         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7566         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7567         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7568         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7569         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7570         gtk/gtktypeutils.h: big patch from Kjartan Maraas
7571         to fix numerous typos.
7572
7573 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
7574
7575         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7576
7577 2003-09-02  Tor Lillqvist  <tml@iki.fi>
7578
7579         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7580         CloseHandle() on the HMODULE returned from GetModuleHandle().
7581         Didn't cause any harm, but didn't do anything useful either. When
7582         running a GTK+ program under MS's debugger, the CloseHandle() call
7583         would cause a "first-chance exception" in ntdll.dll to show up.
7584         (The exception is caught appropriately if you let it proceed, but
7585         it confuses the person using the debugger). Thanks to Bruce
7586         Hochstetler for noticing.
7587
7588 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
7589
7590         Merge from stable.
7591
7592         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7593         to only select when button 1 is pressed introduced in the fix of
7594         bug #120187.
7595
7596 2003-09-02  Matthias Clasen  <maclas@gmx.de>
7597
7598         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7599
7600         * gtk/gtkuimanager.c: Shorten the names of some static 
7601         functions.
7602
7603         Support adding and removing merge nodes dynamically (#120647, 
7604         Anders Carlsson):
7605         
7606         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
7607         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
7608         and made it public.
7609         (gtk_ui_manager_add_ui): New function to add UI elements
7610         without juggling XML fragments, currently restricted to menuitems,
7611         toolitems and separators. Actions still come from registered 
7612         action groups.
7613
7614 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7615
7616         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7617         background pixmap was being offset twice, once by the ts_origin in
7618         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7619
7620 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7621
7622         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7623         this public again, since it's occasionally useful.  (#121128,
7624         Marco Pesenti Gritti)
7625
7626         * gtk/gtkaction.c: Add an "is_important" property and propagate
7627         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
7628
7629 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7630
7631         * tests/testtoolbar.c (main): connect to "delete_event" so the
7632         application will actually quit when you close the window
7633
7634 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7635
7636         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
7637         (gtk_ui_manager_get_action): g_return_if_fail() if
7638         path is NULL.
7639         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7640         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
7641         Marco Pesenti Gritti)
7642
7643 2003-08-31  Matthias Clasen  <maclas@gmx.de>
7644
7645         * gtk/gtktoolitem.c: Fix some typos in docs.
7646
7647         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7648         replaces gtk_ui_manager_activate().  (#120658)
7649
7650         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7651         gtk_ui_manager_activate().
7652
7653         * gtk/gtkaction.c: 
7654         * gtk/gtkactiongroup.c: Some doc tweaks.
7655
7656         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7657         wasn't emitted anyway. Some doc tweaks.
7658
7659 2003-08-30  Matthias Clasen  <maclas@gmx.de>
7660
7661         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7662         rather than to "remove" on handlebox. 
7663
7664         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7665         activate an action found by following a path.  (#120658)
7666
7667         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7668
7669         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7670
7671         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
7672         setter and getter. If it is set, add tearoff menu items to regular 
7673         menus, but not to popups. Add a signal "changed", which gets emitted
7674         when the merged ui has changed.  (#120649, #120656)
7675
7676         * tests/testmerge.c: Add button to test the generation of tearoff 
7677         menu items.
7678
7679 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7680
7681         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7682         Actually group the actions together rather than putting each in its 
7683         own group.
7684
7685         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
7686         proxy menu items for radio actions.
7687
7688         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7689
7690 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7691
7692         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7693         Fix use of uninitialized variable.
7694
7695         * gtk/gtktextutil.c
7696         (_gtk_text_util_append_special_char_menuitems): add const cast to
7697         get rid of warning
7698
7699 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7700
7701         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
7702         "draw_as_radio" as a separate property, not as an alias of 
7703         "inconsistent".
7704         (gtk_check_menu_item_get_property): 
7705         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7706
7707 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7708
7709         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7710         are narrower than 13 time the estimated character width of the
7711         font. (#107781, David Bordoley)
7712
7713         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
7714         here if the GtkToggleButton is active. This may be the case if it
7715         is a radio button.
7716
7717         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
7718         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
7719         Suarez-Alvarez).
7720
7721         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
7722         property. (#111207, David Bordoley).
7723
7724         * gtk/gtktoggletoolbutton.c
7725         (gtk_toggle_tool_button_create_menu_proxy): use new
7726         "draw_as_radio" property on the menu item when the item is a radio
7727         tool button
7728
7729         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
7730         to only pay attention to the "use_underline" property when the
7731         button label comes from the "label" property.
7732
7733 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
7734
7735         * configure.in: Added "sq" to ALL_LINGUAS.
7736         
7737 2003-08-28  Matthias Clasen  <maclas@gmx.de>
7738
7739         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
7740         fix in the docs.
7741
7742         * gtk/gtkuimanager.c: Change the XML format:
7743         <Root> element is replaced by <ui>,
7744         <menu> element is replaced by <menubar>,
7745         <submenu> element is replaced by <menu>,
7746         <dockitem> element is replaced by <toolbar>,
7747         <popups> element is gone,
7748         verb attribute is replaced by action,
7749         name defaults to action or the element name. 
7750
7751         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
7752         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
7753         by removing the user_data, entry_type and extra_data fields, 
7754         GtkRadioActionEntry is further simplified by removing the callback. 
7755         The user_data can now be specified as an argument to 
7756         gtk_action_group_add_actions(). There is a new method 
7757         gtk_action_group_add_radio_actions(), which is similar to 
7758         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
7759         and a callback parameter in addition to the user_data. The callback
7760         is connected to the ::changed signal of the first group member.
7761         There are _full() variants taking a GDestroyNotify of 
7762         gtk_action_group_add_[radio_]actions().
7763
7764         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
7765         on every member of the radio group when the active member is changed. 
7766         Add an integer property "value", and a getter for the value of "value"
7767         on the currently active group member. 
7768
7769         * tests/testactions.c: 
7770         * tests/testmerge.c: 
7771         * tests/merge-[123].ui:  
7772         * demos/gtk-demo/appwindow.c: Adjust to these changes.
7773
7774         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
7775
7776 2003-08-27  Anders Carlsson  <andersca@gnome.org>
7777
7778         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
7779         text view, so the tool bar won't have focus.
7780
7781 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
7782
7783         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
7784         declaration not at start of block. (#120371, Damien Carbery)
7785
7786 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7787
7788         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
7789         for length, not gsize.
7790
7791         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
7792         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
7793         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
7794
7795         * demos/gtk-demo/appwindow.c: 
7796         * tests/testactions.c: 
7797         * tests/testmerge.c:
7798         * tests/merge-1.ui:
7799         * tests/merge-2.ui:
7800         * tests/merge-3.ui: Adjust to the new XML format.
7801
7802 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
7803
7804         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
7805         Since we add one to the layout's reported width to
7806         account for the cursor, we need to subtract one when
7807         setting the wrap width for the layout. (Fixes infinite
7808         loop (#120325, Frederic Crozat)
7809
7810         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
7811         Be a bit more careful about rounding when converting
7812         wrapped width from Pango units to pixels.
7813
7814 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7815
7816         Rename GtkMenuMerge to GtkUIManager. 
7817         
7818         * gtk/gtkuimanager.[hc]: New files. 
7819         * gtk/gtkmenumerge.[hc]: Removed. 
7820
7821         * gtk/Makefile.am: 
7822         * gtk/gtk.h:
7823         * tests/testmerge.c: 
7824         * tests/testactions.c: 
7825         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
7826         GtkUIManager.
7827
7828         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
7829         add comments to entries array, remove newlines from ui definition. Don't 
7830         use the ::add_widget signal.
7831
7832 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
7833
7834         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
7835         include page->menu_label - causes various problems,
7836         including #12047.
7837
7838 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
7839
7840         Merge from stable.
7841
7842         Fixes #115871, reported by Michael Natterer.
7843
7844         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
7845         added ctrl_pressed and shift_pressed bitfields,
7846         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
7847         arg with GtkTreeSelectMode.
7848
7849         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
7850         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
7851         (_gtk_tree_selection_internal_select_node): all updated for
7852         GdkModifierType -> GtkTreeSelectMode move.
7853
7854         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
7855         and shift_pressed around selection handling block,
7856         (gtk_tree_view_real_select_cursor_row),
7857         (gtk_tree_view_real_toggle_cursor_row),
7858         (gtk_tree_view_real_selection_cursor_parent),
7859         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
7860         instead of checking the event state. And also updates for the
7861         GdkModifierType -> GtkTreeSelectMode move.
7862
7863 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
7864
7865         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
7866         to the parent when there was no focus widget before
7867         and no focus widget after - that is, when there are
7868         no focusable widgets. (#108678, help tracking it
7869         down from Padraig O'Briain, Federico Mena Quintero, )
7870
7871         * gtk/gtkxembed.[ch]: Move various shared utilities
7872         for the XEMBED protocol eused by GtkPlug and GtkSocket 
7873         here.
7874
7875         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
7876         a flag bit that is sent with focus mesages to indicate
7877         that the focus has wrapped around on the toplevel;
7878         use this bit to catch infinite loops when there is no
7879         focusable widget at ll in the entire toplevel.
7880
7881         * tests/testsocket.c (child_read_watch): Remove an
7882         extraneous unref.
7883
7884         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
7885         Up XEMBED protocol version to 1, add logic for 
7886         sending the right version in XEMBED_EMBEDDED_NOTIFY.
7887
7888         * gtk/gtksocket.c (gtk_socket_add_window): Send
7889         the embedder window in the XEMBED_EMBEDDED_NOTIFY
7890         as the spec requires.
7891
7892 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
7893
7894         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
7895         NumLock handling for non-XKB. Add a special case
7896         hack for NumLock on Sun servers. (Patch from
7897         Robert Basch, #115819)
7898
7899 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7900
7901         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
7902         Welinder)
7903
7904         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
7905         gtk_action_group_set_translation_domain): Hooks for translation of
7906         label and tooltip in GtkActionGroupEntries.  (#120620)
7907
7908 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7909
7910         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
7911         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
7912         
7913         * gtk/gtkactiongroup.c: 
7914         * demos/gtk-demo/appwindow.c: 
7915         * tests/testmerge.c: 
7916         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
7917
7918 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
7919
7920         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
7921
7922 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
7923
7924         * gtk/Makefile.am: Fix accidental commit of references
7925         to gtkresizegrip.[ch]
7926
7927 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
7928
7929         * gtk/gtkrc.c: Fix some missing initializations of
7930         rc_file->directory.
7931
7932 2003-08-24  Matthias Clasen  <maclas@gmx.de>
7933
7934         * gtk/gtkaction.[ch]: 
7935         * gtk/gtktoggleaction.[ch]: 
7936         * gtk/gtktoggleactionprivate.h: 
7937         * gtk/gtkradioaction.[ch]: 
7938         * gtk/gtkactiongroup.[ch]: 
7939         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
7940         toolbars, using the EggMenu code by James Henstridge.
7941
7942         * gtk/gtk.h: Include new headers.
7943         * gtk/Makefile.am: Add new files.
7944
7945         * tests/testactions.c: Test for actions.
7946         * tests/testmerge.c: Test for menu merging.
7947         * tests/merge-[123].ui: Test data for testmerge. 
7948         * tests/Makefile.am: Add testactions and testmerge.
7949
7950         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
7951         menubar and toolbar.
7952         
7953 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
7954  
7955         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
7956         problem where rc_file->directory wasn't always getting
7957         set. (#120549, Luis Villa)
7958  
7959 2003-08-22  Christian Rose  <menthos@menthos.com>
7960
7961         * configure.in: Added "ne" to ALL_LINGUAS.
7962
7963 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
7964  
7965         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
7966         being parsed, not just the directories for those
7967         files. Use that to catch recursion. (Part of
7968         #114988)
7969  
7970 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
7971
7972         Merge from stable.
7973
7974         Fix option menu scrolling (#119821, Owen Taylor).
7975
7976         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
7977         by #80484 and the CLAMP,
7978         (get_menu_height): new function,
7979         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
7980         new_offset to handle page up/down right.
7981
7982 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
7983
7984         * gdk/x11/gdkkeys-x11.c: Change the interpretation
7985         of consumed_modifiers so that it contains:
7986          - Modifiers combinations actually found in
7987            state.
7988          - Single modifier modifier combinations.
7989         But not multi-modifier combinations that aren't
7990         in event->state. Document. (#100439)
7991
7992 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
7993
7994         Slightly modified patch from Yann Rouillard to improve selection
7995         behavior with the mouse. Fixes #120187.
7996
7997         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
7998         select/deselect items on the first button press of button 1,
7999         expand checks for row_activated to include triple clicks.
8000
8001 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
8002
8003         Merge from stable.
8004
8005         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
8006         approximate digit widths up, to avoid truncation, convert to
8007         pango pixels when we have the full string width instead of converting
8008         the approx digit width to pango pixels, take inner border and
8009         interior focus into account correctly. (Fixes #116368, patch from
8010         Morten Welinder).
8011
8012 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
8013
8014         * gtk/queryimmodules.c: Don't look at the same directory twice (in
8015         simple cases). (#120342)
8016
8017 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8018
8019         * gdk/gdkwindow.c: Make the layers in the paint stack have their
8020         own pixmap instead of sharing one. (#118317)
8021
8022         * tests/testgtk.c (create_get_image): Fixes to make the window fit
8023         on an 800x600 screen
8024
8025 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
8026
8027         Merged from stable.
8028
8029         * gtk/gtkspinbutton.c (start_spinning): change the type of step
8030         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
8031
8032 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
8033
8034         * modules/input/gtkimcontextxim.[ch]: Substantially
8035         rework the handling of status windows:
8036         
8037          - Store the current StatusWindow in the 
8038            GtkIMContextXIM structure and vice-versa, so we
8039            don't have to hunt the window hierarchy on
8040            cleanup.
8041          - Use the Gtkidget hierarchy instead of/or as well
8042            as the GdkWindow hierarchy when finding the toplevel;
8043            this helps for things like GtkHandlebox
8044          - Watch GtkWidget::hierarchy_changed to catch 
8045            changes in the toplevel without changes in the
8046            GdkWindow (reparenting)
8047          - Never create the GtkWindow for the status window
8048            unless we have text to display.
8049          - Various cleanups, add lots of comments.
8050
8051         (#115077, much help from Takuro Ashie and Hidetoshi
8052         Tajima in tracking this down and figuring out a fix.)
8053
8054         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
8055
8056         * modules/input/gtkimcontextxim.c: Track the current
8057         screen for each toplevel so that we show the status
8058         window on the right screen. (#116340, James Su)
8059
8060         * modules/input/gtkimcontextxim.c: If create a new IC
8061         when we currently have the focus, call XSetICFocus()
8062         on it.
8063         
8064         * modules/input/gtkimcontextxim.c (get_im): Fix bug
8065         with multiple open screens.
8066
8067 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
8068
8069         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
8070         Replace client_window field with 'priv' pointer,
8071         retaining binary compatibility.
8072
8073         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
8074         save use_preedit/cursor_location/focus status and set
8075         up the new slave appropriately. (#118651, Botond Botyanszki)
8076
8077 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
8078
8079         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
8080         Don't use impl->position_info.clip_rect for toplevels.
8081         (#107068, reported by Thomas Mirlacher)
8082
8083 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
8084
8085         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
8086         Add a fallback for unaligned source data for
8087         FORMAT_ARGB_MASK. (#117217)
8088
8089 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
8090
8091         * configure.in: Rework handling of REBUILD_PNGS,
8092         so that we also don't try to REBUILD_PNGS when
8093         cross-compiling and there is no gdk-pixbuf-csource.
8094         But give an error if gtk/stock-icons/gtkstockpixbufs.h
8095         is not in the source tree. (Note that REBUILDS_PNG
8096         was set backwards before, which is why you always
8097         had to manually recreate gtkstockpixbufs.h!)
8098
8099 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
8100
8101         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
8102         path to libgtk.la. (#120080, Benedikt Spranger)
8103
8104 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
8105
8106         * modules/input/imcedilla.c: Make the list of default
8107         languages more comprehensive. (Suggestion of
8108         Fco. Javier F. Serrador)
8109
8110 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
8111
8112         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
8113         parentheses when skipping args.
8114
8115 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
8116
8117         Fix major bug in row ref handling, so the new combo box
8118         will actually work right (:. Bug #107748. Patch written
8119         with help from Tim Janik.
8120
8121         The basic idea is to update the row refs in a closure,
8122         before the actual signal is emitted (rather than having
8123         the model connect signal handlers).
8124
8125         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
8126         g_signal_new calls for row_inserted, row_deleted and
8127         rows_reordered to use the new marshallers,
8128         (row_inserted_marshall), (row_deleted_marshall),
8129         (rows_reordered_marshall): the new marshallers,
8130         (gtk_tree_row_ref_inserted_callback): renamed to
8131         gtk_tree_row_ref_inserted since it isn't a callback
8132         anymore and gets called by the marshaller now,
8133         (gtk_tree_row_ref_deleted_callback): likewise,
8134         (gtk_tree_row_ref_reordered_callback): likewise,
8135         (connect_ref_callbacks), (disconnect_ref_callbacks):
8136         removed,
8137         (gtk_tree_row_reference_new_proxy),
8138         (gtk_tree_row_reference_free),
8139         (gtk_tree_row_reference_inserted),
8140         (gtk_tree_row_reference_deleted),
8141         (gtk_tree_row_reference_reordered): updated.
8142
8143 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
8144
8145         Improve Cedilla handling - based on a patch from Gustavo 
8146         De Nardin, #111334
8147
8148         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
8149         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
8150         dead_acute+c combinations. Make this the default for
8151         fr and pt.
8152
8153         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
8154         Use LC_CTYPE instead of LC_MESSAGES to pick the default
8155         input method.
8156
8157 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
8158
8159         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
8160         for Multi_key+c+apostrophe.
8161
8162 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
8163
8164         Merged from stable.
8165
8166         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
8167         on vertical scrolling. (#108035, reported by Tim Janik).
8168
8169 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
8170
8171         Merged from stable.
8172
8173         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
8174         (gtk_tree_model_sort_level_find_insert),
8175         (gtk_tree_model_sort_insert_value): fix off-by-one error.
8176         (#109292 continued, patch from Yann Rouillard).
8177
8178 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
8179
8180         (Note: This is not exactly the same as the patch which went in
8181          gtk-2-2).
8182
8183         * gtk/gtktreeview.c (gtk_tree_view_class_init),
8184         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
8185         Also support the up, down, left, right, home, end, page up and
8186         page down keys on the numpad. (#119419, reported by Alex Larsson).
8187
8188 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
8189
8190         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
8191
8192         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
8193         we link libgtk against X explicitely, since we
8194         make GTK+ calls for plug/socket.
8195
8196         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
8197         G_MODULE_SUFFIX here. 
8198
8199         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
8200         XShmPutImage with #ifdef USE_SHM.
8201
8202 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
8203
8204         * gtk/gtkfilesel.c (gtk_file_selection_populate):
8205         Don't reposition the cursor when we aren't trying
8206         to complete. (Fixes problems with selection on
8207         startup, #108433, reported by Mark Finlay.)
8208
8209         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
8210         code that tried to position the cursor after the common
8211         prefix when there was one, it wasn't working, and
8212         would be hard to fix. Just always put the cursor
8213         at the end when completing.
8214
8215 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
8216
8217         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
8218         the current directory fails because of encoding
8219         conversion problems, walk up textually to parent
8220         directories until we can convert. (#113627)
8221
8222 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
8223
8224         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
8225         Remove usage of menu_shell->ignore leave which was
8226         to deal with stray events we no longer get because
8227         we do grabbing differently. Comment it as unused in
8228         the header. (#115837, Keith Bissett)
8229
8230 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
8231
8232         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
8233         Fix some places that weren't properly Xinerama-ified.
8234
8235         * gtk/gtkmenu.c: Fix problem with windows that scroll
8236         at the top of the screen.
8237
8238 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
8239
8240         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
8241         key-press-event on the entry, so input methods get access to 
8242         key presses before GtkCombo customization.
8243         (#115451, Botond Botyanszki)
8244
8245 2003-08-13  Anders Carlsson  <andersca@gnome.org>
8246
8247         * tests/testtoolbar.c: (set_important_func), (important_toggled),
8248         (create_items_list):
8249         Add an important column.
8250         
8251 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
8252
8253         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
8254         against reentrancy from ::focus-out handlers. 
8255         (#118129, Felipe Heidrich)
8256
8257 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
8258
8259         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
8260         GDK_LOCK_MASK before calling
8261         gdk_keymap_translate_keyboard_state so bindings 
8262         and accelerators are independent of the Caps-lock
8263         key. (#115384, reported by Toni Willberg)
8264
8265 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
8266
8267         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
8268         break statements (#119494, Soeren Sandmann)
8269
8270 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
8271
8272         * gtk/gtkwidget.h: Mark parent public as well; it's
8273         extensively accessed in existing code, so there is
8274         no advantage in making people use get_parent().
8275         (Tweak to #119463 fix)
8276
8277 2003-08-11  Matthias Clasen  <maclas@gmx.de>
8278
8279         Add support for EWMH "Above" and "Below" window states.  (105100,
8280         Manuel Clos)
8281         
8282         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
8283         State" demo.
8284
8285         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
8286         gtk_window_set_keep_below.
8287
8288         * gtk/gtk.def: Add gtk_window_set_keep_above and
8289         gtk_window_set_keep_below.
8290
8291         * gtk/gtkwindow.c (gtk_window_set_keep_below):
8292         (gtk_window_set_keep_above): New functions, call the corresponding
8293         gdk functions.
8294
8295         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
8296         function, sets _NET_WM_STATE_BELOW.
8297         (gdk_window_set_keep_above): New function, sets
8298         _NET_WM_STATE_ABOVE.
8299
8300         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
8301         gdk_window_set_keep_below.
8302
8303         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
8304         GDK_WINDOW_STATE_BELOW.
8305
8306         * gdk/gdk.def: Add gdk_window_set_keep_above and
8307         gdk_window_set_keep_below.
8308
8309         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
8310         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
8311         xmlcatalog in PATH.  (#119115)
8312
8313 2003-08-10  Matthias Clasen  <maclas@gmx.de>
8314
8315         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
8316         public.  (#119463)
8317
8318 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
8319
8320         * gdk/gdkevents.h:
8321         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
8322         docs on GdkFilterFunc and GdkFilterReturn.
8323
8324 2003-08-09  Matthias Clasen  <maclas@gmx.de>
8325
8326         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
8327         to let the mouse wheels select the month. Scrolling down
8328         moves forward in time. (#53134, Abigail Brady) 
8329
8330         * gtk/gtkcalendar.c: Complete the RTL flipping support for
8331         GtkCalendar, make it possible to flip the headings using the
8332         "magic translated string" technique.  Translators, note the
8333         comment in gtk_calendar_init() explaining this.  (#102416)
8334
8335         * gtk/gtkcalendar.c: Get the information about the first day of
8336         the week from the locale using another instance of the "magic
8337         translated string" technique.  Ignore the display option
8338         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
8339
8340         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
8341         date is dragged as text, formatted via strftime %x. Text drops are
8342         accepted if g_date_set_parse() can make sense of the text. A
8343         dedicated data format for date DND has not been introduced yet,
8344         since there didn't seem to be sufficient consensus on such a
8345         format on xdg-list.  (#117297)
8346         
8347 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8348
8349         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8350         Fix a segfault.  (#115284, Jan Kratochvil)
8351
8352 2003-08-08  Tor Lillqvist  <tml@iki.fi>
8353
8354         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8355         coordinates for events that have such. Print coordinates for enter
8356         and leave events.
8357
8358         (gdk_event_translate): Don't use event uninitialixed in the
8359         return_exposes branch of the WM_PAINT handler.
8360
8361         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8362         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
8363         Must offset top-level window coordinates here, too.
8364
8365 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8366
8367         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8368         when maximized or fullscreen.
8369
8370 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8371
8372         * gdk/win32/gdkinput-win32.h
8373         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8374         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8375         used.
8376
8377         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8378         accordingly, in fact an uninitialised variable was dereferenced.
8379         
8380
8381         [Win32] Add support for multiple monitors. 
8382         
8383         * gdk/win32/gdkprivate-win32.h
8384         * gdk/win32/gdkglobals-win32.c: New global variables for
8385         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8386         _gdk_offset_x and _gdk_offset_y.
8387         
8388         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8389         functions, enumeration functions passed to EnumDisplayMonitors().
8390
8391         (gdk_display_open): If the EnumDisplayMonitors() and
8392         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8393         if to find out monitor info.
8394
8395         Calculate the offset between Win32 coordinates (relative to the
8396         primary monitor's origin (and thus negative on monitors to the
8397         left of or above it), and GDK's (visible coordinates should be
8398         non-negative).
8399         
8400         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8401         gdk_screen_get_monitor_geometry): Use information collected above.
8402
8403         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8404         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8405
8406         (gdk_window_get_geometry, gdk_window_get_origin,
8407         gdk_window_get_frame_extents): For top-level windows, add
8408         _gdk_offset_{x,y} to GDK root window coordinates
8409
8410         Still need to handle multiple monitors in
8411         gdk_window_fullscreen(). Probably should make the window
8412         fullscreen on the monitor where the cursor is?
8413
8414         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8415         root window coordinates in GdkEvents.
8416
8417         
8418         [Win32] Fix geometry hint handling. Add support for resize
8419         increment and base size, and aspect ratio geometry hints. The
8420         "gridded geometry" test in testgtk now works beautifully.
8421
8422         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8423         Turns out this function shouldn't actually ever modify the
8424         window's size, just store the hints. (Old code kept for a while
8425         inside #if 0.)
8426
8427         (gdk_window_set_hints): Remove presumably broken code that handles
8428         the position hints, this function is obsolete anyway.
8429
8430         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8431         variables, not used.
8432
8433         (adjust_drag): New function, used to implement resize increment
8434         hints.
8435
8436         (gdk_event_translate): Handle WM_SIZING, implement resize
8437         increment and base size, and aspect ratio geometry hints here. The
8438         WM_GETMINMAXINFO handler takes care of the minimum and maximum
8439         size hints as before. Fix the WM_GETMINMAXINFO handler to take
8440         into account window decorations. No need to modify the
8441         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8442         the defaults are fine.
8443         
8444         * gdk/win32/gdkprivate-win32.h 
8445         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8446         _gdk_win32_get_adjusted_client_rect): New helper functions.
8447
8448 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8449
8450         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8451         toplevel->have_* flags before iterating over the _NET_WM_STATE 
8452         atoms.  (#119217) 
8453
8454 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
8455  
8456         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
8457         Fix a bug where on theme change, resize/redraw wasn't
8458         properly getting queued on toplevel windows. (#116346,
8459         Rajkumar Siva)
8460  
8461         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
8462         Fix bug where wrong coordinates were used for toplevel
8463         window.
8464  
8465 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
8466
8467         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8468         page_num variable (Archit Baweja)
8469
8470 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8471
8472         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8473         cope with C libraries with crippled locale support.  (#115293)
8474
8475 2003-08-07  Hans Breuer  <hans@breuer.org>
8476
8477         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8478         (only if the new window not known to Gdk) to get proper
8479         leave notification, and get rid of the wrong placed 
8480         tooltips, bug #102283
8481  
8482         (gdk_event_translate) : small code reordering to not get
8483         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
8484         menus, bug #117367
8485
8486 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8487
8488         * gdk/gdk.def
8489         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8490         missing function, trivially implement.
8491
8492 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8493
8494         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
8495         rendering.  (#118646, Charles Kerr) 
8496
8497 2003-08-06  Hans Breuer  <hans@breuer.org>
8498
8499         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8500         initialize bits to 0 (probably default on NT)
8501
8502         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8503         now it works as intended ;-)
8504
8505 2003-08-04  Hans Breuer  <hans@breuer.org>
8506
8507         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8508         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8509
8510         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8511         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8512
8513         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8514         against all expectations it is basically ony a call with WM_SETICON
8515         needed (the visual effect is there, though colors or mask are
8516         still somewhat wrong).
8517         * gdk/win32/gdkwindow-win32.h : place to store the HICON
8518
8519         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8520         pixel drawing as it was fixed at 1999-08-23
8521
8522         gtk/gtk.def : updated
8523
8524 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
8525
8526         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
8527         Add a missing break. (#119156, Callum McKenzie)
8528
8529 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8530
8531         * gtk/gtkmenu.c (gtk_menu_position): New positioning
8532         algorithm.(#116649)
8533
8534 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8535
8536         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8537         property
8538         
8539         * gtk/gtkradiotoolbutton.c
8540         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8541
8542         * gtk/gtkradiotoolbutton.c
8543         (gtk_radio_tool_button_new_with_stock_from_widget): make this
8544         function take a stock_id.
8545
8546         * gtk/toolbar: documentation
8547
8548 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
8549
8550         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
8551         Fix problem where use_xshm was getting set wrong if
8552         MIT_SHM wasn't found. (George Lebel)
8553
8554 2003-08-04  Tor Lillqvist  <tml@iki.fi
8555
8556         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8557         actually use the passed-in filter list. The function also needs a
8558         GdkWindow parameter, as filter functions expect
8559         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8560
8561 2003-08-03  Matthias Clasen  <maclas@gmx.de>
8562
8563         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
8564         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8565         the term "virtual screen".  (#119030, Tor Lillqvist)
8566
8567 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8568
8569         * tests/testtext.c (test_init): 
8570         * tests/testgtk.c (test_init): 
8571         * tests/testdnd.c (test_init): 
8572         * demos/pixbuf-init.c (pixbuf_init): 
8573         * demos/gtk-demo/main.c (main): Use g_setenv().
8574
8575         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8576         g_unsetenv(). 
8577
8578 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
8579
8580         * configure.in: Requires glib-2.3.0, pango-1.2.0.
8581
8582         * configure.in: Require Xft version 2,
8583         remove code for handling older versions of pango and Xft.
8584         Many miscellaneous improvements to X checks
8585
8586         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
8587         a library to a variable, avoiding dups.
8588
8589         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
8590         Always load "fixed"
8591
8592         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8593         for pangox.
8594
8595 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8596
8597         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
8598         (palette_drop_handle): 
8599         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
8600         drops with the wrong format, since the KDE color chooser incorrectly
8601         drops application/x-color with format 8.  (#118810)
8602
8603         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
8604         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
8605         Accept drops with the wrong format, since the KDE color chooser 
8606         incorrectly drops application/x-color with format 8.  (#118810)
8607
8608 2003-08-02  Tor Lillqvist  <tml@iki.fi>
8609
8610         Fix gdk/win32 window geometry handling again. The window position
8611         in a GDK_CONFIGURE event should be that of the client area, not of
8612         the window decorations. (I was confused by the term "window
8613         border" in X11. It does *not* mean the window manager
8614         decorations. There are no X11-style window borders in Win32.)
8615         Also, this time do take the geometry hints into account
8616         appropriately when moving windows. Now testgtk's gravity test's
8617         move buttons work OK. There are stil problems with taking gravity
8618         into account when showing a hidden window.
8619
8620         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8621         instead of separate fields.
8622         
8623         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8624         adjust for decorations.
8625
8626         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8627         adjust_for_gravity_hints): New functions.
8628         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8629         above functions, take geometry hints into account.
8630         (gdk_window_set_geometry_hints): Size hints specicy client area,
8631         not including decorations.
8632
8633 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
8634
8635         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8636         return an absolute path (#115590), fix a problem where
8637         you could crash the file selector with a looong name
8638         by returning a newly allocated buffer.
8639
8640 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
8641
8642         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8643         bug in rarely or never hit code path (#118071,
8644         Tor Lillqvist)
8645
8646 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
8647
8648         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
8649         If the check for missing depths, try actually creating pixmaps
8650         of the depths to deal with Xinerama not reporting
8651         all the depths it should. (#115822)
8652
8653 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
8654
8655         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8656         forward KeyRelease events as well as KeyPress events.
8657         (#115597)
8658
8659 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
8660  
8661         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8662         if argc is 0 as well, instead of leaving it unset.
8663         (#116023, Michael Meeks)
8664  
8665 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8666
8667         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8668         default to TRUE; ignore the property when api_mode != NEW_API
8669
8670 2003-07-31  Matthias Clasen  <maclas@gmx.de>
8671
8672         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8673         to icon, to pacify gtk-doc.
8674
8675         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
8676         example. 
8677
8678 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8679
8680         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8681
8682 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8683
8684         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8685         overflow_item field.
8686
8687 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8688
8689         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8690         an internal function
8691
8692         * gtk/gtktoolitem.h: remove unused declaration of
8693         _gtk_tool_item_get_drag_window().
8694
8695 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8696
8697         * gtk/gtktoolbutton.[ch]:
8698         (gtk_tool_button_new): swap icon_widget and label arguments to
8699         match BonoboUIToolbarButton.
8700
8701         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8702
8703 2003-07-30  Matthias Clasen  <maclas@gmx.de>
8704
8705         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8706         signal docs. 
8707
8708 2003-07-29  Tor Lillqvist  <tml@iki.fi>
8709
8710         Fix for #108007, #112402, #117042: There was confusion in
8711         gdk/win32 at various places whether a window position refers to
8712         the decoration position or the client area position. Also whether
8713         window size includes decorations or not.
8714         
8715         The correct interpretation apparently is that in GDK (like in
8716         X11), a top-level window position means the decoration's position,
8717         but size means the window's inner size (client area size). In the
8718         Win32 API, the window size usually includes the decorations,
8719         though.
8720         
8721         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
8722         #ifdef G_ENABLE_DEBUG.
8723         (handle_configure_event): New function, generates GDK_CONFIGURE
8724         events from WM_SIZE and WM_MOVE messages. Even if no event is
8725         generated because of the event mask, still set the private
8726         position and size fields. Calculate position and size correctly.
8727         (gdk_event_translate): Call handle_configure_event().
8728
8729         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
8730
8731         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
8732         macros. Cosmetic debugging output changes.
8733         (SafeAdjustWindowRectEx): Remove. If an application wants to
8734         locate a window outside of the screen, it's not GDK's business to
8735         prevent it. And anyway, with multiple monitors, negative
8736         coordinates are perfectly normal.
8737         (gdk_window_new): Adjust the window size for decorations after
8738         _gdk_window_init_position() has done its job. (But the big window
8739         code currently is presumably broken on Win32 anyway.)
8740         (gdk_window_move): The position passed in is supposed to be that
8741         of the window border, so don't need to adjust for decorations.
8742         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
8743
8744 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8745
8746         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
8747         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
8748         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
8749         gtk_toolbar_append_space, gtk_toolbar_insert_item,
8750         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
8751         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
8752         gtk_toolbar_new, gtk_toolbar_prepend_item):
8753
8754         Move documentation inline from template files.
8755
8756         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
8757         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
8758         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
8759         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
8760         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
8761         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
8762         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
8763
8764         Copy documentation from stable that was added after the EggToolbar
8765         branched.
8766
8767         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
8768
8769 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8770
8771         * gtk+/docs/: Commit autogenerated changes, so patches will make
8772         sense.
8773
8774 2003-07-27  Tor Lillqvist  <tml@iki.fi>
8775
8776         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
8777         the keyboard state returned by GetKeyboardState() doesn't
8778         distinguish between the left and right Control and Alt keys. Thus
8779         we cannot detect AltGr (which is supposed to be left Control +
8780         right Alt) the same way as on NT-based systems, but have to accept
8781         either Control + either Alt as AltGr.
8782
8783 2003-07-27  Matthias Clasen  <maclas@gmx.de>
8784
8785         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8786         Fix function name in warning message.  (#118156, Tim-Philipp
8787         Mller)
8788
8789         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
8790         is-expander and is-expanded are boolean properties, not ints.
8791         (#118359, Josh Parsons)
8792
8793 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8794
8795         * gtk/gtkimagemenuitem.c
8796         (gtk_image_menu_item_toggle_size_request): don't request
8797         toggle_space when the image width is 0.
8798
8799 2003-07-25  Tor Lillqvist  <tml@iki.fi>
8800
8801         * gdk/win32/gdkprivate-win32.h
8802         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
8803         and _gdk_keyboard_has_altgr.
8804         
8805         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
8806         ones detailled here.
8807
8808         Code that has been ifdeffed out for a long time removed. Remove
8809         some really old doc comments that were left behind for some public
8810         functions, the official ones are in the X11 backend anyway. Change
8811         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
8812         multi-line boolean expressions to have the operators at ends of
8813         lines.
8814
8815         As mouse capture with SetCapture() indeed seems to work OK, no
8816         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
8817
8818         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
8819         needed at some time, and things seem to work fine now without
8820         (knock on wood).
8821
8822         Ifdef out the search for some Latin locale keyboard layout being
8823         loaded. Not used currently, but might be needed after all, if we
8824         decide that we want to be able to generate ASCII control character
8825         events with a non-Latin keyboard.
8826
8827         (assign_object): New helper function, handles the g_object_ref()
8828         and unref() calls when assigning GObject pointers.
8829                 
8830         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
8831         enter event when the pointer has moved to an ancestor window. Was
8832         left out by mistake.
8833
8834         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
8835
8836         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
8837         functionality, using ClipCursor().
8838                 
8839         (find_window_for_mouse_event): Splice part of code into new
8840         function find_real_window_for_grabbed_mouse_event().
8841
8842         (fixup_event, append_event, apply_filters): New functions, code
8843         refactored out from elsewhere.
8844
8845         (synthesize_enter_or_leave_event, synthesize_leave_event,
8846         synthesize_enter_event,
8847         synthesize_leave_events,synthesize_enter_events): Also take a
8848         GdkCrossingMode parameter, in preparation to generating
8849         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
8850
8851         (fixup_event, append_event, fill_key_event_string): New functions,
8852         code refactoring.
8853
8854         (vk_from_char, build_keypress_event, build_keyrelease_event):
8855         Removed as part of dropping WM_CHAR handling.
8856
8857         (build_key_event_state,gdk_event_translate): Call
8858         GetKeyboardState(), once, for each keyboard message, instead of
8859         several calls to GetKeyState() here and there.
8860
8861         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
8862         at it, do some major refactoring, and some fixes for potential
8863         problems noticed while going through the code.
8864
8865         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
8866         WM_KEYUP. Don't need the state variables related to whether to
8867         wait for WM_CHAR or not, and whether the current key is
8868         AltGr. Remove lots of complexity. Thus don't need the
8869         use_ime_composition flag.
8870
8871         Not handling WM_CHAR means dead key handling will have to be taken
8872         care of by GTK, but that seems to work fine, so no worry.
8873
8874         Another side-effect is that Alt+keypad digits don't work any
8875         longer, but it's better to learn to use GTK's ISO14755 support is
8876         anyway.
8877
8878         Be more careful in checking whether AltGr is involved. Only
8879         attempt to handle it if the keyboard actually has it. And
8880         explicitly check for *left* Control plus *right* Alt being
8881         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
8882         chars.
8883
8884         Handle keys using similar code as in the X11 backend. As we have
8885         built a keymap in gdkkeys-win32.c anyway, use it by calling
8886         gdk_keymap_translate_keyboard_state() to look up the keysym from
8887         the virtual key code and keyboard state. Build the key event
8888         string in exactly the same way as the X11 backend.
8889
8890         If an IME is being used, don't generate GDK events for keys
8891         between receiving WM_IME_STARTCOMPOSITION and
8892         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
8893         
8894         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
8895         the IME, not just the first one.
8896
8897         gdk_event_translate() is still quite complex, could split the
8898         message handler cases out into separate functions.
8899
8900         On mouse events, when the mouse is grabbed, use
8901         find_real_window_for_grabbed_mouse_event() in order to be able to
8902         generate correct crossing events.
8903         
8904         No longer take a pre-allocated GdkEvent as parameter. Instead,
8905         allocate events as needed and append them to the queue. (This is
8906         different from how gdk_event_translate() in the X11 backend
8907         works.) This change made the code much clearer, especially in the
8908         cases where we have to generate several GDK events for one Windows
8909         message.  Return FALSE if DefWindowProc() should be called, TRUE
8910         if not. If DefWindowProc() should not be called, also return the
8911         value to be returned from the window procedure.
8912
8913         (Previously, the interaction with gdk_event_translate()'s caller
8914         was much more complex, when we had to indicate whether the
8915         already-queued event should be left in the queue or removed, and
8916         in addition also had to indicate whether to call DefWindowProc()
8917         or not, and what value to return from the window procedure if
8918         not.)
8919
8920         Don't use a separate "private" variable required to be pointing to
8921         the GdkWindowObject of the "window" variable at all times. Just
8922         use casts, even if looks a bit uglier.
8923
8924         Notice destroyed windows as early as possible, and break out of
8925         the messsage switch.
8926
8927         Use _gdk_pointer_root as current_window when the pointer is
8928         outside GDK's top-level windows.
8929         
8930         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
8931         appropriate, based on ImmIsIME().
8932         
8933         (gdk_event_translate, gdk_event_send_client_message_for_display,
8934         gdk_screen_broadcast_client_message): Implement client messages.
8935         Use a registered Windows message to pass GDK client messages. Note
8936         that the amount of user data is restricted to four bytes, as it is
8937         carried in the LPARAM. (The WPARAM is used for the message type
8938         "atom".)
8939         
8940         (real_window_procedure): Adapt for new gdk_event_translate()
8941         interface.
8942
8943         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
8944         _gdk_input_locale_is_ime initially.
8945
8946         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
8947         of g_colormap_ref()/unref().
8948
8949         (gdk_window_new): Made code a bit more like the X11 one, pretend
8950         to handle screens (although we just have one for now).
8951
8952         * gdk/x11/gdkevents-x11.c
8953         (gdk_event_send_client_message_for_display,
8954         gdk_screen_broadcast_client_message): Document the user data
8955         limitation on Win32.
8956
8957         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
8958         and leave notify detail output.
8959
8960         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
8961         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
8962         for those, so that the GtkIMContextCimple compose tables will
8963         work. Deduce if the keyboard layout has the AltGr key, and set the
8964         above flag accordingly.
8965
8966 2003-07-26  Matthias Clasen  <maclas@gmx.de>
8967
8968         * gtk/gtkwidget.c: Document DND signals.
8969
8970 2003-07-24  Matthias Clasen  <maclas@gmx.de>
8971
8972         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
8973         insensitive when editing isn't possible.  (#118150)
8974
8975 2003-07-23  Matthias Clasen  <maclas@gmx.de>
8976
8977         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
8978         spinbutton wrap.  (#118097, John Darrington)
8979
8980         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
8981
8982 2003-07-20  Hans Breuer  <hans@breuer.org>
8983
8984         * makefile.msc : new file to build it all
8985         * Makefile.am : ... added to EXTRA_DIST
8986
8987         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
8988           gtk/makefile.msc.in tests/makefile.msc : updated
8989
8990         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
8991         functions
8992
8993         * gtk/gtkbbox.c : use g_return_val_if_fail() if
8994         there is a value to return
8995
8996         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
8997         static correctness
8998
8999         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
9000         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
9001
9002         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
9003
9004         * gtk/gtkimmulticontext.c : use gtkprivate.h
9005
9006         * gtk/stock-icons/stock_color_picker_25.png
9007           gtk/stock-icons/stock_jump_to_rtl_16.png
9008           gtk/stock-icons/stock_jump_to_rtl_24.png
9009           gtk/stock-icons/stock_redo_rtl_16.png
9010           gtk/stock-icons/stock_redo_rtl_24.png
9011           gtk/stock-icons/stock_undelete_rtl_16.png
9012           gtk/stock-icons/stock_undelete_rtl_24.png
9013           gtk/stock-icons/stock_undo_rtl_16.png :
9014           gtk/stock-icons/stock_undo_rtl_24.png :
9015         readded as binary
9016
9017 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9018
9019         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
9020         leftover request of {xy}thickness
9021
9022 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9023
9024         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
9025         attempt to add a NULL icon to the box.
9026
9027 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9028
9029         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
9030         on focus in/out.
9031
9032 2003-07-19  Matthias Clasen  <maclas@gmx.de>
9033
9034         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
9035         * gtk/gtkiconfactory.c (get_default_icons): Add
9036         stock_dialog_authentication_48.  (#65765) 
9037         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
9038         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
9039
9040         * gtk/gtkbbox.h: 
9041         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
9042         function. (#64562) 
9043
9044 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9045
9046         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
9047         declaration
9048
9049         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
9050         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
9051         instead of full draws.
9052
9053 2003-07-18  Matthias Clasen  <maclas@gmx.de>
9054
9055         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
9056
9057         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
9058         signal, move_viewport. 
9059         (gtk_text_view_move_viewport): New function which implements the
9060         move_viewport functionality. 
9061         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
9062         the viewport. (#78669) 
9063
9064         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
9065         move_viewport argument. 
9066
9067         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
9068         property.  (#111779) 
9069
9070         * gtk/gtkwindow.h: 
9071         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
9072
9073         * gtk/gtkmessagedialog.h:
9074         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
9075         (#65501, Sebastian Rittau)
9076
9077 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9078
9079         * gtk/gtktextview.c (changed_handler): use
9080         gtk_widget_queue_resize_noredraw().
9081
9082 2003-07-16  Jody Goldberg <jody@gnome.org>
9083
9084         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
9085
9086 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9087
9088         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
9089         API. 
9090
9091 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9092
9093         By popular request give toolbuttons a border.
9094         
9095         * gtk/gtktoolitem.c
9096         (gtk_tool_item_size_allocate):
9097         (gtk_tool_item_size_request): don't request and allocate a border
9098         around the child
9099
9100         * gtk/gtktoolbutton.c 
9101         (gtk_tool_button_size_allocate):
9102         (gtk_tool_button_size_request): remove these functions
9103
9104         * gtk/gtktoolbar.c 
9105         (gtk_toolbar_size_request):
9106         (gtk_toolbar_size_allocate): request and allocate a border if we
9107         have a shadow.
9108
9109 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
9110
9111         Merged from stable.
9112
9113         Fixes issues pointed out by Morten Welinder in #115140.
9114
9115         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
9116         (do_validate_rows): update validated_area with a logic OR instead
9117         of a bitwise OR,
9118         (validate_rows_handler): make the if statement match the one in
9119         validate_rows(), so we don't leak the timeout.
9120
9121 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
9122
9123         Merged from stable.
9124
9125         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
9126         should only grab focus back if the "cell_editable" widget still
9127         has focus. (Fixes #110104, testcase provided by Marco Pesenti
9128         Gritti).
9129
9130 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
9131
9132         Merged from stable.
9133
9134         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
9135         Don't set attr.event_mask twice, those things were meant to be
9136         ORred. (#115139, pointed out by Morten Welinder).
9137
9138 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
9139
9140         Merged from stable.
9141
9142         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
9143         if needed. (Fixes #115869, reported by Michael Natterer).
9144
9145 2003-07-15  Matthias Clasen  <maclas@gmx.de>
9146
9147         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9148         Fight against gtk-doc stupidity.
9149
9150 2003-07-13  Matthias Clasen  <maclas@gmx.de>
9151
9152         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
9153         targets, to pacify gtk-doc.
9154
9155 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9156
9157         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
9158         label_text, label_widget and icon_widget. (#117312, 
9159         Christian Persch)
9160         
9161 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9162
9163         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
9164         "horizontal-offset" and "vertical-offset" that determines the
9165         position of the menu when it is a submenu. 
9166
9167         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
9168         submenus according to new vertical- and horizontal-offset
9169         properties.
9170
9171 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
9172
9173         Merged from stable.
9174
9175         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
9176         case drags to "0", scroll to the top after dropping. (Fixes #94968,
9177         reported by Alp Toker).
9178
9179 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
9180
9181         Merged from stable.
9182
9183         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
9184         code (#115784, Owen Taylor).
9185
9186 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
9187
9188         Merged from stable.
9189
9190         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
9191         free the old text and extra_attrs *after* we parsed the new
9192         markup string. (Fixes #114485, reported by Owen Taylor).
9193
9194 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
9195
9196         Merged from stable.
9197
9198         Fixes #113904, testcase provided by Rene Seindal.
9199
9200         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
9201         pressed_button to -1 when a row has been activated,
9202         (gtk_tree_view_motion_bin_window): only start a drag if there's
9203         a button being pressed.
9204
9205 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
9206
9207         Merged from stable.
9208
9209         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
9210         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
9211         to avoid a roundtrip (#110272, Owen Taylor).
9212
9213 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
9214
9215         Merged from stable.
9216
9217         This patch really really fixes scrolling. Related bugs: #81627,
9218         testcase provided by Timo Sirainen, #111500, testcase provided by
9219         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
9220
9221         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
9222         which is equal to the lower border of the window means scrolling
9223         to an invisible row, always update the dy when scrolling to an
9224         invisible row, corrected area_above/below calculations for
9225         invisible rows, when walking the tree correct the size
9226         subtracted for invalidated rows, fix wrong logic in comment.
9227
9228 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9229
9230         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
9231         mime_types.  (#117219, Steve Chaplin)
9232
9233 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
9234
9235         * gdk/x11/gdkevents-x11.c (get_real_window)
9236         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
9237         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
9238         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
9239         Don't assume that all events start with XEventAny - Xkb events
9240         don't! (#105745). So, only do that for core events, and for
9241         non-core events, add a system for registering event types
9242         that start with XEventAny.
9243
9244         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
9245         Check to see if the result of gdk_window_lookup_for_display()
9246         is actually a window.
9247
9248 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
9249
9250         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
9251         check a silent assert, so it follows the g_free() behaviour.
9252
9253 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9254
9255         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
9256         vertically.  (#109823, Joe Shaw)
9257
9258 2003-07-11  Morten Welinder  <terra@gnome.org>
9259
9260         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
9261         access error.  (#69436)
9262
9263 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
9264
9265         Landing GtkTreeModelFilter and the completion code. (Test program
9266         and documentation will follow next week).
9267
9268         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
9269         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
9270
9271         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
9272         necessary code to hook up completion.
9273
9274         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
9275         GtkCellLayout interface.
9276
9277         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
9278
9279         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
9280         source files.
9281
9282 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
9283
9284         Merge from stable.
9285
9286         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
9287         directly return from ->window_at_pointer, but set win_x and win_y
9288         first if needed. (Fixes #110166, reported by Arno Charlet).
9289
9290         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
9291         function to accept GdkDrawables and not just GdkWindows. This was
9292         already done in some other functions a while back, but this patch
9293         got lost for some reason.
9294
9295 2003-07-09  Matthias Clasen  <maclas@gmx.de>
9296
9297         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
9298         direction when sorting children.  (#116540, Soeren Sandmann)
9299
9300 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
9301
9302         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
9303         Change _gdk_x11_send_xevent_async() to 
9304         _gdk_x11_send_client_message_async() avoid using Xlib
9305         internals that are different on Solaris. 
9306         (#116917, Morten Welinder)
9307
9308 2003-07-08  Matthias Clasen  <maclas@gmx.de>
9309
9310         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
9311         (#116501, Doug Quale)
9312
9313 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9314
9315         * gtk/gtktoggletoolbutton.h: remove strange #define
9316         * gtk/gtktoolbutton.h: fix cut'n'paste error
9317         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
9318         private data
9319         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
9320         private data instead of g_new0()
9321         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
9322         instance private data
9323
9324 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9325
9326         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
9327         for INPUT_ONLY window
9328         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
9329         * gtk/gtknotebook.c (gtk_notebook_realize): same
9330         * gtk/gtkexpander.c (gtk_expander_realize): same
9331         * gtk/gtkrange.c (gtk_range_realize): same
9332
9333         Fix #116303
9334
9335 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9336
9337         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
9338         when detail is "menuitem". With the new menu look is isn't needed
9339         anymore.
9340
9341         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
9342         resize here, so that tool items will get a chance to relayout
9343         themselves based on the toolbar configuration.
9344
9345         change DEFAULT_SPACE_SIZE to 4 instead of 5
9346
9347         * gtk/gtktoolbar.c 
9348         Get rid of "!GTK_BIN (item)->child means separator". Separators
9349         are widgets in their own right
9350
9351         change DEFAULT_SPACE_SIZE to 4 instead of 5
9352         
9353         (get_space_size): remove this function
9354         (toolbar_item_is_homogeneous): new function
9355
9356         * gtk/gtkseparatortoolitem.c
9357         (gtk_separator_tool_item_size_request): new function.
9358
9359 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9360
9361         * gtk/gtktoggletoolbutton.h: use private data, add new
9362         internal function _gtk_toggle_tool_button_get_button()
9363
9364         * gtk/gtktoolbutton.h: move to private data
9365
9366         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9367         private data.
9368
9369 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9370
9371         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9372         type check, (#116947, Krasimir Angelov)
9373
9374         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9375         
9376         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9377         data. Not instance private data yet, because of bug 116921.
9378
9379         * gtk/gtktoolitem.h: new accessors:
9380                 gtk_tool_item_get_homogeneous ()
9381                 gtk_tool_item_get_expand ()
9382                 gtk_tool_item_get_pack_end ()
9383                 gtk_tool_item_get_use_drag_window ()
9384
9385 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9386
9387         * gtk/gtkcellrenderertext.c
9388         (gtk_cell_renderer_text_class_init): remove accidentally committed
9389         debugging spew
9390
9391         * gtk/gtktoolbar.c
9392         (gtk_toolbar_paint_space_line): remove this function
9393         (gtk_toolbar_expose): always propagate expose, even if the item is
9394         a separator item
9395
9396         * gtk/gtkseparatortoolitem.c
9397         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9398         (get_space_size): new function.
9399         (get_space_style): new function
9400
9401 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
9402
9403         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9404         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
9405         of GDK_POINTER_MOTION_HINT_MASK.
9406
9407         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9408         of the drag into an idle as a superior form of 
9409         expose compression.
9410
9411         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9412         creation here, so that we have an icon at the start
9413         of the drag (e.g., when retrieving the window cache
9414         information.)
9415
9416 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9417
9418         * docs/widget_geometry.txt: better drawing of GtkMenuItem
9419         * docs/widget_geometry.txt: add notes about GtkMenu
9420         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9421
9422 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9423
9424         * gtk/gtkmenu.c: add vertical_padding style property.
9425         
9426         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9427         arrow_spacing and horizontal_padding. Also center separators and
9428         make them a bit taller.
9429
9430         * gtk/*menuitem.c: use new style properties.
9431         
9432         * docs/widget_geometry.txt: Add note about GtkMenuItem
9433
9434         * gtk/gtkstyle.c 
9435         (gtk_default_draw_vline, gtk_default_draw_hline):
9436         fix +/-1 errors. 
9437
9438         (gtk_default_draw_shadow): draw a black border around menus.
9439
9440         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9441         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9442         x2 and y1, y2 respectively, not x, width and y, height).
9443
9444 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
9445
9446         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9447         all the atoms in the target list at once.
9448
9449         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9450         Local drag short-circuit.
9451
9452         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9453         local case, poke the actions in directly instead of
9454         going through xdnd_set_actions.
9455
9456         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9457         the local case.
9458
9459         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9460         XSelectInput()/add a filter if the drag is local.
9461
9462         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
9463         Simplify handling of "XdndSelection".
9464
9465         * gdk/x11/gdkevents-x11.c
9466         (gdk_event_send_client_message_to_all_recurse): Somehow,  
9467         a WM_STATE => _NET_WM_STATE change hand been made here.
9468
9469         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9470         xatom_names, not atom_names.
9471
9472         * tests/testdnd.c (target_drag_motion): Make the trashcan
9473         open again. (Got lost in deprecation cleanup.)
9474
9475 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
9476
9477         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9478         earlier, so we don't get a big pile of uncompressed
9479         motion events before the grab takes effect.
9480
9481         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
9482         gdk_window_process_all_updates() so that the area
9483         we are dragging over gets a change to redraw.
9484
9485         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
9486         gdk_window_get_position(), not gdk_window_get_origin().
9487
9488         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9489         gdkdisplay-x11.h: use XShapeQueryExtension to 
9490         avoid duplicate XQueryExtension when we actually
9491         use it. Remove unnecessary caching in GdkDisplayX11.
9492
9493 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
9494
9495         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
9496         Function to get a range of information about all the
9497         children of a window in a single pass.
9498
9499         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9500         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9501         _gdk_x11_get_window_child_info() to greatly reduce
9502         the number of roundtrips.
9503
9504 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
9505
9506         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9507         a function to XSendEvent() and call a calback on
9508         failure/success.
9509
9510         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9511         messages to the same process, use _gdk_send_xevent_async().
9512
9513 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
9514
9515         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9516         toplevel-specific pieces of GdkWindowImplX11 into
9517         a separate GdkToplevelX11 structure.
9518
9519 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
9520
9521         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9522         some leftover fields.
9523
9524 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
9525
9526         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9527         Use asynchronously _gdk_x11_set_input_focus_safe
9528         to avoid having to trap errors and XSync().
9529
9530         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9531         _gdk_x11_set_input_focus_safe() here as well.
9532
9533         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9534         Rework handling of property notifies on _NET_WM_STATE
9535         so that we ignore _NET_WM_DESKTOP notifies unless we
9536         really care.
9537
9538         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9539         XShmQueryExtension() rather than XQueryExtension() to
9540         avoid extra rountrip.
9541
9542         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9543         Remove unused call to XGetWindowAttributes()
9544         
9545         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9546         unused call to XGetKeyboardControl().
9547
9548         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9549         Add (#99571)
9550
9551         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
9552         No-op implementations of gdk_display_flush().
9553
9554         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9555         gdk_display_flush() rather than gdk_flush() to avoid
9556         XSync().
9557         
9558         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9559         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9560         so that we don't have to get the property back from the server.
9561
9562         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9563         the serial of when we map a toplevel to allow optimizing
9564         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9565
9566         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9567         XTranslateCoordinates() for override-redirect windows.
9568
9569 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
9570
9571         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9572         about setting window group after the window is mapped from docs
9573         - nothing the ICCCM forbids that.
9574
9575         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9576         Fix g_return_val_if_fail() in void return function.
9577
9578         * configure.in: Fix misplaced comma that was resulting
9579         in XShm always being disabled.
9580
9581 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9582
9583         * tests/stresstest-toolbar: remove this accidentally committed
9584         file.
9585         
9586         * tests/stresstest-toolbar.c: really add this new test
9587
9588 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9589
9590         * tests/stresstest-toolbar.c: new test for removing items
9591         
9592         * tests/testtoolbar.c: add a popup menu
9593
9594         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9595           assert widget->parent == container when the container is a
9596           toolbar.
9597
9598         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9599         simpler. Also make correct.
9600
9601         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9602         popup_context_menu a boolean handled signal.
9603
9604 2003-07-04  Tor Lillqvist  <tml@iki.fi>
9605
9606         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9607         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9608         the width and height of the bounding rectangle only after the
9609         minumum x and y have been found, and need a separate loop for
9610         it. Thanks to Bruce Hochstetler for providing a sample program
9611         exhibiting the bug.
9612
9613 2003-07-03  Tor Lillqvist  <tml@iki.fi>
9614
9615         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9616         (#116537, Peter Zelezny)
9617
9618 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9619
9620         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9621         fix warning. Assign something to old_value to quiet gcc
9622
9623         * gtk/gtkcalendar.c 
9624         (start_spinning): gtk_timeout_add->g_timeout_add
9625
9626         * gtk/gtkicontheme.c 
9627         (theme_lookup_icon): Make it compile (remove double semicolon)
9628
9629         * gtk/gtktoolbutton.c
9630         (gtk_tool_button_class_init): Long comment about properties.
9631         (gtk_tool_button_class_init): Improve text for "use_underline"
9632         property
9633         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9634         on whether the passed-in label has use_mnemonic set
9635         (gtk_tool_button_create_menu_proxy): Split image cloning out in
9636         new function. Make that function also handle image with pixbuf
9637         storage.
9638         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9639         instead of gtk_container_remove().
9640         (gtk_tool_button_construct_contents): Fix eliding bug
9641
9642         * gtk/gtktoolbar.c
9643         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9644         by Morten Welinder
9645         (gtk_toolbar_button_press): Make popup_context_menu signal provide
9646         coordinates and button number
9647
9648         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9649
9650         * tests/apple-red.png: new file
9651
9652 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
9653          
9654         * gtk/gtkicontheme.[ch]: Implement a loader for
9655         named themed icon based on from gnome-desktop library
9656         by Alex Larsson.
9657
9658         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9659         from gnome-desktop.
9660
9661         * gtk/gtkiconfactory.[ch]: Add
9662         gtk_icon_source_set/get_icon_name() to allow stock icons
9663         to be based off of named theme icons.
9664
9665         * gtk/gtkiconfactory.c: Rework sources so that the source
9666         is *either* a pixbuf, or a filename, or an icon name,
9667         instead of the pixbuf/filename mix it was before. Put a
9668         workaround for get_pixbuf() so that it can return the
9669         filename pixbuf, e.g, for render_icon().
9670
9671         * gtk/gtkiconfactory.c: Make the default setup use
9672         themed icons, and add builtin icons to the default
9673         icon theme for all the standard pixbufs, so we
9674         don't rely on actually having an icon theme on disk.
9675
9676         * gtk/gtkrc.c: Add support for @"icon-name" to specify
9677         a themed icon for a stock icon source.
9678
9679         * tests/Makefile.am test/testicontheme.c: Add a test
9680         program from gnome-desktop.
9681
9682         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9683         Net/IconThemeName / gtk-icon-theme-name setting.
9684
9685         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9686         update the icon cache serial so we don't continually
9687         think we are out-of-date.
9688
9689         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
9690         to ::direction_set that should have been to ::direction-changed
9691
9692 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
9693
9694         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9695         style to the widget.
9696
9697 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9698
9699         * gtk/gtk.h: Add new toolbar headers
9700
9701         * tests/testtoolbar.c: new file
9702
9703         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9704
9705         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9706
9707 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9708
9709         * gtk/gtktoolbar.c:
9710         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9711         inside a for loop (pointed out by Morten Welinder).
9712         (gtk_toolbar_focus_home_or_end): Minor formatting change
9713
9714         Comments from Owen:
9715
9716         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
9717         gtk_toolbar_elide_underscores instead.
9718
9719         * gtk/gtktoolbar.c: rename signal from focus_ends to
9720         focus_home_or_end.
9721         (_gtk_toolbar_elide_underscores): export this as an internal
9722         function.
9723         (gtk_toolbar_move_focus): add comment explaining difference to
9724         gtk_toolbar_focus();
9725         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
9726         TAB_BACKWARD focus the right widgets in RTL mode
9727
9728         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
9729         "label" and "icon" parameters
9730
9731         * gtk/gtktoolbutton.[ch]: remove icon_set property.
9732
9733 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9734
9735         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
9736         (116364, Morten Welinder) 
9737
9738         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
9739         corresponding dialogs.
9740
9741         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
9742         gtkcolorbutton.h.  
9743         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
9744
9745         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
9746
9747         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
9748
9749         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
9750
9751         * gtk/gtkexpander.c: Small additions to the docs. 
9752
9753 2003-07-01  Tor Lillqvist  <tml@iki.fi>
9754
9755         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
9756         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
9757
9758 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9759
9760         * configure.in: Check for Xcursor.
9761         
9762         * gdk/x11/gdkcursor-x11.c:
9763         * gdk/gdkdisplay.h: 
9764         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
9765         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
9766         gdk_display_supports_cursor_color(),
9767         gdk_display_get_default_cursor_size() and 
9768         gdk_display_get_maximal_cursor_size().  (#69436)
9769
9770 2003-06-30  Tor Lillqvist  <tml@iki.fi>
9771
9772         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
9773         callback proc for EnumWindows().
9774         (gdk_drag_find_window_for_screen): Actually take the drag_window
9775         argument into account: Instead of using WindowFromPoint(), use
9776         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
9777         M Brown, Herman Bloggs)
9778
9779         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
9780         gdk_window_ref()/unref() calls with g_object_ref()/unref().
9781         Consistently use %p format in debugging output of pointers and
9782         HANDLEs.
9783
9784 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9785
9786         * gtk/gtkexpander.h: kill some stray characters
9787         breaking the build.
9788
9789 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9790
9791         Add GtkExpander. See discussion in bug #60553.
9792
9793         * gtk/gtkexpander.[ch]: add.
9794         
9795         * gtk/Makefile.am: build gtk-expander.[ch].
9796         
9797         * docs/widget_geometry.txt: add info on the layout
9798         of GtkExpander.
9799
9800 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9801
9802         * gtkradiotoolbutton.c:         new file
9803         * gtkradiotoolbutton.h:            "
9804         * gtktoggletoolbutton.c:           "
9805         * gtktoggletoolbutton.h:           "
9806         * gtktoolbutton.c:                 "
9807         * gtktoolbutton.h:                 "
9808         * gtktoolitem.c:                   "
9809         * gtktoolitem.h:                   "
9810         * gtktoolbar.c: many changes
9811         * gtktoolbar.h: many changes
9812         * gtkseparatortoolitem.c:       new file
9813         * gtkseparatortoolitem.h           "
9814
9815         New toolbar.
9816         
9817         - Items on a toolbar are now separate widgets, instances of a
9818           subclass of GtkToolItem.
9819
9820         - Items there aren't room for on the toolbar are unmapped, and an
9821           overflow menu with a proxy menu item is added instead.
9822
9823         - The toolbar is keyboard navigatable. Press TAB to focus the
9824           first item, then use arrow keys and Ctrl TAB to move around the
9825           toolbar. TAB moves focus out of the toolbar.
9826
9827         - Bascially all of the old toolbar API is deprecated in favor of
9828           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
9829
9830         - The toolbar is backwards compatible with the old toolbar.
9831
9832 2003-06-29  Matthias Clasen  <maclas@gmx.de>
9833
9834         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
9835         from docs, some more formatting fixes. 
9836
9837 2003-06-28  Tor Lillqvist  <tml@iki.fi>
9838
9839         Fix for #111028, thanks to J. Ali Harlow, who writes:
9840         I found that the GdkPixmap->GdkImage reference really isn't
9841         important. It's only really there to have somewhere convenient to
9842         store the location of the pixel data in the pixmap and as an easy
9843         way of accessing the dimensions of that data. I have therefore put
9844         together a fix which removes this reference entirely which seems
9845         to solve the problem.
9846
9847         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
9848         Instead of a pointer to a GdkImage, keep a pointer to the pixels
9849         directly.
9850
9851         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
9852         (_gdk_win32_new_image): New function, replacing the above. Creates
9853         a GdkImage without any associated GdkPixmap.
9854         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
9855
9856         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
9857
9858         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
9859         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
9860         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
9861         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
9862         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
9863         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
9864         Corresponding changes.
9865
9866 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9867
9868         * gtk/gtktreeviewcolumn.c
9869         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
9870         and "is_expanded" if the new value is different fromt he old one.
9871
9872 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
9873
9874         * docs/faq/gtk-faq.sgml: Fix typos. Update
9875         thread example I missed yesterday.
9876
9877 2003-06-24  Matthias Clasen  <maclas@gmx.de>
9878
9879         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
9880         shadow_type. 
9881
9882         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
9883         (gtk_widget_class_list_style_properties): Use same parameter names as in  
9884         header (to silence gtk-doc).
9885
9886         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
9887
9888 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
9889
9890         * docs/faq/gtk-faq.sgml: Thread support updates
9891         from Owen. Various suggestions from Steve Chaplin.
9892
9893 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
9894
9895         * po/id.po: Updated Indonesian translation
9896
9897 2003-06-21  Tor Lillqvist  <tml@iki.fi>
9898
9899         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
9900         emulating X11's automatic grab on button down, pass owner_events
9901         as FALSE. According to the XLib spec, automatic grabs use True for
9902         owner_events when OwnerGrabButtonMask is selected, and I don't see
9903         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
9904         (find_window_for_pointer_event): Improve debugging output.
9905
9906 2003-06-17  Tor Lillqvist  <tml@iki.fi>
9907
9908         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
9909         subdirectory, where libtool 1.5 installs them.
9910
9911         * README.win32: Point to FSF's binary Win32 distribution of
9912         gettext-runtime.
9913
9914 2003-06-17  Matthias Clasen  <maclas@gmx.de>
9915
9916         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
9917         macros to check for XML catalog contents and path, borrowed from
9918         gtk-doc. 
9919         * configure.in: New option --enable-man to enable regeneration of
9920         man pages from Docbook, if the necessary tools are found.
9921
9922 2003-06-15  Matthias Clasen  <maclas@gmx.de>
9923
9924         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
9925         * gtk/gtknotebook.c (gtk_notebook_class_init): 
9926         * gtk/gtkalignment.c (gtk_alignment_class_init): 
9927         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
9928         as 2.4 additions.
9929
9930         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
9931         to the proper place, immediately before the g_signal_new() call.
9932
9933         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
9934         more obvious.  (#115122, Jeff Franks)
9935
9936 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
9937
9938         * gtk/gtkwidget.c: (event_window_is_still_viewable):
9939         Special case pixmaps. (#114880)
9940         
9941 2003-06-12  Matthias Clasen  <maclas@gmx.de>
9942
9943         * gtk/gtkwidget.c: Document child-notify and drag-data-received
9944         signals. Owen, we need to figure out where the best place for
9945         these comments in the source is. I currently put them in front of
9946         the signals enum.
9947
9948 2003-06-11  Matthias Clasen  <maclas@gmx.de>
9949
9950         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
9951
9952 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
9953
9954         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9955         silly typo fix. s/seperator/separator/. This gets rid of the
9956         assert spam when using TreeView.
9957
9958 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9959
9960         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
9961         function for XIM instantiate callback.
9962         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
9963         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
9964         actually made.
9965         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
9966         for XIM's destroy callback.
9967         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
9968         is set or not - if it's not set, call xim_info_try_im() to try to
9969         initiaize it.
9970         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
9971         filter_key_release flag of the context.
9972         * modules/input/gtkimcontextxim.c (get_ic_real): removed
9973         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
9974         code from the removed get_ic_real().
9975
9976         For XIM instantiation, destruction and re-instantiation. With
9977         this, Gtk+ apps will be able to connect or reconnect to the XIM,
9978         when it starts after the apps, or when the XIM gets lost and recover.
9979         (#113099, #107782).
9980
9981 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
9982
9983         Merged from stable.
9984
9985         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
9986         check if width is !null, not *width. Doh.
9987
9988 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
9989
9990         Merged from stable.
9991
9992         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9993         Remove the weird dx logic, get all cell_area and background_area
9994         calculations right. Not sure what was up with it before. (Fixes
9995         #110989, testcase from Vasco Alexandre da Silva Costa).
9996
9997 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9998
9999         * tests/testgtk.c: Make it compile with C89 compilers
10000
10001 2003-06-10  Matthias Clasen  <maclas@gmx.de>
10002
10003         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
10004         property "overwrite".
10005         (gtk_text_view_[gs]et_property): Handle "overwrite".
10006         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
10007         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
10008
10009 2003-06-09  Matthias Clasen  <maclas@gmx.de>
10010
10011         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
10012         properties "resize" and "shrink".
10013         (gtk_paned_[gs]et_child_property): Implementations of 
10014         GtkContainer::[gs]et_child_property.  
10015         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
10016         paned child properties instead of remove/add hacks.  (#114667, 
10017         Soeren Sandmann) 
10018
10019 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
10020
10021         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
10022         out event->window test - it wasn't needed because
10023         of the call to get_widget_coordinates().
10024
10025         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
10026         call to gtk_widget_grab_focus() when not clicking on
10027         any tabs. (Real fix for #114534)
10028
10029 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
10030
10031         * tests/testdnd.c: Use application/x-rootwindow-drop for
10032         root window drops. (#108670, Alex Larsson)
10033
10034         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
10035         Accept either application/x-rootwin-drop (what GTK+ has always used)
10036         or application/x-rootwindow-drop (what the XDND standard specifies).
10037
10038 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
10039
10040         * gtk/gtkwidget.c (event_window_still_viewable): 
10041         Before delivering an event to a widget, check that
10042         (if relevant), the event's window is still viewable.
10043         (#105642, Dennis Björklund)
10044
10045         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
10046         NULL out private->parent, since after destruction
10047         it might not be valid any more.
10048
10049         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
10050         accesses before g_return_val_if_fail(). Treat 
10051         DESTROYED windows as unmapped.
10052
10053 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
10054
10055         * gtk/gtkentry.c: Recompute unconditionally in
10056         gtk_entry_style_set, and in a new gtk_label_screen_changed().
10057         Protect the guts of recompute_idle_func() with
10058         gtk_widget_has_screen(). (#114040, Morten Welinder) 
10059         Fix FALSE/0 confusion.
10060         
10061 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10062
10063         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
10064         Fixes (#114669)
10065
10066 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
10067
10068         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
10069         set_adjustment (viewport, NULL);
10070
10071 2003-06-07  Matthias Clasen  <maclas@gmx.de>
10072
10073         * gtk/gtkiconfactory.c (get_default_icons): 
10074         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
10075         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
10076         undelete and revert.  (#96633)
10077         
10078 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
10079
10080         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
10081         refactoring of code to reduce duplication; fixes include:
10082
10083         - gtk_viewport_realize(): Position the window correct from adjustment 
10084         values. (#110737, Michael Natterer)
10085
10086         - Remove some division-by-zero checks in places where there is no 
10087         longer division. (#110737)
10088
10089         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
10090         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
10091         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
10092
10093         - Switch over to encapsulated lazy-creation for hadjustment/
10094         vadjustment; even with the CONSTRUCT property, we need this after
10095         destroy.
10096
10097         - When updating the adjustment, immediate set their values to
10098         match the the current range of the viewport, and update the 
10099         viewport position to match the value of the new adjustments. 
10100         (Part of #1165)
10101
10102 2003-06-06  Tor Lillqvist  <tml@iki.fi>
10103
10104         * gdk/win32/gdkprivate-win32.h: Fix typo.
10105
10106         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
10107         graphics_exposures and subwindow_mode, too, even if they aren't
10108         currently used.
10109
10110 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
10111
10112         Merged from stable.
10113
10114         * gtk/gtktreeview.c (do_expand_collapse),
10115         (expand_collapse_timeout), (cancel_arrow_animation): made
10116         expand_collapse_timeout a wrapper with locks around     
10117         do_expand_collapse, made cancel_arrow_animation use
10118         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
10119         Peter Bloomfield).
10120
10121 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10122
10123         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
10124         * modules/input/gtkimcontextxim.c (preedit_start_callback,
10125         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
10126         to keep preedit-[start,changed,end] signals from being called during
10127         finalization (#111861).
10128
10129 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
10130
10131         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
10132         presses that are not on the tab (#114534).
10133
10134 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
10135
10136         * demos/Makefile.am: Conditionalize dependencies for
10137         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow). 
10138         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
10139         test-inline-pixbufs.h if we don't have libpng.
10140
10141         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
10142         Add a dependency on gdk-pixbuf.loaders when not 
10143         cross-compiling, remove the dependency on gdk-pixbuf-csource
10144         when not cross compiling.
10145
10146 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
10147
10148         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
10149         gtk_window_get_geometry_info() returning NULL.
10150         (#107311, John Finlay)
10151
10152 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
10153
10154         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
10155         twice the border width from the width/height, not
10156         1x the border width. (#106336, Rodney Dawes)
10157
10158 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
10159  
10160         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
10161         If at the end of the buffer, move to the end iter -
10162         parallels behavior of move_iter_to_previous_line.
10163         (#81960, Padraig O'Briain)
10164  
10165 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
10166
10167         #80023, Yao Zhang, TOKUNAGA Hiroyuki
10168
10169         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
10170         Account for the preedit cursor offset if the iter passed
10171         in is at the same place as the insertion cursor.
10172
10173         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
10174         Encapsulate getting the insertion cursor location.
10175
10176         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
10177         Pass the real y/height to the IM context. Take 
10178         text_view->x/yoffset into account.
10179
10180 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
10181
10182         * gtk/gtktextview.[ch]: Never scroll on focus in
10183         (#81893, Patch from Paolo Maggi)
10184
10185         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
10186         Scroll to the current cursor location before handling
10187         the action, in case the user just tabbed in
10188         and the cursor is offscreen.
10189
10190 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
10191          
10192          #107883, Gustavo GirĂĄldez
10193
10194         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
10195         Split out the case where we know we changed, and 
10196         already dealt with our cached line being invalidated
10197         from external calls to gtk_text_layout_changed.
10198
10199         * gtk/gtktextlayout.c (gtk_text_layout_changed):
10200         Check if the invalidate yrange intersects our
10201         cached line, and clear it if necessary.
10202
10203 2003-06-05  Tor Lillqvist  <tml@iki.fi>
10204
10205         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
10206         filters.
10207
10208 2003-06-05  Matthias Clasen  <maclas@gmx.de>
10209
10210         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
10211         (gtk_text_view_grab_notify): 
10212         (gtk_text_view_state_changed): Implement these
10213         to unobscure cursor when grab shadowed or insensitised.
10214         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
10215         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
10216         gtk_text_view_motion_event().
10217         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
10218
10219         * gtk/gtktextview.c (select_all): New keybinding signal for
10220         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
10221
10222         * gtk/gtkcalendar.c (calendar_timer): 
10223         (stop_spinning): Replace deprecated gtk_timeout_* functions by
10224         their GLib counterparts.  (#114429)
10225
10226         * gtk/gtktreestore.c (gtk_tree_store_new): 
10227         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
10228         types.
10229
10230 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
10231
10232         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
10233         When drawing underlines, join up adjacent runs
10234         where possible, so we don't get changes in 
10235         shaper/font/etc. breaking underlines. (#103662,
10236         Kang Jeong-Hee)
10237
10238 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
10239
10240         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
10241         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
10242         improve the speed of inserting rows into an already sorted list,
10243         #109292
10244
10245 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
10246
10247         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
10248         track of when we have a clip mask set for the GC,
10249         and when we unset it, or switch to a clip region,
10250         immediately call XSetClipMask (..., None) to avoid
10251         Xlib caching stale data. (#111806)
10252
10253         * gtk/gtktextdisplay.c: Don't set a clip mask
10254         when drawing alpha pixmaps; it isn't necessary any more.
10255         (#111806)
10256
10257 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
10258
10259         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
10260         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
10261         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
10262         (#92548, Tim Evans)
10263
10264         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
10265         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
10266         Use state_type = STATE_INSENSITIVE for insensitive menu items.
10267
10268 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
10269
10270         Merged from stable.
10271
10272         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
10273         assert for get_info. (reported by Michael Natterer),
10274         (gtk_tree_view_expand_all_emission_helper),
10275         (gtk_tree_view_expand_all_helper): emit row_expanded for all
10276         expanded rows during an _expand_all operation. (Fixes #111280,
10277         reported by Benjamin Bayart).
10278
10279 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
10280
10281         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
10282         respond to pings on a root window; prevents infinite
10283         loops if we are selecting for SubstructureNotify on the
10284         root window. (#111945, Sergey V. Udaltsov)
10285
10286 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
10287
10288         #71597, reported by Morten Welinder
10289
10290         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
10291         (Patch from Christian Petig)
10292
10293         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
10294         Major rewrite of 555 and 565 conversion routines:
10295
10296         - Move all the bit shifting into a small block of macros,
10297           eliminating much duplication of complicated arithmetic.
10298         - Get rid of 2-pixels at a time code, which was buggy,
10299           hard to maintain, caused unaligned accesses, and
10300           probably didn't actually perform any better.
10301         - Simplify cases where different data types were
10302           used for the little and big endian cases, use
10303           GUINT16_SWAP_LE_BE() where appropriate.
10304                 
10305 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
10306
10307         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
10308         bad optimization for src_rowstride == dest_stride.
10309         (Didn't consider the case where we were copying only
10310         partial widths of a wider source buffer)
10311         (#113034, reported by Hans Petter Jansson)
10312
10313 2003-06-03  Michael Natterer  <mitch@gimp.org>
10314
10315         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
10316         reenabled button_release events for xinput devices. (#113948)
10317
10318 2003-06-03  Christian Rose  <menthos@menthos.com>
10319
10320         * configure.in: Added "li" to ALL_LINGUAS.
10321
10322 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
10323
10324         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
10325         map the event window if the notebook isn't mapped. (#113980,
10326         Richard Reich)
10327
10328 2003-06-02  Sven Neumann  <sven@gimp.org>
10329
10330         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
10331
10332         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
10333
10334 2003-06-01  Matthias Clasen  <maclas@gmx.de>
10335
10336         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
10337         Since: 2.4 to the docs.
10338
10339         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
10340         an example to the docs.  (#98427)
10341
10342 2003-05-30  Murray Cumming  <murrayc@usa.net>
10343
10344         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
10345         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
10346         uses the new private data system - see g_type_class_add_private() in
10347         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10348
10349 2003-05-30  Matthias Clasen  <maclas@gmx.de>
10350         
10351         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10352         signature of gtk_notebook_draw_arrow() for Solaris builds to go
10353         through.  (#114043, Anand Subramanian)
10354
10355 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10356
10357         * modules/input/imipa.c: 
10358         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10359
10360 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10361
10362         * gtk/gtkimmodule.c (_gtk_im_module_list):
10363         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10364
10365 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10366
10367         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10368         label of default input method localizable.
10369         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
10370         use translations of input method context names
10371         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10372           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10373           modules/input/imti-er.c, modules/input/imti-et.c
10374           modules/input/imviqr.c, modules/input/imxim.c
10375         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10376         (#113850).
10377
10378 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
10379
10380         Merged from stable.
10381
10382         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10383         grab separate, the user might clear the tree in the focus-in
10384         callback. (Fixes #113086, testcase from Felipe Heidrich).
10385
10386 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
10387
10388         Merged from stable.
10389
10390         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10391         of row reference when we unset the model. Also reset
10392         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10393
10394 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
10395
10396         Merged from stable.
10397
10398         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10399         the current editing, if it exists. (Fixes #108956, reported by
10400         Michael Natterer).
10401
10402 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
10403
10404         Merged from stable.
10405
10406         * gtk/gtktreeview.c (check_selection_helper): new function,
10407         (gtk_tree_view_row_deleted): traverse the tree from the
10408         deleted node to see whether the selection changed, instead of
10409         just checking this node. (Fixes #107400, reported by 'Duncan').
10410
10411 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
10412
10413         Merged from stable.
10414
10415         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10416         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10417         instead of _maybe_begin_dragging_row, so the icon can be
10418         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10419
10420 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
10421
10422         Merged from stable.
10423
10424         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10425         cell_area x/width for the expander if needed. (Fixes #101748,
10426         reported by Dave Cook and Mariano Suarez-Alvarez).
10427
10428 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
10429
10430         Merged from stable.
10431
10432         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10433         if tree/node are still the same after _internal_select_node.
10434         (Fixes #92256, reported by edscott).
10435
10436 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
10437
10438         Fixes #75745, reported by Richard Hult. Merged from stable.
10439
10440         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10441         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10442         cursor or not.
10443
10444         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10445         if we are rendering a cursor row, and the cell the be
10446         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10447         flag (else we unset it).
10448
10449 2003-05-27  Matthias Clasen  <maclas@gmx.de>
10450
10451         * gtk/gtkwindow-decorate.c: 
10452         * gtk/gtktreeprivate.h: 
10453         * gtk/gtkdnd.c: 
10454         * gdk/win32/gdkwindow-win32.h: 
10455         * gdk/linux-fb/gdkprivate-fb.h: 
10456         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10457         unspecified signedness.  (#112919, Morten Welinder)
10458
10459         * gtk/queryimmodules.c (escape_string): 
10460         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
10461         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
10462         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
10463         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
10464         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
10465         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10466         Morten Welinder) 
10467
10468 2003-05-27  Tor Lillqvist  <tml@iki.fi>
10469
10470         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10471         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10472
10473         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10474         win32/libgdk-win32.la.
10475
10476         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10477
10478 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10479
10480         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10481         scrollbar slider length 21 instead of 7.
10482
10483 2003-05-23  Matthias Clasen  <maclas@gmx.de>
10484
10485         * gtk/gtknotebook.c: Add support for up to four scroll
10486         arrows. Control their display by new style properties
10487         "has_forward_stepper", "has_backward_stepper",
10488         "has_secondary_forward_stepper" and
10489         has_secondary_backward_stepper". (#110540)
10490
10491         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10492         click_child three bits wide, add
10493         has_{before,after}_{previous,next} fields.
10494
10495         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10496         focus out of hex_entry.  (#112665)
10497         (hex_focus_out): New signal handler for focus out of hex entry.
10498
10499 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
10500
10501         * gtk/gtkwidget.c (gtk_widget_realize): 
10502         g_return_if_fail() if
10503         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10504         (#107872, Christian Reis)
10505
10506 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10507
10508         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
10509         (gtk_file_selection_rename_file): Some keynav improvements for the
10510         "Rename File" and "Create Directory" subdialogs: Enter in entry
10511         activates default, default is "Create"/"Rename", Escape cancels
10512         dialog.  (#113110)
10513         (gtk_file_selection_set_filename): Add a hint about opening 
10514         directories.  (#113175)
10515
10516 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10517
10518         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10519         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10520         anyway.  (#113476)
10521
10522 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
10523
10524         * gtk/gtkprogress.c (gtk_progress_set_format_string,
10525         gtk_progress_set_show_text): Always queue a resize ... 
10526         we rely on the size-allocate to do the update, plus a 
10527         different format can actually change our size requisition.
10528         (#111052, Vasco Alexandre da Silva Costa)
10529
10530         * gtk/gtkprogress.c (gtk_progress_changed): Track
10531         ::changed as well as ::value_changed, and queue a
10532         resize on ::changed when necessary.
10533
10534         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
10535         Call gtk_progress_changed() here to update or 
10536         queue a resize as necessary.
10537
10538 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10539
10540         * gtk/gtkimcontextsimple.c: added composing rules of
10541         Greek accented letters, patch by Vasilis Vasaitis (#107507)
10542
10543 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10544
10545         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
10546         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10547         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10548
10549 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10550
10551         * gtk/gtkimcontextsimple.c: 
10552         code that can check the compose table for ascending order,
10553         by Vasilis Vasaitis (#104862).
10554
10555 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
10556
10557         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
10558         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
10559         to handle the case where a modifier not in the mask
10560         (like Num_Lock) changes the key value, so replace
10561         the masked state with a state/mask pair. (#106913,
10562         Olivier Ripoll)
10563
10564         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10565         in state/mask pair to _gtk_key_hash_lookup()
10566
10567 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10568
10569         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10570         fix a memory leak, free input context list (#113259).
10571
10572 2003-05-21  Matthias Clasen  <maclas@gmx.de>
10573
10574         * configure.in (all_loaders): Add pcx.
10575
10576         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
10577
10578 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
10579
10580         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10581         accept a missing gtk.immodules file, some people
10582         want to run without one. (#112406, patch from
10583         Arnaud Charlet)
10584
10585 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
10586
10587         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
10588         height/width confusion (#113370, Xan Lopez)
10589
10590 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
10591
10592         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10593         zero all unused parts of client messages (Mainly Motif DND
10594         and EWMH). Also, fix a couple places where we were putting
10595         contents into Motif DND messages that didn't belong.
10596         (#113361, EWMH problem reported by Lubos Lunak)
10597
10598         * gtk/gtkselection.c (_gtk_selection_request): Handle the
10599         case where the property type for the multiple atoms is
10600         ATOM_PAIR by doing the conversions ourselve. This is
10601         needed for Xt inter-operation.
10602
10603 2003-05-19 Arafat Medini <lumina@silverpen.de>
10604
10605         * configure.in: Added ar to ALL_LINGUAS
10606
10607 2003-05-19  Matthias Clasen  <maclas@gmx.de>
10608
10609         * gtk/gtksettings.c (gtk_rc_property_parse_border,
10610         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10611         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10612         Add docs.
10613
10614         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
10615         gtk_widget_class_install_style_property_parser): Add docs. 
10616
10617 2003-05-17  Matthias Clasen  <maclas@gmx.de>
10618
10619         * tests/prop-editor.c: Add navigation for object properties, so
10620         that you can easily edit the properties of the parent of a widget.
10621         (#113152)
10622
10623 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
10624
10625         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10626         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
10627         inconsistency and leave the old name as an aliass (#104873)
10628
10629 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
10630
10631         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10632         from Charles Schmidt to add missing notify (#108305)
10633
10634 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
10635  
10636         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10637         (#105500, Morten Welinder.)
10638  
10639 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10640
10641         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10642         instead of gumake for XNFilterEvents event mask(#110493).
10643
10644 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
10645
10646         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10647         a GObject. (#112762)
10648
10649 2003-05-08  Sven Neumann  <sven@gimp.org>
10650
10651         * configure.in: set the HAVE_X11R6 automake conditional to false
10652         if not compiling for X11.
10653
10654 2003-05-08  Matthias Clasen  <maclas@gmx.de>
10655
10656         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
10657         (gtk_calendar_get_display_options): New functions.
10658         (gtk_calendar_display_options): Depreate.  (#64567)
10659         (gtk_calendar_class_init): Add boolean properties for the display
10660         options.  (#50949)
10661
10662 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
10663
10664         Patch from James Henstridge to update to automake-1.7
10665         (#109542)
10666  
10667         * autogen.sh: update to call newer tools.
10668  
10669         * configure.in: various updates, to use M4 macros to put
10670         variables that change each release at the top.
10671         Use AC_HELP_STRING to format help strings.
10672         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10673  
10674         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
10675         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
10676         during distcheck.
10677  
10678         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10679         makefile fragment.
10680  
10681         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10682         Use BUILT_SOURCES where appropriate.
10683         Build generated files in builddir rather than srcdir.
10684         Fix uninstall and distclean targets to satisfy distcheck.
10685
10686         ===
10687
10688         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10689         built first, since we are now using BUILT_SOURCES.
10690
10691         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10692
10693         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10694         with geninclude.pl.
10695
10696         * configure.in: Update versions to 2.3.0.
10697  
10698 2003-05-06  Tor Lillqvist  <tml@iki.fi>
10699
10700         Fix for #110165 (thanks to Arnaud Charlet):
10701         
10702         * gdk/win32/gdkevents-win32.c (build_keypress_event,
10703         build_keyrelease_event): For unshifted control char, use
10704         lowercase ASCII keyval.
10705         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10706         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10707         lowercase keyval. Use build_key_event_state() here, too, instead
10708         of minor code duplication.
10709
10710 2003-05-06  Matthias Clasen  <maclas@gmx.de>
10711
10712         * tests/testmultidisplay.c: Don't include strings.h, it's not
10713         needed anymore.  (#112388)
10714
10715         * examples/menu/itemfactory.c: 
10716         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
10717         itemfactory example.
10718
10719 2003-05-05  Matthias Clasen  <maclas@gmx.de>
10720
10721         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
10722         icon type to the stock icon type.  (#111735, Dave Bordoley)
10723
10724 2003-05-05  Christian Rose  <menthos@menthos.com>
10725
10726         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
10727         Removed sp, it's replaced by sr@Latn.
10728
10729 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
10730
10731         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
10732         Gonzalo Odiard
10733
10734 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
10735
10736         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
10737         data iff the destroy func isn't NULL.
10738
10739 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
10740
10741         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
10742
10743 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
10744
10745         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
10746
10747 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
10748
10749         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
10750         of UTF-8. (#106419, Roozbeh Pournader)
10751
10752 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
10753
10754         * configure.in: Only check for XFT2 if we found pango-xft
10755         (#105692, Jon Nall)
10756
10757 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
10758
10759         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
10760         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
10761
10762 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
10763
10764         * docs/faq/gtk-faq.sgml: add note about version converage.
10765
10766 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
10767
10768         * gtk/gtksocket.c (activate_key): Fix prototype for
10769         activate_key. (#108927, Jason D. Hildebrand)
10770
10771 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
10772
10773         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
10774         Remove geninclude.pl from CVS and don't dist it either,
10775         it is generated. (#108970, Rich Kinder)
10776
10777 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
10778
10779         * gtk/gtkobject.h: Remove a couple of obsolete comments,
10780         fix another comment. (#109737, Britton Kerin)
10781
10782 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
10783
10784         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
10785         the source list, not just it's contents (Patch
10786         from Charles Kerr, #108243)
10787
10788 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
10789
10790         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
10791         from Alex Larsson fixing problem with restacking during
10792         DND. (#108671)
10793
10794 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
10795
10796         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
10797         Calling XFlush() after ungrabbing, to avoid problems if
10798         the app subsequently blocks on a long-running operation.
10799         (#106520, reported by Rajkumar Siva)
10800
10801 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
10802
10803         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
10804         SKIP_TASKBAR/SKIP_PAGER to set of properties we
10805         might set on map. (#110019, problem reported
10806         by Loban Rahman)
10807
10808 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
10809
10810         * gdk/gdkevents.c (gdk_event_copy): Fix for the
10811         case when gdk_event_copy() is called on a non-allocated
10812         event. (#109716, reported by Rich Burridge)
10813
10814 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
10815
10816         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
10817         Fix pointer arithmetic on 'void *'. (#108322)
10818
10819 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
10820
10821         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
10822         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
10823         use of XAddConnectionWatch. Remove --enable-xim config option.
10824         Should fix building on X11R6 (#110523, Albert Chin)
10825
10826 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
10827
10828         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
10829         Patch from Morten Welinder to catch Sun servers with a 
10830         broken implementation of the RENDER extension. (#108309)
10831
10832 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
10833
10834         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
10835         gdk_free_compound_text(), not g_free(). (#107643,
10836         Michael Zucchi)
10837
10838 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
10839
10840         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
10841         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
10842         wrong use of base_finalize. (#105126, Sven Neumann)
10843
10844 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
10845
10846         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
10847         '/' vs. '*' problem in aspect ration computations. (#108237)
10848
10849 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
10850
10851         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
10852         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
10853         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
10854         event, so select for both. (#108406, Egmont Koblinger)
10855
10856 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
10857
10858         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
10859         caused by not clearing the scroll_to_path.
10860
10861 2003-04-16  Matthias Clasen  <maclas@gmx.de>
10862
10863         * gtk/gtkstyle.c: Doc additions and fixes.
10864
10865         * gtk/gtktreeviewcolumn.c
10866         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
10867
10868 2003-04-14  Michael Natterer  <mitch@gimp.org>
10869
10870         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
10871         that the iter is not reordered to its own position. Prevents model
10872         corruption for the case that the store contains only a single item
10873         (fixes bug #108387).
10874
10875         Unrelated:
10876
10877         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
10878         new list element later so we don't leak it if we decide to return
10879         early.
10880
10881         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
10882         set selection->tree_view->priv->anchor to NULL after freeing it.
10883
10884 2003-04-13  Matthias Clasen  <maclas@gmx.de>
10885
10886         * gtk/gtktreeviewcolumn.c
10887         (gtk_tree_view_column_cell_get_position): Document. 
10888
10889         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
10890         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
10891         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
10892         these as 2.4 additions.
10893
10894 2003-04-09  Matthias Clasen  <maclas@gmx.de>
10895
10896         * INSTALL.in: Fix the real thing.
10897
10898         * INSTALL: Typo fix.
10899
10900 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
10901
10902         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
10903         after ungrabbing the server.
10904  
10905         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
10906         calls to XFlush().
10907
10908         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
10909         Use gdk_x11_display_grab/ungrab.
10910
10911         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
10912         use_xshm to TRUE so SHM gets used when present.
10913  
10914 2003-04-07  Matthias Clasen  <maclas@gmx.de>
10915
10916         * gtk/gtktextlayout.c (set_para_values): 
10917         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
10918         David Brigada)
10919
10920         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
10921         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
10922         misspellings of possessive "its".  (#110027, Doug Quale)
10923
10924 2003-04-03  Matthias Clasen  <maclas@gmx.de>
10925
10926         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
10927         current directory if it looks like the srcdir.  (#109357)
10928
10929 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10930
10931         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
10932         focus_on_click
10933
10934         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
10935         navigation not wrap around.
10936
10937 2003-04-02  Matthias Clasen  <maclas@gmx.de>
10938
10939         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
10940         Return 0 if lower == upper.  (#109155)
10941         (gtk_progress_get_current_percentage): Use
10942         gtk_progress_get_percentage_from_value().
10943
10944 2003-04-01  Matthias Clasen  <maclas@gmx.de>
10945
10946         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
10947         (#109510, Noah Levitt)
10948
10949 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
10950
10951         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
10952         members so Purify won't complain.
10953
10954         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
10955
10956 2003-03-31  Matthias Clasen  <maclas@gmx.de>
10957
10958         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
10959         gtk_window_[gs]et_role().  (#93904)
10960
10961 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
10962
10963         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
10964         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
10965
10966 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10967
10968         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
10969         of labels back to normal before reparenting back.  (#102387)
10970
10971         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
10972         a default window title to match the GtkFontSelectionDialog behavior.
10973  
10974         (gtk_color_selection_dialog_new): Don't call
10975         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
10976
10977 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10978
10979         Fix for bug #78499:
10980         
10981         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
10982         select_lines. 
10983
10984         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
10985         select_lines on double/triple click.
10986
10987         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
10988         select-by-words and select-by-lines behaviour.
10989
10990         Fixes for bug #56248:
10991         
10992         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
10993         timer and queue a redraw. 
10994         (gtk_notebook_grab_notify): 
10995         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
10996         if necessary.   
10997         (gtk_notebook_button_release): Use stop_scrolling().
10998         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
10999
11000         * gtk/gtkrange.c (stop_scrolling): New function to remove the
11001         grab, remove the timer and queue a redraw.
11002         (gtk_range_grab_notify): 
11003         (gtk_range_state_changed): New functions to call stop_scrolling() 
11004         if necessary.   
11005         (gtk_range_button_release): Use stop_scrolling().
11006
11007         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
11008         (gtk_spin_button_state_changed): Redraw after stop_spinning.
11009         (gtk_spin_button_stop_spinning): Reset click_child to correct the
11010         drawing of the arrows.
11011         (gtk_spin_button_button_release): Use a local copy of click_child,
11012         since stop_spinning() resets it.
11013
11014         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
11015         C-A-PgDown as alternatives to the A-less variants. (This slipped
11016         in accidentally some time ago).  (#97860)
11017
11018 2003-03-26  Sven Neumann  <sven@gimp.org>
11019
11020         * gtk/gtktreeview.c: rewrote the function that does node and arrow
11021         prelighting, queue all redraws from here (Fixes bug #108792).
11022
11023 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
11024
11025         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
11026         Fixes bug #108778.
11027
11028 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
11029
11030         * configure.in: Added "ml" in ALL_LINGUAS
11031
11032 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
11033
11034         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
11035         G_DISABLE_DEPRECATED.
11036
11037 2003-03-14  Tor Lillqvist  <tml@iki.fi>
11038
11039         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
11040         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
11041         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
11042         multiple monitors can have negative coordinates on some of the
11043         monitors. (partial fix for #99496, Arnaud Charlet)
11044
11045 2003-03-15  Matthias Clasen  <maclas@gmx.de>
11046
11047         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
11048
11049 2003-03-13  Sven Neumann  <sven@gimp.org>
11050
11051         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
11052         removed redundant calls to g_object_notify().
11053         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
11054         bug #108236.
11055
11056         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
11057         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
11058         functions return an integer value).
11059
11060 2003-03-13  Tor Lillqvist  <tml@iki.fi>
11061
11062         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
11063         WM_MOUSEMOVE, the test whether we have actually moved (and thus
11064         shouldn't generate an GDK event) moved after the call to
11065         propagate() and translate_mouse_coords(). Otherwise we were
11066         testing wrong values. (#108115, Allin Cottrell)
11067         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
11068         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
11069
11070         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
11071         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
11072         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
11073         cursor right away with SetCursor(), as we won't get any
11074         WM_SETCURSOR messages while the mouse is captured. 
11075         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
11076         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
11077
11078         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
11079         WM_SYSCHAR, return FALSE from the window procedure to prevent the
11080         DefWindowProc from being called. Otherwise Windows would beep,
11081         thinking you are tring to access a (nonexistent) menu when you
11082         press Alt-something. Don't do this for Alt-Space,
11083         though. (#107454, Martyn Russell)
11084
11085         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
11086
11087 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
11088
11089         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
11090         [left/right] expands/collapses the tree, #108092
11091
11092 2003-03-09  Tor Lillqvist  <tml@iki.fi>
11093
11094         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
11095         compensate for LineTo() not drawing the end pixel. It causes more
11096         harm than benefits, see bug #81895.
11097
11098 2003-03-08  Matthias Clasen  <maclas@gmx.de>
11099
11100         Bug #107664 continued:
11101
11102         * gdk/x11/gdkinputprivate.h: 
11103         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
11104         (_gdk_input_other_event): Return gboolean.
11105         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
11106         (_gdk_input_other_event): Return gboolean.
11107         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
11108
11109         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
11110         gboolean, remove pointless call to _gdk_input_window_none_event.
11111
11112         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
11113         (_gdk_input_window_none_event): Remove.
11114
11115         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
11116         (_gtk_text_iter_get_any_segment): 
11117         (_gtk_text_iter_get_segment_byte): 
11118         (_gtk_text_iter_get_segment_char): 
11119         (_gtk_text_iter_get_text_line): 
11120         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
11121         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
11122         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
11123         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
11124         (gdk_window_get_origin): 
11125         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
11126
11127 2003-03-06  Matthias Clasen  <maclas@gmx.de>
11128
11129         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
11130         (#107664, Morten Welinder)
11131
11132         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
11133         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
11134         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
11135         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
11136
11137         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
11138         * gtk/gtkeditable.c (gtk_editable_get_chars): 
11139         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
11140         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
11141         (#107648, Morten Welinder)Fix NULL/FALSE confusion
11142         (#107648, Morten Welinder)
11143
11144 2003-03-04  Matthias Clasen  <maclas@gmx.de>
11145
11146         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
11147
11148 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
11149
11150         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
11151         handle rtl code.  Thanks to Matthias Clasen for an initial patch
11152         to handle the RTL code.
11153
11154         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
11155
11156         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
11157
11158         * gtk/gtktreeview.c: (invalidate_column),
11159         (invalidate_last_column),
11160         (gtk_tree_view_get_real_requested_width_from_column),
11161         (gtk_tree_view_size_allocate_columns),
11162         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
11163         (gtk_tree_view_button_release_drag_column),
11164         (gtk_tree_view_update_current_reorder),
11165         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
11166         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
11167         (gtk_tree_view_get_background_xrange),
11168         (gtk_tree_view_get_arrow_xrange),
11169         (gtk_tree_view_is_expander_column),
11170         (gtk_tree_view_set_column_drag_info),
11171         (gtk_tree_view_move_cursor_left_right):
11172         Add RTL support.
11173
11174         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
11175         expand flag.
11176
11177         * gtk/gtktreeviewcolumn.c:
11178         (gtk_tree_view_column_class_init),
11179         (gtk_tree_view_column_set_property),
11180         (gtk_tree_view_column_get_property),
11181         (gtk_tree_view_column_set_expand),
11182         (gtk_tree_view_column_get_expand),
11183         (gtk_tree_view_column_cell_process_action):
11184         Add support for expand flag.  Thanks to Kristian Rietveld for an
11185         initial patch for this.
11186
11187 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
11188
11189
11190 2003-03-02  Tor Lillqvist  <tml@iki.fi>
11191
11192         * gdk/gdk.def
11193         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
11194         Gustin.
11195
11196 2003-03-01  Matthias Clasen  <maclas@gmx.de>
11197
11198         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
11199         (gtk_scrolled_window_set_hadjustment): Replace uses of
11200         gtk_object_new by g_object_new.
11201
11202 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
11203
11204         * demos/gtk-demo/main.c
11205         * demos/gtk-demo/tree_store.c
11206         * gdk/x11/gdkscreen-x11.c
11207         * gtk/gtkcellrenderertoggle.c
11208         * gtk/gtkcolorsel.c
11209         * gtk/gtkdnd.c
11210         * gtk/gtkeditable.c
11211         * gtk/gtkentry.c
11212         * gtk/gtkmenu.c
11213         * gtk/gtkmenubar.c
11214         * gtk/gtkmenuitem.c
11215         * gtk/gtkmenushell.c
11216         * gtk/gtkrc.c
11217         * gtk/gtksettings.c
11218         * gtk/gtkstyle.c
11219         * gtk/gtktextbuffer.c
11220         * gtk/gtktextview.c
11221         * gtk/gtktreeviewcolumn.c
11222         * tests/testgtk.c
11223         * tests/testtext.c
11224         * tests/testtreeedit.c
11225         * tests/testtreefocus.c
11226         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
11227
11228 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
11229
11230         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
11231         code.
11232
11233 2003-02-24  Sven Neumann  <sven@gimp.org>
11234
11235         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
11236
11237 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
11238
11239         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
11240
11241 2003-02-20  Matthias Clasen  <maclas@gmx.de>
11242
11243         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
11244         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
11245
11246         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
11247         (gtk_text_view_update_adjustments): Make sure cursor stays visible
11248         during horizontal scrolling.  (#75270)
11249
11250 2003-02-19  Matthias Clasen  <maclas@gmx.de>
11251
11252         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
11253         counterparts. (#106532)
11254
11255         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
11256         keys_changed virtual function with the keys_changed signal.
11257         (#106512, Jeff Franks)
11258
11259 2003-02-15  Larry Ewing  <lewing@ximian.com>
11260
11261         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
11262
11263 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
11264
11265         * po/id.po: Added Indonesian translation
11266         * configure.in: Added "id" to ALL_LINGUAS
11267
11268 2003-02-14  Matthias Clasen  <maclas@gmx.de>
11269
11270         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
11271
11272 2003-02-12  Christian Rose  <menthos@menthos.com>
11273
11274         * configure.in: Added "yi" to ALL_LINGUAS.
11275
11276 2003-02-12  Matthias Clasen  <maclas@gmx.de>
11277
11278         Fix for #82734 and #78216:
11279         
11280         * gtk/gtktextview.c (delete_cb): 
11281         (select_all_cb): New callbacks for context menu items.
11282         (popup_targets_received): Add "Delete" and "Select All" to context
11283         menu, mnemonics and title caps for all items.
11284
11285         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
11286         context menu item.
11287         (popup_targets_received): Add "Delete" to context menu, mnemonics
11288         and title caps for all items.
11289
11290 2003-02-09  Tor Lillqvist  <tml@iki.fi>
11291
11292         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
11293         GetDriveType() to recognize removable drives (in order to avoid
11294         hanging if trying to access an empty floppy drive), instead of
11295         hardcoding A: and B: (#105654).
11296
11297 2003-02-09  Matthias Clasen  <maclas@gmx.de>
11298
11299         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
11300         names.  (#57680)
11301
11302 2003-02-09  Christian Rose  <menthos@menthos.com>
11303
11304         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
11305
11306 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
11307
11308         * gtk/gtkobject.c: remove quark_user_data usage in
11309         gtk_object_{g|s}et_user_data(). fixes get_user_data()
11310         returning NULL for user_data set through property interface.
11311
11312         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
11313         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
11314         need to be a programming error (in case of loaded data), (b) it breaks
11315         with 2.0 behaviour where extra magic could be used to create empty
11316         images. don't attempt to retrieve pixbufs from NULL extra_data.
11317
11318 2003-02-06  Matthias Clasen  <maclas@gmx.de>
11319
11320         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
11321         a GdkVisual *, not a GdkVisual **.  (#105243)
11322
11323         * gtk/gtkclist.c: 
11324         * gtk/gtkctree.c: 
11325         * gtk/gtkcontainer.c: 
11326         * gtk/gtkdnd.c: 
11327         * gtk/gtkentry.c: 
11328         * gtk/gtklist.c:
11329         * gtk/gtkmenu.c:
11330         * gtk/gtkmenuitem.c:
11331         * gtk/gtknotebook.c:
11332         * gtk/gtkselection.c:
11333         * gtk/gtkspinbutton.c:
11334         * gtk/gtktext.c:
11335         * gtk/gtktextview.c:
11336         * gtk/gtktooltips.c:
11337         * gtk/gtktreeview.c:
11338         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
11339         their non-deprecated GLib counterparts.
11340         
11341         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
11342         
11343 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
11344
11345         * docs/tutorial/gtk-tut.sgml: cleanups from
11346         Sebastian Rittau (#104832)
11347
11348 2003-02-01  Tor Lillqvist  <tml@iki.fi>
11349
11350         Merge from stable:
11351
11352         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11353         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11354         (#104108, Naofumi Yasufuku)
11355
11356         * gdk/gdk.def: Export the above. Export
11357         gdk_screen_get_system_visual, noticed by Ed Woods.
11358
11359 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
11360
11361         * demos/pixbuf-demo.c
11362         * demos/testpixbuf.c
11363         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11364
11365 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
11366                                                                                 
11367         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11368         on the tab_label before unparenting it, in case the unparent
11369         drops the refcount to 0.
11370
11371 2003-02-01  Matthias Clasen  <maclas@gmx.de>
11372
11373         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11374         headers. Sorry about gtk_selection_clear, Yosh.
11375
11376 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
11377
11378         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11379         too, for gtkwidget.c. Remember people, when introducing new
11380         deprecations, make sure internal code isn't using it, or if so,
11381         reorganize appropriately like I've done in other places.
11382
11383         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11384
11385 2003-01-31  Matthias Clasen  <maclas@gmx.de>
11386
11387         * gtk/gtkselection.h: 
11388         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
11389
11390         * gdk/gdkpixbuf.h: 
11391         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
11392         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
11393
11394         * gtk/gtkcolorsel.h:
11395         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11396         Deprecate.  (#98167)
11397
11398         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11399
11400         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11401         and gtk_input_* functions.  (#71596)
11402         
11403         * gtk/gtkentry.c (gtk_entry_move_cursor): 
11404         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11405         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11406
11407         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
11408
11409         * gtk/gtkitemfactory.h: 
11410         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
11411         (#69244)
11412
11413 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
11414
11415         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11416         only count the special cell if it is also visible,
11417         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11418         account from visible cells,
11419         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11420         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11421         tracking bug was #104563).
11422         
11423 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
11424
11425         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11426         subtract expander space and focus line space from the extra space
11427         we are about the allocate. (Fixes #104635).
11428
11429 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
11430
11431         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11432         (Fixes #96242, patch from Soeren Sandmann).
11433
11434 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
11435
11436         * gtk/gtknotebook.c: Patch from Soeren Sandmann
11437         to update the states of the tab label child
11438         widgets to match the state of the tabs. 
11439         (#93389, Reported by Tommi Komulainen)
11440
11441 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
11442
11443         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11444         EXTRA_DIST, and from dist rules. (#102231)
11445
11446 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11447
11448         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11449         function that sets the icon's and label's packing options and
11450         visibility based on toolbar->style.
11451
11452         (gtk_toolbar_internal_insert_element):
11453         (gtk_real_toolbar_style_changed): Make use of
11454         set_child_packing_and_visibility() to clean up the code and get
11455         the packing right for icon-only/text-only toolbars. (#104679)
11456
11457         (get_first_child): Remove, and use gtk_bin_get_child() instead.
11458
11459 2003-01-30  Matthias Clasen  <maclas@gmx.de>
11460
11461         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11462         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
11463
11464         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11465         
11466 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
11467
11468         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
11469         attempt-to-allocate then free code. To handle multiple
11470         people allocating colors at the same time, we need
11471         to just go ahead and try. (#102213, Shivram U)
11472         
11473 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11474
11475         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11476         rectangle using the background color rather than relying on
11477         gdk_window_clear_area(), so that the palette works properly with
11478         pixmap themes. (#101732)
11479
11480         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11481         to fill the drawing area in the background color.
11482
11483 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
11484
11485         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11486         initialization error for selecting input style (#103549).
11487
11488 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
11489
11490         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
11491         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11492         (#101225)
11493
11494 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
11495
11496         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11497         Make up from the menu bar go to the end of the submenu.
11498         (#96114, Ian Peters.)
11499
11500         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
11501         Only do the select-but-not-activate stuff if the
11502         menu is already active. Otherwise, just activate.
11503         (#101690, Arvind Samptur)
11504
11505 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
11506
11507         * autogen.sh (have_automake): Fix version in complaint
11508         message about automake. (#104366, Rich Burridge)
11509
11510 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
11511
11512         * configure.in: Remove SOEXT stuff; it doesn't work portably.
11513
11514 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
11515
11516         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11517         we appended/prepended, send the rows_reordered signal to the 
11518         correct level ... (Reported by Matthew Tuck).
11519
11520 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
11521
11522         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11523         out if the level only has one item, recurse over the child if there
11524         is one. (Fixes #100458, reported by GaĂ«l Le Mignot).
11525
11526 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
11527
11528         * gtk/gtktreeview.c (gtk_tree_view_set_model),
11529         (gtk_tree_view_search_equal_func): make TreeView search handle
11530         all types which are transformable by GValue. (Fixes #99803, reported
11531         by Muktha Narayan).
11532
11533 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
11534
11535         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11536         *really* handle unsetting the ID. Slightly modified patch from
11537         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11538
11539 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
11540
11541         Fixes the total GtkTreeSortable mess, and #83195, reported by
11542         Jarek Dukat
11543
11544         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11545         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11546         (gtk_tree_store_set_default_sort_func): use the constant
11547         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11548         work as advertised by the documentation.
11549
11550         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11551         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11552         (gtk_list_store_set_default_sort_func): likewise.
11553
11554         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11555         (gtk_tree_model_set_sort_func),
11556         (gtk_tree_model_sort_set_default_sort_func): make functions work
11557         as advertised by the documentation.
11558
11559 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
11560
11561         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11562         before we decide if we edit. (fixes #100973, reported by Dave Cook).
11563
11564 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
11565
11566         Bug report and test case from Paolo Maggi via IRC.
11567
11568         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11569         (gtk_list_store_move): update tail if needed.
11570
11571 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
11572
11573         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11574         might be NULL. Use gtk_widget_get_display (widget) 
11575         (#102860, Thomas Leonard)
11576
11577 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
11578
11579         * configure.in: Fix --without-modules/--disable-modules
11580         confusion that was causing --disable-modules not to work.
11581         (#102865, Akira Tagoh)
11582
11583         * configure.in: Fix problem with plain --with-xinput
11584         (#104266, Akira Tagoh)
11585
11586 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
11587
11588         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11589         patch.
11590
11591 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
11592
11593         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11594
11595 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
11596
11597         * docs/faq/gtk-faq.sgml: Learn to spell Library
11598
11599 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
11600         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
11601
11602            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11603            Composite widget" to modern standards. (I.e. use gobject instead of
11604            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11605
11606         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11607         code in Appendix C to reflect above changes.
11608
11609         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11610         auto resize on page size change
11611
11612 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
11613
11614         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11615         in addition to show_all in order to keep them symmetric. (#102201)
11616
11617 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
11618
11619         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11620         the end of the function, so there is a statement following the "out"
11621         label in all cases (fixes #101961)
11622
11623 2003-01-22  Christian Rose  <menthos@menthos.com>
11624
11625         * configure.in: Added "mn" to ALL_LINGUAS.
11626
11627 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
11628  
11629         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11630         Fix off-by-one error on the backward iteration loop,
11631         that was causing the wrong range to be redrawn.
11632         (at least part of #72734)
11633         
11634 2003-01-21  Matthias Clasen  <maclas@gmx.de>
11635
11636         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11637         vadjustment value after changing its bounds.  (fixes #101963 and 
11638         #73562)
11639
11640         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
11641         unnecessary roundtrip failures.  (#93500)
11642
11643 2003-01-19  Tor Lillqvist  <tml@iki.fi>
11644
11645         Merge from stable:
11646         
11647         Fix for #103614 and some other problems with GtkFileSelection on
11648         Windows:
11649                 
11650         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11651         g_ascii_tolower(). Windows file names are case-insensitive for all
11652         Unicode letters.
11653
11654         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11655         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11656         earlier, as it includes config.h unconditionally, and gtkprivate.h
11657         redefines GTK_LOCALEDIR.
11658         (struct _CompletionDirSent): Ifdef out the fields not used on
11659         Windows.
11660         (compare_utf8_filenames, compare_sys_filenames): Need different
11661         comparison implementation for UTF-8 file names and system locale
11662         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11663         need to casefold all Unicode letters.
11664         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11665         variables not used on Win32 to avoid warnings about unused
11666         variables.
11667         (open_ref_dir): Use g_path_skip_root() to skip past potential
11668         drive letter in front of the leading (back)slash.
11669         (open_new_dir): Ifdef out use of CompletionDirSent fields not
11670         there on Win32.
11671         (correct_parent): Bypass inode check also on Cygwin.
11672
11673         Fix bug noticed by Alex Shaduri: Tooltips and other
11674         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11675         was a regression from earlier versions.
11676         
11677         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11678         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11679         (gdk_window_move, gdk_window_resize): Add debug logging.
11680
11681         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11682         WM_SIZE message for a non-visible (withdrawn) window, don't clear
11683         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11684         even if its size changes.
11685
11686 2003-01-16  Matthias Clasen  <maclas@gmx.de>
11687
11688         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11689         (totally_invisible_line): Fix an incorrect optimization which
11690         caused invisible paragraphs to be occasionally misrendered.
11691
11692 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
11693
11694         * gtk/gtksettings.c: Set the double click speed from
11695         XSETTINGS when creating a new GtkSettings object
11696         as well as when getting a notify. (#103601, reported
11697         by Louis Garcia)
11698
11699 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
11700  
11701         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
11702         Show/hide the notebook event window as necessary,
11703         we weren't previously keeping the visibility updated
11704         properly.  (#103599)
11705  
11706 2003-01-15  Matthias Clasen  <maclas@gmx.de>
11707
11708         * examples/menu/itemfactory.c: 
11709         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11710         example.  (#103211)
11711
11712 2002-12-29  Murray Cumming  <murrayc@usa.net>
11713
11714         Fixes #102168.
11715
11716         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
11717         Actually implement the GtkTreeDragSource::row_draggable virtual 
11718         function in GtkListStore and GtkTreeStore instead of just checking 
11719         whether it's implemented at all. This means that DnD isn't broken by
11720         gtkmm's virtual function wrappers. The alternative would be to
11721         hard-code the TRUE return value into gtkmm's wrappers, but that's 
11722         part of GTK+'s implementation, not it's API.
11723
11724 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
11725
11726         * gtk/gtktreeview.c: fix compiler warning.
11727
11728 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
11729
11730         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11731         make sure exposed pixbufs are clipped to the exposed area before
11732         drawing, which is a slight speedup. (#102379, patch from Soeren
11733         Sandmann).
11734
11735 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
11736
11737         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
11738         only free scroll_to_path when the complete tree has been validated.
11739         This makes sure that we scrolled to the correct path.
11740
11741 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
11742
11743         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
11744         background of widget->window and bin->window. (Fixes #96650, reported
11745         by Dave Camp).
11746
11747 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
11748
11749         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
11750         updates before scrolling, avoiding a "selection streak". (Fixes
11751         #101235, patch from Soeren Sandmann).
11752
11753 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
11754
11755         * gtk/gtktreeview.c (validate_visible_area): actually put values
11756         in the requisition using gtk_widget_size_request. (Fixes #100172,
11757         reported by Kjartan Maraas).
11758
11759 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
11760
11761         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
11762         arrow animation timeout before we actually reorder the rbtree. If
11763         we don't do this we can get stuck arrows,
11764         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
11765         reported and testcase provided by Hans Petter Jansson).
11766
11767 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
11768
11769         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
11770         anchor_path should be start_path, not end_path. (Fixes #102618,
11771         patch from Carlos Garnacho Parro).
11772
11773 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
11774
11775         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
11776         only correct new_pos if we don't move to the head/tail.
11777
11778 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
11779
11780         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
11781         the parent_iter if depth >= 1, so we send the reordered signal to
11782         the correct level, remove debugging printfs which I forgot the remove
11783         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
11784         testcase provided by Matthew Tuck).
11785
11786 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
11787
11788         * gtk/gtktreeview.c (invalite_last_column): split out actual column
11789         invalidation into invalidate_column(),
11790         (gtk_tree_view_size_allocate_columns): invalidate column if the
11791         new width is larger than the old width.
11792         (fixes #102890, reported by Alex Duggan).
11793
11794 2003-01-14  Matthias Clasen  <maclas@gmx.de>
11795
11796         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
11797         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
11798         GTK_MOVEMENT_WORDS.
11799
11800         * gtk/gtktextiter.c,
11801         gtk/gtktextiter.h: Add some variant movement functions which
11802         skip invisible chars, and do some cleanups.
11803
11804 2003-01-12  Tor Lillqvist  <tml@iki.fi>
11805
11806         Merge from stable:
11807                 
11808         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
11809         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
11810         lookup.
11811
11812         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
11813         gdk.def.
11814
11815         * gdk/gdk.def
11816         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
11817
11818         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
11819         gtk-demo}.exe and share/gtk-2.0.
11820
11821         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
11822         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
11823         window style.
11824         (gdk_window_set_type_hint): Add all cases to the switch (not all
11825         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
11826         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
11827         won't know that the skip_taskbar hint is on for the window, is
11828         this bad?
11829
11830 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
11831
11832         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
11833         <string.h> for strlen.
11834
11835         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
11836         <string.h> for strrchr.
11837
11838         * tests/testgtk.c (create_saved_position): "x" and "y" properties
11839         for widgets no longer exist, use gtk_window_move instead.
11840
11841         * test/testtextbuffer.c (check_get_set_text): cast strlen to
11842         int for g_error.
11843
11844 2003-01-08  Matthias Clasen  <maclas@gmx.de>
11845
11846         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
11847         the selection in the presence of invisible segments.
11848
11849 2003-01-07  Matthias Clasen  <maclas@gmx.de>
11850
11851         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
11852         to "select all" and "unselect all".  (#102065)
11853
11854         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
11855         the just_selected_element is unused.
11856
11857         * gtk/gtktextview.c (extend_selection): New helper function to
11858         find the range that should be added to the selection. 
11859         (selection_motion_event_handler): 
11860         (gtk_text_view_start_selection_drag): 
11861         (gtk_text_view_end_selection_drag): 
11862         (selection_motion_event_handler): 
11863         (selection_scan_timeout): Support select-by-words/lines.
11864         (gtk_text_view_button_press_event): Start a selection drag on
11865         double/triple clicks.  (#78499)
11866
11867 2003-01-06  Matthias Clasen  <maclas@gmx.de>
11868
11869         Implement a utility function proposed in #102534:
11870         
11871         * gtk/gtktextbtree.h: 
11872         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
11873         (_gtk_text_btree_place_cursor): Now a simple wrapper around
11874         _gtk_text_btree_select_range().   
11875
11876         * gtk/gtktextbuffer.h: 
11877         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
11878         (gtk_text_buffer_place_cursor): Now a simple wrapper around
11879         gtk_text_buffer_select_range(). 
11880
11881 2003-01-05  Havoc Pennington  <hp@pobox.com>
11882
11883         * configure.in: fix a stray bracket that was breaking the build
11884
11885 2003-01-05  Tor Lillqvist  <tml@iki.fi>
11886
11887         * gtk-zip.sh.in: Use correct DLL and import library names, with
11888         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
11889         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
11890
11891         * configure.in: Improve check for dimm.h.
11892
11893         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
11894         gdk-pixbuf/Makefile.am.
11895
11896         * gdk-pixbuf/makefile.mingw.in
11897         * gdk-pixbuf/pixops/makefile.mingw.in
11898         * gdk/makefile.mingw.in
11899         * gdk/win32/makefile.mingw.in
11900         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
11901
11902         * gdk-pixbuf/Makefile.am
11903         * gdk-pixbuf/pixops/Makefile.am
11904         * gdk/Makefile.am
11905         * gdk/win32/Makefile.am
11906         * gtk/Makefile.am
11907         * configure.in: Remove makefile.mingw{,.in} from here, too.
11908         
11909         * README.win32: Updates. Don't mention the now removed
11910         makefile.mingw files.
11911
11912         * gdk/gdk.def
11913         * gtk/gtk.def: Add a couple of missing entries.
11914
11915         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
11916
11917         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
11918         earlier.
11919
11920         * gdk/win32/rc/Makefile.am: Add hack to help
11921         build/win32/lt-compile-resource decide which kind of libtool
11922         object file to produce.
11923
11924 2003-01-05  Matthias Clasen  <maclas@gmx.de>
11925
11926         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
11927         C-Down step through the sequence of paragraph ends (old behaviour
11928         included paragraph starts).  (#80340, patch by Narayana Pattipati)
11929
11930         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
11931         Check for a tag toggle at the start iterator before calling
11932         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
11933         Elstner)
11934
11935 2003-01-04  Matthias Clasen  <maclas@gmx.de>
11936
11937         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
11938         and /*< private >*/ as appropriate.  (#97211)
11939
11940 2003-01-04  Tor Lillqvist  <tml@iki.fi>
11941
11942         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
11943         distribute gtk-zip.sh.in.
11944
11945         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
11946
11947 2003-01-03  Havoc Pennington  <hp@pobox.com>
11948
11949         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
11950
11951         * docs/text_widget_internals.txt: add a file documenting some of
11952         the text widget internals
11953
11954 2003-01-02  Matthias Clasen  <maclas@gmx.de>
11955
11956         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
11957         return NULL.  (#102069)
11958
11959 2003-01-01  Matthias Clasen  <maclas@gmx.de>
11960
11961         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
11962         a main() in the library is obviously bad. 
11963
11964 2002-12-27  Matthias Clasen  <maclas@gmx.de>
11965
11966         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
11967         cursor at drop point.  (#72384)
11968         (gtk_text_view_size_allocate): Update the horizontal adjustment
11969         value.  (#75694)
11970
11971 2002-12-25  Matthias Clasen  <maclas@gmx.de>
11972
11973         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
11974         selection wrt. to empty lines.  (#90435, #90582, #91619)
11975
11976         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
11977         Keep the cursor on screen.  (#96929)
11978
11979 2002-12-24  Matthias Clasen  <maclas@gmx.de>
11980
11981         * gtk/gtktextbuffer.c (paste_from_buffer): 
11982         (clipboard_text_received): Let the user action span the insertion
11983         and the deletion of the old selection.  (#82844)
11984
11985 2002-12-23  Matthias Clasen  <maclas@gmx.de>
11986
11987         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
11988         Don't call gtk_text_iter_backward_sentence_start() if
11989         count is zero.  (#99115)
11990
11991         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
11992         move_cursor() even if the cursor hasn't moved, since it has the
11993         side effect of canceling the selection.  (#81395, #98537, #98333)
11994
11995 2002-12-22  Matthias Clasen  <maclas@gmx.de>
11996
11997         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
11998         with empty ranges.  (fixes #101564 and #80637)
11999
12000 2002-12-21  Tor Lillqvist  <tml@iki.fi>
12001
12002         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
12003         sets the window style and extended window style, and adjusts the
12004         width and height to take the window decorations into account
12005         earlier. The adjusted width and height used to be ignored. Remove
12006         the local x, y, width and height variables, no need to further
12007         confuse the code by having local copies. (Partial fix, I hope, for
12008         #101588)
12009
12010         (gdk_window_move): When moving top-level windows, take title bar
12011         and border width into account, offsetting the coordinates before
12012         calling SetWindowPos().
12013
12014         (gdk_window_set_decorations, gdk_window_set_functions):
12015         Reimplement, taking into account the peculiar semantics of
12016         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
12017
12018         (gdk_window_get_decorations): Implement. (#98981)
12019         
12020         (gdk_window_set_type_hint): When setting
12021         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
12022         (#79036)
12023
12024         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
12025
12026 2002-12-21  Matthias Clasen  <maclas@gmx.de>
12027
12028         * gtk/gtktextview.c (gtk_text_view_set_background): New static
12029         function to set the background of all windows.
12030         (gtk_text_view_style_set): Use gtk_text_view_set_background().
12031         (gtk_text_view_state_changed): New function; change background
12032         according to state.  (#88126)
12033
12034 2002-12-21  Havoc Pennington  <hp@pobox.com>
12035
12036         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
12037