]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Block the ::changed handler during the ::match-selected when done by
[~andy/gtk] / ChangeLog.pre-2-4
1 Tue Mar 16 13:54:07 2004  Jonathan Blandford  <jrb@redhat.com>
2
3         * gtk/gtkentry.c (gtk_entry_completion_key_press): Block the
4         ::changed handler during the ::match-selected when done by
5         keyboard.
6
7 Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
8
9         * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
10         Block the ::changed handler during the emission of ::match-selected.
11         Partial fix for #137226.
12
13         * gtk/gtkfilechooserentry.c: Remove the no longer needed 
14         no_pop_down flag.
15
16 Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
17
18         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
19         Fix a typo in the docs.
20
21 2004-03-15  Tor Lillqvist  <tml@iki.fi>
22
23         * README.win32: Updates.
24
25 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
26
27         * gtk/gtkfilechooserdefault.c (update_appearance): Only hide the
28         "create folder" button in OPEN mode; all the others should show it
29         it.
30         (get_paths_foreach): Handle the editable row.
31
32         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder):
33         Force a re-get of the folder so that the new directory gets added
34         to its hash table of file info.
35
36 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
37
38         * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
39         modes, set the Name entry of the file chooser if we get a
40         nonexistent filename from the file entry.  Fixes #135911.
41         (gtk_file_chooser_default_set_current_name): Oops, this should
42         also work if we are in CREATE_FOLDER mode.
43
44         * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
45         gtk_file_path_copy().
46
47         * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
48         path that we got from the model.
49         (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
50         hard-coded constant.
51
52 Mon Mar 15 13:50:14 2004  Owen Taylor  <otaylor@redhat.com>
53
54         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
55         Don't leak the temporary font description. (Nils O. SelĂ„sdal)
56
57 Mon Mar 15 12:51:17 2004  Jonathan Blandford  <jrb@gnome.org>
58
59         * gtk/gtkfilechooserdefault.c (location_popup_handler): Only show
60         the title string in OPEN/SELECT_FOLDER mode as it's open-specific.
61         Put a blank title for SAVE/CREATE_FOLDER; we are in string freeze,
62         so we'll fix it for 2.4.1 as #137272.
63
64         * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): calculate
65         space_available correctly for RTL mode.  w/o this, you can't
66         scroll down again.  Fixes #137021.
67
68 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
69
70         * gtk/gtkpathbar.c (gtk_path_bar_scroll_up): Queue a resize.
71         (gtk_path_bar_scroll_down): Likewise.
72
73 Mon Mar 15 11:40:43 2004  Owen Taylor  <otaylor@redhat.com>
74
75         * gtk/gtkfilechooserentry.c: Store the position of the 
76         file part and use that in check_completion_callback()
77         and match_selected_callback() to figure out where
78         to operate on the text, rather than recomputing the
79         information.
80
81 Mon Mar 15 10:35:19 2004  Jonathan Blandford  <jrb@gnome.org>
82
83         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): set
84         changing_folders to be true so we don't trigger a callback when we
85         remove the selection
86         (shortcuts_add_bookmarks): ditto
87
88 Mon Mar 15 10:47:18 2004  Owen Taylor  <otaylor@redhat.com>
89
90         * gtk/gtkfilechooserentry.c: s/seperator/separator/.
91
92 Mon Mar 15 09:54:36 2004  Owen Taylor  <otaylor@redhat.com>
93
94         * gtk/gtklabel.c (gtk_label_focus): Check for 
95         Control-Tab or Control-Shift-Tab, not any Control-key
96         as a current event ... handles the case where a dialog
97         is triggered from a control accelerator better.
98
99 Mon Mar 15 08:48:48 2004  Jonathan Blandford  <jrb@gnome.org>
100
101         * gtk/gtkfilechooserentry.c (match_selected_callback): implement
102         correctly.
103         (completion_match_func): Allow surpressing popdowns.
104         (maybe_append_seperator_to_path): New function to add a separator
105         item to a display_name.  Bad hack.
106         (check_completion_callback): Implement select-ahead as an idle.
107         (add_completion_idle): new function to handle select-ahead
108         (gtk_file_chooser_entry_do_insert_text): starf the select-ahead
109         idle.
110         (gtk_file_chooser_entry_focus): Override tab for completion.
111         (gtk_file_chooser_entry_activate): commit select_ahead when
112         activated.
113
114         * gtk/gtkfilechooserdefault.c (location_popup_handler): grab the
115         appropriate widget for the mode.
116
117 2004-03-15  Tor Lillqvist  <tml@iki.fi>
118
119         * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole
120         GdkGCWin32 with a single assignment, that overwrites GObject's
121         private data (for instance ref_count). (#137012, John Ehresman)
122
123 2004-03-15  Mark McLoughlin  <mark@skynet.ie>
124
125         * gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
126         GtkFileChooserDefault member. Leftover from my original patch
127         for bug #136987.
128
129 Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
130
131         * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
132         API more correctly.  Now pops down the dropdown well.
133
134         * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
135         FilePath.
136
137         * test/testfilechooser.c: disable preview widget temporarily.
138         It's not representative of a good preview widget.
139
140 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
141
142         * gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
143         Renamed from shortcuts_unselect_all(); now selects the row that
144         corresponds to the current folder, if any.  Fixes #135916.
145
146         * gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
147         _gtk_path_bar_down().
148
149 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
150
151         * gtk/gtkfilechooserdefault.c: Surround the
152         drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
153         too unstable right now.
154
155 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
156
157         * gtk/gtkfilechooserdefault.c: Implement local_only by
158         filtering the shortcuts and bookmarks list by 
159         gtk_file_system_path_to_filename (file_system, path) != NULL.
160         (#132894)
161
162         * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
163         a convenience function, may by interesting to push to the 
164         file system vtable later for performance.
165
166 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
167
168         * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
169         to be NULL, so that people can ask for information about a
170         parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
171
172         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
173         the condition describe above.
174
175         * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
176         information of root paths.
177
178         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
179
180 Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
181
182         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
183         GtkTreeViewSearchEqualFunc return value oddity here as well.
184
185         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
186         to get a string to compare to, return TRUE (no match), not 
187         FALSE (match). Handle %NULL string values gracefully.
188         Remove unused variable. (#135962, Mark McLoughlin)
189
190 2004-03-14  Morten Welinder  <terra@gnome.org>
191
192         * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
193
194 Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
195
196         * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
197         _gtk_path_bar_down().
198
199         * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
200         _gtk_path_bar_down() as bindings for Alt-Up
201         and new Alt-Down. (Partly based on a patch by
202         Mark McLoughlin, #136987)
203
204 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
205
206         Fixes #136185, patch by Morten Welinder, with some changes.
207
208         * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
209         (shortcuts_insert_path): Check the path first with check_is_folder().
210         (gtk_file_chooser_default_set_current_folder): Likewise.
211         (gtk_file_chooser_default_add_shortcut_folder): Likewise.
212         (browse_widgets_create): Unref the size group.
213
214         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
215         Handle the case where the file exists but it is not a directory.
216         (IconType): Add value for ICON_UNDECIDED.
217         (struct stat_info_entry): New structure to hold a file's struct
218         stat, its MIME type and its icon type.
219         (struct _GtkFileFolderUnix): Added a hash of struct
220         stat_info_entry, and flags to remember which info types we've read
221         so far.
222         (get_icon_type): Use a helper function for the icons-from-stat
223         types.
224         (gtk_file_system_unix_render_icon): Use the cached file info.
225         (gtk_file_folder_unix_get_info): Put the info in the cache.
226         (gtk_file_system_unix_get_folder): Create the cache of file info
227         structures.
228
229         * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
230         case where display_name is the same as the existing
231         info->display_name.
232
233 Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
234
235         #136672, reported by Christian Persch; fixes based
236         on a patch by Soeren Sandmann.
237
238         * gtk/gtkmenu.c: Change the handling of mixed gridded
239         and non-gridded menu items; the old method was causing
240         major performance problems even with the "avoid relayout
241         on destruction" hack put in recently.
242
243         Now we first lay out the gridded items and then put the 
244         non-gridded items into empty rows / after the gridded items. 
245         Layout is done in a central menu_shell_ensure_layout(). Also
246         avoid emitting property notifications when we initially
247         insert or attach items.
248         
249         * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
250         unused menu_shell->menu_flag, and document it as unused
251         in the header.
252
253         * tests/testactions.c: Add a test of creating/removing
254         lots of items.
255
256         * test/testgtk.c: Add some more cruft to the menu test.
257
258 Mon Mar 15 02:36:07 2004  Matthias Clasen  <maclas@gmx.de>
259
260         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
261         some signal docs.
262
263 Sun Mar 14 15:38:39 2004  Jonathan Blandford  <jrb@gnome.org>
264
265         * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
266         always use the match_func, even if text_column is set.
267
268 2004-03-14  Morten Welinder  <terra@gnome.org>
269
270         * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
271         "".
272         (gtk_file_system_unix_get_folder): Use the same value for lookup
273         as for insertion.  Make sure we have a directory.
274
275         * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
276         path; don't crash on NULL error.
277
278 2004-03-14  Hans Breuer  <hans@breuer.org>
279
280         gtk/gtkcombobox.c : prototype cell_view_sync_cells() before 
281         first usage
282
283         gtk/makefile.msc.in : updated 'gtk_public_h_sources'
284
285         tests/makefile.msc : added testspinbutton
286
287 Sun Mar 14 01:01:18 2004  Matthias Clasen  <maclas@gmx.de>
288
289         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
290         this function with gtk_tree_view_column_set_cell_data();
291         call the cell data func after setting the attributes.
292
293 Sun Mar 14 01:00:08 2004  Matthias Clasen  <maclas@gmx.de>
294
295         * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
296         make sure not to call gtk_cell_view_set_cell_data() when
297         displayed_row is NULL.
298
299 Sat Mar 13 18:13:13 2004  Owen Taylor  <otaylor@redhat.com>
300
301         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
302         wrapping, do the offset of the line for justification ourselves.
303         (#120256, Felipe Heidrich)
304
305 Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>
306
307         * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
308         model-less use of GtkCellView shown in testcombo.c.
309
310 2004-03-13  Tor Lillqvist  <tml@iki.fi>
311
312         * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
313         when compiling with gcc. Mingw's headers do have the required
314         definitions.
315
316         * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
317         filled polygons, don't draw the outline, similarily as
318         draw_rectangle(). Apparently GTK and GIMP don't use
319         gdk_draw_polygon() much (or always draw the outline, too), as this
320         has gone undetected for so long. Thanks to Bruce Hochstetler.
321
322 Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
323
324         * gtk/gtkwindow.c (gtk_window_destroy): Remove
325         the window from the toplevel_list here rather in destroy.
326         While this is theoretically speaking wrong, it fits
327         in better with the current reality that destroyed
328         widgets are not reusable. (#126808, Michael Natterer)
329
330 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
331
332         * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
333         beyond clearing to the background if there is no active row.
334         (#137066, reported by Owen Taylor)
335
336 Sat Mar 13 21:37:44 2004  Matthias Clasen  <maclas@gmx.de>
337
338         * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
339         list when an item is selected via the keyboard.
340
341 2004-03-13  Anders Carlsson  <andersca@gnome.org>
342
343         * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
344         (gtk_file_system_unix_get_folder),
345         (gtk_file_system_unix_create_folder), (get_parent_dir),
346         (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
347         Remove trailing slashes in path names.
348         
349 Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
350
351         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
352         this a total no-op when the new or old parent is
353         destroyed. (#134230, patch from Soeren Sandmann)
354
355         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
356         For foreign windows in our heirarchy, call
357         _gdk_windowing_window_destroy_foreign (window) and skip
358         all the normal destruction logic.
359
360         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
361         Move code to request destruction of a foreign window
362         code into a separate _gdk_windowing_window_destroy_foreign().
363
364         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
365         Call GDK_WINDOW_DISPLAY() on the wrapper not on the
366         impl. (Also from Soeren's patch)
367
368 Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
369
370         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
371         GTK_IS_PLUG toplevels, call gdk_window_get_origin() 
372         not gtk_window_get_position, as a hackround for not
373         having accurate notification of window position for
374         embedded windows. (#136112, Dan Winship)
375
376 Sat Mar 13 10:34:03 2004  Owen Taylor  <otaylor@redhat.com>
377
378         * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
379         it causes problems for pastes from other applications; see
380         comments in bugzilla for #81880.
381
382 Sat Mar 13 02:55:51 2004  Matthias Clasen  <maclas@gmx.de>
383
384         Fix middle button pasting in the TextView  (#81880, reported
385         by Evert Verhellen, patch by Paolo Borelli):
386         
387         * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve 
388         the insert mark and move the cursor to it making sure of also 
389         scroll the window if needed.
390         
391         * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
392         to the insertion point.
393
394 Sat Mar 13 01:38:55 2004  Matthias Clasen  <maclas@gmx.de>
395
396         * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove 
397         implemenatation which restores the cell_view when the custom 
398         child is removed.  (#136555, Owen Taylor)
399
400 Sat Mar 13 00:07:51 2004  Matthias Clasen  <maclas@gmx.de>
401
402         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear): 
403         Keep the cell_list in a consistent state while iterating over it, 
404         since clear_attributes() also iterates over it.  (another instance
405         of #136585, Morten Welinder)
406         
407 Fri Mar 12 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
408
409         * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
410         and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
411         Semion Chichelnitsky)
412
413         * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed 
414         gtk_toolbar_direction-changed handlers and explicit
415         flipping of GtkArrow widgets.
416
417 Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
418
419         * gtk/gtkfilechooserdialog.c
420         (file_chooser_widget_default_realized_size_changed): Clamp the
421         new size to the screen.
422
423 Fri Mar 12 15:06:44 2004  Owen Taylor  <otaylor@redhat.com>
424
425         * gtk/gtkexpander.c (gtk_expander_realize): Create the
426         event_window at the right size using the same logic as
427         in size_allocate. (#136994, Niklas Knuttson)
428
429 2004-03-12  Federico Mena Quintero  <federico@ximian.com>
430
431         * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
432         return value of gtk_widget_activate().
433         (gtk_window_activate_default): Likewise.  Fixes #137008.
434
435         * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
436         response IDs we recognize, rather than bailing out on cancellation
437         ones.  Fixes #136237; patch by Olivier Andrieu
438         <oliv__a@users.sourceforge.net>.
439         (file_chooser_widget_file_activated): If the dialog doesn't have a
440         default widget, try to find a suitable response widget on our own.
441         People should *really* be using gtk_dialog_set_default_response(),
442         but this is to help lazy programmers.
443
444         * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
445         internal function.
446         (get_response_data): Add a "create" argument so that we don't
447         unconditionally create the response data.
448
449 2004-03-12  Morten Welinder  <terra@gnome.org>
450
451         * tests/Makefile.am: Add new testspinbutton.c
452
453 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
454
455         * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
456         Put the trash icon on the right for LTR locales, or on the left
457         for RTL.
458         (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
459         (shortcuts_drag_leave_cb): Test whether the idle is present.
460         (shortcuts_drag_data_received_cb): Ahem, don't assert here.
461
462 Thu Mar 11 17:51:10 2004  Owen Taylor  <otaylor@redhat.com>
463
464         * modules/input/gtkimcontextxim.c (preedit_done_callback):
465         Clear preedit string and emit preedit_changed as needed
466         on AIX. (#130617, Philip K Warren)
467
468 2004-03-11  Morten Welinder  <terra@gnome.org>
469
470         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
471
472 Thu Mar 11 16:28:15 2004  Owen Taylor  <otaylor@redhat.com>
473
474         * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
475         type. (#136919, Tim Mooney)
476
477 Thu Mar 11 16:18:51 2004  Jonathan Blandford  <jrb@redhat.com>
478
479         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
480         earlier change to insert_path so that we test that the directory
481         exists.
482
483         * gtk/gtkfilechooserdialog.c
484         (gtk_file_chooser_dialog_constructor): move focus.
485
486 Thu Mar 11 22:12:14 2004  Matthias Clasen  <maclas@gmx.de>
487
488         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
489         logic as GtkEntry when calculating border width.  (#116368, reported
490         by Morten Welinder)
491
492 Thu Mar 11 15:59:05 2004  Owen Taylor  <otaylor@redhat.com>
493
494         * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
495         rather than gtk_widget_set_size_request().
496
497 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
498
499         * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
500         function, copied from gtkpathbar.c.
501         (gtk_file_chooser_default_dispose): Use remove_settings_signal()
502         rather than our own code.
503         (gtk_file_chooser_default_screen_changed): Use
504         remove_settings_signal(); this should handle per-screen settings
505         correctly.
506
507 Thu Mar 11 14:07:18 2004  Owen Taylor  <otaylor@redhat.com>
508
509         * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
510         value.
511
512 Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
513
514         * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
515         put-labels-into-the-standard-focus-chain patches 
516         from bug #59707.
517
518         * gtk/gtklabel.c (gtk_label_focus): Only put the
519         label in the tab chain when the control key is pressed.
520
521 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
522
523         * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
524         single OK button, not a Close button, as per the HIG.
525
526         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
527
528 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
529
530         * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
531         initialize "action" before jumping.  Fixes #136900.
532
533 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
534
535         * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
536         application properties. Fixes bug #136802.
537
538 2004-03-11  Dov Grobgeld  <dov@imagic.weizmann.ac.il>
539
540         * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
541         call to gtk_text_layout_update_cursor_line() to solve in 
542         problem of switching keyboard direction at widget creation:
543         bug #136680
544
545 Thu Mar 11 10:28:30 2004  Owen Taylor  <otaylor@redhat.com>
546
547         * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
548         stray 'return' statement. (#136855, David L. Cooper II)
549
550 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
551
552         * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
553         fg color for drawing the expander when prelit. Fixes problem
554         with the HighContrast theme: bug #136789.
555
556 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
557
558         Fix #135912 and #135913.
559
560         * gtk/gtkfilechooserdefault.c
561         (shortcuts_filter_model_row_draggable): Implement.
562         (shortcuts_model_filter_new): New function, create a
563         ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
564         we can implement our own DnD interface methods.
565         (shortcuts_model_create): Use shortcuts_model_filter_new().
566         (shortcuts_list_create): Enable the shortcuts list as a drag
567         source.
568         (file_list_source_targets): Renamed from shortcuts_targets.
569         (shortcuts_list_create): Change the options for
570         gtk_drag_dest_set().  Connect to more drag signals so that we can
571         implement drops by hand.
572         (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
573         (shortcuts_drag_motion_cb): New handler; validate the drop.
574         (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
575         (shortcuts_drag_drop_cb): New handler; just stop the emission and
576         remove the idle handler for the drag cursor.
577         (shortcuts_add_bookmark_from_path): Add a position argument,
578         return a boolean success code.
579         (shortcuts_drag_data_received_cb): Handle two cases:  1) Insert
580         the bookmarks at the proper position, rather than always appending
581         them to the list; 2) alternatively, reorder the bookmarks.
582         (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
583         (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
584         (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
585         an idle handler.
586         (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
587
588 Thu Mar 11 01:08:25 2004  Jonathan Blandford  <jrb@gnome.org>
589
590         * gtk/gtkfilechooserdefault.c (location_entry_create): up the
591         width of the entry a tad.
592
593         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
594         gtk_entry_completion_selection_changed.  Also, unref the
595         completion as we were leaking a reference to it.
596
597 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
598
599         * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon.  Thanks to
600         Kjartan Maraas for pointing it out.
601
602 Wed Mar 10 23:40:15 2004  Matthias Clasen  <maclas@gmx.de>
603
604         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
605         background on the action view cell renderer here, not in init, so 
606         that a) we catch style changes, and b) we get the real style, not 
607         the default one. Partial fix for #127648, reported by Dave Bordoley.
608
609 2004-03-10  Tor Lillqvist  <tml@iki.fi>
610
611         * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
612         the pointer button bits. (#136636, Dave Neary)
613
614         * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
615         transparent (input only) windows using SetWindowPos(). (#132331,
616         John Ehresman)
617
618         (gdk_window_set_type_hint): For splash screens, remove the resize
619         handles, menu, and minimize/maximize/close buttons. (#132896)
620
621 Wed Mar 10 22:30:23 2004  Matthias Clasen  <maclas@gmx.de>
622
623         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
624         cell_list in a consistent state while iterating over it, since
625         clear_attributes() also iterates over it.  (#136585, Morten Welinder)
626
627 2004-03-10  Mark McLoughlin  <mark@skynet.ie>
628
629         * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
630         the expose to the label. The expose handler for GtkContainer
631         already does that. Fixes bug #136719. Reported by Dennis
632         Cranston, exact cause nailed down by Owen.
633
634 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
635
636         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
637         untranslatable "%x" for dates, rather than a custom format.  Fixes
638         #136357.
639
640 2004-03-10  Morten Welinder  <terra@gnome.org>
641
642         * gtk/gtkfilechooserdefault.c
643         (gtk_file_chooser_default_add_shortcut_folder): Test validity of
644         path here.
645         (shortcuts_insert_path): Don't check here.
646         (get_file_info): Barf if name-only fails.
647
648         * tests/testfilechooser.c (main): Add support for --multiple.
649
650 Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
651
652         * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
653         (remove_settings_signal), (gtk_path_bar_dispose),
654         (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
655         (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
656         (settings_notify_cb), (gtk_path_bar_check_icon_theme),
657         (get_button_image), (gtk_path_bar_update_button_appearance),
658         (make_directory_button), (gtk_path_bar_check_parent_path): Support
659         changes in icon themes.
660
661         * gtk/gtkpathbar.h: add two elements
662
663         * tests/testfilechooser.c: (main): use gnome-vfs method again to
664         get more testing.
665
666 Wed Mar 10 01:17:40 2004  Jonathan Blandford  <jrb@gnome.org>
667
668         * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes.  We
669         don't have any more untranlated strings in the dialog.
670
671 Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>
672
673         * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
674         the pathname for UTF-8 safety.
675
676 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
677
678         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
679         check to see if the shortcuts exists.  We don't want to put
680         invalid dirs in the shortcuts pane.
681
682 Tue Mar  9 16:40:34 2004  Jonathan Blandford  <jrb@gnome.org>
683
684         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
685         remove unneeded shortuts_swin;
686
687 Wed Mar 10 01:49:27 2004  Matthias Clasen  <maclas@gmx.de>
688
689         Fix #136614 in a better way:
690         
691         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
692         * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
693         * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
694         * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
695         alignment if priv->align_set is set.
696         * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
697
698 Wed Mar 10 01:21:05 2004  Matthias Clasen  <maclas@gmx.de>
699
700         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
701         grid mode popups left aligned, not right aligned.
702
703 Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
704
705         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
706         the label that is reparented from the menuitem.  (#136614, Dennis
707         Cranston)
708
709 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
710
711         * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
712         information about a button in a struct instead of ugly
713         g_object_set_data.
714         (gtk_path_bar_size_request): Use ButtonData.
715         (gtk_path_bar_update_slider_buttons): ditto
716         (gtk_path_bar_size_allocate): ditto
717         (gtk_path_bar_remove): ditto
718         (gtk_path_bar_forall): ditto
719         (gtk_path_bar_scroll_down): ditto
720         (gtk_path_bar_clear_buttons): ditto
721         (button_clicked_cb): ditto.  Also, add an ignore_changes variable
722         (button_data_free): destroy ButtonData
723         (update_button_appearance): Use ButtonData
724         (make_directory_button): ditto
725         (gtk_path_bar_check_parent_path): ditto
726         (_gtk_path_bar_set_path): ditto
727
728 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
729
730         Fix #136533.
731
732         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
733         function.
734         (check_icon_theme): New helper function, installs a handler for
735         changes in the icon theme.
736         (gtk_file_chooser_default_style_set): Use check_icon_theme().
737         (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
738         (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
739         (change_icon_theme): New function, updates impl->icon_size and
740         reloads the icons.
741         (struct _GtkFileChooserDefault): New field settings_signal_id.
742         (struct _GtkFileChooserDefault): New field icon_size.
743         (shortcuts_insert_path): Use impl->icon_size.
744         (list_icon_data_func): Likewise.
745
746 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
747
748         * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
749         parent_path being NULL.  Fixes #136662.
750
751 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
752
753         * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
754         Stop the emission so that GtkTreeView's handler won't try to poke
755         the filter model.  Fixes #136127.
756
757 Tue Mar  9 13:49:14 2004  Owen Taylor  <otaylor@redhat.com>
758
759         * gtk/gtkstyle.c (gtk_paint_polygon): Fix 
760         g_return_if_fail() that was checking draw_shadow.
761         (#136669, Morten Welinder)
762
763 Tue Mar  9 09:57:25 2004  Owen Taylor  <otaylor@redhat.com>
764
765         * === Released 2.3.6 ===
766
767         * configure.in: Version 2.3.6, interface age 0.
768
769         * NEWS: Updates
770
771 Tue Mar  9 11:01:45 2004  Jonathan Blandford  <jrb@gnome.org>
772
773         * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
774         icon.  Reported by Michael Natterer <mitch@gimp.org>.
775
776 2004-03-09  Morten Welinder  <terra@gnome.org>
777
778         * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
779
780 Tue Mar  9 02:11:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
781
782         * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
783         (struct _GtkMenuPrivate): Add boolean destroying
784         (gtk_menu_destroy): Set priv->destroying
785         (gtk_menu_remove): don't update the table information when the
786         menu is being destroyed.
787
788         * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
789
790         * gtk/gtktoolbar.[ch]: Some formatting fixes
791
792 Tue Mar  9 01:25:10 2004  Matthias Clasen  <maclas@gmx.de>
793
794         * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
795
796 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
797
798         Fixes #136080.
799
800         * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
801         ENOENT.
802         (filename_get_info): Likewise.
803
804 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
805
806         * gtk/gtkfilechooserdefault.c
807         (gtk_file_chooser_default_initial_focus): Use
808         gtk_tree_view_set_cursor().
809
810 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
811
812         Patch "1a" from #136185, by Morten Welinder.
813
814         * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
815         that says whether the caller just wants the display name.
816         (shortcuts_insert_path): We only want the name in the call to
817         get_file_info().
818
819         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
820         info than needed from the file_folder.
821
822 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
823
824         Fixes #136105.
825
826         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
827         Added an ::initial_focus() method.
828
829         * gtk/gtkfilechooserembed.c
830         (_gtk_file_chooser_embed_delegate_iface_init): Set the
831         initial_focus method.
832         (delegate_initial_focus): Implement.
833         (_gtk_file_chooser_embed_initial_focus): New function.
834
835         * gtk/gtkfilechooserdialog.c
836         (gtk_file_chooser_dialog_constructor): Call
837         _gtk_file_chooser_embed_initial_focus().
838
839         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
840         Install the ::initial_focus() handler.
841         (gtk_file_chooser_default_initial_focus): Implement.
842
843 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
844
845         * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
846         boolean success code.
847         (location_popup_handler): Refocus the file chooser if appropriate.
848         Fixes #135905.
849         (save_widgets_create): Don't set the text of the save_folder_label
850         here.
851         (update_appearance): Set the text here as appropriate for the save
852         mode.  Also fixes #136387.
853         (update_appearance): Don't show the Create Folder button in
854         SELECT_FOLDER mode.
855         (update_appearance): Show the extra widget in all Save modes
856         correctly.
857
858 Mon Mar  8 11:57:27 2004  Owen Taylor  <otaylor@redhat.com>
859
860         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
861         call g_signal_handler_disonnect() if priv->model is
862         NULL. (#136551, Damon Chaplin)
863
864         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
865         Back out code to set the active item when the first
866         item is added to the model; this causes problems for
867         GtkComboBoxText. (#136535)
868
869         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
870         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
871         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
872         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): 
873         Remove calls to gtk_combo_box_unset_model.
874
875         * gtk/gtkcombobox.c (gtk_combo_box_check_appearance): 
876         Clean up handling of wrap->width > 0.
877
878         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
879         switch list/menu mode here.
880
881         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
882         against the same model being set back.
883
884         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
885         gtk_combo_box_menu_fill() rather than duplicating
886         a large chunk of code.
887
888 2004-03-08  Anders Carlsson  <andersca@gnome.org>
889
890         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): 
891         If max_depth is 0 then we have a list.
892
893 2004-03-08  Morten Welinder  <terra@gnome.org>
894
895         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
896         widget unchanged.  Explicitly verify final directory.
897
898         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
899         get_icon_type, filename_get_info): Protect errno.
900
901 2004-03-08  Marco Pesenti Gritti  <marco@gnome.org>
902
903         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
904
905         When an action is selected stop the event to be propagated
906         otherwise the activate signal is emitted too. (Bug #133394)
907
908 Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
909
910         * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
911         consolidate creating the path_bar.
912         (gtk_file_chooser_default_set_current_folder): no longer need to
913         pass in the filesystem.
914
915         * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
916         of just setting the filesystem.
917
918         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
919         home_dir.
920         (get_button_image): Add images to path_bar.
921         (update_button_appearance): use images
922         (make_directory_button): Clasify buttons based upon location.
923         (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
924         rerooting, #135845, #135914
925
926         * tests/testfilechooser.c: Fix reused error handling.
927
928 2004-03-08  Anders Carlsson  <andersca@gnome.org>
929
930         * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
931         (gtk_file_system_unix_render_icon):
932         Use better icons for home and desktop.
933
934 2004-03-08  Anders Carlsson  <andersca@gnome.org>
935
936         * gtk/gtkfilechooserentry.c:
937         (_gtk_file_chooser_entry_set_base_folder):
938         Set the base folder path in the entry.
939         
940 2004-03-08  Christian Neumair  <chris@gnome-de.org>
941
942         * tests/testentrycompletion.c: Fix typo.
943
944 2004-03-08  Tor Lillqvist  <tml@iki.fi>
945
946         * README.win32: Update.
947
948         * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
949
950         * tests/testfilechooser.c: Correct localtime_r() emulation on
951         Win32. Remove a couple of unnecessary Win32-only includes.
952
953 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
954
955         * tests/testentrycompletion.c: Test dynamic addition/removal. 
956
957 Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
958
959         * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not 
960         xthickness in the calculation of vertical dimensions.
961
962 Sun Mar  7 17:38:03 2004  Jonathan Blandford  <jrb@gnome.org>
963
964         * gtk/gtkbutton.c (gtk_button_class_init): actually use
965         gtk_button_add.
966
967         * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
968         use the uri, not the path, #136317
969         (renderer_edited_cb): ditto
970         (shortcuts_add_bookmark_from_path): ditto
971         (remove_bookmark_button_clicked_cb): ditto
972         (gtk_file_chooser_default_remove_shortcut): ditto
973         (update_from_entry): ditto
974         (up_folder_handler): ditto
975
976 Sun Mar  7 16:07:08 2004  Jonathan Blandford  <jrb@gnome.org>
977
978         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
979         redraw_on_allocate, #135902.
980
981         * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
982         Damon Chaplin to set a node to be visible before emitting the
983         inserted signal, #135555.
984
985 Sun Mar  7 22:24:28 2004  Matthias Clasen  <maclas@gmx.de>
986
987         * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
988         height calculation.
989
990 Sun Mar  7 14:34:04 2004  Jonathan Blandford  <jrb@gnome.org>
991
992         Fixes #121500.
993
994         * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
995         from unselecting rows when pressed in multiple-selection mode.
996
997 2004-03-07  Hans Breuer  <hans@breuer.org>
998
999         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
1000         some more settings from system, also reflect some name changes
1001         done a while ago in the x11 backend
1002
1003         * gdk/win32/makefile.msc : build gdkspawn-win32.c
1004
1005         * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
1006
1007         * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
1008
1009         * tests/makefile.msc : some more tests get build
1010
1011 Sun Mar  7 03:03:57 2004  Jonathan Blandford  <jrb@gnome.org>
1012
1013         * gtk/gtkfilechooserdefault.c
1014         (gtk_file_chooser_default_get_paths): if action is
1015         SELECT_FOLDER, then return the currentd folder if none is
1016         selected.
1017         (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
1018         no directory is selected in SELECT_FOLDER mode.
1019
1020 Sat Mar  6 23:31:18 2004  Jonathan Blandford  <jrb@gnome.org>
1021
1022         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1023         remove unneeded elements.
1024         (tree_selection_changed): removed
1025         (tree_name_data_func): removed
1026         (gtk_file_chooser_default_finalize): don't unref dir model
1027         (create_folder_tree): removed
1028         (get_selection): no longer need to abstract away the selection
1029         function.
1030         (create_file_list): We now create a tree for all actions.
1031         (file_pane_create): Make one tree.
1032         (update_appearance) We really change the mode only, now.
1033
1034 Sun Mar  7 02:38:00 2004  Matthias Clasen  <maclas@gmx.de>
1035
1036         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a 
1037         size_request on the button and cell_view_frame, otherwise
1038         their style will still be the default here in the initial 
1039         size_request. (#136301, Mark McLoughlin)
1040
1041 2004-03-06  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
1042
1043         * gtk/gtktoolbar.c (internal_insert_element): Check return value
1044         of gtk_stock_lookup; if stock lookup fails, just use stock_id as
1045         label, instead of crashing. Fixes #136202.
1046
1047 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1048
1049         * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
1050         include.
1051         * gdk/linux-fb/gdkwindow-fb.c: Likewise.
1052         * gdk/linux-fb/gdkinput.c: Likewise.
1053
1054 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1055
1056         Fixes #136082 and #135265, patch by Morten Welinder.
1057
1058         * configure.in: Use AC_SYS_LARGEFILE.
1059
1060         * */*.c: #include <config.h>
1061
1062 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1063
1064         * gtk/gtkfilechooserdefault.c
1065         (gtk_file_chooser_default_select_path): No need to have a
1066         temporary error variable.
1067
1068 2004-03-05  Tor Lillqvist  <tml@iki.fi>
1069
1070         * configure.in: Move check for native Win32 (mingw) a bit
1071         earlier. If Win32, disable static builds (as in GLib). Remove
1072         unnecessary AC_LIBTOOL_WIN32_DLL.
1073
1074         * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
1075
1076         * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
1077
1078         (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
1079         implementation.
1080
1081         (gdk_display_supports_cursor_alpha,
1082         gdk_display_supports_cursor_color): Dummy implementations.
1083
1084         (gdk_display_get_default_cursor_size,
1085         gdk_display_get_maximal_cursor_size): Implement.
1086
1087         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
1088         Dummy implementation.
1089
1090         * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
1091         implementation.
1092
1093         * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
1094
1095         * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
1096         not in API.
1097
1098         * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
1099         implementation.
1100
1101 Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
1102
1103         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
1104         to the new path.
1105
1106         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
1107         allocation when scrolling instead of cancelling editing.
1108
1109 Fri Mar  5 23:52:34 2004  Matthias Clasen  <maclas@gmx.de>
1110
1111         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
1112         Improve the docs.  (#127727, Murray Cumming)
1113
1114 Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
1115
1116         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
1117         doc comment.  (#118602)
1118
1119 Fri Mar  5 22:37:15 2004  Matthias Clasen  <maclas@gmx.de>
1120
1121         * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
1122         the priv->image pointer dangle.  (#136259, Padraig O'Briain)
1123
1124 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1125
1126         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
1127         gboolean return values and GError arguments to
1128         ::set_current_folder() and ::select_path().
1129
1130         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
1131         Return a boolean value for success/failure.
1132         (gtk_file_chooser_set_current_folder_uri): Likewise.
1133         (gtk_file_chooser_select_filename): Likewise.
1134         (gtk_file_chooser_select_uri): Likewise.
1135         (gtk_file_chooser_set_filename): Likewise.
1136         (gtk_file_chooser_set_uri): Likewise.
1137         (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
1138         in a GError.
1139         (_gtk_file_chooser_select_path): Likewise.
1140
1141         * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
1142         Likewise.
1143         (delegate_select_path): Likewise.
1144
1145         * gtk/gtkfilechooserdefault.c
1146         (gtk_file_chooser_default_select_path): Likewise.
1147         (gtk_file_chooser_default_set_current_folder): Likewise; this also
1148         fixes #136024.
1149         (error_changing_folder_dialog): New helper function.
1150         (change_folder_and_display_error): New helper function.
1151         (switch_to_selected_folder): Use change_folder_and_display_error().
1152         (tree_selection_changed): Likewise.
1153         (shortcuts_activate_volume): Likewise.
1154         (shortcuts_activate_item): Likewise.
1155         (list_row_activated): Likewise.
1156         (path_bar_clicked): Likewise.
1157         (update_from_entry): Likewise.
1158         (up_folder_handler): Likewise.
1159         (home_folder_handler): Get the home path from the shortcuts model,
1160         and use change_folder_and_display_error().
1161
1162         * tests/testfilechooser.c (set_current_folder): New helper
1163         function; pops up a simple error dialog if necessary.
1164         (set_filename): Likewise.
1165         (set_folder_nonexistent_cb): Use set_current_folder().
1166         (set_folder_existing_nonexistent_cb): Likewise.
1167         (set_filename_nonexistent_cb): Use set_filename().
1168         (set_filename_existing_nonexistent_cb): Likewise.
1169
1170 Fri Mar  5 11:17:35 2004  Owen Taylor  <otaylor@redhat.com>
1171
1172         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): 
1173         Improve the docs (reported by Vitaly Tishkov, 
1174         #74362) Add some comments to the code about the 
1175         row reference handling that are hopefully not entirely
1176         wrong.
1177
1178 2004-03-05  Michael Natterer  <mitch@gimp.org>
1179
1180         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1181         s/object/widget/. Makes it compile again.
1182
1183 Fri Mar  5 03:37:14 2004  Jonathan Blandford  <jrb@gnome.org>
1184
1185         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1186         chain to the extra_widget.
1187
1188 Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>
1189
1190         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1191         Patch from Damon Chaplin to free models when we're finalized,
1192         #134053
1193
1194 2004-03-05  Alexander Larsson  <alexl@redhat.com>
1195
1196         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1197         Document the fact that there might not be a volume for all
1198         paths.
1199
1200         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1201         Don't assume there is a volume for all paths.
1202
1203 Fri Mar  5 01:45:04 2004  Jonathan Blandford  <jrb@gnome.org>
1204
1205         * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1206         the correct place instead of naĂŻvely appending.
1207         (shortcuts_add_volumes): refilter the model
1208         (shortcuts_add_bookmarks): refilter the model
1209         (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1210
1211 2004-03-04  Federico Mena Quintero  <federico@ximian.com>
1212
1213         * gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
1214         GtkFileChooser widget if it wants to do something special rather
1215         than letting us terminate the dialog.
1216         (gtk_file_chooser_dialog_init): Connect to "response"; see the
1217         comment in the sources to see why we don't override the method in
1218         class_init.
1219
1220         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1221         Added a ::should_respond() method.
1222
1223         * gtk/gtkfilechooserembed.c
1224         (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1225         (delegate_should_respond): New delegate.
1226         (_gtk_file_chooser_embed_should_respond): New function.
1227
1228         * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1229         Use dashes in signal names rather than underscores.
1230         (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1231         (gtk_file_chooser_default_should_respond): Implement.  go into a
1232         folder rather than responding if we are in File mode and the
1233         selected file is a folder.
1234         (get_selection): New helper function.
1235         (add_bookmark_button_clicked_cb): Use get_selection().
1236         (bookmarks_check_add_sensitivity): Likewise.
1237         (gtk_file_chooser_default_get_paths): Likewise.
1238         (check_save_entry): New helper function.
1239         (gtk_file_chooser_default_get_paths): Use check_save_entry().
1240         (selection_check): Renamed from selection_is_folders().  Now
1241         checks whether the selection is empty, all files, all folders.
1242         (bookmarks_check_add_sensitivity): Use selection_check().
1243
1244 Fri Mar  5 00:05:59 2004  Matthias Clasen  <maclas@gmx.de>
1245
1246         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1247         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to 
1248         key_press_event and handle Alt-Down/Alt-Up to show or hide the
1249         list popup. Also handle Down/Up/PageDown/PageUp/Home/End and 
1250         make them change the active item without popping up the list.
1251         These keybindings are inherited from GtkCombo. 
1252
1253 Thu Mar  4 23:15:58 2004  Matthias Clasen  <maclas@gmx.de>
1254
1255         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially 
1256         select the active item when using optionmenu-like positioning. 
1257
1258 Thu Mar  4 16:54:30 2004  Owen Taylor  <otaylor@redhat.com>
1259
1260         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1261         open/close the file, just check for existence
1262         with g_file_test(). This is considerably cheaper,
1263         and lack-of-permissions for pixmap dirs is 
1264         pathological.
1265
1266 Wed Mar  3 17:53:21 2004  Owen Taylor  <otaylor@redhat.com>
1267
1268         * gtk/gtksocket.c (gtk_socket_class_init): Overide
1269         show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1270         since we don't want to propagate to the in-process
1271         plug, if any. (#122949, Michael Meeks)
1272
1273 Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
1274
1275         * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1276         Folder' button in SAVE mode again.
1277
1278 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
1279
1280         * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1281         count of the style when copying the cached icon.  (#135890, Crispin
1282         Flowerday)
1283
1284 Thu Mar  4 21:45:43 2004  Matthias Clasen  <maclas@gmx.de>
1285
1286         * gtk/gtkcombobox.c: In list mode, set the background color 
1287         of the cell view to the base color of the style, instead of
1288         hardwiring white. (#136158)
1289
1290 Thu Mar  4 01:32:19 2004  Jonathan Blandford  <jrb@gnome.org>
1291
1292         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1293         muppet <scott@asofyet.org> to keep child directories around if we
1294         change to a child.
1295
1296         * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1297         icon-setting functions.  Not used yet.
1298         (_gtk_path_bar_set_root_icon): Ditto.
1299         
1300 Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>
1301
1302         * gtk/gtktextview.c (extend_selection): 
1303         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1304         to select the last word in the buffer.  (#135487, Paolo Borelli)
1305
1306 Wed Mar  3 23:54:31 2004  Matthias Clasen  <maclas@gmx.de>
1307
1308         * gtk/gtkentrycompletion.c: Doc update.
1309
1310 Wed Mar  3 17:30:18 2004  Owen Taylor  <otaylor@redhat.com>
1311
1312         * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1313         whether widgets are viewable, not just if they are
1314         mapped. (#122912, reported by Tim Evans)
1315
1316 Wed Mar  3 23:28:48 2004  Matthias Clasen  <maclas@gmx.de>
1317
1318         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1319         implementation into a new gtk_combo_box_set_active_internal() 
1320         function, which doesn't do the short-circuiting. 
1321         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1322         set_active_internal() here, since the active item may change here,
1323         although the index is unchanged.
1324
1325 Wed Mar  3 23:26:49 2004  Matthias Clasen  <maclas@gmx.de>
1326
1327         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1328         traditional option menu placement of the popup for regular combo
1329         boxes. Grids and editable combo boxes use the combo-like placement 
1330         below the entry.  (#136021)
1331         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): 
1332         * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1333         before popping up the menu, to make the placement work.
1334         
1335 Wed Mar  3 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
1336
1337         * gtk/gtkmain.c (gtk_propagate_event): Special case
1338         scroll events so that they propagate up the widget
1339         heirarchy when received on insensitive widgets.
1340         (#101102, reported by Geoff Reedy)
1341
1342 Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
1343
1344          #109594, reported by Olivier Ripoll
1345
1346         * gtk/gtkentry.c (gtk_entry_size_request): Use max of 
1347         width and digit width for gtk_entry_set_width_chars,
1348         and round up.
1349
1350         * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1351         width of the entry to 7 chars.
1352
1353 Wed Mar  3 16:00:10 2004  Owen Taylor  <otaylor@redhat.com>
1354
1355         * configure.in: Strip out the "export-dynamic" libtool
1356         option from library link lines. (#124687, James Henstridge)
1357
1358 Wed Mar  3 16:06:03 2004  Jonathan Blandford  <jrb@gnome.org>
1359
1360         * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1361         Don't activate the combo if we're in the midst of changing
1362         folders.
1363
1364 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1365
1366         * tests/testsocket_common.c: (print_hello): don't try and store
1367         pointers in ints. Fixes 64-bit build.
1368
1369 2004-03-03  Federico Mena Quintero  <federico@ximian.com>
1370
1371         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1372         not using a temporary variable, and clarify the documentation.
1373         Fixes #136008.
1374
1375 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1376
1377         * gtk/gtkexpander.c:
1378         (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1379         (gtk_expander_set_label_widget): Set the label widget's
1380         state to prelight if we're prelit. Fixes bug #136078.
1381
1382 2004-03-03  Murray Cumming  <murrayc@murrayc.com>
1383
1384         * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1385         signal vfunc declaration, adding the first parameter, which is the
1386         widget emitting the signal.
1387
1388 2004-03-03  Morten Welinder  <terra@gnome.org>
1389
1390         * tests/testfilechooser.c (update_preview_cb): Plug leak.
1391
1392 Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
1393
1394         * gtk/gtkfilechooserdialog.c
1395         (file_chooser_widget_default_realized_size_changed): Split
1396         function into realized and unrealized variants, and consolidate
1397         the handling fo size-changing and default changing.
1398
1399         * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1400         remove resizable-hints-changed, as it just complicated things.
1401
1402         * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1403         resizable-hints-changed.
1404         
1405 2004-03-03  Tor Lillqvist  <tml@iki.fi>
1406
1407         * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1408
1409         * NEWS: Correct spelling of my name in one place.
1410
1411 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1412
1413         * gtk/gtkfilechooserdefault.c
1414         (gtk_file_chooser_default_set_current_folder): Handle errors in
1415         setting the path bar's path.  Fixes #136000, based on a patch by
1416         Morten Welinder.
1417
1418         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1419         Don't free our own propagated error.
1420
1421         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1422         parent_path upon error.  Fixes #136006, patch by Morten Welinder.
1423         (gtk_path_bar_set_path): Unref the file_folder upon error.
1424         (gtk_path_bar_set_path): Return a boolean success code.
1425
1426 Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
1427
1428         * tests/testcombochange.c: Add an animation mode, to test 
1429         how the combobox behaves if the model changes while it is popped
1430         up.
1431
1432 Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
1433
1434         * === Released 2.3.5 ===
1435
1436         * NEWS: Updates
1437
1438         * configure.in: Version 2.3.5, interface age 0.
1439         Require glib-2.3.5, pango-1.3.5.
1440
1441 Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
1442
1443         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1444         popping up the completions across the edge of the monitor.
1445         Part of #135561.
1446
1447 Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
1448
1449         * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): 
1450         Move the /nonexistant stuff out of the main window,
1451         keep the main window somewhat normal looking.
1452
1453 Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
1454
1455         * gtk/gtktreestore.c (gtk_tree_store_reorder)
1456         * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1457         up the interpretation of new_order to match what
1458         it means elsewhere, document the meaning of new_order.
1459
1460         * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1461         Fix interpretation of new_order.
1462
1463         * tests/testcombochange.c (on_reorder): Fix interpretation
1464         of new_order.
1465
1466         * tests/testcombochange.c (on_reorder): Fix hitting
1467         "reorder" with an empty list.
1468
1469 Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1470
1471         Patch from Frederic Crozat, test code from Jean-Philippe
1472         Chancelier. Fixes bug #120479.
1473         
1474         * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1475         to the right window group.
1476
1477         * gtk/gtkmenu.c (gtk_menu_popup): Same
1478
1479         * tests/testsocket.c (main): Pack the plugs into an hbox instead
1480         of a vbox.
1481
1482         * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1483         GtkComboBox to the children.
1484
1485 Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
1486
1487         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1488         If the model was empty before, select the first inserted
1489         item.
1490
1491         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1492         Fix up the logic for the new row to select.
1493
1494         * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1495         Rename "appearance" property to "appears-as-list".
1496
1497         * tests/testcombochange.c tests/Makefile.am: Test case
1498         for combos and dynamically changing models.
1499
1500 Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
1501
1502         * gtk/gtkfilechooserdefault.c
1503         (gtk_file_chooser_default_get_resizable_hints): set the default
1504         value, spotted by Morten Welinder.
1505
1506 Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
1507
1508         * gtk/gtkfilechooserdefault.c
1509         (gtk_file_chooser_default_get_resizable_hints): get the logic
1510         correct.  This will fix sizing on save dialogs.
1511
1512         (save_widgets_create): set_mnemonic_widget.
1513
1514 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1515
1516         * gtk/gtkfilechooserdefault.c
1517         (gtk_file_chooser_default_set_current_folder): Don't update the
1518         save folder combo if we are already switching folders; based on a
1519         patch by Jonathan Blandford.
1520
1521         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1522         Handle failure to insert the path.  Based on a patch by Morten
1523         Welinder attached to bug #135380.
1524
1525         * tests/testfilechooser.c (extra_widget_create): Add a bunch of
1526         buttons to test various things.
1527
1528 Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
1529
1530         * tests/Makefile.am: Add testentrycompletion.
1531
1532         * tests/testentrycompletion.c: New file to test some of the
1533         more exotic GtkEntryCompletion features.
1534
1535 Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
1536
1537         * tests/testfilechooser.c (main): improve tests a little.
1538
1539 Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
1540
1541         * gtk/gtkcombobox.c: Always connect to the changed
1542         signals on the model, update the active item as
1543         appropriate when rows are inserted/deleted/reordered,
1544         re-layout the menu on ::rows-reordered.
1545
1546         * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
1547         Allow %NULL for path to unset and leave no current
1548         path.
1549
1550 Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
1551
1552         * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
1553         the popup above the sample if there is not enough room below.
1554         Part of #135543.
1555
1556 Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
1557
1558         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the 
1559         frame for the list mode etched in, to give the popup a slightly
1560         less flat appearance. 
1561
1562 Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
1563
1564         * gtk/gtk.def: Add gtk_combo_box_entry_new_text().  
1565
1566 2004-03-02  Morten Welinder  <terra@gnome.org>
1567
1568         * tests/testfilechooser.c (size_prepared_cb): Don't scale images
1569         that are small enough to fit.  Avoid using incompatibly typed data
1570         pointer.
1571
1572         * gtk/gtkfilechooserdefault.c
1573         (gtk_file_chooser_default_get_resizable_hints): Test the
1574         resize_horizontally pointer, not the deferenced pointer.
1575
1576 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1577
1578         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
1579         flag shortcuts_current_folder_is_volume.
1580         (shortcuts_add_current_folder): Set
1581         impl->shortcuts_current_folder_is_volume as appropriate.
1582         (remove_current_folder_cb): Handle the flag.
1583         (shortcuts_activate_item): Likewise.
1584         (shortcuts_update_current_folder): Handle the
1585         impl->shortcuts_current_folder_active flag; only add the folder if
1586         it doesn't already exist in the list.
1587         (shortcuts_model_create): Don't insert the current folder
1588         separator here.
1589         (shortcuts_add_current_folder): Insert the separator here.
1590         (shortcut_find_position): Renamed from shortcut_exists(); now
1591         returns an index.
1592         (shortcuts_add_current_folder): Set the active item in the combo.
1593
1594 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1595
1596         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
1597         use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
1598
1599 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1600
1601         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
1602         unref an old model; there isn't one.  This was a leftover from
1603         when we recreated the model on every change.
1604         (save_widgets_create): Create the save folder combo.
1605         (shortcuts_model_create): Don't set the model on the tree view
1606         here.
1607         (gtk_file_chooser_default_constructor): Create the shortcuts model
1608         here, before the rest of the widgets.
1609         (shortcuts_list_create): Don't call shortcuts_model_create() here;
1610         just set the model on the tree.
1611         (save_folder_combo_create): New function, provided by Jonathan
1612         Blandford.
1613         (update_appearance): Set the sensitivity of the folder combo.
1614         (shortcuts_activate_iter): New helper function; code moved from
1615         shortcuts_row_activated_cb().
1616         (shortcuts_activate_item): New helper function.
1617         (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
1618         (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
1619         SHORTCUTS_BOOKMARKS_SEPARATOR.
1620         (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
1621         (shortcuts_insert_separator): Add a position argument.
1622         (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR 
1623         and SHORTCUTS_CURRENT_FOLDER positions.
1624         (shortcut_exists): Ignore the current folder row.
1625         (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
1626         (shortcuts_model_create): Create a filter model for the shortcuts list.
1627         (shortcuts_list_create): Set the model to the shortcuts_filter_model.
1628         (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
1629         (bookmarks_check_remove_sensitivity): Likewise.
1630         (shortcuts_row_activated_cb): Likewise.
1631         (gtk_file_chooser_default_set_current_folder): New function.
1632         (gtk_file_chooser_default_set_current_folder): Update the current
1633         folder row in the shortcuts list.
1634
1635         * gtk/gtkfilechooserwidget.c
1636         (gtk_file_chooser_widget_constructor): Cast correctly for
1637         _gtk_file_chooser_embed_set_delegate().
1638
1639 Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
1640
1641         * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
1642         (#127499, based on patch from Michael Natterer)
1643
1644         * tests/testgtk.c: Fix bidi strings to display correctly
1645         with new auto-bidi.
1646
1647 Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
1648
1649         * gtk/gtksettings.c: Remove the include of Xft.h, which is already
1650         dragged in via pangoxft.h.  (#135496, David Hawthorne)
1651
1652 Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
1653
1654         * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
1655         callers.
1656
1657         * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
1658         the key event propagation mechanism used for focus widgets.
1659         (gtk_window_key_release_event): use the same key event propagation logic
1660         as gtk_window_key_press_event().
1661
1662 2004-03-01  Simon Budig  <simon@gimp.org>
1663
1664         * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
1665         for the XInput extension. We want to see them all.
1666         We now get Proximity Out events again. Fixes bug #135320.
1667
1668 Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
1669
1670         * gtk/gtkimmodule.c (match_locale): Use case-insensitive
1671         comparison. Fixes XIM module loading on AIX.  (#131277)
1672
1673 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
1674
1675         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
1676         Make it work correctly when the child model is cleared 
1677         completely. (#121633)
1678
1679 2004-03-01  Michael Natterer  <mitch@gimp.org>
1680
1681         * gtk/gtkfilechooserwidget.h: removed accidentially committed char
1682         which broke the build.
1683
1684 Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
1685
1686         * gtk/gtkfilechooserdialog.c
1687         (file_chooser_widget_default_size_changed): only store the size if
1688         we can resize in that direction.
1689
1690 Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
1691
1692         * gtk/gtkfilechooserwidget.c
1693         (gtk_file_chooser_widget_new_with_backend): new function.  Long
1694         name.
1695
1696 2004-03-01  Morten Welinder  <terra@gnome.org>
1697
1698         * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
1699         needed.
1700
1701         * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
1702         semantics and check for errors.
1703
1704         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
1705
1706         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
1707         display_name is NULL.
1708
1709 Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
1710
1711         Based on patch by Alex Larsson
1712
1713         * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
1714         GtkSetting to set the backend if the app doesn't specify one.
1715
1716         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
1717         Add Gtk/FileChooserBackend.
1718
1719 Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
1720
1721         * autogen.sh:
1722         - exit with $? instead of 1 in case of failure
1723         - exit with $? if ./configure failed
1724           (that's so autogen.sh && make lines work)
1725         - removed --enable-gtk-doc option
1726         - added $AUTOGEN_CONFIGURE_ARGS
1727
1728 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1729
1730         * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
1731         filter_info.uri correctly.  Fixes #135379, pointed out by Damon
1732         Chaplin.
1733         (shortcuts_get_index): Compute the bookmarks index correctly.
1734         Fixes #135714, pointed out by Damon Chaplin.
1735         (gtk_file_chooser_default_list_shortcut_folders): Handle the case
1736         with no shortcuts, and don't run off the end of the list if there
1737         are no bookmarks and their separator.  Fixes #135572, patch by
1738         Damon Chaplin.
1739
1740 Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
1741
1742         * gtk/gtklabel.c: Handle dynamically resolved bidi direction
1743         when drawing the cursor. (#118541)
1744
1745         * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
1746
1747         * gtk/gtkentry.c (draw_insertion_cursor): Fix up
1748         some confusion in parameter ordering.
1749
1750 Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
1751
1752         * gtk/gtkfilechooserdialog.c
1753         (file_chooser_widget_resizable_hints_changed): Handle
1754         shrinking/growing.
1755
1756 2004-03-01  Michael Natterer  <mitch@gimp.org>
1757
1758         * gtk/gtktextbtree.c: removed underscores from calls to
1759         gtk_text_btree_resolve_bidi().
1760
1761 Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
1762
1763         Patch from Dov Grobgeld to implement auto-bidi-direction
1764         for GtkTextView (#118543)
1765
1766         * gtk/gtktextbtree.[ch]: Resolve bidi base direction
1767         for each line by propagating backwards/forwards as
1768         necessary.
1769
1770         * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the 
1771         bidi base direction for the ;ine with the cursor from 
1772         the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
1773         
1774 Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
1775
1776         * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
1777         based on a patch from Dov Grobgeld. (#118540)
1778
1779 Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
1780
1781         * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() 
1782         to allow right-aligned entries and a "xalign" 
1783         property. (#59799, patch from Egon Andersen and 
1784         Steffen Gutmann)
1785
1786         * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
1787         xalign property description here too.
1788
1789         * tests/testtext.c: UNDERLINE_ERROR test addition
1790         from Nicolas Settons' patch.
1791
1792 Sun Feb 29 20:34:06 2004  Owen Taylor  <otaylor@redhat.com>
1793
1794         * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
1795         gtk_window_activate_key() (Request from Tim Janik)
1796
1797 Mon Mar  1 01:00:11 2004  Matthias Clasen  <maclas@gmx.de>
1798
1799         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
1800         Make DND operations within a buffer move the dragged 
1801         text instead of copying it; also make DND operations 
1802         a single user action for undo purposes.  (#135191, 
1803         #93139, reported by Tommi Komulainen, patch by Paolo Borelli
1804         and Paolo Maggi)
1805
1806 Mon Mar  1 00:51:11 2004  Matthias Clasen  <maclas@gmx.de>
1807
1808         * NEWS: News for 2.3.5.
1809
1810 Sun Feb 29 23:25:35 2004  Matthias Clasen  <maclas@gmx.de>
1811
1812         * gtk/gtkentry.c (gtk_entry_completion_key_press): 
1813         Fix the Shift-Tab support to go backwards.
1814
1815 Sun Feb 29 16:40:40 2004  Owen Taylor  <otaylor@redhat.com>
1816
1817         * gtk/gtktextview.c (gtk_text_view_class_init): Fix 
1818         capitalization to match other style properties.
1819
1820 Sun Feb 29 16:38:53 2004  Owen Taylor  <otaylor@redhat.com>
1821
1822         * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
1823         typo in property string.
1824
1825 Sun Feb 29 16:35:23 2004  Owen Taylor  <otaylor@redhat.com>
1826
1827         * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
1828         PANGO_UNDERLINE_ERROR (Based on a patch by
1829         Nicolas Setton, #114237)
1830
1831         * gtk/gtktextview.c: Add a error-underline-color style
1832         property.
1833
1834 Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1835
1836         * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
1837         function returning a good step value for the mouse wheel. For
1838         scrollbars, base the step on page_size^(2/3), for other ranges,
1839         use 2 * step_increment.
1840
1841         * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
1842
1843         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): 
1844         ... and here.
1845
1846         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
1847
1848 Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
1849
1850         * gtk/gtkfilechooserembed.c
1851         (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
1852         (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
1853
1854         * gtk/gtkfilechooserdialog.c
1855         (file_chooser_widget_default_size_changed): Get the correct
1856         initial size for the dialog.  Also, don't bother with
1857         gtk_window_set_default_size().  It's not really meaningful.
1858
1859         * gtk/gtkfilechooserdefault.c
1860         (gtk_file_chooser_default_get_default_size): Get the correct
1861         spacing for the preview_widget
1862         (update_preview_widget_visibility): Clear widget field after we
1863         destroy it.
1864
1865 2004-02-29  Federico Mena Quintero  <federico@ximian.com>
1866
1867         * gtk/gtkfilechooserdefault.c
1868         (gtk_file_chooser_default_set_property): Handle
1869         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
1870         (gtk_file_chooser_default_get_property): Likewise.
1871         (struct _GtkFileChooserDefault): Added fields for preview_label,
1872         use_preview_label, preview_display_name, preview_box.  Removed
1873         preview_frame.
1874         (set_preview_widget): Reorder the widget in relation to the label.
1875         (update_preview_widget_visibility): Create or destroy the preview
1876         label.
1877         (check_preview_change): Update impl->preview_display_name and the
1878         label.
1879         (find_good_size_from_style): Use the preview_box.
1880         (gtk_file_chooser_default_finalize): Free
1881         impl->preview_display_name.
1882         (gtk_file_chooser_default_init): Initialize
1883         impl->use_preview_label.
1884
1885         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
1886         "use-preview-label" property.
1887         (gtk_file_chooser_set_use_preview_label): New function.  This sets
1888         whether one wants the file chooser to display a stock label with
1889         the previewed filename.  Apps that do really fancy previews can
1890         turn this off and draw the name themselves.
1891         (gtk_file_chooser_get_use_preview_label): New function.
1892         (gtk_file_chooser_get_preview_widget_active): Documentation fix.
1893
1894         * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
1895         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
1896
1897         * gtk/gtkfilechooserutils.c
1898         (_gtk_file_chooser_install_properties): Override the
1899         "use-preview-label" property.
1900
1901 Sun Feb 29 04:43:29 2004  Matthias Clasen  <maclas@gmx.de>
1902
1903         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
1904         Shift-Tab work when the completion popup is shown.
1905
1906 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
1907
1908         * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
1909         the title of the filename column.
1910         (create_file_list): Likewise.
1911
1912 Sun Feb 29 03:31:42 2004  Matthias Clasen  <maclas@gmx.de>
1913
1914         * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up 
1915         and Page_Down in the completion popup to move page-wise if we're
1916         scrolling.
1917
1918 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
1919
1920         * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
1921         Removed.
1922         (list_name_data_func): Don't call the function above.
1923         (list_mtime_data_func): Likewise.
1924
1925 Sun Feb 29 02:34:35 2004  Matthias Clasen  <maclas@gmx.de>
1926
1927         * gtk/gtkcombobox.c (gtk_combo_box_list_position): New 
1928         function which calculates position and size for the popup in
1929         list mode. Currently it only pushes the popup horizontally 
1930         into the screen.
1931
1932 Sun Feb 29 01:10:09 2004  Matthias Clasen  <maclas@gmx.de>
1933
1934         * gtk/gtkcombobox.c: Implement the previous fix in a better way,
1935         small cleanups.
1936
1937 2004-02-28  Hans Breuer  <hans@breuer.org>
1938
1939         * gtk/gtkfilesystemwin32.c : applied patch from
1940         J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
1941
1942 Sat Feb 28 23:30:36 2004  Matthias Clasen  <maclas@gmx.de>
1943
1944         * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
1945         popup window before popping up.  (#135651)
1946
1947 Sat Feb 28 23:29:35 2004  Matthias Clasen  <maclas@gmx.de>
1948
1949         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
1950         * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
1951         handler for style_set in class_init instead of connecting to
1952         the signal in init. (noticed by Yosh).
1953
1954 Sat Feb 28 14:48:35 2004  Owen Taylor  <otaylor@redhat.com>
1955
1956         * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, 
1957         not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
1958
1959 2004-02-28  Hans Breuer  <hans@breuer.org>
1960
1961         * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
1962         change. Also merged some crossplatform code from 
1963         gtkfilesystemunix.c
1964         * gtk/gtk.def : updated externals
1965
1966         * gtk/makefile.msc.in : added gtkfilechooserembed.obj
1967
1968 2004-02-28  Hans Breuer  <hans@breuer.org>
1969
1970         * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
1971         when destroying, fixes bug #120007. Also removed the mirrored
1972         ref counting for deprecated gdk_drag_context_<ref|unref>()
1973         cause it wasn't reliable anymore anyway.
1974
1975         * gdk/win32/gdkdisplay-win32.c : fix typo, which should
1976         have broken the win32 build for everyone not using msvc
1977
1978         * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
1979         return negative values for ptMaxTrackSize, it caused snapping
1980         windows to their minimum size
1981
1982 Sat Feb 28 01:39:01 2004  Matthias Clasen  <maclas@gmx.de>
1983
1984         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
1985         switching back to non-gridded mode.  (#135169)
1986
1987 Fri Feb 27 22:29:46 2004  Matthias Clasen  <maclas@gmx.de>
1988
1989         * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
1990
1991 Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
1992
1993         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
1994         Whoops.  Didn't mean to commit the size change.
1995
1996 Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
1997
1998         * gtk/gtkfilechooserembed.h: New private interface to help
1999         negotiate the default size of the widget.  Still a bit buggy, but
2000         better than the old behavior.
2001
2002         * gtk/gtkfilechooserdefault.c: Implement the embed interface.
2003
2004         * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
2005
2006         * gtk/gtkfilechooserdialog.c: Use the embed interface.
2007
2008 2004-02-27  Federico Mena Quintero  <federico@ximian.com>
2009
2010         * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
2011         "position" argument.
2012
2013         * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for 
2014         GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
2015         (struct _GtkFileSystemIface): Added a "position" argument to the
2016         ::insert_bookmark() method.
2017
2018         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
2019         Updated; renamed from gtk_file_system_unix_add_bookmark().  Return
2020         an error if the path already exists in the bookmarks list.
2021         (gtk_file_system_unix_remove_bookmark): Return an error if the
2022         path does not exist in the bookmarks list.
2023
2024         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
2025         For now, use gtk_file_system_insert_bookmark() with -1 for the
2026         position.  DnD will come next.
2027
2028 Fri Feb 27 21:42:28 2004  Matthias Clasen  <maclas@gmx.de>
2029
2030         * gtk/gtkcombobox.c (gtk_combo_box_relayout): 
2031         * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only 
2032         create a new setup if appearance actually changed.
2033         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear): 
2034         * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make 
2035         these more robust.  (#127623, Damon Chaplin)
2036
2037 Fri Feb 27 15:06:00 2004  Jonathan Blandford  <jrb@redhat.com>
2038
2039         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
2040         folder-mode property.
2041
2042         * gtk/gtkfilechooserutils.c
2043         (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
2044
2045 Thu Feb 26 17:38:40 2004  Manish Singh  <yosh@gimp.org>
2046
2047         * gtk/gtkcombobox.c: Add function declaration for
2048         gtk_combo_box_list_remove_grabs().
2049
2050 Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
2051
2052         * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
2053         cursor move, but not Home and End.
2054
2055         * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
2056         jump to the ends of the list, not Home and End - since we're not 
2057         scrolling yet, a "page" is always the complete list.  (#127430, Marco
2058         Pesenti Gritti)
2059
2060 Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
2061
2062         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): 
2063         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
2064         the priv pointers dangle.  (#127623, Damon Chaplin)
2065
2066 Thu Feb 26 17:31:34 2004  Manish Singh  <yosh@gimp.org>
2067
2068         * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
2069
2070 Thu Feb 26 19:53:32 2004  Owen Taylor  <otaylor@redhat.com>
2071
2072         * gdk/x11/xsettings-common.h (xsettings_client_process_event): 
2073         Add xsettings_client_set_grab_func,
2074         Add xsettings_client_set_ungrab_func to the list of renames.
2075
2076 Thu Feb 26 19:48:39 2004  Owen Taylor  <otaylor@redhat.com>
2077
2078         * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
2079         in case of mismatched property type.
2080
2081 Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
2082
2083         * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
2084         modes to the enum.
2085
2086         * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
2087         (gtk_file_chooser_get_folder_mode): Remove
2088
2089 Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
2090
2091         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
2092         GDK_FILTER_CONTINUE for unhandled message types.
2093
2094         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
2095         multiple filters for the same event type with the standard
2096         "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
2097
2098         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2099         Append to the filter list not prepend, since order now matters.
2100
2101         * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter): 
2102         Append to the filter list not prepend, since order now matters.
2103         
2104 Thu Feb 26 23:39:07 2004  Matthias Clasen  <maclas@gmx.de>
2105
2106         Fixes for #135333, analysed by Damon Chaplin:
2107         
2108         * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
2109         grab here.
2110         * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here, 
2111         so that we don't forget to grab when the menu is popped via
2112         keynav.
2113         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
2114         ungrab here.
2115         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
2116
2117 Thu Feb 26 23:26:00 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2118
2119         * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
2120         cursors for resize grips. (Bug #129621)
2121
2122         * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
2123         fix - patch by Torsten Schoenfeld.
2124
2125         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
2126         space between the items. (Bug #110775)
2127
2128         * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
2129         inside menu items that are inside a menu bar. (Bug #110775)
2130         
2131         * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
2132         not GDK_PACKAGES, to prevent applications from getting linked to
2133         it (Bug #119804)
2134
2135         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
2136         ipadding inside the item. (Bug #61843)
2137
2138 Thu Feb 26 22:56:40 2004  Matthias Clasen  <maclas@gmx.de>
2139
2140         * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets() 
2141         by list_mnemonic_widgets() in doc comments as well.
2142
2143 Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
2144
2145         Fixes from Torsten Schoenfeld.
2146
2147         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): 
2148         Fix name in doc comment.
2149
2150         * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
2151         not get_mnemonic_labels.
2152
2153 Thu Feb 26 22:20:44 2004  Matthias Clasen  <maclas@gmx.de>
2154
2155         * gtk/gtkcomboboxentry.h:
2156         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2157         convenience API to construct simple text combos, implemented by
2158         Damon Chaplin.
2159
2160         * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2161
2162 Thu Feb 26 22:19:29 2004  Matthias Clasen  <maclas@gmx.de>
2163
2164         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2165
2166 Thu Feb 26 15:43:43 2004  Owen Taylor  <otaylor@redhat.com>
2167
2168         * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2169         in a simplified form as gtk_draw_insertion_cursor().
2170         (#99031, request from Alex Larsson)
2171
2172         * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2173         Adapt to new gtk_draw_insertion_cursor().
2174
2175         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2176         gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2177         Since: 2.4.
2178
2179         * gtk/gtkiconfactory.c (icon_size_settings_changed)
2180           gtk/gtkicontheme.c (do_theme_change)
2181           gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2182         * gtk/gtksettings.c (gtk_settings_notify):
2183         _gtk_rc_reset_styles => gtk_rc_reset_styles.
2184
2185 Thu Feb 26 21:52:58 2004  Matthias Clasen  <maclas@gmx.de>
2186
2187         Fixes for #127804 and #134722, Damon Chaplin:
2188         
2189         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end): 
2190         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start): 
2191         Ref and sink the cell renderers here.
2192         
2193         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2194         renderers here, and free attributes and func_data. 
2195
2196 Thu Feb 26 21:41:38 2004  Matthias Clasen  <maclas@gmx.de>
2197
2198         * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2199
2200 Thu Feb 26 14:47:22 2004  Dom Lachowicz <cinamod@hotmail.com>
2201
2202         * gtk/gtk.def: Export gtk_rc_reset_styles()
2203
2204 Thu Feb 26 14:47:22 2004  Owen Taylor  <otaylor@redhat.com>
2205
2206         * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles(). 
2207         (Request from Dom Lachowicz, #123769)
2208
2209 Wed Feb 25 19:11:31 2004  Owen Taylor  <otaylor@redhat.com>
2210
2211         * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2212         ::group-changed signal emitted when the radio button/menu item 
2213         is moved from one group of radio buttons to another. 
2214         (#79563, based partially on a patch from Padraig O'Briain)
2215
2216 Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
2217
2218         * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2219         free() function. (#135511, George Bronnikov)
2220
2221 2004-02-26  Federico Mena Quintero  <federico@ximian.com>
2222
2223         * configure.in: Added a comment to inform translators that they
2224         must add .po files to both po/ and po-properties/ when they add
2225         new languages to ALL_LINGUAS.
2226
2227 Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
2228
2229         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2230         Call g_convert(), not g_convert() with fallback, since Emacs is
2231         happier if we reject the COMPOUND_TEXT request and it can
2232         then ask for UTF-8. (#114527)
2233
2234         * gtk/gtkselection.c (gtk_selection_data_set_text): When
2235         TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2236
2237 Wed Feb 25 22:35:00 2004  Tomasz KƂoczko <kloczek@pld.org.pl>
2238
2239         * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2240         vesion for build gtk+ is now 2.3.3.
2241
2242 Wed Feb 25 16:00:40 2004  Jonathan Blandford  <jrb@gnome.org>
2243
2244         * gtk/gtkfilechooserdefault.c (update_appearance): move the
2245         expander code.
2246
2247 2004-02-25  Danilo Ć egan  <dsegan@gmx.net>
2248
2249         * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2250         adding back sr@ije.
2251
2252 2004-02-25  Federico Mena Quintero  <federico@ximian.com>
2253
2254         * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2255         is fixed for it.
2256
2257 Wed Feb 25 12:44:49 2004  Owen Taylor  <otaylor@redhat.com>
2258
2259         * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2260
2261 Wed Feb 25 12:21:32 2004  Owen Taylor  <otaylor@redhat.com>
2262
2263         * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2264         Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2265         gtk_widget_get_mnemonic_labels(). (#103456)
2266
2267 2004-02-25  Danilo Ć egan  <dsegan@gmx.net>
2268
2269         * configure.in: Added sr@ije to ALL_LINGUAS.
2270
2271 Wed Feb 25 09:46:34 2004  Owen Taylor  <otaylor@redhat.com>
2272
2273         * gtk/gtkstyle.c (gtk_style_finalize): Free 
2274         style->icon_factories (#130128)
2275
2276 Wed Feb 25 03:52:58 2004  Jonathan Blandford  <jrb@gnome.org>
2277
2278         * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2279         internal buttons.
2280
2281         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2282         rename some widgets to make it clear where they are packed.
2283         (update_appearance): New function to handle all the 'logic' of
2284         layout in one place.  We aren't trying to keep all our properties
2285         in sync.
2286         (gtk_file_chooser_default_set_property): use update_appearance()
2287
2288 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2289
2290         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2291         from create_shortcuts_model().
2292         (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2293         to shortcuts_list.
2294         (shortcuts_list_create): Renamed from shortcuts_tree_create().
2295         (create_file_list): Enable the tree view as a model drag source.
2296         (create_folder_tree): Likewise.
2297
2298         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2299         Register the drag source interface.
2300         (drag_source_iface_init): New function.
2301         (drag_source_row_draggable): New function.
2302         (drag_source_drag_data_get): New function.
2303
2304 Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>
2305
2306         * === Released 2.3.4 ===
2307
2308         * configure.in: Bump version to 2.3.4, fix broken
2309         gtk_binary_age value by copying the GLib logic
2310         to automatically set it to the right values.
2311
2312 Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>
2313
2314         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
2315         * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
2316         Don't resize priv->cell_view if it is NULL.  (#127804, 
2317         Damon Chaplin)
2318         
2319 Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>
2320
2321         * gtk/gtkcombobox.c: Add a comment about the different 
2322         modi of this widget. Get rid of priv->hbox, and some other
2323         cleanups. Make sure that gtk_combo_box_unset_model() is 
2324         always called before setting up a different mode. 
2325
2326 Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>
2327
2328         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2329         underscores in keyval names to spaces. (#131480)
2330
2331 Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>
2332
2333         * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2334         Uwe Zeisberger)
2335
2336 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
2337
2338         * === Released 2.3.3 ===
2339
2340         * configure.in: Version 2.3.3, interface age 0.
2341
2342         * NEWS: Finish updates for 2.3.3.
2343
2344 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2345
2346         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2347         GtkEntry for the filename, not a GtkFileChooserEntry.
2348         (update_chooser_entry): Use gtk_entry_set_text() rather than
2349         _gtk_file_chooser_entry_set_file_part().
2350         (gtk_file_chooser_default_set_current_name): Likewise.
2351         (gtk_file_chooser_default_set_current_folder): Don't set the base
2352         folder of the entry, and don't call update_chooser_entry().
2353         (gtk_file_chooser_default_get_paths): Use the plain entry.
2354         (save_widgets_create): Store the "Save in Folder" label in the
2355         impl structure.
2356         (expander_activate_cb): Set the sensitivity of the label and
2357         combo.
2358         (save_widgets_create): Connect to "notify::expanded" rather than
2359         "activate" on the expander.
2360         (expander_changed_cb): Renamed from expander_activate_cb().  Flip
2361         the conditions again...
2362
2363 Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>
2364
2365         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2366         column as different if there are 3 or more visible columns.
2367
2368 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2369
2370         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2371         Fix compilation (#135278, Padraig O'Briain).
2372         
2373 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2374
2375         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2376         Translate the desktop label.
2377         
2378         (shortcuts_get_index), (shortcuts_add_bookmarks),
2379         (shortcuts_insert_separator), (create_shortcuts_model):
2380         Don't show the bookmark separator if there are no bookmarks.
2381         
2382 Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>
2383
2384         * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2385         dialog look like the nautilus dialog.
2386         (expander_activate_cb): get the order correct.
2387
2388 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2389
2390         * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2391         bookmarks_check_add_sensitivity().
2392         (shortcut_exists): New helper function; moved the testing code
2393         over from bookmarks_check_add_sensitivity().
2394         (bookmarks_check_add_sensitivity): Check the contents of the
2395         selection in the file/folder list.  Use shortcut_exists().
2396         (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2397         the path is already in the shortcuts list.
2398         (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2399         selection or from the current folder, as appropriate.
2400
2401 Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>
2402
2403         * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2404         mnemonics.  Sorry translators.
2405
2406 Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>
2407
2408         * NEWS: Additions. This should be complete for the main ChangeLog
2409         now, still need to sift through gdk-pixbuf, docs, and translations.
2410
2411 Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>
2412
2413         * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2414         Add a get_size implementation so that we are no longer the same
2415         height as text.
2416
2417 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2418
2419         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2420         (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2421         (create_shortcuts_model), (shortcuts_tree_create),
2422         (gtk_file_chooser_default_remove_shortcut_folder):
2423         Improve bookmark list rendering by controlling the visibility
2424         of the pixbuf cell so that it will be invisible for the separator
2425         row, also use a list store instead of a tree store for the model
2426         so we won't get unnecessary space for an expander.
2427         
2428 Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>
2429
2430         * gtk/gtkcombobox.c: Add a destroy implementation in order to
2431         set priv->cell_view to NULL before finalize stumbles over the 
2432         dangling pointer. This big array of pointers into the widget 
2433         tree in GtkComboBoxPrivate is really fragile and should be
2434         cleaned up.
2435
2436 Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>
2437
2438         * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2439         group when allocating space for the buttons at the bottom just in
2440         case.  Also, move the filter to below the file list.
2441
2442 Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>
2443
2444         * gtk/gtkfilechooserdefault.c
2445         (gtk_file_chooser_default_class_init): Seth was confused by
2446         keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
2447         home, not up.
2448
2449 Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>
2450
2451         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2452         more cleanly.
2453
2454         * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2455
2456 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2457
2458         Rework the user interface of the file chooser, as per 
2459         Seth Nickell's design.
2460
2461         * gtk/gtkfilechooserdefault.c
2462         (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2463                 "location-popup" - C-l
2464                 "up-folder"      - C-Up
2465                 "home-folder"    - C-Home
2466         (up_folder_handler): New function; moved the code from up_button_clicked().
2467         (up_button_clicked_cb): Call up_folder_handler().
2468         (home_folder_handler): New function.
2469         (location_popup_handler): New function.
2470         (struct _GtkFileChooserDefault): Add an hpaned field.
2471         (gtk_file_chooser_default_set_current_name): Check that we are in
2472         Save mode.
2473         (save_widgets_create): New function, create the widgets specific
2474         to Save mode.
2475         (main_paned_create): New function, create the hpaned's widgets here.
2476         (gtk_file_chooser_default_constructor): Create the open and save
2477         widgets, and show only one set.
2478         (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2479         (gtk_file_chooser_default_get_paths): Only pay attention to the
2480         entry in Save mode.
2481         (update_chooser_entry): Update the entry only in Save mode.
2482         (entry_activate): Removed.
2483
2484 Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>
2485
2486         * configure.in: Remove the configure.in check for fontconfig 
2487         entirely; it's not needed, since PangoXft implies that sufficiently
2488         new fontconfig is present.
2489
2490 Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>
2491
2492         * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2493         for (i = 0; i < 10; i++)
2494           g_print ("I will compile before committing.\n");
2495
2496 Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>
2497
2498         * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2499         GtkPathBar by default now.
2500
2501         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2502         current path from the path.
2503         (gtk_path_bar_class_init): new signal
2504         (button_clicked_cb): emit the signal when we're selected.
2505         (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2506         clearing thr first_scrolled_button.
2507
2508 Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>
2509
2510         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
2511         allocation for the toggle button so that it actually shows up 
2512         in LTR list mode.
2513
2514         * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
2515         * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
2516         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2517         notification, and avoid excessive relayouting. 
2518
2519 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
2520
2521         Fix bug 134982, reported by Morten Welinder:
2522         
2523         * gtk/gtkpathbar.c (gtk_path_bar_destroy): 
2524         * gtk/gtktooltips.c (gtk_tooltips_destroy): 
2525         * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
2526         parent's ::destroy handler.
2527         
2528         * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
2529         parent's ::dispose handler.
2530
2531 Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>
2532
2533         * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
2534         stuff with an #ifdef, so we still build with most fontconfig versions.
2535
2536 Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
2537
2538         * gtk/gtkaction.c: (gtk_action_finalize):
2539         * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
2540         * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
2541         (gtk_entry_completion_finalize):
2542         * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
2543         * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
2544         (gtk_file_system_model_finalize):
2545         * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
2546         (gtk_icon_theme_finalize):
2547         * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
2548         * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
2549         (gtk_ui_manager_finalize):
2550         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
2551         Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
2552         patch by Jan Arne Petersen)
2553
2554 Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>
2555
2556         * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
2557         Don't crash if item is NULL.  (#131542, Dan Damian)
2558
2559 Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>
2560
2561         * configure.in: Add a check for a new enough fontconfig, since
2562         we picked up a direct dependency on it with the Xft settings.
2563
2564 Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>
2565
2566         Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
2567         
2568         * gtk/gtkcheckmenuitem.c: Introduce a new style property 
2569         indicator_size and use it instead of the hardcoded value.
2570         
2571         * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
2572         item gets enough vertical space for the label and the indicator.
2573
2574 Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2575
2576         * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
2577         _ for the new Xft settings.
2578
2579 Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2580
2581         Bug 130790 (Federico Mena Quintero, Owen Taylor)
2582         
2583         * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
2584
2585         * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
2586         XSETTINGS
2587         
2588 Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2589
2590         Bug 132502
2591         
2592         * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
2593         if we enter a non-selectable menu item.
2594
2595         * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
2596         when the user has left the item.
2597
2598 Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2599
2600         * gtk/docs: Commit auto-generated changes
2601
2602 Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>
2603
2604         * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
2605
2606         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
2607         allocation code.  Works fully in RTL languages, I think.
2608         (gtk_path_bar_scroll_up): Scroll up.
2609         (gtk_path_bar_scroll_down): Scroll down.
2610
2611 2004-02-20  Christian Rose  <menthos@menthos.com>
2612
2613         * configure.in: Added "en_CA" to ALL_LINGUAS.
2614
2615 2004-02-20  Michael Meeks  <michael@ximian.com>
2616
2617         * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
2618         (gtk_tool_item_class_init): hook it up.
2619         (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
2620
2621         * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
2622         chain to parent, fix strcmp bug.
2623
2624         * tests/testtoolbar.c (main): re-arrange widgets to allow
2625         more overflowing toolbar goodness.
2626
2627 2004-02-20  Alexander Larsson  <alexl@redhat.com>
2628
2629         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2630         Desktop directory is not translated.
2631         (set_tree_model):
2632         There might not be volumes for all paths.
2633         * gtk/gtkfilechooserwidget.c:
2634         (gtk_file_chooser_widget_constructor):
2635         Use gtk_file_chooser_set_current_folder to set cwd.
2636
2637 Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>
2638
2639         * gtk/gtkpathbar.[ch]: New widget to handle the path in the
2640         fileselector implementation.  Not hooked up to anything yet.
2641
2642         * gtk/Makefile.am: support the path bar.
2643
2644 Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>
2645
2646         * gtk/gtkstyle.c (gtk_default_draw_handle): 
2647         (gtk_default_draw_box): Make the paned handles gray when the the 
2648         widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)
2649
2650 Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
2651
2652         Fixes for #82099:
2653         
2654         * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
2655         and "Gtk/MenuImages" and map them to "gtk-button-images" and 
2656         "gtk-menu-images".
2657
2658         * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
2659         use it to set the visibility of the embedded image.
2660
2661         * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
2662         it to set the visibility of an embedded image.
2663
2664 Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>
2665
2666         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
2667         Give each radio action its own value.  (#134889, Paolo Borelli)
2668
2669 2004-02-19  Federico Mena Quintero  <federico@ximian.com>
2670
2671         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
2672         Chain to the parent's ::finalize() handler.  Fixes #134885; caught
2673         by Jan Arne Petersen.
2674
2675 2004-02-19  Mark McLoughlin  <mark@skynet.ie>
2676
2677         Make the entire expander widget width prelight as suggested
2678         by Seth in bug #134263.
2679
2680         * gtk/gtkexpander.c:
2681         (gtk_expander_paint_prelight): impl.
2682         (gtk_expander_paint): use it.
2683         (gtk_expander_redraw_expander): don't only redraw the
2684         arrow when prelit.
2685
2686 2004-02-19  Alexander Larsson  <alexl@redhat.com>
2687
2688         * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
2689         * gtk/gtkfilechooserutils.c:
2690         * gtk/gtkfilechooserutils.h:
2691         * gtk/gtkfilechooserwidget.c:
2692         Remove old file-system property.
2693         Add new file-system-backend string property
2694         
2695         * gtk/gtkfilechooserdefault.[ch]:
2696         Handle the file-system-backend property
2697         
2698         * gtk/gtkfilechooserdialog.[ch]:
2699         (gtk_file_chooser_dialog_new_with_backend):
2700         Remove old file-system property.
2701         Add new file-system-backend string property
2702         Add new function gtk_file_chooser_dialog_new_with_backend
2703         
2704         * gtk/gtkfilesystem.c: 
2705         * gtk/gtkfilesystem.h:
2706         Add filesystem module support.  
2707
2708 2004-02-18  Federico Mena Quintero  <federico@ximian.com>
2709
2710         * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
2711         from create_shortcuts_tree().
2712         (shortcuts_pane_create): New function.
2713         (button_new): Renamed from toolbar_button_new().
2714         (shortcuts_pane_create): New function, create the whole shortcuts
2715         pane here.
2716         (current_folder_create): Renamed from toolbar_create().  Don't
2717         create the bookmarks buttons here.
2718         (file_pane_create): New function.
2719         (gtk_file_chooser_default_constructor): Use the new helper
2720         functions, and don't use an extra vbox as GtkFileChooserDefault is
2721         already a vbox.
2722
2723 Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>
2724
2725         * gtk/gtkuimanager.h: 
2726         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
2727         default handlers for all signals; for consistency and for the
2728         benefit of language bindings which still rely on header parsing
2729         to find the signals.  (#134269, Jeroen Zwartepoorte)
2730         
2731 Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>
2732
2733         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
2734         Improve the efficiency here by prepending on the list and reverting
2735         it after the loop.  (#134435, Christian Biere)
2736
2737 Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>
2738
2739         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
2740         removing the plug from the socket.  (#128546, Christopher Blizzard)
2741
2742 Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>
2743
2744         * gtk/gtkradiomenuitem.h:
2745         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
2746         (gtk_radio_menu_item_new_with_label_from_widget): 
2747         (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
2748         convenience functions analogous to similar API on GtkRadioButton.
2749         (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
2750
2751 Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2752
2753         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
2754         case where the background is a solid color.
2755         (gdk_window_clear_backing_rect): Reset the clip region after use.
2756
2757         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
2758         back to using a scratch GC. Pointed out by Owen Taylor
2759         
2760         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
2761         scratch GC if the passed-in one is NULL
2762
2763 Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2764
2765         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
2766         region back to NULL on cached GC (rest of #134728)
2767
2768 Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2769
2770         Fix bug reported by Nam SungHyun (#134728)
2771         
2772         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
2773         Don't use a cached GC here since the function needs to modify the
2774         foreground color.
2775
2776         * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
2777         to NULL on the cached GC.
2778
2779 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
2780
2781         * gtk/gtkfilechooserdialog.c
2782         (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
2783         This sucks a lot.
2784
2785 Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>
2786
2787         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
2788         peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)
2789
2790 Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2791
2792         GC caching, bug #125645 (based on patch by Brian Cameron)
2793         
2794         * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
2795         * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
2796         cached GC's here.
2797         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
2798         get a scratch gc.
2799         * gdk/gdkinternals.h: Declare the function here
2800
2801         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
2802         _gdk_drawable_get_scratch_gc() instead of creating a new GC.
2803         * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
2804         * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
2805         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
2806         * gdk/gdkwindow.c (gdk_window_end_paint): same
2807         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
2808         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
2809         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
2810
2811 Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>
2812
2813         * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
2814         priv->columns to 1.
2815
2816 Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>
2817
2818         * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
2819         priv->columns >= 1 even for empty menus, since we divide by it
2820         somewhere else.  (#133428, Vincent Noel)
2821
2822 Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2823
2824         Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
2825         Taylor.
2826
2827         * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
2828
2829         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
2830         depth.
2831
2832         * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
2833         the colormap, if no colormap, special case depth 1, 
2834
2835         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
2836         _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
2837
2838         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
2839         Special-case bitmaps without a colormap.
2840
2841         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
2842         draw_pixbuf() implementation in the bitmap case.
2843
2844 2004-02-17  Mark McLoughlin  <mark@skynet.ie>
2845
2846         * modules/input/Makefile.am: only reference input method
2847         modules we've actually built. Fixes re-build failure with
2848         stale hangul module lying aroung. Bug #134518.
2849
2850 Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
2851
2852         * gdk/gdkdraw.c: Revert last commit, please don't commit patches
2853         without approval, this isn't the right way to do it.
2854
2855 2004-02-16  DindinX  <david@dindinx.org>
2856
2857         * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
2858         segments at a time, since XDrawSegments cannot handle more than this.
2859
2860         fixes bug #122026.
2861         
2862 Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2863
2864         * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
2865         gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
2866         in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
2867
2868 Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>
2869
2870         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
2871         Split declaration and assignment of combo_box.
2872         
2873         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
2874         pointless cast
2875
2876 Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>
2877
2878         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
2879         deprecation note pointing people to GtkComboBox.
2880
2881 Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
2882
2883         * gtk/gtktreednd.c: 
2884         * gtk/gtktreeview.c: Document the tree DND API.
2885
2886         * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
2887         Call gtk_drag_source_unset().  
2888         
2889 Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>
2890
2891         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
2892         Make stock_size an uint property, to allow custom icon 
2893         sizes. Also clarify the blurb.  (#130047, Erik Grinaker)
2894
2895 Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>
2896
2897         * configure.in: Remove unnecessary STRIP_* definitions, and GNU
2898         make check.
2899
2900 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
2901
2902         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
2903         Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
2904         the very first time you try to save one.
2905
2906 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
2907
2908         Fix #129020.
2909
2910         * gtk/gtkfilechooserdialog.c
2911         (set_default_size): New function, sets a reasonable default size
2912         for the window.
2913         (gtk_file_chooser_dialog_realize): New function, call
2914         set_default_size().
2915         (gtk_file_chooser_dialog_style_set): Likewise.
2916         (gtk_file_chooser_dialog_screen_changed): Likewise.
2917
2918         * tests/testfilechooser.c (main): Don't set a default size for the
2919         dialog.
2920
2921 Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>
2922
2923         * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
2924         Use do instead of while.  (#134031, Morten Welinder);
2925
2926 Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>
2927
2928         * configure.in: Suppress xsltproc and xmlcatalog checks
2929         if enable_man=no.  (#134162, Julio M. Merino Vidal)
2930
2931 Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>
2932
2933         * configure.in: Remove checks for sgml2html. It was once
2934         used for building the linuxdoc version of the tutorial.
2935         Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)
2936
2937 Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>
2938
2939         Fix various compilation problems (#134312, David
2940         Hawthorne)
2941
2942         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
2943         g_return_if_fail(), not g_return_val_if_fail().
2944
2945         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
2946         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
2947         g_return_if_reached(), not g_return_val_if_reached().
2948         
2949         * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
2950         of some parameters.
2951
2952         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
2953         extra 'scale' parameter.
2954
2955 Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>
2956
2957         Various reentrancy fixes for widgets being destroyed
2958         out of focus-out-event. (#128821, Grant Gayed)
2959
2960         * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
2961         Ref window and widget over callbacks.
2962
2963         * gtk/gtkwidget.c (gtk_widget_hide)
2964           gtk/gtkwidget.c (gtk_widget_set_child_visible):
2965         Ref the widget before calling _gtk_window_unset_focus_and_default(),
2966         since that can call user callbacks.
2967
2968         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
2969         Do nothing if the widget isn't realized.
2970
2971 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
2972
2973         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
2974         active, RELIEF_NONE buttons that aren't depressed. This improves
2975         the appearance of buttons in notebook tabs.  (#109213, reported
2976         by Benjamin Otte, patch by Rodney Dawes)
2977
2978 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
2979
2980         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
2981         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
2982
2983 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
2984
2985         Fix for #104811, Padraig O'Briain:
2986
2987         * gtk/gtkscale.h:
2988         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
2989         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
2990         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
2991         text and its position from a GtkScale, to make it more accessible. 
2992         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
2993         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
2994         new GtkScale vfunc.
2995
2996 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
2997
2998         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
2999         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
3000
3001 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
3002
3003         * gtk/gtktooltips.h:
3004         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
3005         function to improve the accessibility of tooltips.  (#114851, 
3006         Padraig O'Briain)
3007
3008 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
3009
3010         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
3011         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
3012         add docs.  (#132847)
3013
3014 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
3015
3016         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
3017         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
3018
3019         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
3020         gdk_property_get call instead of 0.
3021
3022         * docs/reference/gdk/tmpl/properties.sgml: Document the above
3023         as GDK_NONE instead of simply 0.
3024
3025 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3026
3027         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
3028         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
3029
3030 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
3031
3032         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
3033         Correct the docs.
3034
3035 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
3036
3037         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
3038         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
3039         for automatic DND.  (#133485, Tommi Komulainen)
3040
3041 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
3042
3043         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
3044         debug output.
3045
3046 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3047
3048         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
3049         handler.  If no widget has the focus, try to give it to the
3050         default widget.  If there is no default widget, give it to the
3051         first button.  Fixes the cause for which #59707 was reopened.
3052
3053 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3054
3055         Fixes #134051.
3056
3057         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
3058         (icon_info_new): Don't initialize the ref_count field.
3059
3060 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
3061
3062         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
3063         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
3064         <kaffeetisch@gmx.de>.
3065
3066 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
3067
3068         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
3069         focus [hv]adjustment correctly when the focus is located deeper
3070         down in the hierarchy.  (#133489)
3071
3072 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
3073
3074         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
3075         arbitrary low upper limits on the xpad, ypad, width and height
3076         properties.  (#129696, John Ellis)
3077
3078 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
3079
3080         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3081         Ugh. Don't try to free ints, even if they're stored in pointers.
3082         (#133997, Morten Welinder)
3083
3084 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3085
3086         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3087         Free the filters.  Fixes #133547, patch by Morten Welinder
3088         <mortenw@gnome.org>.
3089
3090 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
3091
3092         * gdk/x11/xsettings-client.c (read_settings): Avoid
3093         triggering an X error when the client->manager_window
3094         is None...makes logs look cleaner.
3095
3096         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
3097         GDK_NONE to mean AnyPropertyType as documented. (Reported 
3098         by Yu Shao)
3099
3100         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
3101         gdk_x11_screen_get_window_manager_name): Fix error trap
3102         we've been leaking since 2002... (#129538)
3103
3104 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3105
3106         Fixes the entry-related part of #133852.
3107
3108         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
3109         the file part of the entry if the selected item is a folder.
3110
3111 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3112
3113         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
3114
3115         * tests/prop-editor.c (create_prop_editor): Free the title.
3116         (object_changed): Free the children list.
3117
3118 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
3119
3120         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
3121         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
3122         these functions.
3123
3124 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3125
3126         * gtk/gtkfilechooserdefault.c (set_list_model): Request
3127         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
3128         filtering will work.  Perhaps we should have a way of aggregating
3129         info types to the model as filters get installed.
3130
3131 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
3132
3133         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3134         Ugh. Don't try to free ints, even if they're stored in pointers.
3135
3136 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3137
3138         Fix #132256.
3139
3140         * gtk/gtkfilechooserdefault.c
3141         (gtk_file_chooser_default_get_paths): Read the contents of the
3142         filename entry in both OPEN and SAVE mode.  In multiple-selection
3143         mode, add this to the selection from the file/folder list.
3144         (struct get_paths_closure): Add a path_from_entry field.
3145         (get_paths_foreach): Only add the iterated path if it is not the
3146         same as the path from the entry.
3147
3148 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3149
3150         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
3151         the folder is already open, add the requested info types to it.
3152
3153 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
3154
3155         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3156         type casts for the gtk_window_set_screen() call.
3157
3158 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
3159
3160         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
3161         come up on the same screen as the combo box.  (#133544, 
3162         Morten Welinder)
3163
3164 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
3165
3166         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3167         packing of the file selector.
3168
3169 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
3170
3171         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
3172         calls in array initializers, as some compilers seem to hate this.
3173         (#133216, Jonas Jonsson)
3174
3175 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
3176
3177         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3178         by on-demand instantiating a singleton object with a "changed" 
3179         signal. 
3180
3181         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3182         for GtkAccelMap::changed.
3183
3184 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
3185
3186         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
3187         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3188         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3189         Actually free the lists. Pointed out by Morten Welinder.
3190         
3191 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
3192
3193         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
3194         positions in UTF-8 strings correctly.  (#133315, Theppitak 
3195         Karoonboonyanan)
3196
3197 2004-02-06  Morten Welinder  <terra@gnome.org>
3198
3199         * gtk/gtktoolbar.c (show_menu): Cleanup using
3200         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
3201
3202 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3203
3204         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3205         list.  Fixes #133546.
3206
3207 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3208
3209         Fix #132327.
3210
3211         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3212         folder_hash field to keep a list of live folder objects.
3213         (gtk_file_system_unix_init): Create the folder_hash.
3214         (gtk_file_system_unix_finalize): Destroy the folder_hash.
3215         (gtk_file_system_unix_get_folder): Ref and return an existing
3216         folder if we have it around, otherwise return a new folder object.
3217         (struct _GtkFileFolderUnix): Add a field for the parent file system.
3218         (gtk_file_folder_unix_finalize): Remove the folder from the file
3219         system's hash table.
3220         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
3221         newly-created folder's parent.  Fixes #132327.
3222
3223 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
3224
3225         * gtk/gtkstock.c (builtin_items): Change the labels of the 
3226         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3227         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
3228         SuĂĄrez-Alvarez)
3229
3230 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
3231
3232         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
3233         function to plug a few memory leaks.  (#133544, Morten Welinder)
3234
3235 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
3236
3237         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
3238         Support mnemonic_activate here as well.
3239         
3240         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3241         the button, not the tree_view.
3242
3243 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3244
3245         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3246         function, to make mnemonic_activate work for combo boxes.
3247         (#133443, Paolo Borelli)
3248
3249 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3250
3251         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3252         to FALSE.  (#133539, Morten Welinder)
3253
3254 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
3255
3256         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3257         of the depth one check.  (#133488, Christian Persch)
3258
3259 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
3260
3261         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3262         the drawing of tearoff menu items which don't come first in their
3263         menu.  (#33311)
3264
3265 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
3266
3267         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
3268         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3269
3270 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
3271
3272         Fix #59707.
3273
3274         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3275         the focus chain.
3276         (gtk_label_button_press): Fix prototype.
3277         (gtk_label_button_release): Likewise.
3278         (gtk_label_motion): Likewise.
3279
3280         * tests/testgtk.c (create_message_dialog): For the dialog with
3281         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3282
3283 2004-02-04  Morten Welinder  <terra@gnome.org>
3284
3285         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
3286         bug 133411, apart from the leak.)
3287
3288 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
3289
3290         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3291         in g_object_new, since it depends on lower and upper being set.
3292
3293 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3294
3295         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3296         window not resizable.  Fixes #114032.
3297
3298 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3299
3300         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3301         documentation for the use_separator style property.
3302
3303 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3304
3305         Fix #68938.
3306
3307         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3308         GtkDialog; right now it only contains an ignore_separator field.
3309         (gtk_dialog_class_init): Register the private structure.
3310         (gtk_dialog_init): Initialize the priv->ignore_separator field.
3311         (_gtk_dialog_set_ignore_separator): New private function.
3312         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3313
3314         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3315         use_separator style property.
3316         (gtk_message_dialog_style_set): Change the dialog's separator
3317         based on the style property.
3318         (gtk_message_dialog_init): Set the dialog box to ignore the
3319         separator setting.
3320
3321 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
3322
3323         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3324         also dist gtkfilesystemwin32.[hc].
3325
3326 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
3327
3328         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3329         in rtl mode.  (#129071, chinen@jp.ibm.com)
3330
3331 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
3332
3333         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3334         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3335         mode.  (#107528)
3336
3337 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
3338
3339         Clip narrow columns in rtl-oriented tree views (#128089,  
3340         chinen@jp.ibm.com):
3341         
3342         * gtk/gtkstyle.c (gtk_default_draw_option): 
3343         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
3344         given area.
3345
3346         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
3347         Use the right clip area when calling gtk_cell_renderer_render().
3348         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
3349         Use the right clip area when calling gtk_paint_focus().
3350         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3351         Use the right clip area when calling gtk_paint_toggle() or
3352         gtk_paint_check().
3353         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3354         Clip to the expose_area when drawing the background rectangle.
3355         
3356 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3357
3358         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3359         Use a weak reference instead of ref()/unref(). (#60857, reported
3360         by Joshua N Pritikin)
3361
3362         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3363
3364 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
3365
3366         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
3367         init_hadjust_value and prev_width.
3368         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
3369         them here.
3370         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3371         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3372         here to properly handle the initial position of rtl-oriented
3373         tree views.  (#127581, chinen@jp.ibm.com)
3374
3375 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3376
3377         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3378
3379         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3380         we handle an event in the colums, and FALSE at the end if the
3381         event is not handled at all.
3382
3383 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
3384
3385         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3386         Don't access the level after removing the node, since that may
3387         kill the level.  (#132615, Crispin Flowerday)
3388
3389 2004-02-02  Tor Lillqvist  <tml@iki.fi>
3390
3391         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3392         in all cases. If no grab cursor specified, use the grabbing
3393         window's cursor. If the grabbing window has no cursor, use the
3394         default arrow cursor. (#118025)
3395
3396 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
3397
3398         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3399         latest in menu separation technology.
3400
3401 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3402
3403         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3404         we have to take our chances with).
3405         
3406         (Bug 97510)
3407
3408 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3409
3410         Fix bug 110224.
3411
3412         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3413         Remove unused variable 'result'
3414
3415         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3416
3417         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3418         here.
3419
3420 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
3421
3422         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3423         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3424
3425 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3426
3427         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3428         sliding when using the new API.
3429
3430 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3431
3432         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3433         item_area is positioned correctly. Fix #133070, reported by Jeroen
3434         Zwartepoorte.
3435
3436 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
3437
3438         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3439         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
3440         muppet)
3441
3442 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
3443
3444         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3445         the documentation for new_order.  (#124790, Tim-Philipp MĂŒller)
3446
3447 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
3448
3449         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3450         Reset use_resized_width when setting fixed_width.  (#108612, 
3451         Felipe Heidrich) 
3452
3453 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
3454
3455         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3456         GtkKeySnooperData.  (#132038, R. McFarland)
3457
3458 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3459
3460         Fixes #132975.
3461
3462         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3463         not FALSE.
3464         (gtk_file_system_volume_render_icon): Likewise.
3465
3466         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3467         Likewise.
3468
3469         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3470         not FALSE.
3471
3472         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3473         FALSE.
3474
3475         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3476         not FALSE.
3477         (gtk_text_iter_get_bytes_in_line): Likewise.
3478
3479         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3480         Likewise.
3481
3482         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3483         0.
3484
3485 2004-01-30  Not Zed  <NotZed@Ximian.com>
3486
3487         Fixes #132929.
3488
3489         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3490         handler when we clear the timeout id.
3491
3492 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3493
3494         Fix #129872, based on a patch by Jan Arne Petersen
3495         <jpetersen@uni-bonn.de>
3496
3497         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3498         Implement.
3499         (gtk_file_system_unix_add_bookmark): Implement.
3500         (gtk_file_system_unix_remove_bookmark): Implement.
3501
3502 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3503
3504         Fixes #132693.
3505
3506         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3507         use filename_from_path().  Also, check that the filename is
3508         absolute.
3509         (gtk_file_system_unix_get_folder): Likewise.
3510         (gtk_file_system_unix_create_folder): Likewise.
3511         (gtk_file_system_unix_make_path): Likewise.
3512         (gtk_file_system_unix_parse): Likewise.
3513         (gtk_file_folder_unix_get_info): Likewise.
3514         (filename_from_path): Removed.
3515
3516 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3517
3518         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
3519         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
3520
3521 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
3522
3523         * gdk/x11/gdkdrawable-x11.c: Revert changes from
3524         #113476 and go back to using XftDrawSetClip, because
3525         XftDrawSetClipRectangles is buggy in XFree86-4.3.
3526
3527 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
3528
3529         * gtk/gtktextlayout.c (line_display_iter_to_index)
3530         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
3531         adjust the preedit position for lines that include the
3532         preedit string. (#132353, Yao Zhang). How the heck
3533         did this work as well as it did?!?!
3534
3535         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
3536         Reverse change to change of XNFilterEvents event mask from
3537         #110493 -- it's documented and in the Xlib code an
3538         unsigned long. 
3539         
3540         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
3541         Return -1 rather than void to indicate no length limit.
3542         (#129548)
3543
3544 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
3545
3546         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
3547         (#64601, Murray Cumming)
3548
3549 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
3550
3551         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
3552         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
3553         
3554 2004-01-28  Richard Hult  <richard@imendio.com>
3555
3556         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
3557         Free font_desc.  Fixes #132805.
3558
3559 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3560
3561         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
3562         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
3563         Fixes #132574.
3564
3565 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
3566
3567         * gtk/gtkselection.c (gtk_selection_default_handler): 
3568         nul-terminate the target atoms. (#132656, Christian Persch)
3569
3570 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
3571
3572         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
3573         Don't leak path if we bail out early.  (#132505, Christian Persch)
3574
3575 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
3576
3577         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
3578         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
3579         reference counting on the user_data that is shared between
3580         multiple signal handlers, to avoid calling the destroy notify
3581         multiple times.  (#132447, Adam Hooper)
3582
3583 2004-01-28  Hans Breuer  <hans@breuer.org>
3584
3585         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
3586           gtk/gtkstock.[hc] : ... define ...
3587           gtk/gtkiconfactory.c : ... register ...
3588           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
3589         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
3590         IFace changes.
3591
3592         * gtk/gtk.def : added a bunch of new exported symbols
3593
3594         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
3595         on filter_info->display_name being NULL
3596
3597         * tests/testgtk.c : make testgtk --bench=all work again
3598
3599 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
3600
3601         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
3602         Don't leak string.  (#132482, Christian Persch)
3603
3604 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
3605
3606         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
3607         1.8 won't whine at us.
3608
3609 2004-01-28  Tor Lillqvist  <tml@iki.fi>
3610
3611         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
3612         synthesize_enter_event): Don' generate enter or leave events if
3613         the pointer is grabbed with owner_events off, and the grab event
3614         mask doesn't ask for them. (#129242)
3615
3616         (gdk_event_translate): Ditto for focus change events.
3617
3618 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
3619
3620         Fix #132314.
3621
3622         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
3623
3624         * gtk/gtkfilesystem.c: Likewise.
3625
3626         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
3627         icon-type code.
3628         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
3629         from GtkFileInfo to here.
3630         (gtk_file_system_unix_volume_render_icon): Implement.
3631
3632 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
3633
3634         * modules/input/imhangul-defs.h: 
3635         * modules/input/imhangul.c:
3636         * modules/input/Makefile.am: Remove broken hangul input module.
3637         
3638 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3639
3640         * gtk/gtktoolbar.c: Remove obsolete comment.
3641
3642         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
3643         SPACE_LINE_END): Make separators wider and taller, so they are
3644         easier to pick up when editing the toolbar.
3645
3646         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
3647         a bit, 
3648
3649         * gtk/gtktoolbar.c (rect_within): Formatting fix
3650
3651         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
3652         sliding feel more responsive by only restarting sliding when the
3653         placeholder actually changes its goal allocation.
3654
3655 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
3656
3657         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
3658         compiler warning.  (#122725, Kjartan Maraas)
3659         
3660 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
3661
3662         Make menus work better on Xinerama (#126150):
3663         
3664         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
3665         monitor_num on the screen of the menu, not of the attach widget.
3666
3667         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
3668         (gtk_menu_window_size_request): Remember the monitor_num.
3669
3670 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
3671
3672         Fix #105497; constify uses of GdkColor.
3673
3674         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
3675         (gdk_gc_set_rgb_bg_color): Constify.
3676         (gdk_gc_set_foreground): Constify.
3677
3678         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
3679         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
3680         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
3681
3682         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
3683         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
3684         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
3685
3686         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
3687         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
3688         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
3689
3690         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
3691         (gdk_draw_layout_with_colors): Constify.
3692
3693         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
3694         (gdk_pixmap_colormap_create_from_xpm): Constify.
3695         (gdk_pixmap_create_from_xpm): Constify.
3696         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
3697         (gdk_pixmap_create_from_xpm_d): Constify.
3698
3699         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
3700
3701         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
3702         (gtk_clist_set_background): Constify.
3703
3704         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
3705         (gtk_color_button_set_color): Constify.
3706
3707         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
3708         Constify and add a check for color != NULL.
3709         (gtk_color_selection_get_current_color): Add a check for color != NULL.
3710         (gtk_color_selection_set_previous_color): Constify and add a check
3711         for color != NULL.
3712         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
3713
3714         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
3715         (gtk_ctree_node_set_background): Constify.
3716
3717         * gtk/gtktext.c (gtk_text_insert): Constify.
3718         (insert_text_property): Constify.
3719         (text_properties_equal): Constify.
3720         (new_text_property): Constify.
3721
3722         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
3723         (gtk_widget_modify_fg): Constify.
3724         (gtk_widget_modify_bg): Constify.
3725         (gtk_widget_modify_text): Constify.
3726         (gtk_widget_modify_base): Constify.
3727
3728 2004-01-26  Christian Rose  <menthos@menthos.com>
3729
3730         * configure.in: Added "mi" to ALL_LINGUAS.
3731
3732 2004-01-25  Tor Lillqvist  <tml@iki.fi>
3733
3734         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
3735         WM_TRANSIENT_FOR property is being deleted, set the owner of the
3736         window to the root window (i.e., effectively unset it). (#132411)
3737
3738         * gdk/win32/gdkprivate-win32.h
3739         * gdk/win32/gdkglobals-win32.c
3740         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
3741         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
3742
3743         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
3744
3745 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3746
3747         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
3748         to map/unmap items on whether they are actually allocated outside
3749         the toolbar, not on whether that will eventually happen. Improves
3750         animation in the presence of overflown items.
3751
3752         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
3753         queue_resize() to so that the items will get their new goal
3754         values and the idle handler will not immediately return FALSE.
3755
3756         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
3757         make sure that a placeholder becoming invisible doesn't cause a
3758         return TRUE.
3759
3760         * gtk/gtktoolbar.c (get_item_size): Don't special case
3761         placeholders here.
3762
3763 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3764
3765         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
3766         try to pack icon if there actually is one.
3767
3768         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3769         OVERFLOWN items get an allocation even when they are
3770         unmapped. This ensures they will slide in properly.
3771
3772         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
3773         when there are overflown items that need to slide in. Also add
3774         comments and make formatting more readable.
3775
3776 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3777
3778         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
3779         Add a write-only property ::group to be consistent with
3780         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
3781         Andrieu)
3782
3783 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
3784
3785         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
3786         font description.  (#132168)
3787
3788 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
3789
3790         Fix #132247.
3791
3792         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
3793         mode.
3794         (set_select_multiple): Optionally notify about changes to the
3795         select-multiple property.
3796         (list_selection_changed): Change the condition for the editable row to
3797         test for save mode; this is more clear than testing for not being
3798         in multiple selection mode.
3799         (gtk_file_chooser_default_get_paths): Get impl->action directly
3800         rather than calling gtk_file_chooser_get_action().
3801         (entry_activate): Likewise.
3802         (set_select_multiple): Annotate about #133255.
3803         (update_chooser_entry): Likewise.
3804         (check_preview_change): Likewise.
3805         (tree_selection_changed): Likewise.
3806
3807 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
3808
3809         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
3810         when there are no columns, or all columns are hidden, #131402
3811
3812 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3813
3814         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
3815         mistake. Change back to 225.
3816
3817 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
3818
3819         * === Released 2.3.2 ===
3820
3821 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
3822
3823         * gtk/gtkicontheme.c: Patch from Christian Neumair
3824         to make warning string more translator friendly.
3825
3826         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
3827         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
3828         happy.
3829
3830         * configure.in: Require GLib-2.3.2, version 2.3.2,
3831         interface age 0, binary age 302.
3832
3833         * NEWS: Organized, added some names.
3834
3835 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
3836
3837         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
3838
3839 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
3840
3841         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
3842         GtkWidget::popup_menu.
3843
3844 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
3845
3846         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
3847         info after calling gtk_menu_do_remove(), since that function
3848         uses the attach info. Doh!
3849
3850         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
3851         for being 1 directly after setting it to 0.
3852
3853 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3854
3855         * NEWS: Updates
3856
3857 2004-01-22  Alexander Larsson  <alexl@redhat.com>
3858
3859         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
3860         Fix typo
3861
3862 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
3863
3864         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3865         Free the path fields.
3866
3867         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
3868         the root_path, reported by <scott@asofyet.org>
3869         (gtk_file_system_model_finalize): Unref the file system.
3870
3871         * gtk/gtkfilefilter.c (filter_rule_free): default:
3872         g_assert_not_reached().
3873         (gtk_file_filter_finalize): Free the filter->name, reported by
3874         <scott@asofyet.org>
3875         (gtk_file_filter_finalize): Free the rules list.
3876
3877 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
3878
3879         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
3880         color button when an alpha is set.
3881         (gtk_color_button_set_alpha): redraw the color button when an
3882         alpha is set.
3883
3884 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
3885
3886         Fix #131869: 
3887         
3888         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
3889         a reference to the group while emitting the signals.
3890
3891         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
3892         destroy notify which does not only unref, but also resets
3893         the action_group property of the action.
3894
3895 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3896
3897         * NEWS: Added details about GtkFileChooser changes.
3898
3899 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3900
3901         Fix #99425, add accessor functions for GtkPaned's children.
3902
3903         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
3904         (gtk_paned_get_child2): New function.
3905
3906 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
3907
3908         * NEWS: Start of 2.3.2 section.
3909
3910 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
3911
3912         Fixes for #130370, based on a patch by Michael Meeks:
3913         
3914         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
3915         adjust cell positions and recalculate row and column counts after
3916         removing an item.
3917
3918         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
3919
3920         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
3921         appending items.
3922
3923         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
3924         to avoid an unintended recursion.
3925
3926 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
3927
3928         Fix #131418.
3929
3930         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
3931         function.
3932         (gtk_file_chooser_default_set_property): Use
3933         set_select_multiple().  Also, re-set this mode to single if the
3934         file chooser is set to Save mode.
3935         (entry_activate): Handle the case where the entry is completely
3936         empty *and* its current folder does exist.  Also, there is need to
3937         test for select_multiple here now that we ensure that it won't
3938         happen during Save mode.
3939
3940 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3941
3942         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
3943         _gtk_toolbar_get_default_space_size ();
3944
3945         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
3946         get_space_size): Use them here.
3947
3948 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3949
3950         * tests/testgtk.c (create_toolbar): Set a small size request and
3951         make the window resizable, to test mapping/unmapping of buttons.
3952
3953         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
3954         gtk_toolbar_insert_tool_item): remove these functions.
3955
3956         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
3957         toolbar_content_show_all, gtk_toolbar_hide_all,
3958         toolbar_content_hide_all): New functions. 
3959
3960         Ignore show_all/hide_all for buttons created in compatibility mode.
3961
3962         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
3963         gtk_toolbar_hide_all): Make sure buttons are ignored by
3964         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
3965         
3966         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
3967
3968         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
3969         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
3970
3971         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
3972         could become NULL.
3973
3974         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
3975         instead of prepending them.
3976
3977         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
3978         'elapsed' for all items.
3979
3980         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
3981         into bitfields.
3982
3983         * gtk/gtktoolbar.c: Many formatting fixes
3984         
3985 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
3986
3987         * configure.in: Add the necessary magic to create
3988         po-properties/Makefile.
3989
3990 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3991
3992         The second part of the fix for #114351 (see also 
3993         gdk-pixbuf/ChangeLog and po/ChangeLog):
3994
3995         * Makefile.am (SUBDIRS): Add po-properties.
3996
3997         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
3998
3999         * gdk/gdkintl.h (P_): 
4000         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
4001
4002         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
4003         bind_textdomain_codeset for gtk20-properties as well.
4004
4005 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4006
4007         * gtk/gtktoolbar.c: 
4008
4009         Fix rest of #128678: Implement all the toolbar_content()
4010         methods for the old API case.
4011
4012 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4013
4014         * gtk/gtktoolbar.c: 
4015
4016         Phase 1 of fixing #128678: Only access ToolbarContent through a
4017         set of new functions:
4018
4019         toolbar_content_expose, toolbar_content_visible,
4020         toolbar_content_size_request, toolbar_content_is_homogeneous,
4021         toolbar_content_get_child_requisition,
4022         toolbar_content_is_placeholder, toolbar_content_disappearing,
4023         toolbar_content_get_state, toolbar_content_child_visible,
4024         toolbar_content_get_goal_allocation,
4025         toolbar_content_get_allocation,
4026         toolbar_content_set_start_allocation,
4027         toolbar_content_get_start_allocation, toolbar_content_get_expand,
4028         toolbar_content_set_goal_allocation,
4029         toolbar_content_set_child_visible, toolbar_content_size_allocate,
4030         toolbar_content_set_state, toolbar_content_get_widget,
4031         toolbar_content_set_disappearing,
4032         toolbar_content_set_size_request,
4033         toolbar_content_toolbar_reconfigured,
4034         toolbar_content_retrieve_menu_item, 
4035         toolbar_content_new_tool_item, toolbar_content_destroy,
4036         toolbar_content_is_separator
4037
4038         Also fix #127092.
4039         
4040 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4041
4042         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
4043         item ID.
4044
4045 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4046
4047         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
4048         overflow menu.
4049         
4050         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
4051         [#127726]
4052
4053 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4054
4055         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
4056         has_editable field.
4057         (_gtk_file_system_model_add_editable): New function.
4058         (_gtk_file_system_model_remove_editable): New function.
4059         (gtk_file_system_model_get_value): Return appropriate values for
4060         the temporary editable row.
4061         (_gtk_file_system_model_get_info): Handle the editable row.
4062         (_gtk_file_system_model_get_path): Likewise.
4063
4064         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
4065         Removed an unused variable.
4066         (toolbar_button_new): Optionally show the button.
4067         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
4068         (toolbar_create): Add a "New Folder" button for Save mode.
4069         (error_building_filename_dialog): New helper function.
4070         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
4071         (create_file_list): Connect to the "edited" signal of the text
4072         cell renderer.  Store the name column and text renderer in the
4073         impl structure.
4074         (renderer_edited_cb): New callback.
4075         (gtk_file_chooser_default_set_property): Show/hide the "New
4076         folder" button when the save action changes.
4077         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
4078         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
4079         tree_model.
4080         (get_list_file_info): Likewise!
4081         (list_icon_data_func): Handle the path being NULL.
4082         (new_folder_button_clicked): New callback.
4083         (list_name_data_func): If we are on the editable row, set the text
4084         to "Type name of new folder".
4085         (list_selection_changed): Handle the editable row.
4086         (list_mtime_data_func): Likewise.
4087
4088         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
4089         NULL, not FALSE.
4090         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
4091
4092 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
4093
4094         The first part of the fix for #114351 (see also 
4095         gdk-pixbuf/ChangeLog and po/ChangeLog):
4096         
4097         * gtk/gtkintl.h: 
4098         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
4099
4100         * gdk/gdkdisplaymanager.c:
4101         * modules/input/gtkimcontextxim.c:
4102         * gtk/*.c:  Mark property blurbs and nicks with P_().
4103         
4104 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4105
4106         Fix #130969.
4107
4108         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
4109         editing_canceled signal.
4110
4111         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
4112         "editing-canceled" signal.
4113         (gtk_cell_renderer_editing_canceled): New function.
4114
4115         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
4116         Call gtk_cell_renderer_editing_canceled().
4117
4118 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4119
4120         * gtk/gtkfilechooserdefault.c
4121         (gtk_file_chooser_default_set_property): Do not allow setting
4122         select_multiple when in Save mode.
4123         (set_list_model): No need to nullify the list_model and
4124         sort_model.
4125         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
4126         (get_paths_foreach): Likewise.
4127
4128         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
4129         documentation about folder mode.
4130         (gtk_file_chooser_get_uri): Likewise.
4131
4132 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4133
4134         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
4135         get_volume_for_path() method.
4136         (struct _GtkFileSystemIface): Finally removed the list_roots() and
4137         get_root_info() methods, and the "roots-changed" signal.
4138
4139         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
4140         function.
4141         (gtk_file_system_list_roots): Removed.
4142         (gtk_file_system_get_root_info): Removed.
4143
4144         * gtk/gtkfilesystemunix.c
4145         (gtk_file_system_unix_get_volume_for_path): Implement.
4146         (get_root_volume): New helper function.
4147         (gtk_file_system_unix_list_volumes): Use get_root_volume().
4148         (gtk_file_system_unix_list_roots): Removed.
4149         (gtk_file_system_unix_get_root_info): Removed.
4150
4151         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
4152         accept a NULL root_path.
4153         (struct _GtkFileSystemModel): Add a field to remember the
4154         root_path.
4155         (_gtk_file_system_model_new): Store the root_path in the model
4156         structure.
4157         (find_and_ref_path): Stop going up the hierarchy at the root_path
4158         of the model.  Also, don't return prematurely when walking up the
4159         hierarchy.
4160
4161         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4162         the rules_hint.
4163         (struct _GtkFileChooserDefault): Added a current_volume_path field.
4164         (set_tree_model): New function; create the folder tree model here.
4165         (create_folder_tree): Don't create the model here.
4166         (set_list_model): Set the show_hidden flag on the list model.
4167
4168 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
4169
4170         * gtk/gtknotebook.h:
4171         * gtk/gtknotebook.c (gtk_notebook_append_page): 
4172         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
4173         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
4174         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
4175         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
4176         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4177         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
4178
4179 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
4180
4181         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4182         a 'newly-allocated' to hint that the list should be freed after
4183         use.
4184
4185 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
4186
4187         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4188         to after handling the button presses in the TreeView to avoid
4189         getting multiple selection_changes()
4190
4191 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
4192
4193         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
4194         Karoonboonyanan)
4195
4196 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
4197
4198         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4199         Don't leak name and stock_id.  (#131358, Morten Welinder)
4200
4201 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
4202
4203         * docs/faq/gtk-faq.sgml: Updates to Section 5
4204
4205 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4206
4207         * gtk/gtkradioaction.c: Add a writable group property to align
4208         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
4209
4210 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
4211
4212         * docs/faq/gtk-faq.sgml: Update info on using autoconf
4213
4214 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
4215
4216         * tests/testmerge.c: Adjust to the new connect_proxy signals.
4217
4218         * gtk/gtkuimanager.c
4219         * gtk/gtkactiongroup.c
4220         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4221         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4222         removes the confusion between the disconnect_/connect_proxy signals 
4223         and the (unrelated) virtual functions of the same name and aligns
4224         the setup with the pre_/post_activate signals.
4225
4226 2004-01-12  Jody Goldberg <jody@gnome.org>
4227
4228         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4229           with no submenus otherwise it looks like we activate every time a
4230           submenu opens.
4231
4232 2004-01-12  Jody Goldberg <jody@gnome.org>
4233
4234         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4235
4236 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
4237
4238         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
4239         (gtk_accel_map_lock_path): 
4240         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4241         entry is silently created during lock_path(), and treated as an error 
4242         during unlock_path(). These changes have been requested by Tim Janik.
4243
4244 2004-01-10  Jody Goldberg <jody@gnome.org>
4245
4246         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4247         s/merge_signals/ui_manager_signals/ for readability.
4248         (gtk_ui_manager_class_init) : add pre_activate and post_activate
4249           signals.
4250         (cb_proxy_pre_activate) : new.
4251         (cb_proxy_post_activate) : new.
4252         (gtk_ui_manager_insert_action_group) : connect the proxies for
4253           GtkActionGroup::pre/post_activate
4254         (gtk_ui_manager_remove_action_group) : disconnect them.
4255
4256         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4257           'sensitive', and 'visible' properties.  Also add pre_activate and
4258           post_activate signals to help deal with activations at a higher
4259           level (eg GtkUIManager)
4260         (gtk_action_group_init) : init sensitive and visible
4261         (gtk_action_group_set_property) : add sensitive and visible
4262         (gtk_action_group_get_property) : add sensitive and visible
4263         (gtk_action_group_get_sensitive) : new.
4264         (gtk_action_group_get_visible) : new.
4265         (cb_set_action_sensitivity) : new with minor optimization that only
4266           signals sensitivity changes if the action could possibly change.
4267         (cb_set_action_visiblility) : ditto.
4268         (gtk_action_group_set_sensitive) : new.  walk the actions directly
4269           rather than using notify::sensitive because that is simpler, easier
4270           to read, and more efficient.
4271         (gtk_action_group_set_visible) : ditto.
4272         (gtk_action_group_add_action) : Each action can only be in 1 group,
4273           set GtkAction::action_group.
4274         (gtk_action_group_remove_action) : clear it.
4275         (gtk_action_group_add_toggle_actions_full) : warning suppression.
4276         (gtk_action_group_add_radio_actions_full) : warning suppression.
4277         (_gtk_action_group_emit_pre_activate) : new protected routine for use
4278           by GtkAction.
4279         (_gtk_action_group_emit_post_activate) : ditto.
4280
4281         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4282         (gtk_action_init) : initialize it.
4283         (gtk_action_get_property) : get.
4284         (gtk_action_set_property) : set it via
4285         (gtk_action_set_action_group) : new function.
4286         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4287           with the logical sensitivity (action & group) rather than the simple
4288           action::sensitivity.
4289         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4290           logical visibility (action & group) rather than the simple
4291           action::visible.  Use widget show/hide directly.
4292         (connect_proxy) : handle the custom sensitivity handler.
4293           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4294           directly, with special cases for TOOL_BUTTON.  Still not especially
4295           good it might be useful to handle label/use_underline by parmspec
4296           lookup.  Those are likely to be implemented by custom types, and are
4297           assumed to exist in GtkToolItem.
4298         (disconnect_proxy) : disconnect the new sensitivity handler.
4299         (_gtk_action_emit_activate) : add pre/post signals.
4300         (gtk_action_activate) : use logical sensitivity.
4301         (gtk_action_is_sensitive) : logical sensitivity.
4302         (gtk_action_get_sensitive) : actual sensitivity.
4303         (closure_accel_activate) : use logical sensitivity.
4304
4305 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
4306
4307         * gtk/gtkuimanager.c: Introduce a new parser state for 
4308         accelerator elements to avoid misparsing files containing 
4309         such elements.  (#131035, Morten Welinder)
4310
4311 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
4312
4313         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4314
4315 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
4316
4317         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4318
4319 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4320
4321         * gtk/gtkuimanager.h:
4322         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4323         obtain a list of toplevel widgets constructed by the ui manager.
4324
4325         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
4326         the values can be combined for gtk_ui_manager_get_toplevels().
4327
4328         * tests/testmerge.c: Add a "Dump toplevels" button to test 
4329         gtk_ui_manager_get_toplevels().
4330
4331 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
4332
4333         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4334         
4335         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
4336         by Anders Carlsson  (#130464).
4337
4338 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
4339
4340         * gtk/gtkmain.h: 
4341         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
4342         gint to gboolean.  (#130718, reported by Johannes Weißl)
4343
4344 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
4345
4346         * gtk/gtkactiongroup.h: 
4347         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4348         Remove the redundant name and stock_id parameters, adjust all callers.
4349
4350 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
4351
4352         * gtk/gtkaction.h: 
4353         * gtk/gtkaction.c (gtk_action_new):  
4354         * gtk/gtktoggleaction.h: 
4355         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
4356         * gtk/gtkradioaction.h: 
4357         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
4358         functions for actions.
4359
4360         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4361         (gtk_action_group_add_toggle_actions_full): 
4362         (gtk_action_group_add_radio_actions_full): and use the
4363         new functions here.  (#125322, Patch by Jeff Frank)
4364
4365 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
4366
4367         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
4368         docs.
4369
4370 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
4371
4372         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4373         (shortcuts_append_home), (shortcuts_append_desktop),
4374         (shortcuts_append_paths), (shortcuts_add_volumes),
4375         (shortcuts_append_bookmarks), (create_shortcuts_model),
4376         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4377         to the shortcuts_model.
4378
4379         (remove_bookmark_button_clicked_cb),
4380         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4381         bookmarks can be removed. Fixes #129873
4382
4383 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4384
4385         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4386         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4387         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
4388         respectively. Tests #82203.
4389
4390 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
4391
4392         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4393         0777 as the mode for mkdir() and let the umask do the right
4394         thing.  Fixes #121819.
4395
4396         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4397         can return NULL; handle this.  Fixes #129565.
4398
4399 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
4400
4401         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4402         that proceeded the end-of-sentence punctuation. Fixes: #130353.
4403
4404 2004-01-06  Jody Goldberg <jody@gnome.org>
4405
4406         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
4407           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4408
4409 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4410
4411         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4412         call shortcuts_add_bookmarks() here.
4413         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4414         iter.
4415         (shortcuts_append_paths): Don't display error dialogs here.
4416         (create_file_list): Remove the @#$% rules hint.
4417
4418 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4419
4420         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4421         function.
4422         (toolbar_create): Do not use a toolbar widget, just an hbox
4423         instead.  Add the bookmarks buttons and the current folder label
4424         here.
4425         (create_filename_entry_and_filter_combo): Create the filter combo
4426         here.
4427         (filter_create): Don't show the filter combo initially.
4428         (up_button_cb): Renamed from toolbar_up_cb().
4429         (create_shortcuts_buttons): Removed.
4430
4431 2004-01-05  Murray Cumming  <murrayc@usa.net>
4432
4433         * gdk/gdkimage.h: Added <public> documentation to the struct, as
4434         suggested by Owen Taylor.
4435
4436 2004-01-05  Jody Goldberg <jody@gnome.org>
4437
4438         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4439           I would have prefered outdent, but compatibility seems more
4440           important.
4441         * gtk/gtkstock.c (builtin_items) : ditto.
4442         * gtk/gtkstock.h : ditto.
4443         * gtk/stock-icons/Makefile.am : ditto.
4444         * gtk/stock-icons/stock_text_indent_16.png :
4445         * gtk/stock-icons/stock_text_indent_24.png :
4446         * gtk/stock-icons/stock_text_unindent_16.png :
4447         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4448
4449 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4450
4451         * gtk/gtkradiotoolbutton.[ch]
4452         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4453         group is a GtkRadioButton, not a GtkWidget.
4454
4455 2004-01-04  Hans Breuer  <hans@breuer.org>
4456
4457         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
4458         gdk_window_set_keep_(above|below) to make DND work again.
4459         Thanks to Alif Wahid for noticing.
4460
4461         * gdk/gdk.def : update externals
4462
4463         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4464
4465         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
4466           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4467           gtk/stock-icons/stock_harddisk_16.png 
4468           gtk/stock-icons/stock_harddisk_24.png 
4469         Harddisk stock icons for file system implementations. Beside
4470         FLOPPY and CDROM there is now HARDDISK, probably some 
4471         GTK_STOCK_NETWORK would be useful, but I could not find one.
4472
4473 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
4474
4475         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4476         Patch from Andrew Moise (#130462).
4477
4478 2004-01-01  Jody Goldberg <jody@gnome.org>
4479
4480         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4481           visible_vertical.
4482         (gtk_action_class_init) : here.
4483         (gtk_action_init) : here.
4484         (gtk_action_set_property) : here.
4485         (gtk_action_get_property) : here.
4486         (connect_proxy) : and here.
4487
4488 2003-12-30  Jody Goldberg <jody@gnome.org>
4489
4490         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
4491           utility routine for use in derived GtkActions with the replicated code
4492           from.
4493         (gtk_action_group_add_actions_full) : here.
4494         (gtk_action_group_add_toggle_actions_full) : here.
4495         (gtk_action_group_add_radio_actions_full) : and here.
4496
4497 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4498
4499         * configure.in: Added "bn" to ALL_LINGUAS.
4500
4501 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4502
4503         * bn.po: Added Bangla translation by 
4504         of Ankur group <gnome-translation@bengalinux.org>.
4505
4506 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
4507
4508         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
4509         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
4510         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
4511         week_start values other than 0 and 1, e.g. 6 will let weeks start
4512         on Saturday.  (#130349, Roozbeh Pournader) 
4513
4514 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4515
4516         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4517         
4518         Fix to allow reasonable pointer behavior in window mode when an
4519         extended input device reports an incorrect resolution of 0.  Fixes
4520         bug #123546
4521         
4522 2003-12-31  Christian Neumair  <chris@gnome-de.org>
4523
4524         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
4525         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
4526         plurals (#123847).
4527
4528 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
4529
4530         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4531         (gtk_action_group_add_toggle_actions_full):
4532         (gtk_action_group_add_radio_actions_full): Pull accelerator key
4533         from the stock item if stock_id is given, but accelerator 
4534         not.  (Noticed by Jeff Franks and Jody Goldberg)
4535
4536         * tests/testmerge.c: Remove the accelerator from the "Open" entry
4537         to test the above change.
4538         
4539 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
4540
4541         Make show_all() work for the extra and preview widgets; reported
4542         by Paolo Maggi.
4543
4544         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
4545         preview widget.
4546         (set_extra_widget): show_all() the extra widget.
4547
4548 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4549
4550         * gtk/gtkuimanager.c (do_updates): 
4551         * gtk/gtktoolbar.c (slide_idle_handler): 
4552         * gtk/gtkdnd.c (gtk_drag_update_idle): 
4553
4554         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
4555         functions. (#130157, patch from Olexiy Avramchenko).
4556         
4557 2003-12-29  Anders Carlsson  <andersca@gnome.org>
4558
4559         * gtk/gtkradiotoolbutton.c:
4560         * gtk/gtkradiotoolbutton.h:
4561         * gtk/gtkseparatortoolitem.c:
4562         * gtk/gtkseparatortoolitem.h:
4563         * gtk/gtktoggletoolbutton.c:
4564         * gtk/gtktoggletoolbutton.h:
4565         * gtk/gtktoolbar.c:
4566         * gtk/gtktoolbar.h:
4567         * gtk/gtktoolbutton.c:
4568         * gtk/gtktoolbutton.h:
4569         * gtk/gtktoolitem.c:
4570         * gtk/gtktoolitem.h:
4571         Update my e-mail address.
4572         
4573 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
4574
4575         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
4576         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
4577         paths.  (#73207, reported by Havoc Pennington)
4578
4579 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4580
4581         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
4582         instead of VISIBLE to determine whether we should stop
4583         sliding. (#130018, reported by Christian Persch).
4584
4585 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
4586
4587         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
4588         Don't use first_action without initializing it if n_entries is 0.
4589
4590 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
4591
4592         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
4593         Add the missing _get_ to the name of the non-Xcursor version of
4594         this function.  (noticed by Torsten Schoenfeld)
4595
4596 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
4597
4598         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
4599         muppet.
4600
4601 2003-12-24  Jody Goldberg <jody@gnome.org>
4602
4603         * gtk/gtkactiongroup.h : Add some const to the char * in
4604           GtkActionEntry*.  We're reccomending people pass static strings to
4605           them, and not freeing them.  This stems to flood of warnings that
4606           result.
4607         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
4608           temp vars to const to match above.
4609         (gtk_action_group_add_toggle_actions_full) : ditto.
4610         (gtk_action_group_add_radio_actions_full) : ditto.
4611
4612 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
4613
4614         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
4615         gtk_clipboard_request_targets() and 
4616         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
4617
4618 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
4619
4620         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
4621         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
4622         * gtk/gtkcalendar.c (draw_arrow_left):
4623         (draw_arrow_right): Removed. 
4624         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
4625         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
4626         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
4627         insensitive.  (#97376)
4628
4629 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
4630
4631         * gtk/gtkuimanager.c (update_node): 
4632         (update_smart_separators): 
4633         (_gtk_menu_is_empty): 
4634         (find_menu_position): 
4635         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
4636         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
4637         (gtk_combo_box_relayout): Fix memory leaks caused by the
4638         failure to free the result of gtk_container_get_children().
4639
4640 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4641
4642         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
4643         properties when the window becomes a toplevel. When a window that
4644         was previously a toplevel becomes a toplevel again, restore its
4645         window type. Also make sure the focus window is removed from the
4646         XID hash when it is destroyed. (#117579, reported by Morten
4647         Welinder, patch reviewed by Owen Taylor).
4648
4649 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
4650
4651         * gtk/gtkmenushell.h: 
4652         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
4653         to emit the "cancel" signal on a menu shell.
4654
4655         * gtk/gtkmenu.c (gtk_menu_key_press): 
4656         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
4657         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
4658         new function instead of directly emitting the 
4659         signal.  (#81803, Owen Taylor)
4660
4661 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
4662
4663         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
4664         Fix the "language_set" blurb.  
4665         
4666 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
4667
4668         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
4669         all of treeview when resizing (#110074, patch from Soeren Sandmann).
4670
4671 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
4672
4673         Fixes #108458.
4674
4675         * gtk/gtkcelllayout.[ch]: added a reorder method.
4676
4677         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
4678         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
4679
4680         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
4681         (gtk_cell_view_cell_layout_reorder): ditto.
4682
4683         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
4684         (gtk_combo_box_cell_layout_reorder): ditto.
4685
4686         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
4687         (gtk_entry_completion_reorder): ditto.
4688
4689 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
4690
4691         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
4692         instead of strcmp (#117127, suggestion from Soeren Sandmann).
4693
4694 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
4695
4696         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
4697         here from gtk_menu_real_insert(),
4698         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
4699         (gtk_menu_reorder_child): run _do_insert after inserting the child
4700         (unbreaks _reorder_child, reported by Tim Janik).
4701
4702 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
4703
4704         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
4705         g_date_strftime() for UTF-8 correctness; use Julian dates to
4706         simplify the function.
4707
4708 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
4709
4710         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
4711         Test extra_width, not extra_height, when determining whether to
4712         set extra_width.  (#129647, Jan Arne Petersen)
4713
4714 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
4715
4716         Fix the behaviour of insensitive actions, which was broken
4717         when gtk_action_activate() was changed to pay attention to 
4718         sensitivity  (#129557, Christian Persch)
4719         
4720         * gtk/gtkaction.h: 
4721         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
4722         function to emit an activate signal without regard to sensitivity.
4723
4724         * gtk/gtkradioaction.c: 
4725         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
4726         instead of gtk_action_activate().
4727
4728 2003-12-18  Jody Goldberg <jody@gnome.org>
4729
4730         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
4731           to ensure that the base hicolor theme is installed.  Silently
4732           failing to produce icons that apps assume exist in the theme seems
4733           like a bad idea.
4734
4735 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
4736
4737         Fixes #110249, reworked patch from Joshua N Pritikin.
4738
4739         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
4740         (gtk_tree_model_sort_tree_drag_source_init),
4741         (gtk_tree_model_sort_row_draggable),
4742         (gtk_tree_model_sort_drag_data_get),
4743         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
4744
4745         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
4746         (gtk_tree_model_filter_tree_drag_source_init),
4747         (gtk_tree_model_filter_row_draggable),
4748         (gtk_tree_model_filter_drag_data_get),
4749         (gtk_tree_model_filter_drag_data_delete): ditto.
4750
4751 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
4752
4753         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
4754         for "*" and "/" (expand/collapse all). (#110195, reported by
4755         Calum Benson).
4756
4757 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
4758
4759         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4760         clear the extra_attrs list if we set "text" after "markup".
4761         (Fixes #121933, Federico Mena Quintero).
4762
4763 2003-12-18  Alexander Larsson  <alexl@redhat.com>
4764
4765         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
4766         Fix typo that used the wrong x/y values for the x1, y1 point
4767         (#129605)
4768
4769 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
4770
4771         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4772         (gtk_cell_renderer_text_finalize),
4773         (gtk_cell_renderer_text_get_property),
4774         (gtk_cell_renderer_text_set_property), (get_layout): added language
4775         and language_set properties like GtkTextTag has. (#103800, reported
4776         by Owen Taylor).
4777
4778 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
4779
4780         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
4781         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
4782         "activate" signal.  (#129358, Ka-Hing Cheung)
4783
4784 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
4785
4786         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
4787         the logical flag backwards in the expand_collapse_cursor_row
4788         bindings, fixing.
4789         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
4790         flag when !logical and in RTL. (Fixes #107527, reported by
4791         Noah Levitt).
4792
4793 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
4794
4795         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
4796         editing when activated by the left mouse button. (#106869,
4797         patch from Evan Martin).
4798
4799 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
4800
4801         Migrating all cell renderers to use the new instance private data
4802         construction.
4803
4804         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
4805         longer being used.
4806
4807         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
4808         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
4809         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
4810         GtkCellRendererInfo handling, migrate to instance private data.
4811
4812         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
4813         (gtk_cell_renderer_text_start_editing): moved focus_out_id
4814         from GtkCellRendererInfo to text renderer private data.
4815
4816         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
4817         (gtk_cell_renderer_pixbuf_class_init),
4818         (gtk_cell_renderer_pixbuf_finalize),
4819         (gtk_cell_renderer_pixbuf_get_property),
4820         (gtk_cell_renderer_pixbuf_set_property),
4821         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
4822         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
4823         migrate to instance private data.
4824
4825         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
4826         (gtk_cell_renderer_toggle_get_property),
4827         (gtk_cell_renderer_toggle_set_property),
4828         (gtk_cell_renderer_toggle_render): migrate to instance private data.
4829
4830 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
4831
4832         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4833         (gtk_cell_renderer_text_get_property),
4834         (gtk_cell_renderer_text_set_property), (get_layout): add a
4835         single-paragraph-mode property, use private instance data.
4836         (Fixes #114943, reported by Morten Welinder).
4837
4838 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
4839
4840         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
4841         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
4842         by Matthias Clasen).
4843
4844 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
4845
4846         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
4847         if we set a new stock_id and there was a previous stock_id, unref
4848         the pixbuf (since it was used to renderer the previous stock_id
4849         and stock_id might have been set to NULL now). (Fixes #122966).
4850
4851 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
4852
4853         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
4854
4855         Check that index is not bigger than level array length
4856         also when depth is 1. Now get_iter_first correctly return
4857         FALSE when the model is empty (#129411).
4858
4859 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
4860
4861         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
4862         try to strcmp or strlen if we managed to normalize and casefold
4863         the string correctly. Fixes crashes with non-UTF8 strings.
4864         (#121617, Patch from Tim-Philipp MĂŒller).
4865
4866 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
4867
4868         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
4869         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
4870         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
4871         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
4872         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
4873         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
4874
4875 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
4876
4877         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
4878         (#122727, patch from Kjartan Maraas).
4879
4880 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
4881
4882         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
4883
4884         * gtk/gtktreeview.c (gtk_tree_view_class_init),
4885         (gtk_tree_view_init), (gtk_tree_view_set_property),
4886         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
4887         fixed_height_mode property,
4888         (intialize_fixed_height_mode), (do_validate_rows),
4889         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
4890         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
4891         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
4892         (gtk_tree_view_insert_column): implement fixed height mode,
4893         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
4894         (gtk_tree_view_insert_column_with_attributes),
4895         (gtk_tree_view_insert_column_with_data_func): update docs.
4896
4897         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
4898
4899 2003-12-07  Murray Cumming  <murrayc@usa.net>
4900  
4901         * gtk/gtktreemodel.c:
4902         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
4903         Actually call the default signal handlers instead of calling the
4904         marshallers themselves in an endless loop. These default signal handler
4905         callbacks are not actually set so this is only noticed by gtkmm at
4906         the moment. Bug 123923.
4907
4908 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
4909
4910         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
4911         "volumes-changed" signal.  Added the following methods:
4912                 list_volumes
4913                 volume_free
4914                 volume_get_base_path
4915                 volume_get_is_mounted
4916                 volume_mount
4917                 volume_get_display_name
4918                 volume_render_icon
4919
4920         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
4921         "volumes-changed" signal.
4922         (gtk_file_system_list_volumes): New function.
4923         (gtk_file_system_volume_free): New function.
4924         (gtk_file_system_volume_get_base_path): New function.
4925         (gtk_file_system_volume_get_is_mounted): New function.
4926         (gtk_file_system_volume_mount): New function.
4927         (gtk_file_system_volume_get_display_name): New function.
4928         (gtk_file_system_volume_render_icon): New function.
4929
4930         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
4931         (gtk_file_system_unix_volume_get_base_path): Implement.
4932         (gtk_file_system_unix_volume_get_is_mounted): Implement.
4933         (gtk_file_system_unix_volume_mount): Implement.
4934         (gtk_file_system_unix_volume_get_display_name): Implement.
4935         (gtk_file_system_unix_volume_render_icon): Implement.
4936
4937         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
4938         Added a field for the "volumes-changed" signal connection.
4939         (gtk_file_chooser_default_set_property): Connect to
4940         "volumes-changed" on the file system.
4941         (gtk_file_chooser_default_finalize): Disconnect from
4942         "volumes-changed".
4943
4944         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
4945         function.
4946         (shortcuts_get_index): New helper function.
4947         (shortcuts_insert_path): Can now insert volumes as well as paths.
4948         (shortcuts_append_paths): Don't take is_file_system_root.
4949         (shortcuts_add_volumes): New function.
4950         (shortcuts_append_file_system_roots): Removed.
4951         (create_shortcuts_model): Use shortcuts_add_volumes().
4952         (remove_bookmark_button_clicked_cb): Check that the index is
4953         within range.
4954         (bookmarks_check_add_sensitivity): Take volumes into account.
4955         (shortcuts_get_selected_index): New helper function.
4956         (remove_bookmark_button_clicked_cb): Use
4957         shortcuts_get_selected_index().
4958         (bookmarks_check_remove_sensitivity): Likewise.
4959         (shortcuts_select_func): Likewise.
4960         (shortcuts_row_activated_cb): Handle volumes as well as normal
4961         paths.
4962         (shortcuts_activate_volume): New function.
4963         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
4964         bookmarks_iter fields.
4965         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
4966         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
4967         (remove_bookmark_rows): Removed.
4968         (shortcuts_add_bookmarks): New function; moved most of the code
4969         over from shortcuts_append_bookmarks().
4970         (shortcuts_append_bookmarks): Add the separator node here, and
4971         then call shortcuts_add_bookmarks().
4972
4973 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
4974
4975         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
4976         (G_OS_UNIX/G_OS_WIN32 stuff)
4977
4978 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
4979
4980         Do not interpret distant clicks as double-clicks  (#116541,
4981         Bernhard Walle):
4982         
4983         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
4984         double_click_distance, button_x and button_y.
4985         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
4986
4987         * gdk/gdkdisplay.h: 
4988         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
4989         New function to set the double click distance on a display.
4990
4991         * gdk/gdkevents.c: Take double click distance into account
4992         when generating single, double or triple clicks.
4993
4994         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
4995
4996         * gdk/x11/gdkevents-x11.c: Add the XSetting 
4997         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
4998
4999 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5000
5001         * gtk/gtkdialog.c: Sigh, revert the change.
5002
5003 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
5004
5005         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
5006         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
5007         allows sane behavior for #101293.
5008
5009 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
5010
5011         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
5012         getter and setter gtk_button_[sg]et_alignment(), to set the
5013         alignment of the child.  (#70961, Jody Goldberg)
5014
5015 2003-12-14  Hans Breuer  <hans@breuer.org>
5016
5017         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
5018         similar as the other filesystem placement 'constants' (dynamic
5019         resolving on win32)
5020
5021         * gtk/gtkfilechooserwidget.c : handle file system to win32
5022         renaming here as will
5023         * gtk/gtkfilesystemwin32.c : implement render_icon
5024
5025         * gtk/gtk.def gdk/gdk.def : updated externals
5026
5027         * gdk/win32/gdkdisplay-win32.c : make it compile without
5028         <multimon.h> - i.e. even older sdk
5029
5030         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
5031         with TIMERPROC prototype
5032
5033         * gdk/win32/gdkwindow-win32.c : older msvc does not know
5034         BITMAPV5HEADER (from win xp) either
5035
5036         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
5037         not defined
5038
5039         * tests/testfilechooser.c : recent GLib crashes on 
5040         g_print ("%s", NULL) so avoid this
5041
5042 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5043
5044         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
5045         followed by calls to CloseClipboard(). Add a missing call to
5046         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
5047         API_CALL macro in more places.
5048
5049 2003-12-14  Tor Lillqvist  <tml@iki.fi>
5050
5051         Merge from stable:
5052
5053         * gdk/gdkdisplaymanager.c: Mark default_display static.
5054
5055         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
5056
5057         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
5058         output.
5059
5060         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
5061         --gdk-debug=events. In general, output just one line of debugging
5062         output for each Windows message, plus one line for each GDK event
5063         generated. Indent all lines according to window procedure nesting
5064         level.
5065
5066         (inner_window_procedure): Rename from real_window_procedure.
5067
5068         (find_real_window_for_grabbed_mouse_event): Don't get misled when
5069         the point is in the non-client (decoration) area of the window
5070         returned by WindowFromPoint(). Return the root window in that
5071         case.
5072
5073         (build_pointer_event_state): Test also MK_XBUTTON1 and
5074         MK_XBUTTON2 (buttons 4 and 5).
5075
5076         (synthesize_enter_event): Track the mouse leaving the window in
5077         the event being generated, not the one mentioned in the Windows
5078         message.
5079
5080         (propagate): Test for NULL parent earlier. Improves event
5081         generation from a grabbed pointer. Part of fix for #107320.
5082
5083         (handle_stuff_while_moving_or_resizing): New function, to
5084         dispatch the main loop (once).
5085
5086         (resize_timer_proc): New function, set to be called by an inerval
5087         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
5088
5089         (gdk_event_translate): Drop unused return_exposes parameter.
5090
5091         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
5092
5093         On WM_SYSKEYUP, generate a key release event also for just the Alt
5094         key.
5095
5096         On WM_MOUSELEAVE, generate a leave event of type
5097         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
5098         top-level window, and left the app completely.
5099
5100         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
5101         calls resize_timer_proc() at regular intervals. On
5102         WM_EXITSIZEMOVE, kill the timer.
5103
5104         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
5105         and dispatch the main loop (by calling
5106         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
5107         Herman Bloggs.
5108
5109         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
5110         also wintab messages.
5111
5112         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
5113         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
5114         the window's owner. Fixes #118093, reported by Maxime Romano.
5115
5116 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
5117
5118         * gdk/win32/gdkwindow-win32.[ch]: Implement
5119         gdk_window_set_icon_list() for Win32, with support for big and
5120         small icons and support for alpha-channel icons under Windows
5121         XP. Replaces the previous implementation of gdk_window_set_icon().
5122         (#128762)
5123         
5124 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
5125
5126         * gdk/x11/gdkprivate-x11.h: 
5127         * gdk/x11/gdkx.h: 
5128         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
5129         Rename from _gdk_x11_register_event_type(), added API docs.
5130         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
5131         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
5132         all callers.  (#121471, Bill Haneman)
5133
5134 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
5135
5136         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
5137         of gc is ignored.  (#101983, Sebastian Rittau)
5138
5139 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
5140
5141         A trick for a faster treeview, step 1. Patch to short circuit
5142         _build_tree(), inspired by Jonathan (#80868).
5143
5144         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
5145         flags by default,
5146         (gtk_tree_view_build_tree): don't even try to recurse when the
5147         model says that it is a list, remove flag unsetter,
5148         (gtk_tree_view_set_model): change flag setting logic.
5149
5150         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
5151         propagate whether or not the child model has _IS_LIST set.
5152
5153         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5154         ditto.
5155
5156 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
5157
5158         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
5159         since it broke logical keynav. 
5160         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5161         direction in inverted scrollbars here instead.
5162
5163 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
5164
5165         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5166         "gravity" for RTL mode in a better way: Keep the distance from 
5167         the upper end of the page to the upper bound constant. This also 
5168         fixes problems with the initial position of the viewport in RTL 
5169         mode.  (#129063)
5170         
5171 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
5172
5173         Combo box flipping support.
5174
5175         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5176         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5177         patch from Matthias Clasen),
5178         (gtk_combo_box_popup): fix popup window alignment if there's a
5179         cell view frame visible (#126518, patch from Semion Chichelnitsky).
5180
5181         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5182         (#128348, patch from Semion Chichelnitsky).
5183
5184 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
5185
5186         * examples/gtkdial/gtkdial.c:
5187         * examples/menu/menu.c:
5188         * examples/scribble-xinput/scribble-xinput.c:
5189         * examples/progressbar/progressbar.c:
5190         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5191         in examples. (#129074, Olexiy Avramchenko)
5192         * examples/calendar/Makefile:
5193         * examples/rangewidgets/Makefile:
5194         * examples/menu/Makefile: Allow deprecated functions in
5195         examples which use deprecated widgets.
5196
5197 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
5198
5199         * gdk/gdk.c (gdk_threads_set_lock_functions): 
5200         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5201
5202 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
5203
5204         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
5205         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
5206
5207 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
5208
5209         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
5210         unnecessarily reserve space for arrows in RTL mode.  (#129075,
5211         Semion Chichelnitsky)
5212
5213 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
5214
5215         Changes to allow "no input" windows (#64613):
5216         
5217         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5218         field accept_focus.
5219         
5220         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5221         set it.
5222
5223         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5224         and gtk_window_get_focus() and gtk_window_set_focus().
5225
5226         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
5227         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
5228         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5229         Initialize the accept_focus field to TRUE.
5230
5231         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
5232         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
5233         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
5234         Implementations for the various backends. The Win32 and linux-fb
5235         implementations set the accept_focus field, but don't use it yet 
5236         to actually implement noinput windows. The X implementation updates
5237         the WM_HINTS to select the globally active input model (see the
5238         ICCCM) if accept_focus is FALSE.
5239
5240         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5241         WM_TAKE_FOCUS message if accept_focus is FALSE.
5242         
5243 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
5244
5245         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5246         Added toolbar items for the filter separator and the filter item.
5247         (toolbar_create): Add the filter widgets here.
5248         (filter_create): Renamed from create_filter().  Don't store the
5249         alignment in the impl structure, just return it.
5250         (toolbar_show_filters): New function.
5251         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5252         (gtk_file_chooser_default_remove_filter): Likewise.
5253         (gtk_file_chooser_default_constructor): Don't create the filter
5254         widget here.
5255         (struct _GtkFileChooserDefault): Added a field for a current
5256         folder label.
5257         (gtk_file_chooser_default_constructor): Create the folder label.
5258         (gtk_file_chooser_default_set_current_folder): Set the current
5259         folder label.
5260
5261         * tests/testfilechooser.c (main): Dramatically improved the
5262         usability of the extra widget through careful word choice.
5263
5264 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5265
5266         * gdk/gdk.h: include gdkspawn.h.
5267
5268 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5269
5270         * gdk/linux-fb/gdkspawn-fb.c,
5271           gdk/win32/gdkspawn-win32.c,
5272           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5273         s/gdk_spawn/gdk_spawn_on_screen/.
5274
5275 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5276
5277         Utility functions for multi-screen applications which need
5278         to ensure launched applications appear on a certain screen.
5279         See bug #95897.
5280         
5281         * gdk/gdkspawn.h: header for multi-screen launching
5282         support.
5283         
5284         * gdk/Makefile.am: install gdkspawn.h.
5285         
5286         * gdk/x11/Makefile.am:
5287         * gdk/x11/gdkspawn-x11.c:
5288         (gdk_spawn_make_environment_for_screen): private function
5289         to create an environment vector with DISPLAY set appropriately
5290         for the screen.
5291         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5292         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5293         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5294         
5295         * gdk/linux-fb/Makefile.am,
5296           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5297         
5298         * gdk/win32/Makefile.am,
5299           gdk/win32/gdkspawn-win32.c: win32 impl.
5300
5301 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
5302
5303         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5304         rather than "Username's Home" (#125964).
5305         (shortcuts_selection_changed_cb): New callback, check the
5306         sensitivity of the Remove Bookmark button at the right time.
5307         (shortcuts_row_activated_cb): It is not necessary to check the
5308         sensitivity here.
5309
5310 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
5311
5312         Improve the GDK API for dealing with group leaders (#119375):
5313         
5314         * gdk/gdkwindow.h: 
5315         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
5316         get the group leader of a toplevel window as a GdkWindow.
5317
5318         * gdk/gdkdisplay.h: 
5319         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
5320         function to get the default group leader as a GdkWindow.
5321
5322         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5323         the GdkWindow of the default group leader.
5324         
5325         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5326         for the default group leader.
5327
5328 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
5329
5330         * gdk/gdkkeysyms.h:
5331         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5332         Ukrainian_GHE_WITH_UPTURN. (#128529)
5333
5334 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
5335
5336         * gtk/gtkfilechooserdefault.c:
5337         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5338         behavior of the GtkFileSelection to determine selected paths in
5339         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5340
5341 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
5342
5343         * gtk/gtkfilechooserdefault.c
5344         (gtk_file_chooser_default_get_paths): Don't declare the closure
5345         struct twice.
5346         (get_paths_foreach): Likewise.
5347
5348 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
5349
5350         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
5351
5352 2003-12-08  Tor Lillqvist  <tml@iki.fi>
5353
5354         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5355         with MSVC and old headers. (#126933, John Ehresman)
5356
5357 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
5358          
5359         * === Released 2.3.1 ===
5360
5361         * NEWS: Updates for 2.3.1
5362
5363         * configure.in: Version 2.3.1, interface age 0, binary age 301.
5364
5365         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5366         Rename from gtk_menu_item_real_can_activate_accel() to
5367         match GTK+ convention, improve comment.
5368
5369         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5370         can ::can-activate-accel signal.
5371
5372         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5373         in comment.
5374
5375         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
5376         up comment.
5377         
5378         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5379         into the .c file.
5380
5381 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
5382
5383         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5384         missing 'else'. (#128816, Jorn Baayen)
5385
5386 2003-12-02  Michael Meeks  <michael@ximian.com>
5387
5388         Based on a patch by Martin Kretzschmar; #122448
5389         
5390         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5391         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5392         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5393         function pointers. Deprecate the global gdk_threads_mutex variable.
5394         
5395         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5396         extracted from GTK_THREADS_ENTER/LEAVE macros.
5397         (gdk_threads_init): init gtk_threads_[un]lock if not set.
5398         (gdk_threads_set_lock_functions): impl.
5399
5400         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5401
5402 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
5403
5404         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5405         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
5406         Gonzalez)
5407
5408 2003-12-07  Tor Lillqvist  <tml@iki.fi>
5409
5410         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5411         return value from SendMessage(WM_SETICON). That is the old
5412         icon. Fixes GDI resource leak. (#128559, Tim Evans)
5413
5414         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5415         have a pointer grab active with a grab cursor set, destroy that
5416         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5417
5418 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
5419
5420         * configure.in: Added Thai (th) to ALL_LINGUAS.
5421
5422 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
5423
5424         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5425         RTL flipping for GtkAlignment.  (#127585)
5426
5427 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
5428
5429         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
5430         popup window when in RTL mode.  (#127578)
5431
5432 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
5433
5434         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5435         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5436         before doing anything to prevent garbage returns.
5437
5438 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
5439
5440         * gtk/gtkviewport.c: Implement RTL flipping for 
5441         GtkViewport: Adjust the "gravity" when resizing
5442         This is a bit flickery in RTL mode.  (#107526)
5443
5444 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
5445
5446         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
5447         GtkScrolledWindow: the vertical scrollbar shows up on the left
5448         side in RTL mode.  (#107526)
5449
5450 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
5451
5452         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5453         tabs displayed at the top/bottom are rearranged, and tabs on
5454         the left/right are displayed at the opposite edge.  (#96630)
5455
5456 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
5457
5458         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5459         gtk_label_set_attributes() take NULL. See bug #128517.
5460
5461 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
5462
5463         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5464         the in_change flag.
5465         (completion_idle_callback): Use a temporary list store and re-set
5466         it on the completion rather than modifying the old one.  We are
5467         re-reading the folder anyway, and this gets rid of non-atomicity
5468         problems.
5469
5470 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5471
5472         Decouple impl->current_folder from the selection in the folder
5473         tree.  This is so that going to /home/federico/.foo (e.g. from a
5474         bookmark) will work even if show_hidden == FALSE.  The folder tree
5475         needs to be fixed in this case to show such folders explicitly.
5476
5477         * gtk/gtkfilechooserdefault.c
5478         (gtk_file_chooser_default_set_current_folder): When changing
5479         folders, do the entry and list model work here, instead of
5480         tree_selection_changed().
5481         (struct _GtkFileChooserDefault): Added a changing_folder flag
5482         again, dum de dum.
5483         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5484
5485 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
5486
5487         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
5488         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
5489
5490 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5491
5492         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5493         bookmarks buttons with the location entry.
5494
5495         * gtk/gtkfilechooserdefault.c
5496         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5497         bookmarks buttons and the location entry.
5498
5499 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5500
5501         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5502         shortcuts tree as a drag destination.
5503         (shortcuts_drag_data_received_cb): New callback.
5504         (get_file_info): Also fetch information on whether the file is a folder.
5505         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5506         (error_could_not_add_bookmark_dialog): New function.
5507         (shortcuts_add_bookmark_from_path): New helper function.
5508         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5509         (shortcuts_row_activated): We no longer need the changing_folder flag.
5510         (struct _GtkFileChooserDefault): Likewise.
5511
5512 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5513
5514         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5515         disappearing placeholders that are still visible.
5516
5517         * gtk/gtktoolbar.c: formatting fixes
5518
5519         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
5520         disappearing, for placeholders that are going to disappear.
5521
5522         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
5523
5524 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
5525
5526         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
5527         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5528         Patch from <chinen@jp.ibm.com> to handle RTL support for column
5529         resizers, #127874
5530
5531 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
5532
5533         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
5534         Don't use freed memory.  (#127698, Taavi Talvik) 
5535
5536 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
5537
5538         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
5539
5540 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
5541
5542         * gtk/gtkuimanager.c: Remove debug define.
5543
5544 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
5545
5546         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
5547         and the attach widget.
5548
5549         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
5550         sensitivity and the parent menu.
5551
5552         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
5553         checks whether accelerators may activate a widget. the default handler
5554         demands the widget be sensitive and visible+viewable.
5555
5556         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
5557
5558 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
5559
5560         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
5561         popup menus.  (#127227)
5562
5563 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
5564
5565         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
5566
5567 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5568
5569         * gtk/gtkradiotoolbutton.[ch]
5570         (gtk_radio_tool_button_new_from_widget): Make this function take a
5571         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
5572         Cumming)
5573
5574 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5575
5576         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
5577
5578 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5579
5580         * gtk/gtktoolbar.c: remove variable
5581         n_overflowed_menu_items_when_dnd_started
5582
5583 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5584
5585         Rework sliding algorithm.
5586         - No more weird jumping when items are dragged off and added to
5587         the toolbar,
5588         - More natural item movement
5589
5590         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
5591         function is now responsible for calculating intermediate positions
5592         during item sliding. It is also responsible for starting sliding
5593         if items disappear.  Also turn off expanding when there is an
5594         overflow menu.
5595         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
5596         (slide_idle_handler): New function. All the sliding is now done by
5597         gtk_toolbar_size_allocate(), so the idle handler now just checks
5598         if there is more sliding to be done.
5599         (compute_intermediate_allocation, position): new functions
5600         calculating intermediate steps in the slide animations. The new
5601         animation algorithm uses a constant speed instead of a constant
5602         must-be-finished-within time.
5603         (struct _ToolbarContent): use 
5604         GtkAllocation goal_allocation; and 
5605         GtkAllocation start_allocation; instead of 
5606         gint start/goal_width;
5607
5608         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
5609         documentation
5610
5611 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
5612
5613         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
5614         positioning Xinerama-aware.  (#127332)
5615
5616 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
5617
5618         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
5619         boundaries visible in fake Xinerama mode.
5620
5621 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
5622
5623         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
5624         for the gtk_widget_hide() call.
5625
5626 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
5627
5628         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
5629         from David Hampton to fix sorting on booleans.
5630
5631 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5632
5633         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
5634         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
5635         by Frederic Crozat).
5636
5637 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
5638
5639         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
5640
5641 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5642
5643         Fixes to problems reported by Iain Holmes:
5644
5645         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
5646         throw up an error dialog if the desktop doesn't exist.
5647         (error_message): Handle the case where there is no real toplevel
5648
5649         yet.
5650         (list_model_filter_func): Always let folders pass through (patch
5651         by Dave Malcolm).
5652
5653 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
5654
5655         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
5656         to a somewhat more logical place,
5657         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
5658
5659 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
5660
5661         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
5662         the popup when it is visible, popdown when there are less chars
5663         than the minimum key length in the entry,
5664         (gtk_entry_completion_changed): popdown when the entry is empty.
5665
5666         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
5667         size request of the vscrollbar to (-1, 0), to get a nicely sized
5668         completion treeview (Fixes #126573, reported by Piers Cornwell),
5669         (_gtk_entry_completion_resize_popup): show/hide the action_view
5670         based on items.
5671
5672 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5673
5674         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
5675         off the dialog's separator (thanks to Iain Holmes).
5676
5677 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5678
5679         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
5680         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
5681         on items that have a submenu. (#120104).
5682
5683 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5684
5685         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
5686         "ItemState" field indicating the overflowed-ness etc. of the item.
5687         (gtk_toolbar_size_allocate): update the field here.
5688
5689 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5690
5691         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
5692         to the alignment.  Use the HIG-specified spacing between the
5693         filter label and the combo.
5694         (create_filename_entry): Use HIG-specified spacing between the
5695         location label and the entry.
5696         (gtk_file_chooser_default_constructor): Don't use vertical padding
5697         around the filename entry.
5698
5699 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5700
5701         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5702         render_icon virtual method.
5703
5704         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
5705
5706         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
5707         Implement as a stub for now.
5708
5709         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
5710         gtk_file_system_render_icon().
5711         (list_icon_data_func): Likewise.
5712         (toolbar_create): Set the toolbar style to icons only.
5713
5714         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
5715         Fix doc comments.
5716
5717 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
5718
5719         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
5720         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
5721
5722 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
5723
5724         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
5725         only unselect all items if the treeview has focus. (Fixes bug
5726         reported by Marco Pesenti Gritti).
5727
5728 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
5729
5730         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
5731         number of actions is "matches + actions - 1". (Fixes #126572).
5732
5733 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
5734
5735         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
5736         mem leaks (#119435).
5737
5738 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
5739
5740         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
5741         try to fetch the child back, since we do know that it is already
5742         gone by now (#126493, Marco Pesenti Gritti).
5743
5744 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
5745
5746         Fixes based on comments from Owen Taylor, #125264.
5747
5748         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
5749         variable,
5750         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
5751         a resize,
5752         (gtk_cell_view_get_size_of_row): new function,
5753         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
5754         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
5755         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
5756         s/cellview/cell_view/ in the function definitions, so they match
5757         with the header file.
5758
5759         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
5760         flag again (:, and use gtk_cell_view_get_size_of_row instead of
5761         the measurer, remove _set_size_request call,
5762         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
5763         instead of the measurer,
5764         (gtk_combo_box_style_set): queue a resize,
5765         (gtk_combo_box_size_request): update of _remeasure call,
5766         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
5767         (gtk_combo_box_cell_layout_pack_end),
5768         (gtk_combo_box_cell_layout_clear),
5769         (gtk_combo_box_set_model): get rid of the measurer,
5770         (gtk_combo_box_cell_layout_add_attribute),
5771         (gtk_combo_box_cell_layout_set_cell_data_func),
5772         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
5773         resize instead of calling _remeasure.
5774
5775 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
5776
5777         * gdk-pixbuf/Makefile.am
5778         * modules/input/Makefile.am: Use install-data-hook for
5779         gdk-pixbuf.loaders and gtk.immodules install generation targets.
5780         Fixes #112806.
5781
5782         * gtk/gtkexpander.h: Apply missing declarations from #124449.
5783
5784 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
5785
5786         Fix for #119555, Peter Zelezny:
5787         
5788         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
5789         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
5790         by removing the _ prefix. 
5791         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
5792         gdk/gdkwindow.c: Adjust all callers.
5793
5794 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
5795
5796         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
5797         the action is sensitive.  (#127187, Christian Persch)
5798
5799 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
5800
5801         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
5802
5803 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
5804
5805         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
5806
5807         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
5808         mapped, else resize_popup.
5809
5810         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
5811         (_gtk_entry_completion_popup): moved all popup resizing code to
5812         _gtk_entry_completion_resize_popup, and show the window when there
5813         are more than zero items in the completion list again (sigh).
5814
5815 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
5816
5817         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
5818         "use_markup" property. See bug #124449.
5819
5820         * gtk/gtkexpander.c:
5821         (gtk_expander_class_init),
5822         (gtk_expander_init), (gtk_expander_set_property),
5823         (gtk_expander_get_property), (gtk_expander_set_label),
5824         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
5825         Add a "use_markup" property and use it when creating the
5826         child label.
5827
5828 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
5829
5830         Temporary size requisition fix. Will fix it for real tonight.
5831
5832         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
5833         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
5834         a good width for the child,
5835         (gtk_combo_box_cell_layout_add_attribute),
5836         (gtk_combo_box_set_cell_data_func),
5837         (gtk_combo_box_cell_layout_clear_attributes): update.
5838
5839 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
5840
5841         Fixes #124373, Murray Cumming.
5842
5843         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
5844         is no longer construct only,
5845         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
5846         (gtk_combo_box_menu_fill): new functions,
5847         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
5848         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
5849         (gtk_combo_box_list_destroy): updated,
5850         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
5851         functions,
5852         (gtk_combo_box_set_model): is now public, updated,
5853         (gtk_combo_box_get_model): small update.
5854
5855         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
5856         text_column property is no longer construct only,
5857         (gtk_combo_box_entry_set_text_column): now public,
5858         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
5859         new/changed functions.
5860
5861         * tests/testcombo.c: updated.
5862
5863 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
5864
5865         Reinstate fixes for (#124212, Marco Pesenti Gritti):
5866         
5867         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
5868         warnings for popups.
5869         (_gtk_menu_is_empty): Return FALSE for non-menus.
5870
5871 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
5872
5873         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
5874         gtk_cell_view_cell_layout_clear instead of trying to free the
5875         structure ourselves here. (#125726, Morten Welinder).
5876
5877 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
5878
5879         * gtk/gtkfilechooser.[hc]: 
5880         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
5881         confuse gtk-doc.
5882
5883 2003-11-15  Hans Breuer  <hans@breuer.org>
5884
5885         * gdk/makefile.msc gdk/gdk.def 
5886             gtk/gtk.def gtk/makefile.msc.in : updated
5887         * tests/makefile.msc : added all the new tests
5888
5889         * gtk/gtkfilefilter.c(finalize) : initialize filter
5890         from object not from itself
5891
5892         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
5893         modified as less as posible to have aworking implementation
5894         on win32. There maybe the desire to merge the unchanged pats into
5895         a common base class.
5896         Also implemented a simple glib based bookmark handling, which
5897         is currently missing in gtkfilesystemunix.[hc] but can be copied
5898         over there.
5899         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
5900
5901         * gdk/win32/gdkwindow-win32.c : implement 
5902         gdk_window_set_keep_above() and gdk_window_set_keep_below()
5903
5904         * tests/testmerge.c : don't include unistd.h unconditionally,
5905         #define STDOUT_FILENO if it isn't defined
5906
5907         * tests/testfilechooser.c : make it compile on win32
5908
5909 2003-11-15  Tor Lillqvist  <tml@iki.fi>
5910
5911         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
5912         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
5913
5914 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
5915
5916         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
5917
5918 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
5919
5920         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
5921         GTK_DATADIR/{icons,pixmaps} instead of 
5922         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
5923
5924 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
5925
5926         Changes to improve menu positioning on Xinerama (#108328, #126150):
5927         
5928         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
5929         window of the menuitem to determine the monitor. This fixes some
5930
5931         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
5932         to store the monitor on which the menu is to be positioned.
5933
5934         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
5935         in the GtkMenuPrivate struct and fetch the monitor geometry after
5936         calling the position_func, in case it has been changed.
5937
5938         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
5939         to be used in GtkMenuPositionFunc implementations for setting
5940         the monitor_num field in GtkMenuPrivate.
5941
5942         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
5943         gtk_menu_set_monitor.
5944
5945 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
5946
5947         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
5948         label for the empty list. String change.  (#95446, Tomas Ă–gren)
5949
5950 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
5951
5952         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
5953         the definition of the values.  (#123361, Marco Pesenti Gritti)
5954
5955 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
5956
5957         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
5958         (#122941, Egmont Koblinger)
5959
5960 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
5961
5962         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
5963         opacity entry widget. Change tooltip for opacity widgets. (#126426)
5964
5965 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
5966
5967         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
5968         affect window menu position when popped from keyboard. (#102660)
5969
5970 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5971
5972         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
5973         are using the old API, make all items "is_important". That way
5974         BOTH_HORIZ will continue to show both icon and label in old API
5975         mode.
5976
5977 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
5978
5979         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
5980         Remember the new value in all cases.  (#126276, Damon Chaplin)
5981
5982 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
5983
5984         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
5985         functions with the toplevel as argument.
5986
5987         * demos/gtk-demo/geninclude.pl.in: Change the signature
5988         of GDoDemoFunc to take a widget argument
5989
5990         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
5991         * demos/gtk-demo/tree_store.c (do_tree_store): 
5992         * demos/gtk-demo/textview.c (do_textview): 
5993         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
5994         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
5995         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
5996         * demos/gtk-demo/panes.c (do_panes): 
5997         * demos/gtk-demo/menus.c (do_menus): 
5998         * demos/gtk-demo/list_store.c (do_list_store): 
5999         * demos/gtk-demo/images.c (do_images): 
6000         * demos/gtk-demo/hypertext.c (do_hypertext): 
6001         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
6002         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
6003         * demos/gtk-demo/dialog.c (do_dialog): 
6004         * demos/gtk-demo/colorsel.c (do_colorsel): 
6005         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
6006         * demos/gtk-demo/button_box.c (do_button_box): 
6007         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
6008         as argument, and make new windows or dialogs appear on the
6009         same screen.  (#80388)
6010
6011 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
6012
6013         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
6014         visible-window default to TRUE, as documented and 
6015         implemented. (#126270 Damon Chaplin)
6016
6017 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
6018
6019         * gtk/gtkicontheme.c: 
6020         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
6021         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
6022         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
6023         2.4 additions.
6024
6025 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
6026
6027         Changing GtkFileChooserEntry to use GtkEntryCompletion.
6028
6029         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
6030         a GtkListStore for the completion list.  Create a
6031         GtkEntryCompletion and attach it to the chooser entry.
6032         (gtk_file_chooser_entry_finalize): Unref the completion store.
6033         (completion_match_func): New callback for the GtkEntryCompletion.
6034         (completion_idle_callback): Fill the completion store with filenames.
6035
6036 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
6037
6038         * gtk/gtkwindow.c (gtk_window_set_role): 
6039         * gtk/gtkwindow.c (gtk_window_set_title): 
6040         * gtk/gtkwidget.c (gtk_widget_set_name): 
6041         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
6042         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
6043         safe for self-assignment.  (#122745, Soeren Sandmann)
6044
6045 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
6046
6047         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
6048         (#126369, Olexiy Avramchenko)
6049
6050 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
6051
6052         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
6053         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
6054         consistency of titles.  (#126193, Damon Chaplin)
6055
6056 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
6057
6058         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
6059         menus to be transient for the toplevel they were torn off from.
6060         (gtk_menu_get_toplevel): Auxiliary function to find the
6061         toplevel of a menu.  (#54775, Jon-Kare Hellan)
6062
6063 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
6064
6065         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
6066         min-position and max-position.  (#58431, Padraig O'Briain)
6067
6068 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
6069
6070         * gtk/gtkcolorsel.c (update_color): 
6071         (make_label_spinbutton): 
6072         (adjustment_changed): Change the ranges for Saturation and
6073         Value to be 0-100 instead of 0-255, since these axes of HSV
6074         are usually expressed in percent.  (#121519, Gregory Merchan)
6075
6076 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
6077
6078         * docs/faq/gtk-faq.sgml: More 2.x updates
6079
6080 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
6081
6082         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
6083         pkg-config command error, update copyright.
6084
6085 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6086
6087         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
6088         well.  Use a helper function.
6089         (shortcuts_append_home): Display an error box if necessary.
6090         (shortcuts_append_desktop): Likewise.
6091         (add_bookmark_button_clicked_cb): Likewise.
6092         (gtk_file_chooser_default_select_path): Likewise.
6093         (entry_activate): Likewise.
6094         (shortcuts_append_paths): New helper function.
6095         (shortcuts_append_file_system_roots): Use
6096         shortcuts_append_paths().
6097         (shortcuts_append_bookmarks): Likewise.
6098
6099 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
6100
6101         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
6102         menu is NULL.
6103         (update_smart_separators): Remove some unneeded ifs.
6104
6105 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
6106
6107         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6108         these usable in C++. Forgot this file in my Oct 11 commit.
6109
6110 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6111
6112         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
6113         icon to the "Add bookmark" button.
6114
6115         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
6116         * gtk/gtkfilesystemmodel.c: Likewise.
6117         * gtk/gtkfilechooser.c: Likewise.
6118         * gtk/gtkfilechooserdefault.c: Likewise.
6119
6120 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
6121
6122         * gdk/gdk.c: 
6123         * gdk/gdkinternals.h: 
6124         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
6125         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
6126         Xinerama mode when no actual Xinerama setup is found. 
6127
6128 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6129
6130         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
6131         (create_shortcuts_tree): Don't call the above.
6132         (bookmarks_changed_cb): Likewise.
6133         (tree_selection_changed): Unselect everything from the shortcuts
6134         list.  This is the behavior that Mac OS has.
6135         (toolbar_add_item): Return the item.
6136         (toolbar_create): Store the up_button in the impl structure.
6137         (toolbar_check_sensitivity): New function to set the sensitivity
6138         of the "Up" button in the toolbar.
6139         (tree_selection_changed): Call toolbar_check_sensitivity().
6140
6141 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
6142
6143         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
6144         not set a border width for the toplevel container.
6145         (toolbar_create): New function; create a simple toolbar for the
6146         file chooser.
6147         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
6148         the table, as per the HIG.
6149         (gtk_file_chooser_default_init): Likewise, for the default
6150         implementation's vbox.
6151
6152         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
6153         note that NULL is a valid return value for the parent path.
6154
6155 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6156
6157         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
6158         Change on activation, not selection change (temporary
6159         workaround for #125955, needed for keynav, likely
6160         the right UI anyways.)
6161
6162         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
6163         Don't allow the separator node to be selected.
6164
6165         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6166         Set the focus chain so that the entry gets focused first.
6167         (Not really right after initial focusing, maybe we
6168         should just have a gtk_file_chooser_focus_entry() that
6169         we call from gtk_file_chooser_dialog on creation.)
6170
6171 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
6172
6173         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6174         residual call to gtk_window_get_private().
6175
6176 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
6177
6178         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6179         into GtkWindowPrivate structure, fixing ABI breakage
6180         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6181         to instance-private-data.
6182
6183 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6184
6185         * gtk/gtktoolbar.c (get_item_requisition): delete this function
6186         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6187         instead of re-calculating for each item.
6188         (gtk_toolbar_size_allocate): Update comments
6189
6190 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6191
6192         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6193         placeholders when include_internals is TRUE.
6194
6195 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6196
6197         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6198         item 0 is a placeholder. (#125826)
6199         * tests/testtoolbar.c: add an assertion that 
6200         gtk_toolbar_get_nth_item (0) != NULL
6201
6202 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6203
6204         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6205         logical == 0.(#125826)
6206
6207 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6208
6209         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6210         return the index of a real item.
6211         (get_nth_item) assert that the returned items is not a
6212         placeholder.  (#125826, Marco Pesenti Gritti).
6213         
6214 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
6215
6216         * gtk/gtkcellrendererseptext.c
6217         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6218         text is NULL, rather than also doing it if it is an empty string.
6219
6220 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
6221
6222         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6223         gtk_message_dialog_new_with_format): Allow NULL
6224         for message_format, as described in the docs and
6225         as worked previously. (#125759, Richard Hult)
6226
6227         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6228         Use g_markup_vprintf_escaped() to escape arguments.
6229
6230         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6231         so there is some way to set literal markup.
6232
6233 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
6234  
6235         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6236         the call to gdk_error_trap_pop() to the right place,
6237         fixing a problem where we'd pop() too many times 
6238         when bailing out. (#123302, Thomas Leonard)
6239         
6240 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
6241
6242         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
6243         Fix infinite recursion. (#125679, Christian Persch)
6244
6245 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
6246
6247         * docs/faq/gtk-faq.sgml: further 2.x updates:
6248         mirrors,compiling,g_main_context_iteration
6249
6250 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6251
6252         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6253         function; remove gtk_toolbar_highlight_drop_location() and
6254         gtk_toolbar_unhighlight_drop_location().
6255
6256         Also fix bug where the number of overflowed items were miscounted.
6257
6258 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
6259
6260         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6261         some accidentally committed duplicate code.
6262
6263 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
6264
6265         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6266
6267 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
6268
6269         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
6270         gtk_has_toplevel_focus): Add getters corresponding to
6271         the is_active and has_toplevel_focus properties.
6272         (#122531)
6273
6274 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
6275
6276         * gtk/gtkexpander.c:
6277         (gtk_expander_class_init): hook up the destroy handler.
6278         (gtk_expander_destroy), (gtk_expander_unrealize):
6279         remove the expand/collapse timeout on destroy instead
6280         of unrealize to avoid leaving the expander in a inconsistent
6281         state when unrealizing during animation.
6282         (gtk_expander_start_animation): remove realized check.
6283         (gtk_expander_set_expanded): if the widget isn't realized,
6284         expand immediately.
6285
6286 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
6287
6288         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6289         do nothing when recipient is NULL, as described in the
6290         doc comment. (#123107, Thomas Leonard)
6291
6292 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
6293
6294         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6295         rewrite docs, mention memory management for the return
6296         value. (Partly addresses #125549, Michael Natterer)
6297
6298 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
6299
6300         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6301         Change index to filter_index to fix compilation error.
6302
6303         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6304
6305 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
6306
6307         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6308         we have RandR support, for XRRUpdateConfiguration declaration.
6309
6310         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6311         declaration.
6312
6313         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6314         length a gsize variable, since that's what g_file_get_contents()
6315         expects.
6316
6317 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
6318
6319         * NEWS: Fix attribution for above/below EWMH work.
6320
6321 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
6322
6323         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
6324         as a construct-only property.  (#125475, Murray Cumming)
6325
6326 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6327
6328         Fix bug 116297 and 125472
6329         
6330         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6331         this function take an index and a GtkToolItem.
6332
6333         * tests/testtoolbar.c (main): Make "Show Arrow" default to
6334         true. Make one of the separators !draw and expand.
6335         Update for new highlight_drop_location() API.
6336
6337         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6338
6339         * gtk/gtktoolbar.h: Formatting fixes.
6340
6341         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6342         separator tool items to expand.
6343         (logical_to_physical, physical_to_logical): Fix off-by-one errors
6344         (Fix #125472, Marco Pesenti Gritti)
6345
6346         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6347         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6348         return FALSE, not TRUE.
6349         (gtk_separator_too_item_{set|get}_property,
6350         (gtk_separator_tool_item_{set|get}_draw): new functions
6351
6352 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
6353
6354         * === Released 2.3.0 ===
6355
6356         * configure.in: Remove a stray comma.
6357
6358         * README.in: Fix a few notes about Xft 1 and pango-1.0.
6359
6360         * NEWS: Finish updates for 2.3.0.
6361
6362         * po/Makefile.in.in: Update to latest GLib version.
6363
6364 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
6365
6366         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6367         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6368         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6369         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6370         Sandmann).
6371
6372 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
6373
6374         * gtk/gtktreemodelfilter.h: add padding to the class structure.
6375
6376 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
6377
6378         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6379         (gtk_file_chooser_remove_filter): Likewise.
6380         (gtk_file_chooser_select_all): Added docs.
6381         (gtk_file_chooser_unselect_all): Likewise.
6382
6383         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6384
6385         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6386
6387 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
6388
6389         * gtk/gtkfilefilter.c: 
6390         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6391
6392 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
6393
6394         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6395
6396 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
6397
6398         * NEWS: Remove a few duplicates, group the menu changes.
6399
6400 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
6401
6402         * NEWS: Updates for 2.3.0; changed header to match the style we used
6403         for 2.1.0.
6404
6405 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
6406
6407         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6408         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
6409
6410 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
6411
6412         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6413         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6414         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6415
6416 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6417
6418         * NEWS: Partial update for 2.3.0.
6419
6420 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
6421
6422         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6423         GtkComboBox.
6424
6425 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
6426
6427         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
6428         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6429         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6430         Basic framework for the new file selector widget.
6431
6432         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
6433         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6434         Initial implementation of the GtkFileChooser user interface.
6435
6436         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6437         for Unix files.
6438
6439         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6440         for freedesktop.org MIME system on Unix.
6441
6442         * tests/testfilechooser.c: Test program for GtkFileChooser
6443
6444         * tests/prop-editor.c: Add support for properties on interfaces.
6445
6446 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6447
6448         * demos/gtk-demo/menus.c (do_menus): Fix some unused
6449         variables.
6450
6451         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6452         variable warning.
6453
6454 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
6455
6456         * NEWS: Partial update for 2.3.0.
6457
6458 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
6459
6460         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6461         ctrl_pressed and shift_pressed according to the current event
6462         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6463
6464 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
6465
6466         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6467         timeout when the user pressed on Enter/ESC. Fixes the bug where the
6468         completion popup popped up after the user pressed on Enter (which is
6469         just weird). Reported by the Epiphany people (all of them).
6470
6471 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6472
6473         Add support for OS X like sliding of toolbar items during drag and
6474         drop, (#110919, Dave Bordoley)
6475
6476         Make dnd highlighting the responsibility of the
6477         application. (Fixes #116298, Owen Taylor)
6478
6479         * gtk/gtktoolbar.h: Add prototypes for new API.
6480         
6481         * gtk/gtktoolbar.c
6482         (physical_to_logical, logical_to_physical): new functions
6483         converting between "position including placeholders" and "position
6484         excluding placeholders".
6485         (gtk_toolbar_class_init): remove drag_leave and drag_motion
6486         handlers
6487         (struct _ToolbarContent): new struct containing information
6488         related to toolbar items.
6489         (gtk_toolbar_highlight_drop_location): new public function
6490         (gtk_toolbar_unhighlight_drop_location): new public function
6491         
6492         * tests/testtoolbar.c
6493         (toolbar_drag_motion, toolbar_drag_leave): new functions
6494         (main): connect to dnd signals.  Make the "New" item expand to
6495         make drag and drop more exciting.
6496
6497 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
6498
6499         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6500         _set_active, not _set_active_item.
6501
6502 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
6503
6504         * gtk/gtkcombobox.h: add padding to the class structure.
6505         * gtk/gtkcomboboxentry.h: ditto.
6506         * gtk/gtkentrycompletion.h: ditto.
6507
6508 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
6509
6510         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6511         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6512         value and what it means.
6513
6514         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6515         item to -1 (default),
6516         (gtk_combo_box_entry_active_changed): do nothing when the index is
6517         < 0.
6518
6519 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
6520
6521         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
6522         to set the active row by iter.
6523
6524         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
6525         to get the active row by iter.
6526
6527 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
6528
6529         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
6530         operations on windows if the tree view is not mapped.
6531         (gtk_tree_view_button_press): Compare equal types of pointers, not
6532         GtkWidget* vs. GtkTreeView*.
6533
6534 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
6535
6536         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
6537         the reset of first_sel_changed, as after the first popup the treeview
6538         will always have a row selected and will thus not focus_to_cursor.
6539
6540         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
6541         whether the keyval should move the completion selection cursor (used
6542         to avoid ending up with extreme cluttered code), also added
6543         all KP_ equivalents of the keys here,
6544         (gtk_entry_completion_key_press): Keynav tweaks based on comments
6545         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
6546         as possible current selection, implement Home/End keys, modified
6547         the down key to stop cycling. Maybe page up/down should be implemented
6548         at some later time.
6549
6550 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
6551
6552         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
6553         as documented when pixmap or mask is NULL.  (#124081) 
6554
6555 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
6556
6557         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
6558         I was adding the signal block/unblock code. Oops. (Noticed by
6559         Marco Pesenti Gritti).
6560
6561 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
6562
6563         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
6564         (set_interp_type), (main): port over from option menu to GtkComboBox.
6565
6566 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
6567
6568         * tests/testmenus.c: Still uses option menus, so turn off
6569         GTK_DISABLE_DEPRECATED.
6570
6571 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
6572
6573         * gtk/gtkalignment.[hc]: 
6574         * gtk/gtkcombobox.[hc]: 
6575         * gtk/gtkcomboboxentry.[hc]: 
6576         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
6577         from header to implementation.
6578
6579 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
6580
6581         * tests/testtreeview.c: 
6582         * demos/testpixbuf-scale.c: 
6583         * tests/prop-editor.c: These files still use option menus,
6584         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
6585
6586 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
6587
6588         * gtk/gtkactiongroup.h: 
6589         * gtk/gtkaction.h: 
6590         * gtk/gtkradioaction.h: 
6591         * gtk/gtkradiotoolbutton.h: 
6592         * gtk/gtkseparatortoolitem.h: 
6593         * gtk/gtktoggleaction.h: 
6594         * gtk/gtktoolitem.h: 
6595         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6596         these usable in C++.  (#124351, Murray Cumming)
6597
6598 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
6599
6600         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
6601         non-NULL before accessing it. Oops.
6602
6603 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
6604
6605         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
6606         (gtk_entry_completion_insert_action_text),
6607         (gtk_entry_completion_insert_action_markup): the gchar* parameters
6608         should be const (pointed out by both Marco Pesenti Gritti and
6609         Murray Cumming (#124356).
6610
6611 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
6612
6613         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
6614         child list mode, allocate the height allocation->height to the
6615         button instead of the height requested by the button. (Tiny
6616         size allocation screwup noticed by Macro Pesenti Gritti).
6617
6618 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
6619
6620         Fixes based on comments from Marco Pesenti Gritti.
6621
6622         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
6623         signal handler, avoids the completion popup to popup when text is
6624         set programmatically in most cases (we actually have to handle this
6625         in the _editable functions as well, but that will break popping up
6626         when the user actually typed something :),
6627         (gtk_entry_completion_key_press): when handling enter, bail out
6628         when nothing has been selected,
6629         (gtk_entry_completion_changed): don't popdown when the entry content
6630         changed.
6631
6632         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
6633         (gtk_entry_completion_selected_changed): unselect_all on the
6634         first selected changed signal. Avoids having a default row selected,
6635         (_gtk_entry_completion_popup): don't select the first row by default.
6636
6637         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
6638         first_sel_changed field.
6639
6640 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
6641
6642         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
6643         in the intro (again).
6644
6645 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
6646
6647         Fixes for (#124212, Marco Pesenti Gritti):
6648         
6649         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6650         warnings for popups.
6651         (_gtk_menu_is_empty): Return FALSE for non-menus.
6652
6653 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
6654
6655         * gtk/gtkcombo.h: Deprecate.
6656         * gtk/gtkoptionmenu.h: Ditto.
6657
6658         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
6659         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
6660         needs some work on requesting enough size when taking the items in
6661         the list into account.
6662
6663         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
6664         deprecated" guards.
6665         * gtk/gtkinputdialog.c: ditto.
6666         * gtk/gtkitemfactory.c: ditto.
6667         * gtk/gtkoptionmenu.c: ditto.
6668
6669         * demos/gtk-demo/menus.c: remove the option menu.
6670         * demos/gtk-demo/sizegroup.c: replace the option menus with
6671         GtkComboBox.
6672         * demos/gtk-demo/textview.c: ditto.
6673         (A general GtkComboBox demo will be added later on).
6674
6675 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
6676
6677         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
6678         callback to propertly report radio actions.
6679
6680         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
6681
6682 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
6683
6684         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
6685         version in in the right field of the _XEMBED_INFO property.  
6686         (#123885, Denis Mikhalkin)
6687
6688 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
6689
6690         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
6691         the child if we have one.
6692
6693         (gtk_expander_button_release): use
6694         gtk_widget_activate instead.
6695
6696 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
6697
6698         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
6699         "right_attach" with a capital.  (#123945, Christian Rose)
6700
6701 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
6702
6703         * tests/testsocket.c (child_read_watch): Remove an
6704         extraneous unref.  (#122336, Frederic Crozat)
6705
6706 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
6707
6708         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
6709         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
6710
6711 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6712
6713         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
6714         focus arrow before pack_end items (#123851, Matthias Clasen)
6715
6716 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
6717
6718         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
6719         on ->priv->cell_view if ->priv->cell_view is non-NULL.
6720
6721         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
6722         field to GtkComboBoxEntryPrivate,
6723         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
6724         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
6725         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
6726         a construct-only "text_column" property and reorder code to use it
6727         and support inheriting this widget.
6728
6729 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
6730
6731         * gtk/gtkcombobox.c: Added API doc comments.
6732
6733         * gtk/gtkcomboboxentry.c: Ditto.
6734
6735 2003-10-02  Matthias Clasen  <maclas@gmx.de>
6736
6737         * gtk/gtktoggleaction.c: Documentation tweaks.
6738
6739 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
6740
6741         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
6742         packing/attribute/cell data functions from the header,
6743         (gtk_cell_view_set_cell_data): added support for cell data funcs.
6744
6745         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
6746         packing/attribute/cell data functions from the header, implemented
6747         cell data func support.
6748
6749         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
6750         for the move to GtkCellLayout.
6751
6752         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
6753
6754 2003-10-01  Matthias Clasen  <maclas@gmx.de>
6755
6756         * gtk/gtkaction.c (gtk_action_class_init): 
6757         (gtk_action_[gs]et_property): Introduce a separate
6758         "hide_if_empty" property for empty menu handling.
6759         (_gtk_action_sync_menu_visible): ...and use it here.
6760
6761         * tests/testmerge.c (main): ...and here.
6762
6763         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
6764         comments to pacify gtk-doc.
6765
6766         * gtk/gtkmain.c: Doc formatting tweaks.
6767
6768         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
6769
6770         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
6771         Use the same parameter names as in .c file, to pacify gtk-doc.
6772
6773         * gtk/gtktoggletoolbutton.[hc]: 
6774         * gtk/gtktoolbutton.[hc]: 
6775         * gtk/gtktoolitem.[hc]:
6776         * gtk/gtktoolbar.[hc]: 
6777         * gtk/gtkcolorbutton.[hc]: 
6778         * gtk/gtkfontbutton.[hc]: 
6779         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
6780         source, not in the header.
6781
6782         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
6783         Document these as 2.4 API additions.
6784
6785 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
6786
6787         * gtk/gtkentry.c (gtk_entry_set_completion),
6788         (gtk_entry_get_completion): Add API doc comments.
6789
6790         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
6791
6792 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
6793
6794         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
6795
6796 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
6797
6798         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
6799
6800         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
6801
6802 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6803
6804         * tests/merge-*.ui: 
6805         * tests/testmerge.c: Test handling of empty menus.
6806
6807         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
6808         whether a menu is empty. Used in gtkaction.c.
6809         (update_smart_separators): Also update the visibility of empty menus.
6810         (update_node): When creating a new menu proxy, insert an "Empty" menu 
6811         item which only gets shown if the menu is empty. 
6812
6813         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
6814         "is_important" for menu proxies.
6815         (_gtk_action_sync_menu_visible): New function to sync the visibility
6816         of menu proxies. Used in gtkuimanager.c.
6817         (gtk_action_sync_visible): New function to sync the visibility of 
6818         proxies.
6819
6820 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
6821
6822         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
6823         popup_in_progress to TRUE,
6824         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
6825         won't disappear on the first button release. (Reported by Matthias
6826         Clasen).
6827
6828 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
6829
6830         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
6831
6832         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
6833         Marco Pesenti Gritti).
6834
6835 2003-09-30  Murray Cumming  <murrayc@usa.net>
6836  
6837         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
6838         instead of a GdkWindow*, because that what it is given. The 
6839         documentation was already correct. This should cause no API/ABI
6840         breakage with C compilers.
6841         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
6842         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
6843         implementation accordingly.
6844
6845 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6846
6847         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
6848         "direction-changed" and "keys-changed" signals.
6849
6850         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
6851         "size-changed" signal.
6852
6853         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
6854         Document the "display-opened" signal.
6855
6856         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
6857         (gdk_display_class_init): Document the "closed" signal.
6858
6859 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6860
6861         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
6862         accepts_tab. (#122709 again).
6863
6864 2003-09-27  Matthias Clasen  <maclas@gmx.de>
6865
6866         * gtk/gtkwindow.c (gtk_window_new):
6867         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
6868         the fact that the newly created object does not come with 
6869         a floating reference.  (#103068, patch by Frederic Lespez)
6870         
6871         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
6872         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
6873         since GtkActionGroup uses it.
6874
6875         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
6876         this test uses the soon-to-be-deprecated GtkItemFactory.
6877
6878         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
6879         remove item_factory.c
6880
6881         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
6882         using GtkUIManager instead of GtkItemFactory.
6883
6884         * tests/testmerge.c: Demonstrate the use of the 
6885         connect-proxy signal.
6886
6887         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
6888         disconnect-proxy signals to do small customizations 
6889         like displaying tooltips in the statusbar without 
6890         custom actions.  (#122894, Philip Langdale)
6891
6892         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
6893
6894 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
6895
6896         Landing the new ComboBox. Note that only gtkcombobox.h and
6897         gtkcomboboxentry.h are public.
6898
6899         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6900         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
6901
6902         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
6903
6904         * tests/testcombo.c: and a new test.
6905
6906         * tests/Makefile.am: adding the new test.
6907
6908 2003-09-25  Tor Lillqvist  <tml@iki.fi>
6909
6910         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
6911
6912 2003-09-21  Tor Lillqvist  <tml@iki.fi>
6913
6914         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
6915         function. Code split out from gdk_event_translate(). Needed
6916         because gdk_event_get_graphics_expose() couldn't do anything
6917         sensible otherwise. (Not that I think graphics exposes work anyway
6918         in gdk/win32, but at least now the code could work.)
6919
6920         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
6921         gdk_event_translate(), which couldn't have worked as it doesn't
6922         take any pre-allocated GdkEvent parameter any longer.
6923         
6924         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
6925         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
6926
6927 2003-09-24  Matthias Clasen  <maclas@gmx.de>
6928
6929         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
6930         on toolitems.
6931
6932         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
6933
6934         * gtk/gtkuimanager.c (update_node): Don't complain about missing
6935         actions on popups. Re-set "tooltip" property on toolitems after
6936         adding them to parent to trigger proxy update.
6937
6938 2003-09-22  Matthias Clasen  <maclas@gmx.de>
6939
6940         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
6941         group member to test the fix for #122904.
6942
6943         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
6944         Add the action to the group before activating it, otherwise we
6945         may end up with multiple active group members.  (#122904, Marco
6946         Pesenti Gritti)
6947
6948 2003-09-21  Matthias Clasen  <maclas@gmx.de>
6949
6950         Changes to make cross-process merging feasible:
6951         
6952         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
6953         merged UI definition. Remove the "changed" signal, since its role
6954         is now filled by "notify::ui". Instead add a "actions-changed" signal
6955         which gets emitted when the set of actions changes.
6956
6957         * gtk/gtktoggleactionprivate.h:
6958         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
6959         Add a "draw_as_radio" property to toggle actions so that they can be
6960         used as proxies for radio actions much like the "draw_as_radio" 
6961         property on check menu items enables them to operate as proxies for
6962         radio actions.
6963
6964         Prevent the "show_all" trap for action-based menus (see
6965         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
6966         msg00260.html):
6967
6968         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
6969         calls from static functions.
6970
6971         * gtk/gtkuimanager.c (update_node): 
6972         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
6973         widgets whose visibility is externally controlled.
6974
6975         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
6976         "no_show_all" property with setter and getter. When TRUE, it keeps
6977         gtk_widget_{hide,show}_all() from modifying the visibility of the 
6978         widget and its children.
6979
6980 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6981
6982         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
6983
6984 2003-09-20  Tor Lillqvist  <tml@iki.fi>
6985
6986         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
6987         including editor backup files. List files we want explicitly.
6988
6989         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
6990         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
6991         LC_ALL, LC_CTYPE and LANG environment variables, than calls
6992         g_win32_getlocale().
6993
6994         (gtk_get_default_language): Code snippet moved to above function,
6995         call it.
6996
6997         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
6998         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
6999         _gtk_get_lc_ctype() instead of setlocale().
7000
7001 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7002
7003         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
7004         (#96632)
7005
7006 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7007
7008         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
7009         documentation. (#117306, Steve Chaplin)
7010
7011 2003-09-19  Tor Lillqvist  <tml@iki.fi>
7012
7013         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
7014         present on the US-International keyboard. For clarity, order
7015         keysyms in case statement according to numeric value.
7016
7017         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
7018         correctly. (#120176, Ken Rastatter and Owen Taylor)
7019
7020 2003-09-18  Matthias Clasen  <maclas@gmx.de>
7021
7022         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
7023         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
7024
7025         Install accelerators on actions, not on proxies, support
7026         accelerator-only actions:
7027         
7028         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
7029         and its lock status either via _gtk_widget_get_accel_path() or by 
7030         looking at the accel_path stored in the menu item itself and determining
7031         its lock status by peeking into the contained accel label. This was
7032         already (accidentally) committed a week ago.
7033
7034         * gtk/gtkaction.h (gtk_action_set_accel_group):
7035         (gtk_action_[dis]connect_accelerator): New functions.
7036
7037         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
7038         accel_closure and accel_count. We must have a reference to the 
7039         accel_group, since we need it in connect_proxy. The count is necessary
7040         to ensure that the accelerator isn't removed before the last proxy 
7041         requesting it has been unmerged.
7042         (connect_proxy): Connect the accelerator to the 
7043         action now, only set the accel_path on the menuitem.
7044         (remove_proxy): Disconnect the accelerator from the action, not from
7045         the menuitem.
7046         (gtk_action_set_accel_group): Set the accel group. 
7047         (gtk_action_[dis]connect_accelerator): Count the number of times
7048         this functions have been called and install/remove the accelerator if
7049         the count leaves/reaches zero.
7050
7051         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
7052         GTK_UI_MANAGER_ACCELERATOR.
7053
7054         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
7055         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
7056         <accelerator> elements.
7057         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
7058         type is GTK_UI_MANAGER_ACCELERATOR.
7059         (update_node): Set the accel group on actions before creating their
7060         proxies. Don't set the accel group on created menus. For 
7061         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
7062         (print_node): Also emit <accelerator> elements.
7063
7064         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
7065
7066         * gtk/gtkuimanager.c (update_node): Robustness improvements.
7067
7068 2003-09-17  Matthias Clasen  <maclas@gmx.de>
7069
7070         * gtk/gtkuimanager.c (text_handler): Report unexpected character
7071         data as error from the GMarkup parser, otherwise things like
7072         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
7073         pass unexpectedly.
7074
7075 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7076
7077         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
7078         committed redraw_on_allocate change.
7079
7080 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
7081
7082         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
7083         stubs to fix compilation
7084
7085         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
7086         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
7087
7088         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
7089         variable. Patch from Marc Welz (#121347).
7090
7091 2003-09-16  Matthias Clasen  <maclas@gmx.de>
7092
7093         * gtk/gtkaction.h: Apply egtk-format-protos.
7094
7095 2003-09-15  Matthias Clasen  <maclas@gmx.de>
7096
7097         * gtk/gtkuimanager.c: Doc tweaks.
7098
7099         Smart separators; see 
7100         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
7101         
7102         * gtk/gtkuimanager.c (update_smart_separators): New function which 
7103         implements "smart" separators by iterating once over the entries of a 
7104         menu, hiding and showing separators as necessary.
7105         (update_node): Mark separators used as fences of placeholders as
7106         hidden. Explicitly added separators are marked as smart. Call 
7107         update_smart_separators after updating a menu or toolbar node. 
7108         Connect update_smart_separators to "notify::visible" signal on menu
7109         and tool items.
7110         
7111         * tests/merge-[12].ui: Test smart separators.
7112
7113         Changes to allow setting action state before connecting signal; see
7114         the thread starting at 
7115         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
7116         
7117         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
7118         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
7119         setting the currently selected group member before connecting signals.
7120         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
7121         including a boolean to initialize the action state before connecting
7122         signals.
7123         (gtk_action_group_add_toggle_actions):
7124         (gtk_action_group_add_toggle_actions_full): New functions to construct
7125         toggle actions from an array of GtkToggleActionEntries.
7126
7127         * demos/gtk-demo/appwindow.c: 
7128         * tests/testactions.c: 
7129         * tests/testmerge.c: Adjust to new action group API.
7130
7131 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7132
7133         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
7134         "gtk-toolbar-arrow" so themes can special-case it.
7135
7136 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7137
7138         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
7139
7140 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7141
7142         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
7143         PangoFontMetrics. Patch from Steve Chaplin (#122257).
7144
7145 2003-09-14  Tor Lillqvist  <tml@iki.fi>
7146
7147         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
7148         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
7149         the usefulness of which was already in doubt. Removing it fixes
7150         bugs #118575 and #121851.
7151
7152 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
7153
7154         Merge from stable.
7155
7156         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7157         pressed button (used to determine if we want to initiate a drag later
7158         on) if the current grab widget is either NULL or tree_view (Reported
7159         by Jeroen Zwartepoorte).
7160
7161 2003-09-12  Matthias Clasen  <maclas@gmx.de>
7162
7163         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
7164         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
7165
7166 2003-09-11  Matthias Clasen  <maclas@gmx.de>
7167
7168         * gdk/gdkpango.c: Doc tweaks.
7169
7170         * tests/testgtk.c: Add table menu tests.
7171
7172         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
7173         GtkMenuPrivate struct itself. Pointed out by valgrind.
7174
7175         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
7176         properly.  (#121998)
7177
7178 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
7179
7180         The table menu patch! Turns GtkMenu into a table, so you can attach
7181         menu items in numerous new ways! Be creative!
7182
7183         Contains some bug fixes and RTL adaptions from Matthias Clasen.
7184
7185         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7186         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7187         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7188         the heights array in the private struct,
7189         (gtk_menu_class_init): reorder code a bit, install child properties,
7190         (get_attach_info), (get_child_attach): new utility functions,
7191         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7192         child properties, for the attach info,
7193         (gtk_menu_remove): remove AttachInfo from menu item,
7194         (gtk_menu_real_insert): implemented algorithm to automagically place
7195         inserted menu items at the correct place in the table,
7196         (gtk_menu_size_request), (gtk_menu_size_allocate),
7197         (compute_child_offset): reworked/rewritten to support table menus,
7198         (gtk_menu_attach): new function,
7199         (find_child_containing), (gtk_menu_move_current): new functions to
7200         get table menu keynav right.
7201
7202         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7203
7204 2003-09-10  Matthias Clasen  <maclas@gmx.de>
7205
7206         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
7207         PropertyNotify events from the stream if they have been handled,
7208         in order to enable extending the plug<->socket communication via
7209         properties.
7210
7211 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
7212
7213         Big TreeView DnD fixage, makes drops on empty models work, makes
7214         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7215         Related bugs #95362 and #113314. I don't want to touch this code
7216         ever again.
7217
7218         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7219
7220         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7221         for selection_data->length.
7222
7223         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7224         (set_dest_row), (get_dest_row): we don't store just the row ref
7225         anymore, but a struct with the row ref and additional info,
7226         (set_destination_row): handle drops on empty space and some
7227         style fixes,
7228         (get_logical_dest_row): also return path_down_mode/drop_append_mode
7229         flags, handle dropping childs on their new parents, rewrite
7230         drop append handling into something saner,
7231         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7232         spaces,
7233         (gtk_tree_view_drag_drop): updates for updated backend,
7234         (gtk_tree_view_drag_data_received): updates for updated backend,
7235         path down mode (treestore DnD) handling,
7236         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7237         when we are trying to drop a row on an empty model,
7238         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7239
7240         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7241         (gtk_list_store_row_drop_possible): style and drop-append fixes.
7242
7243         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7244
7245 2003-09-08  Alexander Larsson  <alexl@redhat.com>
7246
7247         * gtk/gtkeventbox.[hc]:
7248         Implement gtk_event_box_get/set_input_only()
7249         
7250         * tests/testgtk.c:
7251         Tests for the new input only event boxes
7252
7253 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
7254
7255         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7256
7257         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7258         the call to gtk_tree_model_filter_add_root,
7259         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7260         the virtual root, allow building levels on the second try to convert
7261         the child path to a filter path,
7262         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7263         root when calling gtk_tree_model_filter_elt_get_path.
7264
7265 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7266
7267         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
7268         Josh Beam)
7269
7270         Fixes for accelerator handling during (un)merging:
7271         
7272         * gtk/gtkuimanager.c (update_node): Move setting info-action
7273         after the switch, since the old action is needed in some cases.
7274         In cases of proxy type mismatch, disconnect the old proxy from
7275         the old action.
7276
7277         * gtk/gtkaction.c (remove_proxy): Renamed from 
7278         gtk_action_remove_proxy(). Move unsetting of the accelerator
7279         here from disconnect_proxy() in order to catch all cases of 
7280         removing a proxy.
7281         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7282         to fail if proxy isn't a proxy of action.
7283
7284 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
7285
7286         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7287         ALL_LINGUAS
7288
7289 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7290
7291         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7292         for toolitems.
7293
7294 2003-09-06  Matthias Clasen  <maclas@gmx.de>
7295
7296         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
7297         prev_action, not from action.  (Fix by David Hampton)
7298
7299 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
7300  
7301         * Back out locale-dependent interpretation of
7302         KP_Decimal, the official XFree86 interpretation
7303         is that KP_Decimal => . KP_Separator => ,
7304         always, independent of locale. 
7305         (#105161, Frederic Crozat, 
7306         http://bugs.xfree86.org/show_bug.cgi?id=534)
7307  
7308 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7309
7310         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7311
7312         * gtk/gtktoggleaction.c (connect_proxy): 
7313         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
7314         that a "draw_as_radio" property is needed for check buttons similar to 
7315         check menu items, in order to fully support button proxies for radio actions.
7316
7317         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7318
7319         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
7320
7321         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7322         'type' argument of gtk_ui_manager_add_ui().
7323
7324         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7325         to make this function as powerful as the XML methods of adding UI.  (#120647)
7326
7327 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
7328
7329         Merge from stable.
7330
7331         * docs/RELEASE-HOWTO: updates.
7332
7333 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7334
7335         * tests/merge-2.ui: Use "position" instead of "pos".
7336
7337         * gtk/gtkuimanager.c (start_element_handler): No need 
7338         to be terse: Change the name of the "pos" attribute
7339         to "position".
7340
7341 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7342
7343         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
7344         GtkUIManagerNode to shorten the names and to make the
7345         GTK_UI_MANAGER_<TYPE> names available for a public enum.
7346
7347         * gtk/gtkactiongroup.c:
7348         * gtk/gtkuimanager.c: Various doc tweaks.       
7349
7350         * gtk/gtkuimanager.c (start_element_handler):
7351         (end_element_handler): Improve error reporting. 
7352
7353 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
7354
7355         Merge from stable.
7356
7357         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7358         use end_position - page_size instead of G_MAXINT, since
7359         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7360         reported by Havoc Pennington).
7361
7362 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
7363
7364         Merge from stable.
7365
7366         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7367         unref it. (Fixes memleak, patch from Kjartan Maraas).
7368
7369 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
7370
7371         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7372         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7373         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7374         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7375         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7376         gtk/gtktypeutils.h: big patch from Kjartan Maraas
7377         to fix numerous typos.
7378
7379 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
7380
7381         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7382
7383 2003-09-02  Tor Lillqvist  <tml@iki.fi>
7384
7385         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7386         CloseHandle() on the HMODULE returned from GetModuleHandle().
7387         Didn't cause any harm, but didn't do anything useful either. When
7388         running a GTK+ program under MS's debugger, the CloseHandle() call
7389         would cause a "first-chance exception" in ntdll.dll to show up.
7390         (The exception is caught appropriately if you let it proceed, but
7391         it confuses the person using the debugger). Thanks to Bruce
7392         Hochstetler for noticing.
7393
7394 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
7395
7396         Merge from stable.
7397
7398         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7399         to only select when button 1 is pressed introduced in the fix of
7400         bug #120187.
7401
7402 2003-09-02  Matthias Clasen  <maclas@gmx.de>
7403
7404         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7405
7406         * gtk/gtkuimanager.c: Shorten the names of some static 
7407         functions.
7408
7409         Support adding and removing merge nodes dynamically (#120647, 
7410         Anders Carlsson):
7411         
7412         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
7413         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
7414         and made it public.
7415         (gtk_ui_manager_add_ui): New function to add UI elements
7416         without juggling XML fragments, currently restricted to menuitems,
7417         toolitems and separators. Actions still come from registered 
7418         action groups.
7419
7420 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7421
7422         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7423         background pixmap was being offset twice, once by the ts_origin in
7424         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7425
7426 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7427
7428         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7429         this public again, since it's occasionally useful.  (#121128,
7430         Marco Pesenti Gritti)
7431
7432         * gtk/gtkaction.c: Add an "is_important" property and propagate
7433         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
7434
7435 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7436
7437         * tests/testtoolbar.c (main): connect to "delete_event" so the
7438         application will actually quit when you close the window
7439
7440 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7441
7442         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
7443         (gtk_ui_manager_get_action): g_return_if_fail() if
7444         path is NULL.
7445         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7446         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
7447         Marco Pesenti Gritti)
7448
7449 2003-08-31  Matthias Clasen  <maclas@gmx.de>
7450
7451         * gtk/gtktoolitem.c: Fix some typos in docs.
7452
7453         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7454         replaces gtk_ui_manager_activate().  (#120658)
7455
7456         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7457         gtk_ui_manager_activate().
7458
7459         * gtk/gtkaction.c: 
7460         * gtk/gtkactiongroup.c: Some doc tweaks.
7461
7462         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7463         wasn't emitted anyway. Some doc tweaks.
7464
7465 2003-08-30  Matthias Clasen  <maclas@gmx.de>
7466
7467         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7468         rather than to "remove" on handlebox. 
7469
7470         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7471         activate an action found by following a path.  (#120658)
7472
7473         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7474
7475         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7476
7477         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
7478         setter and getter. If it is set, add tearoff menu items to regular 
7479         menus, but not to popups. Add a signal "changed", which gets emitted
7480         when the merged ui has changed.  (#120649, #120656)
7481
7482         * tests/testmerge.c: Add button to test the generation of tearoff 
7483         menu items.
7484
7485 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7486
7487         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7488         Actually group the actions together rather than putting each in its 
7489         own group.
7490
7491         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
7492         proxy menu items for radio actions.
7493
7494         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7495
7496 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7497
7498         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7499         Fix use of uninitialized variable.
7500
7501         * gtk/gtktextutil.c
7502         (_gtk_text_util_append_special_char_menuitems): add const cast to
7503         get rid of warning
7504
7505 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7506
7507         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
7508         "draw_as_radio" as a separate property, not as an alias of 
7509         "inconsistent".
7510         (gtk_check_menu_item_get_property): 
7511         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7512
7513 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7514
7515         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7516         are narrower than 13 time the estimated character width of the
7517         font. (#107781, David Bordoley)
7518
7519         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
7520         here if the GtkToggleButton is active. This may be the case if it
7521         is a radio button.
7522
7523         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
7524         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
7525         Suarez-Alvarez).
7526
7527         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
7528         property. (#111207, David Bordoley).
7529
7530         * gtk/gtktoggletoolbutton.c
7531         (gtk_toggle_tool_button_create_menu_proxy): use new
7532         "draw_as_radio" property on the menu item when the item is a radio
7533         tool button
7534
7535         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
7536         to only pay attention to the "use_underline" property when the
7537         button label comes from the "label" property.
7538
7539 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
7540
7541         * configure.in: Added "sq" to ALL_LINGUAS.
7542         
7543 2003-08-28  Matthias Clasen  <maclas@gmx.de>
7544
7545         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
7546         fix in the docs.
7547
7548         * gtk/gtkuimanager.c: Change the XML format:
7549         <Root> element is replaced by <ui>,
7550         <menu> element is replaced by <menubar>,
7551         <submenu> element is replaced by <menu>,
7552         <dockitem> element is replaced by <toolbar>,
7553         <popups> element is gone,
7554         verb attribute is replaced by action,
7555         name defaults to action or the element name. 
7556
7557         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
7558         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
7559         by removing the user_data, entry_type and extra_data fields, 
7560         GtkRadioActionEntry is further simplified by removing the callback. 
7561         The user_data can now be specified as an argument to 
7562         gtk_action_group_add_actions(). There is a new method 
7563         gtk_action_group_add_radio_actions(), which is similar to 
7564         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
7565         and a callback parameter in addition to the user_data. The callback
7566         is connected to the ::changed signal of the first group member.
7567         There are _full() variants taking a GDestroyNotify of 
7568         gtk_action_group_add_[radio_]actions().
7569
7570         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
7571         on every member of the radio group when the active member is changed. 
7572         Add an integer property "value", and a getter for the value of "value"
7573         on the currently active group member. 
7574
7575         * tests/testactions.c: 
7576         * tests/testmerge.c: 
7577         * tests/merge-[123].ui:  
7578         * demos/gtk-demo/appwindow.c: Adjust to these changes.
7579
7580         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
7581
7582 2003-08-27  Anders Carlsson  <andersca@gnome.org>
7583
7584         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
7585         text view, so the tool bar won't have focus.
7586
7587 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
7588
7589         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
7590         declaration not at start of block. (#120371, Damien Carbery)
7591
7592 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7593
7594         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
7595         for length, not gsize.
7596
7597         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
7598         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
7599         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
7600
7601         * demos/gtk-demo/appwindow.c: 
7602         * tests/testactions.c: 
7603         * tests/testmerge.c:
7604         * tests/merge-1.ui:
7605         * tests/merge-2.ui:
7606         * tests/merge-3.ui: Adjust to the new XML format.
7607
7608 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
7609
7610         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
7611         Since we add one to the layout's reported width to
7612         account for the cursor, we need to subtract one when
7613         setting the wrap width for the layout. (Fixes infinite
7614         loop (#120325, Frederic Crozat)
7615
7616         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
7617         Be a bit more careful about rounding when converting
7618         wrapped width from Pango units to pixels.
7619
7620 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7621
7622         Rename GtkMenuMerge to GtkUIManager. 
7623         
7624         * gtk/gtkuimanager.[hc]: New files. 
7625         * gtk/gtkmenumerge.[hc]: Removed. 
7626
7627         * gtk/Makefile.am: 
7628         * gtk/gtk.h:
7629         * tests/testmerge.c: 
7630         * tests/testactions.c: 
7631         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
7632         GtkUIManager.
7633
7634         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
7635         add comments to entries array, remove newlines from ui definition. Don't 
7636         use the ::add_widget signal.
7637
7638 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
7639
7640         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
7641         include page->menu_label - causes various problems,
7642         including #12047.
7643
7644 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
7645
7646         Merge from stable.
7647
7648         Fixes #115871, reported by Michael Natterer.
7649
7650         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
7651         added ctrl_pressed and shift_pressed bitfields,
7652         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
7653         arg with GtkTreeSelectMode.
7654
7655         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
7656         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
7657         (_gtk_tree_selection_internal_select_node): all updated for
7658         GdkModifierType -> GtkTreeSelectMode move.
7659
7660         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
7661         and shift_pressed around selection handling block,
7662         (gtk_tree_view_real_select_cursor_row),
7663         (gtk_tree_view_real_toggle_cursor_row),
7664         (gtk_tree_view_real_selection_cursor_parent),
7665         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
7666         instead of checking the event state. And also updates for the
7667         GdkModifierType -> GtkTreeSelectMode move.
7668
7669 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
7670
7671         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
7672         to the parent when there was no focus widget before
7673         and no focus widget after - that is, when there are
7674         no focusable widgets. (#108678, help tracking it
7675         down from Padraig O'Briain, Federico Mena Quintero, )
7676
7677         * gtk/gtkxembed.[ch]: Move various shared utilities
7678         for the XEMBED protocol eused by GtkPlug and GtkSocket 
7679         here.
7680
7681         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
7682         a flag bit that is sent with focus mesages to indicate
7683         that the focus has wrapped around on the toplevel;
7684         use this bit to catch infinite loops when there is no
7685         focusable widget at ll in the entire toplevel.
7686
7687         * tests/testsocket.c (child_read_watch): Remove an
7688         extraneous unref.
7689
7690         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
7691         Up XEMBED protocol version to 1, add logic for 
7692         sending the right version in XEMBED_EMBEDDED_NOTIFY.
7693
7694         * gtk/gtksocket.c (gtk_socket_add_window): Send
7695         the embedder window in the XEMBED_EMBEDDED_NOTIFY
7696         as the spec requires.
7697
7698 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
7699
7700         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
7701         NumLock handling for non-XKB. Add a special case
7702         hack for NumLock on Sun servers. (Patch from
7703         Robert Basch, #115819)
7704
7705 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7706
7707         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
7708         Welinder)
7709
7710         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
7711         gtk_action_group_set_translation_domain): Hooks for translation of
7712         label and tooltip in GtkActionGroupEntries.  (#120620)
7713
7714 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7715
7716         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
7717         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
7718         
7719         * gtk/gtkactiongroup.c: 
7720         * demos/gtk-demo/appwindow.c: 
7721         * tests/testmerge.c: 
7722         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
7723
7724 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
7725
7726         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
7727
7728 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
7729
7730         * gtk/Makefile.am: Fix accidental commit of references
7731         to gtkresizegrip.[ch]
7732
7733 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
7734
7735         * gtk/gtkrc.c: Fix some missing initializations of
7736         rc_file->directory.
7737
7738 2003-08-24  Matthias Clasen  <maclas@gmx.de>
7739
7740         * gtk/gtkaction.[ch]: 
7741         * gtk/gtktoggleaction.[ch]: 
7742         * gtk/gtktoggleactionprivate.h: 
7743         * gtk/gtkradioaction.[ch]: 
7744         * gtk/gtkactiongroup.[ch]: 
7745         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
7746         toolbars, using the EggMenu code by James Henstridge.
7747
7748         * gtk/gtk.h: Include new headers.
7749         * gtk/Makefile.am: Add new files.
7750
7751         * tests/testactions.c: Test for actions.
7752         * tests/testmerge.c: Test for menu merging.
7753         * tests/merge-[123].ui: Test data for testmerge. 
7754         * tests/Makefile.am: Add testactions and testmerge.
7755
7756         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
7757         menubar and toolbar.
7758         
7759 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
7760  
7761         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
7762         problem where rc_file->directory wasn't always getting
7763         set. (#120549, Luis Villa)
7764  
7765 2003-08-22  Christian Rose  <menthos@menthos.com>
7766
7767         * configure.in: Added "ne" to ALL_LINGUAS.
7768
7769 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
7770  
7771         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
7772         being parsed, not just the directories for those
7773         files. Use that to catch recursion. (Part of
7774         #114988)
7775  
7776 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
7777
7778         Merge from stable.
7779
7780         Fix option menu scrolling (#119821, Owen Taylor).
7781
7782         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
7783         by #80484 and the CLAMP,
7784         (get_menu_height): new function,
7785         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
7786         new_offset to handle page up/down right.
7787
7788 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
7789
7790         * gdk/x11/gdkkeys-x11.c: Change the interpretation
7791         of consumed_modifiers so that it contains:
7792          - Modifiers combinations actually found in
7793            state.
7794          - Single modifier modifier combinations.
7795         But not multi-modifier combinations that aren't
7796         in event->state. Document. (#100439)
7797
7798 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
7799
7800         Slightly modified patch from Yann Rouillard to improve selection
7801         behavior with the mouse. Fixes #120187.
7802
7803         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
7804         select/deselect items on the first button press of button 1,
7805         expand checks for row_activated to include triple clicks.
7806
7807 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
7808
7809         Merge from stable.
7810
7811         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
7812         approximate digit widths up, to avoid truncation, convert to
7813         pango pixels when we have the full string width instead of converting
7814         the approx digit width to pango pixels, take inner border and
7815         interior focus into account correctly. (Fixes #116368, patch from
7816         Morten Welinder).
7817
7818 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
7819
7820         * gtk/queryimmodules.c: Don't look at the same directory twice (in
7821         simple cases). (#120342)
7822
7823 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7824
7825         * gdk/gdkwindow.c: Make the layers in the paint stack have their
7826         own pixmap instead of sharing one. (#118317)
7827
7828         * tests/testgtk.c (create_get_image): Fixes to make the window fit
7829         on an 800x600 screen
7830
7831 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
7832
7833         Merged from stable.
7834
7835         * gtk/gtkspinbutton.c (start_spinning): change the type of step
7836         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
7837
7838 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
7839
7840         * modules/input/gtkimcontextxim.[ch]: Substantially
7841         rework the handling of status windows:
7842         
7843          - Store the current StatusWindow in the 
7844            GtkIMContextXIM structure and vice-versa, so we
7845            don't have to hunt the window hierarchy on
7846            cleanup.
7847          - Use the Gtkidget hierarchy instead of/or as well
7848            as the GdkWindow hierarchy when finding the toplevel;
7849            this helps for things like GtkHandlebox
7850          - Watch GtkWidget::hierarchy_changed to catch 
7851            changes in the toplevel without changes in the
7852            GdkWindow (reparenting)
7853          - Never create the GtkWindow for the status window
7854            unless we have text to display.
7855          - Various cleanups, add lots of comments.
7856
7857         (#115077, much help from Takuro Ashie and Hidetoshi
7858         Tajima in tracking this down and figuring out a fix.)
7859
7860         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
7861
7862         * modules/input/gtkimcontextxim.c: Track the current
7863         screen for each toplevel so that we show the status
7864         window on the right screen. (#116340, James Su)
7865
7866         * modules/input/gtkimcontextxim.c: If create a new IC
7867         when we currently have the focus, call XSetICFocus()
7868         on it.
7869         
7870         * modules/input/gtkimcontextxim.c (get_im): Fix bug
7871         with multiple open screens.
7872
7873 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
7874
7875         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
7876         Replace client_window field with 'priv' pointer,
7877         retaining binary compatibility.
7878
7879         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
7880         save use_preedit/cursor_location/focus status and set
7881         up the new slave appropriately. (#118651, Botond Botyanszki)
7882
7883 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
7884
7885         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
7886         Don't use impl->position_info.clip_rect for toplevels.
7887         (#107068, reported by Thomas Mirlacher)
7888
7889 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
7890
7891         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
7892         Add a fallback for unaligned source data for
7893         FORMAT_ARGB_MASK. (#117217)
7894
7895 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
7896
7897         * configure.in: Rework handling of REBUILD_PNGS,
7898         so that we also don't try to REBUILD_PNGS when
7899         cross-compiling and there is no gdk-pixbuf-csource.
7900         But give an error if gtk/stock-icons/gtkstockpixbufs.h
7901         is not in the source tree. (Note that REBUILDS_PNG
7902         was set backwards before, which is why you always
7903         had to manually recreate gtkstockpixbufs.h!)
7904
7905 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
7906
7907         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
7908         path to libgtk.la. (#120080, Benedikt Spranger)
7909
7910 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
7911
7912         * modules/input/imcedilla.c: Make the list of default
7913         languages more comprehensive. (Suggestion of
7914         Fco. Javier F. Serrador)
7915
7916 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
7917
7918         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
7919         parentheses when skipping args.
7920
7921 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
7922
7923         Fix major bug in row ref handling, so the new combo box
7924         will actually work right (:. Bug #107748. Patch written
7925         with help from Tim Janik.
7926
7927         The basic idea is to update the row refs in a closure,
7928         before the actual signal is emitted (rather than having
7929         the model connect signal handlers).
7930
7931         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
7932         g_signal_new calls for row_inserted, row_deleted and
7933         rows_reordered to use the new marshallers,
7934         (row_inserted_marshall), (row_deleted_marshall),
7935         (rows_reordered_marshall): the new marshallers,
7936         (gtk_tree_row_ref_inserted_callback): renamed to
7937         gtk_tree_row_ref_inserted since it isn't a callback
7938         anymore and gets called by the marshaller now,
7939         (gtk_tree_row_ref_deleted_callback): likewise,
7940         (gtk_tree_row_ref_reordered_callback): likewise,
7941         (connect_ref_callbacks), (disconnect_ref_callbacks):
7942         removed,
7943         (gtk_tree_row_reference_new_proxy),
7944         (gtk_tree_row_reference_free),
7945         (gtk_tree_row_reference_inserted),
7946         (gtk_tree_row_reference_deleted),
7947         (gtk_tree_row_reference_reordered): updated.
7948
7949 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
7950
7951         Improve Cedilla handling - based on a patch from Gustavo 
7952         De Nardin, #111334
7953
7954         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
7955         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
7956         dead_acute+c combinations. Make this the default for
7957         fr and pt.
7958
7959         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
7960         Use LC_CTYPE instead of LC_MESSAGES to pick the default
7961         input method.
7962
7963 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
7964
7965         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
7966         for Multi_key+c+apostrophe.
7967
7968 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
7969
7970         Merged from stable.
7971
7972         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
7973         on vertical scrolling. (#108035, reported by Tim Janik).
7974
7975 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
7976
7977         Merged from stable.
7978
7979         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
7980         (gtk_tree_model_sort_level_find_insert),
7981         (gtk_tree_model_sort_insert_value): fix off-by-one error.
7982         (#109292 continued, patch from Yann Rouillard).
7983
7984 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
7985
7986         (Note: This is not exactly the same as the patch which went in
7987          gtk-2-2).
7988
7989         * gtk/gtktreeview.c (gtk_tree_view_class_init),
7990         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
7991         Also support the up, down, left, right, home, end, page up and
7992         page down keys on the numpad. (#119419, reported by Alex Larsson).
7993
7994 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
7995
7996         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
7997
7998         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
7999         we link libgtk against X explicitely, since we
8000         make GTK+ calls for plug/socket.
8001
8002         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
8003         G_MODULE_SUFFIX here. 
8004
8005         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
8006         XShmPutImage with #ifdef USE_SHM.
8007
8008 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
8009
8010         * gtk/gtkfilesel.c (gtk_file_selection_populate):
8011         Don't reposition the cursor when we aren't trying
8012         to complete. (Fixes problems with selection on
8013         startup, #108433, reported by Mark Finlay.)
8014
8015         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
8016         code that tried to position the cursor after the common
8017         prefix when there was one, it wasn't working, and
8018         would be hard to fix. Just always put the cursor
8019         at the end when completing.
8020
8021 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
8022
8023         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
8024         the current directory fails because of encoding
8025         conversion problems, walk up textually to parent
8026         directories until we can convert. (#113627)
8027
8028 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
8029
8030         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
8031         Remove usage of menu_shell->ignore leave which was
8032         to deal with stray events we no longer get because
8033         we do grabbing differently. Comment it as unused in
8034         the header. (#115837, Keith Bissett)
8035
8036 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
8037
8038         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
8039         Fix some places that weren't properly Xinerama-ified.
8040
8041         * gtk/gtkmenu.c: Fix problem with windows that scroll
8042         at the top of the screen.
8043
8044 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
8045
8046         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
8047         key-press-event on the entry, so input methods get access to 
8048         key presses before GtkCombo customization.
8049         (#115451, Botond Botyanszki)
8050
8051 2003-08-13  Anders Carlsson  <andersca@gnome.org>
8052
8053         * tests/testtoolbar.c: (set_important_func), (important_toggled),
8054         (create_items_list):
8055         Add an important column.
8056         
8057 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
8058
8059         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
8060         against reentrancy from ::focus-out handlers. 
8061         (#118129, Felipe Heidrich)
8062
8063 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
8064
8065         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
8066         GDK_LOCK_MASK before calling
8067         gdk_keymap_translate_keyboard_state so bindings 
8068         and accelerators are independent of the Caps-lock
8069         key. (#115384, reported by Toni Willberg)
8070
8071 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
8072
8073         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
8074         break statements (#119494, Soeren Sandmann)
8075
8076 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
8077
8078         * gtk/gtkwidget.h: Mark parent public as well; it's
8079         extensively accessed in existing code, so there is
8080         no advantage in making people use get_parent().
8081         (Tweak to #119463 fix)
8082
8083 2003-08-11  Matthias Clasen  <maclas@gmx.de>
8084
8085         Add support for EWMH "Above" and "Below" window states.  (105100,
8086         Manuel Clos)
8087         
8088         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
8089         State" demo.
8090
8091         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
8092         gtk_window_set_keep_below.
8093
8094         * gtk/gtk.def: Add gtk_window_set_keep_above and
8095         gtk_window_set_keep_below.
8096
8097         * gtk/gtkwindow.c (gtk_window_set_keep_below):
8098         (gtk_window_set_keep_above): New functions, call the corresponding
8099         gdk functions.
8100
8101         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
8102         function, sets _NET_WM_STATE_BELOW.
8103         (gdk_window_set_keep_above): New function, sets
8104         _NET_WM_STATE_ABOVE.
8105
8106         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
8107         gdk_window_set_keep_below.
8108
8109         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
8110         GDK_WINDOW_STATE_BELOW.
8111
8112         * gdk/gdk.def: Add gdk_window_set_keep_above and
8113         gdk_window_set_keep_below.
8114
8115         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
8116         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
8117         xmlcatalog in PATH.  (#119115)
8118
8119 2003-08-10  Matthias Clasen  <maclas@gmx.de>
8120
8121         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
8122         public.  (#119463)
8123
8124 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
8125
8126         * gdk/gdkevents.h:
8127         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
8128         docs on GdkFilterFunc and GdkFilterReturn.
8129
8130 2003-08-09  Matthias Clasen  <maclas@gmx.de>
8131
8132         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
8133         to let the mouse wheels select the month. Scrolling down
8134         moves forward in time. (#53134, Abigail Brady) 
8135
8136         * gtk/gtkcalendar.c: Complete the RTL flipping support for
8137         GtkCalendar, make it possible to flip the headings using the
8138         "magic translated string" technique.  Translators, note the
8139         comment in gtk_calendar_init() explaining this.  (#102416)
8140
8141         * gtk/gtkcalendar.c: Get the information about the first day of
8142         the week from the locale using another instance of the "magic
8143         translated string" technique.  Ignore the display option
8144         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
8145
8146         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
8147         date is dragged as text, formatted via strftime %x. Text drops are
8148         accepted if g_date_set_parse() can make sense of the text. A
8149         dedicated data format for date DND has not been introduced yet,
8150         since there didn't seem to be sufficient consensus on such a
8151         format on xdg-list.  (#117297)
8152         
8153 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8154
8155         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8156         Fix a segfault.  (#115284, Jan Kratochvil)
8157
8158 2003-08-08  Tor Lillqvist  <tml@iki.fi>
8159
8160         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8161         coordinates for events that have such. Print coordinates for enter
8162         and leave events.
8163
8164         (gdk_event_translate): Don't use event uninitialixed in the
8165         return_exposes branch of the WM_PAINT handler.
8166
8167         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8168         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
8169         Must offset top-level window coordinates here, too.
8170
8171 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8172
8173         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8174         when maximized or fullscreen.
8175
8176 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8177
8178         * gdk/win32/gdkinput-win32.h
8179         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8180         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8181         used.
8182
8183         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8184         accordingly, in fact an uninitialised variable was dereferenced.
8185         
8186
8187         [Win32] Add support for multiple monitors. 
8188         
8189         * gdk/win32/gdkprivate-win32.h
8190         * gdk/win32/gdkglobals-win32.c: New global variables for
8191         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8192         _gdk_offset_x and _gdk_offset_y.
8193         
8194         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8195         functions, enumeration functions passed to EnumDisplayMonitors().
8196
8197         (gdk_display_open): If the EnumDisplayMonitors() and
8198         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8199         if to find out monitor info.
8200
8201         Calculate the offset between Win32 coordinates (relative to the
8202         primary monitor's origin (and thus negative on monitors to the
8203         left of or above it), and GDK's (visible coordinates should be
8204         non-negative).
8205         
8206         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8207         gdk_screen_get_monitor_geometry): Use information collected above.
8208
8209         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8210         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8211
8212         (gdk_window_get_geometry, gdk_window_get_origin,
8213         gdk_window_get_frame_extents): For top-level windows, add
8214         _gdk_offset_{x,y} to GDK root window coordinates
8215
8216         Still need to handle multiple monitors in
8217         gdk_window_fullscreen(). Probably should make the window
8218         fullscreen on the monitor where the cursor is?
8219
8220         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8221         root window coordinates in GdkEvents.
8222
8223         
8224         [Win32] Fix geometry hint handling. Add support for resize
8225         increment and base size, and aspect ratio geometry hints. The
8226         "gridded geometry" test in testgtk now works beautifully.
8227
8228         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8229         Turns out this function shouldn't actually ever modify the
8230         window's size, just store the hints. (Old code kept for a while
8231         inside #if 0.)
8232
8233         (gdk_window_set_hints): Remove presumably broken code that handles
8234         the position hints, this function is obsolete anyway.
8235
8236         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8237         variables, not used.
8238
8239         (adjust_drag): New function, used to implement resize increment
8240         hints.
8241
8242         (gdk_event_translate): Handle WM_SIZING, implement resize
8243         increment and base size, and aspect ratio geometry hints here. The
8244         WM_GETMINMAXINFO handler takes care of the minimum and maximum
8245         size hints as before. Fix the WM_GETMINMAXINFO handler to take
8246         into account window decorations. No need to modify the
8247         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8248         the defaults are fine.
8249         
8250         * gdk/win32/gdkprivate-win32.h 
8251         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8252         _gdk_win32_get_adjusted_client_rect): New helper functions.
8253
8254 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8255
8256         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8257         toplevel->have_* flags before iterating over the _NET_WM_STATE 
8258         atoms.  (#119217) 
8259
8260 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
8261  
8262         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
8263         Fix a bug where on theme change, resize/redraw wasn't
8264         properly getting queued on toplevel windows. (#116346,
8265         Rajkumar Siva)
8266  
8267         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
8268         Fix bug where wrong coordinates were used for toplevel
8269         window.
8270  
8271 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
8272
8273         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8274         page_num variable (Archit Baweja)
8275
8276 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8277
8278         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8279         cope with C libraries with crippled locale support.  (#115293)
8280
8281 2003-08-07  Hans Breuer  <hans@breuer.org>
8282
8283         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8284         (only if the new window not known to Gdk) to get proper
8285         leave notification, and get rid of the wrong placed 
8286         tooltips, bug #102283
8287  
8288         (gdk_event_translate) : small code reordering to not get
8289         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
8290         menus, bug #117367
8291
8292 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8293
8294         * gdk/gdk.def
8295         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8296         missing function, trivially implement.
8297
8298 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8299
8300         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
8301         rendering.  (#118646, Charles Kerr) 
8302
8303 2003-08-06  Hans Breuer  <hans@breuer.org>
8304
8305         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8306         initialize bits to 0 (probably default on NT)
8307
8308         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8309         now it works as intended ;-)
8310
8311 2003-08-04  Hans Breuer  <hans@breuer.org>
8312
8313         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8314         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8315
8316         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8317         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8318
8319         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8320         against all expectations it is basically ony a call with WM_SETICON
8321         needed (the visual effect is there, though colors or mask are
8322         still somewhat wrong).
8323         * gdk/win32/gdkwindow-win32.h : place to store the HICON
8324
8325         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8326         pixel drawing as it was fixed at 1999-08-23
8327
8328         gtk/gtk.def : updated
8329
8330 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
8331
8332         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
8333         Add a missing break. (#119156, Callum McKenzie)
8334
8335 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8336
8337         * gtk/gtkmenu.c (gtk_menu_position): New positioning
8338         algorithm.(#116649)
8339
8340 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8341
8342         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8343         property
8344         
8345         * gtk/gtkradiotoolbutton.c
8346         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8347
8348         * gtk/gtkradiotoolbutton.c
8349         (gtk_radio_tool_button_new_with_stock_from_widget): make this
8350         function take a stock_id.
8351
8352         * gtk/toolbar: documentation
8353
8354 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
8355
8356         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
8357         Fix problem where use_xshm was getting set wrong if
8358         MIT_SHM wasn't found. (George Lebel)
8359
8360 2003-08-04  Tor Lillqvist  <tml@iki.fi
8361
8362         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8363         actually use the passed-in filter list. The function also needs a
8364         GdkWindow parameter, as filter functions expect
8365         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8366
8367 2003-08-03  Matthias Clasen  <maclas@gmx.de>
8368
8369         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
8370         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8371         the term "virtual screen".  (#119030, Tor Lillqvist)
8372
8373 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8374
8375         * tests/testtext.c (test_init): 
8376         * tests/testgtk.c (test_init): 
8377         * tests/testdnd.c (test_init): 
8378         * demos/pixbuf-init.c (pixbuf_init): 
8379         * demos/gtk-demo/main.c (main): Use g_setenv().
8380
8381         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8382         g_unsetenv(). 
8383
8384 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
8385
8386         * configure.in: Requires glib-2.3.0, pango-1.2.0.
8387
8388         * configure.in: Require Xft version 2,
8389         remove code for handling older versions of pango and Xft.
8390         Many miscellaneous improvements to X checks
8391
8392         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
8393         a library to a variable, avoiding dups.
8394
8395         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
8396         Always load "fixed"
8397
8398         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8399         for pangox.
8400
8401 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8402
8403         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
8404         (palette_drop_handle): 
8405         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
8406         drops with the wrong format, since the KDE color chooser incorrectly
8407         drops application/x-color with format 8.  (#118810)
8408
8409         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
8410         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
8411         Accept drops with the wrong format, since the KDE color chooser 
8412         incorrectly drops application/x-color with format 8.  (#118810)
8413
8414 2003-08-02  Tor Lillqvist  <tml@iki.fi>
8415
8416         Fix gdk/win32 window geometry handling again. The window position
8417         in a GDK_CONFIGURE event should be that of the client area, not of
8418         the window decorations. (I was confused by the term "window
8419         border" in X11. It does *not* mean the window manager
8420         decorations. There are no X11-style window borders in Win32.)
8421         Also, this time do take the geometry hints into account
8422         appropriately when moving windows. Now testgtk's gravity test's
8423         move buttons work OK. There are stil problems with taking gravity
8424         into account when showing a hidden window.
8425
8426         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8427         instead of separate fields.
8428         
8429         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8430         adjust for decorations.
8431
8432         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8433         adjust_for_gravity_hints): New functions.
8434         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8435         above functions, take geometry hints into account.
8436         (gdk_window_set_geometry_hints): Size hints specicy client area,
8437         not including decorations.
8438
8439 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
8440
8441         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8442         return an absolute path (#115590), fix a problem where
8443         you could crash the file selector with a looong name
8444         by returning a newly allocated buffer.
8445
8446 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
8447
8448         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8449         bug in rarely or never hit code path (#118071,
8450         Tor Lillqvist)
8451
8452 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
8453
8454         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
8455         If the check for missing depths, try actually creating pixmaps
8456         of the depths to deal with Xinerama not reporting
8457         all the depths it should. (#115822)
8458
8459 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
8460
8461         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8462         forward KeyRelease events as well as KeyPress events.
8463         (#115597)
8464
8465 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
8466  
8467         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8468         if argc is 0 as well, instead of leaving it unset.
8469         (#116023, Michael Meeks)
8470  
8471 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8472
8473         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8474         default to TRUE; ignore the property when api_mode != NEW_API
8475
8476 2003-07-31  Matthias Clasen  <maclas@gmx.de>
8477
8478         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8479         to icon, to pacify gtk-doc.
8480
8481         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
8482         example. 
8483
8484 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8485
8486         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8487
8488 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8489
8490         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8491         overflow_item field.
8492
8493 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8494
8495         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8496         an internal function
8497
8498         * gtk/gtktoolitem.h: remove unused declaration of
8499         _gtk_tool_item_get_drag_window().
8500
8501 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8502
8503         * gtk/gtktoolbutton.[ch]:
8504         (gtk_tool_button_new): swap icon_widget and label arguments to
8505         match BonoboUIToolbarButton.
8506
8507         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8508
8509 2003-07-30  Matthias Clasen  <maclas@gmx.de>
8510
8511         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8512         signal docs. 
8513
8514 2003-07-29  Tor Lillqvist  <tml@iki.fi>
8515
8516         Fix for #108007, #112402, #117042: There was confusion in
8517         gdk/win32 at various places whether a window position refers to
8518         the decoration position or the client area position. Also whether
8519         window size includes decorations or not.
8520         
8521         The correct interpretation apparently is that in GDK (like in
8522         X11), a top-level window position means the decoration's position,
8523         but size means the window's inner size (client area size). In the
8524         Win32 API, the window size usually includes the decorations,
8525         though.
8526         
8527         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
8528         #ifdef G_ENABLE_DEBUG.
8529         (handle_configure_event): New function, generates GDK_CONFIGURE
8530         events from WM_SIZE and WM_MOVE messages. Even if no event is
8531         generated because of the event mask, still set the private
8532         position and size fields. Calculate position and size correctly.
8533         (gdk_event_translate): Call handle_configure_event().
8534
8535         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
8536
8537         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
8538         macros. Cosmetic debugging output changes.
8539         (SafeAdjustWindowRectEx): Remove. If an application wants to
8540         locate a window outside of the screen, it's not GDK's business to
8541         prevent it. And anyway, with multiple monitors, negative
8542         coordinates are perfectly normal.
8543         (gdk_window_new): Adjust the window size for decorations after
8544         _gdk_window_init_position() has done its job. (But the big window
8545         code currently is presumably broken on Win32 anyway.)
8546         (gdk_window_move): The position passed in is supposed to be that
8547         of the window border, so don't need to adjust for decorations.
8548         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
8549
8550 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8551
8552         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
8553         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
8554         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
8555         gtk_toolbar_append_space, gtk_toolbar_insert_item,
8556         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
8557         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
8558         gtk_toolbar_new, gtk_toolbar_prepend_item):
8559
8560         Move documentation inline from template files.
8561
8562         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
8563         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
8564         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
8565         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
8566         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
8567         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
8568         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
8569
8570         Copy documentation from stable that was added after the EggToolbar
8571         branched.
8572
8573         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
8574
8575 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8576
8577         * gtk+/docs/: Commit autogenerated changes, so patches will make
8578         sense.
8579
8580 2003-07-27  Tor Lillqvist  <tml@iki.fi>
8581
8582         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
8583         the keyboard state returned by GetKeyboardState() doesn't
8584         distinguish between the left and right Control and Alt keys. Thus
8585         we cannot detect AltGr (which is supposed to be left Control +
8586         right Alt) the same way as on NT-based systems, but have to accept
8587         either Control + either Alt as AltGr.
8588
8589 2003-07-27  Matthias Clasen  <maclas@gmx.de>
8590
8591         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8592         Fix function name in warning message.  (#118156, Tim-Philipp
8593         Mller)
8594
8595         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
8596         is-expander and is-expanded are boolean properties, not ints.
8597         (#118359, Josh Parsons)
8598
8599 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8600
8601         * gtk/gtkimagemenuitem.c
8602         (gtk_image_menu_item_toggle_size_request): don't request
8603         toggle_space when the image width is 0.
8604
8605 2003-07-25  Tor Lillqvist  <tml@iki.fi>
8606
8607         * gdk/win32/gdkprivate-win32.h
8608         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
8609         and _gdk_keyboard_has_altgr.
8610         
8611         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
8612         ones detailled here.
8613
8614         Code that has been ifdeffed out for a long time removed. Remove
8615         some really old doc comments that were left behind for some public
8616         functions, the official ones are in the X11 backend anyway. Change
8617         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
8618         multi-line boolean expressions to have the operators at ends of
8619         lines.
8620
8621         As mouse capture with SetCapture() indeed seems to work OK, no
8622         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
8623
8624         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
8625         needed at some time, and things seem to work fine now without
8626         (knock on wood).
8627
8628         Ifdef out the search for some Latin locale keyboard layout being
8629         loaded. Not used currently, but might be needed after all, if we
8630         decide that we want to be able to generate ASCII control character
8631         events with a non-Latin keyboard.
8632
8633         (assign_object): New helper function, handles the g_object_ref()
8634         and unref() calls when assigning GObject pointers.
8635                 
8636         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
8637         enter event when the pointer has moved to an ancestor window. Was
8638         left out by mistake.
8639
8640         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
8641
8642         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
8643         functionality, using ClipCursor().
8644                 
8645         (find_window_for_mouse_event): Splice part of code into new
8646         function find_real_window_for_grabbed_mouse_event().
8647
8648         (fixup_event, append_event, apply_filters): New functions, code
8649         refactored out from elsewhere.
8650
8651         (synthesize_enter_or_leave_event, synthesize_leave_event,
8652         synthesize_enter_event,
8653         synthesize_leave_events,synthesize_enter_events): Also take a
8654         GdkCrossingMode parameter, in preparation to generating
8655         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
8656
8657         (fixup_event, append_event, fill_key_event_string): New functions,
8658         code refactoring.
8659
8660         (vk_from_char, build_keypress_event, build_keyrelease_event):
8661         Removed as part of dropping WM_CHAR handling.
8662
8663         (build_key_event_state,gdk_event_translate): Call
8664         GetKeyboardState(), once, for each keyboard message, instead of
8665         several calls to GetKeyState() here and there.
8666
8667         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
8668         at it, do some major refactoring, and some fixes for potential
8669         problems noticed while going through the code.
8670
8671         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
8672         WM_KEYUP. Don't need the state variables related to whether to
8673         wait for WM_CHAR or not, and whether the current key is
8674         AltGr. Remove lots of complexity. Thus don't need the
8675         use_ime_composition flag.
8676
8677         Not handling WM_CHAR means dead key handling will have to be taken
8678         care of by GTK, but that seems to work fine, so no worry.
8679
8680         Another side-effect is that Alt+keypad digits don't work any
8681         longer, but it's better to learn to use GTK's ISO14755 support is
8682         anyway.
8683
8684         Be more careful in checking whether AltGr is involved. Only
8685         attempt to handle it if the keyboard actually has it. And
8686         explicitly check for *left* Control plus *right* Alt being
8687         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
8688         chars.
8689
8690         Handle keys using similar code as in the X11 backend. As we have
8691         built a keymap in gdkkeys-win32.c anyway, use it by calling
8692         gdk_keymap_translate_keyboard_state() to look up the keysym from
8693         the virtual key code and keyboard state. Build the key event
8694         string in exactly the same way as the X11 backend.
8695
8696         If an IME is being used, don't generate GDK events for keys
8697         between receiving WM_IME_STARTCOMPOSITION and
8698         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
8699         
8700         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
8701         the IME, not just the first one.
8702
8703         gdk_event_translate() is still quite complex, could split the
8704         message handler cases out into separate functions.
8705
8706         On mouse events, when the mouse is grabbed, use
8707         find_real_window_for_grabbed_mouse_event() in order to be able to
8708         generate correct crossing events.
8709         
8710         No longer take a pre-allocated GdkEvent as parameter. Instead,
8711         allocate events as needed and append them to the queue. (This is
8712         different from how gdk_event_translate() in the X11 backend
8713         works.) This change made the code much clearer, especially in the
8714         cases where we have to generate several GDK events for one Windows
8715         message.  Return FALSE if DefWindowProc() should be called, TRUE
8716         if not. If DefWindowProc() should not be called, also return the
8717         value to be returned from the window procedure.
8718
8719         (Previously, the interaction with gdk_event_translate()'s caller
8720         was much more complex, when we had to indicate whether the
8721         already-queued event should be left in the queue or removed, and
8722         in addition also had to indicate whether to call DefWindowProc()
8723         or not, and what value to return from the window procedure if
8724         not.)
8725
8726         Don't use a separate "private" variable required to be pointing to
8727         the GdkWindowObject of the "window" variable at all times. Just
8728         use casts, even if looks a bit uglier.
8729
8730         Notice destroyed windows as early as possible, and break out of
8731         the messsage switch.
8732
8733         Use _gdk_pointer_root as current_window when the pointer is
8734         outside GDK's top-level windows.
8735         
8736         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
8737         appropriate, based on ImmIsIME().
8738         
8739         (gdk_event_translate, gdk_event_send_client_message_for_display,
8740         gdk_screen_broadcast_client_message): Implement client messages.
8741         Use a registered Windows message to pass GDK client messages. Note
8742         that the amount of user data is restricted to four bytes, as it is
8743         carried in the LPARAM. (The WPARAM is used for the message type
8744         "atom".)
8745         
8746         (real_window_procedure): Adapt for new gdk_event_translate()
8747         interface.
8748
8749         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
8750         _gdk_input_locale_is_ime initially.
8751
8752         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
8753         of g_colormap_ref()/unref().
8754
8755         (gdk_window_new): Made code a bit more like the X11 one, pretend
8756         to handle screens (although we just have one for now).
8757
8758         * gdk/x11/gdkevents-x11.c
8759         (gdk_event_send_client_message_for_display,
8760         gdk_screen_broadcast_client_message): Document the user data
8761         limitation on Win32.
8762
8763         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
8764         and leave notify detail output.
8765
8766         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
8767         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
8768         for those, so that the GtkIMContextCimple compose tables will
8769         work. Deduce if the keyboard layout has the AltGr key, and set the
8770         above flag accordingly.
8771
8772 2003-07-26  Matthias Clasen  <maclas@gmx.de>
8773
8774         * gtk/gtkwidget.c: Document DND signals.
8775
8776 2003-07-24  Matthias Clasen  <maclas@gmx.de>
8777
8778         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
8779         insensitive when editing isn't possible.  (#118150)
8780
8781 2003-07-23  Matthias Clasen  <maclas@gmx.de>
8782
8783         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
8784         spinbutton wrap.  (#118097, John Darrington)
8785
8786         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
8787
8788 2003-07-20  Hans Breuer  <hans@breuer.org>
8789
8790         * makefile.msc : new file to build it all
8791         * Makefile.am : ... added to EXTRA_DIST
8792
8793         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
8794           gtk/makefile.msc.in tests/makefile.msc : updated
8795
8796         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
8797         functions
8798
8799         * gtk/gtkbbox.c : use g_return_val_if_fail() if
8800         there is a value to return
8801
8802         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
8803         static correctness
8804
8805         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
8806         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
8807
8808         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
8809
8810         * gtk/gtkimmulticontext.c : use gtkprivate.h
8811
8812         * gtk/stock-icons/stock_color_picker_25.png
8813           gtk/stock-icons/stock_jump_to_rtl_16.png
8814           gtk/stock-icons/stock_jump_to_rtl_24.png
8815           gtk/stock-icons/stock_redo_rtl_16.png
8816           gtk/stock-icons/stock_redo_rtl_24.png
8817           gtk/stock-icons/stock_undelete_rtl_16.png
8818           gtk/stock-icons/stock_undelete_rtl_24.png
8819           gtk/stock-icons/stock_undo_rtl_16.png :
8820           gtk/stock-icons/stock_undo_rtl_24.png :
8821         readded as binary
8822
8823 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8824
8825         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
8826         leftover request of {xy}thickness
8827
8828 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8829
8830         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
8831         attempt to add a NULL icon to the box.
8832
8833 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8834
8835         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
8836         on focus in/out.
8837
8838 2003-07-19  Matthias Clasen  <maclas@gmx.de>
8839
8840         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
8841         * gtk/gtkiconfactory.c (get_default_icons): Add
8842         stock_dialog_authentication_48.  (#65765) 
8843         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
8844         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
8845
8846         * gtk/gtkbbox.h: 
8847         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
8848         function. (#64562) 
8849
8850 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8851
8852         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
8853         declaration
8854
8855         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
8856         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
8857         instead of full draws.
8858
8859 2003-07-18  Matthias Clasen  <maclas@gmx.de>
8860
8861         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
8862
8863         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
8864         signal, move_viewport. 
8865         (gtk_text_view_move_viewport): New function which implements the
8866         move_viewport functionality. 
8867         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
8868         the viewport. (#78669) 
8869
8870         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
8871         move_viewport argument. 
8872
8873         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
8874         property.  (#111779) 
8875
8876         * gtk/gtkwindow.h: 
8877         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
8878
8879         * gtk/gtkmessagedialog.h:
8880         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
8881         (#65501, Sebastian Rittau)
8882
8883 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8884
8885         * gtk/gtktextview.c (changed_handler): use
8886         gtk_widget_queue_resize_noredraw().
8887
8888 2003-07-16  Jody Goldberg <jody@gnome.org>
8889
8890         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
8891
8892 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8893
8894         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
8895         API. 
8896
8897 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8898
8899         By popular request give toolbuttons a border.
8900         
8901         * gtk/gtktoolitem.c
8902         (gtk_tool_item_size_allocate):
8903         (gtk_tool_item_size_request): don't request and allocate a border
8904         around the child
8905
8906         * gtk/gtktoolbutton.c 
8907         (gtk_tool_button_size_allocate):
8908         (gtk_tool_button_size_request): remove these functions
8909
8910         * gtk/gtktoolbar.c 
8911         (gtk_toolbar_size_request):
8912         (gtk_toolbar_size_allocate): request and allocate a border if we
8913         have a shadow.
8914
8915 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
8916
8917         Merged from stable.
8918
8919         Fixes issues pointed out by Morten Welinder in #115140.
8920
8921         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
8922         (do_validate_rows): update validated_area with a logic OR instead
8923         of a bitwise OR,
8924         (validate_rows_handler): make the if statement match the one in
8925         validate_rows(), so we don't leak the timeout.
8926
8927 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
8928
8929         Merged from stable.
8930
8931         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
8932         should only grab focus back if the "cell_editable" widget still
8933         has focus. (Fixes #110104, testcase provided by Marco Pesenti
8934         Gritti).
8935
8936 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
8937
8938         Merged from stable.
8939
8940         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
8941         Don't set attr.event_mask twice, those things were meant to be
8942         ORred. (#115139, pointed out by Morten Welinder).
8943
8944 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
8945
8946         Merged from stable.
8947
8948         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
8949         if needed. (Fixes #115869, reported by Michael Natterer).
8950
8951 2003-07-15  Matthias Clasen  <maclas@gmx.de>
8952
8953         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
8954         Fight against gtk-doc stupidity.
8955
8956 2003-07-13  Matthias Clasen  <maclas@gmx.de>
8957
8958         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
8959         targets, to pacify gtk-doc.
8960
8961 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8962
8963         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
8964         label_text, label_widget and icon_widget. (#117312, 
8965         Christian Persch)
8966         
8967 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8968
8969         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
8970         "horizontal-offset" and "vertical-offset" that determines the
8971         position of the menu when it is a submenu. 
8972
8973         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
8974         submenus according to new vertical- and horizontal-offset
8975         properties.
8976
8977 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
8978
8979         Merged from stable.
8980
8981         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
8982         case drags to "0", scroll to the top after dropping. (Fixes #94968,
8983         reported by Alp Toker).
8984
8985 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
8986
8987         Merged from stable.
8988
8989         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
8990         code (#115784, Owen Taylor).
8991
8992 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
8993
8994         Merged from stable.
8995
8996         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
8997         free the old text and extra_attrs *after* we parsed the new
8998         markup string. (Fixes #114485, reported by Owen Taylor).
8999
9000 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
9001
9002         Merged from stable.
9003
9004         Fixes #113904, testcase provided by Rene Seindal.
9005
9006         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
9007         pressed_button to -1 when a row has been activated,
9008         (gtk_tree_view_motion_bin_window): only start a drag if there's
9009         a button being pressed.
9010
9011 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
9012
9013         Merged from stable.
9014
9015         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
9016         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
9017         to avoid a roundtrip (#110272, Owen Taylor).
9018
9019 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
9020
9021         Merged from stable.
9022
9023         This patch really really fixes scrolling. Related bugs: #81627,
9024         testcase provided by Timo Sirainen, #111500, testcase provided by
9025         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
9026
9027         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
9028         which is equal to the lower border of the window means scrolling
9029         to an invisible row, always update the dy when scrolling to an
9030         invisible row, corrected area_above/below calculations for
9031         invisible rows, when walking the tree correct the size
9032         subtracted for invalidated rows, fix wrong logic in comment.
9033
9034 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9035
9036         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
9037         mime_types.  (#117219, Steve Chaplin)
9038
9039 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
9040
9041         * gdk/x11/gdkevents-x11.c (get_real_window)
9042         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
9043         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
9044         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
9045         Don't assume that all events start with XEventAny - Xkb events
9046         don't! (#105745). So, only do that for core events, and for
9047         non-core events, add a system for registering event types
9048         that start with XEventAny.
9049
9050         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
9051         Check to see if the result of gdk_window_lookup_for_display()
9052         is actually a window.
9053
9054 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
9055
9056         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
9057         check a silent assert, so it follows the g_free() behaviour.
9058
9059 2003-07-11  Matthias Clasen  <maclas@gmx.de>
9060
9061         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
9062         vertically.  (#109823, Joe Shaw)
9063
9064 2003-07-11  Morten Welinder  <terra@gnome.org>
9065
9066         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
9067         access error.  (#69436)
9068
9069 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
9070
9071         Landing GtkTreeModelFilter and the completion code. (Test program
9072         and documentation will follow next week).
9073
9074         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
9075         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
9076
9077         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
9078         necessary code to hook up completion.
9079
9080         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
9081         GtkCellLayout interface.
9082
9083         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
9084
9085         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
9086         source files.
9087
9088 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
9089
9090         Merge from stable.
9091
9092         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
9093         directly return from ->window_at_pointer, but set win_x and win_y
9094         first if needed. (Fixes #110166, reported by Arno Charlet).
9095
9096         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
9097         function to accept GdkDrawables and not just GdkWindows. This was
9098         already done in some other functions a while back, but this patch
9099         got lost for some reason.
9100
9101 2003-07-09  Matthias Clasen  <maclas@gmx.de>
9102
9103         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
9104         direction when sorting children.  (#116540, Soeren Sandmann)
9105
9106 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
9107
9108         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
9109         Change _gdk_x11_send_xevent_async() to 
9110         _gdk_x11_send_client_message_async() avoid using Xlib
9111         internals that are different on Solaris. 
9112         (#116917, Morten Welinder)
9113
9114 2003-07-08  Matthias Clasen  <maclas@gmx.de>
9115
9116         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
9117         (#116501, Doug Quale)
9118
9119 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9120
9121         * gtk/gtktoggletoolbutton.h: remove strange #define
9122         * gtk/gtktoolbutton.h: fix cut'n'paste error
9123         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
9124         private data
9125         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
9126         private data instead of g_new0()
9127         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
9128         instance private data
9129
9130 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9131
9132         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
9133         for INPUT_ONLY window
9134         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
9135         * gtk/gtknotebook.c (gtk_notebook_realize): same
9136         * gtk/gtkexpander.c (gtk_expander_realize): same
9137         * gtk/gtkrange.c (gtk_range_realize): same
9138
9139         Fix #116303
9140
9141 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9142
9143         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
9144         when detail is "menuitem". With the new menu look is isn't needed
9145         anymore.
9146
9147         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
9148         resize here, so that tool items will get a chance to relayout
9149         themselves based on the toolbar configuration.
9150
9151         change DEFAULT_SPACE_SIZE to 4 instead of 5
9152
9153         * gtk/gtktoolbar.c 
9154         Get rid of "!GTK_BIN (item)->child means separator". Separators
9155         are widgets in their own right
9156
9157         change DEFAULT_SPACE_SIZE to 4 instead of 5
9158         
9159         (get_space_size): remove this function
9160         (toolbar_item_is_homogeneous): new function
9161
9162         * gtk/gtkseparatortoolitem.c
9163         (gtk_separator_tool_item_size_request): new function.
9164
9165 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9166
9167         * gtk/gtktoggletoolbutton.h: use private data, add new
9168         internal function _gtk_toggle_tool_button_get_button()
9169
9170         * gtk/gtktoolbutton.h: move to private data
9171
9172         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9173         private data.
9174
9175 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9176
9177         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9178         type check, (#116947, Krasimir Angelov)
9179
9180         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9181         
9182         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9183         data. Not instance private data yet, because of bug 116921.
9184
9185         * gtk/gtktoolitem.h: new accessors:
9186                 gtk_tool_item_get_homogeneous ()
9187                 gtk_tool_item_get_expand ()
9188                 gtk_tool_item_get_pack_end ()
9189                 gtk_tool_item_get_use_drag_window ()
9190
9191 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9192
9193         * gtk/gtkcellrenderertext.c
9194         (gtk_cell_renderer_text_class_init): remove accidentally committed
9195         debugging spew
9196
9197         * gtk/gtktoolbar.c
9198         (gtk_toolbar_paint_space_line): remove this function
9199         (gtk_toolbar_expose): always propagate expose, even if the item is
9200         a separator item
9201
9202         * gtk/gtkseparatortoolitem.c
9203         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9204         (get_space_size): new function.
9205         (get_space_style): new function
9206
9207 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
9208
9209         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9210         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
9211         of GDK_POINTER_MOTION_HINT_MASK.
9212
9213         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9214         of the drag into an idle as a superior form of 
9215         expose compression.
9216
9217         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9218         creation here, so that we have an icon at the start
9219         of the drag (e.g., when retrieving the window cache
9220         information.)
9221
9222 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9223
9224         * docs/widget_geometry.txt: better drawing of GtkMenuItem
9225         * docs/widget_geometry.txt: add notes about GtkMenu
9226         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9227
9228 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9229
9230         * gtk/gtkmenu.c: add vertical_padding style property.
9231         
9232         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9233         arrow_spacing and horizontal_padding. Also center separators and
9234         make them a bit taller.
9235
9236         * gtk/*menuitem.c: use new style properties.
9237         
9238         * docs/widget_geometry.txt: Add note about GtkMenuItem
9239
9240         * gtk/gtkstyle.c 
9241         (gtk_default_draw_vline, gtk_default_draw_hline):
9242         fix +/-1 errors. 
9243
9244         (gtk_default_draw_shadow): draw a black border around menus.
9245
9246         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9247         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9248         x2 and y1, y2 respectively, not x, width and y, height).
9249
9250 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
9251
9252         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9253         all the atoms in the target list at once.
9254
9255         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9256         Local drag short-circuit.
9257
9258         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9259         local case, poke the actions in directly instead of
9260         going through xdnd_set_actions.
9261
9262         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9263         the local case.
9264
9265         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9266         XSelectInput()/add a filter if the drag is local.
9267
9268         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
9269         Simplify handling of "XdndSelection".
9270
9271         * gdk/x11/gdkevents-x11.c
9272         (gdk_event_send_client_message_to_all_recurse): Somehow,  
9273         a WM_STATE => _NET_WM_STATE change hand been made here.
9274
9275         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9276         xatom_names, not atom_names.
9277
9278         * tests/testdnd.c (target_drag_motion): Make the trashcan
9279         open again. (Got lost in deprecation cleanup.)
9280
9281 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
9282
9283         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9284         earlier, so we don't get a big pile of uncompressed
9285         motion events before the grab takes effect.
9286
9287         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
9288         gdk_window_process_all_updates() so that the area
9289         we are dragging over gets a change to redraw.
9290
9291         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
9292         gdk_window_get_position(), not gdk_window_get_origin().
9293
9294         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9295         gdkdisplay-x11.h: use XShapeQueryExtension to 
9296         avoid duplicate XQueryExtension when we actually
9297         use it. Remove unnecessary caching in GdkDisplayX11.
9298
9299 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
9300
9301         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
9302         Function to get a range of information about all the
9303         children of a window in a single pass.
9304
9305         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9306         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9307         _gdk_x11_get_window_child_info() to greatly reduce
9308         the number of roundtrips.
9309
9310 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
9311
9312         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9313         a function to XSendEvent() and call a calback on
9314         failure/success.
9315
9316         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9317         messages to the same process, use _gdk_send_xevent_async().
9318
9319 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
9320
9321         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9322         toplevel-specific pieces of GdkWindowImplX11 into
9323         a separate GdkToplevelX11 structure.
9324
9325 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
9326
9327         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9328         some leftover fields.
9329
9330 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
9331
9332         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9333         Use asynchronously _gdk_x11_set_input_focus_safe
9334         to avoid having to trap errors and XSync().
9335
9336         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9337         _gdk_x11_set_input_focus_safe() here as well.
9338
9339         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9340         Rework handling of property notifies on _NET_WM_STATE
9341         so that we ignore _NET_WM_DESKTOP notifies unless we
9342         really care.
9343
9344         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9345         XShmQueryExtension() rather than XQueryExtension() to
9346         avoid extra rountrip.
9347
9348         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9349         Remove unused call to XGetWindowAttributes()
9350         
9351         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9352         unused call to XGetKeyboardControl().
9353
9354         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9355         Add (#99571)
9356
9357         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
9358         No-op implementations of gdk_display_flush().
9359
9360         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9361         gdk_display_flush() rather than gdk_flush() to avoid
9362         XSync().
9363         
9364         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9365         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9366         so that we don't have to get the property back from the server.
9367
9368         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9369         the serial of when we map a toplevel to allow optimizing
9370         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9371
9372         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9373         XTranslateCoordinates() for override-redirect windows.
9374
9375 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
9376
9377         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9378         about setting window group after the window is mapped from docs
9379         - nothing the ICCCM forbids that.
9380
9381         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9382         Fix g_return_val_if_fail() in void return function.
9383
9384         * configure.in: Fix misplaced comma that was resulting
9385         in XShm always being disabled.
9386
9387 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9388
9389         * tests/stresstest-toolbar: remove this accidentally committed
9390         file.
9391         
9392         * tests/stresstest-toolbar.c: really add this new test
9393
9394 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9395
9396         * tests/stresstest-toolbar.c: new test for removing items
9397         
9398         * tests/testtoolbar.c: add a popup menu
9399
9400         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9401           assert widget->parent == container when the container is a
9402           toolbar.
9403
9404         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9405         simpler. Also make correct.
9406
9407         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9408         popup_context_menu a boolean handled signal.
9409
9410 2003-07-04  Tor Lillqvist  <tml@iki.fi>
9411
9412         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9413         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9414         the width and height of the bounding rectangle only after the
9415         minumum x and y have been found, and need a separate loop for
9416         it. Thanks to Bruce Hochstetler for providing a sample program
9417         exhibiting the bug.
9418
9419 2003-07-03  Tor Lillqvist  <tml@iki.fi>
9420
9421         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9422         (#116537, Peter Zelezny)
9423
9424 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9425
9426         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9427         fix warning. Assign something to old_value to quiet gcc
9428
9429         * gtk/gtkcalendar.c 
9430         (start_spinning): gtk_timeout_add->g_timeout_add
9431
9432         * gtk/gtkicontheme.c 
9433         (theme_lookup_icon): Make it compile (remove double semicolon)
9434
9435         * gtk/gtktoolbutton.c
9436         (gtk_tool_button_class_init): Long comment about properties.
9437         (gtk_tool_button_class_init): Improve text for "use_underline"
9438         property
9439         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9440         on whether the passed-in label has use_mnemonic set
9441         (gtk_tool_button_create_menu_proxy): Split image cloning out in
9442         new function. Make that function also handle image with pixbuf
9443         storage.
9444         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9445         instead of gtk_container_remove().
9446         (gtk_tool_button_construct_contents): Fix eliding bug
9447
9448         * gtk/gtktoolbar.c
9449         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9450         by Morten Welinder
9451         (gtk_toolbar_button_press): Make popup_context_menu signal provide
9452         coordinates and button number
9453
9454         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9455
9456         * tests/apple-red.png: new file
9457
9458 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
9459          
9460         * gtk/gtkicontheme.[ch]: Implement a loader for
9461         named themed icon based on from gnome-desktop library
9462         by Alex Larsson.
9463
9464         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9465         from gnome-desktop.
9466
9467         * gtk/gtkiconfactory.[ch]: Add
9468         gtk_icon_source_set/get_icon_name() to allow stock icons
9469         to be based off of named theme icons.
9470
9471         * gtk/gtkiconfactory.c: Rework sources so that the source
9472         is *either* a pixbuf, or a filename, or an icon name,
9473         instead of the pixbuf/filename mix it was before. Put a
9474         workaround for get_pixbuf() so that it can return the
9475         filename pixbuf, e.g, for render_icon().
9476
9477         * gtk/gtkiconfactory.c: Make the default setup use
9478         themed icons, and add builtin icons to the default
9479         icon theme for all the standard pixbufs, so we
9480         don't rely on actually having an icon theme on disk.
9481
9482         * gtk/gtkrc.c: Add support for @"icon-name" to specify
9483         a themed icon for a stock icon source.
9484
9485         * tests/Makefile.am test/testicontheme.c: Add a test
9486         program from gnome-desktop.
9487
9488         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9489         Net/IconThemeName / gtk-icon-theme-name setting.
9490
9491         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9492         update the icon cache serial so we don't continually
9493         think we are out-of-date.
9494
9495         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
9496         to ::direction_set that should have been to ::direction-changed
9497
9498 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
9499
9500         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9501         style to the widget.
9502
9503 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9504
9505         * gtk/gtk.h: Add new toolbar headers
9506
9507         * tests/testtoolbar.c: new file
9508
9509         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9510
9511         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9512
9513 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9514
9515         * gtk/gtktoolbar.c:
9516         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9517         inside a for loop (pointed out by Morten Welinder).
9518         (gtk_toolbar_focus_home_or_end): Minor formatting change
9519
9520         Comments from Owen:
9521
9522         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
9523         gtk_toolbar_elide_underscores instead.
9524
9525         * gtk/gtktoolbar.c: rename signal from focus_ends to
9526         focus_home_or_end.
9527         (_gtk_toolbar_elide_underscores): export this as an internal
9528         function.
9529         (gtk_toolbar_move_focus): add comment explaining difference to
9530         gtk_toolbar_focus();
9531         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
9532         TAB_BACKWARD focus the right widgets in RTL mode
9533
9534         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
9535         "label" and "icon" parameters
9536
9537         * gtk/gtktoolbutton.[ch]: remove icon_set property.
9538
9539 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9540
9541         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
9542         (116364, Morten Welinder) 
9543
9544         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
9545         corresponding dialogs.
9546
9547         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
9548         gtkcolorbutton.h.  
9549         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
9550
9551         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
9552
9553         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
9554
9555         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
9556
9557         * gtk/gtkexpander.c: Small additions to the docs. 
9558
9559 2003-07-01  Tor Lillqvist  <tml@iki.fi>
9560
9561         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
9562         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
9563
9564 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9565
9566         * configure.in: Check for Xcursor.
9567         
9568         * gdk/x11/gdkcursor-x11.c:
9569         * gdk/gdkdisplay.h: 
9570         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
9571         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
9572         gdk_display_supports_cursor_color(),
9573         gdk_display_get_default_cursor_size() and 
9574         gdk_display_get_maximal_cursor_size().  (#69436)
9575
9576 2003-06-30  Tor Lillqvist  <tml@iki.fi>
9577
9578         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
9579         callback proc for EnumWindows().
9580         (gdk_drag_find_window_for_screen): Actually take the drag_window
9581         argument into account: Instead of using WindowFromPoint(), use
9582         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
9583         M Brown, Herman Bloggs)
9584
9585         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
9586         gdk_window_ref()/unref() calls with g_object_ref()/unref().
9587         Consistently use %p format in debugging output of pointers and
9588         HANDLEs.
9589
9590 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9591
9592         * gtk/gtkexpander.h: kill some stray characters
9593         breaking the build.
9594
9595 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9596
9597         Add GtkExpander. See discussion in bug #60553.
9598
9599         * gtk/gtkexpander.[ch]: add.
9600         
9601         * gtk/Makefile.am: build gtk-expander.[ch].
9602         
9603         * docs/widget_geometry.txt: add info on the layout
9604         of GtkExpander.
9605
9606 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9607
9608         * gtkradiotoolbutton.c:         new file
9609         * gtkradiotoolbutton.h:            "
9610         * gtktoggletoolbutton.c:           "
9611         * gtktoggletoolbutton.h:           "
9612         * gtktoolbutton.c:                 "
9613         * gtktoolbutton.h:                 "
9614         * gtktoolitem.c:                   "
9615         * gtktoolitem.h:                   "
9616         * gtktoolbar.c: many changes
9617         * gtktoolbar.h: many changes
9618         * gtkseparatortoolitem.c:       new file
9619         * gtkseparatortoolitem.h           "
9620
9621         New toolbar.
9622         
9623         - Items on a toolbar are now separate widgets, instances of a
9624           subclass of GtkToolItem.
9625
9626         - Items there aren't room for on the toolbar are unmapped, and an
9627           overflow menu with a proxy menu item is added instead.
9628
9629         - The toolbar is keyboard navigatable. Press TAB to focus the
9630           first item, then use arrow keys and Ctrl TAB to move around the
9631           toolbar. TAB moves focus out of the toolbar.
9632
9633         - Bascially all of the old toolbar API is deprecated in favor of
9634           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
9635
9636         - The toolbar is backwards compatible with the old toolbar.
9637
9638 2003-06-29  Matthias Clasen  <maclas@gmx.de>
9639
9640         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
9641         from docs, some more formatting fixes. 
9642
9643 2003-06-28  Tor Lillqvist  <tml@iki.fi>
9644
9645         Fix for #111028, thanks to J. Ali Harlow, who writes:
9646         I found that the GdkPixmap->GdkImage reference really isn't
9647         important. It's only really there to have somewhere convenient to
9648         store the location of the pixel data in the pixmap and as an easy
9649         way of accessing the dimensions of that data. I have therefore put
9650         together a fix which removes this reference entirely which seems
9651         to solve the problem.
9652
9653         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
9654         Instead of a pointer to a GdkImage, keep a pointer to the pixels
9655         directly.
9656
9657         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
9658         (_gdk_win32_new_image): New function, replacing the above. Creates
9659         a GdkImage without any associated GdkPixmap.
9660         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
9661
9662         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
9663
9664         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
9665         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
9666         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
9667         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
9668         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
9669         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
9670         Corresponding changes.
9671
9672 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9673
9674         * gtk/gtktreeviewcolumn.c
9675         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
9676         and "is_expanded" if the new value is different fromt he old one.
9677
9678 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
9679
9680         * docs/faq/gtk-faq.sgml: Fix typos. Update
9681         thread example I missed yesterday.
9682
9683 2003-06-24  Matthias Clasen  <maclas@gmx.de>
9684
9685         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
9686         shadow_type. 
9687
9688         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
9689         (gtk_widget_class_list_style_properties): Use same parameter names as in  
9690         header (to silence gtk-doc).
9691
9692         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
9693
9694 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
9695
9696         * docs/faq/gtk-faq.sgml: Thread support updates
9697         from Owen. Various suggestions from Steve Chaplin.
9698
9699 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
9700
9701         * po/id.po: Updated Indonesian translation
9702
9703 2003-06-21  Tor Lillqvist  <tml@iki.fi>
9704
9705         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
9706         emulating X11's automatic grab on button down, pass owner_events
9707         as FALSE. According to the XLib spec, automatic grabs use True for
9708         owner_events when OwnerGrabButtonMask is selected, and I don't see
9709         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
9710         (find_window_for_pointer_event): Improve debugging output.
9711
9712 2003-06-17  Tor Lillqvist  <tml@iki.fi>
9713
9714         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
9715         subdirectory, where libtool 1.5 installs them.
9716
9717         * README.win32: Point to FSF's binary Win32 distribution of
9718         gettext-runtime.
9719
9720 2003-06-17  Matthias Clasen  <maclas@gmx.de>
9721
9722         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
9723         macros to check for XML catalog contents and path, borrowed from
9724         gtk-doc. 
9725         * configure.in: New option --enable-man to enable regeneration of
9726         man pages from Docbook, if the necessary tools are found.
9727
9728 2003-06-15  Matthias Clasen  <maclas@gmx.de>
9729
9730         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
9731         * gtk/gtknotebook.c (gtk_notebook_class_init): 
9732         * gtk/gtkalignment.c (gtk_alignment_class_init): 
9733         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
9734         as 2.4 additions.
9735
9736         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
9737         to the proper place, immediately before the g_signal_new() call.
9738
9739         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
9740         more obvious.  (#115122, Jeff Franks)
9741
9742 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
9743
9744         * gtk/gtkwidget.c: (event_window_is_still_viewable):
9745         Special case pixmaps. (#114880)
9746         
9747 2003-06-12  Matthias Clasen  <maclas@gmx.de>
9748
9749         * gtk/gtkwidget.c: Document child-notify and drag-data-received
9750         signals. Owen, we need to figure out where the best place for
9751         these comments in the source is. I currently put them in front of
9752         the signals enum.
9753
9754 2003-06-11  Matthias Clasen  <maclas@gmx.de>
9755
9756         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
9757
9758 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
9759
9760         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9761         silly typo fix. s/seperator/separator/. This gets rid of the
9762         assert spam when using TreeView.
9763
9764 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9765
9766         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
9767         function for XIM instantiate callback.
9768         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
9769         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
9770         actually made.
9771         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
9772         for XIM's destroy callback.
9773         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
9774         is set or not - if it's not set, call xim_info_try_im() to try to
9775         initiaize it.
9776         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
9777         filter_key_release flag of the context.
9778         * modules/input/gtkimcontextxim.c (get_ic_real): removed
9779         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
9780         code from the removed get_ic_real().
9781
9782         For XIM instantiation, destruction and re-instantiation. With
9783         this, Gtk+ apps will be able to connect or reconnect to the XIM,
9784         when it starts after the apps, or when the XIM gets lost and recover.
9785         (#113099, #107782).
9786
9787 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
9788
9789         Merged from stable.
9790
9791         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
9792         check if width is !null, not *width. Doh.
9793
9794 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
9795
9796         Merged from stable.
9797
9798         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9799         Remove the weird dx logic, get all cell_area and background_area
9800         calculations right. Not sure what was up with it before. (Fixes
9801         #110989, testcase from Vasco Alexandre da Silva Costa).
9802
9803 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9804
9805         * tests/testgtk.c: Make it compile with C89 compilers
9806
9807 2003-06-10  Matthias Clasen  <maclas@gmx.de>
9808
9809         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
9810         property "overwrite".
9811         (gtk_text_view_[gs]et_property): Handle "overwrite".
9812         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
9813         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
9814
9815 2003-06-09  Matthias Clasen  <maclas@gmx.de>
9816
9817         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
9818         properties "resize" and "shrink".
9819         (gtk_paned_[gs]et_child_property): Implementations of 
9820         GtkContainer::[gs]et_child_property.  
9821         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
9822         paned child properties instead of remove/add hacks.  (#114667, 
9823         Soeren Sandmann) 
9824
9825 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
9826
9827         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
9828         out event->window test - it wasn't needed because
9829         of the call to get_widget_coordinates().
9830
9831         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
9832         call to gtk_widget_grab_focus() when not clicking on
9833         any tabs. (Real fix for #114534)
9834
9835 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
9836
9837         * tests/testdnd.c: Use application/x-rootwindow-drop for
9838         root window drops. (#108670, Alex Larsson)
9839
9840         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
9841         Accept either application/x-rootwin-drop (what GTK+ has always used)
9842         or application/x-rootwindow-drop (what the XDND standard specifies).
9843
9844 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
9845
9846         * gtk/gtkwidget.c (event_window_still_viewable): 
9847         Before delivering an event to a widget, check that
9848         (if relevant), the event's window is still viewable.
9849         (#105642, Dennis Björklund)
9850
9851         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
9852         NULL out private->parent, since after destruction
9853         it might not be valid any more.
9854
9855         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
9856         accesses before g_return_val_if_fail(). Treat 
9857         DESTROYED windows as unmapped.
9858
9859 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
9860
9861         * gtk/gtkentry.c: Recompute unconditionally in
9862         gtk_entry_style_set, and in a new gtk_label_screen_changed().
9863         Protect the guts of recompute_idle_func() with
9864         gtk_widget_has_screen(). (#114040, Morten Welinder) 
9865         Fix FALSE/0 confusion.
9866         
9867 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9868
9869         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
9870         Fixes (#114669)
9871
9872 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
9873
9874         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
9875         set_adjustment (viewport, NULL);
9876
9877 2003-06-07  Matthias Clasen  <maclas@gmx.de>
9878
9879         * gtk/gtkiconfactory.c (get_default_icons): 
9880         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
9881         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
9882         undelete and revert.  (#96633)
9883         
9884 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
9885
9886         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
9887         refactoring of code to reduce duplication; fixes include:
9888
9889         - gtk_viewport_realize(): Position the window correct from adjustment 
9890         values. (#110737, Michael Natterer)
9891
9892         - Remove some division-by-zero checks in places where there is no 
9893         longer division. (#110737)
9894
9895         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
9896         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
9897         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
9898
9899         - Switch over to encapsulated lazy-creation for hadjustment/
9900         vadjustment; even with the CONSTRUCT property, we need this after
9901         destroy.
9902
9903         - When updating the adjustment, immediate set their values to
9904         match the the current range of the viewport, and update the 
9905         viewport position to match the value of the new adjustments. 
9906         (Part of #1165)
9907
9908 2003-06-06  Tor Lillqvist  <tml@iki.fi>
9909
9910         * gdk/win32/gdkprivate-win32.h: Fix typo.
9911
9912         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
9913         graphics_exposures and subwindow_mode, too, even if they aren't
9914         currently used.
9915
9916 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
9917
9918         Merged from stable.
9919
9920         * gtk/gtktreeview.c (do_expand_collapse),
9921         (expand_collapse_timeout), (cancel_arrow_animation): made
9922         expand_collapse_timeout a wrapper with locks around     
9923         do_expand_collapse, made cancel_arrow_animation use
9924         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
9925         Peter Bloomfield).
9926
9927 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9928
9929         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
9930         * modules/input/gtkimcontextxim.c (preedit_start_callback,
9931         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
9932         to keep preedit-[start,changed,end] signals from being called during
9933         finalization (#111861).
9934
9935 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
9936
9937         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
9938         presses that are not on the tab (#114534).
9939
9940 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
9941
9942         * demos/Makefile.am: Conditionalize dependencies for
9943         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow). 
9944         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
9945         test-inline-pixbufs.h if we don't have libpng.
9946
9947         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
9948         Add a dependency on gdk-pixbuf.loaders when not 
9949         cross-compiling, remove the dependency on gdk-pixbuf-csource
9950         when not cross compiling.
9951
9952 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
9953
9954         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
9955         gtk_window_get_geometry_info() returning NULL.
9956         (#107311, John Finlay)
9957
9958 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
9959
9960         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
9961         twice the border width from the width/height, not
9962         1x the border width. (#106336, Rodney Dawes)
9963
9964 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
9965  
9966         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
9967         If at the end of the buffer, move to the end iter -
9968         parallels behavior of move_iter_to_previous_line.
9969         (#81960, Padraig O'Briain)
9970  
9971 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
9972
9973         #80023, Yao Zhang, TOKUNAGA Hiroyuki
9974
9975         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
9976         Account for the preedit cursor offset if the iter passed
9977         in is at the same place as the insertion cursor.
9978
9979         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
9980         Encapsulate getting the insertion cursor location.
9981
9982         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
9983         Pass the real y/height to the IM context. Take 
9984         text_view->x/yoffset into account.
9985
9986 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
9987
9988         * gtk/gtktextview.[ch]: Never scroll on focus in
9989         (#81893, Patch from Paolo Maggi)
9990
9991         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
9992         Scroll to the current cursor location before handling
9993         the action, in case the user just tabbed in
9994         and the cursor is offscreen.
9995
9996 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
9997          
9998          #107883, Gustavo GirĂĄldez
9999
10000         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
10001         Split out the case where we know we changed, and 
10002         already dealt with our cached line being invalidated
10003         from external calls to gtk_text_layout_changed.
10004
10005         * gtk/gtktextlayout.c (gtk_text_layout_changed):
10006         Check if the invalidate yrange intersects our
10007         cached line, and clear it if necessary.
10008
10009 2003-06-05  Tor Lillqvist  <tml@iki.fi>
10010
10011         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
10012         filters.
10013
10014 2003-06-05  Matthias Clasen  <maclas@gmx.de>
10015
10016         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
10017         (gtk_text_view_grab_notify): 
10018         (gtk_text_view_state_changed): Implement these
10019         to unobscure cursor when grab shadowed or insensitised.
10020         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
10021         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
10022         gtk_text_view_motion_event().
10023         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
10024
10025         * gtk/gtktextview.c (select_all): New keybinding signal for
10026         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
10027
10028         * gtk/gtkcalendar.c (calendar_timer): 
10029         (stop_spinning): Replace deprecated gtk_timeout_* functions by
10030         their GLib counterparts.  (#114429)
10031
10032         * gtk/gtktreestore.c (gtk_tree_store_new): 
10033         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
10034         types.
10035
10036 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
10037
10038         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
10039         When drawing underlines, join up adjacent runs
10040         where possible, so we don't get changes in 
10041         shaper/font/etc. breaking underlines. (#103662,
10042         Kang Jeong-Hee)
10043
10044 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
10045
10046         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
10047         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
10048         improve the speed of inserting rows into an already sorted list,
10049         #109292
10050
10051 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
10052
10053         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
10054         track of when we have a clip mask set for the GC,
10055         and when we unset it, or switch to a clip region,
10056         immediately call XSetClipMask (..., None) to avoid
10057         Xlib caching stale data. (#111806)
10058
10059         * gtk/gtktextdisplay.c: Don't set a clip mask
10060         when drawing alpha pixmaps; it isn't necessary any more.
10061         (#111806)
10062
10063 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
10064
10065         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
10066         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
10067         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
10068         (#92548, Tim Evans)
10069
10070         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
10071         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
10072         Use state_type = STATE_INSENSITIVE for insensitive menu items.
10073
10074 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
10075
10076         Merged from stable.
10077
10078         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
10079         assert for get_info. (reported by Michael Natterer),
10080         (gtk_tree_view_expand_all_emission_helper),
10081         (gtk_tree_view_expand_all_helper): emit row_expanded for all
10082         expanded rows during an _expand_all operation. (Fixes #111280,
10083         reported by Benjamin Bayart).
10084
10085 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
10086
10087         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
10088         respond to pings on a root window; prevents infinite
10089         loops if we are selecting for SubstructureNotify on the
10090         root window. (#111945, Sergey V. Udaltsov)
10091
10092 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
10093
10094         #71597, reported by Morten Welinder
10095
10096         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
10097         (Patch from Christian Petig)
10098
10099         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
10100         Major rewrite of 555 and 565 conversion routines:
10101
10102         - Move all the bit shifting into a small block of macros,
10103           eliminating much duplication of complicated arithmetic.
10104         - Get rid of 2-pixels at a time code, which was buggy,
10105           hard to maintain, caused unaligned accesses, and
10106           probably didn't actually perform any better.
10107         - Simplify cases where different data types were
10108           used for the little and big endian cases, use
10109           GUINT16_SWAP_LE_BE() where appropriate.
10110                 
10111 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
10112
10113         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
10114         bad optimization for src_rowstride == dest_stride.
10115         (Didn't consider the case where we were copying only
10116         partial widths of a wider source buffer)
10117         (#113034, reported by Hans Petter Jansson)
10118
10119 2003-06-03  Michael Natterer  <mitch@gimp.org>
10120
10121         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
10122         reenabled button_release events for xinput devices. (#113948)
10123
10124 2003-06-03  Christian Rose  <menthos@menthos.com>
10125
10126         * configure.in: Added "li" to ALL_LINGUAS.
10127
10128 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
10129
10130         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
10131         map the event window if the notebook isn't mapped. (#113980,
10132         Richard Reich)
10133
10134 2003-06-02  Sven Neumann  <sven@gimp.org>
10135
10136         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
10137
10138         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
10139
10140 2003-06-01  Matthias Clasen  <maclas@gmx.de>
10141
10142         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
10143         Since: 2.4 to the docs.
10144
10145         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
10146         an example to the docs.  (#98427)
10147
10148 2003-05-30  Murray Cumming  <murrayc@usa.net>
10149
10150         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
10151         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
10152         uses the new private data system - see g_type_class_add_private() in
10153         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10154
10155 2003-05-30  Matthias Clasen  <maclas@gmx.de>
10156         
10157         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10158         signature of gtk_notebook_draw_arrow() for Solaris builds to go
10159         through.  (#114043, Anand Subramanian)
10160
10161 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10162
10163         * modules/input/imipa.c: 
10164         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10165
10166 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10167
10168         * gtk/gtkimmodule.c (_gtk_im_module_list):
10169         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10170
10171 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10172
10173         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10174         label of default input method localizable.
10175         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
10176         use translations of input method context names
10177         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10178           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10179           modules/input/imti-er.c, modules/input/imti-et.c
10180           modules/input/imviqr.c, modules/input/imxim.c
10181         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10182         (#113850).
10183
10184 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
10185
10186         Merged from stable.
10187
10188         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10189         grab separate, the user might clear the tree in the focus-in
10190         callback. (Fixes #113086, testcase from Felipe Heidrich).
10191
10192 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
10193
10194         Merged from stable.
10195
10196         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10197         of row reference when we unset the model. Also reset
10198         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10199
10200 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
10201
10202         Merged from stable.
10203
10204         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10205         the current editing, if it exists. (Fixes #108956, reported by
10206         Michael Natterer).
10207
10208 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
10209
10210         Merged from stable.
10211
10212         * gtk/gtktreeview.c (check_selection_helper): new function,
10213         (gtk_tree_view_row_deleted): traverse the tree from the
10214         deleted node to see whether the selection changed, instead of
10215         just checking this node. (Fixes #107400, reported by 'Duncan').
10216
10217 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
10218
10219         Merged from stable.
10220
10221         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10222         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10223         instead of _maybe_begin_dragging_row, so the icon can be
10224         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10225
10226 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
10227
10228         Merged from stable.
10229
10230         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10231         cell_area x/width for the expander if needed. (Fixes #101748,
10232         reported by Dave Cook and Mariano Suarez-Alvarez).
10233
10234 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
10235
10236         Merged from stable.
10237
10238         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10239         if tree/node are still the same after _internal_select_node.
10240         (Fixes #92256, reported by edscott).
10241
10242 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
10243
10244         Fixes #75745, reported by Richard Hult. Merged from stable.
10245
10246         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10247         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10248         cursor or not.
10249
10250         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10251         if we are rendering a cursor row, and the cell the be
10252         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10253         flag (else we unset it).
10254
10255 2003-05-27  Matthias Clasen  <maclas@gmx.de>
10256
10257         * gtk/gtkwindow-decorate.c: 
10258         * gtk/gtktreeprivate.h: 
10259         * gtk/gtkdnd.c: 
10260         * gdk/win32/gdkwindow-win32.h: 
10261         * gdk/linux-fb/gdkprivate-fb.h: 
10262         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10263         unspecified signedness.  (#112919, Morten Welinder)
10264
10265         * gtk/queryimmodules.c (escape_string): 
10266         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
10267         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
10268         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
10269         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
10270         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
10271         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10272         Morten Welinder) 
10273
10274 2003-05-27  Tor Lillqvist  <tml@iki.fi>
10275
10276         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10277         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10278
10279         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10280         win32/libgdk-win32.la.
10281
10282         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10283
10284 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10285
10286         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10287         scrollbar slider length 21 instead of 7.
10288
10289 2003-05-23  Matthias Clasen  <maclas@gmx.de>
10290
10291         * gtk/gtknotebook.c: Add support for up to four scroll
10292         arrows. Control their display by new style properties
10293         "has_forward_stepper", "has_backward_stepper",
10294         "has_secondary_forward_stepper" and
10295         has_secondary_backward_stepper". (#110540)
10296
10297         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10298         click_child three bits wide, add
10299         has_{before,after}_{previous,next} fields.
10300
10301         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10302         focus out of hex_entry.  (#112665)
10303         (hex_focus_out): New signal handler for focus out of hex entry.
10304
10305 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
10306
10307         * gtk/gtkwidget.c (gtk_widget_realize): 
10308         g_return_if_fail() if
10309         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10310         (#107872, Christian Reis)
10311
10312 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10313
10314         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
10315         (gtk_file_selection_rename_file): Some keynav improvements for the
10316         "Rename File" and "Create Directory" subdialogs: Enter in entry
10317         activates default, default is "Create"/"Rename", Escape cancels
10318         dialog.  (#113110)
10319         (gtk_file_selection_set_filename): Add a hint about opening 
10320         directories.  (#113175)
10321
10322 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10323
10324         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10325         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10326         anyway.  (#113476)
10327
10328 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
10329
10330         * gtk/gtkprogress.c (gtk_progress_set_format_string,
10331         gtk_progress_set_show_text): Always queue a resize ... 
10332         we rely on the size-allocate to do the update, plus a 
10333         different format can actually change our size requisition.
10334         (#111052, Vasco Alexandre da Silva Costa)
10335
10336         * gtk/gtkprogress.c (gtk_progress_changed): Track
10337         ::changed as well as ::value_changed, and queue a
10338         resize on ::changed when necessary.
10339
10340         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
10341         Call gtk_progress_changed() here to update or 
10342         queue a resize as necessary.
10343
10344 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10345
10346         * gtk/gtkimcontextsimple.c: added composing rules of
10347         Greek accented letters, patch by Vasilis Vasaitis (#107507)
10348
10349 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10350
10351         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
10352         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10353         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10354
10355 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10356
10357         * gtk/gtkimcontextsimple.c: 
10358         code that can check the compose table for ascending order,
10359         by Vasilis Vasaitis (#104862).
10360
10361 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
10362
10363         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
10364         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
10365         to handle the case where a modifier not in the mask
10366         (like Num_Lock) changes the key value, so replace
10367         the masked state with a state/mask pair. (#106913,
10368         Olivier Ripoll)
10369
10370         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10371         in state/mask pair to _gtk_key_hash_lookup()
10372
10373 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10374
10375         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10376         fix a memory leak, free input context list (#113259).
10377
10378 2003-05-21  Matthias Clasen  <maclas@gmx.de>
10379
10380         * configure.in (all_loaders): Add pcx.
10381
10382         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
10383
10384 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
10385
10386         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10387         accept a missing gtk.immodules file, some people
10388         want to run without one. (#112406, patch from
10389         Arnaud Charlet)
10390
10391 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
10392
10393         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
10394         height/width confusion (#113370, Xan Lopez)
10395
10396 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
10397
10398         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10399         zero all unused parts of client messages (Mainly Motif DND
10400         and EWMH). Also, fix a couple places where we were putting
10401         contents into Motif DND messages that didn't belong.
10402         (#113361, EWMH problem reported by Lubos Lunak)
10403
10404         * gtk/gtkselection.c (_gtk_selection_request): Handle the
10405         case where the property type for the multiple atoms is
10406         ATOM_PAIR by doing the conversions ourselve. This is
10407         needed for Xt inter-operation.
10408
10409 2003-05-19 Arafat Medini <lumina@silverpen.de>
10410
10411         * configure.in: Added ar to ALL_LINGUAS
10412
10413 2003-05-19  Matthias Clasen  <maclas@gmx.de>
10414
10415         * gtk/gtksettings.c (gtk_rc_property_parse_border,
10416         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10417         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10418         Add docs.
10419
10420         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
10421         gtk_widget_class_install_style_property_parser): Add docs. 
10422
10423 2003-05-17  Matthias Clasen  <maclas@gmx.de>
10424
10425         * tests/prop-editor.c: Add navigation for object properties, so
10426         that you can easily edit the properties of the parent of a widget.
10427         (#113152)
10428
10429 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
10430
10431         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10432         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
10433         inconsistency and leave the old name as an aliass (#104873)
10434
10435 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
10436
10437         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10438         from Charles Schmidt to add missing notify (#108305)
10439
10440 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
10441  
10442         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10443         (#105500, Morten Welinder.)
10444  
10445 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10446
10447         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10448         instead of gumake for XNFilterEvents event mask(#110493).
10449
10450 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
10451
10452         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10453         a GObject. (#112762)
10454
10455 2003-05-08  Sven Neumann  <sven@gimp.org>
10456
10457         * configure.in: set the HAVE_X11R6 automake conditional to false
10458         if not compiling for X11.
10459
10460 2003-05-08  Matthias Clasen  <maclas@gmx.de>
10461
10462         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
10463         (gtk_calendar_get_display_options): New functions.
10464         (gtk_calendar_display_options): Depreate.  (#64567)
10465         (gtk_calendar_class_init): Add boolean properties for the display
10466         options.  (#50949)
10467
10468 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
10469
10470         Patch from James Henstridge to update to automake-1.7
10471         (#109542)
10472  
10473         * autogen.sh: update to call newer tools.
10474  
10475         * configure.in: various updates, to use M4 macros to put
10476         variables that change each release at the top.
10477         Use AC_HELP_STRING to format help strings.
10478         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10479  
10480         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
10481         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
10482         during distcheck.
10483  
10484         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10485         makefile fragment.
10486  
10487         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10488         Use BUILT_SOURCES where appropriate.
10489         Build generated files in builddir rather than srcdir.
10490         Fix uninstall and distclean targets to satisfy distcheck.
10491
10492         ===
10493
10494         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10495         built first, since we are now using BUILT_SOURCES.
10496
10497         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10498
10499         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10500         with geninclude.pl.
10501
10502         * configure.in: Update versions to 2.3.0.
10503  
10504 2003-05-06  Tor Lillqvist  <tml@iki.fi>
10505
10506         Fix for #110165 (thanks to Arnaud Charlet):
10507         
10508         * gdk/win32/gdkevents-win32.c (build_keypress_event,
10509         build_keyrelease_event): For unshifted control char, use
10510         lowercase ASCII keyval.
10511         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10512         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10513         lowercase keyval. Use build_key_event_state() here, too, instead
10514         of minor code duplication.
10515
10516 2003-05-06  Matthias Clasen  <maclas@gmx.de>
10517
10518         * tests/testmultidisplay.c: Don't include strings.h, it's not
10519         needed anymore.  (#112388)
10520
10521         * examples/menu/itemfactory.c: 
10522         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
10523         itemfactory example.
10524
10525 2003-05-05  Matthias Clasen  <maclas@gmx.de>
10526
10527         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
10528         icon type to the stock icon type.  (#111735, Dave Bordoley)
10529
10530 2003-05-05  Christian Rose  <menthos@menthos.com>
10531
10532         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
10533         Removed sp, it's replaced by sr@Latn.
10534
10535 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
10536
10537         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
10538         Gonzalo Odiard
10539
10540 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
10541
10542         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
10543         data iff the destroy func isn't NULL.
10544
10545 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
10546
10547         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
10548
10549 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
10550
10551         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
10552
10553 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
10554
10555         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
10556         of UTF-8. (#106419, Roozbeh Pournader)
10557
10558 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
10559
10560         * configure.in: Only check for XFT2 if we found pango-xft
10561         (#105692, Jon Nall)
10562
10563 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
10564
10565         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
10566         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
10567
10568 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
10569
10570         * docs/faq/gtk-faq.sgml: add note about version converage.
10571
10572 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
10573
10574         * gtk/gtksocket.c (activate_key): Fix prototype for
10575         activate_key. (#108927, Jason D. Hildebrand)
10576
10577 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
10578
10579         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
10580         Remove geninclude.pl from CVS and don't dist it either,
10581         it is generated. (#108970, Rich Kinder)
10582
10583 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
10584
10585         * gtk/gtkobject.h: Remove a couple of obsolete comments,
10586         fix another comment. (#109737, Britton Kerin)
10587
10588 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
10589
10590         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
10591         the source list, not just it's contents (Patch
10592         from Charles Kerr, #108243)
10593
10594 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
10595
10596         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
10597         from Alex Larsson fixing problem with restacking during
10598         DND. (#108671)
10599
10600 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
10601
10602         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
10603         Calling XFlush() after ungrabbing, to avoid problems if
10604         the app subsequently blocks on a long-running operation.
10605         (#106520, reported by Rajkumar Siva)
10606
10607 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
10608
10609         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
10610         SKIP_TASKBAR/SKIP_PAGER to set of properties we
10611         might set on map. (#110019, problem reported
10612         by Loban Rahman)
10613
10614 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
10615
10616         * gdk/gdkevents.c (gdk_event_copy): Fix for the
10617         case when gdk_event_copy() is called on a non-allocated
10618         event. (#109716, reported by Rich Burridge)
10619
10620 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
10621
10622         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
10623         Fix pointer arithmetic on 'void *'. (#108322)
10624
10625 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
10626
10627         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
10628         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
10629         use of XAddConnectionWatch. Remove --enable-xim config option.
10630         Should fix building on X11R6 (#110523, Albert Chin)
10631
10632 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
10633
10634         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
10635         Patch from Morten Welinder to catch Sun servers with a 
10636         broken implementation of the RENDER extension. (#108309)
10637
10638 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
10639
10640         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
10641         gdk_free_compound_text(), not g_free(). (#107643,
10642         Michael Zucchi)
10643
10644 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
10645
10646         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
10647         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
10648         wrong use of base_finalize. (#105126, Sven Neumann)
10649
10650 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
10651
10652         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
10653         '/' vs. '*' problem in aspect ration computations. (#108237)
10654
10655 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
10656
10657         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
10658         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
10659         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
10660         event, so select for both. (#108406, Egmont Koblinger)
10661
10662 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
10663
10664         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
10665         caused by not clearing the scroll_to_path.
10666
10667 2003-04-16  Matthias Clasen  <maclas@gmx.de>
10668
10669         * gtk/gtkstyle.c: Doc additions and fixes.
10670
10671         * gtk/gtktreeviewcolumn.c
10672         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
10673
10674 2003-04-14  Michael Natterer  <mitch@gimp.org>
10675
10676         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
10677         that the iter is not reordered to its own position. Prevents model
10678         corruption for the case that the store contains only a single item
10679         (fixes bug #108387).
10680
10681         Unrelated:
10682
10683         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
10684         new list element later so we don't leak it if we decide to return
10685         early.
10686
10687         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
10688         set selection->tree_view->priv->anchor to NULL after freeing it.
10689
10690 2003-04-13  Matthias Clasen  <maclas@gmx.de>
10691
10692         * gtk/gtktreeviewcolumn.c
10693         (gtk_tree_view_column_cell_get_position): Document. 
10694
10695         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
10696         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
10697         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
10698         these as 2.4 additions.
10699
10700 2003-04-09  Matthias Clasen  <maclas@gmx.de>
10701
10702         * INSTALL.in: Fix the real thing.
10703
10704         * INSTALL: Typo fix.
10705
10706 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
10707
10708         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
10709         after ungrabbing the server.
10710  
10711         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
10712         calls to XFlush().
10713
10714         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
10715         Use gdk_x11_display_grab/ungrab.
10716
10717         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
10718         use_xshm to TRUE so SHM gets used when present.
10719  
10720 2003-04-07  Matthias Clasen  <maclas@gmx.de>
10721
10722         * gtk/gtktextlayout.c (set_para_values): 
10723         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
10724         David Brigada)
10725
10726         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
10727         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
10728         misspellings of possessive "its".  (#110027, Doug Quale)
10729
10730 2003-04-03  Matthias Clasen  <maclas@gmx.de>
10731
10732         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
10733         current directory if it looks like the srcdir.  (#109357)
10734
10735 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10736
10737         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
10738         focus_on_click
10739
10740         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
10741         navigation not wrap around.
10742
10743 2003-04-02  Matthias Clasen  <maclas@gmx.de>
10744
10745         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
10746         Return 0 if lower == upper.  (#109155)
10747         (gtk_progress_get_current_percentage): Use
10748         gtk_progress_get_percentage_from_value().
10749
10750 2003-04-01  Matthias Clasen  <maclas@gmx.de>
10751
10752         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
10753         (#109510, Noah Levitt)
10754
10755 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
10756
10757         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
10758         members so Purify won't complain.
10759
10760         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
10761
10762 2003-03-31  Matthias Clasen  <maclas@gmx.de>
10763
10764         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
10765         gtk_window_[gs]et_role().  (#93904)
10766
10767 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
10768
10769         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
10770         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
10771
10772 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10773
10774         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
10775         of labels back to normal before reparenting back.  (#102387)
10776
10777         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
10778         a default window title to match the GtkFontSelectionDialog behavior.
10779  
10780         (gtk_color_selection_dialog_new): Don't call
10781         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
10782
10783 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10784
10785         Fix for bug #78499:
10786         
10787         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
10788         select_lines. 
10789
10790         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
10791         select_lines on double/triple click.
10792
10793         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
10794         select-by-words and select-by-lines behaviour.
10795
10796         Fixes for bug #56248:
10797         
10798         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
10799         timer and queue a redraw. 
10800         (gtk_notebook_grab_notify): 
10801         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
10802         if necessary.   
10803         (gtk_notebook_button_release): Use stop_scrolling().
10804         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
10805
10806         * gtk/gtkrange.c (stop_scrolling): New function to remove the
10807         grab, remove the timer and queue a redraw.
10808         (gtk_range_grab_notify): 
10809         (gtk_range_state_changed): New functions to call stop_scrolling() 
10810         if necessary.   
10811         (gtk_range_button_release): Use stop_scrolling().
10812
10813         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
10814         (gtk_spin_button_state_changed): Redraw after stop_spinning.
10815         (gtk_spin_button_stop_spinning): Reset click_child to correct the
10816         drawing of the arrows.
10817         (gtk_spin_button_button_release): Use a local copy of click_child,
10818         since stop_spinning() resets it.
10819
10820         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
10821         C-A-PgDown as alternatives to the A-less variants. (This slipped
10822         in accidentally some time ago).  (#97860)
10823
10824 2003-03-26  Sven Neumann  <sven@gimp.org>
10825
10826         * gtk/gtktreeview.c: rewrote the function that does node and arrow
10827         prelighting, queue all redraws from here (Fixes bug #108792).
10828
10829 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
10830
10831         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
10832         Fixes bug #108778.
10833
10834 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
10835
10836         * configure.in: Added "ml" in ALL_LINGUAS
10837
10838 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
10839
10840         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
10841         G_DISABLE_DEPRECATED.
10842
10843 2003-03-14  Tor Lillqvist  <tml@iki.fi>
10844
10845         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
10846         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
10847         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
10848         multiple monitors can have negative coordinates on some of the
10849         monitors. (partial fix for #99496, Arnaud Charlet)
10850
10851 2003-03-15  Matthias Clasen  <maclas@gmx.de>
10852
10853         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
10854
10855 2003-03-13  Sven Neumann  <sven@gimp.org>
10856
10857         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
10858         removed redundant calls to g_object_notify().
10859         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
10860         bug #108236.
10861
10862         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
10863         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
10864         functions return an integer value).
10865
10866 2003-03-13  Tor Lillqvist  <tml@iki.fi>
10867
10868         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10869         WM_MOUSEMOVE, the test whether we have actually moved (and thus
10870         shouldn't generate an GDK event) moved after the call to
10871         propagate() and translate_mouse_coords(). Otherwise we were
10872         testing wrong values. (#108115, Allin Cottrell)
10873         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
10874         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
10875
10876         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
10877         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
10878         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
10879         cursor right away with SetCursor(), as we won't get any
10880         WM_SETCURSOR messages while the mouse is captured. 
10881         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
10882         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
10883
10884         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10885         WM_SYSCHAR, return FALSE from the window procedure to prevent the
10886         DefWindowProc from being called. Otherwise Windows would beep,
10887         thinking you are tring to access a (nonexistent) menu when you
10888         press Alt-something. Don't do this for Alt-Space,
10889         though. (#107454, Martyn Russell)
10890
10891         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
10892
10893 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
10894
10895         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
10896         [left/right] expands/collapses the tree, #108092
10897
10898 2003-03-09  Tor Lillqvist  <tml@iki.fi>
10899
10900         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
10901         compensate for LineTo() not drawing the end pixel. It causes more
10902         harm than benefits, see bug #81895.
10903
10904 2003-03-08  Matthias Clasen  <maclas@gmx.de>
10905
10906         Bug #107664 continued:
10907
10908         * gdk/x11/gdkinputprivate.h: 
10909         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
10910         (_gdk_input_other_event): Return gboolean.
10911         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
10912         (_gdk_input_other_event): Return gboolean.
10913         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
10914
10915         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
10916         gboolean, remove pointless call to _gdk_input_window_none_event.
10917
10918         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
10919         (_gdk_input_window_none_event): Remove.
10920
10921         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
10922         (_gtk_text_iter_get_any_segment): 
10923         (_gtk_text_iter_get_segment_byte): 
10924         (_gtk_text_iter_get_segment_char): 
10925         (_gtk_text_iter_get_text_line): 
10926         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
10927         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
10928         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
10929         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
10930         (gdk_window_get_origin): 
10931         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
10932
10933 2003-03-06  Matthias Clasen  <maclas@gmx.de>
10934
10935         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
10936         (#107664, Morten Welinder)
10937
10938         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
10939         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
10940         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
10941         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
10942
10943         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
10944         * gtk/gtkeditable.c (gtk_editable_get_chars): 
10945         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
10946         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
10947         (#107648, Morten Welinder)Fix NULL/FALSE confusion
10948         (#107648, Morten Welinder)
10949
10950 2003-03-04  Matthias Clasen  <maclas@gmx.de>
10951
10952         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
10953
10954 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
10955
10956         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
10957         handle rtl code.  Thanks to Matthias Clasen for an initial patch
10958         to handle the RTL code.
10959
10960         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
10961
10962         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
10963
10964         * gtk/gtktreeview.c: (invalidate_column),
10965         (invalidate_last_column),
10966         (gtk_tree_view_get_real_requested_width_from_column),
10967         (gtk_tree_view_size_allocate_columns),
10968         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
10969         (gtk_tree_view_button_release_drag_column),
10970         (gtk_tree_view_update_current_reorder),
10971         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
10972         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
10973         (gtk_tree_view_get_background_xrange),
10974         (gtk_tree_view_get_arrow_xrange),
10975         (gtk_tree_view_is_expander_column),
10976         (gtk_tree_view_set_column_drag_info),
10977         (gtk_tree_view_move_cursor_left_right):
10978         Add RTL support.
10979
10980         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
10981         expand flag.
10982
10983         * gtk/gtktreeviewcolumn.c:
10984         (gtk_tree_view_column_class_init),
10985         (gtk_tree_view_column_set_property),
10986         (gtk_tree_view_column_get_property),
10987         (gtk_tree_view_column_set_expand),
10988         (gtk_tree_view_column_get_expand),
10989         (gtk_tree_view_column_cell_process_action):
10990         Add support for expand flag.  Thanks to Kristian Rietveld for an
10991         initial patch for this.
10992
10993 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
10994
10995
10996 2003-03-02  Tor Lillqvist  <tml@iki.fi>
10997
10998         * gdk/gdk.def
10999         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
11000         Gustin.
11001
11002 2003-03-01  Matthias Clasen  <maclas@gmx.de>
11003
11004         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
11005         (gtk_scrolled_window_set_hadjustment): Replace uses of
11006         gtk_object_new by g_object_new.
11007
11008 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
11009
11010         * demos/gtk-demo/main.c
11011         * demos/gtk-demo/tree_store.c
11012         * gdk/x11/gdkscreen-x11.c
11013         * gtk/gtkcellrenderertoggle.c
11014         * gtk/gtkcolorsel.c
11015         * gtk/gtkdnd.c
11016         * gtk/gtkeditable.c
11017         * gtk/gtkentry.c
11018         * gtk/gtkmenu.c
11019         * gtk/gtkmenubar.c
11020         * gtk/gtkmenuitem.c
11021         * gtk/gtkmenushell.c
11022         * gtk/gtkrc.c
11023         * gtk/gtksettings.c
11024         * gtk/gtkstyle.c
11025         * gtk/gtktextbuffer.c
11026         * gtk/gtktextview.c
11027         * gtk/gtktreeviewcolumn.c
11028         * tests/testgtk.c
11029         * tests/testtext.c
11030         * tests/testtreeedit.c
11031         * tests/testtreefocus.c
11032         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
11033
11034 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
11035
11036         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
11037         code.
11038
11039 2003-02-24  Sven Neumann  <sven@gimp.org>
11040
11041         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
11042
11043 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
11044
11045         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
11046
11047 2003-02-20  Matthias Clasen  <maclas@gmx.de>
11048
11049         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
11050         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
11051
11052         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
11053         (gtk_text_view_update_adjustments): Make sure cursor stays visible
11054         during horizontal scrolling.  (#75270)
11055
11056 2003-02-19  Matthias Clasen  <maclas@gmx.de>
11057
11058         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
11059         counterparts. (#106532)
11060
11061         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
11062         keys_changed virtual function with the keys_changed signal.
11063         (#106512, Jeff Franks)
11064
11065 2003-02-15  Larry Ewing  <lewing@ximian.com>
11066
11067         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
11068
11069 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
11070
11071         * po/id.po: Added Indonesian translation
11072         * configure.in: Added "id" to ALL_LINGUAS
11073
11074 2003-02-14  Matthias Clasen  <maclas@gmx.de>
11075
11076         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
11077
11078 2003-02-12  Christian Rose  <menthos@menthos.com>
11079
11080         * configure.in: Added "yi" to ALL_LINGUAS.
11081
11082 2003-02-12  Matthias Clasen  <maclas@gmx.de>
11083
11084         Fix for #82734 and #78216:
11085         
11086         * gtk/gtktextview.c (delete_cb): 
11087         (select_all_cb): New callbacks for context menu items.
11088         (popup_targets_received): Add "Delete" and "Select All" to context
11089         menu, mnemonics and title caps for all items.
11090
11091         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
11092         context menu item.
11093         (popup_targets_received): Add "Delete" to context menu, mnemonics
11094         and title caps for all items.
11095
11096 2003-02-09  Tor Lillqvist  <tml@iki.fi>
11097
11098         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
11099         GetDriveType() to recognize removable drives (in order to avoid
11100         hanging if trying to access an empty floppy drive), instead of
11101         hardcoding A: and B: (#105654).
11102
11103 2003-02-09  Matthias Clasen  <maclas@gmx.de>
11104
11105         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
11106         names.  (#57680)
11107
11108 2003-02-09  Christian Rose  <menthos@menthos.com>
11109
11110         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
11111
11112 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
11113
11114         * gtk/gtkobject.c: remove quark_user_data usage in
11115         gtk_object_{g|s}et_user_data(). fixes get_user_data()
11116         returning NULL for user_data set through property interface.
11117
11118         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
11119         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
11120         need to be a programming error (in case of loaded data), (b) it breaks
11121         with 2.0 behaviour where extra magic could be used to create empty
11122         images. don't attempt to retrieve pixbufs from NULL extra_data.
11123
11124 2003-02-06  Matthias Clasen  <maclas@gmx.de>
11125
11126         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
11127         a GdkVisual *, not a GdkVisual **.  (#105243)
11128
11129         * gtk/gtkclist.c: 
11130         * gtk/gtkctree.c: 
11131         * gtk/gtkcontainer.c: 
11132         * gtk/gtkdnd.c: 
11133         * gtk/gtkentry.c: 
11134         * gtk/gtklist.c:
11135         * gtk/gtkmenu.c:
11136         * gtk/gtkmenuitem.c:
11137         * gtk/gtknotebook.c:
11138         * gtk/gtkselection.c:
11139         * gtk/gtkspinbutton.c:
11140         * gtk/gtktext.c:
11141         * gtk/gtktextview.c:
11142         * gtk/gtktooltips.c:
11143         * gtk/gtktreeview.c:
11144         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
11145         their non-deprecated GLib counterparts.
11146         
11147         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
11148         
11149 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
11150
11151         * docs/tutorial/gtk-tut.sgml: cleanups from
11152         Sebastian Rittau (#104832)
11153
11154 2003-02-01  Tor Lillqvist  <tml@iki.fi>
11155
11156         Merge from stable:
11157
11158         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11159         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11160         (#104108, Naofumi Yasufuku)
11161
11162         * gdk/gdk.def: Export the above. Export
11163         gdk_screen_get_system_visual, noticed by Ed Woods.
11164
11165 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
11166
11167         * demos/pixbuf-demo.c
11168         * demos/testpixbuf.c
11169         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11170
11171 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
11172                                                                                 
11173         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11174         on the tab_label before unparenting it, in case the unparent
11175         drops the refcount to 0.
11176
11177 2003-02-01  Matthias Clasen  <maclas@gmx.de>
11178
11179         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11180         headers. Sorry about gtk_selection_clear, Yosh.
11181
11182 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
11183
11184         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11185         too, for gtkwidget.c. Remember people, when introducing new
11186         deprecations, make sure internal code isn't using it, or if so,
11187         reorganize appropriately like I've done in other places.
11188
11189         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11190
11191 2003-01-31  Matthias Clasen  <maclas@gmx.de>
11192
11193         * gtk/gtkselection.h: 
11194         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
11195
11196         * gdk/gdkpixbuf.h: 
11197         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
11198         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
11199
11200         * gtk/gtkcolorsel.h:
11201         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11202         Deprecate.  (#98167)
11203
11204         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11205
11206         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11207         and gtk_input_* functions.  (#71596)
11208         
11209         * gtk/gtkentry.c (gtk_entry_move_cursor): 
11210         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11211         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11212
11213         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
11214
11215         * gtk/gtkitemfactory.h: 
11216         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
11217         (#69244)
11218
11219 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
11220
11221         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11222         only count the special cell if it is also visible,
11223         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11224         account from visible cells,
11225         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11226         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11227         tracking bug was #104563).
11228         
11229 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
11230
11231         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11232         subtract expander space and focus line space from the extra space
11233         we are about the allocate. (Fixes #104635).
11234
11235 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
11236
11237         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11238         (Fixes #96242, patch from Soeren Sandmann).
11239
11240 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
11241
11242         * gtk/gtknotebook.c: Patch from Soeren Sandmann
11243         to update the states of the tab label child
11244         widgets to match the state of the tabs. 
11245         (#93389, Reported by Tommi Komulainen)
11246
11247 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
11248
11249         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11250         EXTRA_DIST, and from dist rules. (#102231)
11251
11252 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11253
11254         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11255         function that sets the icon's and label's packing options and
11256         visibility based on toolbar->style.
11257
11258         (gtk_toolbar_internal_insert_element):
11259         (gtk_real_toolbar_style_changed): Make use of
11260         set_child_packing_and_visibility() to clean up the code and get
11261         the packing right for icon-only/text-only toolbars. (#104679)
11262
11263         (get_first_child): Remove, and use gtk_bin_get_child() instead.
11264
11265 2003-01-30  Matthias Clasen  <maclas@gmx.de>
11266
11267         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11268         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
11269
11270         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11271         
11272 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
11273
11274         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
11275         attempt-to-allocate then free code. To handle multiple
11276         people allocating colors at the same time, we need
11277         to just go ahead and try. (#102213, Shivram U)
11278         
11279 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11280
11281         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11282         rectangle using the background color rather than relying on
11283         gdk_window_clear_area(), so that the palette works properly with
11284         pixmap themes. (#101732)
11285
11286         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11287         to fill the drawing area in the background color.
11288
11289 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
11290
11291         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11292         initialization error for selecting input style (#103549).
11293
11294 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
11295
11296         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
11297         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11298         (#101225)
11299
11300 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
11301
11302         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11303         Make up from the menu bar go to the end of the submenu.
11304         (#96114, Ian Peters.)
11305
11306         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
11307         Only do the select-but-not-activate stuff if the
11308         menu is already active. Otherwise, just activate.
11309         (#101690, Arvind Samptur)
11310
11311 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
11312
11313         * autogen.sh (have_automake): Fix version in complaint
11314         message about automake. (#104366, Rich Burridge)
11315
11316 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
11317
11318         * configure.in: Remove SOEXT stuff; it doesn't work portably.
11319
11320 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
11321
11322         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11323         we appended/prepended, send the rows_reordered signal to the 
11324         correct level ... (Reported by Matthew Tuck).
11325
11326 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
11327
11328         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11329         out if the level only has one item, recurse over the child if there
11330         is one. (Fixes #100458, reported by GaĂ«l Le Mignot).
11331
11332 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
11333
11334         * gtk/gtktreeview.c (gtk_tree_view_set_model),
11335         (gtk_tree_view_search_equal_func): make TreeView search handle
11336         all types which are transformable by GValue. (Fixes #99803, reported
11337         by Muktha Narayan).
11338
11339 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
11340
11341         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11342         *really* handle unsetting the ID. Slightly modified patch from
11343         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11344
11345 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
11346
11347         Fixes the total GtkTreeSortable mess, and #83195, reported by
11348         Jarek Dukat
11349
11350         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11351         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11352         (gtk_tree_store_set_default_sort_func): use the constant
11353         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11354         work as advertised by the documentation.
11355
11356         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11357         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11358         (gtk_list_store_set_default_sort_func): likewise.
11359
11360         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11361         (gtk_tree_model_set_sort_func),
11362         (gtk_tree_model_sort_set_default_sort_func): make functions work
11363         as advertised by the documentation.
11364
11365 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
11366
11367         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11368         before we decide if we edit. (fixes #100973, reported by Dave Cook).
11369
11370 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
11371
11372         Bug report and test case from Paolo Maggi via IRC.
11373
11374         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11375         (gtk_list_store_move): update tail if needed.
11376
11377 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
11378
11379         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11380         might be NULL. Use gtk_widget_get_display (widget) 
11381         (#102860, Thomas Leonard)
11382
11383 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
11384
11385         * configure.in: Fix --without-modules/--disable-modules
11386         confusion that was causing --disable-modules not to work.
11387         (#102865, Akira Tagoh)
11388
11389         * configure.in: Fix problem with plain --with-xinput
11390         (#104266, Akira Tagoh)
11391
11392 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
11393
11394         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11395         patch.
11396
11397 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
11398
11399         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11400
11401 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
11402
11403         * docs/faq/gtk-faq.sgml: Learn to spell Library
11404
11405 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
11406         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
11407
11408            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11409            Composite widget" to modern standards. (I.e. use gobject instead of
11410            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11411
11412         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11413         code in Appendix C to reflect above changes.
11414
11415         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11416         auto resize on page size change
11417
11418 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
11419
11420         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11421         in addition to show_all in order to keep them symmetric. (#102201)
11422
11423 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
11424
11425         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11426         the end of the function, so there is a statement following the "out"
11427         label in all cases (fixes #101961)
11428
11429 2003-01-22  Christian Rose  <menthos@menthos.com>
11430
11431         * configure.in: Added "mn" to ALL_LINGUAS.
11432
11433 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
11434  
11435         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11436         Fix off-by-one error on the backward iteration loop,
11437         that was causing the wrong range to be redrawn.
11438         (at least part of #72734)
11439         
11440 2003-01-21  Matthias Clasen  <maclas@gmx.de>
11441
11442         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11443         vadjustment value after changing its bounds.  (fixes #101963 and 
11444         #73562)
11445
11446         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
11447         unnecessary roundtrip failures.  (#93500)
11448
11449 2003-01-19  Tor Lillqvist  <tml@iki.fi>
11450
11451         Merge from stable:
11452         
11453         Fix for #103614 and some other problems with GtkFileSelection on
11454         Windows:
11455                 
11456         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11457         g_ascii_tolower(). Windows file names are case-insensitive for all
11458         Unicode letters.
11459
11460         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11461         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11462         earlier, as it includes config.h unconditionally, and gtkprivate.h
11463         redefines GTK_LOCALEDIR.
11464         (struct _CompletionDirSent): Ifdef out the fields not used on
11465         Windows.
11466         (compare_utf8_filenames, compare_sys_filenames): Need different
11467         comparison implementation for UTF-8 file names and system locale
11468         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11469         need to casefold all Unicode letters.
11470         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11471         variables not used on Win32 to avoid warnings about unused
11472         variables.
11473         (open_ref_dir): Use g_path_skip_root() to skip past potential
11474         drive letter in front of the leading (back)slash.
11475         (open_new_dir): Ifdef out use of CompletionDirSent fields not
11476         there on Win32.
11477         (correct_parent): Bypass inode check also on Cygwin.
11478
11479         Fix bug noticed by Alex Shaduri: Tooltips and other
11480         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11481         was a regression from earlier versions.
11482         
11483         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11484         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11485         (gdk_window_move, gdk_window_resize): Add debug logging.
11486
11487         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11488         WM_SIZE message for a non-visible (withdrawn) window, don't clear
11489         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11490         even if its size changes.
11491
11492 2003-01-16  Matthias Clasen  <maclas@gmx.de>
11493
11494         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11495         (totally_invisible_line): Fix an incorrect optimization which
11496         caused invisible paragraphs to be occasionally misrendered.
11497
11498 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
11499
11500         * gtk/gtksettings.c: Set the double click speed from
11501         XSETTINGS when creating a new GtkSettings object
11502         as well as when getting a notify. (#103601, reported
11503         by Louis Garcia)
11504
11505 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
11506  
11507         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
11508         Show/hide the notebook event window as necessary,
11509         we weren't previously keeping the visibility updated
11510         properly.  (#103599)
11511  
11512 2003-01-15  Matthias Clasen  <maclas@gmx.de>
11513
11514         * examples/menu/itemfactory.c: 
11515         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11516         example.  (#103211)
11517
11518 2002-12-29  Murray Cumming  <murrayc@usa.net>
11519
11520         Fixes #102168.
11521
11522         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
11523         Actually implement the GtkTreeDragSource::row_draggable virtual 
11524         function in GtkListStore and GtkTreeStore instead of just checking 
11525         whether it's implemented at all. This means that DnD isn't broken by
11526         gtkmm's virtual function wrappers. The alternative would be to
11527         hard-code the TRUE return value into gtkmm's wrappers, but that's 
11528         part of GTK+'s implementation, not it's API.
11529
11530 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
11531
11532         * gtk/gtktreeview.c: fix compiler warning.
11533
11534 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
11535
11536         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11537         make sure exposed pixbufs are clipped to the exposed area before
11538         drawing, which is a slight speedup. (#102379, patch from Soeren
11539         Sandmann).
11540
11541 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
11542
11543         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
11544         only free scroll_to_path when the complete tree has been validated.
11545         This makes sure that we scrolled to the correct path.
11546
11547 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
11548
11549         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
11550         background of widget->window and bin->window. (Fixes #96650, reported
11551         by Dave Camp).
11552
11553 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
11554
11555         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
11556         updates before scrolling, avoiding a "selection streak". (Fixes
11557         #101235, patch from Soeren Sandmann).
11558
11559 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
11560
11561         * gtk/gtktreeview.c (validate_visible_area): actually put values
11562         in the requisition using gtk_widget_size_request. (Fixes #100172,
11563         reported by Kjartan Maraas).
11564
11565 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
11566
11567         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
11568         arrow animation timeout before we actually reorder the rbtree. If
11569         we don't do this we can get stuck arrows,
11570         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
11571         reported and testcase provided by Hans Petter Jansson).
11572
11573 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
11574
11575         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
11576         anchor_path should be start_path, not end_path. (Fixes #102618,
11577         patch from Carlos Garnacho Parro).
11578
11579 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
11580
11581         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
11582         only correct new_pos if we don't move to the head/tail.
11583
11584 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
11585
11586         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
11587         the parent_iter if depth >= 1, so we send the reordered signal to
11588         the correct level, remove debugging printfs which I forgot the remove
11589         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
11590         testcase provided by Matthew Tuck).
11591
11592 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
11593
11594         * gtk/gtktreeview.c (invalite_last_column): split out actual column
11595         invalidation into invalidate_column(),
11596         (gtk_tree_view_size_allocate_columns): invalidate column if the
11597         new width is larger than the old width.
11598         (fixes #102890, reported by Alex Duggan).
11599
11600 2003-01-14  Matthias Clasen  <maclas@gmx.de>
11601
11602         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
11603         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
11604         GTK_MOVEMENT_WORDS.
11605
11606         * gtk/gtktextiter.c,
11607         gtk/gtktextiter.h: Add some variant movement functions which
11608         skip invisible chars, and do some cleanups.
11609
11610 2003-01-12  Tor Lillqvist  <tml@iki.fi>
11611
11612         Merge from stable:
11613                 
11614         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
11615         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
11616         lookup.
11617
11618         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
11619         gdk.def.
11620
11621         * gdk/gdk.def
11622         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
11623
11624         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
11625         gtk-demo}.exe and share/gtk-2.0.
11626
11627         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
11628         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
11629         window style.
11630         (gdk_window_set_type_hint): Add all cases to the switch (not all
11631         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
11632         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
11633         won't know that the skip_taskbar hint is on for the window, is
11634         this bad?
11635
11636 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
11637
11638         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
11639         <string.h> for strlen.
11640
11641         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
11642         <string.h> for strrchr.
11643
11644         * tests/testgtk.c (create_saved_position): "x" and "y" properties
11645         for widgets no longer exist, use gtk_window_move instead.
11646
11647         * test/testtextbuffer.c (check_get_set_text): cast strlen to
11648         int for g_error.
11649
11650 2003-01-08  Matthias Clasen  <maclas@gmx.de>
11651
11652         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
11653         the selection in the presence of invisible segments.
11654
11655 2003-01-07  Matthias Clasen  <maclas@gmx.de>
11656
11657         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
11658         to "select all" and "unselect all".  (#102065)
11659
11660         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
11661         the just_selected_element is unused.
11662
11663         * gtk/gtktextview.c (extend_selection): New helper function to
11664         find the range that should be added to the selection. 
11665         (selection_motion_event_handler): 
11666         (gtk_text_view_start_selection_drag): 
11667         (gtk_text_view_end_selection_drag): 
11668         (selection_motion_event_handler): 
11669         (selection_scan_timeout): Support select-by-words/lines.
11670         (gtk_text_view_button_press_event): Start a selection drag on
11671         double/triple clicks.  (#78499)
11672
11673 2003-01-06  Matthias Clasen  <maclas@gmx.de>
11674
11675         Implement a utility function proposed in #102534:
11676         
11677         * gtk/gtktextbtree.h: 
11678         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
11679         (_gtk_text_btree_place_cursor): Now a simple wrapper around
11680         _gtk_text_btree_select_range().   
11681
11682         * gtk/gtktextbuffer.h: 
11683         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
11684         (gtk_text_buffer_place_cursor): Now a simple wrapper around
11685         gtk_text_buffer_select_range(). 
11686
11687 2003-01-05  Havoc Pennington  <hp@pobox.com>
11688
11689         * configure.in: fix a stray bracket that was breaking the build
11690
11691 2003-01-05  Tor Lillqvist  <tml@iki.fi>
11692
11693         * gtk-zip.sh.in: Use correct DLL and import library names, with
11694         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
11695         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
11696
11697         * configure.in: Improve check for dimm.h.
11698
11699         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
11700         gdk-pixbuf/Makefile.am.
11701
11702         * gdk-pixbuf/makefile.mingw.in
11703         * gdk-pixbuf/pixops/makefile.mingw.in
11704         * gdk/makefile.mingw.in
11705         * gdk/win32/makefile.mingw.in
11706         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
11707
11708         * gdk-pixbuf/Makefile.am
11709         * gdk-pixbuf/pixops/Makefile.am
11710         * gdk/Makefile.am
11711         * gdk/win32/Makefile.am
11712         * gtk/Makefile.am
11713         * configure.in: Remove makefile.mingw{,.in} from here, too.
11714         
11715         * README.win32: Updates. Don't mention the now removed
11716         makefile.mingw files.
11717
11718         * gdk/gdk.def
11719         * gtk/gtk.def: Add a couple of missing entries.
11720
11721         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
11722
11723         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
11724         earlier.
11725
11726         * gdk/win32/rc/Makefile.am: Add hack to help
11727         build/win32/lt-compile-resource decide which kind of libtool
11728         object file to produce.
11729
11730 2003-01-05  Matthias Clasen  <maclas@gmx.de>
11731
11732         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
11733         C-Down step through the sequence of paragraph ends (old behaviour
11734         included paragraph starts).  (#80340, patch by Narayana Pattipati)
11735
11736         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
11737         Check for a tag toggle at the start iterator before calling
11738         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
11739         Elstner)
11740
11741 2003-01-04  Matthias Clasen  <maclas@gmx.de>
11742
11743         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
11744         and /*< private >*/ as appropriate.  (#97211)
11745
11746 2003-01-04  Tor Lillqvist  <tml@iki.fi>
11747
11748         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
11749         distribute gtk-zip.sh.in.
11750
11751         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
11752
11753 2003-01-03  Havoc Pennington  <hp@pobox.com>
11754
11755         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
11756
11757         * docs/text_widget_internals.txt: add a file documenting some of
11758         the text widget internals
11759
11760 2003-01-02  Matthias Clasen  <maclas@gmx.de>
11761
11762         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
11763         return NULL.  (#102069)
11764
11765 2003-01-01  Matthias Clasen  <maclas@gmx.de>
11766
11767         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
11768         a main() in the library is obviously bad. 
11769
11770 2002-12-27  Matthias Clasen  <maclas@gmx.de>
11771
11772         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
11773         cursor at drop point.  (#72384)
11774         (gtk_text_view_size_allocate): Update the horizontal adjustment
11775         value.  (#75694)
11776
11777 2002-12-25  Matthias Clasen  <maclas@gmx.de>
11778
11779         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
11780         selection wrt. to empty lines.  (#90435, #90582, #91619)
11781
11782         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
11783         Keep the cursor on screen.  (#96929)
11784
11785 2002-12-24  Matthias Clasen  <maclas@gmx.de>
11786
11787         * gtk/gtktextbuffer.c (paste_from_buffer): 
11788         (clipboard_text_received): Let the user action span the insertion
11789         and the deletion of the old selection.  (#82844)
11790
11791 2002-12-23  Matthias Clasen  <maclas@gmx.de>
11792
11793         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
11794         Don't call gtk_text_iter_backward_sentence_start() if
11795         count is zero.  (#99115)
11796
11797         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
11798         move_cursor() even if the cursor hasn't moved, since it has the
11799         side effect of canceling the selection.  (#81395, #98537, #98333)
11800
11801 2002-12-22  Matthias Clasen  <maclas@gmx.de>
11802
11803         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
11804         with empty ranges.  (fixes #101564 and #80637)
11805
11806 2002-12-21  Tor Lillqvist  <tml@iki.fi>
11807
11808         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
11809         sets the window style and extended window style, and adjusts the
11810         width and height to take the window decorations into account
11811         earlier. The adjusted width and height used to be ignored. Remove
11812         the local x, y, width and height variables, no need to further
11813         confuse the code by having local copies. (Partial fix, I hope, for
11814         #101588)
11815
11816         (gdk_window_move): When moving top-level windows, take title bar
11817         and border width into account, offsetting the coordinates before
11818         calling SetWindowPos().
11819
11820         (gdk_window_set_decorations, gdk_window_set_functions):
11821         Reimplement, taking into account the peculiar semantics of
11822         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
11823
11824         (gdk_window_get_decorations): Implement. (#98981)
11825         
11826         (gdk_window_set_type_hint): When setting
11827         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
11828         (#79036)
11829
11830         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
11831
11832 2002-12-21  Matthias Clasen  <maclas@gmx.de>
11833
11834         * gtk/gtktextview.c (gtk_text_view_set_background): New static
11835         function to set the background of all windows.
11836         (gtk_text_view_style_set): Use gtk_text_view_set_background().
11837         (gtk_text_view_state_changed): New function; change background
11838         according to state.  (#88126)
11839
11840 2002-12-21  Havoc Pennington  <hp@pobox.com>
11841
11842         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
11843