]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
Check for Control-Tab or Control-Shift-Tab, not any Control-key as a
[~andy/gtk] / ChangeLog.pre-2-8
1 Mon Mar 15 09:54:36 2004  Owen Taylor  <otaylor@redhat.com>
2
3         * gtk/gtklabel.c (gtk_label_focus): Check for 
4         Control-Tab or Control-Shift-Tab, not any Control-key
5         as a current event ... handles the case where a dialog
6         is triggered from a control accelerator better.
7
8 Mon Mar 15 08:48:48 2004  Jonathan Blandford  <jrb@gnome.org>
9
10         * gtk/gtkfilechooserentry.c (match_selected_callback): implement
11         correctly.
12         (completion_match_func): Allow surpressing popdowns.
13         (maybe_append_seperator_to_path): New function to add a separator
14         item to a display_name.  Bad hack.
15         (check_completion_callback): Implement select-ahead as an idle.
16         (add_completion_idle): new function to handle select-ahead
17         (gtk_file_chooser_entry_do_insert_text): starf the select-ahead
18         idle.
19         (gtk_file_chooser_entry_focus): Override tab for completion.
20         (gtk_file_chooser_entry_activate): commit select_ahead when
21         activated.
22
23         * gtk/gtkfilechooserdefault.c (location_popup_handler): grab the
24         appropriate widget for the mode.
25
26 2004-03-15  Tor Lillqvist  <tml@iki.fi>
27
28         * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole
29         GdkGCWin32 with a single assignment, that overwrites GObject's
30         private data (for instance ref_count). (#137012, John Ehresman)
31
32 2004-03-15  Mark McLoughlin  <mark@skynet.ie>
33
34         * gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
35         GtkFileChooserDefault member. Leftover from my original patch
36         for bug #136987.
37
38 Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
39
40         * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
41         API more correctly.  Now pops down the dropdown well.
42
43         * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
44         FilePath.
45
46         * test/testfilechooser.c: disable preview widget temporarily.
47         It's not representative of a good preview widget.
48
49 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
50
51         * gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
52         Renamed from shortcuts_unselect_all(); now selects the row that
53         corresponds to the current folder, if any.  Fixes #135916.
54
55         * gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
56         _gtk_path_bar_down().
57
58 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
59
60         * gtk/gtkfilechooserdefault.c: Surround the
61         drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
62         too unstable right now.
63
64 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
65
66         * gtk/gtkfilechooserdefault.c: Implement local_only by
67         filtering the shortcuts and bookmarks list by 
68         gtk_file_system_path_to_filename (file_system, path) != NULL.
69         (#132894)
70
71         * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
72         a convenience function, may by interesting to push to the 
73         file system vtable later for performance.
74
75 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
76
77         * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
78         to be NULL, so that people can ask for information about a
79         parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
80
81         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
82         the condition describe above.
83
84         * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
85         information of root paths.
86
87         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
88
89 Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
90
91         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
92         GtkTreeViewSearchEqualFunc return value oddity here as well.
93
94         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
95         to get a string to compare to, return TRUE (no match), not 
96         FALSE (match). Handle %NULL string values gracefully.
97         Remove unused variable. (#135962, Mark McLoughlin)
98
99 2004-03-14  Morten Welinder  <terra@gnome.org>
100
101         * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
102
103 Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
104
105         * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
106         _gtk_path_bar_down().
107
108         * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
109         _gtk_path_bar_down() as bindings for Alt-Up
110         and new Alt-Down. (Partly based on a patch by
111         Mark McLoughlin, #136987)
112
113 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
114
115         Fixes #136185, patch by Morten Welinder, with some changes.
116
117         * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
118         (shortcuts_insert_path): Check the path first with check_is_folder().
119         (gtk_file_chooser_default_set_current_folder): Likewise.
120         (gtk_file_chooser_default_add_shortcut_folder): Likewise.
121         (browse_widgets_create): Unref the size group.
122
123         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
124         Handle the case where the file exists but it is not a directory.
125         (IconType): Add value for ICON_UNDECIDED.
126         (struct stat_info_entry): New structure to hold a file's struct
127         stat, its MIME type and its icon type.
128         (struct _GtkFileFolderUnix): Added a hash of struct
129         stat_info_entry, and flags to remember which info types we've read
130         so far.
131         (get_icon_type): Use a helper function for the icons-from-stat
132         types.
133         (gtk_file_system_unix_render_icon): Use the cached file info.
134         (gtk_file_folder_unix_get_info): Put the info in the cache.
135         (gtk_file_system_unix_get_folder): Create the cache of file info
136         structures.
137
138         * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
139         case where display_name is the same as the existing
140         info->display_name.
141
142 Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
143
144         #136672, reported by Christian Persch; fixes based
145         on a patch by Soeren Sandmann.
146
147         * gtk/gtkmenu.c: Change the handling of mixed gridded
148         and non-gridded menu items; the old method was causing
149         major performance problems even with the "avoid relayout
150         on destruction" hack put in recently.
151
152         Now we first lay out the gridded items and then put the 
153         non-gridded items into empty rows / after the gridded items. 
154         Layout is done in a central menu_shell_ensure_layout(). Also
155         avoid emitting property notifications when we initially
156         insert or attach items.
157         
158         * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
159         unused menu_shell->menu_flag, and document it as unused
160         in the header.
161
162         * tests/testactions.c: Add a test of creating/removing
163         lots of items.
164
165         * test/testgtk.c: Add some more cruft to the menu test.
166
167 Mon Mar 15 02:36:07 2004  Matthias Clasen  <maclas@gmx.de>
168
169         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
170         some signal docs.
171
172 Sun Mar 14 15:38:39 2004  Jonathan Blandford  <jrb@gnome.org>
173
174         * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
175         always use the match_func, even if text_column is set.
176
177 2004-03-14  Morten Welinder  <terra@gnome.org>
178
179         * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
180         "".
181         (gtk_file_system_unix_get_folder): Use the same value for lookup
182         as for insertion.  Make sure we have a directory.
183
184         * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
185         path; don't crash on NULL error.
186
187 2004-03-14  Hans Breuer  <hans@breuer.org>
188
189         gtk/gtkcombobox.c : prototype cell_view_sync_cells() before 
190         first usage
191
192         gtk/makefile.msc.in : updated 'gtk_public_h_sources'
193
194         tests/makefile.msc : added testspinbutton
195
196 Sun Mar 14 01:01:18 2004  Matthias Clasen  <maclas@gmx.de>
197
198         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
199         this function with gtk_tree_view_column_set_cell_data();
200         call the cell data func after setting the attributes.
201
202 Sun Mar 14 01:00:08 2004  Matthias Clasen  <maclas@gmx.de>
203
204         * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
205         make sure not to call gtk_cell_view_set_cell_data() when
206         displayed_row is NULL.
207
208 Sat Mar 13 18:13:13 2004  Owen Taylor  <otaylor@redhat.com>
209
210         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
211         wrapping, do the offset of the line for justification ourselves.
212         (#120256, Felipe Heidrich)
213
214 Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>
215
216         * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
217         model-less use of GtkCellView shown in testcombo.c.
218
219 2004-03-13  Tor Lillqvist  <tml@iki.fi>
220
221         * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
222         when compiling with gcc. Mingw's headers do have the required
223         definitions.
224
225         * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
226         filled polygons, don't draw the outline, similarily as
227         draw_rectangle(). Apparently GTK and GIMP don't use
228         gdk_draw_polygon() much (or always draw the outline, too), as this
229         has gone undetected for so long. Thanks to Bruce Hochstetler.
230
231 Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
232
233         * gtk/gtkwindow.c (gtk_window_destroy): Remove
234         the window from the toplevel_list here rather in destroy.
235         While this is theoretically speaking wrong, it fits
236         in better with the current reality that destroyed
237         widgets are not reusable. (#126808, Michael Natterer)
238
239 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
240
241         * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
242         beyond clearing to the background if there is no active row.
243         (#137066, reported by Owen Taylor)
244
245 Sat Mar 13 21:37:44 2004  Matthias Clasen  <maclas@gmx.de>
246
247         * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
248         list when an item is selected via the keyboard.
249
250 2004-03-13  Anders Carlsson  <andersca@gnome.org>
251
252         * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
253         (gtk_file_system_unix_get_folder),
254         (gtk_file_system_unix_create_folder), (get_parent_dir),
255         (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
256         Remove trailing slashes in path names.
257         
258 Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
259
260         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
261         this a total no-op when the new or old parent is
262         destroyed. (#134230, patch from Soeren Sandmann)
263
264         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
265         For foreign windows in our heirarchy, call
266         _gdk_windowing_window_destroy_foreign (window) and skip
267         all the normal destruction logic.
268
269         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
270         Move code to request destruction of a foreign window
271         code into a separate _gdk_windowing_window_destroy_foreign().
272
273         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
274         Call GDK_WINDOW_DISPLAY() on the wrapper not on the
275         impl. (Also from Soeren's patch)
276
277 Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
278
279         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
280         GTK_IS_PLUG toplevels, call gdk_window_get_origin() 
281         not gtk_window_get_position, as a hackround for not
282         having accurate notification of window position for
283         embedded windows. (#136112, Dan Winship)
284
285 Sat Mar 13 10:34:03 2004  Owen Taylor  <otaylor@redhat.com>
286
287         * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
288         it causes problems for pastes from other applications; see
289         comments in bugzilla for #81880.
290
291 Sat Mar 13 02:55:51 2004  Matthias Clasen  <maclas@gmx.de>
292
293         Fix middle button pasting in the TextView  (#81880, reported
294         by Evert Verhellen, patch by Paolo Borelli):
295         
296         * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve 
297         the insert mark and move the cursor to it making sure of also 
298         scroll the window if needed.
299         
300         * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
301         to the insertion point.
302
303 Sat Mar 13 01:38:55 2004  Matthias Clasen  <maclas@gmx.de>
304
305         * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove 
306         implemenatation which restores the cell_view when the custom 
307         child is removed.  (#136555, Owen Taylor)
308
309 Sat Mar 13 00:07:51 2004  Matthias Clasen  <maclas@gmx.de>
310
311         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear): 
312         Keep the cell_list in a consistent state while iterating over it, 
313         since clear_attributes() also iterates over it.  (another instance
314         of #136585, Morten Welinder)
315         
316 Fri Mar 12 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
317
318         * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
319         and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
320         Semion Chichelnitsky)
321
322         * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed 
323         gtk_toolbar_direction-changed handlers and explicit
324         flipping of GtkArrow widgets.
325
326 Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
327
328         * gtk/gtkfilechooserdialog.c
329         (file_chooser_widget_default_realized_size_changed): Clamp the
330         new size to the screen.
331
332 Fri Mar 12 15:06:44 2004  Owen Taylor  <otaylor@redhat.com>
333
334         * gtk/gtkexpander.c (gtk_expander_realize): Create the
335         event_window at the right size using the same logic as
336         in size_allocate. (#136994, Niklas Knuttson)
337
338 2004-03-12  Federico Mena Quintero  <federico@ximian.com>
339
340         * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
341         return value of gtk_widget_activate().
342         (gtk_window_activate_default): Likewise.  Fixes #137008.
343
344         * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
345         response IDs we recognize, rather than bailing out on cancellation
346         ones.  Fixes #136237; patch by Olivier Andrieu
347         <oliv__a@users.sourceforge.net>.
348         (file_chooser_widget_file_activated): If the dialog doesn't have a
349         default widget, try to find a suitable response widget on our own.
350         People should *really* be using gtk_dialog_set_default_response(),
351         but this is to help lazy programmers.
352
353         * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
354         internal function.
355         (get_response_data): Add a "create" argument so that we don't
356         unconditionally create the response data.
357
358 2004-03-12  Morten Welinder  <terra@gnome.org>
359
360         * tests/Makefile.am: Add new testspinbutton.c
361
362 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
363
364         * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
365         Put the trash icon on the right for LTR locales, or on the left
366         for RTL.
367         (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
368         (shortcuts_drag_leave_cb): Test whether the idle is present.
369         (shortcuts_drag_data_received_cb): Ahem, don't assert here.
370
371 Thu Mar 11 17:51:10 2004  Owen Taylor  <otaylor@redhat.com>
372
373         * modules/input/gtkimcontextxim.c (preedit_done_callback):
374         Clear preedit string and emit preedit_changed as needed
375         on AIX. (#130617, Philip K Warren)
376
377 2004-03-11  Morten Welinder  <terra@gnome.org>
378
379         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
380
381 Thu Mar 11 16:28:15 2004  Owen Taylor  <otaylor@redhat.com>
382
383         * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
384         type. (#136919, Tim Mooney)
385
386 Thu Mar 11 16:18:51 2004  Jonathan Blandford  <jrb@redhat.com>
387
388         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
389         earlier change to insert_path so that we test that the directory
390         exists.
391
392         * gtk/gtkfilechooserdialog.c
393         (gtk_file_chooser_dialog_constructor): move focus.
394
395 Thu Mar 11 22:12:14 2004  Matthias Clasen  <maclas@gmx.de>
396
397         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
398         logic as GtkEntry when calculating border width.  (#116368, reported
399         by Morten Welinder)
400
401 Thu Mar 11 15:59:05 2004  Owen Taylor  <otaylor@redhat.com>
402
403         * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
404         rather than gtk_widget_set_size_request().
405
406 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
407
408         * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
409         function, copied from gtkpathbar.c.
410         (gtk_file_chooser_default_dispose): Use remove_settings_signal()
411         rather than our own code.
412         (gtk_file_chooser_default_screen_changed): Use
413         remove_settings_signal(); this should handle per-screen settings
414         correctly.
415
416 Thu Mar 11 14:07:18 2004  Owen Taylor  <otaylor@redhat.com>
417
418         * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
419         value.
420
421 Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
422
423         * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
424         put-labels-into-the-standard-focus-chain patches 
425         from bug #59707.
426
427         * gtk/gtklabel.c (gtk_label_focus): Only put the
428         label in the tab chain when the control key is pressed.
429
430 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
431
432         * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
433         single OK button, not a Close button, as per the HIG.
434
435         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
436
437 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
438
439         * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
440         initialize "action" before jumping.  Fixes #136900.
441
442 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
443
444         * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
445         application properties. Fixes bug #136802.
446
447 2004-03-11  Dov Grobgeld  <dov@imagic.weizmann.ac.il>
448
449         * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
450         call to gtk_text_layout_update_cursor_line() to solve in 
451         problem of switching keyboard direction at widget creation:
452         bug #136680
453
454 Thu Mar 11 10:28:30 2004  Owen Taylor  <otaylor@redhat.com>
455
456         * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
457         stray 'return' statement. (#136855, David L. Cooper II)
458
459 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
460
461         * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
462         fg color for drawing the expander when prelit. Fixes problem
463         with the HighContrast theme: bug #136789.
464
465 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
466
467         Fix #135912 and #135913.
468
469         * gtk/gtkfilechooserdefault.c
470         (shortcuts_filter_model_row_draggable): Implement.
471         (shortcuts_model_filter_new): New function, create a
472         ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
473         we can implement our own DnD interface methods.
474         (shortcuts_model_create): Use shortcuts_model_filter_new().
475         (shortcuts_list_create): Enable the shortcuts list as a drag
476         source.
477         (file_list_source_targets): Renamed from shortcuts_targets.
478         (shortcuts_list_create): Change the options for
479         gtk_drag_dest_set().  Connect to more drag signals so that we can
480         implement drops by hand.
481         (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
482         (shortcuts_drag_motion_cb): New handler; validate the drop.
483         (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
484         (shortcuts_drag_drop_cb): New handler; just stop the emission and
485         remove the idle handler for the drag cursor.
486         (shortcuts_add_bookmark_from_path): Add a position argument,
487         return a boolean success code.
488         (shortcuts_drag_data_received_cb): Handle two cases:  1) Insert
489         the bookmarks at the proper position, rather than always appending
490         them to the list; 2) alternatively, reorder the bookmarks.
491         (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
492         (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
493         (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
494         an idle handler.
495         (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
496
497 Thu Mar 11 01:08:25 2004  Jonathan Blandford  <jrb@gnome.org>
498
499         * gtk/gtkfilechooserdefault.c (location_entry_create): up the
500         width of the entry a tad.
501
502         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
503         gtk_entry_completion_selection_changed.  Also, unref the
504         completion as we were leaking a reference to it.
505
506 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
507
508         * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon.  Thanks to
509         Kjartan Maraas for pointing it out.
510
511 Wed Mar 10 23:40:15 2004  Matthias Clasen  <maclas@gmx.de>
512
513         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
514         background on the action view cell renderer here, not in init, so 
515         that a) we catch style changes, and b) we get the real style, not 
516         the default one. Partial fix for #127648, reported by Dave Bordoley.
517
518 2004-03-10  Tor Lillqvist  <tml@iki.fi>
519
520         * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
521         the pointer button bits. (#136636, Dave Neary)
522
523         * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
524         transparent (input only) windows using SetWindowPos(). (#132331,
525         John Ehresman)
526
527         (gdk_window_set_type_hint): For splash screens, remove the resize
528         handles, menu, and minimize/maximize/close buttons. (#132896)
529
530 Wed Mar 10 22:30:23 2004  Matthias Clasen  <maclas@gmx.de>
531
532         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
533         cell_list in a consistent state while iterating over it, since
534         clear_attributes() also iterates over it.  (#136585, Morten Welinder)
535
536 2004-03-10  Mark McLoughlin  <mark@skynet.ie>
537
538         * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
539         the expose to the label. The expose handler for GtkContainer
540         already does that. Fixes bug #136719. Reported by Dennis
541         Cranston, exact cause nailed down by Owen.
542
543 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
544
545         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
546         untranslatable "%x" for dates, rather than a custom format.  Fixes
547         #136357.
548
549 2004-03-10  Morten Welinder  <terra@gnome.org>
550
551         * gtk/gtkfilechooserdefault.c
552         (gtk_file_chooser_default_add_shortcut_folder): Test validity of
553         path here.
554         (shortcuts_insert_path): Don't check here.
555         (get_file_info): Barf if name-only fails.
556
557         * tests/testfilechooser.c (main): Add support for --multiple.
558
559 Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
560
561         * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
562         (remove_settings_signal), (gtk_path_bar_dispose),
563         (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
564         (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
565         (settings_notify_cb), (gtk_path_bar_check_icon_theme),
566         (get_button_image), (gtk_path_bar_update_button_appearance),
567         (make_directory_button), (gtk_path_bar_check_parent_path): Support
568         changes in icon themes.
569
570         * gtk/gtkpathbar.h: add two elements
571
572         * tests/testfilechooser.c: (main): use gnome-vfs method again to
573         get more testing.
574
575 Wed Mar 10 01:17:40 2004  Jonathan Blandford  <jrb@gnome.org>
576
577         * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes.  We
578         don't have any more untranlated strings in the dialog.
579
580 Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>
581
582         * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
583         the pathname for UTF-8 safety.
584
585 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
586
587         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
588         check to see if the shortcuts exists.  We don't want to put
589         invalid dirs in the shortcuts pane.
590
591 Tue Mar  9 16:40:34 2004  Jonathan Blandford  <jrb@gnome.org>
592
593         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
594         remove unneeded shortuts_swin;
595
596 Wed Mar 10 01:49:27 2004  Matthias Clasen  <maclas@gmx.de>
597
598         Fix #136614 in a better way:
599         
600         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
601         * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
602         * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
603         * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
604         alignment if priv->align_set is set.
605         * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
606
607 Wed Mar 10 01:21:05 2004  Matthias Clasen  <maclas@gmx.de>
608
609         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
610         grid mode popups left aligned, not right aligned.
611
612 Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
613
614         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
615         the label that is reparented from the menuitem.  (#136614, Dennis
616         Cranston)
617
618 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
619
620         * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
621         information about a button in a struct instead of ugly
622         g_object_set_data.
623         (gtk_path_bar_size_request): Use ButtonData.
624         (gtk_path_bar_update_slider_buttons): ditto
625         (gtk_path_bar_size_allocate): ditto
626         (gtk_path_bar_remove): ditto
627         (gtk_path_bar_forall): ditto
628         (gtk_path_bar_scroll_down): ditto
629         (gtk_path_bar_clear_buttons): ditto
630         (button_clicked_cb): ditto.  Also, add an ignore_changes variable
631         (button_data_free): destroy ButtonData
632         (update_button_appearance): Use ButtonData
633         (make_directory_button): ditto
634         (gtk_path_bar_check_parent_path): ditto
635         (_gtk_path_bar_set_path): ditto
636
637 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
638
639         Fix #136533.
640
641         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
642         function.
643         (check_icon_theme): New helper function, installs a handler for
644         changes in the icon theme.
645         (gtk_file_chooser_default_style_set): Use check_icon_theme().
646         (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
647         (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
648         (change_icon_theme): New function, updates impl->icon_size and
649         reloads the icons.
650         (struct _GtkFileChooserDefault): New field settings_signal_id.
651         (struct _GtkFileChooserDefault): New field icon_size.
652         (shortcuts_insert_path): Use impl->icon_size.
653         (list_icon_data_func): Likewise.
654
655 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
656
657         * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
658         parent_path being NULL.  Fixes #136662.
659
660 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
661
662         * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
663         Stop the emission so that GtkTreeView's handler won't try to poke
664         the filter model.  Fixes #136127.
665
666 Tue Mar  9 13:49:14 2004  Owen Taylor  <otaylor@redhat.com>
667
668         * gtk/gtkstyle.c (gtk_paint_polygon): Fix 
669         g_return_if_fail() that was checking draw_shadow.
670         (#136669, Morten Welinder)
671
672 Tue Mar  9 09:57:25 2004  Owen Taylor  <otaylor@redhat.com>
673
674         * === Released 2.3.6 ===
675
676         * configure.in: Version 2.3.6, interface age 0.
677
678         * NEWS: Updates
679
680 Tue Mar  9 11:01:45 2004  Jonathan Blandford  <jrb@gnome.org>
681
682         * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
683         icon.  Reported by Michael Natterer <mitch@gimp.org>.
684
685 2004-03-09  Morten Welinder  <terra@gnome.org>
686
687         * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
688
689 Tue Mar  9 02:11:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
690
691         * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
692         (struct _GtkMenuPrivate): Add boolean destroying
693         (gtk_menu_destroy): Set priv->destroying
694         (gtk_menu_remove): don't update the table information when the
695         menu is being destroyed.
696
697         * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
698
699         * gtk/gtktoolbar.[ch]: Some formatting fixes
700
701 Tue Mar  9 01:25:10 2004  Matthias Clasen  <maclas@gmx.de>
702
703         * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
704
705 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
706
707         Fixes #136080.
708
709         * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
710         ENOENT.
711         (filename_get_info): Likewise.
712
713 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
714
715         * gtk/gtkfilechooserdefault.c
716         (gtk_file_chooser_default_initial_focus): Use
717         gtk_tree_view_set_cursor().
718
719 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
720
721         Patch "1a" from #136185, by Morten Welinder.
722
723         * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
724         that says whether the caller just wants the display name.
725         (shortcuts_insert_path): We only want the name in the call to
726         get_file_info().
727
728         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
729         info than needed from the file_folder.
730
731 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
732
733         Fixes #136105.
734
735         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
736         Added an ::initial_focus() method.
737
738         * gtk/gtkfilechooserembed.c
739         (_gtk_file_chooser_embed_delegate_iface_init): Set the
740         initial_focus method.
741         (delegate_initial_focus): Implement.
742         (_gtk_file_chooser_embed_initial_focus): New function.
743
744         * gtk/gtkfilechooserdialog.c
745         (gtk_file_chooser_dialog_constructor): Call
746         _gtk_file_chooser_embed_initial_focus().
747
748         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
749         Install the ::initial_focus() handler.
750         (gtk_file_chooser_default_initial_focus): Implement.
751
752 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
753
754         * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
755         boolean success code.
756         (location_popup_handler): Refocus the file chooser if appropriate.
757         Fixes #135905.
758         (save_widgets_create): Don't set the text of the save_folder_label
759         here.
760         (update_appearance): Set the text here as appropriate for the save
761         mode.  Also fixes #136387.
762         (update_appearance): Don't show the Create Folder button in
763         SELECT_FOLDER mode.
764         (update_appearance): Show the extra widget in all Save modes
765         correctly.
766
767 Mon Mar  8 11:57:27 2004  Owen Taylor  <otaylor@redhat.com>
768
769         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
770         call g_signal_handler_disonnect() if priv->model is
771         NULL. (#136551, Damon Chaplin)
772
773         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
774         Back out code to set the active item when the first
775         item is added to the model; this causes problems for
776         GtkComboBoxText. (#136535)
777
778         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
779         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
780         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
781         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): 
782         Remove calls to gtk_combo_box_unset_model.
783
784         * gtk/gtkcombobox.c (gtk_combo_box_check_appearance): 
785         Clean up handling of wrap->width > 0.
786
787         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
788         switch list/menu mode here.
789
790         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
791         against the same model being set back.
792
793         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
794         gtk_combo_box_menu_fill() rather than duplicating
795         a large chunk of code.
796
797 2004-03-08  Anders Carlsson  <andersca@gnome.org>
798
799         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): 
800         If max_depth is 0 then we have a list.
801
802 2004-03-08  Morten Welinder  <terra@gnome.org>
803
804         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
805         widget unchanged.  Explicitly verify final directory.
806
807         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
808         get_icon_type, filename_get_info): Protect errno.
809
810 2004-03-08  Marco Pesenti Gritti  <marco@gnome.org>
811
812         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
813
814         When an action is selected stop the event to be propagated
815         otherwise the activate signal is emitted too. (Bug #133394)
816
817 Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
818
819         * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
820         consolidate creating the path_bar.
821         (gtk_file_chooser_default_set_current_folder): no longer need to
822         pass in the filesystem.
823
824         * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
825         of just setting the filesystem.
826
827         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
828         home_dir.
829         (get_button_image): Add images to path_bar.
830         (update_button_appearance): use images
831         (make_directory_button): Clasify buttons based upon location.
832         (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
833         rerooting, #135845, #135914
834
835         * tests/testfilechooser.c: Fix reused error handling.
836
837 2004-03-08  Anders Carlsson  <andersca@gnome.org>
838
839         * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
840         (gtk_file_system_unix_render_icon):
841         Use better icons for home and desktop.
842
843 2004-03-08  Anders Carlsson  <andersca@gnome.org>
844
845         * gtk/gtkfilechooserentry.c:
846         (_gtk_file_chooser_entry_set_base_folder):
847         Set the base folder path in the entry.
848         
849 2004-03-08  Christian Neumair  <chris@gnome-de.org>
850
851         * tests/testentrycompletion.c: Fix typo.
852
853 2004-03-08  Tor Lillqvist  <tml@iki.fi>
854
855         * README.win32: Update.
856
857         * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
858
859         * tests/testfilechooser.c: Correct localtime_r() emulation on
860         Win32. Remove a couple of unnecessary Win32-only includes.
861
862 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
863
864         * tests/testentrycompletion.c: Test dynamic addition/removal. 
865
866 Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
867
868         * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not 
869         xthickness in the calculation of vertical dimensions.
870
871 Sun Mar  7 17:38:03 2004  Jonathan Blandford  <jrb@gnome.org>
872
873         * gtk/gtkbutton.c (gtk_button_class_init): actually use
874         gtk_button_add.
875
876         * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
877         use the uri, not the path, #136317
878         (renderer_edited_cb): ditto
879         (shortcuts_add_bookmark_from_path): ditto
880         (remove_bookmark_button_clicked_cb): ditto
881         (gtk_file_chooser_default_remove_shortcut): ditto
882         (update_from_entry): ditto
883         (up_folder_handler): ditto
884
885 Sun Mar  7 16:07:08 2004  Jonathan Blandford  <jrb@gnome.org>
886
887         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
888         redraw_on_allocate, #135902.
889
890         * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
891         Damon Chaplin to set a node to be visible before emitting the
892         inserted signal, #135555.
893
894 Sun Mar  7 22:24:28 2004  Matthias Clasen  <maclas@gmx.de>
895
896         * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
897         height calculation.
898
899 Sun Mar  7 14:34:04 2004  Jonathan Blandford  <jrb@gnome.org>
900
901         Fixes #121500.
902
903         * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
904         from unselecting rows when pressed in multiple-selection mode.
905
906 2004-03-07  Hans Breuer  <hans@breuer.org>
907
908         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
909         some more settings from system, also reflect some name changes
910         done a while ago in the x11 backend
911
912         * gdk/win32/makefile.msc : build gdkspawn-win32.c
913
914         * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
915
916         * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
917
918         * tests/makefile.msc : some more tests get build
919
920 Sun Mar  7 03:03:57 2004  Jonathan Blandford  <jrb@gnome.org>
921
922         * gtk/gtkfilechooserdefault.c
923         (gtk_file_chooser_default_get_paths): if action is
924         SELECT_FOLDER, then return the currentd folder if none is
925         selected.
926         (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
927         no directory is selected in SELECT_FOLDER mode.
928
929 Sat Mar  6 23:31:18 2004  Jonathan Blandford  <jrb@gnome.org>
930
931         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
932         remove unneeded elements.
933         (tree_selection_changed): removed
934         (tree_name_data_func): removed
935         (gtk_file_chooser_default_finalize): don't unref dir model
936         (create_folder_tree): removed
937         (get_selection): no longer need to abstract away the selection
938         function.
939         (create_file_list): We now create a tree for all actions.
940         (file_pane_create): Make one tree.
941         (update_appearance) We really change the mode only, now.
942
943 Sun Mar  7 02:38:00 2004  Matthias Clasen  <maclas@gmx.de>
944
945         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a 
946         size_request on the button and cell_view_frame, otherwise
947         their style will still be the default here in the initial 
948         size_request. (#136301, Mark McLoughlin)
949
950 2004-03-06  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
951
952         * gtk/gtktoolbar.c (internal_insert_element): Check return value
953         of gtk_stock_lookup; if stock lookup fails, just use stock_id as
954         label, instead of crashing. Fixes #136202.
955
956 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
957
958         * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
959         include.
960         * gdk/linux-fb/gdkwindow-fb.c: Likewise.
961         * gdk/linux-fb/gdkinput.c: Likewise.
962
963 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
964
965         Fixes #136082 and #135265, patch by Morten Welinder.
966
967         * configure.in: Use AC_SYS_LARGEFILE.
968
969         * */*.c: #include <config.h>
970
971 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
972
973         * gtk/gtkfilechooserdefault.c
974         (gtk_file_chooser_default_select_path): No need to have a
975         temporary error variable.
976
977 2004-03-05  Tor Lillqvist  <tml@iki.fi>
978
979         * configure.in: Move check for native Win32 (mingw) a bit
980         earlier. If Win32, disable static builds (as in GLib). Remove
981         unnecessary AC_LIBTOOL_WIN32_DLL.
982
983         * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
984
985         * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
986
987         (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
988         implementation.
989
990         (gdk_display_supports_cursor_alpha,
991         gdk_display_supports_cursor_color): Dummy implementations.
992
993         (gdk_display_get_default_cursor_size,
994         gdk_display_get_maximal_cursor_size): Implement.
995
996         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
997         Dummy implementation.
998
999         * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
1000         implementation.
1001
1002         * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
1003
1004         * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
1005         not in API.
1006
1007         * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
1008         implementation.
1009
1010 Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
1011
1012         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
1013         to the new path.
1014
1015         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
1016         allocation when scrolling instead of cancelling editing.
1017
1018 Fri Mar  5 23:52:34 2004  Matthias Clasen  <maclas@gmx.de>
1019
1020         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
1021         Improve the docs.  (#127727, Murray Cumming)
1022
1023 Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
1024
1025         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
1026         doc comment.  (#118602)
1027
1028 Fri Mar  5 22:37:15 2004  Matthias Clasen  <maclas@gmx.de>
1029
1030         * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
1031         the priv->image pointer dangle.  (#136259, Padraig O'Briain)
1032
1033 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1034
1035         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
1036         gboolean return values and GError arguments to
1037         ::set_current_folder() and ::select_path().
1038
1039         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
1040         Return a boolean value for success/failure.
1041         (gtk_file_chooser_set_current_folder_uri): Likewise.
1042         (gtk_file_chooser_select_filename): Likewise.
1043         (gtk_file_chooser_select_uri): Likewise.
1044         (gtk_file_chooser_set_filename): Likewise.
1045         (gtk_file_chooser_set_uri): Likewise.
1046         (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
1047         in a GError.
1048         (_gtk_file_chooser_select_path): Likewise.
1049
1050         * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
1051         Likewise.
1052         (delegate_select_path): Likewise.
1053
1054         * gtk/gtkfilechooserdefault.c
1055         (gtk_file_chooser_default_select_path): Likewise.
1056         (gtk_file_chooser_default_set_current_folder): Likewise; this also
1057         fixes #136024.
1058         (error_changing_folder_dialog): New helper function.
1059         (change_folder_and_display_error): New helper function.
1060         (switch_to_selected_folder): Use change_folder_and_display_error().
1061         (tree_selection_changed): Likewise.
1062         (shortcuts_activate_volume): Likewise.
1063         (shortcuts_activate_item): Likewise.
1064         (list_row_activated): Likewise.
1065         (path_bar_clicked): Likewise.
1066         (update_from_entry): Likewise.
1067         (up_folder_handler): Likewise.
1068         (home_folder_handler): Get the home path from the shortcuts model,
1069         and use change_folder_and_display_error().
1070
1071         * tests/testfilechooser.c (set_current_folder): New helper
1072         function; pops up a simple error dialog if necessary.
1073         (set_filename): Likewise.
1074         (set_folder_nonexistent_cb): Use set_current_folder().
1075         (set_folder_existing_nonexistent_cb): Likewise.
1076         (set_filename_nonexistent_cb): Use set_filename().
1077         (set_filename_existing_nonexistent_cb): Likewise.
1078
1079 Fri Mar  5 11:17:35 2004  Owen Taylor  <otaylor@redhat.com>
1080
1081         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): 
1082         Improve the docs (reported by Vitaly Tishkov, 
1083         #74362) Add some comments to the code about the 
1084         row reference handling that are hopefully not entirely
1085         wrong.
1086
1087 2004-03-05  Michael Natterer  <mitch@gimp.org>
1088
1089         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1090         s/object/widget/. Makes it compile again.
1091
1092 Fri Mar  5 03:37:14 2004  Jonathan Blandford  <jrb@gnome.org>
1093
1094         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1095         chain to the extra_widget.
1096
1097 Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>
1098
1099         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1100         Patch from Damon Chaplin to free models when we're finalized,
1101         #134053
1102
1103 2004-03-05  Alexander Larsson  <alexl@redhat.com>
1104
1105         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1106         Document the fact that there might not be a volume for all
1107         paths.
1108
1109         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1110         Don't assume there is a volume for all paths.
1111
1112 Fri Mar  5 01:45:04 2004  Jonathan Blandford  <jrb@gnome.org>
1113
1114         * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1115         the correct place instead of naïvely appending.
1116         (shortcuts_add_volumes): refilter the model
1117         (shortcuts_add_bookmarks): refilter the model
1118         (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1119
1120 2004-03-04  Federico Mena Quintero  <federico@ximian.com>
1121
1122         * gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
1123         GtkFileChooser widget if it wants to do something special rather
1124         than letting us terminate the dialog.
1125         (gtk_file_chooser_dialog_init): Connect to "response"; see the
1126         comment in the sources to see why we don't override the method in
1127         class_init.
1128
1129         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1130         Added a ::should_respond() method.
1131
1132         * gtk/gtkfilechooserembed.c
1133         (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1134         (delegate_should_respond): New delegate.
1135         (_gtk_file_chooser_embed_should_respond): New function.
1136
1137         * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1138         Use dashes in signal names rather than underscores.
1139         (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1140         (gtk_file_chooser_default_should_respond): Implement.  go into a
1141         folder rather than responding if we are in File mode and the
1142         selected file is a folder.
1143         (get_selection): New helper function.
1144         (add_bookmark_button_clicked_cb): Use get_selection().
1145         (bookmarks_check_add_sensitivity): Likewise.
1146         (gtk_file_chooser_default_get_paths): Likewise.
1147         (check_save_entry): New helper function.
1148         (gtk_file_chooser_default_get_paths): Use check_save_entry().
1149         (selection_check): Renamed from selection_is_folders().  Now
1150         checks whether the selection is empty, all files, all folders.
1151         (bookmarks_check_add_sensitivity): Use selection_check().
1152
1153 Fri Mar  5 00:05:59 2004  Matthias Clasen  <maclas@gmx.de>
1154
1155         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1156         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to 
1157         key_press_event and handle Alt-Down/Alt-Up to show or hide the
1158         list popup. Also handle Down/Up/PageDown/PageUp/Home/End and 
1159         make them change the active item without popping up the list.
1160         These keybindings are inherited from GtkCombo. 
1161
1162 Thu Mar  4 23:15:58 2004  Matthias Clasen  <maclas@gmx.de>
1163
1164         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially 
1165         select the active item when using optionmenu-like positioning. 
1166
1167 Thu Mar  4 16:54:30 2004  Owen Taylor  <otaylor@redhat.com>
1168
1169         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1170         open/close the file, just check for existence
1171         with g_file_test(). This is considerably cheaper,
1172         and lack-of-permissions for pixmap dirs is 
1173         pathological.
1174
1175 Wed Mar  3 17:53:21 2004  Owen Taylor  <otaylor@redhat.com>
1176
1177         * gtk/gtksocket.c (gtk_socket_class_init): Overide
1178         show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1179         since we don't want to propagate to the in-process
1180         plug, if any. (#122949, Michael Meeks)
1181
1182 Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
1183
1184         * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1185         Folder' button in SAVE mode again.
1186
1187 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
1188
1189         * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1190         count of the style when copying the cached icon.  (#135890, Crispin
1191         Flowerday)
1192
1193 Thu Mar  4 21:45:43 2004  Matthias Clasen  <maclas@gmx.de>
1194
1195         * gtk/gtkcombobox.c: In list mode, set the background color 
1196         of the cell view to the base color of the style, instead of
1197         hardwiring white. (#136158)
1198
1199 Thu Mar  4 01:32:19 2004  Jonathan Blandford  <jrb@gnome.org>
1200
1201         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1202         muppet <scott@asofyet.org> to keep child directories around if we
1203         change to a child.
1204
1205         * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1206         icon-setting functions.  Not used yet.
1207         (_gtk_path_bar_set_root_icon): Ditto.
1208         
1209 Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>
1210
1211         * gtk/gtktextview.c (extend_selection): 
1212         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1213         to select the last word in the buffer.  (#135487, Paolo Borelli)
1214
1215 Wed Mar  3 23:54:31 2004  Matthias Clasen  <maclas@gmx.de>
1216
1217         * gtk/gtkentrycompletion.c: Doc update.
1218
1219 Wed Mar  3 17:30:18 2004  Owen Taylor  <otaylor@redhat.com>
1220
1221         * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1222         whether widgets are viewable, not just if they are
1223         mapped. (#122912, reported by Tim Evans)
1224
1225 Wed Mar  3 23:28:48 2004  Matthias Clasen  <maclas@gmx.de>
1226
1227         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1228         implementation into a new gtk_combo_box_set_active_internal() 
1229         function, which doesn't do the short-circuiting. 
1230         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1231         set_active_internal() here, since the active item may change here,
1232         although the index is unchanged.
1233
1234 Wed Mar  3 23:26:49 2004  Matthias Clasen  <maclas@gmx.de>
1235
1236         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1237         traditional option menu placement of the popup for regular combo
1238         boxes. Grids and editable combo boxes use the combo-like placement 
1239         below the entry.  (#136021)
1240         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): 
1241         * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1242         before popping up the menu, to make the placement work.
1243         
1244 Wed Mar  3 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
1245
1246         * gtk/gtkmain.c (gtk_propagate_event): Special case
1247         scroll events so that they propagate up the widget
1248         heirarchy when received on insensitive widgets.
1249         (#101102, reported by Geoff Reedy)
1250
1251 Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
1252
1253          #109594, reported by Olivier Ripoll
1254
1255         * gtk/gtkentry.c (gtk_entry_size_request): Use max of 
1256         width and digit width for gtk_entry_set_width_chars,
1257         and round up.
1258
1259         * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1260         width of the entry to 7 chars.
1261
1262 Wed Mar  3 16:00:10 2004  Owen Taylor  <otaylor@redhat.com>
1263
1264         * configure.in: Strip out the "export-dynamic" libtool
1265         option from library link lines. (#124687, James Henstridge)
1266
1267 Wed Mar  3 16:06:03 2004  Jonathan Blandford  <jrb@gnome.org>
1268
1269         * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1270         Don't activate the combo if we're in the midst of changing
1271         folders.
1272
1273 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1274
1275         * tests/testsocket_common.c: (print_hello): don't try and store
1276         pointers in ints. Fixes 64-bit build.
1277
1278 2004-03-03  Federico Mena Quintero  <federico@ximian.com>
1279
1280         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1281         not using a temporary variable, and clarify the documentation.
1282         Fixes #136008.
1283
1284 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1285
1286         * gtk/gtkexpander.c:
1287         (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1288         (gtk_expander_set_label_widget): Set the label widget's
1289         state to prelight if we're prelit. Fixes bug #136078.
1290
1291 2004-03-03  Murray Cumming  <murrayc@murrayc.com>
1292
1293         * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1294         signal vfunc declaration, adding the first parameter, which is the
1295         widget emitting the signal.
1296
1297 2004-03-03  Morten Welinder  <terra@gnome.org>
1298
1299         * tests/testfilechooser.c (update_preview_cb): Plug leak.
1300
1301 Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
1302
1303         * gtk/gtkfilechooserdialog.c
1304         (file_chooser_widget_default_realized_size_changed): Split
1305         function into realized and unrealized variants, and consolidate
1306         the handling fo size-changing and default changing.
1307
1308         * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1309         remove resizable-hints-changed, as it just complicated things.
1310
1311         * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1312         resizable-hints-changed.
1313         
1314 2004-03-03  Tor Lillqvist  <tml@iki.fi>
1315
1316         * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1317
1318         * NEWS: Correct spelling of my name in one place.
1319
1320 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1321
1322         * gtk/gtkfilechooserdefault.c
1323         (gtk_file_chooser_default_set_current_folder): Handle errors in
1324         setting the path bar's path.  Fixes #136000, based on a patch by
1325         Morten Welinder.
1326
1327         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1328         Don't free our own propagated error.
1329
1330         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1331         parent_path upon error.  Fixes #136006, patch by Morten Welinder.
1332         (gtk_path_bar_set_path): Unref the file_folder upon error.
1333         (gtk_path_bar_set_path): Return a boolean success code.
1334
1335 Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
1336
1337         * tests/testcombochange.c: Add an animation mode, to test 
1338         how the combobox behaves if the model changes while it is popped
1339         up.
1340
1341 Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
1342
1343         * === Released 2.3.5 ===
1344
1345         * NEWS: Updates
1346
1347         * configure.in: Version 2.3.5, interface age 0.
1348         Require glib-2.3.5, pango-1.3.5.
1349
1350 Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
1351
1352         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1353         popping up the completions across the edge of the monitor.
1354         Part of #135561.
1355
1356 Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
1357
1358         * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): 
1359         Move the /nonexistant stuff out of the main window,
1360         keep the main window somewhat normal looking.
1361
1362 Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
1363
1364         * gtk/gtktreestore.c (gtk_tree_store_reorder)
1365         * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1366         up the interpretation of new_order to match what
1367         it means elsewhere, document the meaning of new_order.
1368
1369         * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1370         Fix interpretation of new_order.
1371
1372         * tests/testcombochange.c (on_reorder): Fix interpretation
1373         of new_order.
1374
1375         * tests/testcombochange.c (on_reorder): Fix hitting
1376         "reorder" with an empty list.
1377
1378 Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1379
1380         Patch from Frederic Crozat, test code from Jean-Philippe
1381         Chancelier. Fixes bug #120479.
1382         
1383         * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1384         to the right window group.
1385
1386         * gtk/gtkmenu.c (gtk_menu_popup): Same
1387
1388         * tests/testsocket.c (main): Pack the plugs into an hbox instead
1389         of a vbox.
1390
1391         * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1392         GtkComboBox to the children.
1393
1394 Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
1395
1396         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1397         If the model was empty before, select the first inserted
1398         item.
1399
1400         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1401         Fix up the logic for the new row to select.
1402
1403         * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1404         Rename "appearance" property to "appears-as-list".
1405
1406         * tests/testcombochange.c tests/Makefile.am: Test case
1407         for combos and dynamically changing models.
1408
1409 Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
1410
1411         * gtk/gtkfilechooserdefault.c
1412         (gtk_file_chooser_default_get_resizable_hints): set the default
1413         value, spotted by Morten Welinder.
1414
1415 Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
1416
1417         * gtk/gtkfilechooserdefault.c
1418         (gtk_file_chooser_default_get_resizable_hints): get the logic
1419         correct.  This will fix sizing on save dialogs.
1420
1421         (save_widgets_create): set_mnemonic_widget.
1422
1423 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1424
1425         * gtk/gtkfilechooserdefault.c
1426         (gtk_file_chooser_default_set_current_folder): Don't update the
1427         save folder combo if we are already switching folders; based on a
1428         patch by Jonathan Blandford.
1429
1430         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1431         Handle failure to insert the path.  Based on a patch by Morten
1432         Welinder attached to bug #135380.
1433
1434         * tests/testfilechooser.c (extra_widget_create): Add a bunch of
1435         buttons to test various things.
1436
1437 Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
1438
1439         * tests/Makefile.am: Add testentrycompletion.
1440
1441         * tests/testentrycompletion.c: New file to test some of the
1442         more exotic GtkEntryCompletion features.
1443
1444 Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
1445
1446         * tests/testfilechooser.c (main): improve tests a little.
1447
1448 Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
1449
1450         * gtk/gtkcombobox.c: Always connect to the changed
1451         signals on the model, update the active item as
1452         appropriate when rows are inserted/deleted/reordered,
1453         re-layout the menu on ::rows-reordered.
1454
1455         * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
1456         Allow %NULL for path to unset and leave no current
1457         path.
1458
1459 Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
1460
1461         * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
1462         the popup above the sample if there is not enough room below.
1463         Part of #135543.
1464
1465 Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
1466
1467         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the 
1468         frame for the list mode etched in, to give the popup a slightly
1469         less flat appearance. 
1470
1471 Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
1472
1473         * gtk/gtk.def: Add gtk_combo_box_entry_new_text().  
1474
1475 2004-03-02  Morten Welinder  <terra@gnome.org>
1476
1477         * tests/testfilechooser.c (size_prepared_cb): Don't scale images
1478         that are small enough to fit.  Avoid using incompatibly typed data
1479         pointer.
1480
1481         * gtk/gtkfilechooserdefault.c
1482         (gtk_file_chooser_default_get_resizable_hints): Test the
1483         resize_horizontally pointer, not the deferenced pointer.
1484
1485 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1486
1487         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
1488         flag shortcuts_current_folder_is_volume.
1489         (shortcuts_add_current_folder): Set
1490         impl->shortcuts_current_folder_is_volume as appropriate.
1491         (remove_current_folder_cb): Handle the flag.
1492         (shortcuts_activate_item): Likewise.
1493         (shortcuts_update_current_folder): Handle the
1494         impl->shortcuts_current_folder_active flag; only add the folder if
1495         it doesn't already exist in the list.
1496         (shortcuts_model_create): Don't insert the current folder
1497         separator here.
1498         (shortcuts_add_current_folder): Insert the separator here.
1499         (shortcut_find_position): Renamed from shortcut_exists(); now
1500         returns an index.
1501         (shortcuts_add_current_folder): Set the active item in the combo.
1502
1503 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1504
1505         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
1506         use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
1507
1508 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1509
1510         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
1511         unref an old model; there isn't one.  This was a leftover from
1512         when we recreated the model on every change.
1513         (save_widgets_create): Create the save folder combo.
1514         (shortcuts_model_create): Don't set the model on the tree view
1515         here.
1516         (gtk_file_chooser_default_constructor): Create the shortcuts model
1517         here, before the rest of the widgets.
1518         (shortcuts_list_create): Don't call shortcuts_model_create() here;
1519         just set the model on the tree.
1520         (save_folder_combo_create): New function, provided by Jonathan
1521         Blandford.
1522         (update_appearance): Set the sensitivity of the folder combo.
1523         (shortcuts_activate_iter): New helper function; code moved from
1524         shortcuts_row_activated_cb().
1525         (shortcuts_activate_item): New helper function.
1526         (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
1527         (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
1528         SHORTCUTS_BOOKMARKS_SEPARATOR.
1529         (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
1530         (shortcuts_insert_separator): Add a position argument.
1531         (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR 
1532         and SHORTCUTS_CURRENT_FOLDER positions.
1533         (shortcut_exists): Ignore the current folder row.
1534         (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
1535         (shortcuts_model_create): Create a filter model for the shortcuts list.
1536         (shortcuts_list_create): Set the model to the shortcuts_filter_model.
1537         (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
1538         (bookmarks_check_remove_sensitivity): Likewise.
1539         (shortcuts_row_activated_cb): Likewise.
1540         (gtk_file_chooser_default_set_current_folder): New function.
1541         (gtk_file_chooser_default_set_current_folder): Update the current
1542         folder row in the shortcuts list.
1543
1544         * gtk/gtkfilechooserwidget.c
1545         (gtk_file_chooser_widget_constructor): Cast correctly for
1546         _gtk_file_chooser_embed_set_delegate().
1547
1548 Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
1549
1550         * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
1551         (#127499, based on patch from Michael Natterer)
1552
1553         * tests/testgtk.c: Fix bidi strings to display correctly
1554         with new auto-bidi.
1555
1556 Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
1557
1558         * gtk/gtksettings.c: Remove the include of Xft.h, which is already
1559         dragged in via pangoxft.h.  (#135496, David Hawthorne)
1560
1561 Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
1562
1563         * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
1564         callers.
1565
1566         * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
1567         the key event propagation mechanism used for focus widgets.
1568         (gtk_window_key_release_event): use the same key event propagation logic
1569         as gtk_window_key_press_event().
1570
1571 2004-03-01  Simon Budig  <simon@gimp.org>
1572
1573         * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
1574         for the XInput extension. We want to see them all.
1575         We now get Proximity Out events again. Fixes bug #135320.
1576
1577 Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
1578
1579         * gtk/gtkimmodule.c (match_locale): Use case-insensitive
1580         comparison. Fixes XIM module loading on AIX.  (#131277)
1581
1582 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
1583
1584         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
1585         Make it work correctly when the child model is cleared 
1586         completely. (#121633)
1587
1588 2004-03-01  Michael Natterer  <mitch@gimp.org>
1589
1590         * gtk/gtkfilechooserwidget.h: removed accidentially committed char
1591         which broke the build.
1592
1593 Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
1594
1595         * gtk/gtkfilechooserdialog.c
1596         (file_chooser_widget_default_size_changed): only store the size if
1597         we can resize in that direction.
1598
1599 Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
1600
1601         * gtk/gtkfilechooserwidget.c
1602         (gtk_file_chooser_widget_new_with_backend): new function.  Long
1603         name.
1604
1605 2004-03-01  Morten Welinder  <terra@gnome.org>
1606
1607         * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
1608         needed.
1609
1610         * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
1611         semantics and check for errors.
1612
1613         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
1614
1615         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
1616         display_name is NULL.
1617
1618 Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
1619
1620         Based on patch by Alex Larsson
1621
1622         * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
1623         GtkSetting to set the backend if the app doesn't specify one.
1624
1625         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
1626         Add Gtk/FileChooserBackend.
1627
1628 Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
1629
1630         * autogen.sh:
1631         - exit with $? instead of 1 in case of failure
1632         - exit with $? if ./configure failed
1633           (that's so autogen.sh && make lines work)
1634         - removed --enable-gtk-doc option
1635         - added $AUTOGEN_CONFIGURE_ARGS
1636
1637 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1638
1639         * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
1640         filter_info.uri correctly.  Fixes #135379, pointed out by Damon
1641         Chaplin.
1642         (shortcuts_get_index): Compute the bookmarks index correctly.
1643         Fixes #135714, pointed out by Damon Chaplin.
1644         (gtk_file_chooser_default_list_shortcut_folders): Handle the case
1645         with no shortcuts, and don't run off the end of the list if there
1646         are no bookmarks and their separator.  Fixes #135572, patch by
1647         Damon Chaplin.
1648
1649 Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
1650
1651         * gtk/gtklabel.c: Handle dynamically resolved bidi direction
1652         when drawing the cursor. (#118541)
1653
1654         * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
1655
1656         * gtk/gtkentry.c (draw_insertion_cursor): Fix up
1657         some confusion in parameter ordering.
1658
1659 Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
1660
1661         * gtk/gtkfilechooserdialog.c
1662         (file_chooser_widget_resizable_hints_changed): Handle
1663         shrinking/growing.
1664
1665 2004-03-01  Michael Natterer  <mitch@gimp.org>
1666
1667         * gtk/gtktextbtree.c: removed underscores from calls to
1668         gtk_text_btree_resolve_bidi().
1669
1670 Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
1671
1672         Patch from Dov Grobgeld to implement auto-bidi-direction
1673         for GtkTextView (#118543)
1674
1675         * gtk/gtktextbtree.[ch]: Resolve bidi base direction
1676         for each line by propagating backwards/forwards as
1677         necessary.
1678
1679         * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the 
1680         bidi base direction for the ;ine with the cursor from 
1681         the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
1682         
1683 Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
1684
1685         * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
1686         based on a patch from Dov Grobgeld. (#118540)
1687
1688 Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
1689
1690         * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() 
1691         to allow right-aligned entries and a "xalign" 
1692         property. (#59799, patch from Egon Andersen and 
1693         Steffen Gutmann)
1694
1695         * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
1696         xalign property description here too.
1697
1698         * tests/testtext.c: UNDERLINE_ERROR test addition
1699         from Nicolas Settons' patch.
1700
1701 Sun Feb 29 20:34:06 2004  Owen Taylor  <otaylor@redhat.com>
1702
1703         * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
1704         gtk_window_activate_key() (Request from Tim Janik)
1705
1706 Mon Mar  1 01:00:11 2004  Matthias Clasen  <maclas@gmx.de>
1707
1708         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
1709         Make DND operations within a buffer move the dragged 
1710         text instead of copying it; also make DND operations 
1711         a single user action for undo purposes.  (#135191, 
1712         #93139, reported by Tommi Komulainen, patch by Paolo Borelli
1713         and Paolo Maggi)
1714
1715 Mon Mar  1 00:51:11 2004  Matthias Clasen  <maclas@gmx.de>
1716
1717         * NEWS: News for 2.3.5.
1718
1719 Sun Feb 29 23:25:35 2004  Matthias Clasen  <maclas@gmx.de>
1720
1721         * gtk/gtkentry.c (gtk_entry_completion_key_press): 
1722         Fix the Shift-Tab support to go backwards.
1723
1724 Sun Feb 29 16:40:40 2004  Owen Taylor  <otaylor@redhat.com>
1725
1726         * gtk/gtktextview.c (gtk_text_view_class_init): Fix 
1727         capitalization to match other style properties.
1728
1729 Sun Feb 29 16:38:53 2004  Owen Taylor  <otaylor@redhat.com>
1730
1731         * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
1732         typo in property string.
1733
1734 Sun Feb 29 16:35:23 2004  Owen Taylor  <otaylor@redhat.com>
1735
1736         * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
1737         PANGO_UNDERLINE_ERROR (Based on a patch by
1738         Nicolas Setton, #114237)
1739
1740         * gtk/gtktextview.c: Add a error-underline-color style
1741         property.
1742
1743 Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1744
1745         * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
1746         function returning a good step value for the mouse wheel. For
1747         scrollbars, base the step on page_size^(2/3), for other ranges,
1748         use 2 * step_increment.
1749
1750         * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
1751
1752         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): 
1753         ... and here.
1754
1755         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
1756
1757 Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
1758
1759         * gtk/gtkfilechooserembed.c
1760         (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
1761         (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
1762
1763         * gtk/gtkfilechooserdialog.c
1764         (file_chooser_widget_default_size_changed): Get the correct
1765         initial size for the dialog.  Also, don't bother with
1766         gtk_window_set_default_size().  It's not really meaningful.
1767
1768         * gtk/gtkfilechooserdefault.c
1769         (gtk_file_chooser_default_get_default_size): Get the correct
1770         spacing for the preview_widget
1771         (update_preview_widget_visibility): Clear widget field after we
1772         destroy it.
1773
1774 2004-02-29  Federico Mena Quintero  <federico@ximian.com>
1775
1776         * gtk/gtkfilechooserdefault.c
1777         (gtk_file_chooser_default_set_property): Handle
1778         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
1779         (gtk_file_chooser_default_get_property): Likewise.
1780         (struct _GtkFileChooserDefault): Added fields for preview_label,
1781         use_preview_label, preview_display_name, preview_box.  Removed
1782         preview_frame.
1783         (set_preview_widget): Reorder the widget in relation to the label.
1784         (update_preview_widget_visibility): Create or destroy the preview
1785         label.
1786         (check_preview_change): Update impl->preview_display_name and the
1787         label.
1788         (find_good_size_from_style): Use the preview_box.
1789         (gtk_file_chooser_default_finalize): Free
1790         impl->preview_display_name.
1791         (gtk_file_chooser_default_init): Initialize
1792         impl->use_preview_label.
1793
1794         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
1795         "use-preview-label" property.
1796         (gtk_file_chooser_set_use_preview_label): New function.  This sets
1797         whether one wants the file chooser to display a stock label with
1798         the previewed filename.  Apps that do really fancy previews can
1799         turn this off and draw the name themselves.
1800         (gtk_file_chooser_get_use_preview_label): New function.
1801         (gtk_file_chooser_get_preview_widget_active): Documentation fix.
1802
1803         * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
1804         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
1805
1806         * gtk/gtkfilechooserutils.c
1807         (_gtk_file_chooser_install_properties): Override the
1808         "use-preview-label" property.
1809
1810 Sun Feb 29 04:43:29 2004  Matthias Clasen  <maclas@gmx.de>
1811
1812         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
1813         Shift-Tab work when the completion popup is shown.
1814
1815 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
1816
1817         * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
1818         the title of the filename column.
1819         (create_file_list): Likewise.
1820
1821 Sun Feb 29 03:31:42 2004  Matthias Clasen  <maclas@gmx.de>
1822
1823         * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up 
1824         and Page_Down in the completion popup to move page-wise if we're
1825         scrolling.
1826
1827 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
1828
1829         * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
1830         Removed.
1831         (list_name_data_func): Don't call the function above.
1832         (list_mtime_data_func): Likewise.
1833
1834 Sun Feb 29 02:34:35 2004  Matthias Clasen  <maclas@gmx.de>
1835
1836         * gtk/gtkcombobox.c (gtk_combo_box_list_position): New 
1837         function which calculates position and size for the popup in
1838         list mode. Currently it only pushes the popup horizontally 
1839         into the screen.
1840
1841 Sun Feb 29 01:10:09 2004  Matthias Clasen  <maclas@gmx.de>
1842
1843         * gtk/gtkcombobox.c: Implement the previous fix in a better way,
1844         small cleanups.
1845
1846 2004-02-28  Hans Breuer  <hans@breuer.org>
1847
1848         * gtk/gtkfilesystemwin32.c : applied patch from
1849         J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
1850
1851 Sat Feb 28 23:30:36 2004  Matthias Clasen  <maclas@gmx.de>
1852
1853         * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
1854         popup window before popping up.  (#135651)
1855
1856 Sat Feb 28 23:29:35 2004  Matthias Clasen  <maclas@gmx.de>
1857
1858         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
1859         * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
1860         handler for style_set in class_init instead of connecting to
1861         the signal in init. (noticed by Yosh).
1862
1863 Sat Feb 28 14:48:35 2004  Owen Taylor  <otaylor@redhat.com>
1864
1865         * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, 
1866         not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
1867
1868 2004-02-28  Hans Breuer  <hans@breuer.org>
1869
1870         * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
1871         change. Also merged some crossplatform code from 
1872         gtkfilesystemunix.c
1873         * gtk/gtk.def : updated externals
1874
1875         * gtk/makefile.msc.in : added gtkfilechooserembed.obj
1876
1877 2004-02-28  Hans Breuer  <hans@breuer.org>
1878
1879         * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
1880         when destroying, fixes bug #120007. Also removed the mirrored
1881         ref counting for deprecated gdk_drag_context_<ref|unref>()
1882         cause it wasn't reliable anymore anyway.
1883
1884         * gdk/win32/gdkdisplay-win32.c : fix typo, which should
1885         have broken the win32 build for everyone not using msvc
1886
1887         * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
1888         return negative values for ptMaxTrackSize, it caused snapping
1889         windows to their minimum size
1890
1891 Sat Feb 28 01:39:01 2004  Matthias Clasen  <maclas@gmx.de>
1892
1893         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
1894         switching back to non-gridded mode.  (#135169)
1895
1896 Fri Feb 27 22:29:46 2004  Matthias Clasen  <maclas@gmx.de>
1897
1898         * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
1899
1900 Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
1901
1902         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
1903         Whoops.  Didn't mean to commit the size change.
1904
1905 Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
1906
1907         * gtk/gtkfilechooserembed.h: New private interface to help
1908         negotiate the default size of the widget.  Still a bit buggy, but
1909         better than the old behavior.
1910
1911         * gtk/gtkfilechooserdefault.c: Implement the embed interface.
1912
1913         * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
1914
1915         * gtk/gtkfilechooserdialog.c: Use the embed interface.
1916
1917 2004-02-27  Federico Mena Quintero  <federico@ximian.com>
1918
1919         * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
1920         "position" argument.
1921
1922         * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for 
1923         GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
1924         (struct _GtkFileSystemIface): Added a "position" argument to the
1925         ::insert_bookmark() method.
1926
1927         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1928         Updated; renamed from gtk_file_system_unix_add_bookmark().  Return
1929         an error if the path already exists in the bookmarks list.
1930         (gtk_file_system_unix_remove_bookmark): Return an error if the
1931         path does not exist in the bookmarks list.
1932
1933         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
1934         For now, use gtk_file_system_insert_bookmark() with -1 for the
1935         position.  DnD will come next.
1936
1937 Fri Feb 27 21:42:28 2004  Matthias Clasen  <maclas@gmx.de>
1938
1939         * gtk/gtkcombobox.c (gtk_combo_box_relayout): 
1940         * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only 
1941         create a new setup if appearance actually changed.
1942         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear): 
1943         * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make 
1944         these more robust.  (#127623, Damon Chaplin)
1945
1946 Fri Feb 27 15:06:00 2004  Jonathan Blandford  <jrb@redhat.com>
1947
1948         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
1949         folder-mode property.
1950
1951         * gtk/gtkfilechooserutils.c
1952         (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
1953
1954 Thu Feb 26 17:38:40 2004  Manish Singh  <yosh@gimp.org>
1955
1956         * gtk/gtkcombobox.c: Add function declaration for
1957         gtk_combo_box_list_remove_grabs().
1958
1959 Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
1960
1961         * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
1962         cursor move, but not Home and End.
1963
1964         * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
1965         jump to the ends of the list, not Home and End - since we're not 
1966         scrolling yet, a "page" is always the complete list.  (#127430, Marco
1967         Pesenti Gritti)
1968
1969 Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
1970
1971         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): 
1972         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
1973         the priv pointers dangle.  (#127623, Damon Chaplin)
1974
1975 Thu Feb 26 17:31:34 2004  Manish Singh  <yosh@gimp.org>
1976
1977         * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
1978
1979 Thu Feb 26 19:53:32 2004  Owen Taylor  <otaylor@redhat.com>
1980
1981         * gdk/x11/xsettings-common.h (xsettings_client_process_event): 
1982         Add xsettings_client_set_grab_func,
1983         Add xsettings_client_set_ungrab_func to the list of renames.
1984
1985 Thu Feb 26 19:48:39 2004  Owen Taylor  <otaylor@redhat.com>
1986
1987         * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
1988         in case of mismatched property type.
1989
1990 Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
1991
1992         * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
1993         modes to the enum.
1994
1995         * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
1996         (gtk_file_chooser_get_folder_mode): Remove
1997
1998 Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
1999
2000         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
2001         GDK_FILTER_CONTINUE for unhandled message types.
2002
2003         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
2004         multiple filters for the same event type with the standard
2005         "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
2006
2007         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
2008         Append to the filter list not prepend, since order now matters.
2009
2010         * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter): 
2011         Append to the filter list not prepend, since order now matters.
2012         
2013 Thu Feb 26 23:39:07 2004  Matthias Clasen  <maclas@gmx.de>
2014
2015         Fixes for #135333, analysed by Damon Chaplin:
2016         
2017         * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
2018         grab here.
2019         * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here, 
2020         so that we don't forget to grab when the menu is popped via
2021         keynav.
2022         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
2023         ungrab here.
2024         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
2025
2026 Thu Feb 26 23:26:00 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2027
2028         * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
2029         cursors for resize grips. (Bug #129621)
2030
2031         * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
2032         fix - patch by Torsten Schoenfeld.
2033
2034         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
2035         space between the items. (Bug #110775)
2036
2037         * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
2038         inside menu items that are inside a menu bar. (Bug #110775)
2039         
2040         * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
2041         not GDK_PACKAGES, to prevent applications from getting linked to
2042         it (Bug #119804)
2043
2044         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
2045         ipadding inside the item. (Bug #61843)
2046
2047 Thu Feb 26 22:56:40 2004  Matthias Clasen  <maclas@gmx.de>
2048
2049         * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets() 
2050         by list_mnemonic_widgets() in doc comments as well.
2051
2052 Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
2053
2054         Fixes from Torsten Schoenfeld.
2055
2056         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): 
2057         Fix name in doc comment.
2058
2059         * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
2060         not get_mnemonic_labels.
2061
2062 Thu Feb 26 22:20:44 2004  Matthias Clasen  <maclas@gmx.de>
2063
2064         * gtk/gtkcomboboxentry.h:
2065         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2066         convenience API to construct simple text combos, implemented by
2067         Damon Chaplin.
2068
2069         * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2070
2071 Thu Feb 26 22:19:29 2004  Matthias Clasen  <maclas@gmx.de>
2072
2073         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2074
2075 Thu Feb 26 15:43:43 2004  Owen Taylor  <otaylor@redhat.com>
2076
2077         * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2078         in a simplified form as gtk_draw_insertion_cursor().
2079         (#99031, request from Alex Larsson)
2080
2081         * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2082         Adapt to new gtk_draw_insertion_cursor().
2083
2084         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2085         gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2086         Since: 2.4.
2087
2088         * gtk/gtkiconfactory.c (icon_size_settings_changed)
2089           gtk/gtkicontheme.c (do_theme_change)
2090           gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2091         * gtk/gtksettings.c (gtk_settings_notify):
2092         _gtk_rc_reset_styles => gtk_rc_reset_styles.
2093
2094 Thu Feb 26 21:52:58 2004  Matthias Clasen  <maclas@gmx.de>
2095
2096         Fixes for #127804 and #134722, Damon Chaplin:
2097         
2098         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end): 
2099         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start): 
2100         Ref and sink the cell renderers here.
2101         
2102         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2103         renderers here, and free attributes and func_data. 
2104
2105 Thu Feb 26 21:41:38 2004  Matthias Clasen  <maclas@gmx.de>
2106
2107         * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2108
2109 Thu Feb 26 14:47:22 2004  Dom Lachowicz <cinamod@hotmail.com>
2110
2111         * gtk/gtk.def: Export gtk_rc_reset_styles()
2112
2113 Thu Feb 26 14:47:22 2004  Owen Taylor  <otaylor@redhat.com>
2114
2115         * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles(). 
2116         (Request from Dom Lachowicz, #123769)
2117
2118 Wed Feb 25 19:11:31 2004  Owen Taylor  <otaylor@redhat.com>
2119
2120         * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2121         ::group-changed signal emitted when the radio button/menu item 
2122         is moved from one group of radio buttons to another. 
2123         (#79563, based partially on a patch from Padraig O'Briain)
2124
2125 Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
2126
2127         * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2128         free() function. (#135511, George Bronnikov)
2129
2130 2004-02-26  Federico Mena Quintero  <federico@ximian.com>
2131
2132         * configure.in: Added a comment to inform translators that they
2133         must add .po files to both po/ and po-properties/ when they add
2134         new languages to ALL_LINGUAS.
2135
2136 Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
2137
2138         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2139         Call g_convert(), not g_convert() with fallback, since Emacs is
2140         happier if we reject the COMPOUND_TEXT request and it can
2141         then ask for UTF-8. (#114527)
2142
2143         * gtk/gtkselection.c (gtk_selection_data_set_text): When
2144         TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2145
2146 Wed Feb 25 22:35:00 2004  Tomasz KÅ‚oczko <kloczek@pld.org.pl>
2147
2148         * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2149         vesion for build gtk+ is now 2.3.3.
2150
2151 Wed Feb 25 16:00:40 2004  Jonathan Blandford  <jrb@gnome.org>
2152
2153         * gtk/gtkfilechooserdefault.c (update_appearance): move the
2154         expander code.
2155
2156 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2157
2158         * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2159         adding back sr@ije.
2160
2161 2004-02-25  Federico Mena Quintero  <federico@ximian.com>
2162
2163         * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2164         is fixed for it.
2165
2166 Wed Feb 25 12:44:49 2004  Owen Taylor  <otaylor@redhat.com>
2167
2168         * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2169
2170 Wed Feb 25 12:21:32 2004  Owen Taylor  <otaylor@redhat.com>
2171
2172         * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2173         Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2174         gtk_widget_get_mnemonic_labels(). (#103456)
2175
2176 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2177
2178         * configure.in: Added sr@ije to ALL_LINGUAS.
2179
2180 Wed Feb 25 09:46:34 2004  Owen Taylor  <otaylor@redhat.com>
2181
2182         * gtk/gtkstyle.c (gtk_style_finalize): Free 
2183         style->icon_factories (#130128)
2184
2185 Wed Feb 25 03:52:58 2004  Jonathan Blandford  <jrb@gnome.org>
2186
2187         * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2188         internal buttons.
2189
2190         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2191         rename some widgets to make it clear where they are packed.
2192         (update_appearance): New function to handle all the 'logic' of
2193         layout in one place.  We aren't trying to keep all our properties
2194         in sync.
2195         (gtk_file_chooser_default_set_property): use update_appearance()
2196
2197 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2198
2199         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2200         from create_shortcuts_model().
2201         (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2202         to shortcuts_list.
2203         (shortcuts_list_create): Renamed from shortcuts_tree_create().
2204         (create_file_list): Enable the tree view as a model drag source.
2205         (create_folder_tree): Likewise.
2206
2207         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2208         Register the drag source interface.
2209         (drag_source_iface_init): New function.
2210         (drag_source_row_draggable): New function.
2211         (drag_source_drag_data_get): New function.
2212
2213 Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>
2214
2215         * === Released 2.3.4 ===
2216
2217         * configure.in: Bump version to 2.3.4, fix broken
2218         gtk_binary_age value by copying the GLib logic
2219         to automatically set it to the right values.
2220
2221 Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>
2222
2223         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
2224         * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
2225         Don't resize priv->cell_view if it is NULL.  (#127804, 
2226         Damon Chaplin)
2227         
2228 Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>
2229
2230         * gtk/gtkcombobox.c: Add a comment about the different 
2231         modi of this widget. Get rid of priv->hbox, and some other
2232         cleanups. Make sure that gtk_combo_box_unset_model() is 
2233         always called before setting up a different mode. 
2234
2235 Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>
2236
2237         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2238         underscores in keyval names to spaces. (#131480)
2239
2240 Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>
2241
2242         * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2243         Uwe Zeisberger)
2244
2245 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
2246
2247         * === Released 2.3.3 ===
2248
2249         * configure.in: Version 2.3.3, interface age 0.
2250
2251         * NEWS: Finish updates for 2.3.3.
2252
2253 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2254
2255         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2256         GtkEntry for the filename, not a GtkFileChooserEntry.
2257         (update_chooser_entry): Use gtk_entry_set_text() rather than
2258         _gtk_file_chooser_entry_set_file_part().
2259         (gtk_file_chooser_default_set_current_name): Likewise.
2260         (gtk_file_chooser_default_set_current_folder): Don't set the base
2261         folder of the entry, and don't call update_chooser_entry().
2262         (gtk_file_chooser_default_get_paths): Use the plain entry.
2263         (save_widgets_create): Store the "Save in Folder" label in the
2264         impl structure.
2265         (expander_activate_cb): Set the sensitivity of the label and
2266         combo.
2267         (save_widgets_create): Connect to "notify::expanded" rather than
2268         "activate" on the expander.
2269         (expander_changed_cb): Renamed from expander_activate_cb().  Flip
2270         the conditions again...
2271
2272 Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>
2273
2274         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2275         column as different if there are 3 or more visible columns.
2276
2277 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2278
2279         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2280         Fix compilation (#135278, Padraig O'Briain).
2281         
2282 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2283
2284         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2285         Translate the desktop label.
2286         
2287         (shortcuts_get_index), (shortcuts_add_bookmarks),
2288         (shortcuts_insert_separator), (create_shortcuts_model):
2289         Don't show the bookmark separator if there are no bookmarks.
2290         
2291 Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>
2292
2293         * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2294         dialog look like the nautilus dialog.
2295         (expander_activate_cb): get the order correct.
2296
2297 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2298
2299         * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2300         bookmarks_check_add_sensitivity().
2301         (shortcut_exists): New helper function; moved the testing code
2302         over from bookmarks_check_add_sensitivity().
2303         (bookmarks_check_add_sensitivity): Check the contents of the
2304         selection in the file/folder list.  Use shortcut_exists().
2305         (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2306         the path is already in the shortcuts list.
2307         (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2308         selection or from the current folder, as appropriate.
2309
2310 Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>
2311
2312         * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2313         mnemonics.  Sorry translators.
2314
2315 Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>
2316
2317         * NEWS: Additions. This should be complete for the main ChangeLog
2318         now, still need to sift through gdk-pixbuf, docs, and translations.
2319
2320 Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>
2321
2322         * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2323         Add a get_size implementation so that we are no longer the same
2324         height as text.
2325
2326 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2327
2328         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2329         (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2330         (create_shortcuts_model), (shortcuts_tree_create),
2331         (gtk_file_chooser_default_remove_shortcut_folder):
2332         Improve bookmark list rendering by controlling the visibility
2333         of the pixbuf cell so that it will be invisible for the separator
2334         row, also use a list store instead of a tree store for the model
2335         so we won't get unnecessary space for an expander.
2336         
2337 Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>
2338
2339         * gtk/gtkcombobox.c: Add a destroy implementation in order to
2340         set priv->cell_view to NULL before finalize stumbles over the 
2341         dangling pointer. This big array of pointers into the widget 
2342         tree in GtkComboBoxPrivate is really fragile and should be
2343         cleaned up.
2344
2345 Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>
2346
2347         * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2348         group when allocating space for the buttons at the bottom just in
2349         case.  Also, move the filter to below the file list.
2350
2351 Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>
2352
2353         * gtk/gtkfilechooserdefault.c
2354         (gtk_file_chooser_default_class_init): Seth was confused by
2355         keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
2356         home, not up.
2357
2358 Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>
2359
2360         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2361         more cleanly.
2362
2363         * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2364
2365 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2366
2367         Rework the user interface of the file chooser, as per 
2368         Seth Nickell's design.
2369
2370         * gtk/gtkfilechooserdefault.c
2371         (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2372                 "location-popup" - C-l
2373                 "up-folder"      - C-Up
2374                 "home-folder"    - C-Home
2375         (up_folder_handler): New function; moved the code from up_button_clicked().
2376         (up_button_clicked_cb): Call up_folder_handler().
2377         (home_folder_handler): New function.
2378         (location_popup_handler): New function.
2379         (struct _GtkFileChooserDefault): Add an hpaned field.
2380         (gtk_file_chooser_default_set_current_name): Check that we are in
2381         Save mode.
2382         (save_widgets_create): New function, create the widgets specific
2383         to Save mode.
2384         (main_paned_create): New function, create the hpaned's widgets here.
2385         (gtk_file_chooser_default_constructor): Create the open and save
2386         widgets, and show only one set.
2387         (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2388         (gtk_file_chooser_default_get_paths): Only pay attention to the
2389         entry in Save mode.
2390         (update_chooser_entry): Update the entry only in Save mode.
2391         (entry_activate): Removed.
2392
2393 Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>
2394
2395         * configure.in: Remove the configure.in check for fontconfig 
2396         entirely; it's not needed, since PangoXft implies that sufficiently
2397         new fontconfig is present.
2398
2399 Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>
2400
2401         * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2402         for (i = 0; i < 10; i++)
2403           g_print ("I will compile before committing.\n");
2404
2405 Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>
2406
2407         * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2408         GtkPathBar by default now.
2409
2410         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2411         current path from the path.
2412         (gtk_path_bar_class_init): new signal
2413         (button_clicked_cb): emit the signal when we're selected.
2414         (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2415         clearing thr first_scrolled_button.
2416
2417 Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>
2418
2419         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
2420         allocation for the toggle button so that it actually shows up 
2421         in LTR list mode.
2422
2423         * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
2424         * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
2425         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2426         notification, and avoid excessive relayouting. 
2427
2428 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
2429
2430         Fix bug 134982, reported by Morten Welinder:
2431         
2432         * gtk/gtkpathbar.c (gtk_path_bar_destroy): 
2433         * gtk/gtktooltips.c (gtk_tooltips_destroy): 
2434         * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
2435         parent's ::destroy handler.
2436         
2437         * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
2438         parent's ::dispose handler.
2439
2440 Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>
2441
2442         * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
2443         stuff with an #ifdef, so we still build with most fontconfig versions.
2444
2445 Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
2446
2447         * gtk/gtkaction.c: (gtk_action_finalize):
2448         * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
2449         * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
2450         (gtk_entry_completion_finalize):
2451         * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
2452         * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
2453         (gtk_file_system_model_finalize):
2454         * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
2455         (gtk_icon_theme_finalize):
2456         * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
2457         * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
2458         (gtk_ui_manager_finalize):
2459         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
2460         Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
2461         patch by Jan Arne Petersen)
2462
2463 Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>
2464
2465         * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
2466         Don't crash if item is NULL.  (#131542, Dan Damian)
2467
2468 Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>
2469
2470         * configure.in: Add a check for a new enough fontconfig, since
2471         we picked up a direct dependency on it with the Xft settings.
2472
2473 Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>
2474
2475         Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
2476         
2477         * gtk/gtkcheckmenuitem.c: Introduce a new style property 
2478         indicator_size and use it instead of the hardcoded value.
2479         
2480         * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
2481         item gets enough vertical space for the label and the indicator.
2482
2483 Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2484
2485         * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
2486         _ for the new Xft settings.
2487
2488 Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2489
2490         Bug 130790 (Federico Mena Quintero, Owen Taylor)
2491         
2492         * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
2493
2494         * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
2495         XSETTINGS
2496         
2497 Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2498
2499         Bug 132502
2500         
2501         * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
2502         if we enter a non-selectable menu item.
2503
2504         * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
2505         when the user has left the item.
2506
2507 Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2508
2509         * gtk/docs: Commit auto-generated changes
2510
2511 Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>
2512
2513         * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
2514
2515         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
2516         allocation code.  Works fully in RTL languages, I think.
2517         (gtk_path_bar_scroll_up): Scroll up.
2518         (gtk_path_bar_scroll_down): Scroll down.
2519
2520 2004-02-20  Christian Rose  <menthos@menthos.com>
2521
2522         * configure.in: Added "en_CA" to ALL_LINGUAS.
2523
2524 2004-02-20  Michael Meeks  <michael@ximian.com>
2525
2526         * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
2527         (gtk_tool_item_class_init): hook it up.
2528         (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
2529
2530         * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
2531         chain to parent, fix strcmp bug.
2532
2533         * tests/testtoolbar.c (main): re-arrange widgets to allow
2534         more overflowing toolbar goodness.
2535
2536 2004-02-20  Alexander Larsson  <alexl@redhat.com>
2537
2538         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2539         Desktop directory is not translated.
2540         (set_tree_model):
2541         There might not be volumes for all paths.
2542         * gtk/gtkfilechooserwidget.c:
2543         (gtk_file_chooser_widget_constructor):
2544         Use gtk_file_chooser_set_current_folder to set cwd.
2545
2546 Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>
2547
2548         * gtk/gtkpathbar.[ch]: New widget to handle the path in the
2549         fileselector implementation.  Not hooked up to anything yet.
2550
2551         * gtk/Makefile.am: support the path bar.
2552
2553 Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>
2554
2555         * gtk/gtkstyle.c (gtk_default_draw_handle): 
2556         (gtk_default_draw_box): Make the paned handles gray when the the 
2557         widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)
2558
2559 Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
2560
2561         Fixes for #82099:
2562         
2563         * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
2564         and "Gtk/MenuImages" and map them to "gtk-button-images" and 
2565         "gtk-menu-images".
2566
2567         * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
2568         use it to set the visibility of the embedded image.
2569
2570         * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
2571         it to set the visibility of an embedded image.
2572
2573 Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>
2574
2575         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
2576         Give each radio action its own value.  (#134889, Paolo Borelli)
2577
2578 2004-02-19  Federico Mena Quintero  <federico@ximian.com>
2579
2580         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
2581         Chain to the parent's ::finalize() handler.  Fixes #134885; caught
2582         by Jan Arne Petersen.
2583
2584 2004-02-19  Mark McLoughlin  <mark@skynet.ie>
2585
2586         Make the entire expander widget width prelight as suggested
2587         by Seth in bug #134263.
2588
2589         * gtk/gtkexpander.c:
2590         (gtk_expander_paint_prelight): impl.
2591         (gtk_expander_paint): use it.
2592         (gtk_expander_redraw_expander): don't only redraw the
2593         arrow when prelit.
2594
2595 2004-02-19  Alexander Larsson  <alexl@redhat.com>
2596
2597         * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
2598         * gtk/gtkfilechooserutils.c:
2599         * gtk/gtkfilechooserutils.h:
2600         * gtk/gtkfilechooserwidget.c:
2601         Remove old file-system property.
2602         Add new file-system-backend string property
2603         
2604         * gtk/gtkfilechooserdefault.[ch]:
2605         Handle the file-system-backend property
2606         
2607         * gtk/gtkfilechooserdialog.[ch]:
2608         (gtk_file_chooser_dialog_new_with_backend):
2609         Remove old file-system property.
2610         Add new file-system-backend string property
2611         Add new function gtk_file_chooser_dialog_new_with_backend
2612         
2613         * gtk/gtkfilesystem.c: 
2614         * gtk/gtkfilesystem.h:
2615         Add filesystem module support.  
2616
2617 2004-02-18  Federico Mena Quintero  <federico@ximian.com>
2618
2619         * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
2620         from create_shortcuts_tree().
2621         (shortcuts_pane_create): New function.
2622         (button_new): Renamed from toolbar_button_new().
2623         (shortcuts_pane_create): New function, create the whole shortcuts
2624         pane here.
2625         (current_folder_create): Renamed from toolbar_create().  Don't
2626         create the bookmarks buttons here.
2627         (file_pane_create): New function.
2628         (gtk_file_chooser_default_constructor): Use the new helper
2629         functions, and don't use an extra vbox as GtkFileChooserDefault is
2630         already a vbox.
2631
2632 Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>
2633
2634         * gtk/gtkuimanager.h: 
2635         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
2636         default handlers for all signals; for consistency and for the
2637         benefit of language bindings which still rely on header parsing
2638         to find the signals.  (#134269, Jeroen Zwartepoorte)
2639         
2640 Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>
2641
2642         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
2643         Improve the efficiency here by prepending on the list and reverting
2644         it after the loop.  (#134435, Christian Biere)
2645
2646 Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>
2647
2648         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
2649         removing the plug from the socket.  (#128546, Christopher Blizzard)
2650
2651 Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>
2652
2653         * gtk/gtkradiomenuitem.h:
2654         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
2655         (gtk_radio_menu_item_new_with_label_from_widget): 
2656         (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
2657         convenience functions analogous to similar API on GtkRadioButton.
2658         (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
2659
2660 Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2661
2662         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
2663         case where the background is a solid color.
2664         (gdk_window_clear_backing_rect): Reset the clip region after use.
2665
2666         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
2667         back to using a scratch GC. Pointed out by Owen Taylor
2668         
2669         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
2670         scratch GC if the passed-in one is NULL
2671
2672 Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2673
2674         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
2675         region back to NULL on cached GC (rest of #134728)
2676
2677 Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2678
2679         Fix bug reported by Nam SungHyun (#134728)
2680         
2681         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
2682         Don't use a cached GC here since the function needs to modify the
2683         foreground color.
2684
2685         * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
2686         to NULL on the cached GC.
2687
2688 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
2689
2690         * gtk/gtkfilechooserdialog.c
2691         (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
2692         This sucks a lot.
2693
2694 Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>
2695
2696         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
2697         peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)
2698
2699 Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2700
2701         GC caching, bug #125645 (based on patch by Brian Cameron)
2702         
2703         * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
2704         * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
2705         cached GC's here.
2706         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
2707         get a scratch gc.
2708         * gdk/gdkinternals.h: Declare the function here
2709
2710         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
2711         _gdk_drawable_get_scratch_gc() instead of creating a new GC.
2712         * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
2713         * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
2714         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
2715         * gdk/gdkwindow.c (gdk_window_end_paint): same
2716         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
2717         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
2718         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
2719
2720 Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>
2721
2722         * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
2723         priv->columns to 1.
2724
2725 Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>
2726
2727         * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
2728         priv->columns >= 1 even for empty menus, since we divide by it
2729         somewhere else.  (#133428, Vincent Noel)
2730
2731 Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2732
2733         Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
2734         Taylor.
2735
2736         * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
2737
2738         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
2739         depth.
2740
2741         * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
2742         the colormap, if no colormap, special case depth 1, 
2743
2744         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
2745         _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
2746
2747         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
2748         Special-case bitmaps without a colormap.
2749
2750         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
2751         draw_pixbuf() implementation in the bitmap case.
2752
2753 2004-02-17  Mark McLoughlin  <mark@skynet.ie>
2754
2755         * modules/input/Makefile.am: only reference input method
2756         modules we've actually built. Fixes re-build failure with
2757         stale hangul module lying aroung. Bug #134518.
2758
2759 Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
2760
2761         * gdk/gdkdraw.c: Revert last commit, please don't commit patches
2762         without approval, this isn't the right way to do it.
2763
2764 2004-02-16  DindinX  <david@dindinx.org>
2765
2766         * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
2767         segments at a time, since XDrawSegments cannot handle more than this.
2768
2769         fixes bug #122026.
2770         
2771 Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2772
2773         * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
2774         gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
2775         in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
2776
2777 Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>
2778
2779         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
2780         Split declaration and assignment of combo_box.
2781         
2782         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
2783         pointless cast
2784
2785 Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>
2786
2787         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
2788         deprecation note pointing people to GtkComboBox.
2789
2790 Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
2791
2792         * gtk/gtktreednd.c: 
2793         * gtk/gtktreeview.c: Document the tree DND API.
2794
2795         * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
2796         Call gtk_drag_source_unset().  
2797         
2798 Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>
2799
2800         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
2801         Make stock_size an uint property, to allow custom icon 
2802         sizes. Also clarify the blurb.  (#130047, Erik Grinaker)
2803
2804 Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>
2805
2806         * configure.in: Remove unnecessary STRIP_* definitions, and GNU
2807         make check.
2808
2809 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
2810
2811         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
2812         Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
2813         the very first time you try to save one.
2814
2815 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
2816
2817         Fix #129020.
2818
2819         * gtk/gtkfilechooserdialog.c
2820         (set_default_size): New function, sets a reasonable default size
2821         for the window.
2822         (gtk_file_chooser_dialog_realize): New function, call
2823         set_default_size().
2824         (gtk_file_chooser_dialog_style_set): Likewise.
2825         (gtk_file_chooser_dialog_screen_changed): Likewise.
2826
2827         * tests/testfilechooser.c (main): Don't set a default size for the
2828         dialog.
2829
2830 Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>
2831
2832         * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
2833         Use do instead of while.  (#134031, Morten Welinder);
2834
2835 Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>
2836
2837         * configure.in: Suppress xsltproc and xmlcatalog checks
2838         if enable_man=no.  (#134162, Julio M. Merino Vidal)
2839
2840 Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>
2841
2842         * configure.in: Remove checks for sgml2html. It was once
2843         used for building the linuxdoc version of the tutorial.
2844         Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)
2845
2846 Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>
2847
2848         Fix various compilation problems (#134312, David
2849         Hawthorne)
2850
2851         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
2852         g_return_if_fail(), not g_return_val_if_fail().
2853
2854         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
2855         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
2856         g_return_if_reached(), not g_return_val_if_reached().
2857         
2858         * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
2859         of some parameters.
2860
2861         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
2862         extra 'scale' parameter.
2863
2864 Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>
2865
2866         Various reentrancy fixes for widgets being destroyed
2867         out of focus-out-event. (#128821, Grant Gayed)
2868
2869         * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
2870         Ref window and widget over callbacks.
2871
2872         * gtk/gtkwidget.c (gtk_widget_hide)
2873           gtk/gtkwidget.c (gtk_widget_set_child_visible):
2874         Ref the widget before calling _gtk_window_unset_focus_and_default(),
2875         since that can call user callbacks.
2876
2877         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
2878         Do nothing if the widget isn't realized.
2879
2880 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
2881
2882         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
2883         active, RELIEF_NONE buttons that aren't depressed. This improves
2884         the appearance of buttons in notebook tabs.  (#109213, reported
2885         by Benjamin Otte, patch by Rodney Dawes)
2886
2887 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
2888
2889         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
2890         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
2891
2892 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
2893
2894         Fix for #104811, Padraig O'Briain:
2895
2896         * gtk/gtkscale.h:
2897         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
2898         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
2899         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
2900         text and its position from a GtkScale, to make it more accessible. 
2901         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
2902         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
2903         new GtkScale vfunc.
2904
2905 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
2906
2907         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
2908         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
2909
2910 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
2911
2912         * gtk/gtktooltips.h:
2913         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
2914         function to improve the accessibility of tooltips.  (#114851, 
2915         Padraig O'Briain)
2916
2917 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
2918
2919         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
2920         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
2921         add docs.  (#132847)
2922
2923 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
2924
2925         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
2926         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
2927
2928         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
2929         gdk_property_get call instead of 0.
2930
2931         * docs/reference/gdk/tmpl/properties.sgml: Document the above
2932         as GDK_NONE instead of simply 0.
2933
2934 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2935
2936         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
2937         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
2938
2939 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
2940
2941         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
2942         Correct the docs.
2943
2944 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
2945
2946         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
2947         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
2948         for automatic DND.  (#133485, Tommi Komulainen)
2949
2950 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
2951
2952         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
2953         debug output.
2954
2955 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
2956
2957         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
2958         handler.  If no widget has the focus, try to give it to the
2959         default widget.  If there is no default widget, give it to the
2960         first button.  Fixes the cause for which #59707 was reopened.
2961
2962 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
2963
2964         Fixes #134051.
2965
2966         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
2967         (icon_info_new): Don't initialize the ref_count field.
2968
2969 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
2970
2971         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
2972         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
2973         <kaffeetisch@gmx.de>.
2974
2975 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
2976
2977         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
2978         focus [hv]adjustment correctly when the focus is located deeper
2979         down in the hierarchy.  (#133489)
2980
2981 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
2982
2983         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
2984         arbitrary low upper limits on the xpad, ypad, width and height
2985         properties.  (#129696, John Ellis)
2986
2987 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
2988
2989         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
2990         Ugh. Don't try to free ints, even if they're stored in pointers.
2991         (#133997, Morten Welinder)
2992
2993 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
2994
2995         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
2996         Free the filters.  Fixes #133547, patch by Morten Welinder
2997         <mortenw@gnome.org>.
2998
2999 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
3000
3001         * gdk/x11/xsettings-client.c (read_settings): Avoid
3002         triggering an X error when the client->manager_window
3003         is None...makes logs look cleaner.
3004
3005         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
3006         GDK_NONE to mean AnyPropertyType as documented. (Reported 
3007         by Yu Shao)
3008
3009         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
3010         gdk_x11_screen_get_window_manager_name): Fix error trap
3011         we've been leaking since 2002... (#129538)
3012
3013 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3014
3015         Fixes the entry-related part of #133852.
3016
3017         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
3018         the file part of the entry if the selected item is a folder.
3019
3020 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
3021
3022         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
3023
3024         * tests/prop-editor.c (create_prop_editor): Free the title.
3025         (object_changed): Free the children list.
3026
3027 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
3028
3029         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
3030         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
3031         these functions.
3032
3033 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3034
3035         * gtk/gtkfilechooserdefault.c (set_list_model): Request
3036         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
3037         filtering will work.  Perhaps we should have a way of aggregating
3038         info types to the model as filters get installed.
3039
3040 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
3041
3042         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3043         Ugh. Don't try to free ints, even if they're stored in pointers.
3044
3045 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3046
3047         Fix #132256.
3048
3049         * gtk/gtkfilechooserdefault.c
3050         (gtk_file_chooser_default_get_paths): Read the contents of the
3051         filename entry in both OPEN and SAVE mode.  In multiple-selection
3052         mode, add this to the selection from the file/folder list.
3053         (struct get_paths_closure): Add a path_from_entry field.
3054         (get_paths_foreach): Only add the iterated path if it is not the
3055         same as the path from the entry.
3056
3057 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3058
3059         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
3060         the folder is already open, add the requested info types to it.
3061
3062 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
3063
3064         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3065         type casts for the gtk_window_set_screen() call.
3066
3067 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
3068
3069         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
3070         come up on the same screen as the combo box.  (#133544, 
3071         Morten Welinder)
3072
3073 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
3074
3075         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3076         packing of the file selector.
3077
3078 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
3079
3080         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
3081         calls in array initializers, as some compilers seem to hate this.
3082         (#133216, Jonas Jonsson)
3083
3084 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
3085
3086         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3087         by on-demand instantiating a singleton object with a "changed" 
3088         signal. 
3089
3090         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3091         for GtkAccelMap::changed.
3092
3093 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
3094
3095         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
3096         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3097         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3098         Actually free the lists. Pointed out by Morten Welinder.
3099         
3100 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
3101
3102         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
3103         positions in UTF-8 strings correctly.  (#133315, Theppitak 
3104         Karoonboonyanan)
3105
3106 2004-02-06  Morten Welinder  <terra@gnome.org>
3107
3108         * gtk/gtktoolbar.c (show_menu): Cleanup using
3109         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
3110
3111 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3112
3113         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3114         list.  Fixes #133546.
3115
3116 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3117
3118         Fix #132327.
3119
3120         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3121         folder_hash field to keep a list of live folder objects.
3122         (gtk_file_system_unix_init): Create the folder_hash.
3123         (gtk_file_system_unix_finalize): Destroy the folder_hash.
3124         (gtk_file_system_unix_get_folder): Ref and return an existing
3125         folder if we have it around, otherwise return a new folder object.
3126         (struct _GtkFileFolderUnix): Add a field for the parent file system.
3127         (gtk_file_folder_unix_finalize): Remove the folder from the file
3128         system's hash table.
3129         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
3130         newly-created folder's parent.  Fixes #132327.
3131
3132 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
3133
3134         * gtk/gtkstock.c (builtin_items): Change the labels of the 
3135         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3136         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
3137         Suárez-Alvarez)
3138
3139 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
3140
3141         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
3142         function to plug a few memory leaks.  (#133544, Morten Welinder)
3143
3144 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
3145
3146         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
3147         Support mnemonic_activate here as well.
3148         
3149         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3150         the button, not the tree_view.
3151
3152 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3153
3154         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3155         function, to make mnemonic_activate work for combo boxes.
3156         (#133443, Paolo Borelli)
3157
3158 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3159
3160         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3161         to FALSE.  (#133539, Morten Welinder)
3162
3163 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
3164
3165         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3166         of the depth one check.  (#133488, Christian Persch)
3167
3168 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
3169
3170         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3171         the drawing of tearoff menu items which don't come first in their
3172         menu.  (#33311)
3173
3174 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
3175
3176         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
3177         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3178
3179 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
3180
3181         Fix #59707.
3182
3183         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3184         the focus chain.
3185         (gtk_label_button_press): Fix prototype.
3186         (gtk_label_button_release): Likewise.
3187         (gtk_label_motion): Likewise.
3188
3189         * tests/testgtk.c (create_message_dialog): For the dialog with
3190         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3191
3192 2004-02-04  Morten Welinder  <terra@gnome.org>
3193
3194         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
3195         bug 133411, apart from the leak.)
3196
3197 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
3198
3199         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3200         in g_object_new, since it depends on lower and upper being set.
3201
3202 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3203
3204         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3205         window not resizable.  Fixes #114032.
3206
3207 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3208
3209         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3210         documentation for the use_separator style property.
3211
3212 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3213
3214         Fix #68938.
3215
3216         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3217         GtkDialog; right now it only contains an ignore_separator field.
3218         (gtk_dialog_class_init): Register the private structure.
3219         (gtk_dialog_init): Initialize the priv->ignore_separator field.
3220         (_gtk_dialog_set_ignore_separator): New private function.
3221         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3222
3223         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3224         use_separator style property.
3225         (gtk_message_dialog_style_set): Change the dialog's separator
3226         based on the style property.
3227         (gtk_message_dialog_init): Set the dialog box to ignore the
3228         separator setting.
3229
3230 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
3231
3232         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3233         also dist gtkfilesystemwin32.[hc].
3234
3235 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
3236
3237         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3238         in rtl mode.  (#129071, chinen@jp.ibm.com)
3239
3240 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
3241
3242         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3243         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3244         mode.  (#107528)
3245
3246 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
3247
3248         Clip narrow columns in rtl-oriented tree views (#128089,  
3249         chinen@jp.ibm.com):
3250         
3251         * gtk/gtkstyle.c (gtk_default_draw_option): 
3252         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
3253         given area.
3254
3255         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
3256         Use the right clip area when calling gtk_cell_renderer_render().
3257         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
3258         Use the right clip area when calling gtk_paint_focus().
3259         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3260         Use the right clip area when calling gtk_paint_toggle() or
3261         gtk_paint_check().
3262         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3263         Clip to the expose_area when drawing the background rectangle.
3264         
3265 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3266
3267         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3268         Use a weak reference instead of ref()/unref(). (#60857, reported
3269         by Joshua N Pritikin)
3270
3271         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3272
3273 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
3274
3275         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
3276         init_hadjust_value and prev_width.
3277         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
3278         them here.
3279         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3280         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3281         here to properly handle the initial position of rtl-oriented
3282         tree views.  (#127581, chinen@jp.ibm.com)
3283
3284 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3285
3286         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3287
3288         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3289         we handle an event in the colums, and FALSE at the end if the
3290         event is not handled at all.
3291
3292 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
3293
3294         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3295         Don't access the level after removing the node, since that may
3296         kill the level.  (#132615, Crispin Flowerday)
3297
3298 2004-02-02  Tor Lillqvist  <tml@iki.fi>
3299
3300         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3301         in all cases. If no grab cursor specified, use the grabbing
3302         window's cursor. If the grabbing window has no cursor, use the
3303         default arrow cursor. (#118025)
3304
3305 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
3306
3307         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3308         latest in menu separation technology.
3309
3310 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3311
3312         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3313         we have to take our chances with).
3314         
3315         (Bug 97510)
3316
3317 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3318
3319         Fix bug 110224.
3320
3321         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3322         Remove unused variable 'result'
3323
3324         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3325
3326         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3327         here.
3328
3329 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
3330
3331         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3332         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3333
3334 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3335
3336         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3337         sliding when using the new API.
3338
3339 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3340
3341         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3342         item_area is positioned correctly. Fix #133070, reported by Jeroen
3343         Zwartepoorte.
3344
3345 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
3346
3347         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3348         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
3349         muppet)
3350
3351 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
3352
3353         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3354         the documentation for new_order.  (#124790, Tim-Philipp Müller)
3355
3356 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
3357
3358         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3359         Reset use_resized_width when setting fixed_width.  (#108612, 
3360         Felipe Heidrich) 
3361
3362 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
3363
3364         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3365         GtkKeySnooperData.  (#132038, R. McFarland)
3366
3367 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3368
3369         Fixes #132975.
3370
3371         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3372         not FALSE.
3373         (gtk_file_system_volume_render_icon): Likewise.
3374
3375         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3376         Likewise.
3377
3378         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3379         not FALSE.
3380
3381         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3382         FALSE.
3383
3384         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3385         not FALSE.
3386         (gtk_text_iter_get_bytes_in_line): Likewise.
3387
3388         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3389         Likewise.
3390
3391         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3392         0.
3393
3394 2004-01-30  Not Zed  <NotZed@Ximian.com>
3395
3396         Fixes #132929.
3397
3398         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3399         handler when we clear the timeout id.
3400
3401 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3402
3403         Fix #129872, based on a patch by Jan Arne Petersen
3404         <jpetersen@uni-bonn.de>
3405
3406         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3407         Implement.
3408         (gtk_file_system_unix_add_bookmark): Implement.
3409         (gtk_file_system_unix_remove_bookmark): Implement.
3410
3411 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3412
3413         Fixes #132693.
3414
3415         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3416         use filename_from_path().  Also, check that the filename is
3417         absolute.
3418         (gtk_file_system_unix_get_folder): Likewise.
3419         (gtk_file_system_unix_create_folder): Likewise.
3420         (gtk_file_system_unix_make_path): Likewise.
3421         (gtk_file_system_unix_parse): Likewise.
3422         (gtk_file_folder_unix_get_info): Likewise.
3423         (filename_from_path): Removed.
3424
3425 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3426
3427         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
3428         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
3429
3430 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
3431
3432         * gdk/x11/gdkdrawable-x11.c: Revert changes from
3433         #113476 and go back to using XftDrawSetClip, because
3434         XftDrawSetClipRectangles is buggy in XFree86-4.3.
3435
3436 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
3437
3438         * gtk/gtktextlayout.c (line_display_iter_to_index)
3439         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
3440         adjust the preedit position for lines that include the
3441         preedit string. (#132353, Yao Zhang). How the heck
3442         did this work as well as it did?!?!
3443
3444         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
3445         Reverse change to change of XNFilterEvents event mask from
3446         #110493 -- it's documented and in the Xlib code an
3447         unsigned long. 
3448         
3449         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
3450         Return -1 rather than void to indicate no length limit.
3451         (#129548)
3452
3453 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
3454
3455         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
3456         (#64601, Murray Cumming)
3457
3458 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
3459
3460         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
3461         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
3462         
3463 2004-01-28  Richard Hult  <richard@imendio.com>
3464
3465         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
3466         Free font_desc.  Fixes #132805.
3467
3468 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3469
3470         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
3471         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
3472         Fixes #132574.
3473
3474 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
3475
3476         * gtk/gtkselection.c (gtk_selection_default_handler): 
3477         nul-terminate the target atoms. (#132656, Christian Persch)
3478
3479 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
3480
3481         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
3482         Don't leak path if we bail out early.  (#132505, Christian Persch)
3483
3484 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
3485
3486         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
3487         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
3488         reference counting on the user_data that is shared between
3489         multiple signal handlers, to avoid calling the destroy notify
3490         multiple times.  (#132447, Adam Hooper)
3491
3492 2004-01-28  Hans Breuer  <hans@breuer.org>
3493
3494         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
3495           gtk/gtkstock.[hc] : ... define ...
3496           gtk/gtkiconfactory.c : ... register ...
3497           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
3498         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
3499         IFace changes.
3500
3501         * gtk/gtk.def : added a bunch of new exported symbols
3502
3503         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
3504         on filter_info->display_name being NULL
3505
3506         * tests/testgtk.c : make testgtk --bench=all work again
3507
3508 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
3509
3510         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
3511         Don't leak string.  (#132482, Christian Persch)
3512
3513 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
3514
3515         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
3516         1.8 won't whine at us.
3517
3518 2004-01-28  Tor Lillqvist  <tml@iki.fi>
3519
3520         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
3521         synthesize_enter_event): Don' generate enter or leave events if
3522         the pointer is grabbed with owner_events off, and the grab event
3523         mask doesn't ask for them. (#129242)
3524
3525         (gdk_event_translate): Ditto for focus change events.
3526
3527 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
3528
3529         Fix #132314.
3530
3531         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
3532
3533         * gtk/gtkfilesystem.c: Likewise.
3534
3535         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
3536         icon-type code.
3537         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
3538         from GtkFileInfo to here.
3539         (gtk_file_system_unix_volume_render_icon): Implement.
3540
3541 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
3542
3543         * modules/input/imhangul-defs.h: 
3544         * modules/input/imhangul.c:
3545         * modules/input/Makefile.am: Remove broken hangul input module.
3546         
3547 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3548
3549         * gtk/gtktoolbar.c: Remove obsolete comment.
3550
3551         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
3552         SPACE_LINE_END): Make separators wider and taller, so they are
3553         easier to pick up when editing the toolbar.
3554
3555         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
3556         a bit, 
3557
3558         * gtk/gtktoolbar.c (rect_within): Formatting fix
3559
3560         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
3561         sliding feel more responsive by only restarting sliding when the
3562         placeholder actually changes its goal allocation.
3563
3564 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
3565
3566         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
3567         compiler warning.  (#122725, Kjartan Maraas)
3568         
3569 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
3570
3571         Make menus work better on Xinerama (#126150):
3572         
3573         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
3574         monitor_num on the screen of the menu, not of the attach widget.
3575
3576         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
3577         (gtk_menu_window_size_request): Remember the monitor_num.
3578
3579 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
3580
3581         Fix #105497; constify uses of GdkColor.
3582
3583         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
3584         (gdk_gc_set_rgb_bg_color): Constify.
3585         (gdk_gc_set_foreground): Constify.
3586
3587         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
3588         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
3589         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
3590
3591         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
3592         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
3593         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
3594
3595         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
3596         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
3597         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
3598
3599         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
3600         (gdk_draw_layout_with_colors): Constify.
3601
3602         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
3603         (gdk_pixmap_colormap_create_from_xpm): Constify.
3604         (gdk_pixmap_create_from_xpm): Constify.
3605         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
3606         (gdk_pixmap_create_from_xpm_d): Constify.
3607
3608         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
3609
3610         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
3611         (gtk_clist_set_background): Constify.
3612
3613         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
3614         (gtk_color_button_set_color): Constify.
3615
3616         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
3617         Constify and add a check for color != NULL.
3618         (gtk_color_selection_get_current_color): Add a check for color != NULL.
3619         (gtk_color_selection_set_previous_color): Constify and add a check
3620         for color != NULL.
3621         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
3622
3623         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
3624         (gtk_ctree_node_set_background): Constify.
3625
3626         * gtk/gtktext.c (gtk_text_insert): Constify.
3627         (insert_text_property): Constify.
3628         (text_properties_equal): Constify.
3629         (new_text_property): Constify.
3630
3631         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
3632         (gtk_widget_modify_fg): Constify.
3633         (gtk_widget_modify_bg): Constify.
3634         (gtk_widget_modify_text): Constify.
3635         (gtk_widget_modify_base): Constify.
3636
3637 2004-01-26  Christian Rose  <menthos@menthos.com>
3638
3639         * configure.in: Added "mi" to ALL_LINGUAS.
3640
3641 2004-01-25  Tor Lillqvist  <tml@iki.fi>
3642
3643         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
3644         WM_TRANSIENT_FOR property is being deleted, set the owner of the
3645         window to the root window (i.e., effectively unset it). (#132411)
3646
3647         * gdk/win32/gdkprivate-win32.h
3648         * gdk/win32/gdkglobals-win32.c
3649         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
3650         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
3651
3652         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
3653
3654 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3655
3656         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
3657         to map/unmap items on whether they are actually allocated outside
3658         the toolbar, not on whether that will eventually happen. Improves
3659         animation in the presence of overflown items.
3660
3661         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
3662         queue_resize() to so that the items will get their new goal
3663         values and the idle handler will not immediately return FALSE.
3664
3665         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
3666         make sure that a placeholder becoming invisible doesn't cause a
3667         return TRUE.
3668
3669         * gtk/gtktoolbar.c (get_item_size): Don't special case
3670         placeholders here.
3671
3672 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3673
3674         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
3675         try to pack icon if there actually is one.
3676
3677         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3678         OVERFLOWN items get an allocation even when they are
3679         unmapped. This ensures they will slide in properly.
3680
3681         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
3682         when there are overflown items that need to slide in. Also add
3683         comments and make formatting more readable.
3684
3685 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3686
3687         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
3688         Add a write-only property ::group to be consistent with
3689         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
3690         Andrieu)
3691
3692 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
3693
3694         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
3695         font description.  (#132168)
3696
3697 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
3698
3699         Fix #132247.
3700
3701         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
3702         mode.
3703         (set_select_multiple): Optionally notify about changes to the
3704         select-multiple property.
3705         (list_selection_changed): Change the condition for the editable row to
3706         test for save mode; this is more clear than testing for not being
3707         in multiple selection mode.
3708         (gtk_file_chooser_default_get_paths): Get impl->action directly
3709         rather than calling gtk_file_chooser_get_action().
3710         (entry_activate): Likewise.
3711         (set_select_multiple): Annotate about #133255.
3712         (update_chooser_entry): Likewise.
3713         (check_preview_change): Likewise.
3714         (tree_selection_changed): Likewise.
3715
3716 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
3717
3718         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
3719         when there are no columns, or all columns are hidden, #131402
3720
3721 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3722
3723         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
3724         mistake. Change back to 225.
3725
3726 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
3727
3728         * === Released 2.3.2 ===
3729
3730 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
3731
3732         * gtk/gtkicontheme.c: Patch from Christian Neumair
3733         to make warning string more translator friendly.
3734
3735         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
3736         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
3737         happy.
3738
3739         * configure.in: Require GLib-2.3.2, version 2.3.2,
3740         interface age 0, binary age 302.
3741
3742         * NEWS: Organized, added some names.
3743
3744 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
3745
3746         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
3747
3748 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
3749
3750         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
3751         GtkWidget::popup_menu.
3752
3753 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
3754
3755         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
3756         info after calling gtk_menu_do_remove(), since that function
3757         uses the attach info. Doh!
3758
3759         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
3760         for being 1 directly after setting it to 0.
3761
3762 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3763
3764         * NEWS: Updates
3765
3766 2004-01-22  Alexander Larsson  <alexl@redhat.com>
3767
3768         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
3769         Fix typo
3770
3771 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
3772
3773         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3774         Free the path fields.
3775
3776         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
3777         the root_path, reported by <scott@asofyet.org>
3778         (gtk_file_system_model_finalize): Unref the file system.
3779
3780         * gtk/gtkfilefilter.c (filter_rule_free): default:
3781         g_assert_not_reached().
3782         (gtk_file_filter_finalize): Free the filter->name, reported by
3783         <scott@asofyet.org>
3784         (gtk_file_filter_finalize): Free the rules list.
3785
3786 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
3787
3788         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
3789         color button when an alpha is set.
3790         (gtk_color_button_set_alpha): redraw the color button when an
3791         alpha is set.
3792
3793 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
3794
3795         Fix #131869: 
3796         
3797         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
3798         a reference to the group while emitting the signals.
3799
3800         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
3801         destroy notify which does not only unref, but also resets
3802         the action_group property of the action.
3803
3804 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3805
3806         * NEWS: Added details about GtkFileChooser changes.
3807
3808 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3809
3810         Fix #99425, add accessor functions for GtkPaned's children.
3811
3812         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
3813         (gtk_paned_get_child2): New function.
3814
3815 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
3816
3817         * NEWS: Start of 2.3.2 section.
3818
3819 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
3820
3821         Fixes for #130370, based on a patch by Michael Meeks:
3822         
3823         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
3824         adjust cell positions and recalculate row and column counts after
3825         removing an item.
3826
3827         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
3828
3829         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
3830         appending items.
3831
3832         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
3833         to avoid an unintended recursion.
3834
3835 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
3836
3837         Fix #131418.
3838
3839         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
3840         function.
3841         (gtk_file_chooser_default_set_property): Use
3842         set_select_multiple().  Also, re-set this mode to single if the
3843         file chooser is set to Save mode.
3844         (entry_activate): Handle the case where the entry is completely
3845         empty *and* its current folder does exist.  Also, there is need to
3846         test for select_multiple here now that we ensure that it won't
3847         happen during Save mode.
3848
3849 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3850
3851         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
3852         _gtk_toolbar_get_default_space_size ();
3853
3854         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
3855         get_space_size): Use them here.
3856
3857 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3858
3859         * tests/testgtk.c (create_toolbar): Set a small size request and
3860         make the window resizable, to test mapping/unmapping of buttons.
3861
3862         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
3863         gtk_toolbar_insert_tool_item): remove these functions.
3864
3865         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
3866         toolbar_content_show_all, gtk_toolbar_hide_all,
3867         toolbar_content_hide_all): New functions. 
3868
3869         Ignore show_all/hide_all for buttons created in compatibility mode.
3870
3871         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
3872         gtk_toolbar_hide_all): Make sure buttons are ignored by
3873         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
3874         
3875         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
3876
3877         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
3878         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
3879
3880         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
3881         could become NULL.
3882
3883         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
3884         instead of prepending them.
3885
3886         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
3887         'elapsed' for all items.
3888
3889         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
3890         into bitfields.
3891
3892         * gtk/gtktoolbar.c: Many formatting fixes
3893         
3894 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
3895
3896         * configure.in: Add the necessary magic to create
3897         po-properties/Makefile.
3898
3899 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3900
3901         The second part of the fix for #114351 (see also 
3902         gdk-pixbuf/ChangeLog and po/ChangeLog):
3903
3904         * Makefile.am (SUBDIRS): Add po-properties.
3905
3906         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
3907
3908         * gdk/gdkintl.h (P_): 
3909         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
3910
3911         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
3912         bind_textdomain_codeset for gtk20-properties as well.
3913
3914 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3915
3916         * gtk/gtktoolbar.c: 
3917
3918         Fix rest of #128678: Implement all the toolbar_content()
3919         methods for the old API case.
3920
3921 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3922
3923         * gtk/gtktoolbar.c: 
3924
3925         Phase 1 of fixing #128678: Only access ToolbarContent through a
3926         set of new functions:
3927
3928         toolbar_content_expose, toolbar_content_visible,
3929         toolbar_content_size_request, toolbar_content_is_homogeneous,
3930         toolbar_content_get_child_requisition,
3931         toolbar_content_is_placeholder, toolbar_content_disappearing,
3932         toolbar_content_get_state, toolbar_content_child_visible,
3933         toolbar_content_get_goal_allocation,
3934         toolbar_content_get_allocation,
3935         toolbar_content_set_start_allocation,
3936         toolbar_content_get_start_allocation, toolbar_content_get_expand,
3937         toolbar_content_set_goal_allocation,
3938         toolbar_content_set_child_visible, toolbar_content_size_allocate,
3939         toolbar_content_set_state, toolbar_content_get_widget,
3940         toolbar_content_set_disappearing,
3941         toolbar_content_set_size_request,
3942         toolbar_content_toolbar_reconfigured,
3943         toolbar_content_retrieve_menu_item, 
3944         toolbar_content_new_tool_item, toolbar_content_destroy,
3945         toolbar_content_is_separator
3946
3947         Also fix #127092.
3948         
3949 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3950
3951         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
3952         item ID.
3953
3954 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3955
3956         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
3957         overflow menu.
3958         
3959         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
3960         [#127726]
3961
3962 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
3963
3964         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
3965         has_editable field.
3966         (_gtk_file_system_model_add_editable): New function.
3967         (_gtk_file_system_model_remove_editable): New function.
3968         (gtk_file_system_model_get_value): Return appropriate values for
3969         the temporary editable row.
3970         (_gtk_file_system_model_get_info): Handle the editable row.
3971         (_gtk_file_system_model_get_path): Likewise.
3972
3973         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
3974         Removed an unused variable.
3975         (toolbar_button_new): Optionally show the button.
3976         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
3977         (toolbar_create): Add a "New Folder" button for Save mode.
3978         (error_building_filename_dialog): New helper function.
3979         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
3980         (create_file_list): Connect to the "edited" signal of the text
3981         cell renderer.  Store the name column and text renderer in the
3982         impl structure.
3983         (renderer_edited_cb): New callback.
3984         (gtk_file_chooser_default_set_property): Show/hide the "New
3985         folder" button when the save action changes.
3986         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
3987         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
3988         tree_model.
3989         (get_list_file_info): Likewise!
3990         (list_icon_data_func): Handle the path being NULL.
3991         (new_folder_button_clicked): New callback.
3992         (list_name_data_func): If we are on the editable row, set the text
3993         to "Type name of new folder".
3994         (list_selection_changed): Handle the editable row.
3995         (list_mtime_data_func): Likewise.
3996
3997         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
3998         NULL, not FALSE.
3999         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
4000
4001 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
4002
4003         The first part of the fix for #114351 (see also 
4004         gdk-pixbuf/ChangeLog and po/ChangeLog):
4005         
4006         * gtk/gtkintl.h: 
4007         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
4008
4009         * gdk/gdkdisplaymanager.c:
4010         * modules/input/gtkimcontextxim.c:
4011         * gtk/*.c:  Mark property blurbs and nicks with P_().
4012         
4013 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4014
4015         Fix #130969.
4016
4017         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
4018         editing_canceled signal.
4019
4020         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
4021         "editing-canceled" signal.
4022         (gtk_cell_renderer_editing_canceled): New function.
4023
4024         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
4025         Call gtk_cell_renderer_editing_canceled().
4026
4027 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4028
4029         * gtk/gtkfilechooserdefault.c
4030         (gtk_file_chooser_default_set_property): Do not allow setting
4031         select_multiple when in Save mode.
4032         (set_list_model): No need to nullify the list_model and
4033         sort_model.
4034         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
4035         (get_paths_foreach): Likewise.
4036
4037         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
4038         documentation about folder mode.
4039         (gtk_file_chooser_get_uri): Likewise.
4040
4041 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4042
4043         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
4044         get_volume_for_path() method.
4045         (struct _GtkFileSystemIface): Finally removed the list_roots() and
4046         get_root_info() methods, and the "roots-changed" signal.
4047
4048         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
4049         function.
4050         (gtk_file_system_list_roots): Removed.
4051         (gtk_file_system_get_root_info): Removed.
4052
4053         * gtk/gtkfilesystemunix.c
4054         (gtk_file_system_unix_get_volume_for_path): Implement.
4055         (get_root_volume): New helper function.
4056         (gtk_file_system_unix_list_volumes): Use get_root_volume().
4057         (gtk_file_system_unix_list_roots): Removed.
4058         (gtk_file_system_unix_get_root_info): Removed.
4059
4060         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
4061         accept a NULL root_path.
4062         (struct _GtkFileSystemModel): Add a field to remember the
4063         root_path.
4064         (_gtk_file_system_model_new): Store the root_path in the model
4065         structure.
4066         (find_and_ref_path): Stop going up the hierarchy at the root_path
4067         of the model.  Also, don't return prematurely when walking up the
4068         hierarchy.
4069
4070         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4071         the rules_hint.
4072         (struct _GtkFileChooserDefault): Added a current_volume_path field.
4073         (set_tree_model): New function; create the folder tree model here.
4074         (create_folder_tree): Don't create the model here.
4075         (set_list_model): Set the show_hidden flag on the list model.
4076
4077 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
4078
4079         * gtk/gtknotebook.h:
4080         * gtk/gtknotebook.c (gtk_notebook_append_page): 
4081         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
4082         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
4083         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
4084         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
4085         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4086         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
4087
4088 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
4089
4090         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4091         a 'newly-allocated' to hint that the list should be freed after
4092         use.
4093
4094 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
4095
4096         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4097         to after handling the button presses in the TreeView to avoid
4098         getting multiple selection_changes()
4099
4100 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
4101
4102         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
4103         Karoonboonyanan)
4104
4105 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
4106
4107         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4108         Don't leak name and stock_id.  (#131358, Morten Welinder)
4109
4110 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
4111
4112         * docs/faq/gtk-faq.sgml: Updates to Section 5
4113
4114 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4115
4116         * gtk/gtkradioaction.c: Add a writable group property to align
4117         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
4118
4119 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
4120
4121         * docs/faq/gtk-faq.sgml: Update info on using autoconf
4122
4123 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
4124
4125         * tests/testmerge.c: Adjust to the new connect_proxy signals.
4126
4127         * gtk/gtkuimanager.c
4128         * gtk/gtkactiongroup.c
4129         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4130         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4131         removes the confusion between the disconnect_/connect_proxy signals 
4132         and the (unrelated) virtual functions of the same name and aligns
4133         the setup with the pre_/post_activate signals.
4134
4135 2004-01-12  Jody Goldberg <jody@gnome.org>
4136
4137         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4138           with no submenus otherwise it looks like we activate every time a
4139           submenu opens.
4140
4141 2004-01-12  Jody Goldberg <jody@gnome.org>
4142
4143         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4144
4145 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
4146
4147         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
4148         (gtk_accel_map_lock_path): 
4149         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4150         entry is silently created during lock_path(), and treated as an error 
4151         during unlock_path(). These changes have been requested by Tim Janik.
4152
4153 2004-01-10  Jody Goldberg <jody@gnome.org>
4154
4155         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4156         s/merge_signals/ui_manager_signals/ for readability.
4157         (gtk_ui_manager_class_init) : add pre_activate and post_activate
4158           signals.
4159         (cb_proxy_pre_activate) : new.
4160         (cb_proxy_post_activate) : new.
4161         (gtk_ui_manager_insert_action_group) : connect the proxies for
4162           GtkActionGroup::pre/post_activate
4163         (gtk_ui_manager_remove_action_group) : disconnect them.
4164
4165         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4166           'sensitive', and 'visible' properties.  Also add pre_activate and
4167           post_activate signals to help deal with activations at a higher
4168           level (eg GtkUIManager)
4169         (gtk_action_group_init) : init sensitive and visible
4170         (gtk_action_group_set_property) : add sensitive and visible
4171         (gtk_action_group_get_property) : add sensitive and visible
4172         (gtk_action_group_get_sensitive) : new.
4173         (gtk_action_group_get_visible) : new.
4174         (cb_set_action_sensitivity) : new with minor optimization that only
4175           signals sensitivity changes if the action could possibly change.
4176         (cb_set_action_visiblility) : ditto.
4177         (gtk_action_group_set_sensitive) : new.  walk the actions directly
4178           rather than using notify::sensitive because that is simpler, easier
4179           to read, and more efficient.
4180         (gtk_action_group_set_visible) : ditto.
4181         (gtk_action_group_add_action) : Each action can only be in 1 group,
4182           set GtkAction::action_group.
4183         (gtk_action_group_remove_action) : clear it.
4184         (gtk_action_group_add_toggle_actions_full) : warning suppression.
4185         (gtk_action_group_add_radio_actions_full) : warning suppression.
4186         (_gtk_action_group_emit_pre_activate) : new protected routine for use
4187           by GtkAction.
4188         (_gtk_action_group_emit_post_activate) : ditto.
4189
4190         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4191         (gtk_action_init) : initialize it.
4192         (gtk_action_get_property) : get.
4193         (gtk_action_set_property) : set it via
4194         (gtk_action_set_action_group) : new function.
4195         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4196           with the logical sensitivity (action & group) rather than the simple
4197           action::sensitivity.
4198         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4199           logical visibility (action & group) rather than the simple
4200           action::visible.  Use widget show/hide directly.
4201         (connect_proxy) : handle the custom sensitivity handler.
4202           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4203           directly, with special cases for TOOL_BUTTON.  Still not especially
4204           good it might be useful to handle label/use_underline by parmspec
4205           lookup.  Those are likely to be implemented by custom types, and are
4206           assumed to exist in GtkToolItem.
4207         (disconnect_proxy) : disconnect the new sensitivity handler.
4208         (_gtk_action_emit_activate) : add pre/post signals.
4209         (gtk_action_activate) : use logical sensitivity.
4210         (gtk_action_is_sensitive) : logical sensitivity.
4211         (gtk_action_get_sensitive) : actual sensitivity.
4212         (closure_accel_activate) : use logical sensitivity.
4213
4214 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
4215
4216         * gtk/gtkuimanager.c: Introduce a new parser state for 
4217         accelerator elements to avoid misparsing files containing 
4218         such elements.  (#131035, Morten Welinder)
4219
4220 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
4221
4222         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4223
4224 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
4225
4226         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4227
4228 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4229
4230         * gtk/gtkuimanager.h:
4231         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4232         obtain a list of toplevel widgets constructed by the ui manager.
4233
4234         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
4235         the values can be combined for gtk_ui_manager_get_toplevels().
4236
4237         * tests/testmerge.c: Add a "Dump toplevels" button to test 
4238         gtk_ui_manager_get_toplevels().
4239
4240 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
4241
4242         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4243         
4244         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
4245         by Anders Carlsson  (#130464).
4246
4247 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
4248
4249         * gtk/gtkmain.h: 
4250         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
4251         gint to gboolean.  (#130718, reported by Johannes Weißl)
4252
4253 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
4254
4255         * gtk/gtkactiongroup.h: 
4256         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4257         Remove the redundant name and stock_id parameters, adjust all callers.
4258
4259 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
4260
4261         * gtk/gtkaction.h: 
4262         * gtk/gtkaction.c (gtk_action_new):  
4263         * gtk/gtktoggleaction.h: 
4264         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
4265         * gtk/gtkradioaction.h: 
4266         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
4267         functions for actions.
4268
4269         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4270         (gtk_action_group_add_toggle_actions_full): 
4271         (gtk_action_group_add_radio_actions_full): and use the
4272         new functions here.  (#125322, Patch by Jeff Frank)
4273
4274 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
4275
4276         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
4277         docs.
4278
4279 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
4280
4281         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4282         (shortcuts_append_home), (shortcuts_append_desktop),
4283         (shortcuts_append_paths), (shortcuts_add_volumes),
4284         (shortcuts_append_bookmarks), (create_shortcuts_model),
4285         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4286         to the shortcuts_model.
4287
4288         (remove_bookmark_button_clicked_cb),
4289         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4290         bookmarks can be removed. Fixes #129873
4291
4292 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4293
4294         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4295         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4296         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
4297         respectively. Tests #82203.
4298
4299 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
4300
4301         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4302         0777 as the mode for mkdir() and let the umask do the right
4303         thing.  Fixes #121819.
4304
4305         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4306         can return NULL; handle this.  Fixes #129565.
4307
4308 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
4309
4310         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4311         that proceeded the end-of-sentence punctuation. Fixes: #130353.
4312
4313 2004-01-06  Jody Goldberg <jody@gnome.org>
4314
4315         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
4316           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4317
4318 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4319
4320         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4321         call shortcuts_add_bookmarks() here.
4322         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4323         iter.
4324         (shortcuts_append_paths): Don't display error dialogs here.
4325         (create_file_list): Remove the @#$% rules hint.
4326
4327 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4328
4329         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4330         function.
4331         (toolbar_create): Do not use a toolbar widget, just an hbox
4332         instead.  Add the bookmarks buttons and the current folder label
4333         here.
4334         (create_filename_entry_and_filter_combo): Create the filter combo
4335         here.
4336         (filter_create): Don't show the filter combo initially.
4337         (up_button_cb): Renamed from toolbar_up_cb().
4338         (create_shortcuts_buttons): Removed.
4339
4340 2004-01-05  Murray Cumming  <murrayc@usa.net>
4341
4342         * gdk/gdkimage.h: Added <public> documentation to the struct, as
4343         suggested by Owen Taylor.
4344
4345 2004-01-05  Jody Goldberg <jody@gnome.org>
4346
4347         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4348           I would have prefered outdent, but compatibility seems more
4349           important.
4350         * gtk/gtkstock.c (builtin_items) : ditto.
4351         * gtk/gtkstock.h : ditto.
4352         * gtk/stock-icons/Makefile.am : ditto.
4353         * gtk/stock-icons/stock_text_indent_16.png :
4354         * gtk/stock-icons/stock_text_indent_24.png :
4355         * gtk/stock-icons/stock_text_unindent_16.png :
4356         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4357
4358 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4359
4360         * gtk/gtkradiotoolbutton.[ch]
4361         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4362         group is a GtkRadioButton, not a GtkWidget.
4363
4364 2004-01-04  Hans Breuer  <hans@breuer.org>
4365
4366         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
4367         gdk_window_set_keep_(above|below) to make DND work again.
4368         Thanks to Alif Wahid for noticing.
4369
4370         * gdk/gdk.def : update externals
4371
4372         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4373
4374         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
4375           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4376           gtk/stock-icons/stock_harddisk_16.png 
4377           gtk/stock-icons/stock_harddisk_24.png 
4378         Harddisk stock icons for file system implementations. Beside
4379         FLOPPY and CDROM there is now HARDDISK, probably some 
4380         GTK_STOCK_NETWORK would be useful, but I could not find one.
4381
4382 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
4383
4384         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4385         Patch from Andrew Moise (#130462).
4386
4387 2004-01-01  Jody Goldberg <jody@gnome.org>
4388
4389         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4390           visible_vertical.
4391         (gtk_action_class_init) : here.
4392         (gtk_action_init) : here.
4393         (gtk_action_set_property) : here.
4394         (gtk_action_get_property) : here.
4395         (connect_proxy) : and here.
4396
4397 2003-12-30  Jody Goldberg <jody@gnome.org>
4398
4399         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
4400           utility routine for use in derived GtkActions with the replicated code
4401           from.
4402         (gtk_action_group_add_actions_full) : here.
4403         (gtk_action_group_add_toggle_actions_full) : here.
4404         (gtk_action_group_add_radio_actions_full) : and here.
4405
4406 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4407
4408         * configure.in: Added "bn" to ALL_LINGUAS.
4409
4410 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4411
4412         * bn.po: Added Bangla translation by 
4413         of Ankur group <gnome-translation@bengalinux.org>.
4414
4415 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
4416
4417         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
4418         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
4419         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
4420         week_start values other than 0 and 1, e.g. 6 will let weeks start
4421         on Saturday.  (#130349, Roozbeh Pournader) 
4422
4423 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4424
4425         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4426         
4427         Fix to allow reasonable pointer behavior in window mode when an
4428         extended input device reports an incorrect resolution of 0.  Fixes
4429         bug #123546
4430         
4431 2003-12-31  Christian Neumair  <chris@gnome-de.org>
4432
4433         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
4434         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
4435         plurals (#123847).
4436
4437 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
4438
4439         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4440         (gtk_action_group_add_toggle_actions_full):
4441         (gtk_action_group_add_radio_actions_full): Pull accelerator key
4442         from the stock item if stock_id is given, but accelerator 
4443         not.  (Noticed by Jeff Franks and Jody Goldberg)
4444
4445         * tests/testmerge.c: Remove the accelerator from the "Open" entry
4446         to test the above change.
4447         
4448 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
4449
4450         Make show_all() work for the extra and preview widgets; reported
4451         by Paolo Maggi.
4452
4453         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
4454         preview widget.
4455         (set_extra_widget): show_all() the extra widget.
4456
4457 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4458
4459         * gtk/gtkuimanager.c (do_updates): 
4460         * gtk/gtktoolbar.c (slide_idle_handler): 
4461         * gtk/gtkdnd.c (gtk_drag_update_idle): 
4462
4463         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
4464         functions. (#130157, patch from Olexiy Avramchenko).
4465         
4466 2003-12-29  Anders Carlsson  <andersca@gnome.org>
4467
4468         * gtk/gtkradiotoolbutton.c:
4469         * gtk/gtkradiotoolbutton.h:
4470         * gtk/gtkseparatortoolitem.c:
4471         * gtk/gtkseparatortoolitem.h:
4472         * gtk/gtktoggletoolbutton.c:
4473         * gtk/gtktoggletoolbutton.h:
4474         * gtk/gtktoolbar.c:
4475         * gtk/gtktoolbar.h:
4476         * gtk/gtktoolbutton.c:
4477         * gtk/gtktoolbutton.h:
4478         * gtk/gtktoolitem.c:
4479         * gtk/gtktoolitem.h:
4480         Update my e-mail address.
4481         
4482 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
4483
4484         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
4485         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
4486         paths.  (#73207, reported by Havoc Pennington)
4487
4488 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4489
4490         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
4491         instead of VISIBLE to determine whether we should stop
4492         sliding. (#130018, reported by Christian Persch).
4493
4494 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
4495
4496         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
4497         Don't use first_action without initializing it if n_entries is 0.
4498
4499 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
4500
4501         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
4502         Add the missing _get_ to the name of the non-Xcursor version of
4503         this function.  (noticed by Torsten Schoenfeld)
4504
4505 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
4506
4507         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
4508         muppet.
4509
4510 2003-12-24  Jody Goldberg <jody@gnome.org>
4511
4512         * gtk/gtkactiongroup.h : Add some const to the char * in
4513           GtkActionEntry*.  We're reccomending people pass static strings to
4514           them, and not freeing them.  This stems to flood of warnings that
4515           result.
4516         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
4517           temp vars to const to match above.
4518         (gtk_action_group_add_toggle_actions_full) : ditto.
4519         (gtk_action_group_add_radio_actions_full) : ditto.
4520
4521 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
4522
4523         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
4524         gtk_clipboard_request_targets() and 
4525         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
4526
4527 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
4528
4529         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
4530         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
4531         * gtk/gtkcalendar.c (draw_arrow_left):
4532         (draw_arrow_right): Removed. 
4533         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
4534         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
4535         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
4536         insensitive.  (#97376)
4537
4538 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
4539
4540         * gtk/gtkuimanager.c (update_node): 
4541         (update_smart_separators): 
4542         (_gtk_menu_is_empty): 
4543         (find_menu_position): 
4544         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
4545         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
4546         (gtk_combo_box_relayout): Fix memory leaks caused by the
4547         failure to free the result of gtk_container_get_children().
4548
4549 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4550
4551         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
4552         properties when the window becomes a toplevel. When a window that
4553         was previously a toplevel becomes a toplevel again, restore its
4554         window type. Also make sure the focus window is removed from the
4555         XID hash when it is destroyed. (#117579, reported by Morten
4556         Welinder, patch reviewed by Owen Taylor).
4557
4558 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
4559
4560         * gtk/gtkmenushell.h: 
4561         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
4562         to emit the "cancel" signal on a menu shell.
4563
4564         * gtk/gtkmenu.c (gtk_menu_key_press): 
4565         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
4566         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
4567         new function instead of directly emitting the 
4568         signal.  (#81803, Owen Taylor)
4569
4570 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
4571
4572         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
4573         Fix the "language_set" blurb.  
4574         
4575 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
4576
4577         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
4578         all of treeview when resizing (#110074, patch from Soeren Sandmann).
4579
4580 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
4581
4582         Fixes #108458.
4583
4584         * gtk/gtkcelllayout.[ch]: added a reorder method.
4585
4586         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
4587         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
4588
4589         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
4590         (gtk_cell_view_cell_layout_reorder): ditto.
4591
4592         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
4593         (gtk_combo_box_cell_layout_reorder): ditto.
4594
4595         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
4596         (gtk_entry_completion_reorder): ditto.
4597
4598 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
4599
4600         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
4601         instead of strcmp (#117127, suggestion from Soeren Sandmann).
4602
4603 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
4604
4605         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
4606         here from gtk_menu_real_insert(),
4607         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
4608         (gtk_menu_reorder_child): run _do_insert after inserting the child
4609         (unbreaks _reorder_child, reported by Tim Janik).
4610
4611 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
4612
4613         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
4614         g_date_strftime() for UTF-8 correctness; use Julian dates to
4615         simplify the function.
4616
4617 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
4618
4619         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
4620         Test extra_width, not extra_height, when determining whether to
4621         set extra_width.  (#129647, Jan Arne Petersen)
4622
4623 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
4624
4625         Fix the behaviour of insensitive actions, which was broken
4626         when gtk_action_activate() was changed to pay attention to 
4627         sensitivity  (#129557, Christian Persch)
4628         
4629         * gtk/gtkaction.h: 
4630         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
4631         function to emit an activate signal without regard to sensitivity.
4632
4633         * gtk/gtkradioaction.c: 
4634         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
4635         instead of gtk_action_activate().
4636
4637 2003-12-18  Jody Goldberg <jody@gnome.org>
4638
4639         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
4640           to ensure that the base hicolor theme is installed.  Silently
4641           failing to produce icons that apps assume exist in the theme seems
4642           like a bad idea.
4643
4644 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
4645
4646         Fixes #110249, reworked patch from Joshua N Pritikin.
4647
4648         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
4649         (gtk_tree_model_sort_tree_drag_source_init),
4650         (gtk_tree_model_sort_row_draggable),
4651         (gtk_tree_model_sort_drag_data_get),
4652         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
4653
4654         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
4655         (gtk_tree_model_filter_tree_drag_source_init),
4656         (gtk_tree_model_filter_row_draggable),
4657         (gtk_tree_model_filter_drag_data_get),
4658         (gtk_tree_model_filter_drag_data_delete): ditto.
4659
4660 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
4661
4662         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
4663         for "*" and "/" (expand/collapse all). (#110195, reported by
4664         Calum Benson).
4665
4666 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
4667
4668         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4669         clear the extra_attrs list if we set "text" after "markup".
4670         (Fixes #121933, Federico Mena Quintero).
4671
4672 2003-12-18  Alexander Larsson  <alexl@redhat.com>
4673
4674         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
4675         Fix typo that used the wrong x/y values for the x1, y1 point
4676         (#129605)
4677
4678 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
4679
4680         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4681         (gtk_cell_renderer_text_finalize),
4682         (gtk_cell_renderer_text_get_property),
4683         (gtk_cell_renderer_text_set_property), (get_layout): added language
4684         and language_set properties like GtkTextTag has. (#103800, reported
4685         by Owen Taylor).
4686
4687 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
4688
4689         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
4690         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
4691         "activate" signal.  (#129358, Ka-Hing Cheung)
4692
4693 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
4694
4695         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
4696         the logical flag backwards in the expand_collapse_cursor_row
4697         bindings, fixing.
4698         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
4699         flag when !logical and in RTL. (Fixes #107527, reported by
4700         Noah Levitt).
4701
4702 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
4703
4704         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
4705         editing when activated by the left mouse button. (#106869,
4706         patch from Evan Martin).
4707
4708 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
4709
4710         Migrating all cell renderers to use the new instance private data
4711         construction.
4712
4713         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
4714         longer being used.
4715
4716         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
4717         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
4718         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
4719         GtkCellRendererInfo handling, migrate to instance private data.
4720
4721         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
4722         (gtk_cell_renderer_text_start_editing): moved focus_out_id
4723         from GtkCellRendererInfo to text renderer private data.
4724
4725         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
4726         (gtk_cell_renderer_pixbuf_class_init),
4727         (gtk_cell_renderer_pixbuf_finalize),
4728         (gtk_cell_renderer_pixbuf_get_property),
4729         (gtk_cell_renderer_pixbuf_set_property),
4730         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
4731         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
4732         migrate to instance private data.
4733
4734         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
4735         (gtk_cell_renderer_toggle_get_property),
4736         (gtk_cell_renderer_toggle_set_property),
4737         (gtk_cell_renderer_toggle_render): migrate to instance private data.
4738
4739 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
4740
4741         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4742         (gtk_cell_renderer_text_get_property),
4743         (gtk_cell_renderer_text_set_property), (get_layout): add a
4744         single-paragraph-mode property, use private instance data.
4745         (Fixes #114943, reported by Morten Welinder).
4746
4747 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
4748
4749         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
4750         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
4751         by Matthias Clasen).
4752
4753 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
4754
4755         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
4756         if we set a new stock_id and there was a previous stock_id, unref
4757         the pixbuf (since it was used to renderer the previous stock_id
4758         and stock_id might have been set to NULL now). (Fixes #122966).
4759
4760 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
4761
4762         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
4763
4764         Check that index is not bigger than level array length
4765         also when depth is 1. Now get_iter_first correctly return
4766         FALSE when the model is empty (#129411).
4767
4768 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
4769
4770         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
4771         try to strcmp or strlen if we managed to normalize and casefold
4772         the string correctly. Fixes crashes with non-UTF8 strings.
4773         (#121617, Patch from Tim-Philipp Müller).
4774
4775 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
4776
4777         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
4778         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
4779         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
4780         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
4781         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
4782         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
4783
4784 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
4785
4786         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
4787         (#122727, patch from Kjartan Maraas).
4788
4789 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
4790
4791         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
4792
4793         * gtk/gtktreeview.c (gtk_tree_view_class_init),
4794         (gtk_tree_view_init), (gtk_tree_view_set_property),
4795         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
4796         fixed_height_mode property,
4797         (intialize_fixed_height_mode), (do_validate_rows),
4798         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
4799         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
4800         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
4801         (gtk_tree_view_insert_column): implement fixed height mode,
4802         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
4803         (gtk_tree_view_insert_column_with_attributes),
4804         (gtk_tree_view_insert_column_with_data_func): update docs.
4805
4806         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
4807
4808 2003-12-07  Murray Cumming  <murrayc@usa.net>
4809  
4810         * gtk/gtktreemodel.c:
4811         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
4812         Actually call the default signal handlers instead of calling the
4813         marshallers themselves in an endless loop. These default signal handler
4814         callbacks are not actually set so this is only noticed by gtkmm at
4815         the moment. Bug 123923.
4816
4817 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
4818
4819         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
4820         "volumes-changed" signal.  Added the following methods:
4821                 list_volumes
4822                 volume_free
4823                 volume_get_base_path
4824                 volume_get_is_mounted
4825                 volume_mount
4826                 volume_get_display_name
4827                 volume_render_icon
4828
4829         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
4830         "volumes-changed" signal.
4831         (gtk_file_system_list_volumes): New function.
4832         (gtk_file_system_volume_free): New function.
4833         (gtk_file_system_volume_get_base_path): New function.
4834         (gtk_file_system_volume_get_is_mounted): New function.
4835         (gtk_file_system_volume_mount): New function.
4836         (gtk_file_system_volume_get_display_name): New function.
4837         (gtk_file_system_volume_render_icon): New function.
4838
4839         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
4840         (gtk_file_system_unix_volume_get_base_path): Implement.
4841         (gtk_file_system_unix_volume_get_is_mounted): Implement.
4842         (gtk_file_system_unix_volume_mount): Implement.
4843         (gtk_file_system_unix_volume_get_display_name): Implement.
4844         (gtk_file_system_unix_volume_render_icon): Implement.
4845
4846         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
4847         Added a field for the "volumes-changed" signal connection.
4848         (gtk_file_chooser_default_set_property): Connect to
4849         "volumes-changed" on the file system.
4850         (gtk_file_chooser_default_finalize): Disconnect from
4851         "volumes-changed".
4852
4853         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
4854         function.
4855         (shortcuts_get_index): New helper function.
4856         (shortcuts_insert_path): Can now insert volumes as well as paths.
4857         (shortcuts_append_paths): Don't take is_file_system_root.
4858         (shortcuts_add_volumes): New function.
4859         (shortcuts_append_file_system_roots): Removed.
4860         (create_shortcuts_model): Use shortcuts_add_volumes().
4861         (remove_bookmark_button_clicked_cb): Check that the index is
4862         within range.
4863         (bookmarks_check_add_sensitivity): Take volumes into account.
4864         (shortcuts_get_selected_index): New helper function.
4865         (remove_bookmark_button_clicked_cb): Use
4866         shortcuts_get_selected_index().
4867         (bookmarks_check_remove_sensitivity): Likewise.
4868         (shortcuts_select_func): Likewise.
4869         (shortcuts_row_activated_cb): Handle volumes as well as normal
4870         paths.
4871         (shortcuts_activate_volume): New function.
4872         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
4873         bookmarks_iter fields.
4874         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
4875         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
4876         (remove_bookmark_rows): Removed.
4877         (shortcuts_add_bookmarks): New function; moved most of the code
4878         over from shortcuts_append_bookmarks().
4879         (shortcuts_append_bookmarks): Add the separator node here, and
4880         then call shortcuts_add_bookmarks().
4881
4882 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
4883
4884         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
4885         (G_OS_UNIX/G_OS_WIN32 stuff)
4886
4887 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
4888
4889         Do not interpret distant clicks as double-clicks  (#116541,
4890         Bernhard Walle):
4891         
4892         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
4893         double_click_distance, button_x and button_y.
4894         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
4895
4896         * gdk/gdkdisplay.h: 
4897         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
4898         New function to set the double click distance on a display.
4899
4900         * gdk/gdkevents.c: Take double click distance into account
4901         when generating single, double or triple clicks.
4902
4903         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
4904
4905         * gdk/x11/gdkevents-x11.c: Add the XSetting 
4906         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
4907
4908 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
4909
4910         * gtk/gtkdialog.c: Sigh, revert the change.
4911
4912 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
4913
4914         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
4915         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
4916         allows sane behavior for #101293.
4917
4918 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
4919
4920         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
4921         getter and setter gtk_button_[sg]et_alignment(), to set the
4922         alignment of the child.  (#70961, Jody Goldberg)
4923
4924 2003-12-14  Hans Breuer  <hans@breuer.org>
4925
4926         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
4927         similar as the other filesystem placement 'constants' (dynamic
4928         resolving on win32)
4929
4930         * gtk/gtkfilechooserwidget.c : handle file system to win32
4931         renaming here as will
4932         * gtk/gtkfilesystemwin32.c : implement render_icon
4933
4934         * gtk/gtk.def gdk/gdk.def : updated externals
4935
4936         * gdk/win32/gdkdisplay-win32.c : make it compile without
4937         <multimon.h> - i.e. even older sdk
4938
4939         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
4940         with TIMERPROC prototype
4941
4942         * gdk/win32/gdkwindow-win32.c : older msvc does not know
4943         BITMAPV5HEADER (from win xp) either
4944
4945         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
4946         not defined
4947
4948         * tests/testfilechooser.c : recent GLib crashes on 
4949         g_print ("%s", NULL) so avoid this
4950
4951 2003-12-14  Tor Lillqvist  <tml@iki.fi>
4952
4953         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
4954         followed by calls to CloseClipboard(). Add a missing call to
4955         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
4956         API_CALL macro in more places.
4957
4958 2003-12-14  Tor Lillqvist  <tml@iki.fi>
4959
4960         Merge from stable:
4961
4962         * gdk/gdkdisplaymanager.c: Mark default_display static.
4963
4964         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
4965
4966         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
4967         output.
4968
4969         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
4970         --gdk-debug=events. In general, output just one line of debugging
4971         output for each Windows message, plus one line for each GDK event
4972         generated. Indent all lines according to window procedure nesting
4973         level.
4974
4975         (inner_window_procedure): Rename from real_window_procedure.
4976
4977         (find_real_window_for_grabbed_mouse_event): Don't get misled when
4978         the point is in the non-client (decoration) area of the window
4979         returned by WindowFromPoint(). Return the root window in that
4980         case.
4981
4982         (build_pointer_event_state): Test also MK_XBUTTON1 and
4983         MK_XBUTTON2 (buttons 4 and 5).
4984
4985         (synthesize_enter_event): Track the mouse leaving the window in
4986         the event being generated, not the one mentioned in the Windows
4987         message.
4988
4989         (propagate): Test for NULL parent earlier. Improves event
4990         generation from a grabbed pointer. Part of fix for #107320.
4991
4992         (handle_stuff_while_moving_or_resizing): New function, to
4993         dispatch the main loop (once).
4994
4995         (resize_timer_proc): New function, set to be called by an inerval
4996         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
4997
4998         (gdk_event_translate): Drop unused return_exposes parameter.
4999
5000         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
5001
5002         On WM_SYSKEYUP, generate a key release event also for just the Alt
5003         key.
5004
5005         On WM_MOUSELEAVE, generate a leave event of type
5006         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
5007         top-level window, and left the app completely.
5008
5009         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
5010         calls resize_timer_proc() at regular intervals. On
5011         WM_EXITSIZEMOVE, kill the timer.
5012
5013         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
5014         and dispatch the main loop (by calling
5015         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
5016         Herman Bloggs.
5017
5018         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
5019         also wintab messages.
5020
5021         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
5022         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
5023         the window's owner. Fixes #118093, reported by Maxime Romano.
5024
5025 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
5026
5027         * gdk/win32/gdkwindow-win32.[ch]: Implement
5028         gdk_window_set_icon_list() for Win32, with support for big and
5029         small icons and support for alpha-channel icons under Windows
5030         XP. Replaces the previous implementation of gdk_window_set_icon().
5031         (#128762)
5032         
5033 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
5034
5035         * gdk/x11/gdkprivate-x11.h: 
5036         * gdk/x11/gdkx.h: 
5037         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
5038         Rename from _gdk_x11_register_event_type(), added API docs.
5039         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
5040         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
5041         all callers.  (#121471, Bill Haneman)
5042
5043 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
5044
5045         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
5046         of gc is ignored.  (#101983, Sebastian Rittau)
5047
5048 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
5049
5050         A trick for a faster treeview, step 1. Patch to short circuit
5051         _build_tree(), inspired by Jonathan (#80868).
5052
5053         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
5054         flags by default,
5055         (gtk_tree_view_build_tree): don't even try to recurse when the
5056         model says that it is a list, remove flag unsetter,
5057         (gtk_tree_view_set_model): change flag setting logic.
5058
5059         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
5060         propagate whether or not the child model has _IS_LIST set.
5061
5062         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5063         ditto.
5064
5065 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
5066
5067         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
5068         since it broke logical keynav. 
5069         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5070         direction in inverted scrollbars here instead.
5071
5072 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
5073
5074         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5075         "gravity" for RTL mode in a better way: Keep the distance from 
5076         the upper end of the page to the upper bound constant. This also 
5077         fixes problems with the initial position of the viewport in RTL 
5078         mode.  (#129063)
5079         
5080 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
5081
5082         Combo box flipping support.
5083
5084         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5085         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5086         patch from Matthias Clasen),
5087         (gtk_combo_box_popup): fix popup window alignment if there's a
5088         cell view frame visible (#126518, patch from Semion Chichelnitsky).
5089
5090         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5091         (#128348, patch from Semion Chichelnitsky).
5092
5093 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
5094
5095         * examples/gtkdial/gtkdial.c:
5096         * examples/menu/menu.c:
5097         * examples/scribble-xinput/scribble-xinput.c:
5098         * examples/progressbar/progressbar.c:
5099         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5100         in examples. (#129074, Olexiy Avramchenko)
5101         * examples/calendar/Makefile:
5102         * examples/rangewidgets/Makefile:
5103         * examples/menu/Makefile: Allow deprecated functions in
5104         examples which use deprecated widgets.
5105
5106 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
5107
5108         * gdk/gdk.c (gdk_threads_set_lock_functions): 
5109         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5110
5111 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
5112
5113         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
5114         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
5115
5116 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
5117
5118         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
5119         unnecessarily reserve space for arrows in RTL mode.  (#129075,
5120         Semion Chichelnitsky)
5121
5122 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
5123
5124         Changes to allow "no input" windows (#64613):
5125         
5126         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5127         field accept_focus.
5128         
5129         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5130         set it.
5131
5132         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5133         and gtk_window_get_focus() and gtk_window_set_focus().
5134
5135         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
5136         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
5137         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5138         Initialize the accept_focus field to TRUE.
5139
5140         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
5141         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
5142         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
5143         Implementations for the various backends. The Win32 and linux-fb
5144         implementations set the accept_focus field, but don't use it yet 
5145         to actually implement noinput windows. The X implementation updates
5146         the WM_HINTS to select the globally active input model (see the
5147         ICCCM) if accept_focus is FALSE.
5148
5149         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5150         WM_TAKE_FOCUS message if accept_focus is FALSE.
5151         
5152 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
5153
5154         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5155         Added toolbar items for the filter separator and the filter item.
5156         (toolbar_create): Add the filter widgets here.
5157         (filter_create): Renamed from create_filter().  Don't store the
5158         alignment in the impl structure, just return it.
5159         (toolbar_show_filters): New function.
5160         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5161         (gtk_file_chooser_default_remove_filter): Likewise.
5162         (gtk_file_chooser_default_constructor): Don't create the filter
5163         widget here.
5164         (struct _GtkFileChooserDefault): Added a field for a current
5165         folder label.
5166         (gtk_file_chooser_default_constructor): Create the folder label.
5167         (gtk_file_chooser_default_set_current_folder): Set the current
5168         folder label.
5169
5170         * tests/testfilechooser.c (main): Dramatically improved the
5171         usability of the extra widget through careful word choice.
5172
5173 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5174
5175         * gdk/gdk.h: include gdkspawn.h.
5176
5177 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5178
5179         * gdk/linux-fb/gdkspawn-fb.c,
5180           gdk/win32/gdkspawn-win32.c,
5181           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5182         s/gdk_spawn/gdk_spawn_on_screen/.
5183
5184 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5185
5186         Utility functions for multi-screen applications which need
5187         to ensure launched applications appear on a certain screen.
5188         See bug #95897.
5189         
5190         * gdk/gdkspawn.h: header for multi-screen launching
5191         support.
5192         
5193         * gdk/Makefile.am: install gdkspawn.h.
5194         
5195         * gdk/x11/Makefile.am:
5196         * gdk/x11/gdkspawn-x11.c:
5197         (gdk_spawn_make_environment_for_screen): private function
5198         to create an environment vector with DISPLAY set appropriately
5199         for the screen.
5200         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5201         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5202         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5203         
5204         * gdk/linux-fb/Makefile.am,
5205           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5206         
5207         * gdk/win32/Makefile.am,
5208           gdk/win32/gdkspawn-win32.c: win32 impl.
5209
5210 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
5211
5212         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5213         rather than "Username's Home" (#125964).
5214         (shortcuts_selection_changed_cb): New callback, check the
5215         sensitivity of the Remove Bookmark button at the right time.
5216         (shortcuts_row_activated_cb): It is not necessary to check the
5217         sensitivity here.
5218
5219 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
5220
5221         Improve the GDK API for dealing with group leaders (#119375):
5222         
5223         * gdk/gdkwindow.h: 
5224         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
5225         get the group leader of a toplevel window as a GdkWindow.
5226
5227         * gdk/gdkdisplay.h: 
5228         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
5229         function to get the default group leader as a GdkWindow.
5230
5231         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5232         the GdkWindow of the default group leader.
5233         
5234         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5235         for the default group leader.
5236
5237 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
5238
5239         * gdk/gdkkeysyms.h:
5240         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5241         Ukrainian_GHE_WITH_UPTURN. (#128529)
5242
5243 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
5244
5245         * gtk/gtkfilechooserdefault.c:
5246         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5247         behavior of the GtkFileSelection to determine selected paths in
5248         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5249
5250 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
5251
5252         * gtk/gtkfilechooserdefault.c
5253         (gtk_file_chooser_default_get_paths): Don't declare the closure
5254         struct twice.
5255         (get_paths_foreach): Likewise.
5256
5257 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
5258
5259         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
5260
5261 2003-12-08  Tor Lillqvist  <tml@iki.fi>
5262
5263         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5264         with MSVC and old headers. (#126933, John Ehresman)
5265
5266 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
5267          
5268         * === Released 2.3.1 ===
5269
5270         * NEWS: Updates for 2.3.1
5271
5272         * configure.in: Version 2.3.1, interface age 0, binary age 301.
5273
5274         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5275         Rename from gtk_menu_item_real_can_activate_accel() to
5276         match GTK+ convention, improve comment.
5277
5278         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5279         can ::can-activate-accel signal.
5280
5281         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5282         in comment.
5283
5284         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
5285         up comment.
5286         
5287         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5288         into the .c file.
5289
5290 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
5291
5292         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5293         missing 'else'. (#128816, Jorn Baayen)
5294
5295 2003-12-02  Michael Meeks  <michael@ximian.com>
5296
5297         Based on a patch by Martin Kretzschmar; #122448
5298         
5299         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5300         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5301         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5302         function pointers. Deprecate the global gdk_threads_mutex variable.
5303         
5304         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5305         extracted from GTK_THREADS_ENTER/LEAVE macros.
5306         (gdk_threads_init): init gtk_threads_[un]lock if not set.
5307         (gdk_threads_set_lock_functions): impl.
5308
5309         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5310
5311 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
5312
5313         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5314         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
5315         Gonzalez)
5316
5317 2003-12-07  Tor Lillqvist  <tml@iki.fi>
5318
5319         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5320         return value from SendMessage(WM_SETICON). That is the old
5321         icon. Fixes GDI resource leak. (#128559, Tim Evans)
5322
5323         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5324         have a pointer grab active with a grab cursor set, destroy that
5325         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5326
5327 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
5328
5329         * configure.in: Added Thai (th) to ALL_LINGUAS.
5330
5331 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
5332
5333         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5334         RTL flipping for GtkAlignment.  (#127585)
5335
5336 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
5337
5338         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
5339         popup window when in RTL mode.  (#127578)
5340
5341 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
5342
5343         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5344         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5345         before doing anything to prevent garbage returns.
5346
5347 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
5348
5349         * gtk/gtkviewport.c: Implement RTL flipping for 
5350         GtkViewport: Adjust the "gravity" when resizing
5351         This is a bit flickery in RTL mode.  (#107526)
5352
5353 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
5354
5355         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
5356         GtkScrolledWindow: the vertical scrollbar shows up on the left
5357         side in RTL mode.  (#107526)
5358
5359 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
5360
5361         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5362         tabs displayed at the top/bottom are rearranged, and tabs on
5363         the left/right are displayed at the opposite edge.  (#96630)
5364
5365 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
5366
5367         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5368         gtk_label_set_attributes() take NULL. See bug #128517.
5369
5370 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
5371
5372         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5373         the in_change flag.
5374         (completion_idle_callback): Use a temporary list store and re-set
5375         it on the completion rather than modifying the old one.  We are
5376         re-reading the folder anyway, and this gets rid of non-atomicity
5377         problems.
5378
5379 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5380
5381         Decouple impl->current_folder from the selection in the folder
5382         tree.  This is so that going to /home/federico/.foo (e.g. from a
5383         bookmark) will work even if show_hidden == FALSE.  The folder tree
5384         needs to be fixed in this case to show such folders explicitly.
5385
5386         * gtk/gtkfilechooserdefault.c
5387         (gtk_file_chooser_default_set_current_folder): When changing
5388         folders, do the entry and list model work here, instead of
5389         tree_selection_changed().
5390         (struct _GtkFileChooserDefault): Added a changing_folder flag
5391         again, dum de dum.
5392         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5393
5394 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
5395
5396         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
5397         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
5398
5399 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5400
5401         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5402         bookmarks buttons with the location entry.
5403
5404         * gtk/gtkfilechooserdefault.c
5405         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5406         bookmarks buttons and the location entry.
5407
5408 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5409
5410         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5411         shortcuts tree as a drag destination.
5412         (shortcuts_drag_data_received_cb): New callback.
5413         (get_file_info): Also fetch information on whether the file is a folder.
5414         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5415         (error_could_not_add_bookmark_dialog): New function.
5416         (shortcuts_add_bookmark_from_path): New helper function.
5417         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5418         (shortcuts_row_activated): We no longer need the changing_folder flag.
5419         (struct _GtkFileChooserDefault): Likewise.
5420
5421 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5422
5423         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5424         disappearing placeholders that are still visible.
5425
5426         * gtk/gtktoolbar.c: formatting fixes
5427
5428         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
5429         disappearing, for placeholders that are going to disappear.
5430
5431         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
5432
5433 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
5434
5435         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
5436         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5437         Patch from <chinen@jp.ibm.com> to handle RTL support for column
5438         resizers, #127874
5439
5440 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
5441
5442         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
5443         Don't use freed memory.  (#127698, Taavi Talvik) 
5444
5445 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
5446
5447         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
5448
5449 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
5450
5451         * gtk/gtkuimanager.c: Remove debug define.
5452
5453 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
5454
5455         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
5456         and the attach widget.
5457
5458         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
5459         sensitivity and the parent menu.
5460
5461         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
5462         checks whether accelerators may activate a widget. the default handler
5463         demands the widget be sensitive and visible+viewable.
5464
5465         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
5466
5467 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
5468
5469         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
5470         popup menus.  (#127227)
5471
5472 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
5473
5474         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
5475
5476 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5477
5478         * gtk/gtkradiotoolbutton.[ch]
5479         (gtk_radio_tool_button_new_from_widget): Make this function take a
5480         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
5481         Cumming)
5482
5483 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5484
5485         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
5486
5487 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5488
5489         * gtk/gtktoolbar.c: remove variable
5490         n_overflowed_menu_items_when_dnd_started
5491
5492 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5493
5494         Rework sliding algorithm.
5495         - No more weird jumping when items are dragged off and added to
5496         the toolbar,
5497         - More natural item movement
5498
5499         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
5500         function is now responsible for calculating intermediate positions
5501         during item sliding. It is also responsible for starting sliding
5502         if items disappear.  Also turn off expanding when there is an
5503         overflow menu.
5504         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
5505         (slide_idle_handler): New function. All the sliding is now done by
5506         gtk_toolbar_size_allocate(), so the idle handler now just checks
5507         if there is more sliding to be done.
5508         (compute_intermediate_allocation, position): new functions
5509         calculating intermediate steps in the slide animations. The new
5510         animation algorithm uses a constant speed instead of a constant
5511         must-be-finished-within time.
5512         (struct _ToolbarContent): use 
5513         GtkAllocation goal_allocation; and 
5514         GtkAllocation start_allocation; instead of 
5515         gint start/goal_width;
5516
5517         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
5518         documentation
5519
5520 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
5521
5522         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
5523         positioning Xinerama-aware.  (#127332)
5524
5525 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
5526
5527         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
5528         boundaries visible in fake Xinerama mode.
5529
5530 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
5531
5532         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
5533         for the gtk_widget_hide() call.
5534
5535 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
5536
5537         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
5538         from David Hampton to fix sorting on booleans.
5539
5540 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5541
5542         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
5543         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
5544         by Frederic Crozat).
5545
5546 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
5547
5548         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
5549
5550 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5551
5552         Fixes to problems reported by Iain Holmes:
5553
5554         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
5555         throw up an error dialog if the desktop doesn't exist.
5556         (error_message): Handle the case where there is no real toplevel
5557
5558         yet.
5559         (list_model_filter_func): Always let folders pass through (patch
5560         by Dave Malcolm).
5561
5562 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
5563
5564         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
5565         to a somewhat more logical place,
5566         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
5567
5568 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
5569
5570         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
5571         the popup when it is visible, popdown when there are less chars
5572         than the minimum key length in the entry,
5573         (gtk_entry_completion_changed): popdown when the entry is empty.
5574
5575         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
5576         size request of the vscrollbar to (-1, 0), to get a nicely sized
5577         completion treeview (Fixes #126573, reported by Piers Cornwell),
5578         (_gtk_entry_completion_resize_popup): show/hide the action_view
5579         based on items.
5580
5581 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5582
5583         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
5584         off the dialog's separator (thanks to Iain Holmes).
5585
5586 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5587
5588         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
5589         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
5590         on items that have a submenu. (#120104).
5591
5592 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5593
5594         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
5595         "ItemState" field indicating the overflowed-ness etc. of the item.
5596         (gtk_toolbar_size_allocate): update the field here.
5597
5598 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5599
5600         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
5601         to the alignment.  Use the HIG-specified spacing between the
5602         filter label and the combo.
5603         (create_filename_entry): Use HIG-specified spacing between the
5604         location label and the entry.
5605         (gtk_file_chooser_default_constructor): Don't use vertical padding
5606         around the filename entry.
5607
5608 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5609
5610         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5611         render_icon virtual method.
5612
5613         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
5614
5615         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
5616         Implement as a stub for now.
5617
5618         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
5619         gtk_file_system_render_icon().
5620         (list_icon_data_func): Likewise.
5621         (toolbar_create): Set the toolbar style to icons only.
5622
5623         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
5624         Fix doc comments.
5625
5626 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
5627
5628         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
5629         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
5630
5631 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
5632
5633         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
5634         only unselect all items if the treeview has focus. (Fixes bug
5635         reported by Marco Pesenti Gritti).
5636
5637 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
5638
5639         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
5640         number of actions is "matches + actions - 1". (Fixes #126572).
5641
5642 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
5643
5644         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
5645         mem leaks (#119435).
5646
5647 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
5648
5649         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
5650         try to fetch the child back, since we do know that it is already
5651         gone by now (#126493, Marco Pesenti Gritti).
5652
5653 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
5654
5655         Fixes based on comments from Owen Taylor, #125264.
5656
5657         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
5658         variable,
5659         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
5660         a resize,
5661         (gtk_cell_view_get_size_of_row): new function,
5662         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
5663         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
5664         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
5665         s/cellview/cell_view/ in the function definitions, so they match
5666         with the header file.
5667
5668         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
5669         flag again (:, and use gtk_cell_view_get_size_of_row instead of
5670         the measurer, remove _set_size_request call,
5671         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
5672         instead of the measurer,
5673         (gtk_combo_box_style_set): queue a resize,
5674         (gtk_combo_box_size_request): update of _remeasure call,
5675         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
5676         (gtk_combo_box_cell_layout_pack_end),
5677         (gtk_combo_box_cell_layout_clear),
5678         (gtk_combo_box_set_model): get rid of the measurer,
5679         (gtk_combo_box_cell_layout_add_attribute),
5680         (gtk_combo_box_cell_layout_set_cell_data_func),
5681         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
5682         resize instead of calling _remeasure.
5683
5684 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
5685
5686         * gdk-pixbuf/Makefile.am
5687         * modules/input/Makefile.am: Use install-data-hook for
5688         gdk-pixbuf.loaders and gtk.immodules install generation targets.
5689         Fixes #112806.
5690
5691         * gtk/gtkexpander.h: Apply missing declarations from #124449.
5692
5693 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
5694
5695         Fix for #119555, Peter Zelezny:
5696         
5697         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
5698         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
5699         by removing the _ prefix. 
5700         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
5701         gdk/gdkwindow.c: Adjust all callers.
5702
5703 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
5704
5705         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
5706         the action is sensitive.  (#127187, Christian Persch)
5707
5708 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
5709
5710         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
5711
5712 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
5713
5714         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
5715
5716         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
5717         mapped, else resize_popup.
5718
5719         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
5720         (_gtk_entry_completion_popup): moved all popup resizing code to
5721         _gtk_entry_completion_resize_popup, and show the window when there
5722         are more than zero items in the completion list again (sigh).
5723
5724 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
5725
5726         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
5727         "use_markup" property. See bug #124449.
5728
5729         * gtk/gtkexpander.c:
5730         (gtk_expander_class_init),
5731         (gtk_expander_init), (gtk_expander_set_property),
5732         (gtk_expander_get_property), (gtk_expander_set_label),
5733         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
5734         Add a "use_markup" property and use it when creating the
5735         child label.
5736
5737 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
5738
5739         Temporary size requisition fix. Will fix it for real tonight.
5740
5741         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
5742         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
5743         a good width for the child,
5744         (gtk_combo_box_cell_layout_add_attribute),
5745         (gtk_combo_box_set_cell_data_func),
5746         (gtk_combo_box_cell_layout_clear_attributes): update.
5747
5748 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
5749
5750         Fixes #124373, Murray Cumming.
5751
5752         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
5753         is no longer construct only,
5754         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
5755         (gtk_combo_box_menu_fill): new functions,
5756         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
5757         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
5758         (gtk_combo_box_list_destroy): updated,
5759         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
5760         functions,
5761         (gtk_combo_box_set_model): is now public, updated,
5762         (gtk_combo_box_get_model): small update.
5763
5764         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
5765         text_column property is no longer construct only,
5766         (gtk_combo_box_entry_set_text_column): now public,
5767         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
5768         new/changed functions.
5769
5770         * tests/testcombo.c: updated.
5771
5772 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
5773
5774         Reinstate fixes for (#124212, Marco Pesenti Gritti):
5775         
5776         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
5777         warnings for popups.
5778         (_gtk_menu_is_empty): Return FALSE for non-menus.
5779
5780 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
5781
5782         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
5783         gtk_cell_view_cell_layout_clear instead of trying to free the
5784         structure ourselves here. (#125726, Morten Welinder).
5785
5786 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
5787
5788         * gtk/gtkfilechooser.[hc]: 
5789         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
5790         confuse gtk-doc.
5791
5792 2003-11-15  Hans Breuer  <hans@breuer.org>
5793
5794         * gdk/makefile.msc gdk/gdk.def 
5795             gtk/gtk.def gtk/makefile.msc.in : updated
5796         * tests/makefile.msc : added all the new tests
5797
5798         * gtk/gtkfilefilter.c(finalize) : initialize filter
5799         from object not from itself
5800
5801         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
5802         modified as less as posible to have aworking implementation
5803         on win32. There maybe the desire to merge the unchanged pats into
5804         a common base class.
5805         Also implemented a simple glib based bookmark handling, which
5806         is currently missing in gtkfilesystemunix.[hc] but can be copied
5807         over there.
5808         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
5809
5810         * gdk/win32/gdkwindow-win32.c : implement 
5811         gdk_window_set_keep_above() and gdk_window_set_keep_below()
5812
5813         * tests/testmerge.c : don't include unistd.h unconditionally,
5814         #define STDOUT_FILENO if it isn't defined
5815
5816         * tests/testfilechooser.c : make it compile on win32
5817
5818 2003-11-15  Tor Lillqvist  <tml@iki.fi>
5819
5820         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
5821         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
5822
5823 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
5824
5825         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
5826
5827 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
5828
5829         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
5830         GTK_DATADIR/{icons,pixmaps} instead of 
5831         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
5832
5833 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
5834
5835         Changes to improve menu positioning on Xinerama (#108328, #126150):
5836         
5837         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
5838         window of the menuitem to determine the monitor. This fixes some
5839
5840         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
5841         to store the monitor on which the menu is to be positioned.
5842
5843         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
5844         in the GtkMenuPrivate struct and fetch the monitor geometry after
5845         calling the position_func, in case it has been changed.
5846
5847         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
5848         to be used in GtkMenuPositionFunc implementations for setting
5849         the monitor_num field in GtkMenuPrivate.
5850
5851         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
5852         gtk_menu_set_monitor.
5853
5854 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
5855
5856         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
5857         label for the empty list. String change.  (#95446, Tomas Ã–gren)
5858
5859 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
5860
5861         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
5862         the definition of the values.  (#123361, Marco Pesenti Gritti)
5863
5864 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
5865
5866         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
5867         (#122941, Egmont Koblinger)
5868
5869 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
5870
5871         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
5872         opacity entry widget. Change tooltip for opacity widgets. (#126426)
5873
5874 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
5875
5876         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
5877         affect window menu position when popped from keyboard. (#102660)
5878
5879 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5880
5881         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
5882         are using the old API, make all items "is_important". That way
5883         BOTH_HORIZ will continue to show both icon and label in old API
5884         mode.
5885
5886 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
5887
5888         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
5889         Remember the new value in all cases.  (#126276, Damon Chaplin)
5890
5891 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
5892
5893         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
5894         functions with the toplevel as argument.
5895
5896         * demos/gtk-demo/geninclude.pl.in: Change the signature
5897         of GDoDemoFunc to take a widget argument
5898
5899         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
5900         * demos/gtk-demo/tree_store.c (do_tree_store): 
5901         * demos/gtk-demo/textview.c (do_textview): 
5902         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
5903         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
5904         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
5905         * demos/gtk-demo/panes.c (do_panes): 
5906         * demos/gtk-demo/menus.c (do_menus): 
5907         * demos/gtk-demo/list_store.c (do_list_store): 
5908         * demos/gtk-demo/images.c (do_images): 
5909         * demos/gtk-demo/hypertext.c (do_hypertext): 
5910         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
5911         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
5912         * demos/gtk-demo/dialog.c (do_dialog): 
5913         * demos/gtk-demo/colorsel.c (do_colorsel): 
5914         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
5915         * demos/gtk-demo/button_box.c (do_button_box): 
5916         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
5917         as argument, and make new windows or dialogs appear on the
5918         same screen.  (#80388)
5919
5920 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
5921
5922         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
5923         visible-window default to TRUE, as documented and 
5924         implemented. (#126270 Damon Chaplin)
5925
5926 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
5927
5928         * gtk/gtkicontheme.c: 
5929         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
5930         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
5931         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
5932         2.4 additions.
5933
5934 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
5935
5936         Changing GtkFileChooserEntry to use GtkEntryCompletion.
5937
5938         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
5939         a GtkListStore for the completion list.  Create a
5940         GtkEntryCompletion and attach it to the chooser entry.
5941         (gtk_file_chooser_entry_finalize): Unref the completion store.
5942         (completion_match_func): New callback for the GtkEntryCompletion.
5943         (completion_idle_callback): Fill the completion store with filenames.
5944
5945 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
5946
5947         * gtk/gtkwindow.c (gtk_window_set_role): 
5948         * gtk/gtkwindow.c (gtk_window_set_title): 
5949         * gtk/gtkwidget.c (gtk_widget_set_name): 
5950         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
5951         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
5952         safe for self-assignment.  (#122745, Soeren Sandmann)
5953
5954 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
5955
5956         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
5957         (#126369, Olexiy Avramchenko)
5958
5959 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
5960
5961         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
5962         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
5963         consistency of titles.  (#126193, Damon Chaplin)
5964
5965 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
5966
5967         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
5968         menus to be transient for the toplevel they were torn off from.
5969         (gtk_menu_get_toplevel): Auxiliary function to find the
5970         toplevel of a menu.  (#54775, Jon-Kare Hellan)
5971
5972 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
5973
5974         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
5975         min-position and max-position.  (#58431, Padraig O'Briain)
5976
5977 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
5978
5979         * gtk/gtkcolorsel.c (update_color): 
5980         (make_label_spinbutton): 
5981         (adjustment_changed): Change the ranges for Saturation and
5982         Value to be 0-100 instead of 0-255, since these axes of HSV
5983         are usually expressed in percent.  (#121519, Gregory Merchan)
5984
5985 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
5986
5987         * docs/faq/gtk-faq.sgml: More 2.x updates
5988
5989 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
5990
5991         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
5992         pkg-config command error, update copyright.
5993
5994 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
5995
5996         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
5997         well.  Use a helper function.
5998         (shortcuts_append_home): Display an error box if necessary.
5999         (shortcuts_append_desktop): Likewise.
6000         (add_bookmark_button_clicked_cb): Likewise.
6001         (gtk_file_chooser_default_select_path): Likewise.
6002         (entry_activate): Likewise.
6003         (shortcuts_append_paths): New helper function.
6004         (shortcuts_append_file_system_roots): Use
6005         shortcuts_append_paths().
6006         (shortcuts_append_bookmarks): Likewise.
6007
6008 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
6009
6010         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
6011         menu is NULL.
6012         (update_smart_separators): Remove some unneeded ifs.
6013
6014 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
6015
6016         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6017         these usable in C++. Forgot this file in my Oct 11 commit.
6018
6019 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6020
6021         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
6022         icon to the "Add bookmark" button.
6023
6024         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
6025         * gtk/gtkfilesystemmodel.c: Likewise.
6026         * gtk/gtkfilechooser.c: Likewise.
6027         * gtk/gtkfilechooserdefault.c: Likewise.
6028
6029 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
6030
6031         * gdk/gdk.c: 
6032         * gdk/gdkinternals.h: 
6033         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
6034         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
6035         Xinerama mode when no actual Xinerama setup is found. 
6036
6037 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6038
6039         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
6040         (create_shortcuts_tree): Don't call the above.
6041         (bookmarks_changed_cb): Likewise.
6042         (tree_selection_changed): Unselect everything from the shortcuts
6043         list.  This is the behavior that Mac OS has.
6044         (toolbar_add_item): Return the item.
6045         (toolbar_create): Store the up_button in the impl structure.
6046         (toolbar_check_sensitivity): New function to set the sensitivity
6047         of the "Up" button in the toolbar.
6048         (tree_selection_changed): Call toolbar_check_sensitivity().
6049
6050 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
6051
6052         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
6053         not set a border width for the toplevel container.
6054         (toolbar_create): New function; create a simple toolbar for the
6055         file chooser.
6056         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
6057         the table, as per the HIG.
6058         (gtk_file_chooser_default_init): Likewise, for the default
6059         implementation's vbox.
6060
6061         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
6062         note that NULL is a valid return value for the parent path.
6063
6064 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6065
6066         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
6067         Change on activation, not selection change (temporary
6068         workaround for #125955, needed for keynav, likely
6069         the right UI anyways.)
6070
6071         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
6072         Don't allow the separator node to be selected.
6073
6074         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6075         Set the focus chain so that the entry gets focused first.
6076         (Not really right after initial focusing, maybe we
6077         should just have a gtk_file_chooser_focus_entry() that
6078         we call from gtk_file_chooser_dialog on creation.)
6079
6080 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
6081
6082         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6083         residual call to gtk_window_get_private().
6084
6085 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
6086
6087         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6088         into GtkWindowPrivate structure, fixing ABI breakage
6089         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6090         to instance-private-data.
6091
6092 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6093
6094         * gtk/gtktoolbar.c (get_item_requisition): delete this function
6095         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6096         instead of re-calculating for each item.
6097         (gtk_toolbar_size_allocate): Update comments
6098
6099 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6100
6101         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6102         placeholders when include_internals is TRUE.
6103
6104 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6105
6106         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6107         item 0 is a placeholder. (#125826)
6108         * tests/testtoolbar.c: add an assertion that 
6109         gtk_toolbar_get_nth_item (0) != NULL
6110
6111 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6112
6113         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6114         logical == 0.(#125826)
6115
6116 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6117
6118         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6119         return the index of a real item.
6120         (get_nth_item) assert that the returned items is not a
6121         placeholder.  (#125826, Marco Pesenti Gritti).
6122         
6123 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
6124
6125         * gtk/gtkcellrendererseptext.c
6126         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6127         text is NULL, rather than also doing it if it is an empty string.
6128
6129 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
6130
6131         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6132         gtk_message_dialog_new_with_format): Allow NULL
6133         for message_format, as described in the docs and
6134         as worked previously. (#125759, Richard Hult)
6135
6136         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6137         Use g_markup_vprintf_escaped() to escape arguments.
6138
6139         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6140         so there is some way to set literal markup.
6141
6142 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
6143  
6144         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6145         the call to gdk_error_trap_pop() to the right place,
6146         fixing a problem where we'd pop() too many times 
6147         when bailing out. (#123302, Thomas Leonard)
6148         
6149 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
6150
6151         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
6152         Fix infinite recursion. (#125679, Christian Persch)
6153
6154 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
6155
6156         * docs/faq/gtk-faq.sgml: further 2.x updates:
6157         mirrors,compiling,g_main_context_iteration
6158
6159 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6160
6161         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6162         function; remove gtk_toolbar_highlight_drop_location() and
6163         gtk_toolbar_unhighlight_drop_location().
6164
6165         Also fix bug where the number of overflowed items were miscounted.
6166
6167 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
6168
6169         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6170         some accidentally committed duplicate code.
6171
6172 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
6173
6174         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6175
6176 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
6177
6178         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
6179         gtk_has_toplevel_focus): Add getters corresponding to
6180         the is_active and has_toplevel_focus properties.
6181         (#122531)
6182
6183 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
6184
6185         * gtk/gtkexpander.c:
6186         (gtk_expander_class_init): hook up the destroy handler.
6187         (gtk_expander_destroy), (gtk_expander_unrealize):
6188         remove the expand/collapse timeout on destroy instead
6189         of unrealize to avoid leaving the expander in a inconsistent
6190         state when unrealizing during animation.
6191         (gtk_expander_start_animation): remove realized check.
6192         (gtk_expander_set_expanded): if the widget isn't realized,
6193         expand immediately.
6194
6195 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
6196
6197         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6198         do nothing when recipient is NULL, as described in the
6199         doc comment. (#123107, Thomas Leonard)
6200
6201 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
6202
6203         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6204         rewrite docs, mention memory management for the return
6205         value. (Partly addresses #125549, Michael Natterer)
6206
6207 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
6208
6209         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6210         Change index to filter_index to fix compilation error.
6211
6212         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6213
6214 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
6215
6216         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6217         we have RandR support, for XRRUpdateConfiguration declaration.
6218
6219         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6220         declaration.
6221
6222         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6223         length a gsize variable, since that's what g_file_get_contents()
6224         expects.
6225
6226 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
6227
6228         * NEWS: Fix attribution for above/below EWMH work.
6229
6230 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
6231
6232         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
6233         as a construct-only property.  (#125475, Murray Cumming)
6234
6235 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6236
6237         Fix bug 116297 and 125472
6238         
6239         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6240         this function take an index and a GtkToolItem.
6241
6242         * tests/testtoolbar.c (main): Make "Show Arrow" default to
6243         true. Make one of the separators !draw and expand.
6244         Update for new highlight_drop_location() API.
6245
6246         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6247
6248         * gtk/gtktoolbar.h: Formatting fixes.
6249
6250         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6251         separator tool items to expand.
6252         (logical_to_physical, physical_to_logical): Fix off-by-one errors
6253         (Fix #125472, Marco Pesenti Gritti)
6254
6255         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6256         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6257         return FALSE, not TRUE.
6258         (gtk_separator_too_item_{set|get}_property,
6259         (gtk_separator_tool_item_{set|get}_draw): new functions
6260
6261 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
6262
6263         * === Released 2.3.0 ===
6264
6265         * configure.in: Remove a stray comma.
6266
6267         * README.in: Fix a few notes about Xft 1 and pango-1.0.
6268
6269         * NEWS: Finish updates for 2.3.0.
6270
6271         * po/Makefile.in.in: Update to latest GLib version.
6272
6273 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
6274
6275         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6276         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6277         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6278         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6279         Sandmann).
6280
6281 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
6282
6283         * gtk/gtktreemodelfilter.h: add padding to the class structure.
6284
6285 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
6286
6287         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6288         (gtk_file_chooser_remove_filter): Likewise.
6289         (gtk_file_chooser_select_all): Added docs.
6290         (gtk_file_chooser_unselect_all): Likewise.
6291
6292         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6293
6294         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6295
6296 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
6297
6298         * gtk/gtkfilefilter.c: 
6299         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6300
6301 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
6302
6303         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6304
6305 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
6306
6307         * NEWS: Remove a few duplicates, group the menu changes.
6308
6309 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
6310
6311         * NEWS: Updates for 2.3.0; changed header to match the style we used
6312         for 2.1.0.
6313
6314 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
6315
6316         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6317         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
6318
6319 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
6320
6321         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6322         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6323         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6324
6325 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6326
6327         * NEWS: Partial update for 2.3.0.
6328
6329 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
6330
6331         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6332         GtkComboBox.
6333
6334 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
6335
6336         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
6337         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6338         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6339         Basic framework for the new file selector widget.
6340
6341         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
6342         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6343         Initial implementation of the GtkFileChooser user interface.
6344
6345         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6346         for Unix files.
6347
6348         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6349         for freedesktop.org MIME system on Unix.
6350
6351         * tests/testfilechooser.c: Test program for GtkFileChooser
6352
6353         * tests/prop-editor.c: Add support for properties on interfaces.
6354
6355 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6356
6357         * demos/gtk-demo/menus.c (do_menus): Fix some unused
6358         variables.
6359
6360         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6361         variable warning.
6362
6363 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
6364
6365         * NEWS: Partial update for 2.3.0.
6366
6367 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
6368
6369         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6370         ctrl_pressed and shift_pressed according to the current event
6371         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6372
6373 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
6374
6375         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6376         timeout when the user pressed on Enter/ESC. Fixes the bug where the
6377         completion popup popped up after the user pressed on Enter (which is
6378         just weird). Reported by the Epiphany people (all of them).
6379
6380 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6381
6382         Add support for OS X like sliding of toolbar items during drag and
6383         drop, (#110919, Dave Bordoley)
6384
6385         Make dnd highlighting the responsibility of the
6386         application. (Fixes #116298, Owen Taylor)
6387
6388         * gtk/gtktoolbar.h: Add prototypes for new API.
6389         
6390         * gtk/gtktoolbar.c
6391         (physical_to_logical, logical_to_physical): new functions
6392         converting between "position including placeholders" and "position
6393         excluding placeholders".
6394         (gtk_toolbar_class_init): remove drag_leave and drag_motion
6395         handlers
6396         (struct _ToolbarContent): new struct containing information
6397         related to toolbar items.
6398         (gtk_toolbar_highlight_drop_location): new public function
6399         (gtk_toolbar_unhighlight_drop_location): new public function
6400         
6401         * tests/testtoolbar.c
6402         (toolbar_drag_motion, toolbar_drag_leave): new functions
6403         (main): connect to dnd signals.  Make the "New" item expand to
6404         make drag and drop more exciting.
6405
6406 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
6407
6408         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6409         _set_active, not _set_active_item.
6410
6411 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
6412
6413         * gtk/gtkcombobox.h: add padding to the class structure.
6414         * gtk/gtkcomboboxentry.h: ditto.
6415         * gtk/gtkentrycompletion.h: ditto.
6416
6417 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
6418
6419         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6420         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6421         value and what it means.
6422
6423         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6424         item to -1 (default),
6425         (gtk_combo_box_entry_active_changed): do nothing when the index is
6426         < 0.
6427
6428 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
6429
6430         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
6431         to set the active row by iter.
6432
6433         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
6434         to get the active row by iter.
6435
6436 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
6437
6438         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
6439         operations on windows if the tree view is not mapped.
6440         (gtk_tree_view_button_press): Compare equal types of pointers, not
6441         GtkWidget* vs. GtkTreeView*.
6442
6443 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
6444
6445         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
6446         the reset of first_sel_changed, as after the first popup the treeview
6447         will always have a row selected and will thus not focus_to_cursor.
6448
6449         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
6450         whether the keyval should move the completion selection cursor (used
6451         to avoid ending up with extreme cluttered code), also added
6452         all KP_ equivalents of the keys here,
6453         (gtk_entry_completion_key_press): Keynav tweaks based on comments
6454         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
6455         as possible current selection, implement Home/End keys, modified
6456         the down key to stop cycling. Maybe page up/down should be implemented
6457         at some later time.
6458
6459 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
6460
6461         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
6462         as documented when pixmap or mask is NULL.  (#124081) 
6463
6464 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
6465
6466         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
6467         I was adding the signal block/unblock code. Oops. (Noticed by
6468         Marco Pesenti Gritti).
6469
6470 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
6471
6472         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
6473         (set_interp_type), (main): port over from option menu to GtkComboBox.
6474
6475 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
6476
6477         * tests/testmenus.c: Still uses option menus, so turn off
6478         GTK_DISABLE_DEPRECATED.
6479
6480 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
6481
6482         * gtk/gtkalignment.[hc]: 
6483         * gtk/gtkcombobox.[hc]: 
6484         * gtk/gtkcomboboxentry.[hc]: 
6485         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
6486         from header to implementation.
6487
6488 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
6489
6490         * tests/testtreeview.c: 
6491         * demos/testpixbuf-scale.c: 
6492         * tests/prop-editor.c: These files still use option menus,
6493         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
6494
6495 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
6496
6497         * gtk/gtkactiongroup.h: 
6498         * gtk/gtkaction.h: 
6499         * gtk/gtkradioaction.h: 
6500         * gtk/gtkradiotoolbutton.h: 
6501         * gtk/gtkseparatortoolitem.h: 
6502         * gtk/gtktoggleaction.h: 
6503         * gtk/gtktoolitem.h: 
6504         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6505         these usable in C++.  (#124351, Murray Cumming)
6506
6507 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
6508
6509         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
6510         non-NULL before accessing it. Oops.
6511
6512 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
6513
6514         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
6515         (gtk_entry_completion_insert_action_text),
6516         (gtk_entry_completion_insert_action_markup): the gchar* parameters
6517         should be const (pointed out by both Marco Pesenti Gritti and
6518         Murray Cumming (#124356).
6519
6520 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
6521
6522         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
6523         child list mode, allocate the height allocation->height to the
6524         button instead of the height requested by the button. (Tiny
6525         size allocation screwup noticed by Macro Pesenti Gritti).
6526
6527 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
6528
6529         Fixes based on comments from Marco Pesenti Gritti.
6530
6531         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
6532         signal handler, avoids the completion popup to popup when text is
6533         set programmatically in most cases (we actually have to handle this
6534         in the _editable functions as well, but that will break popping up
6535         when the user actually typed something :),
6536         (gtk_entry_completion_key_press): when handling enter, bail out
6537         when nothing has been selected,
6538         (gtk_entry_completion_changed): don't popdown when the entry content
6539         changed.
6540
6541         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
6542         (gtk_entry_completion_selected_changed): unselect_all on the
6543         first selected changed signal. Avoids having a default row selected,
6544         (_gtk_entry_completion_popup): don't select the first row by default.
6545
6546         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
6547         first_sel_changed field.
6548
6549 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
6550
6551         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
6552         in the intro (again).
6553
6554 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
6555
6556         Fixes for (#124212, Marco Pesenti Gritti):
6557         
6558         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6559         warnings for popups.
6560         (_gtk_menu_is_empty): Return FALSE for non-menus.
6561
6562 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
6563
6564         * gtk/gtkcombo.h: Deprecate.
6565         * gtk/gtkoptionmenu.h: Ditto.
6566
6567         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
6568         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
6569         needs some work on requesting enough size when taking the items in
6570         the list into account.
6571
6572         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
6573         deprecated" guards.
6574         * gtk/gtkinputdialog.c: ditto.
6575         * gtk/gtkitemfactory.c: ditto.
6576         * gtk/gtkoptionmenu.c: ditto.
6577
6578         * demos/gtk-demo/menus.c: remove the option menu.
6579         * demos/gtk-demo/sizegroup.c: replace the option menus with
6580         GtkComboBox.
6581         * demos/gtk-demo/textview.c: ditto.
6582         (A general GtkComboBox demo will be added later on).
6583
6584 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
6585
6586         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
6587         callback to propertly report radio actions.
6588
6589         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
6590
6591 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
6592
6593         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
6594         version in in the right field of the _XEMBED_INFO property.  
6595         (#123885, Denis Mikhalkin)
6596
6597 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
6598
6599         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
6600         the child if we have one.
6601
6602         (gtk_expander_button_release): use
6603         gtk_widget_activate instead.
6604
6605 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
6606
6607         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
6608         "right_attach" with a capital.  (#123945, Christian Rose)
6609
6610 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
6611
6612         * tests/testsocket.c (child_read_watch): Remove an
6613         extraneous unref.  (#122336, Frederic Crozat)
6614
6615 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
6616
6617         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
6618         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
6619
6620 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6621
6622         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
6623         focus arrow before pack_end items (#123851, Matthias Clasen)
6624
6625 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
6626
6627         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
6628         on ->priv->cell_view if ->priv->cell_view is non-NULL.
6629
6630         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
6631         field to GtkComboBoxEntryPrivate,
6632         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
6633         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
6634         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
6635         a construct-only "text_column" property and reorder code to use it
6636         and support inheriting this widget.
6637
6638 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
6639
6640         * gtk/gtkcombobox.c: Added API doc comments.
6641
6642         * gtk/gtkcomboboxentry.c: Ditto.
6643
6644 2003-10-02  Matthias Clasen  <maclas@gmx.de>
6645
6646         * gtk/gtktoggleaction.c: Documentation tweaks.
6647
6648 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
6649
6650         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
6651         packing/attribute/cell data functions from the header,
6652         (gtk_cell_view_set_cell_data): added support for cell data funcs.
6653
6654         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
6655         packing/attribute/cell data functions from the header, implemented
6656         cell data func support.
6657
6658         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
6659         for the move to GtkCellLayout.
6660
6661         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
6662
6663 2003-10-01  Matthias Clasen  <maclas@gmx.de>
6664
6665         * gtk/gtkaction.c (gtk_action_class_init): 
6666         (gtk_action_[gs]et_property): Introduce a separate
6667         "hide_if_empty" property for empty menu handling.
6668         (_gtk_action_sync_menu_visible): ...and use it here.
6669
6670         * tests/testmerge.c (main): ...and here.
6671
6672         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
6673         comments to pacify gtk-doc.
6674
6675         * gtk/gtkmain.c: Doc formatting tweaks.
6676
6677         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
6678
6679         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
6680         Use the same parameter names as in .c file, to pacify gtk-doc.
6681
6682         * gtk/gtktoggletoolbutton.[hc]: 
6683         * gtk/gtktoolbutton.[hc]: 
6684         * gtk/gtktoolitem.[hc]:
6685         * gtk/gtktoolbar.[hc]: 
6686         * gtk/gtkcolorbutton.[hc]: 
6687         * gtk/gtkfontbutton.[hc]: 
6688         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
6689         source, not in the header.
6690
6691         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
6692         Document these as 2.4 API additions.
6693
6694 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
6695
6696         * gtk/gtkentry.c (gtk_entry_set_completion),
6697         (gtk_entry_get_completion): Add API doc comments.
6698
6699         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
6700
6701 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
6702
6703         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
6704
6705 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
6706
6707         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
6708
6709         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
6710
6711 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6712
6713         * tests/merge-*.ui: 
6714         * tests/testmerge.c: Test handling of empty menus.
6715
6716         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
6717         whether a menu is empty. Used in gtkaction.c.
6718         (update_smart_separators): Also update the visibility of empty menus.
6719         (update_node): When creating a new menu proxy, insert an "Empty" menu 
6720         item which only gets shown if the menu is empty. 
6721
6722         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
6723         "is_important" for menu proxies.
6724         (_gtk_action_sync_menu_visible): New function to sync the visibility
6725         of menu proxies. Used in gtkuimanager.c.
6726         (gtk_action_sync_visible): New function to sync the visibility of 
6727         proxies.
6728
6729 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
6730
6731         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
6732         popup_in_progress to TRUE,
6733         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
6734         won't disappear on the first button release. (Reported by Matthias
6735         Clasen).
6736
6737 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
6738
6739         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
6740
6741         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
6742         Marco Pesenti Gritti).
6743
6744 2003-09-30  Murray Cumming  <murrayc@usa.net>
6745  
6746         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
6747         instead of a GdkWindow*, because that what it is given. The 
6748         documentation was already correct. This should cause no API/ABI
6749         breakage with C compilers.
6750         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
6751         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
6752         implementation accordingly.
6753
6754 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6755
6756         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
6757         "direction-changed" and "keys-changed" signals.
6758
6759         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
6760         "size-changed" signal.
6761
6762         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
6763         Document the "display-opened" signal.
6764
6765         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
6766         (gdk_display_class_init): Document the "closed" signal.
6767
6768 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6769
6770         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
6771         accepts_tab. (#122709 again).
6772
6773 2003-09-27  Matthias Clasen  <maclas@gmx.de>
6774
6775         * gtk/gtkwindow.c (gtk_window_new):
6776         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
6777         the fact that the newly created object does not come with 
6778         a floating reference.  (#103068, patch by Frederic Lespez)
6779         
6780         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
6781         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
6782         since GtkActionGroup uses it.
6783
6784         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
6785         this test uses the soon-to-be-deprecated GtkItemFactory.
6786
6787         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
6788         remove item_factory.c
6789
6790         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
6791         using GtkUIManager instead of GtkItemFactory.
6792
6793         * tests/testmerge.c: Demonstrate the use of the 
6794         connect-proxy signal.
6795
6796         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
6797         disconnect-proxy signals to do small customizations 
6798         like displaying tooltips in the statusbar without 
6799         custom actions.  (#122894, Philip Langdale)
6800
6801         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
6802
6803 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
6804
6805         Landing the new ComboBox. Note that only gtkcombobox.h and
6806         gtkcomboboxentry.h are public.
6807
6808         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6809         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
6810
6811         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
6812
6813         * tests/testcombo.c: and a new test.
6814
6815         * tests/Makefile.am: adding the new test.
6816
6817 2003-09-25  Tor Lillqvist  <tml@iki.fi>
6818
6819         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
6820
6821 2003-09-21  Tor Lillqvist  <tml@iki.fi>
6822
6823         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
6824         function. Code split out from gdk_event_translate(). Needed
6825         because gdk_event_get_graphics_expose() couldn't do anything
6826         sensible otherwise. (Not that I think graphics exposes work anyway
6827         in gdk/win32, but at least now the code could work.)
6828
6829         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
6830         gdk_event_translate(), which couldn't have worked as it doesn't
6831         take any pre-allocated GdkEvent parameter any longer.
6832         
6833         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
6834         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
6835
6836 2003-09-24  Matthias Clasen  <maclas@gmx.de>
6837
6838         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
6839         on toolitems.
6840
6841         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
6842
6843         * gtk/gtkuimanager.c (update_node): Don't complain about missing
6844         actions on popups. Re-set "tooltip" property on toolitems after
6845         adding them to parent to trigger proxy update.
6846
6847 2003-09-22  Matthias Clasen  <maclas@gmx.de>
6848
6849         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
6850         group member to test the fix for #122904.
6851
6852         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
6853         Add the action to the group before activating it, otherwise we
6854         may end up with multiple active group members.  (#122904, Marco
6855         Pesenti Gritti)
6856
6857 2003-09-21  Matthias Clasen  <maclas@gmx.de>
6858
6859         Changes to make cross-process merging feasible:
6860         
6861         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
6862         merged UI definition. Remove the "changed" signal, since its role
6863         is now filled by "notify::ui". Instead add a "actions-changed" signal
6864         which gets emitted when the set of actions changes.
6865
6866         * gtk/gtktoggleactionprivate.h:
6867         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
6868         Add a "draw_as_radio" property to toggle actions so that they can be
6869         used as proxies for radio actions much like the "draw_as_radio" 
6870         property on check menu items enables them to operate as proxies for
6871         radio actions.
6872
6873         Prevent the "show_all" trap for action-based menus (see
6874         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
6875         msg00260.html):
6876
6877         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
6878         calls from static functions.
6879
6880         * gtk/gtkuimanager.c (update_node): 
6881         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
6882         widgets whose visibility is externally controlled.
6883
6884         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
6885         "no_show_all" property with setter and getter. When TRUE, it keeps
6886         gtk_widget_{hide,show}_all() from modifying the visibility of the 
6887         widget and its children.
6888
6889 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6890
6891         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
6892
6893 2003-09-20  Tor Lillqvist  <tml@iki.fi>
6894
6895         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
6896         including editor backup files. List files we want explicitly.
6897
6898         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
6899         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
6900         LC_ALL, LC_CTYPE and LANG environment variables, than calls
6901         g_win32_getlocale().
6902
6903         (gtk_get_default_language): Code snippet moved to above function,
6904         call it.
6905
6906         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
6907         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
6908         _gtk_get_lc_ctype() instead of setlocale().
6909
6910 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6911
6912         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
6913         (#96632)
6914
6915 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6916
6917         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
6918         documentation. (#117306, Steve Chaplin)
6919
6920 2003-09-19  Tor Lillqvist  <tml@iki.fi>
6921
6922         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
6923         present on the US-International keyboard. For clarity, order
6924         keysyms in case statement according to numeric value.
6925
6926         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
6927         correctly. (#120176, Ken Rastatter and Owen Taylor)
6928
6929 2003-09-18  Matthias Clasen  <maclas@gmx.de>
6930
6931         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
6932         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
6933
6934         Install accelerators on actions, not on proxies, support
6935         accelerator-only actions:
6936         
6937         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
6938         and its lock status either via _gtk_widget_get_accel_path() or by 
6939         looking at the accel_path stored in the menu item itself and determining
6940         its lock status by peeking into the contained accel label. This was
6941         already (accidentally) committed a week ago.
6942
6943         * gtk/gtkaction.h (gtk_action_set_accel_group):
6944         (gtk_action_[dis]connect_accelerator): New functions.
6945
6946         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
6947         accel_closure and accel_count. We must have a reference to the 
6948         accel_group, since we need it in connect_proxy. The count is necessary
6949         to ensure that the accelerator isn't removed before the last proxy 
6950         requesting it has been unmerged.
6951         (connect_proxy): Connect the accelerator to the 
6952         action now, only set the accel_path on the menuitem.
6953         (remove_proxy): Disconnect the accelerator from the action, not from
6954         the menuitem.
6955         (gtk_action_set_accel_group): Set the accel group. 
6956         (gtk_action_[dis]connect_accelerator): Count the number of times
6957         this functions have been called and install/remove the accelerator if
6958         the count leaves/reaches zero.
6959
6960         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
6961         GTK_UI_MANAGER_ACCELERATOR.
6962
6963         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
6964         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
6965         <accelerator> elements.
6966         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
6967         type is GTK_UI_MANAGER_ACCELERATOR.
6968         (update_node): Set the accel group on actions before creating their
6969         proxies. Don't set the accel group on created menus. For 
6970         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
6971         (print_node): Also emit <accelerator> elements.
6972
6973         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
6974
6975         * gtk/gtkuimanager.c (update_node): Robustness improvements.
6976
6977 2003-09-17  Matthias Clasen  <maclas@gmx.de>
6978
6979         * gtk/gtkuimanager.c (text_handler): Report unexpected character
6980         data as error from the GMarkup parser, otherwise things like
6981         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
6982         pass unexpectedly.
6983
6984 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6985
6986         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
6987         committed redraw_on_allocate change.
6988
6989 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
6990
6991         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
6992         stubs to fix compilation
6993
6994         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
6995         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
6996
6997         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
6998         variable. Patch from Marc Welz (#121347).
6999
7000 2003-09-16  Matthias Clasen  <maclas@gmx.de>
7001
7002         * gtk/gtkaction.h: Apply egtk-format-protos.
7003
7004 2003-09-15  Matthias Clasen  <maclas@gmx.de>
7005
7006         * gtk/gtkuimanager.c: Doc tweaks.
7007
7008         Smart separators; see 
7009         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
7010         
7011         * gtk/gtkuimanager.c (update_smart_separators): New function which 
7012         implements "smart" separators by iterating once over the entries of a 
7013         menu, hiding and showing separators as necessary.
7014         (update_node): Mark separators used as fences of placeholders as
7015         hidden. Explicitly added separators are marked as smart. Call 
7016         update_smart_separators after updating a menu or toolbar node. 
7017         Connect update_smart_separators to "notify::visible" signal on menu
7018         and tool items.
7019         
7020         * tests/merge-[12].ui: Test smart separators.
7021
7022         Changes to allow setting action state before connecting signal; see
7023         the thread starting at 
7024         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
7025         
7026         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
7027         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
7028         setting the currently selected group member before connecting signals.
7029         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
7030         including a boolean to initialize the action state before connecting
7031         signals.
7032         (gtk_action_group_add_toggle_actions):
7033         (gtk_action_group_add_toggle_actions_full): New functions to construct
7034         toggle actions from an array of GtkToggleActionEntries.
7035
7036         * demos/gtk-demo/appwindow.c: 
7037         * tests/testactions.c: 
7038         * tests/testmerge.c: Adjust to new action group API.
7039
7040 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7041
7042         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
7043         "gtk-toolbar-arrow" so themes can special-case it.
7044
7045 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7046
7047         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
7048
7049 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7050
7051         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
7052         PangoFontMetrics. Patch from Steve Chaplin (#122257).
7053
7054 2003-09-14  Tor Lillqvist  <tml@iki.fi>
7055
7056         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
7057         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
7058         the usefulness of which was already in doubt. Removing it fixes
7059         bugs #118575 and #121851.
7060
7061 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
7062
7063         Merge from stable.
7064
7065         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7066         pressed button (used to determine if we want to initiate a drag later
7067         on) if the current grab widget is either NULL or tree_view (Reported
7068         by Jeroen Zwartepoorte).
7069
7070 2003-09-12  Matthias Clasen  <maclas@gmx.de>
7071
7072         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
7073         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
7074
7075 2003-09-11  Matthias Clasen  <maclas@gmx.de>
7076
7077         * gdk/gdkpango.c: Doc tweaks.
7078
7079         * tests/testgtk.c: Add table menu tests.
7080
7081         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
7082         GtkMenuPrivate struct itself. Pointed out by valgrind.
7083
7084         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
7085         properly.  (#121998)
7086
7087 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
7088
7089         The table menu patch! Turns GtkMenu into a table, so you can attach
7090         menu items in numerous new ways! Be creative!
7091
7092         Contains some bug fixes and RTL adaptions from Matthias Clasen.
7093
7094         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7095         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7096         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7097         the heights array in the private struct,
7098         (gtk_menu_class_init): reorder code a bit, install child properties,
7099         (get_attach_info), (get_child_attach): new utility functions,
7100         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7101         child properties, for the attach info,
7102         (gtk_menu_remove): remove AttachInfo from menu item,
7103         (gtk_menu_real_insert): implemented algorithm to automagically place
7104         inserted menu items at the correct place in the table,
7105         (gtk_menu_size_request), (gtk_menu_size_allocate),
7106         (compute_child_offset): reworked/rewritten to support table menus,
7107         (gtk_menu_attach): new function,
7108         (find_child_containing), (gtk_menu_move_current): new functions to
7109         get table menu keynav right.
7110
7111         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7112
7113 2003-09-10  Matthias Clasen  <maclas@gmx.de>
7114
7115         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
7116         PropertyNotify events from the stream if they have been handled,
7117         in order to enable extending the plug<->socket communication via
7118         properties.
7119
7120 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
7121
7122         Big TreeView DnD fixage, makes drops on empty models work, makes
7123         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7124         Related bugs #95362 and #113314. I don't want to touch this code
7125         ever again.
7126
7127         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7128
7129         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7130         for selection_data->length.
7131
7132         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7133         (set_dest_row), (get_dest_row): we don't store just the row ref
7134         anymore, but a struct with the row ref and additional info,
7135         (set_destination_row): handle drops on empty space and some
7136         style fixes,
7137         (get_logical_dest_row): also return path_down_mode/drop_append_mode
7138         flags, handle dropping childs on their new parents, rewrite
7139         drop append handling into something saner,
7140         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7141         spaces,
7142         (gtk_tree_view_drag_drop): updates for updated backend,
7143         (gtk_tree_view_drag_data_received): updates for updated backend,
7144         path down mode (treestore DnD) handling,
7145         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7146         when we are trying to drop a row on an empty model,
7147         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7148
7149         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7150         (gtk_list_store_row_drop_possible): style and drop-append fixes.
7151
7152         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7153
7154 2003-09-08  Alexander Larsson  <alexl@redhat.com>
7155
7156         * gtk/gtkeventbox.[hc]:
7157         Implement gtk_event_box_get/set_input_only()
7158         
7159         * tests/testgtk.c:
7160         Tests for the new input only event boxes
7161
7162 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
7163
7164         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7165
7166         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7167         the call to gtk_tree_model_filter_add_root,
7168         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7169         the virtual root, allow building levels on the second try to convert
7170         the child path to a filter path,
7171         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7172         root when calling gtk_tree_model_filter_elt_get_path.
7173
7174 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7175
7176         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
7177         Josh Beam)
7178
7179         Fixes for accelerator handling during (un)merging:
7180         
7181         * gtk/gtkuimanager.c (update_node): Move setting info-action
7182         after the switch, since the old action is needed in some cases.
7183         In cases of proxy type mismatch, disconnect the old proxy from
7184         the old action.
7185
7186         * gtk/gtkaction.c (remove_proxy): Renamed from 
7187         gtk_action_remove_proxy(). Move unsetting of the accelerator
7188         here from disconnect_proxy() in order to catch all cases of 
7189         removing a proxy.
7190         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7191         to fail if proxy isn't a proxy of action.
7192
7193 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
7194
7195         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7196         ALL_LINGUAS
7197
7198 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7199
7200         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7201         for toolitems.
7202
7203 2003-09-06  Matthias Clasen  <maclas@gmx.de>
7204
7205         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
7206         prev_action, not from action.  (Fix by David Hampton)
7207
7208 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
7209  
7210         * Back out locale-dependent interpretation of
7211         KP_Decimal, the official XFree86 interpretation
7212         is that KP_Decimal => . KP_Separator => ,
7213         always, independent of locale. 
7214         (#105161, Frederic Crozat, 
7215         http://bugs.xfree86.org/show_bug.cgi?id=534)
7216  
7217 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7218
7219         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7220
7221         * gtk/gtktoggleaction.c (connect_proxy): 
7222         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
7223         that a "draw_as_radio" property is needed for check buttons similar to 
7224         check menu items, in order to fully support button proxies for radio actions.
7225
7226         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7227
7228         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
7229
7230         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7231         'type' argument of gtk_ui_manager_add_ui().
7232
7233         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7234         to make this function as powerful as the XML methods of adding UI.  (#120647)
7235
7236 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
7237
7238         Merge from stable.
7239
7240         * docs/RELEASE-HOWTO: updates.
7241
7242 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7243
7244         * tests/merge-2.ui: Use "position" instead of "pos".
7245
7246         * gtk/gtkuimanager.c (start_element_handler): No need 
7247         to be terse: Change the name of the "pos" attribute
7248         to "position".
7249
7250 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7251
7252         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
7253         GtkUIManagerNode to shorten the names and to make the
7254         GTK_UI_MANAGER_<TYPE> names available for a public enum.
7255
7256         * gtk/gtkactiongroup.c:
7257         * gtk/gtkuimanager.c: Various doc tweaks.       
7258
7259         * gtk/gtkuimanager.c (start_element_handler):
7260         (end_element_handler): Improve error reporting. 
7261
7262 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
7263
7264         Merge from stable.
7265
7266         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7267         use end_position - page_size instead of G_MAXINT, since
7268         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7269         reported by Havoc Pennington).
7270
7271 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
7272
7273         Merge from stable.
7274
7275         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7276         unref it. (Fixes memleak, patch from Kjartan Maraas).
7277
7278 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
7279
7280         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7281         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7282         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7283         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7284         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7285         gtk/gtktypeutils.h: big patch from Kjartan Maraas
7286         to fix numerous typos.
7287
7288 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
7289
7290         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7291
7292 2003-09-02  Tor Lillqvist  <tml@iki.fi>
7293
7294         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7295         CloseHandle() on the HMODULE returned from GetModuleHandle().
7296         Didn't cause any harm, but didn't do anything useful either. When
7297         running a GTK+ program under MS's debugger, the CloseHandle() call
7298         would cause a "first-chance exception" in ntdll.dll to show up.
7299         (The exception is caught appropriately if you let it proceed, but
7300         it confuses the person using the debugger). Thanks to Bruce
7301         Hochstetler for noticing.
7302
7303 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
7304
7305         Merge from stable.
7306
7307         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7308         to only select when button 1 is pressed introduced in the fix of
7309         bug #120187.
7310
7311 2003-09-02  Matthias Clasen  <maclas@gmx.de>
7312
7313         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7314
7315         * gtk/gtkuimanager.c: Shorten the names of some static 
7316         functions.
7317
7318         Support adding and removing merge nodes dynamically (#120647, 
7319         Anders Carlsson):
7320         
7321         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
7322         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
7323         and made it public.
7324         (gtk_ui_manager_add_ui): New function to add UI elements
7325         without juggling XML fragments, currently restricted to menuitems,
7326         toolitems and separators. Actions still come from registered 
7327         action groups.
7328
7329 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7330
7331         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7332         background pixmap was being offset twice, once by the ts_origin in
7333         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7334
7335 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7336
7337         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7338         this public again, since it's occasionally useful.  (#121128,
7339         Marco Pesenti Gritti)
7340
7341         * gtk/gtkaction.c: Add an "is_important" property and propagate
7342         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
7343
7344 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7345
7346         * tests/testtoolbar.c (main): connect to "delete_event" so the
7347         application will actually quit when you close the window
7348
7349 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7350
7351         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
7352         (gtk_ui_manager_get_action): g_return_if_fail() if
7353         path is NULL.
7354         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7355         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
7356         Marco Pesenti Gritti)
7357
7358 2003-08-31  Matthias Clasen  <maclas@gmx.de>
7359
7360         * gtk/gtktoolitem.c: Fix some typos in docs.
7361
7362         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7363         replaces gtk_ui_manager_activate().  (#120658)
7364
7365         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7366         gtk_ui_manager_activate().
7367
7368         * gtk/gtkaction.c: 
7369         * gtk/gtkactiongroup.c: Some doc tweaks.
7370
7371         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7372         wasn't emitted anyway. Some doc tweaks.
7373
7374 2003-08-30  Matthias Clasen  <maclas@gmx.de>
7375
7376         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7377         rather than to "remove" on handlebox. 
7378
7379         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7380         activate an action found by following a path.  (#120658)
7381
7382         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7383
7384         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7385
7386         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
7387         setter and getter. If it is set, add tearoff menu items to regular 
7388         menus, but not to popups. Add a signal "changed", which gets emitted
7389         when the merged ui has changed.  (#120649, #120656)
7390
7391         * tests/testmerge.c: Add button to test the generation of tearoff 
7392         menu items.
7393
7394 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7395
7396         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7397         Actually group the actions together rather than putting each in its 
7398         own group.
7399
7400         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
7401         proxy menu items for radio actions.
7402
7403         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7404
7405 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7406
7407         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7408         Fix use of uninitialized variable.
7409
7410         * gtk/gtktextutil.c
7411         (_gtk_text_util_append_special_char_menuitems): add const cast to
7412         get rid of warning
7413
7414 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7415
7416         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
7417         "draw_as_radio" as a separate property, not as an alias of 
7418         "inconsistent".
7419         (gtk_check_menu_item_get_property): 
7420         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7421
7422 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7423
7424         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7425         are narrower than 13 time the estimated character width of the
7426         font. (#107781, David Bordoley)
7427
7428         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
7429         here if the GtkToggleButton is active. This may be the case if it
7430         is a radio button.
7431
7432         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
7433         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
7434         Suarez-Alvarez).
7435
7436         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
7437         property. (#111207, David Bordoley).
7438
7439         * gtk/gtktoggletoolbutton.c
7440         (gtk_toggle_tool_button_create_menu_proxy): use new
7441         "draw_as_radio" property on the menu item when the item is a radio
7442         tool button
7443
7444         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
7445         to only pay attention to the "use_underline" property when the
7446         button label comes from the "label" property.
7447
7448 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
7449
7450         * configure.in: Added "sq" to ALL_LINGUAS.
7451         
7452 2003-08-28  Matthias Clasen  <maclas@gmx.de>
7453
7454         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
7455         fix in the docs.
7456
7457         * gtk/gtkuimanager.c: Change the XML format:
7458         <Root> element is replaced by <ui>,
7459         <menu> element is replaced by <menubar>,
7460         <submenu> element is replaced by <menu>,
7461         <dockitem> element is replaced by <toolbar>,
7462         <popups> element is gone,
7463         verb attribute is replaced by action,
7464         name defaults to action or the element name. 
7465
7466         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
7467         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
7468         by removing the user_data, entry_type and extra_data fields, 
7469         GtkRadioActionEntry is further simplified by removing the callback. 
7470         The user_data can now be specified as an argument to 
7471         gtk_action_group_add_actions(). There is a new method 
7472         gtk_action_group_add_radio_actions(), which is similar to 
7473         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
7474         and a callback parameter in addition to the user_data. The callback
7475         is connected to the ::changed signal of the first group member.
7476         There are _full() variants taking a GDestroyNotify of 
7477         gtk_action_group_add_[radio_]actions().
7478
7479         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
7480         on every member of the radio group when the active member is changed. 
7481         Add an integer property "value", and a getter for the value of "value"
7482         on the currently active group member. 
7483
7484         * tests/testactions.c: 
7485         * tests/testmerge.c: 
7486         * tests/merge-[123].ui:  
7487         * demos/gtk-demo/appwindow.c: Adjust to these changes.
7488
7489         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
7490
7491 2003-08-27  Anders Carlsson  <andersca@gnome.org>
7492
7493         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
7494         text view, so the tool bar won't have focus.
7495
7496 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
7497
7498         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
7499         declaration not at start of block. (#120371, Damien Carbery)
7500
7501 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7502
7503         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
7504         for length, not gsize.
7505
7506         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
7507         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
7508         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
7509
7510         * demos/gtk-demo/appwindow.c: 
7511         * tests/testactions.c: 
7512         * tests/testmerge.c:
7513         * tests/merge-1.ui:
7514         * tests/merge-2.ui:
7515         * tests/merge-3.ui: Adjust to the new XML format.
7516
7517 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
7518
7519         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
7520         Since we add one to the layout's reported width to
7521         account for the cursor, we need to subtract one when
7522         setting the wrap width for the layout. (Fixes infinite
7523         loop (#120325, Frederic Crozat)
7524
7525         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
7526         Be a bit more careful about rounding when converting
7527         wrapped width from Pango units to pixels.
7528
7529 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7530
7531         Rename GtkMenuMerge to GtkUIManager. 
7532         
7533         * gtk/gtkuimanager.[hc]: New files. 
7534         * gtk/gtkmenumerge.[hc]: Removed. 
7535
7536         * gtk/Makefile.am: 
7537         * gtk/gtk.h:
7538         * tests/testmerge.c: 
7539         * tests/testactions.c: 
7540         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
7541         GtkUIManager.
7542
7543         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
7544         add comments to entries array, remove newlines from ui definition. Don't 
7545         use the ::add_widget signal.
7546
7547 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
7548
7549         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
7550         include page->menu_label - causes various problems,
7551         including #12047.
7552
7553 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
7554
7555         Merge from stable.
7556
7557         Fixes #115871, reported by Michael Natterer.
7558
7559         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
7560         added ctrl_pressed and shift_pressed bitfields,
7561         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
7562         arg with GtkTreeSelectMode.
7563
7564         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
7565         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
7566         (_gtk_tree_selection_internal_select_node): all updated for
7567         GdkModifierType -> GtkTreeSelectMode move.
7568
7569         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
7570         and shift_pressed around selection handling block,
7571         (gtk_tree_view_real_select_cursor_row),
7572         (gtk_tree_view_real_toggle_cursor_row),
7573         (gtk_tree_view_real_selection_cursor_parent),
7574         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
7575         instead of checking the event state. And also updates for the
7576         GdkModifierType -> GtkTreeSelectMode move.
7577
7578 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
7579
7580         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
7581         to the parent when there was no focus widget before
7582         and no focus widget after - that is, when there are
7583         no focusable widgets. (#108678, help tracking it
7584         down from Padraig O'Briain, Federico Mena Quintero, )
7585
7586         * gtk/gtkxembed.[ch]: Move various shared utilities
7587         for the XEMBED protocol eused by GtkPlug and GtkSocket 
7588         here.
7589
7590         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
7591         a flag bit that is sent with focus mesages to indicate
7592         that the focus has wrapped around on the toplevel;
7593         use this bit to catch infinite loops when there is no
7594         focusable widget at ll in the entire toplevel.
7595
7596         * tests/testsocket.c (child_read_watch): Remove an
7597         extraneous unref.
7598
7599         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
7600         Up XEMBED protocol version to 1, add logic for 
7601         sending the right version in XEMBED_EMBEDDED_NOTIFY.
7602
7603         * gtk/gtksocket.c (gtk_socket_add_window): Send
7604         the embedder window in the XEMBED_EMBEDDED_NOTIFY
7605         as the spec requires.
7606
7607 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
7608
7609         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
7610         NumLock handling for non-XKB. Add a special case
7611         hack for NumLock on Sun servers. (Patch from
7612         Robert Basch, #115819)
7613
7614 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7615
7616         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
7617         Welinder)
7618
7619         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
7620         gtk_action_group_set_translation_domain): Hooks for translation of
7621         label and tooltip in GtkActionGroupEntries.  (#120620)
7622
7623 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7624
7625         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
7626         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
7627         
7628         * gtk/gtkactiongroup.c: 
7629         * demos/gtk-demo/appwindow.c: 
7630         * tests/testmerge.c: 
7631         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
7632
7633 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
7634
7635         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
7636
7637 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
7638
7639         * gtk/Makefile.am: Fix accidental commit of references
7640         to gtkresizegrip.[ch]
7641
7642 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
7643
7644         * gtk/gtkrc.c: Fix some missing initializations of
7645         rc_file->directory.
7646
7647 2003-08-24  Matthias Clasen  <maclas@gmx.de>
7648
7649         * gtk/gtkaction.[ch]: 
7650         * gtk/gtktoggleaction.[ch]: 
7651         * gtk/gtktoggleactionprivate.h: 
7652         * gtk/gtkradioaction.[ch]: 
7653         * gtk/gtkactiongroup.[ch]: 
7654         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
7655         toolbars, using the EggMenu code by James Henstridge.
7656
7657         * gtk/gtk.h: Include new headers.
7658         * gtk/Makefile.am: Add new files.
7659
7660         * tests/testactions.c: Test for actions.
7661         * tests/testmerge.c: Test for menu merging.
7662         * tests/merge-[123].ui: Test data for testmerge. 
7663         * tests/Makefile.am: Add testactions and testmerge.
7664
7665         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
7666         menubar and toolbar.
7667         
7668 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
7669  
7670         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
7671         problem where rc_file->directory wasn't always getting
7672         set. (#120549, Luis Villa)
7673  
7674 2003-08-22  Christian Rose  <menthos@menthos.com>
7675
7676         * configure.in: Added "ne" to ALL_LINGUAS.
7677
7678 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
7679  
7680         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
7681         being parsed, not just the directories for those
7682         files. Use that to catch recursion. (Part of
7683         #114988)
7684  
7685 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
7686
7687         Merge from stable.
7688
7689         Fix option menu scrolling (#119821, Owen Taylor).
7690
7691         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
7692         by #80484 and the CLAMP,
7693         (get_menu_height): new function,
7694         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
7695         new_offset to handle page up/down right.
7696
7697 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
7698
7699         * gdk/x11/gdkkeys-x11.c: Change the interpretation
7700         of consumed_modifiers so that it contains:
7701          - Modifiers combinations actually found in
7702            state.
7703          - Single modifier modifier combinations.
7704         But not multi-modifier combinations that aren't
7705         in event->state. Document. (#100439)
7706
7707 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
7708
7709         Slightly modified patch from Yann Rouillard to improve selection
7710         behavior with the mouse. Fixes #120187.
7711
7712         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
7713         select/deselect items on the first button press of button 1,
7714         expand checks for row_activated to include triple clicks.
7715
7716 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
7717
7718         Merge from stable.
7719
7720         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
7721         approximate digit widths up, to avoid truncation, convert to
7722         pango pixels when we have the full string width instead of converting
7723         the approx digit width to pango pixels, take inner border and
7724         interior focus into account correctly. (Fixes #116368, patch from
7725         Morten Welinder).
7726
7727 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
7728
7729         * gtk/queryimmodules.c: Don't look at the same directory twice (in
7730         simple cases). (#120342)
7731
7732 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7733
7734         * gdk/gdkwindow.c: Make the layers in the paint stack have their
7735         own pixmap instead of sharing one. (#118317)
7736
7737         * tests/testgtk.c (create_get_image): Fixes to make the window fit
7738         on an 800x600 screen
7739
7740 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
7741
7742         Merged from stable.
7743
7744         * gtk/gtkspinbutton.c (start_spinning): change the type of step
7745         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
7746
7747 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
7748
7749         * modules/input/gtkimcontextxim.[ch]: Substantially
7750         rework the handling of status windows:
7751         
7752          - Store the current StatusWindow in the 
7753            GtkIMContextXIM structure and vice-versa, so we
7754            don't have to hunt the window hierarchy on
7755            cleanup.
7756          - Use the Gtkidget hierarchy instead of/or as well
7757            as the GdkWindow hierarchy when finding the toplevel;
7758            this helps for things like GtkHandlebox
7759          - Watch GtkWidget::hierarchy_changed to catch 
7760            changes in the toplevel without changes in the
7761            GdkWindow (reparenting)
7762          - Never create the GtkWindow for the status window
7763            unless we have text to display.
7764          - Various cleanups, add lots of comments.
7765
7766         (#115077, much help from Takuro Ashie and Hidetoshi
7767         Tajima in tracking this down and figuring out a fix.)
7768
7769         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
7770
7771         * modules/input/gtkimcontextxim.c: Track the current
7772         screen for each toplevel so that we show the status
7773         window on the right screen. (#116340, James Su)
7774
7775         * modules/input/gtkimcontextxim.c: If create a new IC
7776         when we currently have the focus, call XSetICFocus()
7777         on it.
7778         
7779         * modules/input/gtkimcontextxim.c (get_im): Fix bug
7780         with multiple open screens.
7781
7782 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
7783
7784         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
7785         Replace client_window field with 'priv' pointer,
7786         retaining binary compatibility.
7787
7788         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
7789         save use_preedit/cursor_location/focus status and set
7790         up the new slave appropriately. (#118651, Botond Botyanszki)
7791
7792 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
7793
7794         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
7795         Don't use impl->position_info.clip_rect for toplevels.
7796         (#107068, reported by Thomas Mirlacher)
7797
7798 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
7799
7800         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
7801         Add a fallback for unaligned source data for
7802         FORMAT_ARGB_MASK. (#117217)
7803
7804 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
7805
7806         * configure.in: Rework handling of REBUILD_PNGS,
7807         so that we also don't try to REBUILD_PNGS when
7808         cross-compiling and there is no gdk-pixbuf-csource.
7809         But give an error if gtk/stock-icons/gtkstockpixbufs.h
7810         is not in the source tree. (Note that REBUILDS_PNG
7811         was set backwards before, which is why you always
7812         had to manually recreate gtkstockpixbufs.h!)
7813
7814 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
7815
7816         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
7817         path to libgtk.la. (#120080, Benedikt Spranger)
7818
7819 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
7820
7821         * modules/input/imcedilla.c: Make the list of default
7822         languages more comprehensive. (Suggestion of
7823         Fco. Javier F. Serrador)
7824
7825 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
7826
7827         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
7828         parentheses when skipping args.
7829
7830 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
7831
7832         Fix major bug in row ref handling, so the new combo box
7833         will actually work right (:. Bug #107748. Patch written
7834         with help from Tim Janik.
7835
7836         The basic idea is to update the row refs in a closure,
7837         before the actual signal is emitted (rather than having
7838         the model connect signal handlers).
7839
7840         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
7841         g_signal_new calls for row_inserted, row_deleted and
7842         rows_reordered to use the new marshallers,
7843         (row_inserted_marshall), (row_deleted_marshall),
7844         (rows_reordered_marshall): the new marshallers,
7845         (gtk_tree_row_ref_inserted_callback): renamed to
7846         gtk_tree_row_ref_inserted since it isn't a callback
7847         anymore and gets called by the marshaller now,
7848         (gtk_tree_row_ref_deleted_callback): likewise,
7849         (gtk_tree_row_ref_reordered_callback): likewise,
7850         (connect_ref_callbacks), (disconnect_ref_callbacks):
7851         removed,
7852         (gtk_tree_row_reference_new_proxy),
7853         (gtk_tree_row_reference_free),
7854         (gtk_tree_row_reference_inserted),
7855         (gtk_tree_row_reference_deleted),
7856         (gtk_tree_row_reference_reordered): updated.
7857
7858 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
7859
7860         Improve Cedilla handling - based on a patch from Gustavo 
7861         De Nardin, #111334
7862
7863         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
7864         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
7865         dead_acute+c combinations. Make this the default for
7866         fr and pt.
7867
7868         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
7869         Use LC_CTYPE instead of LC_MESSAGES to pick the default
7870         input method.
7871
7872 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
7873
7874         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
7875         for Multi_key+c+apostrophe.
7876
7877 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
7878
7879         Merged from stable.
7880
7881         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
7882         on vertical scrolling. (#108035, reported by Tim Janik).
7883
7884 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
7885
7886         Merged from stable.
7887
7888         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
7889         (gtk_tree_model_sort_level_find_insert),
7890         (gtk_tree_model_sort_insert_value): fix off-by-one error.
7891         (#109292 continued, patch from Yann Rouillard).
7892
7893 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
7894
7895         (Note: This is not exactly the same as the patch which went in
7896          gtk-2-2).
7897
7898         * gtk/gtktreeview.c (gtk_tree_view_class_init),
7899         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
7900         Also support the up, down, left, right, home, end, page up and
7901         page down keys on the numpad. (#119419, reported by Alex Larsson).
7902
7903 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
7904
7905         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
7906
7907         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
7908         we link libgtk against X explicitely, since we
7909         make GTK+ calls for plug/socket.
7910
7911         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
7912         G_MODULE_SUFFIX here. 
7913
7914         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
7915         XShmPutImage with #ifdef USE_SHM.
7916
7917 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
7918
7919         * gtk/gtkfilesel.c (gtk_file_selection_populate):
7920         Don't reposition the cursor when we aren't trying
7921         to complete. (Fixes problems with selection on
7922         startup, #108433, reported by Mark Finlay.)
7923
7924         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
7925         code that tried to position the cursor after the common
7926         prefix when there was one, it wasn't working, and
7927         would be hard to fix. Just always put the cursor
7928         at the end when completing.
7929
7930 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
7931
7932         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
7933         the current directory fails because of encoding
7934         conversion problems, walk up textually to parent
7935         directories until we can convert. (#113627)
7936
7937 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
7938
7939         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
7940         Remove usage of menu_shell->ignore leave which was
7941         to deal with stray events we no longer get because
7942         we do grabbing differently. Comment it as unused in
7943         the header. (#115837, Keith Bissett)
7944
7945 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
7946
7947         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
7948         Fix some places that weren't properly Xinerama-ified.
7949
7950         * gtk/gtkmenu.c: Fix problem with windows that scroll
7951         at the top of the screen.
7952
7953 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
7954
7955         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
7956         key-press-event on the entry, so input methods get access to 
7957         key presses before GtkCombo customization.
7958         (#115451, Botond Botyanszki)
7959
7960 2003-08-13  Anders Carlsson  <andersca@gnome.org>
7961
7962         * tests/testtoolbar.c: (set_important_func), (important_toggled),
7963         (create_items_list):
7964         Add an important column.
7965         
7966 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
7967
7968         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
7969         against reentrancy from ::focus-out handlers. 
7970         (#118129, Felipe Heidrich)
7971
7972 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
7973
7974         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
7975         GDK_LOCK_MASK before calling
7976         gdk_keymap_translate_keyboard_state so bindings 
7977         and accelerators are independent of the Caps-lock
7978         key. (#115384, reported by Toni Willberg)
7979
7980 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
7981
7982         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
7983         break statements (#119494, Soeren Sandmann)
7984
7985 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
7986
7987         * gtk/gtkwidget.h: Mark parent public as well; it's
7988         extensively accessed in existing code, so there is
7989         no advantage in making people use get_parent().
7990         (Tweak to #119463 fix)
7991
7992 2003-08-11  Matthias Clasen  <maclas@gmx.de>
7993
7994         Add support for EWMH "Above" and "Below" window states.  (105100,
7995         Manuel Clos)
7996         
7997         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
7998         State" demo.
7999
8000         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
8001         gtk_window_set_keep_below.
8002
8003         * gtk/gtk.def: Add gtk_window_set_keep_above and
8004         gtk_window_set_keep_below.
8005
8006         * gtk/gtkwindow.c (gtk_window_set_keep_below):
8007         (gtk_window_set_keep_above): New functions, call the corresponding
8008         gdk functions.
8009
8010         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
8011         function, sets _NET_WM_STATE_BELOW.
8012         (gdk_window_set_keep_above): New function, sets
8013         _NET_WM_STATE_ABOVE.
8014
8015         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
8016         gdk_window_set_keep_below.
8017
8018         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
8019         GDK_WINDOW_STATE_BELOW.
8020
8021         * gdk/gdk.def: Add gdk_window_set_keep_above and
8022         gdk_window_set_keep_below.
8023
8024         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
8025         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
8026         xmlcatalog in PATH.  (#119115)
8027
8028 2003-08-10  Matthias Clasen  <maclas@gmx.de>
8029
8030         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
8031         public.  (#119463)
8032
8033 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
8034
8035         * gdk/gdkevents.h:
8036         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
8037         docs on GdkFilterFunc and GdkFilterReturn.
8038
8039 2003-08-09  Matthias Clasen  <maclas@gmx.de>
8040
8041         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
8042         to let the mouse wheels select the month. Scrolling down
8043         moves forward in time. (#53134, Abigail Brady) 
8044
8045         * gtk/gtkcalendar.c: Complete the RTL flipping support for
8046         GtkCalendar, make it possible to flip the headings using the
8047         "magic translated string" technique.  Translators, note the
8048         comment in gtk_calendar_init() explaining this.  (#102416)
8049
8050         * gtk/gtkcalendar.c: Get the information about the first day of
8051         the week from the locale using another instance of the "magic
8052         translated string" technique.  Ignore the display option
8053         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
8054
8055         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
8056         date is dragged as text, formatted via strftime %x. Text drops are
8057         accepted if g_date_set_parse() can make sense of the text. A
8058         dedicated data format for date DND has not been introduced yet,
8059         since there didn't seem to be sufficient consensus on such a
8060         format on xdg-list.  (#117297)
8061         
8062 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8063
8064         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8065         Fix a segfault.  (#115284, Jan Kratochvil)
8066
8067 2003-08-08  Tor Lillqvist  <tml@iki.fi>
8068
8069         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8070         coordinates for events that have such. Print coordinates for enter
8071         and leave events.
8072
8073         (gdk_event_translate): Don't use event uninitialixed in the
8074         return_exposes branch of the WM_PAINT handler.
8075
8076         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8077         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
8078         Must offset top-level window coordinates here, too.
8079
8080 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8081
8082         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8083         when maximized or fullscreen.
8084
8085 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8086
8087         * gdk/win32/gdkinput-win32.h
8088         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8089         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8090         used.
8091
8092         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8093         accordingly, in fact an uninitialised variable was dereferenced.
8094         
8095
8096         [Win32] Add support for multiple monitors. 
8097         
8098         * gdk/win32/gdkprivate-win32.h
8099         * gdk/win32/gdkglobals-win32.c: New global variables for
8100         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8101         _gdk_offset_x and _gdk_offset_y.
8102         
8103         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8104         functions, enumeration functions passed to EnumDisplayMonitors().
8105
8106         (gdk_display_open): If the EnumDisplayMonitors() and
8107         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8108         if to find out monitor info.
8109
8110         Calculate the offset between Win32 coordinates (relative to the
8111         primary monitor's origin (and thus negative on monitors to the
8112         left of or above it), and GDK's (visible coordinates should be
8113         non-negative).
8114         
8115         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8116         gdk_screen_get_monitor_geometry): Use information collected above.
8117
8118         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8119         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8120
8121         (gdk_window_get_geometry, gdk_window_get_origin,
8122         gdk_window_get_frame_extents): For top-level windows, add
8123         _gdk_offset_{x,y} to GDK root window coordinates
8124
8125         Still need to handle multiple monitors in
8126         gdk_window_fullscreen(). Probably should make the window
8127         fullscreen on the monitor where the cursor is?
8128
8129         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8130         root window coordinates in GdkEvents.
8131
8132         
8133         [Win32] Fix geometry hint handling. Add support for resize
8134         increment and base size, and aspect ratio geometry hints. The
8135         "gridded geometry" test in testgtk now works beautifully.
8136
8137         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8138         Turns out this function shouldn't actually ever modify the
8139         window's size, just store the hints. (Old code kept for a while
8140         inside #if 0.)
8141
8142         (gdk_window_set_hints): Remove presumably broken code that handles
8143         the position hints, this function is obsolete anyway.
8144
8145         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8146         variables, not used.
8147
8148         (adjust_drag): New function, used to implement resize increment
8149         hints.
8150
8151         (gdk_event_translate): Handle WM_SIZING, implement resize
8152         increment and base size, and aspect ratio geometry hints here. The
8153         WM_GETMINMAXINFO handler takes care of the minimum and maximum
8154         size hints as before. Fix the WM_GETMINMAXINFO handler to take
8155         into account window decorations. No need to modify the
8156         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8157         the defaults are fine.
8158         
8159         * gdk/win32/gdkprivate-win32.h 
8160         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8161         _gdk_win32_get_adjusted_client_rect): New helper functions.
8162
8163 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8164
8165         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8166         toplevel->have_* flags before iterating over the _NET_WM_STATE 
8167         atoms.  (#119217) 
8168
8169 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
8170  
8171         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
8172         Fix a bug where on theme change, resize/redraw wasn't
8173         properly getting queued on toplevel windows. (#116346,
8174         Rajkumar Siva)
8175  
8176         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
8177         Fix bug where wrong coordinates were used for toplevel
8178         window.
8179  
8180 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
8181
8182         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8183         page_num variable (Archit Baweja)
8184
8185 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8186
8187         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8188         cope with C libraries with crippled locale support.  (#115293)
8189
8190 2003-08-07  Hans Breuer  <hans@breuer.org>
8191
8192         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8193         (only if the new window not known to Gdk) to get proper
8194         leave notification, and get rid of the wrong placed 
8195         tooltips, bug #102283
8196  
8197         (gdk_event_translate) : small code reordering to not get
8198         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
8199         menus, bug #117367
8200
8201 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8202
8203         * gdk/gdk.def
8204         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8205         missing function, trivially implement.
8206
8207 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8208
8209         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
8210         rendering.  (#118646, Charles Kerr) 
8211
8212 2003-08-06  Hans Breuer  <hans@breuer.org>
8213
8214         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8215         initialize bits to 0 (probably default on NT)
8216
8217         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8218         now it works as intended ;-)
8219
8220 2003-08-04  Hans Breuer  <hans@breuer.org>
8221
8222         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8223         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8224
8225         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8226         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8227
8228         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8229         against all expectations it is basically ony a call with WM_SETICON
8230         needed (the visual effect is there, though colors or mask are
8231         still somewhat wrong).
8232         * gdk/win32/gdkwindow-win32.h : place to store the HICON
8233
8234         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8235         pixel drawing as it was fixed at 1999-08-23
8236
8237         gtk/gtk.def : updated
8238
8239 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
8240
8241         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
8242         Add a missing break. (#119156, Callum McKenzie)
8243
8244 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8245
8246         * gtk/gtkmenu.c (gtk_menu_position): New positioning
8247         algorithm.(#116649)
8248
8249 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8250
8251         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8252         property
8253         
8254         * gtk/gtkradiotoolbutton.c
8255         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8256
8257         * gtk/gtkradiotoolbutton.c
8258         (gtk_radio_tool_button_new_with_stock_from_widget): make this
8259         function take a stock_id.
8260
8261         * gtk/toolbar: documentation
8262
8263 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
8264
8265         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
8266         Fix problem where use_xshm was getting set wrong if
8267         MIT_SHM wasn't found. (George Lebel)
8268
8269 2003-08-04  Tor Lillqvist  <tml@iki.fi
8270
8271         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8272         actually use the passed-in filter list. The function also needs a
8273         GdkWindow parameter, as filter functions expect
8274         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8275
8276 2003-08-03  Matthias Clasen  <maclas@gmx.de>
8277
8278         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
8279         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8280         the term "virtual screen".  (#119030, Tor Lillqvist)
8281
8282 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8283
8284         * tests/testtext.c (test_init): 
8285         * tests/testgtk.c (test_init): 
8286         * tests/testdnd.c (test_init): 
8287         * demos/pixbuf-init.c (pixbuf_init): 
8288         * demos/gtk-demo/main.c (main): Use g_setenv().
8289
8290         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8291         g_unsetenv(). 
8292
8293 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
8294
8295         * configure.in: Requires glib-2.3.0, pango-1.2.0.
8296
8297         * configure.in: Require Xft version 2,
8298         remove code for handling older versions of pango and Xft.
8299         Many miscellaneous improvements to X checks
8300
8301         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
8302         a library to a variable, avoiding dups.
8303
8304         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
8305         Always load "fixed"
8306
8307         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8308         for pangox.
8309
8310 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8311
8312         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
8313         (palette_drop_handle): 
8314         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
8315         drops with the wrong format, since the KDE color chooser incorrectly
8316         drops application/x-color with format 8.  (#118810)
8317
8318         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
8319         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
8320         Accept drops with the wrong format, since the KDE color chooser 
8321         incorrectly drops application/x-color with format 8.  (#118810)
8322
8323 2003-08-02  Tor Lillqvist  <tml@iki.fi>
8324
8325         Fix gdk/win32 window geometry handling again. The window position
8326         in a GDK_CONFIGURE event should be that of the client area, not of
8327         the window decorations. (I was confused by the term "window
8328         border" in X11. It does *not* mean the window manager
8329         decorations. There are no X11-style window borders in Win32.)
8330         Also, this time do take the geometry hints into account
8331         appropriately when moving windows. Now testgtk's gravity test's
8332         move buttons work OK. There are stil problems with taking gravity
8333         into account when showing a hidden window.
8334
8335         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8336         instead of separate fields.
8337         
8338         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8339         adjust for decorations.
8340
8341         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8342         adjust_for_gravity_hints): New functions.
8343         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8344         above functions, take geometry hints into account.
8345         (gdk_window_set_geometry_hints): Size hints specicy client area,
8346         not including decorations.
8347
8348 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
8349
8350         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8351         return an absolute path (#115590), fix a problem where
8352         you could crash the file selector with a looong name
8353         by returning a newly allocated buffer.
8354
8355 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
8356
8357         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8358         bug in rarely or never hit code path (#118071,
8359         Tor Lillqvist)
8360
8361 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
8362
8363         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
8364         If the check for missing depths, try actually creating pixmaps
8365         of the depths to deal with Xinerama not reporting
8366         all the depths it should. (#115822)
8367
8368 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
8369
8370         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8371         forward KeyRelease events as well as KeyPress events.
8372         (#115597)
8373
8374 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
8375  
8376         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8377         if argc is 0 as well, instead of leaving it unset.
8378         (#116023, Michael Meeks)
8379  
8380 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8381
8382         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8383         default to TRUE; ignore the property when api_mode != NEW_API
8384
8385 2003-07-31  Matthias Clasen  <maclas@gmx.de>
8386
8387         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8388         to icon, to pacify gtk-doc.
8389
8390         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
8391         example. 
8392
8393 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8394
8395         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8396
8397 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8398
8399         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8400         overflow_item field.
8401
8402 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8403
8404         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8405         an internal function
8406
8407         * gtk/gtktoolitem.h: remove unused declaration of
8408         _gtk_tool_item_get_drag_window().
8409
8410 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8411
8412         * gtk/gtktoolbutton.[ch]:
8413         (gtk_tool_button_new): swap icon_widget and label arguments to
8414         match BonoboUIToolbarButton.
8415
8416         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8417
8418 2003-07-30  Matthias Clasen  <maclas@gmx.de>
8419
8420         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8421         signal docs. 
8422
8423 2003-07-29  Tor Lillqvist  <tml@iki.fi>
8424
8425         Fix for #108007, #112402, #117042: There was confusion in
8426         gdk/win32 at various places whether a window position refers to
8427         the decoration position or the client area position. Also whether
8428         window size includes decorations or not.
8429         
8430         The correct interpretation apparently is that in GDK (like in
8431         X11), a top-level window position means the decoration's position,
8432         but size means the window's inner size (client area size). In the
8433         Win32 API, the window size usually includes the decorations,
8434         though.
8435         
8436         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
8437         #ifdef G_ENABLE_DEBUG.
8438         (handle_configure_event): New function, generates GDK_CONFIGURE
8439         events from WM_SIZE and WM_MOVE messages. Even if no event is
8440         generated because of the event mask, still set the private
8441         position and size fields. Calculate position and size correctly.
8442         (gdk_event_translate): Call handle_configure_event().
8443
8444         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
8445
8446         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
8447         macros. Cosmetic debugging output changes.
8448         (SafeAdjustWindowRectEx): Remove. If an application wants to
8449         locate a window outside of the screen, it's not GDK's business to
8450         prevent it. And anyway, with multiple monitors, negative
8451         coordinates are perfectly normal.
8452         (gdk_window_new): Adjust the window size for decorations after
8453         _gdk_window_init_position() has done its job. (But the big window
8454         code currently is presumably broken on Win32 anyway.)
8455         (gdk_window_move): The position passed in is supposed to be that
8456         of the window border, so don't need to adjust for decorations.
8457         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
8458
8459 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8460
8461         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
8462         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
8463         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
8464         gtk_toolbar_append_space, gtk_toolbar_insert_item,
8465         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
8466         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
8467         gtk_toolbar_new, gtk_toolbar_prepend_item):
8468
8469         Move documentation inline from template files.
8470
8471         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
8472         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
8473         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
8474         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
8475         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
8476         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
8477         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
8478
8479         Copy documentation from stable that was added after the EggToolbar
8480         branched.
8481
8482         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
8483
8484 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8485
8486         * gtk+/docs/: Commit autogenerated changes, so patches will make
8487         sense.
8488
8489 2003-07-27  Tor Lillqvist  <tml@iki.fi>
8490
8491         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
8492         the keyboard state returned by GetKeyboardState() doesn't
8493         distinguish between the left and right Control and Alt keys. Thus
8494         we cannot detect AltGr (which is supposed to be left Control +
8495         right Alt) the same way as on NT-based systems, but have to accept
8496         either Control + either Alt as AltGr.
8497
8498 2003-07-27  Matthias Clasen  <maclas@gmx.de>
8499
8500         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8501         Fix function name in warning message.  (#118156, Tim-Philipp
8502         Mller)
8503
8504         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
8505         is-expander and is-expanded are boolean properties, not ints.
8506         (#118359, Josh Parsons)
8507
8508 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8509
8510         * gtk/gtkimagemenuitem.c
8511         (gtk_image_menu_item_toggle_size_request): don't request
8512         toggle_space when the image width is 0.
8513
8514 2003-07-25  Tor Lillqvist  <tml@iki.fi>
8515
8516         * gdk/win32/gdkprivate-win32.h
8517         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
8518         and _gdk_keyboard_has_altgr.
8519         
8520         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
8521         ones detailled here.
8522
8523         Code that has been ifdeffed out for a long time removed. Remove
8524         some really old doc comments that were left behind for some public
8525         functions, the official ones are in the X11 backend anyway. Change
8526         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
8527         multi-line boolean expressions to have the operators at ends of
8528         lines.
8529
8530         As mouse capture with SetCapture() indeed seems to work OK, no
8531         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
8532
8533         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
8534         needed at some time, and things seem to work fine now without
8535         (knock on wood).
8536
8537         Ifdef out the search for some Latin locale keyboard layout being
8538         loaded. Not used currently, but might be needed after all, if we
8539         decide that we want to be able to generate ASCII control character
8540         events with a non-Latin keyboard.
8541
8542         (assign_object): New helper function, handles the g_object_ref()
8543         and unref() calls when assigning GObject pointers.
8544                 
8545         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
8546         enter event when the pointer has moved to an ancestor window. Was
8547         left out by mistake.
8548
8549         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
8550
8551         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
8552         functionality, using ClipCursor().
8553                 
8554         (find_window_for_mouse_event): Splice part of code into new
8555         function find_real_window_for_grabbed_mouse_event().
8556
8557         (fixup_event, append_event, apply_filters): New functions, code
8558         refactored out from elsewhere.
8559
8560         (synthesize_enter_or_leave_event, synthesize_leave_event,
8561         synthesize_enter_event,
8562         synthesize_leave_events,synthesize_enter_events): Also take a
8563         GdkCrossingMode parameter, in preparation to generating
8564         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
8565
8566         (fixup_event, append_event, fill_key_event_string): New functions,
8567         code refactoring.
8568
8569         (vk_from_char, build_keypress_event, build_keyrelease_event):
8570         Removed as part of dropping WM_CHAR handling.
8571
8572         (build_key_event_state,gdk_event_translate): Call
8573         GetKeyboardState(), once, for each keyboard message, instead of
8574         several calls to GetKeyState() here and there.
8575
8576         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
8577         at it, do some major refactoring, and some fixes for potential
8578         problems noticed while going through the code.
8579
8580         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
8581         WM_KEYUP. Don't need the state variables related to whether to
8582         wait for WM_CHAR or not, and whether the current key is
8583         AltGr. Remove lots of complexity. Thus don't need the
8584         use_ime_composition flag.
8585
8586         Not handling WM_CHAR means dead key handling will have to be taken
8587         care of by GTK, but that seems to work fine, so no worry.
8588
8589         Another side-effect is that Alt+keypad digits don't work any
8590         longer, but it's better to learn to use GTK's ISO14755 support is
8591         anyway.
8592
8593         Be more careful in checking whether AltGr is involved. Only
8594         attempt to handle it if the keyboard actually has it. And
8595         explicitly check for *left* Control plus *right* Alt being
8596         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
8597         chars.
8598
8599         Handle keys using similar code as in the X11 backend. As we have
8600         built a keymap in gdkkeys-win32.c anyway, use it by calling
8601         gdk_keymap_translate_keyboard_state() to look up the keysym from
8602         the virtual key code and keyboard state. Build the key event
8603         string in exactly the same way as the X11 backend.
8604
8605         If an IME is being used, don't generate GDK events for keys
8606         between receiving WM_IME_STARTCOMPOSITION and
8607         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
8608         
8609         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
8610         the IME, not just the first one.
8611
8612         gdk_event_translate() is still quite complex, could split the
8613         message handler cases out into separate functions.
8614
8615         On mouse events, when the mouse is grabbed, use
8616         find_real_window_for_grabbed_mouse_event() in order to be able to
8617         generate correct crossing events.
8618         
8619         No longer take a pre-allocated GdkEvent as parameter. Instead,
8620         allocate events as needed and append them to the queue. (This is
8621         different from how gdk_event_translate() in the X11 backend
8622         works.) This change made the code much clearer, especially in the
8623         cases where we have to generate several GDK events for one Windows
8624         message.  Return FALSE if DefWindowProc() should be called, TRUE
8625         if not. If DefWindowProc() should not be called, also return the
8626         value to be returned from the window procedure.
8627
8628         (Previously, the interaction with gdk_event_translate()'s caller
8629         was much more complex, when we had to indicate whether the
8630         already-queued event should be left in the queue or removed, and
8631         in addition also had to indicate whether to call DefWindowProc()
8632         or not, and what value to return from the window procedure if
8633         not.)
8634
8635         Don't use a separate "private" variable required to be pointing to
8636         the GdkWindowObject of the "window" variable at all times. Just
8637         use casts, even if looks a bit uglier.
8638
8639         Notice destroyed windows as early as possible, and break out of
8640         the messsage switch.
8641
8642         Use _gdk_pointer_root as current_window when the pointer is
8643         outside GDK's top-level windows.
8644         
8645         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
8646         appropriate, based on ImmIsIME().
8647         
8648         (gdk_event_translate, gdk_event_send_client_message_for_display,
8649         gdk_screen_broadcast_client_message): Implement client messages.
8650         Use a registered Windows message to pass GDK client messages. Note
8651         that the amount of user data is restricted to four bytes, as it is
8652         carried in the LPARAM. (The WPARAM is used for the message type
8653         "atom".)
8654         
8655         (real_window_procedure): Adapt for new gdk_event_translate()
8656         interface.
8657
8658         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
8659         _gdk_input_locale_is_ime initially.
8660
8661         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
8662         of g_colormap_ref()/unref().
8663
8664         (gdk_window_new): Made code a bit more like the X11 one, pretend
8665         to handle screens (although we just have one for now).
8666
8667         * gdk/x11/gdkevents-x11.c
8668         (gdk_event_send_client_message_for_display,
8669         gdk_screen_broadcast_client_message): Document the user data
8670         limitation on Win32.
8671
8672         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
8673         and leave notify detail output.
8674
8675         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
8676         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
8677         for those, so that the GtkIMContextCimple compose tables will
8678         work. Deduce if the keyboard layout has the AltGr key, and set the
8679         above flag accordingly.
8680
8681 2003-07-26  Matthias Clasen  <maclas@gmx.de>
8682
8683         * gtk/gtkwidget.c: Document DND signals.
8684
8685 2003-07-24  Matthias Clasen  <maclas@gmx.de>
8686
8687         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
8688         insensitive when editing isn't possible.  (#118150)
8689
8690 2003-07-23  Matthias Clasen  <maclas@gmx.de>
8691
8692         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
8693         spinbutton wrap.  (#118097, John Darrington)
8694
8695         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
8696
8697 2003-07-20  Hans Breuer  <hans@breuer.org>
8698
8699         * makefile.msc : new file to build it all
8700         * Makefile.am : ... added to EXTRA_DIST
8701
8702         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
8703           gtk/makefile.msc.in tests/makefile.msc : updated
8704
8705         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
8706         functions
8707
8708         * gtk/gtkbbox.c : use g_return_val_if_fail() if
8709         there is a value to return
8710
8711         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
8712         static correctness
8713
8714         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
8715         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
8716
8717         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
8718
8719         * gtk/gtkimmulticontext.c : use gtkprivate.h
8720
8721         * gtk/stock-icons/stock_color_picker_25.png
8722           gtk/stock-icons/stock_jump_to_rtl_16.png
8723           gtk/stock-icons/stock_jump_to_rtl_24.png
8724           gtk/stock-icons/stock_redo_rtl_16.png
8725           gtk/stock-icons/stock_redo_rtl_24.png
8726           gtk/stock-icons/stock_undelete_rtl_16.png
8727           gtk/stock-icons/stock_undelete_rtl_24.png
8728           gtk/stock-icons/stock_undo_rtl_16.png :
8729           gtk/stock-icons/stock_undo_rtl_24.png :
8730         readded as binary
8731
8732 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8733
8734         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
8735         leftover request of {xy}thickness
8736
8737 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8738
8739         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
8740         attempt to add a NULL icon to the box.
8741
8742 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8743
8744         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
8745         on focus in/out.
8746
8747 2003-07-19  Matthias Clasen  <maclas@gmx.de>
8748
8749         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
8750         * gtk/gtkiconfactory.c (get_default_icons): Add
8751         stock_dialog_authentication_48.  (#65765) 
8752         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
8753         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
8754
8755         * gtk/gtkbbox.h: 
8756         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
8757         function. (#64562) 
8758
8759 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8760
8761         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
8762         declaration
8763
8764         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
8765         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
8766         instead of full draws.
8767
8768 2003-07-18  Matthias Clasen  <maclas@gmx.de>
8769
8770         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
8771
8772         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
8773         signal, move_viewport. 
8774         (gtk_text_view_move_viewport): New function which implements the
8775         move_viewport functionality. 
8776         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
8777         the viewport. (#78669) 
8778
8779         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
8780         move_viewport argument. 
8781
8782         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
8783         property.  (#111779) 
8784
8785         * gtk/gtkwindow.h: 
8786         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
8787
8788         * gtk/gtkmessagedialog.h:
8789         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
8790         (#65501, Sebastian Rittau)
8791
8792 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8793
8794         * gtk/gtktextview.c (changed_handler): use
8795         gtk_widget_queue_resize_noredraw().
8796
8797 2003-07-16  Jody Goldberg <jody@gnome.org>
8798
8799         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
8800
8801 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8802
8803         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
8804         API. 
8805
8806 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8807
8808         By popular request give toolbuttons a border.
8809         
8810         * gtk/gtktoolitem.c
8811         (gtk_tool_item_size_allocate):
8812         (gtk_tool_item_size_request): don't request and allocate a border
8813         around the child
8814
8815         * gtk/gtktoolbutton.c 
8816         (gtk_tool_button_size_allocate):
8817         (gtk_tool_button_size_request): remove these functions
8818
8819         * gtk/gtktoolbar.c 
8820         (gtk_toolbar_size_request):
8821         (gtk_toolbar_size_allocate): request and allocate a border if we
8822         have a shadow.
8823
8824 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
8825
8826         Merged from stable.
8827
8828         Fixes issues pointed out by Morten Welinder in #115140.
8829
8830         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
8831         (do_validate_rows): update validated_area with a logic OR instead
8832         of a bitwise OR,
8833         (validate_rows_handler): make the if statement match the one in
8834         validate_rows(), so we don't leak the timeout.
8835
8836 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
8837
8838         Merged from stable.
8839
8840         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
8841         should only grab focus back if the "cell_editable" widget still
8842         has focus. (Fixes #110104, testcase provided by Marco Pesenti
8843         Gritti).
8844
8845 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
8846
8847         Merged from stable.
8848
8849         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
8850         Don't set attr.event_mask twice, those things were meant to be
8851         ORred. (#115139, pointed out by Morten Welinder).
8852
8853 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
8854
8855         Merged from stable.
8856
8857         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
8858         if needed. (Fixes #115869, reported by Michael Natterer).
8859
8860 2003-07-15  Matthias Clasen  <maclas@gmx.de>
8861
8862         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
8863         Fight against gtk-doc stupidity.
8864
8865 2003-07-13  Matthias Clasen  <maclas@gmx.de>
8866
8867         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
8868         targets, to pacify gtk-doc.
8869
8870 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8871
8872         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
8873         label_text, label_widget and icon_widget. (#117312, 
8874         Christian Persch)
8875         
8876 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8877
8878         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
8879         "horizontal-offset" and "vertical-offset" that determines the
8880         position of the menu when it is a submenu. 
8881
8882         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
8883         submenus according to new vertical- and horizontal-offset
8884         properties.
8885
8886 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
8887
8888         Merged from stable.
8889
8890         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
8891         case drags to "0", scroll to the top after dropping. (Fixes #94968,
8892         reported by Alp Toker).
8893
8894 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
8895
8896         Merged from stable.
8897
8898         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
8899         code (#115784, Owen Taylor).
8900
8901 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
8902
8903         Merged from stable.
8904
8905         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
8906         free the old text and extra_attrs *after* we parsed the new
8907         markup string. (Fixes #114485, reported by Owen Taylor).
8908
8909 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
8910
8911         Merged from stable.
8912
8913         Fixes #113904, testcase provided by Rene Seindal.
8914
8915         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
8916         pressed_button to -1 when a row has been activated,
8917         (gtk_tree_view_motion_bin_window): only start a drag if there's
8918         a button being pressed.
8919
8920 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
8921
8922         Merged from stable.
8923
8924         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
8925         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
8926         to avoid a roundtrip (#110272, Owen Taylor).
8927
8928 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
8929
8930         Merged from stable.
8931
8932         This patch really really fixes scrolling. Related bugs: #81627,
8933         testcase provided by Timo Sirainen, #111500, testcase provided by
8934         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
8935
8936         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
8937         which is equal to the lower border of the window means scrolling
8938         to an invisible row, always update the dy when scrolling to an
8939         invisible row, corrected area_above/below calculations for
8940         invisible rows, when walking the tree correct the size
8941         subtracted for invalidated rows, fix wrong logic in comment.
8942
8943 2003-07-11  Matthias Clasen  <maclas@gmx.de>
8944
8945         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
8946         mime_types.  (#117219, Steve Chaplin)
8947
8948 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
8949
8950         * gdk/x11/gdkevents-x11.c (get_real_window)
8951         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
8952         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
8953         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
8954         Don't assume that all events start with XEventAny - Xkb events
8955         don't! (#105745). So, only do that for core events, and for
8956         non-core events, add a system for registering event types
8957         that start with XEventAny.
8958
8959         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
8960         Check to see if the result of gdk_window_lookup_for_display()
8961         is actually a window.
8962
8963 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
8964
8965         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
8966         check a silent assert, so it follows the g_free() behaviour.
8967
8968 2003-07-11  Matthias Clasen  <maclas@gmx.de>
8969
8970         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
8971         vertically.  (#109823, Joe Shaw)
8972
8973 2003-07-11  Morten Welinder  <terra@gnome.org>
8974
8975         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
8976         access error.  (#69436)
8977
8978 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
8979
8980         Landing GtkTreeModelFilter and the completion code. (Test program
8981         and documentation will follow next week).
8982
8983         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
8984         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
8985
8986         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
8987         necessary code to hook up completion.
8988
8989         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
8990         GtkCellLayout interface.
8991
8992         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
8993
8994         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
8995         source files.
8996
8997 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
8998
8999         Merge from stable.
9000
9001         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
9002         directly return from ->window_at_pointer, but set win_x and win_y
9003         first if needed. (Fixes #110166, reported by Arno Charlet).
9004
9005         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
9006         function to accept GdkDrawables and not just GdkWindows. This was
9007         already done in some other functions a while back, but this patch
9008         got lost for some reason.
9009
9010 2003-07-09  Matthias Clasen  <maclas@gmx.de>
9011
9012         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
9013         direction when sorting children.  (#116540, Soeren Sandmann)
9014
9015 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
9016
9017         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
9018         Change _gdk_x11_send_xevent_async() to 
9019         _gdk_x11_send_client_message_async() avoid using Xlib
9020         internals that are different on Solaris. 
9021         (#116917, Morten Welinder)
9022
9023 2003-07-08  Matthias Clasen  <maclas@gmx.de>
9024
9025         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
9026         (#116501, Doug Quale)
9027
9028 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9029
9030         * gtk/gtktoggletoolbutton.h: remove strange #define
9031         * gtk/gtktoolbutton.h: fix cut'n'paste error
9032         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
9033         private data
9034         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
9035         private data instead of g_new0()
9036         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
9037         instance private data
9038
9039 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9040
9041         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
9042         for INPUT_ONLY window
9043         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
9044         * gtk/gtknotebook.c (gtk_notebook_realize): same
9045         * gtk/gtkexpander.c (gtk_expander_realize): same
9046         * gtk/gtkrange.c (gtk_range_realize): same
9047
9048         Fix #116303
9049
9050 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9051
9052         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
9053         when detail is "menuitem". With the new menu look is isn't needed
9054         anymore.
9055
9056         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
9057         resize here, so that tool items will get a chance to relayout
9058         themselves based on the toolbar configuration.
9059
9060         change DEFAULT_SPACE_SIZE to 4 instead of 5
9061
9062         * gtk/gtktoolbar.c 
9063         Get rid of "!GTK_BIN (item)->child means separator". Separators
9064         are widgets in their own right
9065
9066         change DEFAULT_SPACE_SIZE to 4 instead of 5
9067         
9068         (get_space_size): remove this function
9069         (toolbar_item_is_homogeneous): new function
9070
9071         * gtk/gtkseparatortoolitem.c
9072         (gtk_separator_tool_item_size_request): new function.
9073
9074 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9075
9076         * gtk/gtktoggletoolbutton.h: use private data, add new
9077         internal function _gtk_toggle_tool_button_get_button()
9078
9079         * gtk/gtktoolbutton.h: move to private data
9080
9081         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9082         private data.
9083
9084 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9085
9086         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9087         type check, (#116947, Krasimir Angelov)
9088
9089         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9090         
9091         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9092         data. Not instance private data yet, because of bug 116921.
9093
9094         * gtk/gtktoolitem.h: new accessors:
9095                 gtk_tool_item_get_homogeneous ()
9096                 gtk_tool_item_get_expand ()
9097                 gtk_tool_item_get_pack_end ()
9098                 gtk_tool_item_get_use_drag_window ()
9099
9100 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9101
9102         * gtk/gtkcellrenderertext.c
9103         (gtk_cell_renderer_text_class_init): remove accidentally committed
9104         debugging spew
9105
9106         * gtk/gtktoolbar.c
9107         (gtk_toolbar_paint_space_line): remove this function
9108         (gtk_toolbar_expose): always propagate expose, even if the item is
9109         a separator item
9110
9111         * gtk/gtkseparatortoolitem.c
9112         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9113         (get_space_size): new function.
9114         (get_space_style): new function
9115
9116 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
9117
9118         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9119         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
9120         of GDK_POINTER_MOTION_HINT_MASK.
9121
9122         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9123         of the drag into an idle as a superior form of 
9124         expose compression.
9125
9126         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9127         creation here, so that we have an icon at the start
9128         of the drag (e.g., when retrieving the window cache
9129         information.)
9130
9131 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9132
9133         * docs/widget_geometry.txt: better drawing of GtkMenuItem
9134         * docs/widget_geometry.txt: add notes about GtkMenu
9135         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9136
9137 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9138
9139         * gtk/gtkmenu.c: add vertical_padding style property.
9140         
9141         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9142         arrow_spacing and horizontal_padding. Also center separators and
9143         make them a bit taller.
9144
9145         * gtk/*menuitem.c: use new style properties.
9146         
9147         * docs/widget_geometry.txt: Add note about GtkMenuItem
9148
9149         * gtk/gtkstyle.c 
9150         (gtk_default_draw_vline, gtk_default_draw_hline):
9151         fix +/-1 errors. 
9152
9153         (gtk_default_draw_shadow): draw a black border around menus.
9154
9155         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9156         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9157         x2 and y1, y2 respectively, not x, width and y, height).
9158
9159 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
9160
9161         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9162         all the atoms in the target list at once.
9163
9164         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9165         Local drag short-circuit.
9166
9167         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9168         local case, poke the actions in directly instead of
9169         going through xdnd_set_actions.
9170
9171         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9172         the local case.
9173
9174         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9175         XSelectInput()/add a filter if the drag is local.
9176
9177         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
9178         Simplify handling of "XdndSelection".
9179
9180         * gdk/x11/gdkevents-x11.c
9181         (gdk_event_send_client_message_to_all_recurse): Somehow,  
9182         a WM_STATE => _NET_WM_STATE change hand been made here.
9183
9184         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9185         xatom_names, not atom_names.
9186
9187         * tests/testdnd.c (target_drag_motion): Make the trashcan
9188         open again. (Got lost in deprecation cleanup.)
9189
9190 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
9191
9192         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9193         earlier, so we don't get a big pile of uncompressed
9194         motion events before the grab takes effect.
9195
9196         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
9197         gdk_window_process_all_updates() so that the area
9198         we are dragging over gets a change to redraw.
9199
9200         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
9201         gdk_window_get_position(), not gdk_window_get_origin().
9202
9203         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9204         gdkdisplay-x11.h: use XShapeQueryExtension to 
9205         avoid duplicate XQueryExtension when we actually
9206         use it. Remove unnecessary caching in GdkDisplayX11.
9207
9208 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
9209
9210         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
9211         Function to get a range of information about all the
9212         children of a window in a single pass.
9213
9214         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9215         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9216         _gdk_x11_get_window_child_info() to greatly reduce
9217         the number of roundtrips.
9218
9219 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
9220
9221         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9222         a function to XSendEvent() and call a calback on
9223         failure/success.
9224
9225         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9226         messages to the same process, use _gdk_send_xevent_async().
9227
9228 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
9229
9230         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9231         toplevel-specific pieces of GdkWindowImplX11 into
9232         a separate GdkToplevelX11 structure.
9233
9234 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
9235
9236         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9237         some leftover fields.
9238
9239 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
9240
9241         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9242         Use asynchronously _gdk_x11_set_input_focus_safe
9243         to avoid having to trap errors and XSync().
9244
9245         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9246         _gdk_x11_set_input_focus_safe() here as well.
9247
9248         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9249         Rework handling of property notifies on _NET_WM_STATE
9250         so that we ignore _NET_WM_DESKTOP notifies unless we
9251         really care.
9252
9253         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9254         XShmQueryExtension() rather than XQueryExtension() to
9255         avoid extra rountrip.
9256
9257         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9258         Remove unused call to XGetWindowAttributes()
9259         
9260         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9261         unused call to XGetKeyboardControl().
9262
9263         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9264         Add (#99571)
9265
9266         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
9267         No-op implementations of gdk_display_flush().
9268
9269         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9270         gdk_display_flush() rather than gdk_flush() to avoid
9271         XSync().
9272         
9273         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9274         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9275         so that we don't have to get the property back from the server.
9276
9277         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9278         the serial of when we map a toplevel to allow optimizing
9279         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9280
9281         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9282         XTranslateCoordinates() for override-redirect windows.
9283
9284 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
9285
9286         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9287         about setting window group after the window is mapped from docs
9288         - nothing the ICCCM forbids that.
9289
9290         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9291         Fix g_return_val_if_fail() in void return function.
9292
9293         * configure.in: Fix misplaced comma that was resulting
9294         in XShm always being disabled.
9295
9296 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9297
9298         * tests/stresstest-toolbar: remove this accidentally committed
9299         file.
9300         
9301         * tests/stresstest-toolbar.c: really add this new test
9302
9303 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9304
9305         * tests/stresstest-toolbar.c: new test for removing items
9306         
9307         * tests/testtoolbar.c: add a popup menu
9308
9309         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9310           assert widget->parent == container when the container is a
9311           toolbar.
9312
9313         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9314         simpler. Also make correct.
9315
9316         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9317         popup_context_menu a boolean handled signal.
9318
9319 2003-07-04  Tor Lillqvist  <tml@iki.fi>
9320
9321         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9322         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9323         the width and height of the bounding rectangle only after the
9324         minumum x and y have been found, and need a separate loop for
9325         it. Thanks to Bruce Hochstetler for providing a sample program
9326         exhibiting the bug.
9327
9328 2003-07-03  Tor Lillqvist  <tml@iki.fi>
9329
9330         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9331         (#116537, Peter Zelezny)
9332
9333 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9334
9335         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9336         fix warning. Assign something to old_value to quiet gcc
9337
9338         * gtk/gtkcalendar.c 
9339         (start_spinning): gtk_timeout_add->g_timeout_add
9340
9341         * gtk/gtkicontheme.c 
9342         (theme_lookup_icon): Make it compile (remove double semicolon)
9343
9344         * gtk/gtktoolbutton.c
9345         (gtk_tool_button_class_init): Long comment about properties.
9346         (gtk_tool_button_class_init): Improve text for "use_underline"
9347         property
9348         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9349         on whether the passed-in label has use_mnemonic set
9350         (gtk_tool_button_create_menu_proxy): Split image cloning out in
9351         new function. Make that function also handle image with pixbuf
9352         storage.
9353         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9354         instead of gtk_container_remove().
9355         (gtk_tool_button_construct_contents): Fix eliding bug
9356
9357         * gtk/gtktoolbar.c
9358         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9359         by Morten Welinder
9360         (gtk_toolbar_button_press): Make popup_context_menu signal provide
9361         coordinates and button number
9362
9363         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9364
9365         * tests/apple-red.png: new file
9366
9367 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
9368          
9369         * gtk/gtkicontheme.[ch]: Implement a loader for
9370         named themed icon based on from gnome-desktop library
9371         by Alex Larsson.
9372
9373         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9374         from gnome-desktop.
9375
9376         * gtk/gtkiconfactory.[ch]: Add
9377         gtk_icon_source_set/get_icon_name() to allow stock icons
9378         to be based off of named theme icons.
9379
9380         * gtk/gtkiconfactory.c: Rework sources so that the source
9381         is *either* a pixbuf, or a filename, or an icon name,
9382         instead of the pixbuf/filename mix it was before. Put a
9383         workaround for get_pixbuf() so that it can return the
9384         filename pixbuf, e.g, for render_icon().
9385
9386         * gtk/gtkiconfactory.c: Make the default setup use
9387         themed icons, and add builtin icons to the default
9388         icon theme for all the standard pixbufs, so we
9389         don't rely on actually having an icon theme on disk.
9390
9391         * gtk/gtkrc.c: Add support for @"icon-name" to specify
9392         a themed icon for a stock icon source.
9393
9394         * tests/Makefile.am test/testicontheme.c: Add a test
9395         program from gnome-desktop.
9396
9397         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9398         Net/IconThemeName / gtk-icon-theme-name setting.
9399
9400         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9401         update the icon cache serial so we don't continually
9402         think we are out-of-date.
9403
9404         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
9405         to ::direction_set that should have been to ::direction-changed
9406
9407 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
9408
9409         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9410         style to the widget.
9411
9412 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9413
9414         * gtk/gtk.h: Add new toolbar headers
9415
9416         * tests/testtoolbar.c: new file
9417
9418         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9419
9420         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9421
9422 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9423
9424         * gtk/gtktoolbar.c:
9425         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9426         inside a for loop (pointed out by Morten Welinder).
9427         (gtk_toolbar_focus_home_or_end): Minor formatting change
9428
9429         Comments from Owen:
9430
9431         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
9432         gtk_toolbar_elide_underscores instead.
9433
9434         * gtk/gtktoolbar.c: rename signal from focus_ends to
9435         focus_home_or_end.
9436         (_gtk_toolbar_elide_underscores): export this as an internal
9437         function.
9438         (gtk_toolbar_move_focus): add comment explaining difference to
9439         gtk_toolbar_focus();
9440         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
9441         TAB_BACKWARD focus the right widgets in RTL mode
9442
9443         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
9444         "label" and "icon" parameters
9445
9446         * gtk/gtktoolbutton.[ch]: remove icon_set property.
9447
9448 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9449
9450         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
9451         (116364, Morten Welinder) 
9452
9453         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
9454         corresponding dialogs.
9455
9456         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
9457         gtkcolorbutton.h.  
9458         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
9459
9460         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
9461
9462         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
9463
9464         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
9465
9466         * gtk/gtkexpander.c: Small additions to the docs. 
9467
9468 2003-07-01  Tor Lillqvist  <tml@iki.fi>
9469
9470         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
9471         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
9472
9473 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9474
9475         * configure.in: Check for Xcursor.
9476         
9477         * gdk/x11/gdkcursor-x11.c:
9478         * gdk/gdkdisplay.h: 
9479         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
9480         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
9481         gdk_display_supports_cursor_color(),
9482         gdk_display_get_default_cursor_size() and 
9483         gdk_display_get_maximal_cursor_size().  (#69436)
9484
9485 2003-06-30  Tor Lillqvist  <tml@iki.fi>
9486
9487         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
9488         callback proc for EnumWindows().
9489         (gdk_drag_find_window_for_screen): Actually take the drag_window
9490         argument into account: Instead of using WindowFromPoint(), use
9491         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
9492         M Brown, Herman Bloggs)
9493
9494         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
9495         gdk_window_ref()/unref() calls with g_object_ref()/unref().
9496         Consistently use %p format in debugging output of pointers and
9497         HANDLEs.
9498
9499 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9500
9501         * gtk/gtkexpander.h: kill some stray characters
9502         breaking the build.
9503
9504 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9505
9506         Add GtkExpander. See discussion in bug #60553.
9507
9508         * gtk/gtkexpander.[ch]: add.
9509         
9510         * gtk/Makefile.am: build gtk-expander.[ch].
9511         
9512         * docs/widget_geometry.txt: add info on the layout
9513         of GtkExpander.
9514
9515 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9516
9517         * gtkradiotoolbutton.c:         new file
9518         * gtkradiotoolbutton.h:            "
9519         * gtktoggletoolbutton.c:           "
9520         * gtktoggletoolbutton.h:           "
9521         * gtktoolbutton.c:                 "
9522         * gtktoolbutton.h:                 "
9523         * gtktoolitem.c:                   "
9524         * gtktoolitem.h:                   "
9525         * gtktoolbar.c: many changes
9526         * gtktoolbar.h: many changes
9527         * gtkseparatortoolitem.c:       new file
9528         * gtkseparatortoolitem.h           "
9529
9530         New toolbar.
9531         
9532         - Items on a toolbar are now separate widgets, instances of a
9533           subclass of GtkToolItem.
9534
9535         - Items there aren't room for on the toolbar are unmapped, and an
9536           overflow menu with a proxy menu item is added instead.
9537
9538         - The toolbar is keyboard navigatable. Press TAB to focus the
9539           first item, then use arrow keys and Ctrl TAB to move around the
9540           toolbar. TAB moves focus out of the toolbar.
9541
9542         - Bascially all of the old toolbar API is deprecated in favor of
9543           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
9544
9545         - The toolbar is backwards compatible with the old toolbar.
9546
9547 2003-06-29  Matthias Clasen  <maclas@gmx.de>
9548
9549         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
9550         from docs, some more formatting fixes. 
9551
9552 2003-06-28  Tor Lillqvist  <tml@iki.fi>
9553
9554         Fix for #111028, thanks to J. Ali Harlow, who writes:
9555         I found that the GdkPixmap->GdkImage reference really isn't
9556         important. It's only really there to have somewhere convenient to
9557         store the location of the pixel data in the pixmap and as an easy
9558         way of accessing the dimensions of that data. I have therefore put
9559         together a fix which removes this reference entirely which seems
9560         to solve the problem.
9561
9562         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
9563         Instead of a pointer to a GdkImage, keep a pointer to the pixels
9564         directly.
9565
9566         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
9567         (_gdk_win32_new_image): New function, replacing the above. Creates
9568         a GdkImage without any associated GdkPixmap.
9569         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
9570
9571         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
9572
9573         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
9574         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
9575         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
9576         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
9577         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
9578         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
9579         Corresponding changes.
9580
9581 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9582
9583         * gtk/gtktreeviewcolumn.c
9584         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
9585         and "is_expanded" if the new value is different fromt he old one.
9586
9587 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
9588
9589         * docs/faq/gtk-faq.sgml: Fix typos. Update
9590         thread example I missed yesterday.
9591
9592 2003-06-24  Matthias Clasen  <maclas@gmx.de>
9593
9594         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
9595         shadow_type. 
9596
9597         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
9598         (gtk_widget_class_list_style_properties): Use same parameter names as in  
9599         header (to silence gtk-doc).
9600
9601         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
9602
9603 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
9604
9605         * docs/faq/gtk-faq.sgml: Thread support updates
9606         from Owen. Various suggestions from Steve Chaplin.
9607
9608 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
9609
9610         * po/id.po: Updated Indonesian translation
9611
9612 2003-06-21  Tor Lillqvist  <tml@iki.fi>
9613
9614         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
9615         emulating X11's automatic grab on button down, pass owner_events
9616         as FALSE. According to the XLib spec, automatic grabs use True for
9617         owner_events when OwnerGrabButtonMask is selected, and I don't see
9618         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
9619         (find_window_for_pointer_event): Improve debugging output.
9620
9621 2003-06-17  Tor Lillqvist  <tml@iki.fi>
9622
9623         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
9624         subdirectory, where libtool 1.5 installs them.
9625
9626         * README.win32: Point to FSF's binary Win32 distribution of
9627         gettext-runtime.
9628
9629 2003-06-17  Matthias Clasen  <maclas@gmx.de>
9630
9631         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
9632         macros to check for XML catalog contents and path, borrowed from
9633         gtk-doc. 
9634         * configure.in: New option --enable-man to enable regeneration of
9635         man pages from Docbook, if the necessary tools are found.
9636
9637 2003-06-15  Matthias Clasen  <maclas@gmx.de>
9638
9639         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
9640         * gtk/gtknotebook.c (gtk_notebook_class_init): 
9641         * gtk/gtkalignment.c (gtk_alignment_class_init): 
9642         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
9643         as 2.4 additions.
9644
9645         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
9646         to the proper place, immediately before the g_signal_new() call.
9647
9648         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
9649         more obvious.  (#115122, Jeff Franks)
9650
9651 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
9652
9653         * gtk/gtkwidget.c: (event_window_is_still_viewable):
9654         Special case pixmaps. (#114880)
9655         
9656 2003-06-12  Matthias Clasen  <maclas@gmx.de>
9657
9658         * gtk/gtkwidget.c: Document child-notify and drag-data-received
9659         signals. Owen, we need to figure out where the best place for
9660         these comments in the source is. I currently put them in front of
9661         the signals enum.
9662
9663 2003-06-11  Matthias Clasen  <maclas@gmx.de>
9664
9665         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
9666
9667 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
9668
9669         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9670         silly typo fix. s/seperator/separator/. This gets rid of the
9671         assert spam when using TreeView.
9672
9673 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9674
9675         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
9676         function for XIM instantiate callback.
9677         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
9678         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
9679         actually made.
9680         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
9681         for XIM's destroy callback.
9682         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
9683         is set or not - if it's not set, call xim_info_try_im() to try to
9684         initiaize it.
9685         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
9686         filter_key_release flag of the context.
9687         * modules/input/gtkimcontextxim.c (get_ic_real): removed
9688         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
9689         code from the removed get_ic_real().
9690
9691         For XIM instantiation, destruction and re-instantiation. With
9692         this, Gtk+ apps will be able to connect or reconnect to the XIM,
9693         when it starts after the apps, or when the XIM gets lost and recover.
9694         (#113099, #107782).
9695
9696 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
9697
9698         Merged from stable.
9699
9700         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
9701         check if width is !null, not *width. Doh.
9702
9703 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
9704
9705         Merged from stable.
9706
9707         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9708         Remove the weird dx logic, get all cell_area and background_area
9709         calculations right. Not sure what was up with it before. (Fixes
9710         #110989, testcase from Vasco Alexandre da Silva Costa).
9711
9712 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9713
9714         * tests/testgtk.c: Make it compile with C89 compilers
9715
9716 2003-06-10  Matthias Clasen  <maclas@gmx.de>
9717
9718         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
9719         property "overwrite".
9720         (gtk_text_view_[gs]et_property): Handle "overwrite".
9721         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
9722         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
9723
9724 2003-06-09  Matthias Clasen  <maclas@gmx.de>
9725
9726         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
9727         properties "resize" and "shrink".
9728         (gtk_paned_[gs]et_child_property): Implementations of 
9729         GtkContainer::[gs]et_child_property.  
9730         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
9731         paned child properties instead of remove/add hacks.  (#114667, 
9732         Soeren Sandmann) 
9733
9734 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
9735
9736         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
9737         out event->window test - it wasn't needed because
9738         of the call to get_widget_coordinates().
9739
9740         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
9741         call to gtk_widget_grab_focus() when not clicking on
9742         any tabs. (Real fix for #114534)
9743
9744 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
9745
9746         * tests/testdnd.c: Use application/x-rootwindow-drop for
9747         root window drops. (#108670, Alex Larsson)
9748
9749         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
9750         Accept either application/x-rootwin-drop (what GTK+ has always used)
9751         or application/x-rootwindow-drop (what the XDND standard specifies).
9752
9753 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
9754
9755         * gtk/gtkwidget.c (event_window_still_viewable): 
9756         Before delivering an event to a widget, check that
9757         (if relevant), the event's window is still viewable.
9758         (#105642, Dennis Björklund)
9759
9760         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
9761         NULL out private->parent, since after destruction
9762         it might not be valid any more.
9763
9764         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
9765         accesses before g_return_val_if_fail(). Treat 
9766         DESTROYED windows as unmapped.
9767
9768 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
9769
9770         * gtk/gtkentry.c: Recompute unconditionally in
9771         gtk_entry_style_set, and in a new gtk_label_screen_changed().
9772         Protect the guts of recompute_idle_func() with
9773         gtk_widget_has_screen(). (#114040, Morten Welinder) 
9774         Fix FALSE/0 confusion.
9775         
9776 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9777
9778         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
9779         Fixes (#114669)
9780
9781 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
9782
9783         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
9784         set_adjustment (viewport, NULL);
9785
9786 2003-06-07  Matthias Clasen  <maclas@gmx.de>
9787
9788         * gtk/gtkiconfactory.c (get_default_icons): 
9789         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
9790         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
9791         undelete and revert.  (#96633)
9792         
9793 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
9794
9795         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
9796         refactoring of code to reduce duplication; fixes include:
9797
9798         - gtk_viewport_realize(): Position the window correct from adjustment 
9799         values. (#110737, Michael Natterer)
9800
9801         - Remove some division-by-zero checks in places where there is no 
9802         longer division. (#110737)
9803
9804         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
9805         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
9806         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
9807
9808         - Switch over to encapsulated lazy-creation for hadjustment/
9809         vadjustment; even with the CONSTRUCT property, we need this after
9810         destroy.
9811
9812         - When updating the adjustment, immediate set their values to
9813         match the the current range of the viewport, and update the 
9814         viewport position to match the value of the new adjustments. 
9815         (Part of #1165)
9816
9817 2003-06-06  Tor Lillqvist  <tml@iki.fi>
9818
9819         * gdk/win32/gdkprivate-win32.h: Fix typo.
9820
9821         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
9822         graphics_exposures and subwindow_mode, too, even if they aren't
9823         currently used.
9824
9825 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
9826
9827         Merged from stable.
9828
9829         * gtk/gtktreeview.c (do_expand_collapse),
9830         (expand_collapse_timeout), (cancel_arrow_animation): made
9831         expand_collapse_timeout a wrapper with locks around     
9832         do_expand_collapse, made cancel_arrow_animation use
9833         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
9834         Peter Bloomfield).
9835
9836 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9837
9838         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
9839         * modules/input/gtkimcontextxim.c (preedit_start_callback,
9840         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
9841         to keep preedit-[start,changed,end] signals from being called during
9842         finalization (#111861).
9843
9844 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
9845
9846         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
9847         presses that are not on the tab (#114534).
9848
9849 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
9850
9851         * demos/Makefile.am: Conditionalize dependencies for
9852         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow). 
9853         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
9854         test-inline-pixbufs.h if we don't have libpng.
9855
9856         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
9857         Add a dependency on gdk-pixbuf.loaders when not 
9858         cross-compiling, remove the dependency on gdk-pixbuf-csource
9859         when not cross compiling.
9860
9861 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
9862
9863         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
9864         gtk_window_get_geometry_info() returning NULL.
9865         (#107311, John Finlay)
9866
9867 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
9868
9869         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
9870         twice the border width from the width/height, not
9871         1x the border width. (#106336, Rodney Dawes)
9872
9873 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
9874  
9875         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
9876         If at the end of the buffer, move to the end iter -
9877         parallels behavior of move_iter_to_previous_line.
9878         (#81960, Padraig O'Briain)
9879  
9880 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
9881
9882         #80023, Yao Zhang, TOKUNAGA Hiroyuki
9883
9884         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
9885         Account for the preedit cursor offset if the iter passed
9886         in is at the same place as the insertion cursor.
9887
9888         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
9889         Encapsulate getting the insertion cursor location.
9890
9891         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
9892         Pass the real y/height to the IM context. Take 
9893         text_view->x/yoffset into account.
9894
9895 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
9896
9897         * gtk/gtktextview.[ch]: Never scroll on focus in
9898         (#81893, Patch from Paolo Maggi)
9899
9900         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
9901         Scroll to the current cursor location before handling
9902         the action, in case the user just tabbed in
9903         and the cursor is offscreen.
9904
9905 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
9906          
9907          #107883, Gustavo Giráldez
9908
9909         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
9910         Split out the case where we know we changed, and 
9911         already dealt with our cached line being invalidated
9912         from external calls to gtk_text_layout_changed.
9913
9914         * gtk/gtktextlayout.c (gtk_text_layout_changed):
9915         Check if the invalidate yrange intersects our
9916         cached line, and clear it if necessary.
9917
9918 2003-06-05  Tor Lillqvist  <tml@iki.fi>
9919
9920         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
9921         filters.
9922
9923 2003-06-05  Matthias Clasen  <maclas@gmx.de>
9924
9925         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
9926         (gtk_text_view_grab_notify): 
9927         (gtk_text_view_state_changed): Implement these
9928         to unobscure cursor when grab shadowed or insensitised.
9929         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
9930         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
9931         gtk_text_view_motion_event().
9932         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
9933
9934         * gtk/gtktextview.c (select_all): New keybinding signal for
9935         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
9936
9937         * gtk/gtkcalendar.c (calendar_timer): 
9938         (stop_spinning): Replace deprecated gtk_timeout_* functions by
9939         their GLib counterparts.  (#114429)
9940
9941         * gtk/gtktreestore.c (gtk_tree_store_new): 
9942         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
9943         types.
9944
9945 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
9946
9947         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
9948         When drawing underlines, join up adjacent runs
9949         where possible, so we don't get changes in 
9950         shaper/font/etc. breaking underlines. (#103662,
9951         Kang Jeong-Hee)
9952
9953 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
9954
9955         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
9956         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
9957         improve the speed of inserting rows into an already sorted list,
9958         #109292
9959
9960 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
9961
9962         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
9963         track of when we have a clip mask set for the GC,
9964         and when we unset it, or switch to a clip region,
9965         immediately call XSetClipMask (..., None) to avoid
9966         Xlib caching stale data. (#111806)
9967
9968         * gtk/gtktextdisplay.c: Don't set a clip mask
9969         when drawing alpha pixmaps; it isn't necessary any more.
9970         (#111806)
9971
9972 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
9973
9974         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
9975         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
9976         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
9977         (#92548, Tim Evans)
9978
9979         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
9980         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
9981         Use state_type = STATE_INSENSITIVE for insensitive menu items.
9982
9983 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
9984
9985         Merged from stable.
9986
9987         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
9988         assert for get_info. (reported by Michael Natterer),
9989         (gtk_tree_view_expand_all_emission_helper),
9990         (gtk_tree_view_expand_all_helper): emit row_expanded for all
9991         expanded rows during an _expand_all operation. (Fixes #111280,
9992         reported by Benjamin Bayart).
9993
9994 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
9995
9996         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
9997         respond to pings on a root window; prevents infinite
9998         loops if we are selecting for SubstructureNotify on the
9999         root window. (#111945, Sergey V. Udaltsov)
10000
10001 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
10002
10003         #71597, reported by Morten Welinder
10004
10005         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
10006         (Patch from Christian Petig)
10007
10008         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
10009         Major rewrite of 555 and 565 conversion routines:
10010
10011         - Move all the bit shifting into a small block of macros,
10012           eliminating much duplication of complicated arithmetic.
10013         - Get rid of 2-pixels at a time code, which was buggy,
10014           hard to maintain, caused unaligned accesses, and
10015           probably didn't actually perform any better.
10016         - Simplify cases where different data types were
10017           used for the little and big endian cases, use
10018           GUINT16_SWAP_LE_BE() where appropriate.
10019                 
10020 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
10021
10022         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
10023         bad optimization for src_rowstride == dest_stride.
10024         (Didn't consider the case where we were copying only
10025         partial widths of a wider source buffer)
10026         (#113034, reported by Hans Petter Jansson)
10027
10028 2003-06-03  Michael Natterer  <mitch@gimp.org>
10029
10030         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
10031         reenabled button_release events for xinput devices. (#113948)
10032
10033 2003-06-03  Christian Rose  <menthos@menthos.com>
10034
10035         * configure.in: Added "li" to ALL_LINGUAS.
10036
10037 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
10038
10039         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
10040         map the event window if the notebook isn't mapped. (#113980,
10041         Richard Reich)
10042
10043 2003-06-02  Sven Neumann  <sven@gimp.org>
10044
10045         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
10046
10047         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
10048
10049 2003-06-01  Matthias Clasen  <maclas@gmx.de>
10050
10051         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
10052         Since: 2.4 to the docs.
10053
10054         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
10055         an example to the docs.  (#98427)
10056
10057 2003-05-30  Murray Cumming  <murrayc@usa.net>
10058
10059         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
10060         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
10061         uses the new private data system - see g_type_class_add_private() in
10062         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10063
10064 2003-05-30  Matthias Clasen  <maclas@gmx.de>
10065         
10066         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10067         signature of gtk_notebook_draw_arrow() for Solaris builds to go
10068         through.  (#114043, Anand Subramanian)
10069
10070 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10071
10072         * modules/input/imipa.c: 
10073         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10074
10075 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10076
10077         * gtk/gtkimmodule.c (_gtk_im_module_list):
10078         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10079
10080 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10081
10082         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10083         label of default input method localizable.
10084         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
10085         use translations of input method context names
10086         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10087           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10088           modules/input/imti-er.c, modules/input/imti-et.c
10089           modules/input/imviqr.c, modules/input/imxim.c
10090         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10091         (#113850).
10092
10093 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
10094
10095         Merged from stable.
10096
10097         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10098         grab separate, the user might clear the tree in the focus-in
10099         callback. (Fixes #113086, testcase from Felipe Heidrich).
10100
10101 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
10102
10103         Merged from stable.
10104
10105         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10106         of row reference when we unset the model. Also reset
10107         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10108
10109 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
10110
10111         Merged from stable.
10112
10113         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10114         the current editing, if it exists. (Fixes #108956, reported by
10115         Michael Natterer).
10116
10117 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
10118
10119         Merged from stable.
10120
10121         * gtk/gtktreeview.c (check_selection_helper): new function,
10122         (gtk_tree_view_row_deleted): traverse the tree from the
10123         deleted node to see whether the selection changed, instead of
10124         just checking this node. (Fixes #107400, reported by 'Duncan').
10125
10126 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
10127
10128         Merged from stable.
10129
10130         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10131         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10132         instead of _maybe_begin_dragging_row, so the icon can be
10133         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10134
10135 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
10136
10137         Merged from stable.
10138
10139         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10140         cell_area x/width for the expander if needed. (Fixes #101748,
10141         reported by Dave Cook and Mariano Suarez-Alvarez).
10142
10143 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
10144
10145         Merged from stable.
10146
10147         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10148         if tree/node are still the same after _internal_select_node.
10149         (Fixes #92256, reported by edscott).
10150
10151 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
10152
10153         Fixes #75745, reported by Richard Hult. Merged from stable.
10154
10155         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10156         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10157         cursor or not.
10158
10159         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10160         if we are rendering a cursor row, and the cell the be
10161         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10162         flag (else we unset it).
10163
10164 2003-05-27  Matthias Clasen  <maclas@gmx.de>
10165
10166         * gtk/gtkwindow-decorate.c: 
10167         * gtk/gtktreeprivate.h: 
10168         * gtk/gtkdnd.c: 
10169         * gdk/win32/gdkwindow-win32.h: 
10170         * gdk/linux-fb/gdkprivate-fb.h: 
10171         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10172         unspecified signedness.  (#112919, Morten Welinder)
10173
10174         * gtk/queryimmodules.c (escape_string): 
10175         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
10176         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
10177         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
10178         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
10179         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
10180         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10181         Morten Welinder) 
10182
10183 2003-05-27  Tor Lillqvist  <tml@iki.fi>
10184
10185         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10186         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10187
10188         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10189         win32/libgdk-win32.la.
10190
10191         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10192
10193 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10194
10195         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10196         scrollbar slider length 21 instead of 7.
10197
10198 2003-05-23  Matthias Clasen  <maclas@gmx.de>
10199
10200         * gtk/gtknotebook.c: Add support for up to four scroll
10201         arrows. Control their display by new style properties
10202         "has_forward_stepper", "has_backward_stepper",
10203         "has_secondary_forward_stepper" and
10204         has_secondary_backward_stepper". (#110540)
10205
10206         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10207         click_child three bits wide, add
10208         has_{before,after}_{previous,next} fields.
10209
10210         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10211         focus out of hex_entry.  (#112665)
10212         (hex_focus_out): New signal handler for focus out of hex entry.
10213
10214 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
10215
10216         * gtk/gtkwidget.c (gtk_widget_realize): 
10217         g_return_if_fail() if
10218         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10219         (#107872, Christian Reis)
10220
10221 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10222
10223         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
10224         (gtk_file_selection_rename_file): Some keynav improvements for the
10225         "Rename File" and "Create Directory" subdialogs: Enter in entry
10226         activates default, default is "Create"/"Rename", Escape cancels
10227         dialog.  (#113110)
10228         (gtk_file_selection_set_filename): Add a hint about opening 
10229         directories.  (#113175)
10230
10231 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10232
10233         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10234         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10235         anyway.  (#113476)
10236
10237 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
10238
10239         * gtk/gtkprogress.c (gtk_progress_set_format_string,
10240         gtk_progress_set_show_text): Always queue a resize ... 
10241         we rely on the size-allocate to do the update, plus a 
10242         different format can actually change our size requisition.
10243         (#111052, Vasco Alexandre da Silva Costa)
10244
10245         * gtk/gtkprogress.c (gtk_progress_changed): Track
10246         ::changed as well as ::value_changed, and queue a
10247         resize on ::changed when necessary.
10248
10249         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
10250         Call gtk_progress_changed() here to update or 
10251         queue a resize as necessary.
10252
10253 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10254
10255         * gtk/gtkimcontextsimple.c: added composing rules of
10256         Greek accented letters, patch by Vasilis Vasaitis (#107507)
10257
10258 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10259
10260         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
10261         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10262         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10263
10264 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10265
10266         * gtk/gtkimcontextsimple.c: 
10267         code that can check the compose table for ascending order,
10268         by Vasilis Vasaitis (#104862).
10269
10270 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
10271
10272         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
10273         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
10274         to handle the case where a modifier not in the mask
10275         (like Num_Lock) changes the key value, so replace
10276         the masked state with a state/mask pair. (#106913,
10277         Olivier Ripoll)
10278
10279         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10280         in state/mask pair to _gtk_key_hash_lookup()
10281
10282 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10283
10284         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10285         fix a memory leak, free input context list (#113259).
10286
10287 2003-05-21  Matthias Clasen  <maclas@gmx.de>
10288
10289         * configure.in (all_loaders): Add pcx.
10290
10291         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
10292
10293 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
10294
10295         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10296         accept a missing gtk.immodules file, some people
10297         want to run without one. (#112406, patch from
10298         Arnaud Charlet)
10299
10300 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
10301
10302         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
10303         height/width confusion (#113370, Xan Lopez)
10304
10305 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
10306
10307         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10308         zero all unused parts of client messages (Mainly Motif DND
10309         and EWMH). Also, fix a couple places where we were putting
10310         contents into Motif DND messages that didn't belong.
10311         (#113361, EWMH problem reported by Lubos Lunak)
10312
10313         * gtk/gtkselection.c (_gtk_selection_request): Handle the
10314         case where the property type for the multiple atoms is
10315         ATOM_PAIR by doing the conversions ourselve. This is
10316         needed for Xt inter-operation.
10317
10318 2003-05-19 Arafat Medini <lumina@silverpen.de>
10319
10320         * configure.in: Added ar to ALL_LINGUAS
10321
10322 2003-05-19  Matthias Clasen  <maclas@gmx.de>
10323
10324         * gtk/gtksettings.c (gtk_rc_property_parse_border,
10325         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10326         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10327         Add docs.
10328
10329         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
10330         gtk_widget_class_install_style_property_parser): Add docs. 
10331
10332 2003-05-17  Matthias Clasen  <maclas@gmx.de>
10333
10334         * tests/prop-editor.c: Add navigation for object properties, so
10335         that you can easily edit the properties of the parent of a widget.
10336         (#113152)
10337
10338 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
10339
10340         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10341         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
10342         inconsistency and leave the old name as an aliass (#104873)
10343
10344 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
10345
10346         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10347         from Charles Schmidt to add missing notify (#108305)
10348
10349 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
10350  
10351         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10352         (#105500, Morten Welinder.)
10353  
10354 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10355
10356         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10357         instead of gumake for XNFilterEvents event mask(#110493).
10358
10359 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
10360
10361         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10362         a GObject. (#112762)
10363
10364 2003-05-08  Sven Neumann  <sven@gimp.org>
10365
10366         * configure.in: set the HAVE_X11R6 automake conditional to false
10367         if not compiling for X11.
10368
10369 2003-05-08  Matthias Clasen  <maclas@gmx.de>
10370
10371         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
10372         (gtk_calendar_get_display_options): New functions.
10373         (gtk_calendar_display_options): Depreate.  (#64567)
10374         (gtk_calendar_class_init): Add boolean properties for the display
10375         options.  (#50949)
10376
10377 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
10378
10379         Patch from James Henstridge to update to automake-1.7
10380         (#109542)
10381  
10382         * autogen.sh: update to call newer tools.
10383  
10384         * configure.in: various updates, to use M4 macros to put
10385         variables that change each release at the top.
10386         Use AC_HELP_STRING to format help strings.
10387         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10388  
10389         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
10390         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
10391         during distcheck.
10392  
10393         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10394         makefile fragment.
10395  
10396         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10397         Use BUILT_SOURCES where appropriate.
10398         Build generated files in builddir rather than srcdir.
10399         Fix uninstall and distclean targets to satisfy distcheck.
10400
10401         ===
10402
10403         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10404         built first, since we are now using BUILT_SOURCES.
10405
10406         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10407
10408         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10409         with geninclude.pl.
10410
10411         * configure.in: Update versions to 2.3.0.
10412  
10413 2003-05-06  Tor Lillqvist  <tml@iki.fi>
10414
10415         Fix for #110165 (thanks to Arnaud Charlet):
10416         
10417         * gdk/win32/gdkevents-win32.c (build_keypress_event,
10418         build_keyrelease_event): For unshifted control char, use
10419         lowercase ASCII keyval.
10420         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10421         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10422         lowercase keyval. Use build_key_event_state() here, too, instead
10423         of minor code duplication.
10424
10425 2003-05-06  Matthias Clasen  <maclas@gmx.de>
10426
10427         * tests/testmultidisplay.c: Don't include strings.h, it's not
10428         needed anymore.  (#112388)
10429
10430         * examples/menu/itemfactory.c: 
10431         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
10432         itemfactory example.
10433
10434 2003-05-05  Matthias Clasen  <maclas@gmx.de>
10435
10436         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
10437         icon type to the stock icon type.  (#111735, Dave Bordoley)
10438
10439 2003-05-05  Christian Rose  <menthos@menthos.com>
10440
10441         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
10442         Removed sp, it's replaced by sr@Latn.
10443
10444 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
10445
10446         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
10447         Gonzalo Odiard
10448
10449 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
10450
10451         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
10452         data iff the destroy func isn't NULL.
10453
10454 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
10455
10456         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
10457
10458 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
10459
10460         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
10461
10462 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
10463
10464         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
10465         of UTF-8. (#106419, Roozbeh Pournader)
10466
10467 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
10468
10469         * configure.in: Only check for XFT2 if we found pango-xft
10470         (#105692, Jon Nall)
10471
10472 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
10473
10474         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
10475         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
10476
10477 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
10478
10479         * docs/faq/gtk-faq.sgml: add note about version converage.
10480
10481 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
10482
10483         * gtk/gtksocket.c (activate_key): Fix prototype for
10484         activate_key. (#108927, Jason D. Hildebrand)
10485
10486 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
10487
10488         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
10489         Remove geninclude.pl from CVS and don't dist it either,
10490         it is generated. (#108970, Rich Kinder)
10491
10492 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
10493
10494         * gtk/gtkobject.h: Remove a couple of obsolete comments,
10495         fix another comment. (#109737, Britton Kerin)
10496
10497 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
10498
10499         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
10500         the source list, not just it's contents (Patch
10501         from Charles Kerr, #108243)
10502
10503 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
10504
10505         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
10506         from Alex Larsson fixing problem with restacking during
10507         DND. (#108671)
10508
10509 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
10510
10511         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
10512         Calling XFlush() after ungrabbing, to avoid problems if
10513         the app subsequently blocks on a long-running operation.
10514         (#106520, reported by Rajkumar Siva)
10515
10516 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
10517
10518         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
10519         SKIP_TASKBAR/SKIP_PAGER to set of properties we
10520         might set on map. (#110019, problem reported
10521         by Loban Rahman)
10522
10523 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
10524
10525         * gdk/gdkevents.c (gdk_event_copy): Fix for the
10526         case when gdk_event_copy() is called on a non-allocated
10527         event. (#109716, reported by Rich Burridge)
10528
10529 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
10530
10531         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
10532         Fix pointer arithmetic on 'void *'. (#108322)
10533
10534 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
10535
10536         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
10537         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
10538         use of XAddConnectionWatch. Remove --enable-xim config option.
10539         Should fix building on X11R6 (#110523, Albert Chin)
10540
10541 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
10542
10543         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
10544         Patch from Morten Welinder to catch Sun servers with a 
10545         broken implementation of the RENDER extension. (#108309)
10546
10547 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
10548
10549         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
10550         gdk_free_compound_text(), not g_free(). (#107643,
10551         Michael Zucchi)
10552
10553 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
10554
10555         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
10556         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
10557         wrong use of base_finalize. (#105126, Sven Neumann)
10558
10559 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
10560
10561         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
10562         '/' vs. '*' problem in aspect ration computations. (#108237)
10563
10564 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
10565
10566         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
10567         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
10568         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
10569         event, so select for both. (#108406, Egmont Koblinger)
10570
10571 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
10572
10573         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
10574         caused by not clearing the scroll_to_path.
10575
10576 2003-04-16  Matthias Clasen  <maclas@gmx.de>
10577
10578         * gtk/gtkstyle.c: Doc additions and fixes.
10579
10580         * gtk/gtktreeviewcolumn.c
10581         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
10582
10583 2003-04-14  Michael Natterer  <mitch@gimp.org>
10584
10585         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
10586         that the iter is not reordered to its own position. Prevents model
10587         corruption for the case that the store contains only a single item
10588         (fixes bug #108387).
10589
10590         Unrelated:
10591
10592         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
10593         new list element later so we don't leak it if we decide to return
10594         early.
10595
10596         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
10597         set selection->tree_view->priv->anchor to NULL after freeing it.
10598
10599 2003-04-13  Matthias Clasen  <maclas@gmx.de>
10600
10601         * gtk/gtktreeviewcolumn.c
10602         (gtk_tree_view_column_cell_get_position): Document. 
10603
10604         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
10605         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
10606         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
10607         these as 2.4 additions.
10608
10609 2003-04-09  Matthias Clasen  <maclas@gmx.de>
10610
10611         * INSTALL.in: Fix the real thing.
10612
10613         * INSTALL: Typo fix.
10614
10615 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
10616
10617         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
10618         after ungrabbing the server.
10619  
10620         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
10621         calls to XFlush().
10622
10623         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
10624         Use gdk_x11_display_grab/ungrab.
10625
10626         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
10627         use_xshm to TRUE so SHM gets used when present.
10628  
10629 2003-04-07  Matthias Clasen  <maclas@gmx.de>
10630
10631         * gtk/gtktextlayout.c (set_para_values): 
10632         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
10633         David Brigada)
10634
10635         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
10636         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
10637         misspellings of possessive "its".  (#110027, Doug Quale)
10638
10639 2003-04-03  Matthias Clasen  <maclas@gmx.de>
10640
10641         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
10642         current directory if it looks like the srcdir.  (#109357)
10643
10644 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10645
10646         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
10647         focus_on_click
10648
10649         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
10650         navigation not wrap around.
10651
10652 2003-04-02  Matthias Clasen  <maclas@gmx.de>
10653
10654         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
10655         Return 0 if lower == upper.  (#109155)
10656         (gtk_progress_get_current_percentage): Use
10657         gtk_progress_get_percentage_from_value().
10658
10659 2003-04-01  Matthias Clasen  <maclas@gmx.de>
10660
10661         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
10662         (#109510, Noah Levitt)
10663
10664 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
10665
10666         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
10667         members so Purify won't complain.
10668
10669         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
10670
10671 2003-03-31  Matthias Clasen  <maclas@gmx.de>
10672
10673         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
10674         gtk_window_[gs]et_role().  (#93904)
10675
10676 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
10677
10678         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
10679         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
10680
10681 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10682
10683         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
10684         of labels back to normal before reparenting back.  (#102387)
10685
10686         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
10687         a default window title to match the GtkFontSelectionDialog behavior.
10688  
10689         (gtk_color_selection_dialog_new): Don't call
10690         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
10691
10692 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10693
10694         Fix for bug #78499:
10695         
10696         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
10697         select_lines. 
10698
10699         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
10700         select_lines on double/triple click.
10701
10702         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
10703         select-by-words and select-by-lines behaviour.
10704
10705         Fixes for bug #56248:
10706         
10707         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
10708         timer and queue a redraw. 
10709         (gtk_notebook_grab_notify): 
10710         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
10711         if necessary.   
10712         (gtk_notebook_button_release): Use stop_scrolling().
10713         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
10714
10715         * gtk/gtkrange.c (stop_scrolling): New function to remove the
10716         grab, remove the timer and queue a redraw.
10717         (gtk_range_grab_notify): 
10718         (gtk_range_state_changed): New functions to call stop_scrolling() 
10719         if necessary.   
10720         (gtk_range_button_release): Use stop_scrolling().
10721
10722         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
10723         (gtk_spin_button_state_changed): Redraw after stop_spinning.
10724         (gtk_spin_button_stop_spinning): Reset click_child to correct the
10725         drawing of the arrows.
10726         (gtk_spin_button_button_release): Use a local copy of click_child,
10727         since stop_spinning() resets it.
10728
10729         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
10730         C-A-PgDown as alternatives to the A-less variants. (This slipped
10731         in accidentally some time ago).  (#97860)
10732
10733 2003-03-26  Sven Neumann  <sven@gimp.org>
10734
10735         * gtk/gtktreeview.c: rewrote the function that does node and arrow
10736         prelighting, queue all redraws from here (Fixes bug #108792).
10737
10738 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
10739
10740         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
10741         Fixes bug #108778.
10742
10743 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
10744
10745         * configure.in: Added "ml" in ALL_LINGUAS
10746
10747 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
10748
10749         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
10750         G_DISABLE_DEPRECATED.
10751
10752 2003-03-14  Tor Lillqvist  <tml@iki.fi>
10753
10754         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
10755         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
10756         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
10757         multiple monitors can have negative coordinates on some of the
10758         monitors. (partial fix for #99496, Arnaud Charlet)
10759
10760 2003-03-15  Matthias Clasen  <maclas@gmx.de>
10761
10762         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
10763
10764 2003-03-13  Sven Neumann  <sven@gimp.org>
10765
10766         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
10767         removed redundant calls to g_object_notify().
10768         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
10769         bug #108236.
10770
10771         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
10772         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
10773         functions return an integer value).
10774
10775 2003-03-13  Tor Lillqvist  <tml@iki.fi>
10776
10777         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10778         WM_MOUSEMOVE, the test whether we have actually moved (and thus
10779         shouldn't generate an GDK event) moved after the call to
10780         propagate() and translate_mouse_coords(). Otherwise we were
10781         testing wrong values. (#108115, Allin Cottrell)
10782         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
10783         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
10784
10785         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
10786         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
10787         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
10788         cursor right away with SetCursor(), as we won't get any
10789         WM_SETCURSOR messages while the mouse is captured. 
10790         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
10791         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
10792
10793         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10794         WM_SYSCHAR, return FALSE from the window procedure to prevent the
10795         DefWindowProc from being called. Otherwise Windows would beep,
10796         thinking you are tring to access a (nonexistent) menu when you
10797         press Alt-something. Don't do this for Alt-Space,
10798         though. (#107454, Martyn Russell)
10799
10800         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
10801
10802 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
10803
10804         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
10805         [left/right] expands/collapses the tree, #108092
10806
10807 2003-03-09  Tor Lillqvist  <tml@iki.fi>
10808
10809         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
10810         compensate for LineTo() not drawing the end pixel. It causes more
10811         harm than benefits, see bug #81895.
10812
10813 2003-03-08  Matthias Clasen  <maclas@gmx.de>
10814
10815         Bug #107664 continued:
10816
10817         * gdk/x11/gdkinputprivate.h: 
10818         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
10819         (_gdk_input_other_event): Return gboolean.
10820         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
10821         (_gdk_input_other_event): Return gboolean.
10822         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
10823
10824         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
10825         gboolean, remove pointless call to _gdk_input_window_none_event.
10826
10827         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
10828         (_gdk_input_window_none_event): Remove.
10829
10830         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
10831         (_gtk_text_iter_get_any_segment): 
10832         (_gtk_text_iter_get_segment_byte): 
10833         (_gtk_text_iter_get_segment_char): 
10834         (_gtk_text_iter_get_text_line): 
10835         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
10836         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
10837         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
10838         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
10839         (gdk_window_get_origin): 
10840         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
10841
10842 2003-03-06  Matthias Clasen  <maclas@gmx.de>
10843
10844         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
10845         (#107664, Morten Welinder)
10846
10847         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
10848         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
10849         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
10850         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
10851
10852         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
10853         * gtk/gtkeditable.c (gtk_editable_get_chars): 
10854         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
10855         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
10856         (#107648, Morten Welinder)Fix NULL/FALSE confusion
10857         (#107648, Morten Welinder)
10858
10859 2003-03-04  Matthias Clasen  <maclas@gmx.de>
10860
10861         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
10862
10863 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
10864
10865         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
10866         handle rtl code.  Thanks to Matthias Clasen for an initial patch
10867         to handle the RTL code.
10868
10869         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
10870
10871         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
10872
10873         * gtk/gtktreeview.c: (invalidate_column),
10874         (invalidate_last_column),
10875         (gtk_tree_view_get_real_requested_width_from_column),
10876         (gtk_tree_view_size_allocate_columns),
10877         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
10878         (gtk_tree_view_button_release_drag_column),
10879         (gtk_tree_view_update_current_reorder),
10880         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
10881         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
10882         (gtk_tree_view_get_background_xrange),
10883         (gtk_tree_view_get_arrow_xrange),
10884         (gtk_tree_view_is_expander_column),
10885         (gtk_tree_view_set_column_drag_info),
10886         (gtk_tree_view_move_cursor_left_right):
10887         Add RTL support.
10888
10889         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
10890         expand flag.
10891
10892         * gtk/gtktreeviewcolumn.c:
10893         (gtk_tree_view_column_class_init),
10894         (gtk_tree_view_column_set_property),
10895         (gtk_tree_view_column_get_property),
10896         (gtk_tree_view_column_set_expand),
10897         (gtk_tree_view_column_get_expand),
10898         (gtk_tree_view_column_cell_process_action):
10899         Add support for expand flag.  Thanks to Kristian Rietveld for an
10900         initial patch for this.
10901
10902 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
10903
10904
10905 2003-03-02  Tor Lillqvist  <tml@iki.fi>
10906
10907         * gdk/gdk.def
10908         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
10909         Gustin.
10910
10911 2003-03-01  Matthias Clasen  <maclas@gmx.de>
10912
10913         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
10914         (gtk_scrolled_window_set_hadjustment): Replace uses of
10915         gtk_object_new by g_object_new.
10916
10917 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
10918
10919         * demos/gtk-demo/main.c
10920         * demos/gtk-demo/tree_store.c
10921         * gdk/x11/gdkscreen-x11.c
10922         * gtk/gtkcellrenderertoggle.c
10923         * gtk/gtkcolorsel.c
10924         * gtk/gtkdnd.c
10925         * gtk/gtkeditable.c
10926         * gtk/gtkentry.c
10927         * gtk/gtkmenu.c
10928         * gtk/gtkmenubar.c
10929         * gtk/gtkmenuitem.c
10930         * gtk/gtkmenushell.c
10931         * gtk/gtkrc.c
10932         * gtk/gtksettings.c
10933         * gtk/gtkstyle.c
10934         * gtk/gtktextbuffer.c
10935         * gtk/gtktextview.c
10936         * gtk/gtktreeviewcolumn.c
10937         * tests/testgtk.c
10938         * tests/testtext.c
10939         * tests/testtreeedit.c
10940         * tests/testtreefocus.c
10941         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
10942
10943 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
10944
10945         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
10946         code.
10947
10948 2003-02-24  Sven Neumann  <sven@gimp.org>
10949
10950         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
10951
10952 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
10953
10954         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
10955
10956 2003-02-20  Matthias Clasen  <maclas@gmx.de>
10957
10958         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
10959         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
10960
10961         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
10962         (gtk_text_view_update_adjustments): Make sure cursor stays visible
10963         during horizontal scrolling.  (#75270)
10964
10965 2003-02-19  Matthias Clasen  <maclas@gmx.de>
10966
10967         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
10968         counterparts. (#106532)
10969
10970         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
10971         keys_changed virtual function with the keys_changed signal.
10972         (#106512, Jeff Franks)
10973
10974 2003-02-15  Larry Ewing  <lewing@ximian.com>
10975
10976         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
10977
10978 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
10979
10980         * po/id.po: Added Indonesian translation
10981         * configure.in: Added "id" to ALL_LINGUAS
10982
10983 2003-02-14  Matthias Clasen  <maclas@gmx.de>
10984
10985         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
10986
10987 2003-02-12  Christian Rose  <menthos@menthos.com>
10988
10989         * configure.in: Added "yi" to ALL_LINGUAS.
10990
10991 2003-02-12  Matthias Clasen  <maclas@gmx.de>
10992
10993         Fix for #82734 and #78216:
10994         
10995         * gtk/gtktextview.c (delete_cb): 
10996         (select_all_cb): New callbacks for context menu items.
10997         (popup_targets_received): Add "Delete" and "Select All" to context
10998         menu, mnemonics and title caps for all items.
10999
11000         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
11001         context menu item.
11002         (popup_targets_received): Add "Delete" to context menu, mnemonics
11003         and title caps for all items.
11004
11005 2003-02-09  Tor Lillqvist  <tml@iki.fi>
11006
11007         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
11008         GetDriveType() to recognize removable drives (in order to avoid
11009         hanging if trying to access an empty floppy drive), instead of
11010         hardcoding A: and B: (#105654).
11011
11012 2003-02-09  Matthias Clasen  <maclas@gmx.de>
11013
11014         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
11015         names.  (#57680)
11016
11017 2003-02-09  Christian Rose  <menthos@menthos.com>
11018
11019         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
11020
11021 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
11022
11023         * gtk/gtkobject.c: remove quark_user_data usage in
11024         gtk_object_{g|s}et_user_data(). fixes get_user_data()
11025         returning NULL for user_data set through property interface.
11026
11027         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
11028         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
11029         need to be a programming error (in case of loaded data), (b) it breaks
11030         with 2.0 behaviour where extra magic could be used to create empty
11031         images. don't attempt to retrieve pixbufs from NULL extra_data.
11032
11033 2003-02-06  Matthias Clasen  <maclas@gmx.de>
11034
11035         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
11036         a GdkVisual *, not a GdkVisual **.  (#105243)
11037
11038         * gtk/gtkclist.c: 
11039         * gtk/gtkctree.c: 
11040         * gtk/gtkcontainer.c: 
11041         * gtk/gtkdnd.c: 
11042         * gtk/gtkentry.c: 
11043         * gtk/gtklist.c:
11044         * gtk/gtkmenu.c:
11045         * gtk/gtkmenuitem.c:
11046         * gtk/gtknotebook.c:
11047         * gtk/gtkselection.c:
11048         * gtk/gtkspinbutton.c:
11049         * gtk/gtktext.c:
11050         * gtk/gtktextview.c:
11051         * gtk/gtktooltips.c:
11052         * gtk/gtktreeview.c:
11053         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
11054         their non-deprecated GLib counterparts.
11055         
11056         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
11057         
11058 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
11059
11060         * docs/tutorial/gtk-tut.sgml: cleanups from
11061         Sebastian Rittau (#104832)
11062
11063 2003-02-01  Tor Lillqvist  <tml@iki.fi>
11064
11065         Merge from stable:
11066
11067         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11068         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11069         (#104108, Naofumi Yasufuku)
11070
11071         * gdk/gdk.def: Export the above. Export
11072         gdk_screen_get_system_visual, noticed by Ed Woods.
11073
11074 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
11075
11076         * demos/pixbuf-demo.c
11077         * demos/testpixbuf.c
11078         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11079
11080 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
11081                                                                                 
11082         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11083         on the tab_label before unparenting it, in case the unparent
11084         drops the refcount to 0.
11085
11086 2003-02-01  Matthias Clasen  <maclas@gmx.de>
11087
11088         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11089         headers. Sorry about gtk_selection_clear, Yosh.
11090
11091 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
11092
11093         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11094         too, for gtkwidget.c. Remember people, when introducing new
11095         deprecations, make sure internal code isn't using it, or if so,
11096         reorganize appropriately like I've done in other places.
11097
11098         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11099
11100 2003-01-31  Matthias Clasen  <maclas@gmx.de>
11101
11102         * gtk/gtkselection.h: 
11103         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
11104
11105         * gdk/gdkpixbuf.h: 
11106         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
11107         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
11108
11109         * gtk/gtkcolorsel.h:
11110         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11111         Deprecate.  (#98167)
11112
11113         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11114
11115         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11116         and gtk_input_* functions.  (#71596)
11117         
11118         * gtk/gtkentry.c (gtk_entry_move_cursor): 
11119         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11120         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11121
11122         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
11123
11124         * gtk/gtkitemfactory.h: 
11125         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
11126         (#69244)
11127
11128 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
11129
11130         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11131         only count the special cell if it is also visible,
11132         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11133         account from visible cells,
11134         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11135         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11136         tracking bug was #104563).
11137         
11138 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
11139
11140         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11141         subtract expander space and focus line space from the extra space
11142         we are about the allocate. (Fixes #104635).
11143
11144 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
11145
11146         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11147         (Fixes #96242, patch from Soeren Sandmann).
11148
11149 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
11150
11151         * gtk/gtknotebook.c: Patch from Soeren Sandmann
11152         to update the states of the tab label child
11153         widgets to match the state of the tabs. 
11154         (#93389, Reported by Tommi Komulainen)
11155
11156 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
11157
11158         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11159         EXTRA_DIST, and from dist rules. (#102231)
11160
11161 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11162
11163         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11164         function that sets the icon's and label's packing options and
11165         visibility based on toolbar->style.
11166
11167         (gtk_toolbar_internal_insert_element):
11168         (gtk_real_toolbar_style_changed): Make use of
11169         set_child_packing_and_visibility() to clean up the code and get
11170         the packing right for icon-only/text-only toolbars. (#104679)
11171
11172         (get_first_child): Remove, and use gtk_bin_get_child() instead.
11173
11174 2003-01-30  Matthias Clasen  <maclas@gmx.de>
11175
11176         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11177         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
11178
11179         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11180         
11181 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
11182
11183         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
11184         attempt-to-allocate then free code. To handle multiple
11185         people allocating colors at the same time, we need
11186         to just go ahead and try. (#102213, Shivram U)
11187         
11188 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11189
11190         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11191         rectangle using the background color rather than relying on
11192         gdk_window_clear_area(), so that the palette works properly with
11193         pixmap themes. (#101732)
11194
11195         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11196         to fill the drawing area in the background color.
11197
11198 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
11199
11200         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11201         initialization error for selecting input style (#103549).
11202
11203 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
11204
11205         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
11206         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11207         (#101225)
11208
11209 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
11210
11211         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11212         Make up from the menu bar go to the end of the submenu.
11213         (#96114, Ian Peters.)
11214
11215         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
11216         Only do the select-but-not-activate stuff if the
11217         menu is already active. Otherwise, just activate.
11218         (#101690, Arvind Samptur)
11219
11220 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
11221
11222         * autogen.sh (have_automake): Fix version in complaint
11223         message about automake. (#104366, Rich Burridge)
11224
11225 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
11226
11227         * configure.in: Remove SOEXT stuff; it doesn't work portably.
11228
11229 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
11230
11231         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11232         we appended/prepended, send the rows_reordered signal to the 
11233         correct level ... (Reported by Matthew Tuck).
11234
11235 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
11236
11237         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11238         out if the level only has one item, recurse over the child if there
11239         is one. (Fixes #100458, reported by Gaël Le Mignot).
11240
11241 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
11242
11243         * gtk/gtktreeview.c (gtk_tree_view_set_model),
11244         (gtk_tree_view_search_equal_func): make TreeView search handle
11245         all types which are transformable by GValue. (Fixes #99803, reported
11246         by Muktha Narayan).
11247
11248 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
11249
11250         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11251         *really* handle unsetting the ID. Slightly modified patch from
11252         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11253
11254 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
11255
11256         Fixes the total GtkTreeSortable mess, and #83195, reported by
11257         Jarek Dukat
11258
11259         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11260         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11261         (gtk_tree_store_set_default_sort_func): use the constant
11262         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11263         work as advertised by the documentation.
11264
11265         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11266         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11267         (gtk_list_store_set_default_sort_func): likewise.
11268
11269         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11270         (gtk_tree_model_set_sort_func),
11271         (gtk_tree_model_sort_set_default_sort_func): make functions work
11272         as advertised by the documentation.
11273
11274 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
11275
11276         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11277         before we decide if we edit. (fixes #100973, reported by Dave Cook).
11278
11279 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
11280
11281         Bug report and test case from Paolo Maggi via IRC.
11282
11283         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11284         (gtk_list_store_move): update tail if needed.
11285
11286 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
11287
11288         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11289         might be NULL. Use gtk_widget_get_display (widget) 
11290         (#102860, Thomas Leonard)
11291
11292 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
11293
11294         * configure.in: Fix --without-modules/--disable-modules
11295         confusion that was causing --disable-modules not to work.
11296         (#102865, Akira Tagoh)
11297
11298         * configure.in: Fix problem with plain --with-xinput
11299         (#104266, Akira Tagoh)
11300
11301 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
11302
11303         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11304         patch.
11305
11306 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
11307
11308         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11309
11310 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
11311
11312         * docs/faq/gtk-faq.sgml: Learn to spell Library
11313
11314 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
11315         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
11316
11317            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11318            Composite widget" to modern standards. (I.e. use gobject instead of
11319            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11320
11321         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11322         code in Appendix C to reflect above changes.
11323
11324         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11325         auto resize on page size change
11326
11327 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
11328
11329         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11330         in addition to show_all in order to keep them symmetric. (#102201)
11331
11332 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
11333
11334         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11335         the end of the function, so there is a statement following the "out"
11336         label in all cases (fixes #101961)
11337
11338 2003-01-22  Christian Rose  <menthos@menthos.com>
11339
11340         * configure.in: Added "mn" to ALL_LINGUAS.
11341
11342 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
11343  
11344         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11345         Fix off-by-one error on the backward iteration loop,
11346         that was causing the wrong range to be redrawn.
11347         (at least part of #72734)
11348         
11349 2003-01-21  Matthias Clasen  <maclas@gmx.de>
11350
11351         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11352         vadjustment value after changing its bounds.  (fixes #101963 and 
11353         #73562)
11354
11355         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
11356         unnecessary roundtrip failures.  (#93500)
11357
11358 2003-01-19  Tor Lillqvist  <tml@iki.fi>
11359
11360         Merge from stable:
11361         
11362         Fix for #103614 and some other problems with GtkFileSelection on
11363         Windows:
11364                 
11365         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11366         g_ascii_tolower(). Windows file names are case-insensitive for all
11367         Unicode letters.
11368
11369         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11370         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11371         earlier, as it includes config.h unconditionally, and gtkprivate.h
11372         redefines GTK_LOCALEDIR.
11373         (struct _CompletionDirSent): Ifdef out the fields not used on
11374         Windows.
11375         (compare_utf8_filenames, compare_sys_filenames): Need different
11376         comparison implementation for UTF-8 file names and system locale
11377         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11378         need to casefold all Unicode letters.
11379         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11380         variables not used on Win32 to avoid warnings about unused
11381         variables.
11382         (open_ref_dir): Use g_path_skip_root() to skip past potential
11383         drive letter in front of the leading (back)slash.
11384         (open_new_dir): Ifdef out use of CompletionDirSent fields not
11385         there on Win32.
11386         (correct_parent): Bypass inode check also on Cygwin.
11387
11388         Fix bug noticed by Alex Shaduri: Tooltips and other
11389         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11390         was a regression from earlier versions.
11391         
11392         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11393         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11394         (gdk_window_move, gdk_window_resize): Add debug logging.
11395
11396         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11397         WM_SIZE message for a non-visible (withdrawn) window, don't clear
11398         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11399         even if its size changes.
11400
11401 2003-01-16  Matthias Clasen  <maclas@gmx.de>
11402
11403         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11404         (totally_invisible_line): Fix an incorrect optimization which
11405         caused invisible paragraphs to be occasionally misrendered.
11406
11407 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
11408
11409         * gtk/gtksettings.c: Set the double click speed from
11410         XSETTINGS when creating a new GtkSettings object
11411         as well as when getting a notify. (#103601, reported
11412         by Louis Garcia)
11413
11414 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
11415  
11416         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
11417         Show/hide the notebook event window as necessary,
11418         we weren't previously keeping the visibility updated
11419         properly.  (#103599)
11420  
11421 2003-01-15  Matthias Clasen  <maclas@gmx.de>
11422
11423         * examples/menu/itemfactory.c: 
11424         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11425         example.  (#103211)
11426
11427 2002-12-29  Murray Cumming  <murrayc@usa.net>
11428
11429         Fixes #102168.
11430
11431         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
11432         Actually implement the GtkTreeDragSource::row_draggable virtual 
11433         function in GtkListStore and GtkTreeStore instead of just checking 
11434         whether it's implemented at all. This means that DnD isn't broken by
11435         gtkmm's virtual function wrappers. The alternative would be to
11436         hard-code the TRUE return value into gtkmm's wrappers, but that's 
11437         part of GTK+'s implementation, not it's API.
11438
11439 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
11440
11441         * gtk/gtktreeview.c: fix compiler warning.
11442
11443 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
11444
11445         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11446         make sure exposed pixbufs are clipped to the exposed area before
11447         drawing, which is a slight speedup. (#102379, patch from Soeren
11448         Sandmann).
11449
11450 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
11451
11452         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
11453         only free scroll_to_path when the complete tree has been validated.
11454         This makes sure that we scrolled to the correct path.
11455
11456 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
11457
11458         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
11459         background of widget->window and bin->window. (Fixes #96650, reported
11460         by Dave Camp).
11461
11462 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
11463
11464         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
11465         updates before scrolling, avoiding a "selection streak". (Fixes
11466         #101235, patch from Soeren Sandmann).
11467
11468 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
11469
11470         * gtk/gtktreeview.c (validate_visible_area): actually put values
11471         in the requisition using gtk_widget_size_request. (Fixes #100172,
11472         reported by Kjartan Maraas).
11473
11474 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
11475
11476         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
11477         arrow animation timeout before we actually reorder the rbtree. If
11478         we don't do this we can get stuck arrows,
11479         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
11480         reported and testcase provided by Hans Petter Jansson).
11481
11482 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
11483
11484         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
11485         anchor_path should be start_path, not end_path. (Fixes #102618,
11486         patch from Carlos Garnacho Parro).
11487
11488 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
11489
11490         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
11491         only correct new_pos if we don't move to the head/tail.
11492
11493 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
11494
11495         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
11496         the parent_iter if depth >= 1, so we send the reordered signal to
11497         the correct level, remove debugging printfs which I forgot the remove
11498         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
11499         testcase provided by Matthew Tuck).
11500
11501 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
11502
11503         * gtk/gtktreeview.c (invalite_last_column): split out actual column
11504         invalidation into invalidate_column(),
11505         (gtk_tree_view_size_allocate_columns): invalidate column if the
11506         new width is larger than the old width.
11507         (fixes #102890, reported by Alex Duggan).
11508
11509 2003-01-14  Matthias Clasen  <maclas@gmx.de>
11510
11511         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
11512         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
11513         GTK_MOVEMENT_WORDS.
11514
11515         * gtk/gtktextiter.c,
11516         gtk/gtktextiter.h: Add some variant movement functions which
11517         skip invisible chars, and do some cleanups.
11518
11519 2003-01-12  Tor Lillqvist  <tml@iki.fi>
11520
11521         Merge from stable:
11522                 
11523         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
11524         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
11525         lookup.
11526
11527         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
11528         gdk.def.
11529
11530         * gdk/gdk.def
11531         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
11532
11533         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
11534         gtk-demo}.exe and share/gtk-2.0.
11535
11536         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
11537         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
11538         window style.
11539         (gdk_window_set_type_hint): Add all cases to the switch (not all
11540         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
11541         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
11542         won't know that the skip_taskbar hint is on for the window, is
11543         this bad?
11544
11545 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
11546
11547         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
11548         <string.h> for strlen.
11549
11550         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
11551         <string.h> for strrchr.
11552
11553         * tests/testgtk.c (create_saved_position): "x" and "y" properties
11554         for widgets no longer exist, use gtk_window_move instead.
11555
11556         * test/testtextbuffer.c (check_get_set_text): cast strlen to
11557         int for g_error.
11558
11559 2003-01-08  Matthias Clasen  <maclas@gmx.de>
11560
11561         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
11562         the selection in the presence of invisible segments.
11563
11564 2003-01-07  Matthias Clasen  <maclas@gmx.de>
11565
11566         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
11567         to "select all" and "unselect all".  (#102065)
11568
11569         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
11570         the just_selected_element is unused.
11571
11572         * gtk/gtktextview.c (extend_selection): New helper function to
11573         find the range that should be added to the selection. 
11574         (selection_motion_event_handler): 
11575         (gtk_text_view_start_selection_drag): 
11576         (gtk_text_view_end_selection_drag): 
11577         (selection_motion_event_handler): 
11578         (selection_scan_timeout): Support select-by-words/lines.
11579         (gtk_text_view_button_press_event): Start a selection drag on
11580         double/triple clicks.  (#78499)
11581
11582 2003-01-06  Matthias Clasen  <maclas@gmx.de>
11583
11584         Implement a utility function proposed in #102534:
11585         
11586         * gtk/gtktextbtree.h: 
11587         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
11588         (_gtk_text_btree_place_cursor): Now a simple wrapper around
11589         _gtk_text_btree_select_range().   
11590
11591         * gtk/gtktextbuffer.h: 
11592         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
11593         (gtk_text_buffer_place_cursor): Now a simple wrapper around
11594         gtk_text_buffer_select_range(). 
11595
11596 2003-01-05  Havoc Pennington  <hp@pobox.com>
11597
11598         * configure.in: fix a stray bracket that was breaking the build
11599
11600 2003-01-05  Tor Lillqvist  <tml@iki.fi>
11601
11602         * gtk-zip.sh.in: Use correct DLL and import library names, with
11603         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
11604         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
11605
11606         * configure.in: Improve check for dimm.h.
11607
11608         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
11609         gdk-pixbuf/Makefile.am.
11610
11611         * gdk-pixbuf/makefile.mingw.in
11612         * gdk-pixbuf/pixops/makefile.mingw.in
11613         * gdk/makefile.mingw.in
11614         * gdk/win32/makefile.mingw.in
11615         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
11616
11617         * gdk-pixbuf/Makefile.am
11618         * gdk-pixbuf/pixops/Makefile.am
11619         * gdk/Makefile.am
11620         * gdk/win32/Makefile.am
11621         * gtk/Makefile.am
11622         * configure.in: Remove makefile.mingw{,.in} from here, too.
11623         
11624         * README.win32: Updates. Don't mention the now removed
11625         makefile.mingw files.
11626
11627         * gdk/gdk.def
11628         * gtk/gtk.def: Add a couple of missing entries.
11629
11630         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
11631
11632         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
11633         earlier.
11634
11635         * gdk/win32/rc/Makefile.am: Add hack to help
11636         build/win32/lt-compile-resource decide which kind of libtool
11637         object file to produce.
11638
11639 2003-01-05  Matthias Clasen  <maclas@gmx.de>
11640
11641         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
11642         C-Down step through the sequence of paragraph ends (old behaviour
11643         included paragraph starts).  (#80340, patch by Narayana Pattipati)
11644
11645         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
11646         Check for a tag toggle at the start iterator before calling
11647         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
11648         Elstner)
11649
11650 2003-01-04  Matthias Clasen  <maclas@gmx.de>
11651
11652         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
11653         and /*< private >*/ as appropriate.  (#97211)
11654
11655 2003-01-04  Tor Lillqvist  <tml@iki.fi>
11656
11657         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
11658         distribute gtk-zip.sh.in.
11659
11660         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
11661
11662 2003-01-03  Havoc Pennington  <hp@pobox.com>
11663
11664         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
11665
11666         * docs/text_widget_internals.txt: add a file documenting some of
11667         the text widget internals
11668
11669 2003-01-02  Matthias Clasen  <maclas@gmx.de>
11670
11671         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
11672         return NULL.  (#102069)
11673
11674 2003-01-01  Matthias Clasen  <maclas@gmx.de>
11675
11676         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
11677         a main() in the library is obviously bad. 
11678
11679 2002-12-27  Matthias Clasen  <maclas@gmx.de>
11680
11681         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
11682         cursor at drop point.  (#72384)
11683         (gtk_text_view_size_allocate): Update the horizontal adjustment
11684         value.  (#75694)
11685
11686 2002-12-25  Matthias Clasen  <maclas@gmx.de>
11687
11688         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
11689         selection wrt. to empty lines.  (#90435, #90582, #91619)
11690
11691         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
11692         Keep the cursor on screen.  (#96929)
11693
11694 2002-12-24  Matthias Clasen  <maclas@gmx.de>
11695
11696         * gtk/gtktextbuffer.c (paste_from_buffer): 
11697         (clipboard_text_received): Let the user action span the insertion
11698         and the deletion of the old selection.  (#82844)
11699
11700 2002-12-23  Matthias Clasen  <maclas@gmx.de>
11701
11702         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
11703         Don't call gtk_text_iter_backward_sentence_start() if
11704         count is zero.  (#99115)
11705
11706         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
11707         move_cursor() even if the cursor hasn't moved, since it has the
11708         side effect of canceling the selection.  (#81395, #98537, #98333)
11709
11710 2002-12-22  Matthias Clasen  <maclas@gmx.de>
11711
11712         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
11713         with empty ranges.  (fixes #101564 and #80637)
11714
11715 2002-12-21  Tor Lillqvist  <tml@iki.fi>
11716
11717         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
11718         sets the window style and extended window style, and adjusts the
11719         width and height to take the window decorations into account
11720         earlier. The adjusted width and height used to be ignored. Remove
11721         the local x, y, width and height variables, no need to further
11722         confuse the code by having local copies. (Partial fix, I hope, for
11723         #101588)
11724
11725         (gdk_window_move): When moving top-level windows, take title bar
11726         and border width into account, offsetting the coordinates before
11727         calling SetWindowPos().
11728
11729         (gdk_window_set_decorations, gdk_window_set_functions):
11730         Reimplement, taking into account the peculiar semantics of
11731         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
11732
11733         (gdk_window_get_decorations): Implement. (#98981)
11734         
11735         (gdk_window_set_type_hint): When setting
11736         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
11737         (#79036)
11738
11739         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
11740
11741 2002-12-21  Matthias Clasen  <maclas@gmx.de>
11742
11743         * gtk/gtktextview.c (gtk_text_view_set_background): New static
11744         function to set the background of all windows.
11745         (gtk_text_view_style_set): Use gtk_text_view_set_background().
11746         (gtk_text_view_state_changed): New function; change background
11747         according to state.  (#88126)
11748
11749 2002-12-21  Havoc Pennington  <hp@pobox.com>
11750
11751         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
11752