]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-6
remove the unused "lowest_folder" GtkFileChooserDefault member. Leftover
[~andy/gtk] / ChangeLog.pre-2-6
1 2004-03-15  Mark McLoughlin  <mark@skynet.ie>
2
3         * gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
4         GtkFileChooserDefault member. Leftover from my original patch
5         for bug #136987.
6
7 Mon Mar 15 01:50:28 2004  Jonathan Blandford  <jrb@gnome.org>
8
9         * gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
10         API more correctly.  Now pops down the dropdown well.
11
12         * gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
13         FilePath.
14
15         * test/testfilechooser.c: disable preview widget temporarily.
16         It's not representative of a good preview widget.
17
18 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
19
20         * gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
21         Renamed from shortcuts_unselect_all(); now selects the row that
22         corresponds to the current folder, if any.  Fixes #135916.
23
24         * gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
25         _gtk_path_bar_down().
26
27 2004-03-15  Federico Mena Quintero  <federico@ximian.com>
28
29         * gtk/gtkfilechooserdefault.c: Surround the
30         drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
31         too unstable right now.
32
33 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
34
35         * gtk/gtkfilechooserdefault.c: Implement local_only by
36         filtering the shortcuts and bookmarks list by 
37         gtk_file_system_path_to_filename (file_system, path) != NULL.
38         (#132894)
39
40         * gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
41         a convenience function, may by interesting to push to the 
42         file system vtable later for performance.
43
44 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
45
46         * gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
47         to be NULL, so that people can ask for information about a
48         parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
49
50         * gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
51         the condition describe above.
52
53         * gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
54         information of root paths.
55
56         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
57
58 Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
59
60         * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
61         GtkTreeViewSearchEqualFunc return value oddity here as well.
62
63         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
64         to get a string to compare to, return TRUE (no match), not 
65         FALSE (match). Handle %NULL string values gracefully.
66         Remove unused variable. (#135962, Mark McLoughlin)
67
68 2004-03-14  Morten Welinder  <terra@gnome.org>
69
70         * gtk/gtkfilesystemunix.c: Kill some debug g_prints.
71
72 Sun Mar 14 21:03:15 2004  Owen Taylor  <otaylor@redhat.com>
73
74         * gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
75         _gtk_path_bar_down().
76
77         * gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
78         _gtk_path_bar_down() as bindings for Alt-Up
79         and new Alt-Down. (Partly based on a patch by
80         Mark McLoughlin, #136987)
81
82 2004-03-14  Federico Mena Quintero  <federico@ximian.com>
83
84         Fixes #136185, patch by Morten Welinder, with some changes.
85
86         * gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
87         (shortcuts_insert_path): Check the path first with check_is_folder().
88         (gtk_file_chooser_default_set_current_folder): Likewise.
89         (gtk_file_chooser_default_add_shortcut_folder): Likewise.
90         (browse_widgets_create): Unref the size group.
91
92         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
93         Handle the case where the file exists but it is not a directory.
94         (IconType): Add value for ICON_UNDECIDED.
95         (struct stat_info_entry): New structure to hold a file's struct
96         stat, its MIME type and its icon type.
97         (struct _GtkFileFolderUnix): Added a hash of struct
98         stat_info_entry, and flags to remember which info types we've read
99         so far.
100         (get_icon_type): Use a helper function for the icons-from-stat
101         types.
102         (gtk_file_system_unix_render_icon): Use the cached file info.
103         (gtk_file_folder_unix_get_info): Put the info in the cache.
104         (gtk_file_system_unix_get_folder): Create the cache of file info
105         structures.
106
107         * gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
108         case where display_name is the same as the existing
109         info->display_name.
110
111 Sun Mar 14 19:26:48 2004  Owen Taylor  <otaylor@redhat.com>
112
113         #136672, reported by Christian Persch; fixes based
114         on a patch by Soeren Sandmann.
115
116         * gtk/gtkmenu.c: Change the handling of mixed gridded
117         and non-gridded menu items; the old method was causing
118         major performance problems even with the "avoid relayout
119         on destruction" hack put in recently.
120
121         Now we first lay out the gridded items and then put the 
122         non-gridded items into empty rows / after the gridded items. 
123         Layout is done in a central menu_shell_ensure_layout(). Also
124         avoid emitting property notifications when we initially
125         insert or attach items.
126         
127         * gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
128         unused menu_shell->menu_flag, and document it as unused
129         in the header.
130
131         * tests/testactions.c: Add a test of creating/removing
132         lots of items.
133
134         * test/testgtk.c: Add some more cruft to the menu test.
135
136 Mon Mar 15 02:36:07 2004  Matthias Clasen  <maclas@gmx.de>
137
138         * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add
139         some signal docs.
140
141 Sun Mar 14 15:38:39 2004  Jonathan Blandford  <jrb@gnome.org>
142
143         * gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
144         always use the match_func, even if text_column is set.
145
146 2004-03-14  Morten Welinder  <terra@gnome.org>
147
148         * gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
149         "".
150         (gtk_file_system_unix_get_folder): Use the same value for lookup
151         as for insertion.  Make sure we have a directory.
152
153         * gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
154         path; don't crash on NULL error.
155
156 2004-03-14  Hans Breuer  <hans@breuer.org>
157
158         gtk/gtkcombobox.c : prototype cell_view_sync_cells() before 
159         first usage
160
161         gtk/makefile.msc.in : updated 'gtk_public_h_sources'
162
163         tests/makefile.msc : added testspinbutton
164
165 Sun Mar 14 01:01:18 2004  Matthias Clasen  <maclas@gmx.de>
166
167         * gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
168         this function with gtk_tree_view_column_set_cell_data();
169         call the cell data func after setting the attributes.
170
171 Sun Mar 14 01:00:08 2004  Matthias Clasen  <maclas@gmx.de>
172
173         * gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
174         make sure not to call gtk_cell_view_set_cell_data() when
175         displayed_row is NULL.
176
177 Sat Mar 13 18:13:13 2004  Owen Taylor  <otaylor@redhat.com>
178
179         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
180         wrapping, do the offset of the line for justification ourselves.
181         (#120256, Felipe Heidrich)
182
183 Sun Mar 14 00:03:18 2004  Matthias Clasen  <maclas@gmx.de>
184
185         * gtk/gtkcellview.c (gtk_cell_view_expose): Support the
186         model-less use of GtkCellView shown in testcombo.c.
187
188 2004-03-13  Tor Lillqvist  <tml@iki.fi>
189
190         * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
191         when compiling with gcc. Mingw's headers do have the required
192         definitions.
193
194         * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
195         filled polygons, don't draw the outline, similarily as
196         draw_rectangle(). Apparently GTK and GIMP don't use
197         gdk_draw_polygon() much (or always draw the outline, too), as this
198         has gone undetected for so long. Thanks to Bruce Hochstetler.
199
200 Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
201
202         * gtk/gtkwindow.c (gtk_window_destroy): Remove
203         the window from the toplevel_list here rather in destroy.
204         While this is theoretically speaking wrong, it fits
205         in better with the current reality that destroyed
206         widgets are not reusable. (#126808, Michael Natterer)
207
208 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
209
210         * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
211         beyond clearing to the background if there is no active row.
212         (#137066, reported by Owen Taylor)
213
214 Sat Mar 13 21:37:44 2004  Matthias Clasen  <maclas@gmx.de>
215
216         * gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
217         list when an item is selected via the keyboard.
218
219 2004-03-13  Anders Carlsson  <andersca@gnome.org>
220
221         * gtk/gtkfilesystemunix.c: (remove_trailing_slash),
222         (gtk_file_system_unix_get_folder),
223         (gtk_file_system_unix_create_folder), (get_parent_dir),
224         (gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
225         Remove trailing slashes in path names.
226         
227 Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
228
229         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
230         this a total no-op when the new or old parent is
231         destroyed. (#134230, patch from Soeren Sandmann)
232
233         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
234         For foreign windows in our heirarchy, call
235         _gdk_windowing_window_destroy_foreign (window) and skip
236         all the normal destruction logic.
237
238         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
239         Move code to request destruction of a foreign window
240         code into a separate _gdk_windowing_window_destroy_foreign().
241
242         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
243         Call GDK_WINDOW_DISPLAY() on the wrapper not on the
244         impl. (Also from Soeren's patch)
245
246 Sat Mar 13 10:49:46 2004  Owen Taylor  <otaylor@redhat.com>
247
248         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
249         GTK_IS_PLUG toplevels, call gdk_window_get_origin() 
250         not gtk_window_get_position, as a hackround for not
251         having accurate notification of window position for
252         embedded windows. (#136112, Dan Winship)
253
254 Sat Mar 13 10:34:03 2004  Owen Taylor  <otaylor@redhat.com>
255
256         * gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
257         it causes problems for pastes from other applications; see
258         comments in bugzilla for #81880.
259
260 Sat Mar 13 02:55:51 2004  Matthias Clasen  <maclas@gmx.de>
261
262         Fix middle button pasting in the TextView  (#81880, reported
263         by Evert Verhellen, patch by Paolo Borelli):
264         
265         * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve 
266         the insert mark and move the cursor to it making sure of also 
267         scroll the window if needed.
268         
269         * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
270         to the insertion point.
271
272 Sat Mar 13 01:38:55 2004  Matthias Clasen  <maclas@gmx.de>
273
274         * gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove 
275         implemenatation which restores the cell_view when the custom 
276         child is removed.  (#136555, Owen Taylor)
277
278 Sat Mar 13 00:07:51 2004  Matthias Clasen  <maclas@gmx.de>
279
280         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear): 
281         Keep the cell_list in a consistent state while iterating over it, 
282         since clear_attributes() also iterates over it.  (another instance
283         of #136585, Morten Welinder)
284         
285 Fri Mar 12 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
286
287         * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
288         and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
289         Semion Chichelnitsky)
290
291         * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed 
292         gtk_toolbar_direction-changed handlers and explicit
293         flipping of GtkArrow widgets.
294
295 Fri Mar 12 23:37:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
296
297         * gtk/gtkfilechooserdialog.c
298         (file_chooser_widget_default_realized_size_changed): Clamp the
299         new size to the screen.
300
301 Fri Mar 12 15:06:44 2004  Owen Taylor  <otaylor@redhat.com>
302
303         * gtk/gtkexpander.c (gtk_expander_realize): Create the
304         event_window at the right size using the same logic as
305         in size_allocate. (#136994, Niklas Knuttson)
306
307 2004-03-12  Federico Mena Quintero  <federico@ximian.com>
308
309         * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
310         return value of gtk_widget_activate().
311         (gtk_window_activate_default): Likewise.  Fixes #137008.
312
313         * gtk/gtkfilechooserdialog.c (response_cb): Act on positive
314         response IDs we recognize, rather than bailing out on cancellation
315         ones.  Fixes #136237; patch by Olivier Andrieu
316         <oliv__a@users.sourceforge.net>.
317         (file_chooser_widget_file_activated): If the dialog doesn't have a
318         default widget, try to find a suitable response widget on our own.
319         People should *really* be using gtk_dialog_set_default_response(),
320         but this is to help lazy programmers.
321
322         * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
323         internal function.
324         (get_response_data): Add a "create" argument so that we don't
325         unconditionally create the response data.
326
327 2004-03-12  Morten Welinder  <terra@gnome.org>
328
329         * tests/Makefile.am: Add new testspinbutton.c
330
331 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
332
333         * gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
334         Put the trash icon on the right for LTR locales, or on the left
335         for RTL.
336         (shortcuts_drag_motion_cb): Cancel the idle handler here as well.
337         (shortcuts_drag_leave_cb): Test whether the idle is present.
338         (shortcuts_drag_data_received_cb): Ahem, don't assert here.
339
340 Thu Mar 11 17:51:10 2004  Owen Taylor  <otaylor@redhat.com>
341
342         * modules/input/gtkimcontextxim.c (preedit_done_callback):
343         Clear preedit string and emit preedit_changed as needed
344         on AIX. (#130617, Philip K Warren)
345
346 2004-03-11  Morten Welinder  <terra@gnome.org>
347
348         * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
349
350 Thu Mar 11 16:28:15 2004  Owen Taylor  <otaylor@redhat.com>
351
352         * gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
353         type. (#136919, Tim Mooney)
354
355 Thu Mar 11 16:18:51 2004  Jonathan Blandford  <jrb@redhat.com>
356
357         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
358         earlier change to insert_path so that we test that the directory
359         exists.
360
361         * gtk/gtkfilechooserdialog.c
362         (gtk_file_chooser_dialog_constructor): move focus.
363
364 Thu Mar 11 22:12:14 2004  Matthias Clasen  <maclas@gmx.de>
365
366         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
367         logic as GtkEntry when calculating border width.  (#116368, reported
368         by Morten Welinder)
369
370 Thu Mar 11 15:59:05 2004  Owen Taylor  <otaylor@redhat.com>
371
372         * tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
373         rather than gtk_widget_set_size_request().
374
375 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
376
377         * gtk/gtkfilechooserdefault.c (remove_settings_signal): New
378         function, copied from gtkpathbar.c.
379         (gtk_file_chooser_default_dispose): Use remove_settings_signal()
380         rather than our own code.
381         (gtk_file_chooser_default_screen_changed): Use
382         remove_settings_signal(); this should handle per-screen settings
383         correctly.
384
385 Thu Mar 11 14:07:18 2004  Owen Taylor  <otaylor@redhat.com>
386
387         * gtk/gtklabel.c (gtk_label_focus): Fix a missing return
388         value.
389
390 Thu Mar 11 13:58:24 2004  Owen Taylor  <otaylor@redhat.com>
391
392         * gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
393         put-labels-into-the-standard-focus-chain patches 
394         from bug #59707.
395
396         * gtk/gtklabel.c (gtk_label_focus): Only put the
397         label in the tab chain when the control key is pressed.
398
399 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
400
401         * gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
402         single OK button, not a Close button, as per the HIG.
403
404         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
405
406 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
407
408         * gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
409         initialize "action" before jumping.  Fixes #136900.
410
411 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
412
413         * gtk/gtksettings.c: (apply_queued_setting): don't overwrite
414         application properties. Fixes bug #136802.
415
416 2004-03-11  Dov Grobgeld  <dov@imagic.weizmann.ac.il>
417
418         * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
419         call to gtk_text_layout_update_cursor_line() to solve in 
420         problem of switching keyboard direction at widget creation:
421         bug #136680
422
423 Thu Mar 11 10:28:30 2004  Owen Taylor  <otaylor@redhat.com>
424
425         * gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
426         stray 'return' statement. (#136855, David L. Cooper II)
427
428 2004-03-11  Mark McLoughlin  <mark@skynet.ie>
429
430         * gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
431         fg color for drawing the expander when prelit. Fixes problem
432         with the HighContrast theme: bug #136789.
433
434 2004-03-11  Federico Mena Quintero  <federico@ximian.com>
435
436         Fix #135912 and #135913.
437
438         * gtk/gtkfilechooserdefault.c
439         (shortcuts_filter_model_row_draggable): Implement.
440         (shortcuts_model_filter_new): New function, create a
441         ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
442         we can implement our own DnD interface methods.
443         (shortcuts_model_create): Use shortcuts_model_filter_new().
444         (shortcuts_list_create): Enable the shortcuts list as a drag
445         source.
446         (file_list_source_targets): Renamed from shortcuts_targets.
447         (shortcuts_list_create): Change the options for
448         gtk_drag_dest_set().  Connect to more drag signals so that we can
449         implement drops by hand.
450         (shortcuts_drag_data_delete_cb): New handler; just stop the emission.
451         (shortcuts_drag_motion_cb): New handler; validate the drop.
452         (shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
453         (shortcuts_drag_drop_cb): New handler; just stop the emission and
454         remove the idle handler for the drag cursor.
455         (shortcuts_add_bookmark_from_path): Add a position argument,
456         return a boolean success code.
457         (shortcuts_drag_data_received_cb): Handle two cases:  1) Insert
458         the bookmarks at the proper position, rather than always appending
459         them to the list; 2) alternatively, reorder the bookmarks.
460         (struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
461         (shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
462         (shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
463         an idle handler.
464         (shortcuts_drag_end_cb): New handler; remove the selected bookmark.
465
466 Thu Mar 11 01:08:25 2004  Jonathan Blandford  <jrb@gnome.org>
467
468         * gtk/gtkfilechooserdefault.c (location_entry_create): up the
469         width of the entry a tad.
470
471         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
472         gtk_entry_completion_selection_changed.  Also, unref the
473         completion as we were leaking a reference to it.
474
475 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
476
477         * gtk/gtkstyle.c (draw_dot): Remove spurious semicolon.  Thanks to
478         Kjartan Maraas for pointing it out.
479
480 Wed Mar 10 23:40:15 2004  Matthias Clasen  <maclas@gmx.de>
481
482         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the
483         background on the action view cell renderer here, not in init, so 
484         that a) we catch style changes, and b) we get the real style, not 
485         the default one. Partial fix for #127648, reported by Dave Bordoley.
486
487 2004-03-10  Tor Lillqvist  <tml@iki.fi>
488
489         * gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
490         the pointer button bits. (#136636, Dave Neary)
491
492         * gdk/win32/gdkwindow-win32.c (show_window_internal): Show
493         transparent (input only) windows using SetWindowPos(). (#132331,
494         John Ehresman)
495
496         (gdk_window_set_type_hint): For splash screens, remove the resize
497         handles, menu, and minimize/maximize/close buttons. (#132896)
498
499 Wed Mar 10 22:30:23 2004  Matthias Clasen  <maclas@gmx.de>
500
501         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
502         cell_list in a consistent state while iterating over it, since
503         clear_attributes() also iterates over it.  (#136585, Morten Welinder)
504
505 2004-03-10  Mark McLoughlin  <mark@skynet.ie>
506
507         * gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
508         the expose to the label. The expose handler for GtkContainer
509         already does that. Fixes bug #136719. Reported by Dennis
510         Cranston, exact cause nailed down by Owen.
511
512 2004-03-10  Federico Mena Quintero  <federico@ximian.com>
513
514         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
515         untranslatable "%x" for dates, rather than a custom format.  Fixes
516         #136357.
517
518 2004-03-10  Morten Welinder  <terra@gnome.org>
519
520         * gtk/gtkfilechooserdefault.c
521         (gtk_file_chooser_default_add_shortcut_folder): Test validity of
522         path here.
523         (shortcuts_insert_path): Don't check here.
524         (get_file_info): Barf if name-only fails.
525
526         * tests/testfilechooser.c (main): Add support for --multiple.
527
528 Wed Mar 10 02:41:05 2004  Jonathan Blandford  <jrb@gnome.org>
529
530         * gtk/gtkpathbar.c: (gtk_path_bar_init), (gtk_path_bar_class_init),
531         (remove_settings_signal), (gtk_path_bar_dispose),
532         (gtk_path_bar_style_set), (gtk_path_bar_screen_changed),
533         (gtk_path_bar_scroll_up), (reload_icons), (change_icon_theme),
534         (settings_notify_cb), (gtk_path_bar_check_icon_theme),
535         (get_button_image), (gtk_path_bar_update_button_appearance),
536         (make_directory_button), (gtk_path_bar_check_parent_path): Support
537         changes in icon themes.
538
539         * gtk/gtkpathbar.h: add two elements
540
541         * tests/testfilechooser.c: (main): use gnome-vfs method again to
542         get more testing.
543
544 Wed Mar 10 01:17:40 2004  Jonathan Blandford  <jrb@gnome.org>
545
546         * gtk/gtkpathbar.c: added 'Desktop' to the list of volumes.  We
547         don't have any more untranlated strings in the dialog.
548
549 Wed Mar 10 00:24:24 2004  Jonathan Blandford  <jrb@gnome.org>
550
551         * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of
552         the pathname for UTF-8 safety.
553
554 Wed Mar 10 00:10:47 2004  Jonathan Blandford  <jrb@gnome.org>
555
556         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Always
557         check to see if the shortcuts exists.  We don't want to put
558         invalid dirs in the shortcuts pane.
559
560 Tue Mar  9 16:40:34 2004  Jonathan Blandford  <jrb@gnome.org>
561
562         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
563         remove unneeded shortuts_swin;
564
565 Wed Mar 10 01:49:27 2004  Matthias Clasen  <maclas@gmx.de>
566
567         Fix #136614 in a better way:
568         
569         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Undo the last change.
570         * gtk/gtkbutton.c (struct _GtkButtonPrivate): Add a flag, align_set.
571         * gtk/gtkbutton.c (gtk_button_init): Initialize align_set to 0.
572         * gtk/gtkbutton.c (maybe_set_alignment): Rework to only set the
573         alignment if priv->align_set is set.
574         * gtk/gtkbutton.c (gtk_button_set_alignment): Set align_set to 1.
575
576 Wed Mar 10 01:21:05 2004  Matthias Clasen  <maclas@gmx.de>
577
578         * gtk/gtkcombobox.c (gtk_combo_box_menu_position_below): Place
579         grid mode popups left aligned, not right aligned.
580
581 Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
582
583         * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
584         the label that is reparented from the menuitem.  (#136614, Dennis
585         Cranston)
586
587 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
588
589         * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
590         information about a button in a struct instead of ugly
591         g_object_set_data.
592         (gtk_path_bar_size_request): Use ButtonData.
593         (gtk_path_bar_update_slider_buttons): ditto
594         (gtk_path_bar_size_allocate): ditto
595         (gtk_path_bar_remove): ditto
596         (gtk_path_bar_forall): ditto
597         (gtk_path_bar_scroll_down): ditto
598         (gtk_path_bar_clear_buttons): ditto
599         (button_clicked_cb): ditto.  Also, add an ignore_changes variable
600         (button_data_free): destroy ButtonData
601         (update_button_appearance): Use ButtonData
602         (make_directory_button): ditto
603         (gtk_path_bar_check_parent_path): ditto
604         (_gtk_path_bar_set_path): ditto
605
606 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
607
608         Fix #136533.
609
610         * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): New
611         function.
612         (check_icon_theme): New helper function, installs a handler for
613         changes in the icon theme.
614         (gtk_file_chooser_default_style_set): Use check_icon_theme().
615         (gtk_file_chooser_default_screen_changed): Use check_icon_theme().
616         (gtk_file_chooser_default_dispose): Disconnect from GtkSettings.
617         (change_icon_theme): New function, updates impl->icon_size and
618         reloads the icons.
619         (struct _GtkFileChooserDefault): New field settings_signal_id.
620         (struct _GtkFileChooserDefault): New field icon_size.
621         (shortcuts_insert_path): Use impl->icon_size.
622         (list_icon_data_func): Likewise.
623
624 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
625
626         * gtk/gtkfilechooserdefault.c (get_file_info): Handle the returned
627         parent_path being NULL.  Fixes #136662.
628
629 2004-03-09  Federico Mena Quintero  <federico@ximian.com>
630
631         * gtk/gtkfilechooserdefault.c (shortcuts_drag_data_received_cb):
632         Stop the emission so that GtkTreeView's handler won't try to poke
633         the filter model.  Fixes #136127.
634
635 Tue Mar  9 13:49:14 2004  Owen Taylor  <otaylor@redhat.com>
636
637         * gtk/gtkstyle.c (gtk_paint_polygon): Fix 
638         g_return_if_fail() that was checking draw_shadow.
639         (#136669, Morten Welinder)
640
641 Tue Mar  9 09:57:25 2004  Owen Taylor  <otaylor@redhat.com>
642
643         * === Released 2.3.6 ===
644
645         * configure.in: Version 2.3.6, interface age 0.
646
647         * NEWS: Updates
648
649 Tue Mar  9 11:01:45 2004  Jonathan Blandford  <jrb@gnome.org>
650
651         * gtk/gtkpathbar.c (gtk_path_bar_finalize): unref the correct
652         icon.  Reported by Michael Natterer <mitch@gimp.org>.
653
654 2004-03-09  Morten Welinder  <terra@gnome.org>
655
656         * tests/testfilechooser.c (main): Destroy widgets to reveal leaks.
657
658 Tue Mar  9 02:11:50 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
659
660         * gtk/gtkmenu.c Fix bug 136446. [Marco Pesenti Gritti]
661         (struct _GtkMenuPrivate): Add boolean destroying
662         (gtk_menu_destroy): Set priv->destroying
663         (gtk_menu_remove): don't update the table information when the
664         menu is being destroyed.
665
666         * gtk/gtkmenu.c (gtk_menu_set_monitor): Formatting fix
667
668         * gtk/gtktoolbar.[ch]: Some formatting fixes
669
670 Tue Mar  9 01:25:10 2004  Matthias Clasen  <maclas@gmx.de>
671
672         * gtk/gtkframe.c (gtk_frame_paint): Fix a typo.
673
674 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
675
676         Fixes #136080.
677
678         * gtk/gtkfilesystemunix.c: Only lstat() if stat() failed due to
679         ENOENT.
680         (filename_get_info): Likewise.
681
682 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
683
684         * gtk/gtkfilechooserdefault.c
685         (gtk_file_chooser_default_initial_focus): Use
686         gtk_tree_view_set_cursor().
687
688 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
689
690         Patch "1a" from #136185, by Morten Welinder.
691
692         * gtk/gtkfilechooserdefault.c (get_file_info): Take in an argument
693         that says whether the caller just wants the display name.
694         (shortcuts_insert_path): We only want the name in the call to
695         get_file_info().
696
697         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't request more
698         info than needed from the file_folder.
699
700 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
701
702         Fixes #136105.
703
704         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
705         Added an ::initial_focus() method.
706
707         * gtk/gtkfilechooserembed.c
708         (_gtk_file_chooser_embed_delegate_iface_init): Set the
709         initial_focus method.
710         (delegate_initial_focus): Implement.
711         (_gtk_file_chooser_embed_initial_focus): New function.
712
713         * gtk/gtkfilechooserdialog.c
714         (gtk_file_chooser_dialog_constructor): Call
715         _gtk_file_chooser_embed_initial_focus().
716
717         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init):
718         Install the ::initial_focus() handler.
719         (gtk_file_chooser_default_initial_focus): Implement.
720
721 2004-03-08  Federico Mena Quintero  <federico@ximian.com>
722
723         * gtk/gtkfilechooserdefault.c (update_from_entry): Return a
724         boolean success code.
725         (location_popup_handler): Refocus the file chooser if appropriate.
726         Fixes #135905.
727         (save_widgets_create): Don't set the text of the save_folder_label
728         here.
729         (update_appearance): Set the text here as appropriate for the save
730         mode.  Also fixes #136387.
731         (update_appearance): Don't show the Create Folder button in
732         SELECT_FOLDER mode.
733         (update_appearance): Show the extra widget in all Save modes
734         correctly.
735
736 Mon Mar  8 11:57:27 2004  Owen Taylor  <otaylor@redhat.com>
737
738         * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't
739         call g_signal_handler_disonnect() if priv->model is
740         NULL. (#136551, Damon Chaplin)
741
742         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
743         Back out code to set the active item when the first
744         item is added to the model; this causes problems for
745         GtkComboBoxText. (#136535)
746
747         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy)
748         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy):
749         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
750         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): 
751         Remove calls to gtk_combo_box_unset_model.
752
753         * gtk/gtkcombobox.c (gtk_combo_box_check_appearance): 
754         Clean up handling of wrap->width > 0.
755
756         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Don't
757         switch list/menu mode here.
758
759         * gtk/gtkcombobox.c (gtk_combo_box_set_model): Protect
760         against the same model being set back.
761
762         * gtk/gtkcombobox.c (gtk_combo_box_relayout): Call
763         gtk_combo_box_menu_fill() rather than duplicating
764         a large chunk of code.
765
766 2004-03-08  Anders Carlsson  <andersca@gnome.org>
767
768         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): 
769         If max_depth is 0 then we have a list.
770
771 2004-03-08  Morten Welinder  <terra@gnome.org>
772
773         * gtk/gtkpathbar.c (_gtk_path_bar_set_path): If we fail, leave
774         widget unchanged.  Explicitly verify final directory.
775
776         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_create_folder,
777         get_icon_type, filename_get_info): Protect errno.
778
779 2004-03-08  Marco Pesenti Gritti  <marco@gnome.org>
780
781         * gtk/gtkentry.c: (gtk_entry_completion_key_press):
782
783         When an action is selected stop the event to be propagated
784         otherwise the activate signal is emitted too. (Bug #133394)
785
786 Mon Mar  8 04:50:12 2004  Jonathan Blandford  <jrb@gnome.org>
787
788         * gtk/gtkfilechooserdefault.c (create_path_bar): new function to
789         consolidate creating the path_bar.
790         (gtk_file_chooser_default_set_current_folder): no longer need to
791         pass in the filesystem.
792
793         * gtk/gtkpathbar.h: Removed unused set_pixbuf functions in favor
794         of just setting the filesystem.
795
796         * gtk/gtkpathbar.c (gtk_path_bar_finalize): Free root path and
797         home_dir.
798         (get_button_image): Add images to path_bar.
799         (update_button_appearance): use images
800         (make_directory_button): Clasify buttons based upon location.
801         (_gtk_path_bar_set_path): no longer need a file-system.  Also, add
802         rerooting, #135845, #135914
803
804         * tests/testfilechooser.c: Fix reused error handling.
805
806 2004-03-08  Anders Carlsson  <andersca@gnome.org>
807
808         * gtk/gtkfilesystemunix.c: (get_icon_for_directory),
809         (gtk_file_system_unix_render_icon):
810         Use better icons for home and desktop.
811
812 2004-03-08  Anders Carlsson  <andersca@gnome.org>
813
814         * gtk/gtkfilechooserentry.c:
815         (_gtk_file_chooser_entry_set_base_folder):
816         Set the base folder path in the entry.
817         
818 2004-03-08  Christian Neumair  <chris@gnome-de.org>
819
820         * tests/testentrycompletion.c: Fix typo.
821
822 2004-03-08  Tor Lillqvist  <tml@iki.fi>
823
824         * README.win32: Update.
825
826         * gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
827
828         * tests/testfilechooser.c: Correct localtime_r() emulation on
829         Win32. Remove a couple of unnecessary Win32-only includes.
830
831 Mon Mar  8 01:06:17 2004  Matthias Clasen  <maclas@gmx.de>
832
833         * tests/testentrycompletion.c: Test dynamic addition/removal. 
834
835 Sun Mar  7 22:38:49 2004  Matthias Clasen  <maclas@gmx.de>
836
837         * gtk/gtkframe.c (gtk_frame_paint): Use ythickness, not 
838         xthickness in the calculation of vertical dimensions.
839
840 Sun Mar  7 17:38:03 2004  Jonathan Blandford  <jrb@gnome.org>
841
842         * gtk/gtkbutton.c (gtk_button_class_init): actually use
843         gtk_button_add.
844
845         * gtk/gtkfilechooserdefault.c (error_building_filename_dialog):
846         use the uri, not the path, #136317
847         (renderer_edited_cb): ditto
848         (shortcuts_add_bookmark_from_path): ditto
849         (remove_bookmark_button_clicked_cb): ditto
850         (gtk_file_chooser_default_remove_shortcut): ditto
851         (update_from_entry): ditto
852         (up_folder_handler): ditto
853
854 Sun Mar  7 16:07:08 2004  Jonathan Blandford  <jrb@gnome.org>
855
856         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): set
857         redraw_on_allocate, #135902.
858
859         * gtk/gtkfilesystemmodel.c (model_refilter_recurse): Patch from
860         Damon Chaplin to set a node to be visible before emitting the
861         inserted signal, #135555.
862
863 Sun Mar  7 22:24:28 2004  Matthias Clasen  <maclas@gmx.de>
864
865         * gtk/gtkbutton.c (_gtk_button_paint): Don't use xthickness in the
866         height calculation.
867
868 Sun Mar  7 14:34:04 2004  Jonathan Blandford  <jrb@gnome.org>
869
870         Fixes #121500.
871
872         * gtk/gtkfilechooserdefault.c (trap_activate_cb): stop activate
873         from unselecting rows when pressed in multiple-selection mode.
874
875 2004-03-07  Hans Breuer  <hans@breuer.org>
876
877         * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
878         some more settings from system, also reflect some name changes
879         done a while ago in the x11 backend
880
881         * gdk/win32/makefile.msc : build gdkspawn-win32.c
882
883         * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
884
885         * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
886
887         * tests/makefile.msc : some more tests get build
888
889 Sun Mar  7 03:03:57 2004  Jonathan Blandford  <jrb@gnome.org>
890
891         * gtk/gtkfilechooserdefault.c
892         (gtk_file_chooser_default_get_paths): if action is
893         SELECT_FOLDER, then return the currentd folder if none is
894         selected.
895         (gtk_file_chooser_default_should_respond): Allow 'Ok' to be hit if
896         no directory is selected in SELECT_FOLDER mode.
897
898 Sat Mar  6 23:31:18 2004  Jonathan Blandford  <jrb@gnome.org>
899
900         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
901         remove unneeded elements.
902         (tree_selection_changed): removed
903         (tree_name_data_func): removed
904         (gtk_file_chooser_default_finalize): don't unref dir model
905         (create_folder_tree): removed
906         (get_selection): no longer need to abstract away the selection
907         function.
908         (create_file_list): We now create a tree for all actions.
909         (file_pane_create): Make one tree.
910         (update_appearance) We really change the mode only, now.
911
912 Sun Mar  7 02:38:00 2004  Matthias Clasen  <maclas@gmx.de>
913
914         * gtk/gtkcombobox.c (gtk_combo_box_size_request): Do a 
915         size_request on the button and cell_view_frame, otherwise
916         their style will still be the default here in the initial 
917         size_request. (#136301, Mark McLoughlin)
918
919 2004-03-06  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>
920
921         * gtk/gtktoolbar.c (internal_insert_element): Check return value
922         of gtk_stock_lookup; if stock lookup fails, just use stock_id as
923         label, instead of crashing. Fixes #136202.
924
925 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
926
927         * gdk/linux-fb/gdkglobals-fb.c: Make <config.h> the very first
928         include.
929         * gdk/linux-fb/gdkwindow-fb.c: Likewise.
930         * gdk/linux-fb/gdkinput.c: Likewise.
931
932 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
933
934         Fixes #136082 and #135265, patch by Morten Welinder.
935
936         * configure.in: Use AC_SYS_LARGEFILE.
937
938         * */*.c: #include <config.h>
939
940 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
941
942         * gtk/gtkfilechooserdefault.c
943         (gtk_file_chooser_default_select_path): No need to have a
944         temporary error variable.
945
946 2004-03-05  Tor Lillqvist  <tml@iki.fi>
947
948         * configure.in: Move check for native Win32 (mingw) a bit
949         earlier. If Win32, disable static builds (as in GLib). Remove
950         unnecessary AC_LIBTOOL_WIN32_DLL.
951
952         * gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
953
954         * gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
955
956         (gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
957         implementation.
958
959         (gdk_display_supports_cursor_alpha,
960         gdk_display_supports_cursor_color): Dummy implementations.
961
962         (gdk_display_get_default_cursor_size,
963         gdk_display_get_maximal_cursor_size): Implement.
964
965         * gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
966         Dummy implementation.
967
968         * gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
969         implementation.
970
971         * gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
972
973         * gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
974         not in API.
975
976         * gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
977         implementation.
978
979 Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
980
981         * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
982         to the new path.
983
984         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
985         allocation when scrolling instead of cancelling editing.
986
987 Fri Mar  5 23:52:34 2004  Matthias Clasen  <maclas@gmx.de>
988
989         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
990         Improve the docs.  (#127727, Murray Cumming)
991
992 Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
993
994         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
995         doc comment.  (#118602)
996
997 Fri Mar  5 22:37:15 2004  Matthias Clasen  <maclas@gmx.de>
998
999         * gtk/gtkbutton.c (gtk_button_construct_child): Don't let
1000         the priv->image pointer dangle.  (#136259, Padraig O'Briain)
1001
1002 2004-03-05  Federico Mena Quintero  <federico@ximian.com>
1003
1004         * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
1005         gboolean return values and GError arguments to
1006         ::set_current_folder() and ::select_path().
1007
1008         * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
1009         Return a boolean value for success/failure.
1010         (gtk_file_chooser_set_current_folder_uri): Likewise.
1011         (gtk_file_chooser_select_filename): Likewise.
1012         (gtk_file_chooser_select_uri): Likewise.
1013         (gtk_file_chooser_set_filename): Likewise.
1014         (gtk_file_chooser_set_uri): Likewise.
1015         (_gtk_file_chooser_set_current_folder_path): Likewise, plus take
1016         in a GError.
1017         (_gtk_file_chooser_select_path): Likewise.
1018
1019         * gtk/gtkfilechooserutils.c (delegate_set_current_folder):
1020         Likewise.
1021         (delegate_select_path): Likewise.
1022
1023         * gtk/gtkfilechooserdefault.c
1024         (gtk_file_chooser_default_select_path): Likewise.
1025         (gtk_file_chooser_default_set_current_folder): Likewise; this also
1026         fixes #136024.
1027         (error_changing_folder_dialog): New helper function.
1028         (change_folder_and_display_error): New helper function.
1029         (switch_to_selected_folder): Use change_folder_and_display_error().
1030         (tree_selection_changed): Likewise.
1031         (shortcuts_activate_volume): Likewise.
1032         (shortcuts_activate_item): Likewise.
1033         (list_row_activated): Likewise.
1034         (path_bar_clicked): Likewise.
1035         (update_from_entry): Likewise.
1036         (up_folder_handler): Likewise.
1037         (home_folder_handler): Get the home path from the shortcuts model,
1038         and use change_folder_and_display_error().
1039
1040         * tests/testfilechooser.c (set_current_folder): New helper
1041         function; pops up a simple error dialog if necessary.
1042         (set_filename): Likewise.
1043         (set_folder_nonexistent_cb): Use set_current_folder().
1044         (set_folder_existing_nonexistent_cb): Likewise.
1045         (set_filename_nonexistent_cb): Use set_filename().
1046         (set_filename_existing_nonexistent_cb): Likewise.
1047
1048 Fri Mar  5 11:17:35 2004  Owen Taylor  <otaylor@redhat.com>
1049
1050         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): 
1051         Improve the docs (reported by Vitaly Tishkov, 
1052         #74362) Add some comments to the code about the 
1053         row reference handling that are hopefully not entirely
1054         wrong.
1055
1056 2004-03-05  Michael Natterer  <mitch@gimp.org>
1057
1058         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1059         s/object/widget/. Makes it compile again.
1060
1061 Fri Mar  5 03:37:14 2004  Jonathan Blandford  <jrb@gnome.org>
1062
1063         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_show_all):
1064         chain to the extra_widget.
1065
1066 Fri Mar  5 02:53:41 2004  Jonathan Blandford  <jrb@gnome.org>
1067
1068         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
1069         Patch from Damon Chaplin to free models when we're finalized,
1070         #134053
1071
1072 2004-03-05  Alexander Larsson  <alexl@redhat.com>
1073
1074         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path):
1075         Document the fact that there might not be a volume for all
1076         paths.
1077
1078         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1079         Don't assume there is a volume for all paths.
1080
1081 Fri Mar  5 01:45:04 2004  Jonathan Blandford  <jrb@gnome.org>
1082
1083         * gtk/gtkfilechooserdefault.c (shortcuts_append_paths): insert in
1084         the correct place instead of naïvely appending.
1085         (shortcuts_add_volumes): refilter the model
1086         (shortcuts_add_bookmarks): refilter the model
1087         (gtk_file_chooser_default_add_shortcut_folder): refilter the model
1088
1089 2004-03-04  Federico Mena Quintero  <federico@ximian.com>
1090
1091         * gtk/gtkfilechooserdialog.c (response_cb):  New handler.  Ask the
1092         GtkFileChooser widget if it wants to do something special rather
1093         than letting us terminate the dialog.
1094         (gtk_file_chooser_dialog_init): Connect to "response"; see the
1095         comment in the sources to see why we don't override the method in
1096         class_init.
1097
1098         * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface):
1099         Added a ::should_respond() method.
1100
1101         * gtk/gtkfilechooserembed.c
1102         (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond().
1103         (delegate_should_respond): New delegate.
1104         (_gtk_file_chooser_embed_should_respond): New function.
1105
1106         * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list):
1107         Use dashes in signal names rather than underscores.
1108         (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation.
1109         (gtk_file_chooser_default_should_respond): Implement.  go into a
1110         folder rather than responding if we are in File mode and the
1111         selected file is a folder.
1112         (get_selection): New helper function.
1113         (add_bookmark_button_clicked_cb): Use get_selection().
1114         (bookmarks_check_add_sensitivity): Likewise.
1115         (gtk_file_chooser_default_get_paths): Likewise.
1116         (check_save_entry): New helper function.
1117         (gtk_file_chooser_default_get_paths): Use check_save_entry().
1118         (selection_check): Renamed from selection_is_folders().  Now
1119         checks whether the selection is empty, all files, all folders.
1120         (bookmarks_check_add_sensitivity): Use selection_check().
1121
1122 Fri Mar  5 00:05:59 2004  Matthias Clasen  <maclas@gmx.de>
1123
1124         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): 
1125         * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Connect to 
1126         key_press_event and handle Alt-Down/Alt-Up to show or hide the
1127         list popup. Also handle Down/Up/PageDown/PageUp/Home/End and 
1128         make them change the active item without popping up the list.
1129         These keybindings are inherited from GtkCombo. 
1130
1131 Thu Mar  4 23:15:58 2004  Matthias Clasen  <maclas@gmx.de>
1132
1133         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Initially 
1134         select the active item when using optionmenu-like positioning. 
1135
1136 Thu Mar  4 16:54:30 2004  Owen Taylor  <otaylor@redhat.com>
1137
1138         * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't
1139         open/close the file, just check for existence
1140         with g_file_test(). This is considerably cheaper,
1141         and lack-of-permissions for pixmap dirs is 
1142         pathological.
1143
1144 Wed Mar  3 17:53:21 2004  Owen Taylor  <otaylor@redhat.com>
1145
1146         * gtk/gtksocket.c (gtk_socket_class_init): Overide
1147         show_all/hide_all to be gtk_widget_show/gtk_widget_hide,
1148         since we don't want to propagate to the in-process
1149         plug, if any. (#122949, Michael Meeks)
1150
1151 Thu Mar  4 15:20:55 2004  Jonathan Blandford  <jrb@gnome.org>
1152
1153         * gtk/gtkfilechooserdefault.c (update_appearance): show the 'New
1154         Folder' button in SAVE mode again.
1155
1156 Thu Mar  4 21:53:46 2004  Matthias Clasen  <maclas@gmx.de>
1157
1158         * gtk/gtkiconfactory.c (copy_cache): Increment the reference
1159         count of the style when copying the cached icon.  (#135890, Crispin
1160         Flowerday)
1161
1162 Thu Mar  4 21:45:43 2004  Matthias Clasen  <maclas@gmx.de>
1163
1164         * gtk/gtkcombobox.c: In list mode, set the background color 
1165         of the cell view to the base color of the style, instead of
1166         hardwiring white. (#136158)
1167
1168 Thu Mar  4 01:32:19 2004  Jonathan Blandford  <jrb@gnome.org>
1169
1170         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Modified patch from
1171         muppet <scott@asofyet.org> to keep child directories around if we
1172         change to a child.
1173
1174         * gtk/gtkpathbar.c (_gtk_path_bar_set_home_icon): Start of
1175         icon-setting functions.  Not used yet.
1176         (_gtk_path_bar_set_root_icon): Ditto.
1177         
1178 Thu Mar  4 00:31:54 2004  Matthias Clasen  <maclas@gmx.de>
1179
1180         * gtk/gtktextview.c (extend_selection): 
1181         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
1182         to select the last word in the buffer.  (#135487, Paolo Borelli)
1183
1184 Wed Mar  3 23:54:31 2004  Matthias Clasen  <maclas@gmx.de>
1185
1186         * gtk/gtkentrycompletion.c: Doc update.
1187
1188 Wed Mar  3 17:30:18 2004  Owen Taylor  <otaylor@redhat.com>
1189
1190         * gtk/gtkwindow.c (gtk_window_mnemonic_activate): Check
1191         whether widgets are viewable, not just if they are
1192         mapped. (#122912, reported by Tim Evans)
1193
1194 Wed Mar  3 23:28:48 2004  Matthias Clasen  <maclas@gmx.de>
1195
1196         * gtk/gtkcombobox.c (gtk_combo_box_set_active): Move the actual
1197         implementation into a new gtk_combo_box_set_active_internal() 
1198         function, which doesn't do the short-circuiting. 
1199         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Use
1200         set_active_internal() here, since the active item may change here,
1201         although the index is unchanged.
1202
1203 Wed Mar  3 23:26:49 2004  Matthias Clasen  <maclas@gmx.de>
1204
1205         * gtk/gtkcombobox.c (gtk_combo_box_menu_position): Reintroduce the
1206         traditional option menu placement of the popup for regular combo
1207         boxes. Grids and editable combo boxes use the combo-like placement 
1208         below the entry.  (#136021)
1209         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): 
1210         * gtk/gtkcombobox.c (gtk_combo_box_popup): Call gtk_menu_set_active()
1211         before popping up the menu, to make the placement work.
1212         
1213 Wed Mar  3 17:20:15 2004  Owen Taylor  <otaylor@redhat.com>
1214
1215         * gtk/gtkmain.c (gtk_propagate_event): Special case
1216         scroll events so that they propagate up the widget
1217         heirarchy when received on insensitive widgets.
1218         (#101102, reported by Geoff Reedy)
1219
1220 Wed Mar  3 16:47:10 2004  Owen Taylor  <otaylor@redhat.com>
1221
1222          #109594, reported by Olivier Ripoll
1223
1224         * gtk/gtkentry.c (gtk_entry_size_request): Use max of 
1225         width and digit width for gtk_entry_set_width_chars,
1226         and round up.
1227
1228         * gtk/gtkcolorsel.c (gtk_color_selection_init): Set the
1229         width of the entry to 7 chars.
1230
1231 Wed Mar  3 16:00:10 2004  Owen Taylor  <otaylor@redhat.com>
1232
1233         * configure.in: Strip out the "export-dynamic" libtool
1234         option from library link lines. (#124687, James Henstridge)
1235
1236 Wed Mar  3 16:06:03 2004  Jonathan Blandford  <jrb@gnome.org>
1237
1238         * gtk/gtkfilechooserdefault.c (save_folder_combo_changed_cb):
1239         Don't activate the combo if we're in the midst of changing
1240         folders.
1241
1242 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1243
1244         * tests/testsocket_common.c: (print_hello): don't try and store
1245         pointers in ints. Fixes 64-bit build.
1246
1247 2004-03-03  Federico Mena Quintero  <federico@ximian.com>
1248
1249         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Simplify by
1250         not using a temporary variable, and clarify the documentation.
1251         Fixes #136008.
1252
1253 2004-03-03  Mark McLoughlin  <mark@skynet.ie>
1254
1255         * gtk/gtkexpander.c:
1256         (gtk_expander_enter_notify), (gtk_expander_leave_notify),
1257         (gtk_expander_set_label_widget): Set the label widget's
1258         state to prelight if we're prelit. Fixes bug #136078.
1259
1260 2004-03-03  Murray Cumming  <murrayc@murrayc.com>
1261
1262         * gtk/gtkradiobutton.h, radiomenuitem.h: Corrected the group_changed
1263         signal vfunc declaration, adding the first parameter, which is the
1264         widget emitting the signal.
1265
1266 2004-03-03  Morten Welinder  <terra@gnome.org>
1267
1268         * tests/testfilechooser.c (update_preview_cb): Plug leak.
1269
1270 Tue Mar  2 23:39:55 2004  Jonathan Blandford  <jrb@gnome.org>
1271
1272         * gtk/gtkfilechooserdialog.c
1273         (file_chooser_widget_default_realized_size_changed): Split
1274         function into realized and unrealized variants, and consolidate
1275         the handling fo size-changing and default changing.
1276
1277         * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init):
1278         remove resizable-hints-changed, as it just complicated things.
1279
1280         * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit
1281         resizable-hints-changed.
1282         
1283 2004-03-03  Tor Lillqvist  <tml@iki.fi>
1284
1285         * gtk/gtk.def: Add a missing entry. (#135982, J. Ali Harlow)
1286
1287         * NEWS: Correct spelling of my name in one place.
1288
1289 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1290
1291         * gtk/gtkfilechooserdefault.c
1292         (gtk_file_chooser_default_set_current_folder): Handle errors in
1293         setting the path bar's path.  Fixes #136000, based on a patch by
1294         Morten Welinder.
1295
1296         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1297         Don't free our own propagated error.
1298
1299         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the
1300         parent_path upon error.  Fixes #136006, patch by Morten Welinder.
1301         (gtk_path_bar_set_path): Unref the file_folder upon error.
1302         (gtk_path_bar_set_path): Return a boolean success code.
1303
1304 Wed Mar  3 00:28:59 2004  Matthias Clasen  <maclas@gmx.de>
1305
1306         * tests/testcombochange.c: Add an animation mode, to test 
1307         how the combobox behaves if the model changes while it is popped
1308         up.
1309
1310 Tue Mar  2 17:06:05 2004  Owen Taylor  <otaylor@redhat.com>
1311
1312         * === Released 2.3.5 ===
1313
1314         * NEWS: Updates
1315
1316         * configure.in: Version 2.3.5, interface age 0.
1317         Require glib-2.3.5, pango-1.3.5.
1318
1319 Tue Mar  2 23:08:12 2004  Matthias Clasen  <maclas@gmx.de>
1320
1321         * gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Avoid
1322         popping up the completions across the edge of the monitor.
1323         Part of #135561.
1324
1325 Tue Mar  2 16:47:40 2004  Owen Taylor  <otaylor@redhat.com>
1326
1327         * tests/testfilechooser.c (set_filename_existing_nonexistent_cb): 
1328         Move the /nonexistant stuff out of the main window,
1329         keep the main window somewhat normal looking.
1330
1331 Tue Mar  2 16:18:43 2004  Owen Taylor  <otaylor@redhat.com>
1332
1333         * gtk/gtktreestore.c (gtk_tree_store_reorder)
1334         * gtk/gtkliststore.c (gtk_list_store_reorder): Fix
1335         up the interpretation of new_order to match what
1336         it means elsewhere, document the meaning of new_order.
1337
1338         * gtk/gtkcombobox.c (gtk_combo_box_model_rows_reordered):
1339         Fix interpretation of new_order.
1340
1341         * tests/testcombochange.c (on_reorder): Fix interpretation
1342         of new_order.
1343
1344         * tests/testcombochange.c (on_reorder): Fix hitting
1345         "reorder" with an empty list.
1346
1347 Tue Mar  2 21:23:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1348
1349         Patch from Frederic Crozat, test code from Jean-Philippe
1350         Chancelier. Fixes bug #120479.
1351         
1352         * gtk/gtkcombo.c (gtk_combo_popup_list): Make sure popup belongs
1353         to the right window group.
1354
1355         * gtk/gtkmenu.c (gtk_menu_popup): Same
1356
1357         * tests/testsocket.c (main): Pack the plugs into an hbox instead
1358         of a vbox.
1359
1360         * tests/testsocket_common.c: Add a GtkMenuBar, a GtkCombo and a
1361         GtkComboBox to the children.
1362
1363 Tue Mar  2 14:38:23 2004  Owen Taylor  <otaylor@redhat.com>
1364
1365         * gtk/gtkcombobox.c (gtk_combo_box_model_row_inserted):
1366         If the model was empty before, select the first inserted
1367         item.
1368
1369         * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted):
1370         Fix up the logic for the new row to select.
1371
1372         * gtk/gtkcombobox.c (gtk_combo_box_class_init):
1373         Rename "appearance" property to "appears-as-list".
1374
1375         * tests/testcombochange.c tests/Makefile.am: Test case
1376         for combos and dynamically changing models.
1377
1378 Tue Mar  2 15:19:52 2004  Jonathan Blandford  <jrb@redhat.com>
1379
1380         * gtk/gtkfilechooserdefault.c
1381         (gtk_file_chooser_default_get_resizable_hints): set the default
1382         value, spotted by Morten Welinder.
1383
1384 Tue Mar  2 15:03:15 2004  Jonathan Blandford  <jrb@redhat.com>
1385
1386         * gtk/gtkfilechooserdefault.c
1387         (gtk_file_chooser_default_get_resizable_hints): get the logic
1388         correct.  This will fix sizing on save dialogs.
1389
1390         (save_widgets_create): set_mnemonic_widget.
1391
1392 2004-03-02  Federico Mena Quintero  <federico@ximian.com>
1393
1394         * gtk/gtkfilechooserdefault.c
1395         (gtk_file_chooser_default_set_current_folder): Don't update the
1396         save folder combo if we are already switching folders; based on a
1397         patch by Jonathan Blandford.
1398
1399         * gtk/gtkfilechooserdefault.c (shortcuts_add_current_folder):
1400         Handle failure to insert the path.  Based on a patch by Morten
1401         Welinder attached to bug #135380.
1402
1403         * tests/testfilechooser.c (extra_widget_create): Add a bunch of
1404         buttons to test various things.
1405
1406 Tue Mar  2 20:59:23 2004  Matthias Clasen  <maclas@gmx.de>
1407
1408         * tests/Makefile.am: Add testentrycompletion.
1409
1410         * tests/testentrycompletion.c: New file to test some of the
1411         more exotic GtkEntryCompletion features.
1412
1413 Tue Mar  2 14:38:10 2004  Jonathan Blandford  <jrb@redhat.com>
1414
1415         * tests/testfilechooser.c (main): improve tests a little.
1416
1417 Tue Mar  2 11:45:50 2004  Owen Taylor  <otaylor@redhat.com>
1418
1419         * gtk/gtkcombobox.c: Always connect to the changed
1420         signals on the model, update the active item as
1421         appropriate when rows are inserted/deleted/reordered,
1422         re-layout the menu on ::rows-reordered.
1423
1424         * gtk/gtkcellview.c (gtk_cell_view_set_displayed_row):
1425         Allow %NULL for path to unset and leave no current
1426         path.
1427
1428 Tue Mar  2 19:54:53 2004  Matthias Clasen  <maclas@gmx.de>
1429
1430         * gtk/gtkcombobox.c (gtk_combo_box_list_position): Position
1431         the popup above the sample if there is not enough room below.
1432         Part of #135543.
1433
1434 Tue Mar  2 19:53:36 2004  Matthias Clasen  <maclas@gmx.de>
1435
1436         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make the 
1437         frame for the list mode etched in, to give the popup a slightly
1438         less flat appearance. 
1439
1440 Tue Mar  2 17:55:31 2004  Matthias Clasen  <maclas@gmx.de>
1441
1442         * gtk/gtk.def: Add gtk_combo_box_entry_new_text().  
1443
1444 2004-03-02  Morten Welinder  <terra@gnome.org>
1445
1446         * tests/testfilechooser.c (size_prepared_cb): Don't scale images
1447         that are small enough to fit.  Avoid using incompatibly typed data
1448         pointer.
1449
1450         * gtk/gtkfilechooserdefault.c
1451         (gtk_file_chooser_default_get_resizable_hints): Test the
1452         resize_horizontally pointer, not the deferenced pointer.
1453
1454 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1455
1456         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault): New
1457         flag shortcuts_current_folder_is_volume.
1458         (shortcuts_add_current_folder): Set
1459         impl->shortcuts_current_folder_is_volume as appropriate.
1460         (remove_current_folder_cb): Handle the flag.
1461         (shortcuts_activate_item): Likewise.
1462         (shortcuts_update_current_folder): Handle the
1463         impl->shortcuts_current_folder_active flag; only add the folder if
1464         it doesn't already exist in the list.
1465         (shortcuts_model_create): Don't insert the current folder
1466         separator here.
1467         (shortcuts_add_current_folder): Insert the separator here.
1468         (shortcut_find_position): Renamed from shortcut_exists(); now
1469         returns an index.
1470         (shortcuts_add_current_folder): Set the active item in the combo.
1471
1472 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1473
1474         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated_cb): Eep,
1475         use gtk_tree_model_filter_convert_iter_to_child_iter(), not the reverse.
1476
1477 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1478
1479         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Don't
1480         unref an old model; there isn't one.  This was a leftover from
1481         when we recreated the model on every change.
1482         (save_widgets_create): Create the save folder combo.
1483         (shortcuts_model_create): Don't set the model on the tree view
1484         here.
1485         (gtk_file_chooser_default_constructor): Create the shortcuts model
1486         here, before the rest of the widgets.
1487         (shortcuts_list_create): Don't call shortcuts_model_create() here;
1488         just set the model on the tree.
1489         (save_folder_combo_create): New function, provided by Jonathan
1490         Blandford.
1491         (update_appearance): Set the sensitivity of the folder combo.
1492         (shortcuts_activate_iter): New helper function; code moved from
1493         shortcuts_row_activated_cb().
1494         (shortcuts_activate_item): New helper function.
1495         (shortcuts_row_activated_cb): Use shortcuts_activate_iter().
1496         (ShortcutsIndex): Renamed SHORTCUTS_SEPARATOR to
1497         SHORTCUTS_BOOKMARKS_SEPARATOR.
1498         (struct _GtkFileChooserDefault): New field shortcuts_current_folder_active.
1499         (shortcuts_insert_separator): Add a position argument.
1500         (shortcuts_get_index): Handle the SHORTCUTS_CURRENT_FOLDER_SEPARATOR 
1501         and SHORTCUTS_CURRENT_FOLDER positions.
1502         (shortcut_exists): Ignore the current folder row.
1503         (struct _GtkFileChooserDefault): New field shortcuts_filter_model.
1504         (shortcuts_model_create): Create a filter model for the shortcuts list.
1505         (shortcuts_list_create): Set the model to the shortcuts_filter_model.
1506         (remove_bookmark_button_clicked_cb): Use the shortcuts_filter_model.
1507         (bookmarks_check_remove_sensitivity): Likewise.
1508         (shortcuts_row_activated_cb): Likewise.
1509         (gtk_file_chooser_default_set_current_folder): New function.
1510         (gtk_file_chooser_default_set_current_folder): Update the current
1511         folder row in the shortcuts list.
1512
1513         * gtk/gtkfilechooserwidget.c
1514         (gtk_file_chooser_widget_constructor): Cast correctly for
1515         _gtk_file_chooser_embed_set_delegate().
1516
1517 Mon Mar  1 19:30:25 2004  Owen Taylor  <otaylor@redhat.com>
1518
1519         * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list().
1520         (#127499, based on patch from Michael Natterer)
1521
1522         * tests/testgtk.c: Fix bidi strings to display correctly
1523         with new auto-bidi.
1524
1525 Tue Mar  2 01:34:40 2004  Matthias Clasen  <maclas@gmx.de>
1526
1527         * gtk/gtksettings.c: Remove the include of Xft.h, which is already
1528         dragged in via pangoxft.h.  (#135496, David Hawthorne)
1529
1530 Mon Mar  1 23:52:15 2004  Tim Janik  <timj@gtk.org>
1531
1532         * gtk/gtkbindings.[hc]: expose gtk_bindings_activate_event(), changed
1533         callers.
1534
1535         * gtk/gtkwindow.[hc]: added gtk_window_propagate_key_event() to expose
1536         the key event propagation mechanism used for focus widgets.
1537         (gtk_window_key_release_event): use the same key event propagation logic
1538         as gtk_window_key_press_event().
1539
1540 2004-03-01  Simon Budig  <simon@gimp.org>
1541
1542         * gdk/x11/gdkinput-x11.c: X11 R6.4 specifies 15 events
1543         for the XInput extension. We want to see them all.
1544         We now get Proximity Out events again. Fixes bug #135320.
1545
1546 Tue Mar  2 00:47:21 2004  Matthias Clasen  <maclas@gmx.de>
1547
1548         * gtk/gtkimmodule.c (match_locale): Use case-insensitive
1549         comparison. Fixes XIM module loading on AIX.  (#131277)
1550
1551 Mon Mar  1 23:59:18 2004  Matthias Clasen  <maclas@gmx.de>
1552
1553         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): 
1554         Make it work correctly when the child model is cleared 
1555         completely. (#121633)
1556
1557 2004-03-01  Michael Natterer  <mitch@gimp.org>
1558
1559         * gtk/gtkfilechooserwidget.h: removed accidentially committed char
1560         which broke the build.
1561
1562 Mon Mar  1 16:51:21 2004  Jonathan Blandford  <jrb@redhat.com>
1563
1564         * gtk/gtkfilechooserdialog.c
1565         (file_chooser_widget_default_size_changed): only store the size if
1566         we can resize in that direction.
1567
1568 Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
1569
1570         * gtk/gtkfilechooserwidget.c
1571         (gtk_file_chooser_widget_new_with_backend): new function.  Long
1572         name.
1573
1574 2004-03-01  Morten Welinder  <terra@gnome.org>
1575
1576         * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
1577         needed.
1578
1579         * gtk/gtkfilesystemmodel.c (file_model_node_is_visible): Simplify
1580         semantics and check for errors.
1581
1582         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Propagate errors.
1583
1584         * gtk/gtkfilefilter.c (gtk_file_filter_filter): Don't crash if
1585         display_name is NULL.
1586
1587 Mon Mar  1 14:16:52 2004  Owen Taylor  <otaylor@redhat.com>
1588
1589         Based on patch by Alex Larsson
1590
1591         * gtk/gtkfilechooserdefault.c: Use gtk-file-chooser-backend
1592         GtkSetting to set the backend if the app doesn't specify one.
1593
1594         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c:
1595         Add Gtk/FileChooserBackend.
1596
1597 Mon Mar  1 20:32:06 2004  Tim Janik  <timj@gtk.org>
1598
1599         * autogen.sh:
1600         - exit with $? instead of 1 in case of failure
1601         - exit with $? if ./configure failed
1602           (that's so autogen.sh && make lines work)
1603         - removed --enable-gtk-doc option
1604         - added $AUTOGEN_CONFIGURE_ARGS
1605
1606 2004-03-01  Federico Mena Quintero  <federico@ximian.com>
1607
1608         * gtk/gtkfilechooserdefault.c (list_model_filter_func): Test for
1609         filter_info.uri correctly.  Fixes #135379, pointed out by Damon
1610         Chaplin.
1611         (shortcuts_get_index): Compute the bookmarks index correctly.
1612         Fixes #135714, pointed out by Damon Chaplin.
1613         (gtk_file_chooser_default_list_shortcut_folders): Handle the case
1614         with no shortcuts, and don't run off the end of the list if there
1615         are no bookmarks and their separator.  Fixes #135572, patch by
1616         Damon Chaplin.
1617
1618 Mon Mar  1 12:23:06 2004  Owen Taylor  <otaylor@redhat.com>
1619
1620         * gtk/gtklabel.c: Handle dynamically resolved bidi direction
1621         when drawing the cursor. (#118541)
1622
1623         * gtk/gtkentry.c (get_better_cursor_x): Use entry->resolved_dir;
1624
1625         * gtk/gtkentry.c (draw_insertion_cursor): Fix up
1626         some confusion in parameter ordering.
1627
1628 Mon Mar  1 12:05:54 2004  Jonathan Blandford  <jrb@redhat.com>
1629
1630         * gtk/gtkfilechooserdialog.c
1631         (file_chooser_widget_resizable_hints_changed): Handle
1632         shrinking/growing.
1633
1634 2004-03-01  Michael Natterer  <mitch@gimp.org>
1635
1636         * gtk/gtktextbtree.c: removed underscores from calls to
1637         gtk_text_btree_resolve_bidi().
1638
1639 Mon Mar  1 10:41:27 2004  Owen Taylor  <otaylor@redhat.com>
1640
1641         Patch from Dov Grobgeld to implement auto-bidi-direction
1642         for GtkTextView (#118543)
1643
1644         * gtk/gtktextbtree.[ch]: Resolve bidi base direction
1645         for each line by propagating backwards/forwards as
1646         necessary.
1647
1648         * gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the 
1649         bidi base direction for the ;ine with the cursor from 
1650         the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
1651         
1652 Mon Mar  1 10:31:11 2004  Owen Taylor  <otaylor@redhat.com>
1653
1654         * gtk/gtkentry.[ch]: Implement auto-bidi-direction,
1655         based on a patch from Dov Grobgeld. (#118540)
1656
1657 Sun Feb 29 22:01:49 2004  Owen Taylor  <otaylor@redhat.com>
1658
1659         * gtk/gtkentry.[ch]: Add gtk_entry_set_alignment() 
1660         to allow right-aligned entries and a "xalign" 
1661         property. (#59799, patch from Egon Andersen and 
1662         Steffen Gutmann)
1663
1664         * gtk/gtkmisc.c (gtk_misc_class_init): Use improved
1665         xalign property description here too.
1666
1667         * tests/testtext.c: UNDERLINE_ERROR test addition
1668         from Nicolas Settons' patch.
1669
1670 Sun Feb 29 20:34:06 2004  Owen Taylor  <otaylor@redhat.com>
1671
1672         * gtk/gtkwindow.[ch] gtk/gtkmenushell.c: export
1673         gtk_window_activate_key() (Request from Tim Janik)
1674
1675 Mon Mar  1 01:00:11 2004  Matthias Clasen  <maclas@gmx.de>
1676
1677         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
1678         Make DND operations within a buffer move the dragged 
1679         text instead of copying it; also make DND operations 
1680         a single user action for undo purposes.  (#135191, 
1681         #93139, reported by Tommi Komulainen, patch by Paolo Borelli
1682         and Paolo Maggi)
1683
1684 Mon Mar  1 00:51:11 2004  Matthias Clasen  <maclas@gmx.de>
1685
1686         * NEWS: News for 2.3.5.
1687
1688 Sun Feb 29 23:25:35 2004  Matthias Clasen  <maclas@gmx.de>
1689
1690         * gtk/gtkentry.c (gtk_entry_completion_key_press): 
1691         Fix the Shift-Tab support to go backwards.
1692
1693 Sun Feb 29 16:40:40 2004  Owen Taylor  <otaylor@redhat.com>
1694
1695         * gtk/gtktextview.c (gtk_text_view_class_init): Fix 
1696         capitalization to match other style properties.
1697
1698 Sun Feb 29 16:38:53 2004  Owen Taylor  <otaylor@redhat.com>
1699
1700         * gtk/gtktextview.c (gtk_text_view_class_init): Fix a
1701         typo in property string.
1702
1703 Sun Feb 29 16:35:23 2004  Owen Taylor  <otaylor@redhat.com>
1704
1705         * gdk/gdkpango.c gtk/gtktextdisplay.c: Implement
1706         PANGO_UNDERLINE_ERROR (Based on a patch by
1707         Nicolas Setton, #114237)
1708
1709         * gtk/gtktextview.c: Add a error-underline-color style
1710         property.
1711
1712 Sun Feb 29 19:04:33 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1713
1714         * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
1715         function returning a good step value for the mouse wheel. For
1716         scrollbars, base the step on page_size^(2/3), for other ranges,
1717         use 2 * step_increment.
1718
1719         * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
1720
1721         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): 
1722         ... and here.
1723
1724         * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
1725
1726 Sun Feb 29 01:51:27 2004  Jonathan Blandford  <jrb@gnome.org>
1727
1728         * gtk/gtkfilechooserembed.c
1729         (_gtk_file_chooser_embed_get_default_size):  Add g_return_if_fail()
1730         (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail()
1731
1732         * gtk/gtkfilechooserdialog.c
1733         (file_chooser_widget_default_size_changed): Get the correct
1734         initial size for the dialog.  Also, don't bother with
1735         gtk_window_set_default_size().  It's not really meaningful.
1736
1737         * gtk/gtkfilechooserdefault.c
1738         (gtk_file_chooser_default_get_default_size): Get the correct
1739         spacing for the preview_widget
1740         (update_preview_widget_visibility): Clear widget field after we
1741         destroy it.
1742
1743 2004-02-29  Federico Mena Quintero  <federico@ximian.com>
1744
1745         * gtk/gtkfilechooserdefault.c
1746         (gtk_file_chooser_default_set_property): Handle
1747         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
1748         (gtk_file_chooser_default_get_property): Likewise.
1749         (struct _GtkFileChooserDefault): Added fields for preview_label,
1750         use_preview_label, preview_display_name, preview_box.  Removed
1751         preview_frame.
1752         (set_preview_widget): Reorder the widget in relation to the label.
1753         (update_preview_widget_visibility): Create or destroy the preview
1754         label.
1755         (check_preview_change): Update impl->preview_display_name and the
1756         label.
1757         (find_good_size_from_style): Use the preview_box.
1758         (gtk_file_chooser_default_finalize): Free
1759         impl->preview_display_name.
1760         (gtk_file_chooser_default_init): Initialize
1761         impl->use_preview_label.
1762
1763         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
1764         "use-preview-label" property.
1765         (gtk_file_chooser_set_use_preview_label): New function.  This sets
1766         whether one wants the file chooser to display a stock label with
1767         the previewed filename.  Apps that do really fancy previews can
1768         turn this off and draw the name themselves.
1769         (gtk_file_chooser_get_use_preview_label): New function.
1770         (gtk_file_chooser_get_preview_widget_active): Documentation fix.
1771
1772         * gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
1773         GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
1774
1775         * gtk/gtkfilechooserutils.c
1776         (_gtk_file_chooser_install_properties): Override the
1777         "use-preview-label" property.
1778
1779 Sun Feb 29 04:43:29 2004  Matthias Clasen  <maclas@gmx.de>
1780
1781         * gtk/gtkentry.c (gtk_entry_completion_key_press): Make Tab and
1782         Shift-Tab work when the completion popup is shown.
1783
1784 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
1785
1786         * gtk/gtkfilechooserdefault.c (create_folder_tree): Use "Name" for
1787         the title of the filename column.
1788         (create_file_list): Likewise.
1789
1790 Sun Feb 29 03:31:42 2004  Matthias Clasen  <maclas@gmx.de>
1791
1792         * gtk/gtkentry.c (gtk_entry_completion_key_press): Fix Page_Up 
1793         and Page_Down in the completion popup to move page-wise if we're
1794         scrolling.
1795
1796 2004-02-28  Federico Mena Quintero  <federico@ximian.com>
1797
1798         * gtk/gtkfilechooserdefault.c (set_cell_text_bold_if_folder):
1799         Removed.
1800         (list_name_data_func): Don't call the function above.
1801         (list_mtime_data_func): Likewise.
1802
1803 Sun Feb 29 02:34:35 2004  Matthias Clasen  <maclas@gmx.de>
1804
1805         * gtk/gtkcombobox.c (gtk_combo_box_list_position): New 
1806         function which calculates position and size for the popup in
1807         list mode. Currently it only pushes the popup horizontally 
1808         into the screen.
1809
1810 Sun Feb 29 01:10:09 2004  Matthias Clasen  <maclas@gmx.de>
1811
1812         * gtk/gtkcombobox.c: Implement the previous fix in a better way,
1813         small cleanups.
1814
1815 2004-02-28  Hans Breuer  <hans@breuer.org>
1816
1817         * gtk/gtkfilesystemwin32.c : applied patch from
1818         J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135641
1819
1820 Sat Feb 28 23:30:36 2004  Matthias Clasen  <maclas@gmx.de>
1821
1822         * gtk/gtkcombobox.c (gtk_combo_box_popup): Actually resize the
1823         popup window before popping up.  (#135651)
1824
1825 Sat Feb 28 23:29:35 2004  Matthias Clasen  <maclas@gmx.de>
1826
1827         * gtk/gtkcombobox.c (gtk_combo_box_class_init): 
1828         * gtk/gtkcombobox.c (gtk_combo_box_init): Override the default
1829         handler for style_set in class_init instead of connecting to
1830         the signal in init. (noticed by Yosh).
1831
1832 Sat Feb 28 14:48:35 2004  Owen Taylor  <otaylor@redhat.com>
1833
1834         * demos/gtk-demo/main.c (read_line): #ifdef HAVE_FLOCKFILE, 
1835         not #ifndef HAVE_FLOCKFILE. (#135642, J. Ali Harlow)
1836
1837 2004-02-28  Hans Breuer  <hans@breuer.org>
1838
1839         * gtk/gtkfilesystemwin32.c : adapt to add -> insert_bookmark
1840         change. Also merged some crossplatform code from 
1841         gtkfilesystemunix.c
1842         * gtk/gtk.def : updated externals
1843
1844         * gtk/makefile.msc.in : added gtkfilechooserembed.obj
1845
1846 2004-02-28  Hans Breuer  <hans@breuer.org>
1847
1848         * gdk/win32/gdkdnd-win32.c : set current_dest_drag to NULL
1849         when destroying, fixes bug #120007. Also removed the mirrored
1850         ref counting for deprecated gdk_drag_context_<ref|unref>()
1851         cause it wasn't reliable anymore anyway.
1852
1853         * gdk/win32/gdkdisplay-win32.c : fix typo, which should
1854         have broken the win32 build for everyone not using msvc
1855
1856         * gdk/win32/gdkevents-win32.c : WM_GETMINAMXINFO ensure not to
1857         return negative values for ptMaxTrackSize, it caused snapping
1858         windows to their minimum size
1859
1860 Sat Feb 28 01:39:01 2004  Matthias Clasen  <maclas@gmx.de>
1861
1862         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Support
1863         switching back to non-gridded mode.  (#135169)
1864
1865 Fri Feb 27 22:29:46 2004  Matthias Clasen  <maclas@gmx.de>
1866
1867         * gtk/gtkwidget.c (gtk_widget_can_activate_accel): Add "Since: 2.4".
1868
1869 Fri Feb 27 18:52:19 2004  Jonathan Blandford  <jrb@redhat.com>
1870
1871         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set):
1872         Whoops.  Didn't mean to commit the size change.
1873
1874 Fri Feb 27 18:46:27 2004  Jonathan Blandford  <jrb@redhat.com>
1875
1876         * gtk/gtkfilechooserembed.h: New private interface to help
1877         negotiate the default size of the widget.  Still a bit buggy, but
1878         better than the old behavior.
1879
1880         * gtk/gtkfilechooserdefault.c: Implement the embed interface.
1881
1882         * gtk/gtkfilechooserwidget.c: Proxy the embed interface.
1883
1884         * gtk/gtkfilechooserdialog.c: Use the embed interface.
1885
1886 2004-02-27  Federico Mena Quintero  <federico@ximian.com>
1887
1888         * gtk/gtkfilesystem.c (gtk_file_system_insert_bookmark): Added a
1889         "position" argument.
1890
1891         * gtk/gtkfilesystem.h (GtkFileSystemError): Added value for 
1892         GTK_FILE_SYSTEM_ERROR_ALREADY_EXISTS.
1893         (struct _GtkFileSystemIface): Added a "position" argument to the
1894         ::insert_bookmark() method.
1895
1896         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark):
1897         Updated; renamed from gtk_file_system_unix_add_bookmark().  Return
1898         an error if the path already exists in the bookmarks list.
1899         (gtk_file_system_unix_remove_bookmark): Return an error if the
1900         path does not exist in the bookmarks list.
1901
1902         * gtk/gtkfilechooserdefault.c (shortcuts_add_bookmark_from_path):
1903         For now, use gtk_file_system_insert_bookmark() with -1 for the
1904         position.  DnD will come next.
1905
1906 Fri Feb 27 21:42:28 2004  Matthias Clasen  <maclas@gmx.de>
1907
1908         * gtk/gtkcombobox.c (gtk_combo_box_relayout): 
1909         * gtk/gtkcombobox.c (gtk_combo_box_style_set): Simplify, only 
1910         create a new setup if appearance actually changed.
1911         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear): 
1912         * gtk/gtkcombobox.c (gtk_combo_box_get_cell_info): Make 
1913         these more robust.  (#127623, Damon Chaplin)
1914
1915 Fri Feb 27 15:06:00 2004  Jonathan Blandford  <jrb@redhat.com>
1916
1917         * gtk/gtkfilechooser.c (gtk_file_chooser_class_init): remove
1918         folder-mode property.
1919
1920         * gtk/gtkfilechooserutils.c
1921         (_gtk_file_chooser_install_properties): remove FOLDER_MODE property.
1922
1923 Thu Feb 26 17:38:40 2004  Manish Singh  <yosh@gimp.org>
1924
1925         * gtk/gtkcombobox.c: Add function declaration for
1926         gtk_combo_box_list_remove_grabs().
1927
1928 Fri Feb 27 02:33:21 2004  Matthias Clasen  <maclas@gmx.de>
1929
1930         * gtk/gtkentry.c (keyval_is_cursor_move): Classifiy Page Up/Down as
1931         cursor move, but not Home and End.
1932
1933         * gtk/gtkentry.c (gtk_entry_completion_key_press): Lets Page Up/Down
1934         jump to the ends of the list, not Home and End - since we're not 
1935         scrolling yet, a "page" is always the complete list.  (#127430, Marco
1936         Pesenti Gritti)
1937
1938 Fri Feb 27 00:39:11 2004  Matthias Clasen  <maclas@gmx.de>
1939
1940         * gtk/gtkcombobox.c (gtk_combo_box_list_destroy): 
1941         * gtk/gtkcombobox.c (gtk_combo_box_menu_destroy): Don't let
1942         the priv pointers dangle.  (#127623, Damon Chaplin)
1943
1944 Thu Feb 26 17:31:34 2004  Manish Singh  <yosh@gimp.org>
1945
1946         * gdk/x11/xsettings-client.c (read_settings): fix ytpo: s/eles/else/
1947
1948 Thu Feb 26 19:53:32 2004  Owen Taylor  <otaylor@redhat.com>
1949
1950         * gdk/x11/xsettings-common.h (xsettings_client_process_event): 
1951         Add xsettings_client_set_grab_func,
1952         Add xsettings_client_set_ungrab_func to the list of renames.
1953
1954 Thu Feb 26 19:48:39 2004  Owen Taylor  <otaylor@redhat.com>
1955
1956         * gdk/x11/xsettings-client.c (read_settings): Fix memory leak
1957         in case of mismatched property type.
1958
1959 Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
1960
1961         * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
1962         modes to the enum.
1963
1964         * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
1965         (gtk_file_chooser_get_folder_mode): Remove
1966
1967 Thu Feb 26 17:29:04 2004  Owen Taylor  <otaylor@redhat.com>
1968
1969         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
1970         GDK_FILTER_CONTINUE for unhandled message types.
1971
1972         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
1973         multiple filters for the same event type with the standard
1974         "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
1975
1976         * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
1977         Append to the filter list not prepend, since order now matters.
1978
1979         * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter): 
1980         Append to the filter list not prepend, since order now matters.
1981         
1982 Thu Feb 26 23:39:07 2004  Matthias Clasen  <maclas@gmx.de>
1983
1984         Fixes for #135333, analysed by Damon Chaplin:
1985         
1986         * gtk/gtkcombobox.c (gtk_combo_box_list_button_pressed): Don't
1987         grab here.
1988         * gtk/gtkcombobox.c (gtk_combo_box_popup): Do the grabs here, 
1989         so that we don't forget to grab when the menu is popped via
1990         keynav.
1991         * gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Don't
1992         ungrab here.
1993         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Do the ungrabs here.
1994
1995 Thu Feb 26 23:26:00 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1996
1997         * gtk/gtkstatusbar.c (set_grip_cursor): New function. Use resize
1998         cursors for resize grips. (Bug #129621)
1999
2000         * gtk/gtktoolbar.c (gtk_toolbar_get_relief_style): Documentation
2001         fix - patch by Torsten Schoenfeld.
2002
2003         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): don't request
2004         space between the items. (Bug #110775)
2005
2006         * gtk/gtkrc.c (_gtk_rc_init): Provide extra horizontal padding
2007         inside menu items that are inside a menu bar. (Bug #110775)
2008         
2009         * configure.in (HAVE_XCURSOR): Make XCurosr part of GDK_EXTRA_,
2010         not GDK_PACKAGES, to prevent applications from getting linked to
2011         it (Bug #119804)
2012
2013         * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Put the vertical
2014         ipadding inside the item. (Bug #61843)
2015
2016 Thu Feb 26 22:56:40 2004  Matthias Clasen  <maclas@gmx.de>
2017
2018         * gtk/gtkwidget.c: Replace gtk_widget_get_mnemonic_widgets() 
2019         by list_mnemonic_widgets() in doc comments as well.
2020
2021 Thu Feb 26 16:36:38 2004  Owen Taylor  <otaylor@redhat.com>
2022
2023         Fixes from Torsten Schoenfeld.
2024
2025         * gtk/gtkwidget.c (gtk_widget_add_mnemonic_label): 
2026         Fix name in doc comment.
2027
2028         * gtk/gtkwidget.h: gtk_widget_list_mnemonic_labels(),
2029         not get_mnemonic_labels.
2030
2031 Thu Feb 26 22:20:44 2004  Matthias Clasen  <maclas@gmx.de>
2032
2033         * gtk/gtkcomboboxentry.h:
2034         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): New
2035         convenience API to construct simple text combos, implemented by
2036         Damon Chaplin.
2037
2038         * tests/testcombo.c: Use gtk_combo_box_entry_new_text.
2039
2040 Thu Feb 26 22:19:29 2004  Matthias Clasen  <maclas@gmx.de>
2041
2042         * gtk/gtkcombobox.c (gtk_combo_box_new_text): Improve the docs.
2043
2044 Thu Feb 26 15:43:43 2004  Owen Taylor  <otaylor@redhat.com>
2045
2046         * gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
2047         in a simplified form as gtk_draw_insertion_cursor().
2048         (#99031, request from Alex Larsson)
2049
2050         * gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
2051         Adapt to new gtk_draw_insertion_cursor().
2052
2053         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
2054         gtk/gtkstyle.c (gtk_style_class_init): Add some missed
2055         Since: 2.4.
2056
2057         * gtk/gtkiconfactory.c (icon_size_settings_changed)
2058           gtk/gtkicontheme.c (do_theme_change)
2059           gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
2060         * gtk/gtksettings.c (gtk_settings_notify):
2061         _gtk_rc_reset_styles => gtk_rc_reset_styles.
2062
2063 Thu Feb 26 21:52:58 2004  Matthias Clasen  <maclas@gmx.de>
2064
2065         Fixes for #127804 and #134722, Damon Chaplin:
2066         
2067         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_end): 
2068         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start): 
2069         Ref and sink the cell renderers here.
2070         
2071         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Unref the cell
2072         renderers here, and free attributes and func_data. 
2073
2074 Thu Feb 26 21:41:38 2004  Matthias Clasen  <maclas@gmx.de>
2075
2076         * gtk/gtkrc.c (gtk_rc_reset_styles): Mark as 2.4 API addition.
2077
2078 Thu Feb 26 14:47:22 2004  Dom Lachowicz <cinamod@hotmail.com>
2079
2080         * gtk/gtk.def: Export gtk_rc_reset_styles()
2081
2082 Thu Feb 26 14:47:22 2004  Owen Taylor  <otaylor@redhat.com>
2083
2084         * gtk/gtkrc.[ch]: Export gtk_rc_reset_styles(). 
2085         (Request from Dom Lachowicz, #123769)
2086
2087 Wed Feb 25 19:11:31 2004  Owen Taylor  <otaylor@redhat.com>
2088
2089         * gtk/gtkradiobutton.[ch] gtk/gtkradiomenuitem.[ch]: Add a
2090         ::group-changed signal emitted when the radio button/menu item 
2091         is moved from one group of radio buttons to another. 
2092         (#79563, based partially on a patch from Padraig O'Briain)
2093
2094 Thu Feb 26 13:23:47 2004  Owen Taylor  <otaylor@redhat.com>
2095
2096         * gdk/x11/gdkwindow-x11.c (set_text_property): Use the right
2097         free() function. (#135511, George Bronnikov)
2098
2099 2004-02-26  Federico Mena Quintero  <federico@ximian.com>
2100
2101         * configure.in: Added a comment to inform translators that they
2102         must add .po files to both po/ and po-properties/ when they add
2103         new languages to ALL_LINGUAS.
2104
2105 Wed Feb 25 15:36:50 2004  Owen Taylor  <otaylor@redhat.com>
2106
2107         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text_for_display):
2108         Call g_convert(), not g_convert() with fallback, since Emacs is
2109         happier if we reject the COMPOUND_TEXT request and it can
2110         then ask for UTF-8. (#114527)
2111
2112         * gtk/gtkselection.c (gtk_selection_data_set_text): When
2113         TEXT is requested, if COMPOUND_TEXT fails, fall back to STRING.
2114
2115 Wed Feb 25 22:35:00 2004  Tomasz KÅ‚oczko <kloczek@pld.org.pl>
2116
2117         * cinfigure.in: After changes in G_DEFINE_TYPE minimal required glib
2118         vesion for build gtk+ is now 2.3.3.
2119
2120 Wed Feb 25 16:00:40 2004  Jonathan Blandford  <jrb@gnome.org>
2121
2122         * gtk/gtkfilechooserdefault.c (update_appearance): move the
2123         expander code.
2124
2125 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2126
2127         * configure.in (ALL_LINGUAS): po-properties/sr@ije.po added, so
2128         adding back sr@ije.
2129
2130 2004-02-25  Federico Mena Quintero  <federico@ximian.com>
2131
2132         * configure.in (ALL_LINGUAS): Remove sr@ije until po-properties/
2133         is fixed for it.
2134
2135 Wed Feb 25 12:44:49 2004  Owen Taylor  <otaylor@redhat.com>
2136
2137         * gtk/gtkstyle.[ch]: Make realize and unrealize signals. (#73310)
2138
2139 Wed Feb 25 12:21:32 2004  Owen Taylor  <otaylor@redhat.com>
2140
2141         * gtk/gtkwidget.[ch] gtk/gtklabel.c: Patch from
2142         Padraig O'Briain to add gtk_widget_add/remove_mnemonic_label,
2143         gtk_widget_get_mnemonic_labels(). (#103456)
2144
2145 2004-02-25  Danilo Å egan  <dsegan@gmx.net>
2146
2147         * configure.in: Added sr@ije to ALL_LINGUAS.
2148
2149 Wed Feb 25 09:46:34 2004  Owen Taylor  <otaylor@redhat.com>
2150
2151         * gtk/gtkstyle.c (gtk_style_finalize): Free 
2152         style->icon_factories (#130128)
2153
2154 Wed Feb 25 03:52:58 2004  Jonathan Blandford  <jrb@gnome.org>
2155
2156         * gtk/gtkpathbar.c: use gtk_widget_push/pop_composite_child around
2157         internal buttons.
2158
2159         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2160         rename some widgets to make it clear where they are packed.
2161         (update_appearance): New function to handle all the 'logic' of
2162         layout in one place.  We aren't trying to keep all our properties
2163         in sync.
2164         (gtk_file_chooser_default_set_property): use update_appearance()
2165
2166 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2167
2168         * gtk/gtkfilechooserdefault.c (shortcuts_model_create): Renamed
2169         from create_shortcuts_model().
2170         (struct _GtkFileChooserDefault): Renamed the shortcuts_tree field
2171         to shortcuts_list.
2172         (shortcuts_list_create): Renamed from shortcuts_tree_create().
2173         (create_file_list): Enable the tree view as a model drag source.
2174         (create_folder_tree): Likewise.
2175
2176         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_get_type):
2177         Register the drag source interface.
2178         (drag_source_iface_init): New function.
2179         (drag_source_row_draggable): New function.
2180         (drag_source_drag_data_get): New function.
2181
2182 Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>
2183
2184         * === Released 2.3.4 ===
2185
2186         * configure.in: Bump version to 2.3.4, fix broken
2187         gtk_binary_age value by copying the GLib logic
2188         to automatically set it to the right values.
2189
2190 Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>
2191
2192         * gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
2193         * gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
2194         Don't resize priv->cell_view if it is NULL.  (#127804, 
2195         Damon Chaplin)
2196         
2197 Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>
2198
2199         * gtk/gtkcombobox.c: Add a comment about the different 
2200         modi of this widget. Get rid of priv->hbox, and some other
2201         cleanups. Make sure that gtk_combo_box_unset_model() is 
2202         always called before setting up a different mode. 
2203
2204 Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>
2205
2206         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
2207         underscores in keyval names to spaces. (#131480)
2208
2209 Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>
2210
2211         * m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
2212         Uwe Zeisberger)
2213
2214 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
2215
2216         * === Released 2.3.3 ===
2217
2218         * configure.in: Version 2.3.3, interface age 0.
2219
2220         * NEWS: Finish updates for 2.3.3.
2221
2222 2004-02-24  Federico Mena Quintero  <federico@ximian.com>
2223
2224         * gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
2225         GtkEntry for the filename, not a GtkFileChooserEntry.
2226         (update_chooser_entry): Use gtk_entry_set_text() rather than
2227         _gtk_file_chooser_entry_set_file_part().
2228         (gtk_file_chooser_default_set_current_name): Likewise.
2229         (gtk_file_chooser_default_set_current_folder): Don't set the base
2230         folder of the entry, and don't call update_chooser_entry().
2231         (gtk_file_chooser_default_get_paths): Use the plain entry.
2232         (save_widgets_create): Store the "Save in Folder" label in the
2233         impl structure.
2234         (expander_activate_cb): Set the sensitivity of the label and
2235         combo.
2236         (save_widgets_create): Connect to "notify::expanded" rather than
2237         "activate" on the expander.
2238         (expander_changed_cb): Renamed from expander_activate_cb().  Flip
2239         the conditions again...
2240
2241 Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>
2242
2243         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
2244         column as different if there are 3 or more visible columns.
2245
2246 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2247
2248         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
2249         Fix compilation (#135278, Padraig O'Briain).
2250         
2251 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2252
2253         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2254         Translate the desktop label.
2255         
2256         (shortcuts_get_index), (shortcuts_add_bookmarks),
2257         (shortcuts_insert_separator), (create_shortcuts_model):
2258         Don't show the bookmark separator if there are no bookmarks.
2259         
2260 Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>
2261
2262         * gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
2263         dialog look like the nautilus dialog.
2264         (expander_activate_cb): get the order correct.
2265
2266 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2267
2268         * gtk/gtkfilechooserdefault.c (list_selection_changed): Call
2269         bookmarks_check_add_sensitivity().
2270         (shortcut_exists): New helper function; moved the testing code
2271         over from bookmarks_check_add_sensitivity().
2272         (bookmarks_check_add_sensitivity): Check the contents of the
2273         selection in the file/folder list.  Use shortcut_exists().
2274         (shortcuts_add_bookmark_from_path): Don't insert the bookmark if
2275         the path is already in the shortcuts list.
2276         (add_bookmark_button_clicked_cb): Add the bookmarks from the list
2277         selection or from the current folder, as appropriate.
2278
2279 Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>
2280
2281         * gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
2282         mnemonics.  Sorry translators.
2283
2284 Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>
2285
2286         * NEWS: Additions. This should be complete for the main ChangeLog
2287         now, still need to sift through gdk-pixbuf, docs, and translations.
2288
2289 Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>
2290
2291         * gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
2292         Add a get_size implementation so that we are no longer the same
2293         height as text.
2294
2295 2004-02-24  Anders Carlsson  <andersca@gnome.org>
2296
2297         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
2298         (shortcuts_remove_rows), (shortcuts_append_bookmarks),
2299         (create_shortcuts_model), (shortcuts_tree_create),
2300         (gtk_file_chooser_default_remove_shortcut_folder):
2301         Improve bookmark list rendering by controlling the visibility
2302         of the pixbuf cell so that it will be invisible for the separator
2303         row, also use a list store instead of a tree store for the model
2304         so we won't get unnecessary space for an expander.
2305         
2306 Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>
2307
2308         * gtk/gtkcombobox.c: Add a destroy implementation in order to
2309         set priv->cell_view to NULL before finalize stumbles over the 
2310         dangling pointer. This big array of pointers into the widget 
2311         tree in GtkComboBoxPrivate is really fragile and should be
2312         cleaned up.
2313
2314 Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>
2315
2316         * gtk/gtkfilechooserdefault.c (main_paned_create): use a size
2317         group when allocating space for the buttons at the bottom just in
2318         case.  Also, move the filter to below the file list.
2319
2320 Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>
2321
2322         * gtk/gtkfilechooserdefault.c
2323         (gtk_file_chooser_default_class_init): Seth was confused by
2324         keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
2325         home, not up.
2326
2327 Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>
2328
2329         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
2330         more cleanly.
2331
2332         * gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.
2333
2334 2004-02-23  Federico Mena Quintero  <federico@ximian.com>
2335
2336         Rework the user interface of the file chooser, as per 
2337         Seth Nickell's design.
2338
2339         * gtk/gtkfilechooserdefault.c
2340         (gtk_file_chooser_default_class_init): Add binding signals and bindings:
2341                 "location-popup" - C-l
2342                 "up-folder"      - C-Up
2343                 "home-folder"    - C-Home
2344         (up_folder_handler): New function; moved the code from up_button_clicked().
2345         (up_button_clicked_cb): Call up_folder_handler().
2346         (home_folder_handler): New function.
2347         (location_popup_handler): New function.
2348         (struct _GtkFileChooserDefault): Add an hpaned field.
2349         (gtk_file_chooser_default_set_current_name): Check that we are in
2350         Save mode.
2351         (save_widgets_create): New function, create the widgets specific
2352         to Save mode.
2353         (main_paned_create): New function, create the hpaned's widgets here.
2354         (gtk_file_chooser_default_constructor): Create the open and save
2355         widgets, and show only one set.
2356         (gtk_file_chooser_default_set_property): Show/hide the save widgets.
2357         (gtk_file_chooser_default_get_paths): Only pay attention to the
2358         entry in Save mode.
2359         (update_chooser_entry): Update the entry only in Save mode.
2360         (entry_activate): Removed.
2361
2362 Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>
2363
2364         * configure.in: Remove the configure.in check for fontconfig 
2365         entirely; it's not needed, since PangoXft implies that sufficiently
2366         new fontconfig is present.
2367
2368 Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>
2369
2370         * gtk/gtkpathbar.c (gtk_path_bar_finalize):
2371         for (i = 0; i < 10; i++)
2372           g_print ("I will compile before committing.\n");
2373
2374 Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>
2375
2376         * gtk/gtkfilechooserdefault.c (file_pane_create): Use the
2377         GtkPathBar by default now.
2378
2379         * gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
2380         current path from the path.
2381         (gtk_path_bar_class_init): new signal
2382         (button_clicked_cb): emit the signal when we're selected.
2383         (gtk_path_bar_clear_buttons): Fix a crasher when we weren't
2384         clearing thr first_scrolled_button.
2385
2386 Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>
2387
2388         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
2389         allocation for the toggle button so that it actually shows up 
2390         in LTR list mode.
2391
2392         * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
2393         * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
2394         * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
2395         notification, and avoid excessive relayouting. 
2396
2397 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
2398
2399         Fix bug 134982, reported by Morten Welinder:
2400         
2401         * gtk/gtkpathbar.c (gtk_path_bar_destroy): 
2402         * gtk/gtktooltips.c (gtk_tooltips_destroy): 
2403         * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
2404         parent's ::destroy handler.
2405         
2406         * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
2407         parent's ::dispose handler.
2408
2409 Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>
2410
2411         * gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
2412         stuff with an #ifdef, so we still build with most fontconfig versions.
2413
2414 Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>
2415
2416         * gtk/gtkaction.c: (gtk_action_finalize):
2417         * gtk/gtkclipboard.c: (gtk_clipboard_finalize):
2418         * gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
2419         (gtk_entry_completion_finalize):
2420         * gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
2421         * gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
2422         (gtk_file_system_model_finalize):
2423         * gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
2424         (gtk_icon_theme_finalize):
2425         * gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
2426         * gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
2427         (gtk_ui_manager_finalize):
2428         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
2429         Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
2430         patch by Jan Arne Petersen)
2431
2432 Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>
2433
2434         * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
2435         Don't crash if item is NULL.  (#131542, Dan Damian)
2436
2437 Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>
2438
2439         * configure.in: Add a check for a new enough fontconfig, since
2440         we picked up a direct dependency on it with the Xft settings.
2441
2442 Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>
2443
2444         Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
2445         
2446         * gtk/gtkcheckmenuitem.c: Introduce a new style property 
2447         indicator_size and use it instead of the hardcoded value.
2448         
2449         * gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
2450         item gets enough vertical space for the label and the indicator.
2451
2452 Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2453
2454         * gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
2455         _ for the new Xft settings.
2456
2457 Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2458
2459         Bug 130790 (Federico Mena Quintero, Owen Taylor)
2460         
2461         * gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS
2462
2463         * gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
2464         XSETTINGS
2465         
2466 Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2467
2468         Bug 132502
2469         
2470         * gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
2471         if we enter a non-selectable menu item.
2472
2473         * gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
2474         when the user has left the item.
2475
2476 Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2477
2478         * gtk/docs: Commit auto-generated changes
2479
2480 Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>
2481
2482         * gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar
2483
2484         * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
2485         allocation code.  Works fully in RTL languages, I think.
2486         (gtk_path_bar_scroll_up): Scroll up.
2487         (gtk_path_bar_scroll_down): Scroll down.
2488
2489 2004-02-20  Christian Rose  <menthos@menthos.com>
2490
2491         * configure.in: Added "en_CA" to ALL_LINGUAS.
2492
2493 2004-02-20  Michael Meeks  <michael@ximian.com>
2494
2495         * gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
2496         (gtk_tool_item_class_init): hook it up.
2497         (gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.
2498
2499         * gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
2500         chain to parent, fix strcmp bug.
2501
2502         * tests/testtoolbar.c (main): re-arrange widgets to allow
2503         more overflowing toolbar goodness.
2504
2505 2004-02-20  Alexander Larsson  <alexl@redhat.com>
2506
2507         * gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
2508         Desktop directory is not translated.
2509         (set_tree_model):
2510         There might not be volumes for all paths.
2511         * gtk/gtkfilechooserwidget.c:
2512         (gtk_file_chooser_widget_constructor):
2513         Use gtk_file_chooser_set_current_folder to set cwd.
2514
2515 Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>
2516
2517         * gtk/gtkpathbar.[ch]: New widget to handle the path in the
2518         fileselector implementation.  Not hooked up to anything yet.
2519
2520         * gtk/Makefile.am: support the path bar.
2521
2522 Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>
2523
2524         * gtk/gtkstyle.c (gtk_default_draw_handle): 
2525         (gtk_default_draw_box): Make the paned handles gray when the the 
2526         widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)
2527
2528 Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>
2529
2530         Fixes for #82099:
2531         
2532         * gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
2533         and "Gtk/MenuImages" and map them to "gtk-button-images" and 
2534         "gtk-menu-images".
2535
2536         * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
2537         use it to set the visibility of the embedded image.
2538
2539         * gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
2540         it to set the visibility of an embedded image.
2541
2542 Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>
2543
2544         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
2545         Give each radio action its own value.  (#134889, Paolo Borelli)
2546
2547 2004-02-19  Federico Mena Quintero  <federico@ximian.com>
2548
2549         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
2550         Chain to the parent's ::finalize() handler.  Fixes #134885; caught
2551         by Jan Arne Petersen.
2552
2553 2004-02-19  Mark McLoughlin  <mark@skynet.ie>
2554
2555         Make the entire expander widget width prelight as suggested
2556         by Seth in bug #134263.
2557
2558         * gtk/gtkexpander.c:
2559         (gtk_expander_paint_prelight): impl.
2560         (gtk_expander_paint): use it.
2561         (gtk_expander_redraw_expander): don't only redraw the
2562         arrow when prelit.
2563
2564 2004-02-19  Alexander Larsson  <alexl@redhat.com>
2565
2566         * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
2567         * gtk/gtkfilechooserutils.c:
2568         * gtk/gtkfilechooserutils.h:
2569         * gtk/gtkfilechooserwidget.c:
2570         Remove old file-system property.
2571         Add new file-system-backend string property
2572         
2573         * gtk/gtkfilechooserdefault.[ch]:
2574         Handle the file-system-backend property
2575         
2576         * gtk/gtkfilechooserdialog.[ch]:
2577         (gtk_file_chooser_dialog_new_with_backend):
2578         Remove old file-system property.
2579         Add new file-system-backend string property
2580         Add new function gtk_file_chooser_dialog_new_with_backend
2581         
2582         * gtk/gtkfilesystem.c: 
2583         * gtk/gtkfilesystem.h:
2584         Add filesystem module support.  
2585
2586 2004-02-18  Federico Mena Quintero  <federico@ximian.com>
2587
2588         * gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
2589         from create_shortcuts_tree().
2590         (shortcuts_pane_create): New function.
2591         (button_new): Renamed from toolbar_button_new().
2592         (shortcuts_pane_create): New function, create the whole shortcuts
2593         pane here.
2594         (current_folder_create): Renamed from toolbar_create().  Don't
2595         create the bookmarks buttons here.
2596         (file_pane_create): New function.
2597         (gtk_file_chooser_default_constructor): Use the new helper
2598         functions, and don't use an extra vbox as GtkFileChooserDefault is
2599         already a vbox.
2600
2601 Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>
2602
2603         * gtk/gtkuimanager.h: 
2604         * gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
2605         default handlers for all signals; for consistency and for the
2606         benefit of language bindings which still rely on header parsing
2607         to find the signals.  (#134269, Jeroen Zwartepoorte)
2608         
2609 Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>
2610
2611         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
2612         Improve the efficiency here by prepending on the list and reverting
2613         it after the loop.  (#134435, Christian Biere)
2614
2615 Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>
2616
2617         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
2618         removing the plug from the socket.  (#128546, Christopher Blizzard)
2619
2620 Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>
2621
2622         * gtk/gtkradiomenuitem.h:
2623         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
2624         (gtk_radio_menu_item_new_with_label_from_widget): 
2625         (gtk_radio_menu_item_new_with_mnemonic_from_widget): New
2626         convenience functions analogous to similar API on GtkRadioButton.
2627         (#51700, Vitaly Tishkov, patch by Soeren Sandmann)
2628
2629 Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2630
2631         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
2632         case where the background is a solid color.
2633         (gdk_window_clear_backing_rect): Reset the clip region after use.
2634
2635         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
2636         back to using a scratch GC. Pointed out by Owen Taylor
2637         
2638         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
2639         scratch GC if the passed-in one is NULL
2640
2641 Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2642
2643         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
2644         region back to NULL on cached GC (rest of #134728)
2645
2646 Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2647
2648         Fix bug reported by Nam SungHyun (#134728)
2649         
2650         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
2651         Don't use a cached GC here since the function needs to modify the
2652         foreground color.
2653
2654         * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
2655         to NULL on the cached GC.
2656
2657 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
2658
2659         * gtk/gtkfilechooserdialog.c
2660         (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
2661         This sucks a lot.
2662
2663 Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>
2664
2665         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
2666         peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)
2667
2668 Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2669
2670         GC caching, bug #125645 (based on patch by Brian Cameron)
2671         
2672         * gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
2673         * gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
2674         cached GC's here.
2675         * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
2676         get a scratch gc.
2677         * gdk/gdkinternals.h: Declare the function here
2678
2679         * gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
2680         _gdk_drawable_get_scratch_gc() instead of creating a new GC.
2681         * gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
2682         * gdk/x11/gdkdrawable-x11.c (draw_with_images): same
2683         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
2684         * gdk/gdkwindow.c (gdk_window_end_paint): same
2685         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
2686         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
2687         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
2688
2689 Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>
2690
2691         * gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
2692         priv->columns to 1.
2693
2694 Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>
2695
2696         * gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
2697         priv->columns >= 1 even for empty menus, since we divide by it
2698         somewhere else.  (#133428, Vincent Noel)
2699
2700 Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2701
2702         Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
2703         Taylor.
2704
2705         * gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field
2706
2707         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
2708         depth.
2709
2710         * gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
2711         the colormap, if no colormap, special case depth 1, 
2712
2713         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
2714         _gdk_gc_x11_get_fg_xft_color() to get the foreground color.
2715
2716         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
2717         Special-case bitmaps without a colormap.
2718
2719         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
2720         draw_pixbuf() implementation in the bitmap case.
2721
2722 2004-02-17  Mark McLoughlin  <mark@skynet.ie>
2723
2724         * modules/input/Makefile.am: only reference input method
2725         modules we've actually built. Fixes re-build failure with
2726         stale hangul module lying aroung. Bug #134518.
2727
2728 Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>
2729
2730         * gdk/gdkdraw.c: Revert last commit, please don't commit patches
2731         without approval, this isn't the right way to do it.
2732
2733 2004-02-16  DindinX  <david@dindinx.org>
2734
2735         * gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
2736         segments at a time, since XDrawSegments cannot handle more than this.
2737
2738         fixes bug #122026.
2739         
2740 Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2741
2742         * gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
2743         gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
2744         in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
2745
2746 Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>
2747
2748         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
2749         Split declaration and assignment of combo_box.
2750         
2751         * gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
2752         pointless cast
2753
2754 Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>
2755
2756         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
2757         deprecation note pointing people to GtkComboBox.
2758
2759 Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
2760
2761         * gtk/gtktreednd.c: 
2762         * gtk/gtktreeview.c: Document the tree DND API.
2763
2764         * gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
2765         Call gtk_drag_source_unset().  
2766         
2767 Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>
2768
2769         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
2770         Make stock_size an uint property, to allow custom icon 
2771         sizes. Also clarify the blurb.  (#130047, Erik Grinaker)
2772
2773 Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>
2774
2775         * configure.in: Remove unnecessary STRIP_* definitions, and GNU
2776         make check.
2777
2778 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
2779
2780         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
2781         Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
2782         the very first time you try to save one.
2783
2784 2004-02-13  Federico Mena Quintero  <federico@ximian.com>
2785
2786         Fix #129020.
2787
2788         * gtk/gtkfilechooserdialog.c
2789         (set_default_size): New function, sets a reasonable default size
2790         for the window.
2791         (gtk_file_chooser_dialog_realize): New function, call
2792         set_default_size().
2793         (gtk_file_chooser_dialog_style_set): Likewise.
2794         (gtk_file_chooser_dialog_screen_changed): Likewise.
2795
2796         * tests/testfilechooser.c (main): Don't set a default size for the
2797         dialog.
2798
2799 Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>
2800
2801         * gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
2802         Use do instead of while.  (#134031, Morten Welinder);
2803
2804 Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>
2805
2806         * configure.in: Suppress xsltproc and xmlcatalog checks
2807         if enable_man=no.  (#134162, Julio M. Merino Vidal)
2808
2809 Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>
2810
2811         * configure.in: Remove checks for sgml2html. It was once
2812         used for building the linuxdoc version of the tutorial.
2813         Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)
2814
2815 Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>
2816
2817         Fix various compilation problems (#134312, David
2818         Hawthorne)
2819
2820         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
2821         g_return_if_fail(), not g_return_val_if_fail().
2822
2823         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
2824         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
2825         g_return_if_reached(), not g_return_val_if_reached().
2826         
2827         * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
2828         of some parameters.
2829
2830         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
2831         extra 'scale' parameter.
2832
2833 Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>
2834
2835         Various reentrancy fixes for widgets being destroyed
2836         out of focus-out-event. (#128821, Grant Gayed)
2837
2838         * gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
2839         Ref window and widget over callbacks.
2840
2841         * gtk/gtkwidget.c (gtk_widget_hide)
2842           gtk/gtkwidget.c (gtk_widget_set_child_visible):
2843         Ref the widget before calling _gtk_window_unset_focus_and_default(),
2844         since that can call user callbacks.
2845
2846         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
2847         Do nothing if the widget isn't realized.
2848
2849 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
2850
2851         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
2852         active, RELIEF_NONE buttons that aren't depressed. This improves
2853         the appearance of buttons in notebook tabs.  (#109213, reported
2854         by Benjamin Otte, patch by Rodney Dawes)
2855
2856 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
2857
2858         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
2859         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
2860
2861 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
2862
2863         Fix for #104811, Padraig O'Briain:
2864
2865         * gtk/gtkscale.h:
2866         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
2867         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
2868         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
2869         text and its position from a GtkScale, to make it more accessible. 
2870         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
2871         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
2872         new GtkScale vfunc.
2873
2874 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
2875
2876         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
2877         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
2878
2879 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
2880
2881         * gtk/gtktooltips.h:
2882         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
2883         function to improve the accessibility of tooltips.  (#114851, 
2884         Padraig O'Briain)
2885
2886 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
2887
2888         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
2889         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
2890         add docs.  (#132847)
2891
2892 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
2893
2894         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
2895         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
2896
2897         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
2898         gdk_property_get call instead of 0.
2899
2900         * docs/reference/gdk/tmpl/properties.sgml: Document the above
2901         as GDK_NONE instead of simply 0.
2902
2903 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
2904
2905         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
2906         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
2907
2908 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
2909
2910         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
2911         Correct the docs.
2912
2913 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
2914
2915         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
2916         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
2917         for automatic DND.  (#133485, Tommi Komulainen)
2918
2919 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
2920
2921         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
2922         debug output.
2923
2924 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
2925
2926         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
2927         handler.  If no widget has the focus, try to give it to the
2928         default widget.  If there is no default widget, give it to the
2929         first button.  Fixes the cause for which #59707 was reopened.
2930
2931 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
2932
2933         Fixes #134051.
2934
2935         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
2936         (icon_info_new): Don't initialize the ref_count field.
2937
2938 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
2939
2940         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
2941         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
2942         <kaffeetisch@gmx.de>.
2943
2944 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
2945
2946         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
2947         focus [hv]adjustment correctly when the focus is located deeper
2948         down in the hierarchy.  (#133489)
2949
2950 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
2951
2952         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
2953         arbitrary low upper limits on the xpad, ypad, width and height
2954         properties.  (#129696, John Ellis)
2955
2956 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
2957
2958         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
2959         Ugh. Don't try to free ints, even if they're stored in pointers.
2960         (#133997, Morten Welinder)
2961
2962 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
2963
2964         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
2965         Free the filters.  Fixes #133547, patch by Morten Welinder
2966         <mortenw@gnome.org>.
2967
2968 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
2969
2970         * gdk/x11/xsettings-client.c (read_settings): Avoid
2971         triggering an X error when the client->manager_window
2972         is None...makes logs look cleaner.
2973
2974         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
2975         GDK_NONE to mean AnyPropertyType as documented. (Reported 
2976         by Yu Shao)
2977
2978         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
2979         gdk_x11_screen_get_window_manager_name): Fix error trap
2980         we've been leaking since 2002... (#129538)
2981
2982 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
2983
2984         Fixes the entry-related part of #133852.
2985
2986         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
2987         the file part of the entry if the selected item is a folder.
2988
2989 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
2990
2991         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
2992
2993         * tests/prop-editor.c (create_prop_editor): Free the title.
2994         (object_changed): Free the children list.
2995
2996 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
2997
2998         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
2999         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
3000         these functions.
3001
3002 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3003
3004         * gtk/gtkfilechooserdefault.c (set_list_model): Request
3005         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
3006         filtering will work.  Perhaps we should have a way of aggregating
3007         info types to the model as filters get installed.
3008
3009 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
3010
3011         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3012         Ugh. Don't try to free ints, even if they're stored in pointers.
3013
3014 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3015
3016         Fix #132256.
3017
3018         * gtk/gtkfilechooserdefault.c
3019         (gtk_file_chooser_default_get_paths): Read the contents of the
3020         filename entry in both OPEN and SAVE mode.  In multiple-selection
3021         mode, add this to the selection from the file/folder list.
3022         (struct get_paths_closure): Add a path_from_entry field.
3023         (get_paths_foreach): Only add the iterated path if it is not the
3024         same as the path from the entry.
3025
3026 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
3027
3028         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
3029         the folder is already open, add the requested info types to it.
3030
3031 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
3032
3033         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
3034         type casts for the gtk_window_set_screen() call.
3035
3036 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
3037
3038         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
3039         come up on the same screen as the combo box.  (#133544, 
3040         Morten Welinder)
3041
3042 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
3043
3044         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
3045         packing of the file selector.
3046
3047 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
3048
3049         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
3050         calls in array initializers, as some compilers seem to hate this.
3051         (#133216, Jonas Jonsson)
3052
3053 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
3054
3055         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
3056         by on-demand instantiating a singleton object with a "changed" 
3057         signal. 
3058
3059         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
3060         for GtkAccelMap::changed.
3061
3062 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
3063
3064         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
3065         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
3066         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
3067         Actually free the lists. Pointed out by Morten Welinder.
3068         
3069 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
3070
3071         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
3072         positions in UTF-8 strings correctly.  (#133315, Theppitak 
3073         Karoonboonyanan)
3074
3075 2004-02-06  Morten Welinder  <terra@gnome.org>
3076
3077         * gtk/gtktoolbar.c (show_menu): Cleanup using
3078         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
3079
3080 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3081
3082         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
3083         list.  Fixes #133546.
3084
3085 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
3086
3087         Fix #132327.
3088
3089         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
3090         folder_hash field to keep a list of live folder objects.
3091         (gtk_file_system_unix_init): Create the folder_hash.
3092         (gtk_file_system_unix_finalize): Destroy the folder_hash.
3093         (gtk_file_system_unix_get_folder): Ref and return an existing
3094         folder if we have it around, otherwise return a new folder object.
3095         (struct _GtkFileFolderUnix): Add a field for the parent file system.
3096         (gtk_file_folder_unix_finalize): Remove the folder from the file
3097         system's hash table.
3098         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
3099         newly-created folder's parent.  Fixes #132327.
3100
3101 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
3102
3103         * gtk/gtkstock.c (builtin_items): Change the labels of the 
3104         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
3105         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
3106         Suárez-Alvarez)
3107
3108 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
3109
3110         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
3111         function to plug a few memory leaks.  (#133544, Morten Welinder)
3112
3113 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
3114
3115         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
3116         Support mnemonic_activate here as well.
3117         
3118         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
3119         the button, not the tree_view.
3120
3121 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
3122
3123         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
3124         function, to make mnemonic_activate work for combo boxes.
3125         (#133443, Paolo Borelli)
3126
3127 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3128
3129         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
3130         to FALSE.  (#133539, Morten Welinder)
3131
3132 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
3133
3134         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
3135         of the depth one check.  (#133488, Christian Persch)
3136
3137 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
3138
3139         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
3140         the drawing of tearoff menu items which don't come first in their
3141         menu.  (#33311)
3142
3143 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
3144
3145         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
3146         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
3147
3148 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
3149
3150         Fix #59707.
3151
3152         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
3153         the focus chain.
3154         (gtk_label_button_press): Fix prototype.
3155         (gtk_label_button_release): Likewise.
3156         (gtk_label_motion): Likewise.
3157
3158         * tests/testgtk.c (create_message_dialog): For the dialog with
3159         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
3160
3161 2004-02-04  Morten Welinder  <terra@gnome.org>
3162
3163         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
3164         bug 133411, apart from the leak.)
3165
3166 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
3167
3168         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
3169         in g_object_new, since it depends on lower and upper being set.
3170
3171 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3172
3173         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
3174         window not resizable.  Fixes #114032.
3175
3176 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3177
3178         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
3179         documentation for the use_separator style property.
3180
3181 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
3182
3183         Fix #68938.
3184
3185         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
3186         GtkDialog; right now it only contains an ignore_separator field.
3187         (gtk_dialog_class_init): Register the private structure.
3188         (gtk_dialog_init): Initialize the priv->ignore_separator field.
3189         (_gtk_dialog_set_ignore_separator): New private function.
3190         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
3191
3192         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
3193         use_separator style property.
3194         (gtk_message_dialog_style_set): Change the dialog's separator
3195         based on the style property.
3196         (gtk_message_dialog_init): Set the dialog box to ignore the
3197         separator setting.
3198
3199 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
3200
3201         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
3202         also dist gtkfilesystemwin32.[hc].
3203
3204 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
3205
3206         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
3207         in rtl mode.  (#129071, chinen@jp.ibm.com)
3208
3209 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
3210
3211         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
3212         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
3213         mode.  (#107528)
3214
3215 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
3216
3217         Clip narrow columns in rtl-oriented tree views (#128089,  
3218         chinen@jp.ibm.com):
3219         
3220         * gtk/gtkstyle.c (gtk_default_draw_option): 
3221         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
3222         given area.
3223
3224         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
3225         Use the right clip area when calling gtk_cell_renderer_render().
3226         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
3227         Use the right clip area when calling gtk_paint_focus().
3228         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
3229         Use the right clip area when calling gtk_paint_toggle() or
3230         gtk_paint_check().
3231         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
3232         Clip to the expose_area when drawing the background rectangle.
3233         
3234 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3235
3236         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
3237         Use a weak reference instead of ref()/unref(). (#60857, reported
3238         by Joshua N Pritikin)
3239
3240         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
3241
3242 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
3243
3244         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
3245         init_hadjust_value and prev_width.
3246         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
3247         them here.
3248         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
3249         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
3250         here to properly handle the initial position of rtl-oriented
3251         tree views.  (#127581, chinen@jp.ibm.com)
3252
3253 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3254
3255         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
3256
3257         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
3258         we handle an event in the colums, and FALSE at the end if the
3259         event is not handled at all.
3260
3261 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
3262
3263         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
3264         Don't access the level after removing the node, since that may
3265         kill the level.  (#132615, Crispin Flowerday)
3266
3267 2004-02-02  Tor Lillqvist  <tml@iki.fi>
3268
3269         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
3270         in all cases. If no grab cursor specified, use the grabbing
3271         window's cursor. If the grabbing window has no cursor, use the
3272         default arrow cursor. (#118025)
3273
3274 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
3275
3276         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
3277         latest in menu separation technology.
3278
3279 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3280
3281         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
3282         we have to take our chances with).
3283         
3284         (Bug 97510)
3285
3286 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3287
3288         Fix bug 110224.
3289
3290         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
3291         Remove unused variable 'result'
3292
3293         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
3294
3295         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
3296         here.
3297
3298 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
3299
3300         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
3301         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
3302
3303 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3304
3305         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
3306         sliding when using the new API.
3307
3308 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3309
3310         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3311         item_area is positioned correctly. Fix #133070, reported by Jeroen
3312         Zwartepoorte.
3313
3314 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
3315
3316         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
3317         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
3318         muppet)
3319
3320 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
3321
3322         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
3323         the documentation for new_order.  (#124790, Tim-Philipp Müller)
3324
3325 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
3326
3327         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3328         Reset use_resized_width when setting fixed_width.  (#108612, 
3329         Felipe Heidrich) 
3330
3331 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
3332
3333         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
3334         GtkKeySnooperData.  (#132038, R. McFarland)
3335
3336 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3337
3338         Fixes #132975.
3339
3340         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
3341         not FALSE.
3342         (gtk_file_system_volume_render_icon): Likewise.
3343
3344         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
3345         Likewise.
3346
3347         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
3348         not FALSE.
3349
3350         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
3351         FALSE.
3352
3353         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
3354         not FALSE.
3355         (gtk_text_iter_get_bytes_in_line): Likewise.
3356
3357         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
3358         Likewise.
3359
3360         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
3361         0.
3362
3363 2004-01-30  Not Zed  <NotZed@Ximian.com>
3364
3365         Fixes #132929.
3366
3367         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
3368         handler when we clear the timeout id.
3369
3370 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3371
3372         Fix #129872, based on a patch by Jan Arne Petersen
3373         <jpetersen@uni-bonn.de>
3374
3375         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
3376         Implement.
3377         (gtk_file_system_unix_add_bookmark): Implement.
3378         (gtk_file_system_unix_remove_bookmark): Implement.
3379
3380 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3381
3382         Fixes #132693.
3383
3384         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
3385         use filename_from_path().  Also, check that the filename is
3386         absolute.
3387         (gtk_file_system_unix_get_folder): Likewise.
3388         (gtk_file_system_unix_create_folder): Likewise.
3389         (gtk_file_system_unix_make_path): Likewise.
3390         (gtk_file_system_unix_parse): Likewise.
3391         (gtk_file_folder_unix_get_info): Likewise.
3392         (filename_from_path): Removed.
3393
3394 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
3395
3396         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
3397         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
3398
3399 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
3400
3401         * gdk/x11/gdkdrawable-x11.c: Revert changes from
3402         #113476 and go back to using XftDrawSetClip, because
3403         XftDrawSetClipRectangles is buggy in XFree86-4.3.
3404
3405 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
3406
3407         * gtk/gtktextlayout.c (line_display_iter_to_index)
3408         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
3409         adjust the preedit position for lines that include the
3410         preedit string. (#132353, Yao Zhang). How the heck
3411         did this work as well as it did?!?!
3412
3413         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
3414         Reverse change to change of XNFilterEvents event mask from
3415         #110493 -- it's documented and in the Xlib code an
3416         unsigned long. 
3417         
3418         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
3419         Return -1 rather than void to indicate no length limit.
3420         (#129548)
3421
3422 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
3423
3424         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
3425         (#64601, Murray Cumming)
3426
3427 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
3428
3429         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
3430         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
3431         
3432 2004-01-28  Richard Hult  <richard@imendio.com>
3433
3434         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
3435         Free font_desc.  Fixes #132805.
3436
3437 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
3438
3439         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
3440         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
3441         Fixes #132574.
3442
3443 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
3444
3445         * gtk/gtkselection.c (gtk_selection_default_handler): 
3446         nul-terminate the target atoms. (#132656, Christian Persch)
3447
3448 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
3449
3450         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
3451         Don't leak path if we bail out early.  (#132505, Christian Persch)
3452
3453 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
3454
3455         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
3456         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
3457         reference counting on the user_data that is shared between
3458         multiple signal handlers, to avoid calling the destroy notify
3459         multiple times.  (#132447, Adam Hooper)
3460
3461 2004-01-28  Hans Breuer  <hans@breuer.org>
3462
3463         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
3464           gtk/gtkstock.[hc] : ... define ...
3465           gtk/gtkiconfactory.c : ... register ...
3466           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
3467         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
3468         IFace changes.
3469
3470         * gtk/gtk.def : added a bunch of new exported symbols
3471
3472         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
3473         on filter_info->display_name being NULL
3474
3475         * tests/testgtk.c : make testgtk --bench=all work again
3476
3477 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
3478
3479         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
3480         Don't leak string.  (#132482, Christian Persch)
3481
3482 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
3483
3484         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
3485         1.8 won't whine at us.
3486
3487 2004-01-28  Tor Lillqvist  <tml@iki.fi>
3488
3489         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
3490         synthesize_enter_event): Don' generate enter or leave events if
3491         the pointer is grabbed with owner_events off, and the grab event
3492         mask doesn't ask for them. (#129242)
3493
3494         (gdk_event_translate): Ditto for focus change events.
3495
3496 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
3497
3498         Fix #132314.
3499
3500         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
3501
3502         * gtk/gtkfilesystem.c: Likewise.
3503
3504         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
3505         icon-type code.
3506         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
3507         from GtkFileInfo to here.
3508         (gtk_file_system_unix_volume_render_icon): Implement.
3509
3510 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
3511
3512         * modules/input/imhangul-defs.h: 
3513         * modules/input/imhangul.c:
3514         * modules/input/Makefile.am: Remove broken hangul input module.
3515         
3516 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3517
3518         * gtk/gtktoolbar.c: Remove obsolete comment.
3519
3520         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
3521         SPACE_LINE_END): Make separators wider and taller, so they are
3522         easier to pick up when editing the toolbar.
3523
3524         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
3525         a bit, 
3526
3527         * gtk/gtktoolbar.c (rect_within): Formatting fix
3528
3529         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
3530         sliding feel more responsive by only restarting sliding when the
3531         placeholder actually changes its goal allocation.
3532
3533 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
3534
3535         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
3536         compiler warning.  (#122725, Kjartan Maraas)
3537         
3538 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
3539
3540         Make menus work better on Xinerama (#126150):
3541         
3542         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
3543         monitor_num on the screen of the menu, not of the attach widget.
3544
3545         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
3546         (gtk_menu_window_size_request): Remember the monitor_num.
3547
3548 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
3549
3550         Fix #105497; constify uses of GdkColor.
3551
3552         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
3553         (gdk_gc_set_rgb_bg_color): Constify.
3554         (gdk_gc_set_foreground): Constify.
3555
3556         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
3557         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
3558         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
3559
3560         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
3561         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
3562         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
3563
3564         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
3565         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
3566         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
3567
3568         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
3569         (gdk_draw_layout_with_colors): Constify.
3570
3571         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
3572         (gdk_pixmap_colormap_create_from_xpm): Constify.
3573         (gdk_pixmap_create_from_xpm): Constify.
3574         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
3575         (gdk_pixmap_create_from_xpm_d): Constify.
3576
3577         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
3578
3579         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
3580         (gtk_clist_set_background): Constify.
3581
3582         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
3583         (gtk_color_button_set_color): Constify.
3584
3585         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
3586         Constify and add a check for color != NULL.
3587         (gtk_color_selection_get_current_color): Add a check for color != NULL.
3588         (gtk_color_selection_set_previous_color): Constify and add a check
3589         for color != NULL.
3590         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
3591
3592         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
3593         (gtk_ctree_node_set_background): Constify.
3594
3595         * gtk/gtktext.c (gtk_text_insert): Constify.
3596         (insert_text_property): Constify.
3597         (text_properties_equal): Constify.
3598         (new_text_property): Constify.
3599
3600         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
3601         (gtk_widget_modify_fg): Constify.
3602         (gtk_widget_modify_bg): Constify.
3603         (gtk_widget_modify_text): Constify.
3604         (gtk_widget_modify_base): Constify.
3605
3606 2004-01-26  Christian Rose  <menthos@menthos.com>
3607
3608         * configure.in: Added "mi" to ALL_LINGUAS.
3609
3610 2004-01-25  Tor Lillqvist  <tml@iki.fi>
3611
3612         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
3613         WM_TRANSIENT_FOR property is being deleted, set the owner of the
3614         window to the root window (i.e., effectively unset it). (#132411)
3615
3616         * gdk/win32/gdkprivate-win32.h
3617         * gdk/win32/gdkglobals-win32.c
3618         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
3619         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
3620
3621         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
3622
3623 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3624
3625         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
3626         to map/unmap items on whether they are actually allocated outside
3627         the toolbar, not on whether that will eventually happen. Improves
3628         animation in the presence of overflown items.
3629
3630         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
3631         queue_resize() to so that the items will get their new goal
3632         values and the idle handler will not immediately return FALSE.
3633
3634         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
3635         make sure that a placeholder becoming invisible doesn't cause a
3636         return TRUE.
3637
3638         * gtk/gtktoolbar.c (get_item_size): Don't special case
3639         placeholders here.
3640
3641 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3642
3643         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
3644         try to pack icon if there actually is one.
3645
3646         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
3647         OVERFLOWN items get an allocation even when they are
3648         unmapped. This ensures they will slide in properly.
3649
3650         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
3651         when there are overflown items that need to slide in. Also add
3652         comments and make formatting more readable.
3653
3654 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3655
3656         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
3657         Add a write-only property ::group to be consistent with
3658         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
3659         Andrieu)
3660
3661 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
3662
3663         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
3664         font description.  (#132168)
3665
3666 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
3667
3668         Fix #132247.
3669
3670         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
3671         mode.
3672         (set_select_multiple): Optionally notify about changes to the
3673         select-multiple property.
3674         (list_selection_changed): Change the condition for the editable row to
3675         test for save mode; this is more clear than testing for not being
3676         in multiple selection mode.
3677         (gtk_file_chooser_default_get_paths): Get impl->action directly
3678         rather than calling gtk_file_chooser_get_action().
3679         (entry_activate): Likewise.
3680         (set_select_multiple): Annotate about #133255.
3681         (update_chooser_entry): Likewise.
3682         (check_preview_change): Likewise.
3683         (tree_selection_changed): Likewise.
3684
3685 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
3686
3687         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
3688         when there are no columns, or all columns are hidden, #131402
3689
3690 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3691
3692         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
3693         mistake. Change back to 225.
3694
3695 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
3696
3697         * === Released 2.3.2 ===
3698
3699 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
3700
3701         * gtk/gtkicontheme.c: Patch from Christian Neumair
3702         to make warning string more translator friendly.
3703
3704         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
3705         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
3706         happy.
3707
3708         * configure.in: Require GLib-2.3.2, version 2.3.2,
3709         interface age 0, binary age 302.
3710
3711         * NEWS: Organized, added some names.
3712
3713 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
3714
3715         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
3716
3717 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
3718
3719         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
3720         GtkWidget::popup_menu.
3721
3722 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
3723
3724         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
3725         info after calling gtk_menu_do_remove(), since that function
3726         uses the attach info. Doh!
3727
3728         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
3729         for being 1 directly after setting it to 0.
3730
3731 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3732
3733         * NEWS: Updates
3734
3735 2004-01-22  Alexander Larsson  <alexl@redhat.com>
3736
3737         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
3738         Fix typo
3739
3740 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
3741
3742         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
3743         Free the path fields.
3744
3745         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
3746         the root_path, reported by <scott@asofyet.org>
3747         (gtk_file_system_model_finalize): Unref the file system.
3748
3749         * gtk/gtkfilefilter.c (filter_rule_free): default:
3750         g_assert_not_reached().
3751         (gtk_file_filter_finalize): Free the filter->name, reported by
3752         <scott@asofyet.org>
3753         (gtk_file_filter_finalize): Free the rules list.
3754
3755 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
3756
3757         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
3758         color button when an alpha is set.
3759         (gtk_color_button_set_alpha): redraw the color button when an
3760         alpha is set.
3761
3762 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
3763
3764         Fix #131869: 
3765         
3766         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
3767         a reference to the group while emitting the signals.
3768
3769         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
3770         destroy notify which does not only unref, but also resets
3771         the action_group property of the action.
3772
3773 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3774
3775         * NEWS: Added details about GtkFileChooser changes.
3776
3777 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
3778
3779         Fix #99425, add accessor functions for GtkPaned's children.
3780
3781         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
3782         (gtk_paned_get_child2): New function.
3783
3784 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
3785
3786         * NEWS: Start of 2.3.2 section.
3787
3788 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
3789
3790         Fixes for #130370, based on a patch by Michael Meeks:
3791         
3792         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
3793         adjust cell positions and recalculate row and column counts after
3794         removing an item.
3795
3796         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
3797
3798         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
3799         appending items.
3800
3801         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
3802         to avoid an unintended recursion.
3803
3804 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
3805
3806         Fix #131418.
3807
3808         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
3809         function.
3810         (gtk_file_chooser_default_set_property): Use
3811         set_select_multiple().  Also, re-set this mode to single if the
3812         file chooser is set to Save mode.
3813         (entry_activate): Handle the case where the entry is completely
3814         empty *and* its current folder does exist.  Also, there is need to
3815         test for select_multiple here now that we ensure that it won't
3816         happen during Save mode.
3817
3818 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3819
3820         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
3821         _gtk_toolbar_get_default_space_size ();
3822
3823         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
3824         get_space_size): Use them here.
3825
3826 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3827
3828         * tests/testgtk.c (create_toolbar): Set a small size request and
3829         make the window resizable, to test mapping/unmapping of buttons.
3830
3831         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
3832         gtk_toolbar_insert_tool_item): remove these functions.
3833
3834         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
3835         toolbar_content_show_all, gtk_toolbar_hide_all,
3836         toolbar_content_hide_all): New functions. 
3837
3838         Ignore show_all/hide_all for buttons created in compatibility mode.
3839
3840         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
3841         gtk_toolbar_hide_all): Make sure buttons are ignored by
3842         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
3843         
3844         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
3845
3846         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
3847         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
3848
3849         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
3850         could become NULL.
3851
3852         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
3853         instead of prepending them.
3854
3855         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
3856         'elapsed' for all items.
3857
3858         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
3859         into bitfields.
3860
3861         * gtk/gtktoolbar.c: Many formatting fixes
3862         
3863 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
3864
3865         * configure.in: Add the necessary magic to create
3866         po-properties/Makefile.
3867
3868 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
3869
3870         The second part of the fix for #114351 (see also 
3871         gdk-pixbuf/ChangeLog and po/ChangeLog):
3872
3873         * Makefile.am (SUBDIRS): Add po-properties.
3874
3875         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
3876
3877         * gdk/gdkintl.h (P_): 
3878         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
3879
3880         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
3881         bind_textdomain_codeset for gtk20-properties as well.
3882
3883 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3884
3885         * gtk/gtktoolbar.c: 
3886
3887         Fix rest of #128678: Implement all the toolbar_content()
3888         methods for the old API case.
3889
3890 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3891
3892         * gtk/gtktoolbar.c: 
3893
3894         Phase 1 of fixing #128678: Only access ToolbarContent through a
3895         set of new functions:
3896
3897         toolbar_content_expose, toolbar_content_visible,
3898         toolbar_content_size_request, toolbar_content_is_homogeneous,
3899         toolbar_content_get_child_requisition,
3900         toolbar_content_is_placeholder, toolbar_content_disappearing,
3901         toolbar_content_get_state, toolbar_content_child_visible,
3902         toolbar_content_get_goal_allocation,
3903         toolbar_content_get_allocation,
3904         toolbar_content_set_start_allocation,
3905         toolbar_content_get_start_allocation, toolbar_content_get_expand,
3906         toolbar_content_set_goal_allocation,
3907         toolbar_content_set_child_visible, toolbar_content_size_allocate,
3908         toolbar_content_set_state, toolbar_content_get_widget,
3909         toolbar_content_set_disappearing,
3910         toolbar_content_set_size_request,
3911         toolbar_content_toolbar_reconfigured,
3912         toolbar_content_retrieve_menu_item, 
3913         toolbar_content_new_tool_item, toolbar_content_destroy,
3914         toolbar_content_is_separator
3915
3916         Also fix #127092.
3917         
3918 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3919
3920         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
3921         item ID.
3922
3923 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
3924
3925         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
3926         overflow menu.
3927         
3928         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
3929         [#127726]
3930
3931 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
3932
3933         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
3934         has_editable field.
3935         (_gtk_file_system_model_add_editable): New function.
3936         (_gtk_file_system_model_remove_editable): New function.
3937         (gtk_file_system_model_get_value): Return appropriate values for
3938         the temporary editable row.
3939         (_gtk_file_system_model_get_info): Handle the editable row.
3940         (_gtk_file_system_model_get_path): Likewise.
3941
3942         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
3943         Removed an unused variable.
3944         (toolbar_button_new): Optionally show the button.
3945         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
3946         (toolbar_create): Add a "New Folder" button for Save mode.
3947         (error_building_filename_dialog): New helper function.
3948         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
3949         (create_file_list): Connect to the "edited" signal of the text
3950         cell renderer.  Store the name column and text renderer in the
3951         impl structure.
3952         (renderer_edited_cb): New callback.
3953         (gtk_file_chooser_default_set_property): Show/hide the "New
3954         folder" button when the save action changes.
3955         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
3956         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
3957         tree_model.
3958         (get_list_file_info): Likewise!
3959         (list_icon_data_func): Handle the path being NULL.
3960         (new_folder_button_clicked): New callback.
3961         (list_name_data_func): If we are on the editable row, set the text
3962         to "Type name of new folder".
3963         (list_selection_changed): Handle the editable row.
3964         (list_mtime_data_func): Likewise.
3965
3966         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
3967         NULL, not FALSE.
3968         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
3969
3970 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
3971
3972         The first part of the fix for #114351 (see also 
3973         gdk-pixbuf/ChangeLog and po/ChangeLog):
3974         
3975         * gtk/gtkintl.h: 
3976         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
3977
3978         * gdk/gdkdisplaymanager.c:
3979         * modules/input/gtkimcontextxim.c:
3980         * gtk/*.c:  Mark property blurbs and nicks with P_().
3981         
3982 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
3983
3984         Fix #130969.
3985
3986         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
3987         editing_canceled signal.
3988
3989         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
3990         "editing-canceled" signal.
3991         (gtk_cell_renderer_editing_canceled): New function.
3992
3993         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
3994         Call gtk_cell_renderer_editing_canceled().
3995
3996 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
3997
3998         * gtk/gtkfilechooserdefault.c
3999         (gtk_file_chooser_default_set_property): Do not allow setting
4000         select_multiple when in Save mode.
4001         (set_list_model): No need to nullify the list_model and
4002         sort_model.
4003         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
4004         (get_paths_foreach): Likewise.
4005
4006         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
4007         documentation about folder mode.
4008         (gtk_file_chooser_get_uri): Likewise.
4009
4010 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
4011
4012         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
4013         get_volume_for_path() method.
4014         (struct _GtkFileSystemIface): Finally removed the list_roots() and
4015         get_root_info() methods, and the "roots-changed" signal.
4016
4017         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
4018         function.
4019         (gtk_file_system_list_roots): Removed.
4020         (gtk_file_system_get_root_info): Removed.
4021
4022         * gtk/gtkfilesystemunix.c
4023         (gtk_file_system_unix_get_volume_for_path): Implement.
4024         (get_root_volume): New helper function.
4025         (gtk_file_system_unix_list_volumes): Use get_root_volume().
4026         (gtk_file_system_unix_list_roots): Removed.
4027         (gtk_file_system_unix_get_root_info): Removed.
4028
4029         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
4030         accept a NULL root_path.
4031         (struct _GtkFileSystemModel): Add a field to remember the
4032         root_path.
4033         (_gtk_file_system_model_new): Store the root_path in the model
4034         structure.
4035         (find_and_ref_path): Stop going up the hierarchy at the root_path
4036         of the model.  Also, don't return prematurely when walking up the
4037         hierarchy.
4038
4039         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
4040         the rules_hint.
4041         (struct _GtkFileChooserDefault): Added a current_volume_path field.
4042         (set_tree_model): New function; create the folder tree model here.
4043         (create_folder_tree): Don't create the model here.
4044         (set_list_model): Set the show_hidden flag on the list model.
4045
4046 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
4047
4048         * gtk/gtknotebook.h:
4049         * gtk/gtknotebook.c (gtk_notebook_append_page): 
4050         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
4051         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
4052         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
4053         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
4054         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
4055         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
4056
4057 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
4058
4059         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
4060         a 'newly-allocated' to hint that the list should be freed after
4061         use.
4062
4063 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
4064
4065         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
4066         to after handling the button presses in the TreeView to avoid
4067         getting multiple selection_changes()
4068
4069 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
4070
4071         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
4072         Karoonboonyanan)
4073
4074 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
4075
4076         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4077         Don't leak name and stock_id.  (#131358, Morten Welinder)
4078
4079 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
4080
4081         * docs/faq/gtk-faq.sgml: Updates to Section 5
4082
4083 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4084
4085         * gtk/gtkradioaction.c: Add a writable group property to align
4086         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
4087
4088 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
4089
4090         * docs/faq/gtk-faq.sgml: Update info on using autoconf
4091
4092 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
4093
4094         * tests/testmerge.c: Adjust to the new connect_proxy signals.
4095
4096         * gtk/gtkuimanager.c
4097         * gtk/gtkactiongroup.c
4098         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
4099         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
4100         removes the confusion between the disconnect_/connect_proxy signals 
4101         and the (unrelated) virtual functions of the same name and aligns
4102         the setup with the pre_/post_activate signals.
4103
4104 2004-01-12  Jody Goldberg <jody@gnome.org>
4105
4106         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
4107           with no submenus otherwise it looks like we activate every time a
4108           submenu opens.
4109
4110 2004-01-12  Jody Goldberg <jody@gnome.org>
4111
4112         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
4113
4114 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
4115
4116         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
4117         (gtk_accel_map_lock_path): 
4118         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
4119         entry is silently created during lock_path(), and treated as an error 
4120         during unlock_path(). These changes have been requested by Tim Janik.
4121
4122 2004-01-10  Jody Goldberg <jody@gnome.org>
4123
4124         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
4125         s/merge_signals/ui_manager_signals/ for readability.
4126         (gtk_ui_manager_class_init) : add pre_activate and post_activate
4127           signals.
4128         (cb_proxy_pre_activate) : new.
4129         (cb_proxy_post_activate) : new.
4130         (gtk_ui_manager_insert_action_group) : connect the proxies for
4131           GtkActionGroup::pre/post_activate
4132         (gtk_ui_manager_remove_action_group) : disconnect them.
4133
4134         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
4135           'sensitive', and 'visible' properties.  Also add pre_activate and
4136           post_activate signals to help deal with activations at a higher
4137           level (eg GtkUIManager)
4138         (gtk_action_group_init) : init sensitive and visible
4139         (gtk_action_group_set_property) : add sensitive and visible
4140         (gtk_action_group_get_property) : add sensitive and visible
4141         (gtk_action_group_get_sensitive) : new.
4142         (gtk_action_group_get_visible) : new.
4143         (cb_set_action_sensitivity) : new with minor optimization that only
4144           signals sensitivity changes if the action could possibly change.
4145         (cb_set_action_visiblility) : ditto.
4146         (gtk_action_group_set_sensitive) : new.  walk the actions directly
4147           rather than using notify::sensitive because that is simpler, easier
4148           to read, and more efficient.
4149         (gtk_action_group_set_visible) : ditto.
4150         (gtk_action_group_add_action) : Each action can only be in 1 group,
4151           set GtkAction::action_group.
4152         (gtk_action_group_remove_action) : clear it.
4153         (gtk_action_group_add_toggle_actions_full) : warning suppression.
4154         (gtk_action_group_add_radio_actions_full) : warning suppression.
4155         (_gtk_action_group_emit_pre_activate) : new protected routine for use
4156           by GtkAction.
4157         (_gtk_action_group_emit_post_activate) : ditto.
4158
4159         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
4160         (gtk_action_init) : initialize it.
4161         (gtk_action_get_property) : get.
4162         (gtk_action_set_property) : set it via
4163         (gtk_action_set_action_group) : new function.
4164         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
4165           with the logical sensitivity (action & group) rather than the simple
4166           action::sensitivity.
4167         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
4168           logical visibility (action & group) rather than the simple
4169           action::visible.  Use widget show/hide directly.
4170         (connect_proxy) : handle the custom sensitivity handler.
4171           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
4172           directly, with special cases for TOOL_BUTTON.  Still not especially
4173           good it might be useful to handle label/use_underline by parmspec
4174           lookup.  Those are likely to be implemented by custom types, and are
4175           assumed to exist in GtkToolItem.
4176         (disconnect_proxy) : disconnect the new sensitivity handler.
4177         (_gtk_action_emit_activate) : add pre/post signals.
4178         (gtk_action_activate) : use logical sensitivity.
4179         (gtk_action_is_sensitive) : logical sensitivity.
4180         (gtk_action_get_sensitive) : actual sensitivity.
4181         (closure_accel_activate) : use logical sensitivity.
4182
4183 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
4184
4185         * gtk/gtkuimanager.c: Introduce a new parser state for 
4186         accelerator elements to avoid misparsing files containing 
4187         such elements.  (#131035, Morten Welinder)
4188
4189 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
4190
4191         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
4192
4193 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
4194
4195         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
4196
4197 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
4198
4199         * gtk/gtkuimanager.h:
4200         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
4201         obtain a list of toplevel widgets constructed by the ui manager.
4202
4203         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
4204         the values can be combined for gtk_ui_manager_get_toplevels().
4205
4206         * tests/testmerge.c: Add a "Dump toplevels" button to test 
4207         gtk_ui_manager_get_toplevels().
4208
4209 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
4210
4211         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
4212         
4213         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
4214         by Anders Carlsson  (#130464).
4215
4216 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
4217
4218         * gtk/gtkmain.h: 
4219         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
4220         gint to gboolean.  (#130718, reported by Johannes Weißl)
4221
4222 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
4223
4224         * gtk/gtkactiongroup.h: 
4225         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
4226         Remove the redundant name and stock_id parameters, adjust all callers.
4227
4228 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
4229
4230         * gtk/gtkaction.h: 
4231         * gtk/gtkaction.c (gtk_action_new):  
4232         * gtk/gtktoggleaction.h: 
4233         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
4234         * gtk/gtkradioaction.h: 
4235         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
4236         functions for actions.
4237
4238         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4239         (gtk_action_group_add_toggle_actions_full): 
4240         (gtk_action_group_add_radio_actions_full): and use the
4241         new functions here.  (#125322, Patch by Jeff Frank)
4242
4243 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
4244
4245         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
4246         docs.
4247
4248 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
4249
4250         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
4251         (shortcuts_append_home), (shortcuts_append_desktop),
4252         (shortcuts_append_paths), (shortcuts_add_volumes),
4253         (shortcuts_append_bookmarks), (create_shortcuts_model),
4254         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
4255         to the shortcuts_model.
4256
4257         (remove_bookmark_button_clicked_cb),
4258         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
4259         bookmarks can be removed. Fixes #129873
4260
4261 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
4262
4263         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
4264         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
4265         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
4266         respectively. Tests #82203.
4267
4268 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
4269
4270         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
4271         0777 as the mode for mkdir() and let the umask do the right
4272         thing.  Fixes #121819.
4273
4274         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
4275         can return NULL; handle this.  Fixes #129565.
4276
4277 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
4278
4279         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
4280         that proceeded the end-of-sentence punctuation. Fixes: #130353.
4281
4282 2004-01-06  Jody Goldberg <jody@gnome.org>
4283
4284         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
4285           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
4286
4287 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4288
4289         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
4290         call shortcuts_add_bookmarks() here.
4291         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
4292         iter.
4293         (shortcuts_append_paths): Don't display error dialogs here.
4294         (create_file_list): Remove the @#$% rules hint.
4295
4296 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
4297
4298         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
4299         function.
4300         (toolbar_create): Do not use a toolbar widget, just an hbox
4301         instead.  Add the bookmarks buttons and the current folder label
4302         here.
4303         (create_filename_entry_and_filter_combo): Create the filter combo
4304         here.
4305         (filter_create): Don't show the filter combo initially.
4306         (up_button_cb): Renamed from toolbar_up_cb().
4307         (create_shortcuts_buttons): Removed.
4308
4309 2004-01-05  Murray Cumming  <murrayc@usa.net>
4310
4311         * gdk/gdkimage.h: Added <public> documentation to the struct, as
4312         suggested by Owen Taylor.
4313
4314 2004-01-05  Jody Goldberg <jody@gnome.org>
4315
4316         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
4317           I would have prefered outdent, but compatibility seems more
4318           important.
4319         * gtk/gtkstock.c (builtin_items) : ditto.
4320         * gtk/gtkstock.h : ditto.
4321         * gtk/stock-icons/Makefile.am : ditto.
4322         * gtk/stock-icons/stock_text_indent_16.png :
4323         * gtk/stock-icons/stock_text_indent_24.png :
4324         * gtk/stock-icons/stock_text_unindent_16.png :
4325         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
4326
4327 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
4328
4329         * gtk/gtkradiotoolbutton.[ch]
4330         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
4331         group is a GtkRadioButton, not a GtkWidget.
4332
4333 2004-01-04  Hans Breuer  <hans@breuer.org>
4334
4335         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
4336         gdk_window_set_keep_(above|below) to make DND work again.
4337         Thanks to Alif Wahid for noticing.
4338
4339         * gdk/gdk.def : update externals
4340
4341         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
4342
4343         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
4344           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
4345           gtk/stock-icons/stock_harddisk_16.png 
4346           gtk/stock-icons/stock_harddisk_24.png 
4347         Harddisk stock icons for file system implementations. Beside
4348         FLOPPY and CDROM there is now HARDDISK, probably some 
4349         GTK_STOCK_NETWORK would be useful, but I could not find one.
4350
4351 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
4352
4353         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
4354         Patch from Andrew Moise (#130462).
4355
4356 2004-01-01  Jody Goldberg <jody@gnome.org>
4357
4358         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
4359           visible_vertical.
4360         (gtk_action_class_init) : here.
4361         (gtk_action_init) : here.
4362         (gtk_action_set_property) : here.
4363         (gtk_action_get_property) : here.
4364         (connect_proxy) : and here.
4365
4366 2003-12-30  Jody Goldberg <jody@gnome.org>
4367
4368         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
4369           utility routine for use in derived GtkActions with the replicated code
4370           from.
4371         (gtk_action_group_add_actions_full) : here.
4372         (gtk_action_group_add_toggle_actions_full) : here.
4373         (gtk_action_group_add_radio_actions_full) : and here.
4374
4375 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4376
4377         * configure.in: Added "bn" to ALL_LINGUAS.
4378
4379 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
4380
4381         * bn.po: Added Bangla translation by 
4382         of Ankur group <gnome-translation@bengalinux.org>.
4383
4384 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
4385
4386         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
4387         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
4388         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
4389         week_start values other than 0 and 1, e.g. 6 will let weeks start
4390         on Saturday.  (#130349, Roozbeh Pournader) 
4391
4392 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
4393
4394         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
4395         
4396         Fix to allow reasonable pointer behavior in window mode when an
4397         extended input device reports an incorrect resolution of 0.  Fixes
4398         bug #123546
4399         
4400 2003-12-31  Christian Neumair  <chris@gnome-de.org>
4401
4402         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
4403         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
4404         plurals (#123847).
4405
4406 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
4407
4408         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
4409         (gtk_action_group_add_toggle_actions_full):
4410         (gtk_action_group_add_radio_actions_full): Pull accelerator key
4411         from the stock item if stock_id is given, but accelerator 
4412         not.  (Noticed by Jeff Franks and Jody Goldberg)
4413
4414         * tests/testmerge.c: Remove the accelerator from the "Open" entry
4415         to test the above change.
4416         
4417 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
4418
4419         Make show_all() work for the extra and preview widgets; reported
4420         by Paolo Maggi.
4421
4422         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
4423         preview widget.
4424         (set_extra_widget): show_all() the extra widget.
4425
4426 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4427
4428         * gtk/gtkuimanager.c (do_updates): 
4429         * gtk/gtktoolbar.c (slide_idle_handler): 
4430         * gtk/gtkdnd.c (gtk_drag_update_idle): 
4431
4432         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
4433         functions. (#130157, patch from Olexiy Avramchenko).
4434         
4435 2003-12-29  Anders Carlsson  <andersca@gnome.org>
4436
4437         * gtk/gtkradiotoolbutton.c:
4438         * gtk/gtkradiotoolbutton.h:
4439         * gtk/gtkseparatortoolitem.c:
4440         * gtk/gtkseparatortoolitem.h:
4441         * gtk/gtktoggletoolbutton.c:
4442         * gtk/gtktoggletoolbutton.h:
4443         * gtk/gtktoolbar.c:
4444         * gtk/gtktoolbar.h:
4445         * gtk/gtktoolbutton.c:
4446         * gtk/gtktoolbutton.h:
4447         * gtk/gtktoolitem.c:
4448         * gtk/gtktoolitem.h:
4449         Update my e-mail address.
4450         
4451 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
4452
4453         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
4454         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
4455         paths.  (#73207, reported by Havoc Pennington)
4456
4457 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4458
4459         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
4460         instead of VISIBLE to determine whether we should stop
4461         sliding. (#130018, reported by Christian Persch).
4462
4463 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
4464
4465         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
4466         Don't use first_action without initializing it if n_entries is 0.
4467
4468 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
4469
4470         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
4471         Add the missing _get_ to the name of the non-Xcursor version of
4472         this function.  (noticed by Torsten Schoenfeld)
4473
4474 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
4475
4476         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
4477         muppet.
4478
4479 2003-12-24  Jody Goldberg <jody@gnome.org>
4480
4481         * gtk/gtkactiongroup.h : Add some const to the char * in
4482           GtkActionEntry*.  We're reccomending people pass static strings to
4483           them, and not freeing them.  This stems to flood of warnings that
4484           result.
4485         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
4486           temp vars to const to match above.
4487         (gtk_action_group_add_toggle_actions_full) : ditto.
4488         (gtk_action_group_add_radio_actions_full) : ditto.
4489
4490 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
4491
4492         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
4493         gtk_clipboard_request_targets() and 
4494         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
4495
4496 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
4497
4498         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
4499         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
4500         * gtk/gtkcalendar.c (draw_arrow_left):
4501         (draw_arrow_right): Removed. 
4502         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
4503         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
4504         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
4505         insensitive.  (#97376)
4506
4507 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
4508
4509         * gtk/gtkuimanager.c (update_node): 
4510         (update_smart_separators): 
4511         (_gtk_menu_is_empty): 
4512         (find_menu_position): 
4513         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
4514         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
4515         (gtk_combo_box_relayout): Fix memory leaks caused by the
4516         failure to free the result of gtk_container_get_children().
4517
4518 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4519
4520         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
4521         properties when the window becomes a toplevel. When a window that
4522         was previously a toplevel becomes a toplevel again, restore its
4523         window type. Also make sure the focus window is removed from the
4524         XID hash when it is destroyed. (#117579, reported by Morten
4525         Welinder, patch reviewed by Owen Taylor).
4526
4527 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
4528
4529         * gtk/gtkmenushell.h: 
4530         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
4531         to emit the "cancel" signal on a menu shell.
4532
4533         * gtk/gtkmenu.c (gtk_menu_key_press): 
4534         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
4535         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
4536         new function instead of directly emitting the 
4537         signal.  (#81803, Owen Taylor)
4538
4539 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
4540
4541         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
4542         Fix the "language_set" blurb.  
4543         
4544 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
4545
4546         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
4547         all of treeview when resizing (#110074, patch from Soeren Sandmann).
4548
4549 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
4550
4551         Fixes #108458.
4552
4553         * gtk/gtkcelllayout.[ch]: added a reorder method.
4554
4555         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
4556         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
4557
4558         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
4559         (gtk_cell_view_cell_layout_reorder): ditto.
4560
4561         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
4562         (gtk_combo_box_cell_layout_reorder): ditto.
4563
4564         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
4565         (gtk_entry_completion_reorder): ditto.
4566
4567 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
4568
4569         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
4570         instead of strcmp (#117127, suggestion from Soeren Sandmann).
4571
4572 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
4573
4574         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
4575         here from gtk_menu_real_insert(),
4576         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
4577         (gtk_menu_reorder_child): run _do_insert after inserting the child
4578         (unbreaks _reorder_child, reported by Tim Janik).
4579
4580 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
4581
4582         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
4583         g_date_strftime() for UTF-8 correctness; use Julian dates to
4584         simplify the function.
4585
4586 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
4587
4588         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
4589         Test extra_width, not extra_height, when determining whether to
4590         set extra_width.  (#129647, Jan Arne Petersen)
4591
4592 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
4593
4594         Fix the behaviour of insensitive actions, which was broken
4595         when gtk_action_activate() was changed to pay attention to 
4596         sensitivity  (#129557, Christian Persch)
4597         
4598         * gtk/gtkaction.h: 
4599         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
4600         function to emit an activate signal without regard to sensitivity.
4601
4602         * gtk/gtkradioaction.c: 
4603         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
4604         instead of gtk_action_activate().
4605
4606 2003-12-18  Jody Goldberg <jody@gnome.org>
4607
4608         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
4609           to ensure that the base hicolor theme is installed.  Silently
4610           failing to produce icons that apps assume exist in the theme seems
4611           like a bad idea.
4612
4613 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
4614
4615         Fixes #110249, reworked patch from Joshua N Pritikin.
4616
4617         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
4618         (gtk_tree_model_sort_tree_drag_source_init),
4619         (gtk_tree_model_sort_row_draggable),
4620         (gtk_tree_model_sort_drag_data_get),
4621         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
4622
4623         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
4624         (gtk_tree_model_filter_tree_drag_source_init),
4625         (gtk_tree_model_filter_row_draggable),
4626         (gtk_tree_model_filter_drag_data_get),
4627         (gtk_tree_model_filter_drag_data_delete): ditto.
4628
4629 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
4630
4631         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
4632         for "*" and "/" (expand/collapse all). (#110195, reported by
4633         Calum Benson).
4634
4635 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
4636
4637         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
4638         clear the extra_attrs list if we set "text" after "markup".
4639         (Fixes #121933, Federico Mena Quintero).
4640
4641 2003-12-18  Alexander Larsson  <alexl@redhat.com>
4642
4643         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
4644         Fix typo that used the wrong x/y values for the x1, y1 point
4645         (#129605)
4646
4647 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
4648
4649         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4650         (gtk_cell_renderer_text_finalize),
4651         (gtk_cell_renderer_text_get_property),
4652         (gtk_cell_renderer_text_set_property), (get_layout): added language
4653         and language_set properties like GtkTextTag has. (#103800, reported
4654         by Owen Taylor).
4655
4656 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
4657
4658         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
4659         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
4660         "activate" signal.  (#129358, Ka-Hing Cheung)
4661
4662 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
4663
4664         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
4665         the logical flag backwards in the expand_collapse_cursor_row
4666         bindings, fixing.
4667         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
4668         flag when !logical and in RTL. (Fixes #107527, reported by
4669         Noah Levitt).
4670
4671 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
4672
4673         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
4674         editing when activated by the left mouse button. (#106869,
4675         patch from Evan Martin).
4676
4677 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
4678
4679         Migrating all cell renderers to use the new instance private data
4680         construction.
4681
4682         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
4683         longer being used.
4684
4685         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
4686         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
4687         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
4688         GtkCellRendererInfo handling, migrate to instance private data.
4689
4690         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
4691         (gtk_cell_renderer_text_start_editing): moved focus_out_id
4692         from GtkCellRendererInfo to text renderer private data.
4693
4694         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
4695         (gtk_cell_renderer_pixbuf_class_init),
4696         (gtk_cell_renderer_pixbuf_finalize),
4697         (gtk_cell_renderer_pixbuf_get_property),
4698         (gtk_cell_renderer_pixbuf_set_property),
4699         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
4700         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
4701         migrate to instance private data.
4702
4703         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
4704         (gtk_cell_renderer_toggle_get_property),
4705         (gtk_cell_renderer_toggle_set_property),
4706         (gtk_cell_renderer_toggle_render): migrate to instance private data.
4707
4708 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
4709
4710         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
4711         (gtk_cell_renderer_text_get_property),
4712         (gtk_cell_renderer_text_set_property), (get_layout): add a
4713         single-paragraph-mode property, use private instance data.
4714         (Fixes #114943, reported by Morten Welinder).
4715
4716 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
4717
4718         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
4719         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
4720         by Matthias Clasen).
4721
4722 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
4723
4724         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
4725         if we set a new stock_id and there was a previous stock_id, unref
4726         the pixbuf (since it was used to renderer the previous stock_id
4727         and stock_id might have been set to NULL now). (Fixes #122966).
4728
4729 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
4730
4731         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
4732
4733         Check that index is not bigger than level array length
4734         also when depth is 1. Now get_iter_first correctly return
4735         FALSE when the model is empty (#129411).
4736
4737 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
4738
4739         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
4740         try to strcmp or strlen if we managed to normalize and casefold
4741         the string correctly. Fixes crashes with non-UTF8 strings.
4742         (#121617, Patch from Tim-Philipp Müller).
4743
4744 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
4745
4746         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
4747         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
4748         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
4749         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
4750         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
4751         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
4752
4753 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
4754
4755         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
4756         (#122727, patch from Kjartan Maraas).
4757
4758 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
4759
4760         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
4761
4762         * gtk/gtktreeview.c (gtk_tree_view_class_init),
4763         (gtk_tree_view_init), (gtk_tree_view_set_property),
4764         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
4765         fixed_height_mode property,
4766         (intialize_fixed_height_mode), (do_validate_rows),
4767         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
4768         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
4769         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
4770         (gtk_tree_view_insert_column): implement fixed height mode,
4771         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
4772         (gtk_tree_view_insert_column_with_attributes),
4773         (gtk_tree_view_insert_column_with_data_func): update docs.
4774
4775         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
4776
4777 2003-12-07  Murray Cumming  <murrayc@usa.net>
4778  
4779         * gtk/gtktreemodel.c:
4780         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
4781         Actually call the default signal handlers instead of calling the
4782         marshallers themselves in an endless loop. These default signal handler
4783         callbacks are not actually set so this is only noticed by gtkmm at
4784         the moment. Bug 123923.
4785
4786 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
4787
4788         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
4789         "volumes-changed" signal.  Added the following methods:
4790                 list_volumes
4791                 volume_free
4792                 volume_get_base_path
4793                 volume_get_is_mounted
4794                 volume_mount
4795                 volume_get_display_name
4796                 volume_render_icon
4797
4798         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
4799         "volumes-changed" signal.
4800         (gtk_file_system_list_volumes): New function.
4801         (gtk_file_system_volume_free): New function.
4802         (gtk_file_system_volume_get_base_path): New function.
4803         (gtk_file_system_volume_get_is_mounted): New function.
4804         (gtk_file_system_volume_mount): New function.
4805         (gtk_file_system_volume_get_display_name): New function.
4806         (gtk_file_system_volume_render_icon): New function.
4807
4808         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
4809         (gtk_file_system_unix_volume_get_base_path): Implement.
4810         (gtk_file_system_unix_volume_get_is_mounted): Implement.
4811         (gtk_file_system_unix_volume_mount): Implement.
4812         (gtk_file_system_unix_volume_get_display_name): Implement.
4813         (gtk_file_system_unix_volume_render_icon): Implement.
4814
4815         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
4816         Added a field for the "volumes-changed" signal connection.
4817         (gtk_file_chooser_default_set_property): Connect to
4818         "volumes-changed" on the file system.
4819         (gtk_file_chooser_default_finalize): Disconnect from
4820         "volumes-changed".
4821
4822         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
4823         function.
4824         (shortcuts_get_index): New helper function.
4825         (shortcuts_insert_path): Can now insert volumes as well as paths.
4826         (shortcuts_append_paths): Don't take is_file_system_root.
4827         (shortcuts_add_volumes): New function.
4828         (shortcuts_append_file_system_roots): Removed.
4829         (create_shortcuts_model): Use shortcuts_add_volumes().
4830         (remove_bookmark_button_clicked_cb): Check that the index is
4831         within range.
4832         (bookmarks_check_add_sensitivity): Take volumes into account.
4833         (shortcuts_get_selected_index): New helper function.
4834         (remove_bookmark_button_clicked_cb): Use
4835         shortcuts_get_selected_index().
4836         (bookmarks_check_remove_sensitivity): Likewise.
4837         (shortcuts_select_func): Likewise.
4838         (shortcuts_row_activated_cb): Handle volumes as well as normal
4839         paths.
4840         (shortcuts_activate_volume): New function.
4841         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
4842         bookmarks_iter fields.
4843         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
4844         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
4845         (remove_bookmark_rows): Removed.
4846         (shortcuts_add_bookmarks): New function; moved most of the code
4847         over from shortcuts_append_bookmarks().
4848         (shortcuts_append_bookmarks): Add the separator node here, and
4849         then call shortcuts_add_bookmarks().
4850
4851 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
4852
4853         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
4854         (G_OS_UNIX/G_OS_WIN32 stuff)
4855
4856 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
4857
4858         Do not interpret distant clicks as double-clicks  (#116541,
4859         Bernhard Walle):
4860         
4861         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
4862         double_click_distance, button_x and button_y.
4863         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
4864
4865         * gdk/gdkdisplay.h: 
4866         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
4867         New function to set the double click distance on a display.
4868
4869         * gdk/gdkevents.c: Take double click distance into account
4870         when generating single, double or triple clicks.
4871
4872         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
4873
4874         * gdk/x11/gdkevents-x11.c: Add the XSetting 
4875         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
4876
4877 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
4878
4879         * gtk/gtkdialog.c: Sigh, revert the change.
4880
4881 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
4882
4883         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
4884         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
4885         allows sane behavior for #101293.
4886
4887 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
4888
4889         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
4890         getter and setter gtk_button_[sg]et_alignment(), to set the
4891         alignment of the child.  (#70961, Jody Goldberg)
4892
4893 2003-12-14  Hans Breuer  <hans@breuer.org>
4894
4895         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
4896         similar as the other filesystem placement 'constants' (dynamic
4897         resolving on win32)
4898
4899         * gtk/gtkfilechooserwidget.c : handle file system to win32
4900         renaming here as will
4901         * gtk/gtkfilesystemwin32.c : implement render_icon
4902
4903         * gtk/gtk.def gdk/gdk.def : updated externals
4904
4905         * gdk/win32/gdkdisplay-win32.c : make it compile without
4906         <multimon.h> - i.e. even older sdk
4907
4908         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
4909         with TIMERPROC prototype
4910
4911         * gdk/win32/gdkwindow-win32.c : older msvc does not know
4912         BITMAPV5HEADER (from win xp) either
4913
4914         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
4915         not defined
4916
4917         * tests/testfilechooser.c : recent GLib crashes on 
4918         g_print ("%s", NULL) so avoid this
4919
4920 2003-12-14  Tor Lillqvist  <tml@iki.fi>
4921
4922         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
4923         followed by calls to CloseClipboard(). Add a missing call to
4924         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
4925         API_CALL macro in more places.
4926
4927 2003-12-14  Tor Lillqvist  <tml@iki.fi>
4928
4929         Merge from stable:
4930
4931         * gdk/gdkdisplaymanager.c: Mark default_display static.
4932
4933         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
4934
4935         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
4936         output.
4937
4938         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
4939         --gdk-debug=events. In general, output just one line of debugging
4940         output for each Windows message, plus one line for each GDK event
4941         generated. Indent all lines according to window procedure nesting
4942         level.
4943
4944         (inner_window_procedure): Rename from real_window_procedure.
4945
4946         (find_real_window_for_grabbed_mouse_event): Don't get misled when
4947         the point is in the non-client (decoration) area of the window
4948         returned by WindowFromPoint(). Return the root window in that
4949         case.
4950
4951         (build_pointer_event_state): Test also MK_XBUTTON1 and
4952         MK_XBUTTON2 (buttons 4 and 5).
4953
4954         (synthesize_enter_event): Track the mouse leaving the window in
4955         the event being generated, not the one mentioned in the Windows
4956         message.
4957
4958         (propagate): Test for NULL parent earlier. Improves event
4959         generation from a grabbed pointer. Part of fix for #107320.
4960
4961         (handle_stuff_while_moving_or_resizing): New function, to
4962         dispatch the main loop (once).
4963
4964         (resize_timer_proc): New function, set to be called by an inerval
4965         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
4966
4967         (gdk_event_translate): Drop unused return_exposes parameter.
4968
4969         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
4970
4971         On WM_SYSKEYUP, generate a key release event also for just the Alt
4972         key.
4973
4974         On WM_MOUSELEAVE, generate a leave event of type
4975         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
4976         top-level window, and left the app completely.
4977
4978         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
4979         calls resize_timer_proc() at regular intervals. On
4980         WM_EXITSIZEMOVE, kill the timer.
4981
4982         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
4983         and dispatch the main loop (by calling
4984         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
4985         Herman Bloggs.
4986
4987         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
4988         also wintab messages.
4989
4990         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
4991         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
4992         the window's owner. Fixes #118093, reported by Maxime Romano.
4993
4994 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
4995
4996         * gdk/win32/gdkwindow-win32.[ch]: Implement
4997         gdk_window_set_icon_list() for Win32, with support for big and
4998         small icons and support for alpha-channel icons under Windows
4999         XP. Replaces the previous implementation of gdk_window_set_icon().
5000         (#128762)
5001         
5002 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
5003
5004         * gdk/x11/gdkprivate-x11.h: 
5005         * gdk/x11/gdkx.h: 
5006         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
5007         Rename from _gdk_x11_register_event_type(), added API docs.
5008         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
5009         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
5010         all callers.  (#121471, Bill Haneman)
5011
5012 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
5013
5014         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
5015         of gc is ignored.  (#101983, Sebastian Rittau)
5016
5017 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
5018
5019         A trick for a faster treeview, step 1. Patch to short circuit
5020         _build_tree(), inspired by Jonathan (#80868).
5021
5022         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
5023         flags by default,
5024         (gtk_tree_view_build_tree): don't even try to recurse when the
5025         model says that it is a list, remove flag unsetter,
5026         (gtk_tree_view_set_model): change flag setting logic.
5027
5028         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
5029         propagate whether or not the child model has _IS_LIST set.
5030
5031         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
5032         ditto.
5033
5034 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
5035
5036         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
5037         since it broke logical keynav. 
5038         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
5039         direction in inverted scrollbars here instead.
5040
5041 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
5042
5043         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
5044         "gravity" for RTL mode in a better way: Keep the distance from 
5045         the upper end of the page to the upper bound constant. This also 
5046         fixes problems with the initial position of the viewport in RTL 
5047         mode.  (#129063)
5048         
5049 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
5050
5051         Combo box flipping support.
5052
5053         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
5054         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
5055         patch from Matthias Clasen),
5056         (gtk_combo_box_popup): fix popup window alignment if there's a
5057         cell view frame visible (#126518, patch from Semion Chichelnitsky).
5058
5059         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
5060         (#128348, patch from Semion Chichelnitsky).
5061
5062 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
5063
5064         * examples/gtkdial/gtkdial.c:
5065         * examples/menu/menu.c:
5066         * examples/scribble-xinput/scribble-xinput.c:
5067         * examples/progressbar/progressbar.c:
5068         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
5069         in examples. (#129074, Olexiy Avramchenko)
5070         * examples/calendar/Makefile:
5071         * examples/rangewidgets/Makefile:
5072         * examples/menu/Makefile: Allow deprecated functions in
5073         examples which use deprecated widgets.
5074
5075 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
5076
5077         * gdk/gdk.c (gdk_threads_set_lock_functions): 
5078         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
5079
5080 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
5081
5082         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
5083         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
5084
5085 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
5086
5087         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
5088         unnecessarily reserve space for arrows in RTL mode.  (#129075,
5089         Semion Chichelnitsky)
5090
5091 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
5092
5093         Changes to allow "no input" windows (#64613):
5094         
5095         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
5096         field accept_focus.
5097         
5098         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
5099         set it.
5100
5101         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
5102         and gtk_window_get_focus() and gtk_window_set_focus().
5103
5104         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
5105         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
5106         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
5107         Initialize the accept_focus field to TRUE.
5108
5109         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
5110         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
5111         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
5112         Implementations for the various backends. The Win32 and linux-fb
5113         implementations set the accept_focus field, but don't use it yet 
5114         to actually implement noinput windows. The X implementation updates
5115         the WM_HINTS to select the globally active input model (see the
5116         ICCCM) if accept_focus is FALSE.
5117
5118         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
5119         WM_TAKE_FOCUS message if accept_focus is FALSE.
5120         
5121 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
5122
5123         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
5124         Added toolbar items for the filter separator and the filter item.
5125         (toolbar_create): Add the filter widgets here.
5126         (filter_create): Renamed from create_filter().  Don't store the
5127         alignment in the impl structure, just return it.
5128         (toolbar_show_filters): New function.
5129         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
5130         (gtk_file_chooser_default_remove_filter): Likewise.
5131         (gtk_file_chooser_default_constructor): Don't create the filter
5132         widget here.
5133         (struct _GtkFileChooserDefault): Added a field for a current
5134         folder label.
5135         (gtk_file_chooser_default_constructor): Create the folder label.
5136         (gtk_file_chooser_default_set_current_folder): Set the current
5137         folder label.
5138
5139         * tests/testfilechooser.c (main): Dramatically improved the
5140         usability of the extra widget through careful word choice.
5141
5142 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5143
5144         * gdk/gdk.h: include gdkspawn.h.
5145
5146 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5147
5148         * gdk/linux-fb/gdkspawn-fb.c,
5149           gdk/win32/gdkspawn-win32.c,
5150           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
5151         s/gdk_spawn/gdk_spawn_on_screen/.
5152
5153 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
5154
5155         Utility functions for multi-screen applications which need
5156         to ensure launched applications appear on a certain screen.
5157         See bug #95897.
5158         
5159         * gdk/gdkspawn.h: header for multi-screen launching
5160         support.
5161         
5162         * gdk/Makefile.am: install gdkspawn.h.
5163         
5164         * gdk/x11/Makefile.am:
5165         * gdk/x11/gdkspawn-x11.c:
5166         (gdk_spawn_make_environment_for_screen): private function
5167         to create an environment vector with DISPLAY set appropriately
5168         for the screen.
5169         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
5170         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
5171         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
5172         
5173         * gdk/linux-fb/Makefile.am,
5174           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
5175         
5176         * gdk/win32/Makefile.am,
5177           gdk/win32/gdkspawn-win32.c: win32 impl.
5178
5179 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
5180
5181         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
5182         rather than "Username's Home" (#125964).
5183         (shortcuts_selection_changed_cb): New callback, check the
5184         sensitivity of the Remove Bookmark button at the right time.
5185         (shortcuts_row_activated_cb): It is not necessary to check the
5186         sensitivity here.
5187
5188 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
5189
5190         Improve the GDK API for dealing with group leaders (#119375):
5191         
5192         * gdk/gdkwindow.h: 
5193         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
5194         get the group leader of a toplevel window as a GdkWindow.
5195
5196         * gdk/gdkdisplay.h: 
5197         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
5198         function to get the default group leader as a GdkWindow.
5199
5200         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
5201         the GdkWindow of the default group leader.
5202         
5203         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
5204         for the default group leader.
5205
5206 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
5207
5208         * gdk/gdkkeysyms.h:
5209         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
5210         Ukrainian_GHE_WITH_UPTURN. (#128529)
5211
5212 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
5213
5214         * gtk/gtkfilechooserdefault.c:
5215         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
5216         behavior of the GtkFileSelection to determine selected paths in
5217         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
5218
5219 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
5220
5221         * gtk/gtkfilechooserdefault.c
5222         (gtk_file_chooser_default_get_paths): Don't declare the closure
5223         struct twice.
5224         (get_paths_foreach): Likewise.
5225
5226 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
5227
5228         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
5229
5230 2003-12-08  Tor Lillqvist  <tml@iki.fi>
5231
5232         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
5233         with MSVC and old headers. (#126933, John Ehresman)
5234
5235 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
5236          
5237         * === Released 2.3.1 ===
5238
5239         * NEWS: Updates for 2.3.1
5240
5241         * configure.in: Version 2.3.1, interface age 0, binary age 301.
5242
5243         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
5244         Rename from gtk_menu_item_real_can_activate_accel() to
5245         match GTK+ convention, improve comment.
5246
5247         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
5248         can ::can-activate-accel signal.
5249
5250         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
5251         in comment.
5252
5253         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
5254         up comment.
5255         
5256         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
5257         into the .c file.
5258
5259 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
5260
5261         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
5262         missing 'else'. (#128816, Jorn Baayen)
5263
5264 2003-12-02  Michael Meeks  <michael@ximian.com>
5265
5266         Based on a patch by Martin Kretzschmar; #122448
5267         
5268         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
5269         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
5270         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
5271         function pointers. Deprecate the global gdk_threads_mutex variable.
5272         
5273         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
5274         extracted from GTK_THREADS_ENTER/LEAVE macros.
5275         (gdk_threads_init): init gtk_threads_[un]lock if not set.
5276         (gdk_threads_set_lock_functions): impl.
5277
5278         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
5279
5280 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
5281
5282         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
5283         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
5284         Gonzalez)
5285
5286 2003-12-07  Tor Lillqvist  <tml@iki.fi>
5287
5288         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
5289         return value from SendMessage(WM_SETICON). That is the old
5290         icon. Fixes GDI resource leak. (#128559, Tim Evans)
5291
5292         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
5293         have a pointer grab active with a grab cursor set, destroy that
5294         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
5295
5296 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
5297
5298         * configure.in: Added Thai (th) to ALL_LINGUAS.
5299
5300 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
5301
5302         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
5303         RTL flipping for GtkAlignment.  (#127585)
5304
5305 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
5306
5307         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
5308         popup window when in RTL mode.  (#127578)
5309
5310 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
5311
5312         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
5313         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
5314         before doing anything to prevent garbage returns.
5315
5316 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
5317
5318         * gtk/gtkviewport.c: Implement RTL flipping for 
5319         GtkViewport: Adjust the "gravity" when resizing
5320         This is a bit flickery in RTL mode.  (#107526)
5321
5322 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
5323
5324         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
5325         GtkScrolledWindow: the vertical scrollbar shows up on the left
5326         side in RTL mode.  (#107526)
5327
5328 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
5329
5330         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
5331         tabs displayed at the top/bottom are rearranged, and tabs on
5332         the left/right are displayed at the opposite edge.  (#96630)
5333
5334 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
5335
5336         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
5337         gtk_label_set_attributes() take NULL. See bug #128517.
5338
5339 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
5340
5341         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
5342         the in_change flag.
5343         (completion_idle_callback): Use a temporary list store and re-set
5344         it on the completion rather than modifying the old one.  We are
5345         re-reading the folder anyway, and this gets rid of non-atomicity
5346         problems.
5347
5348 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5349
5350         Decouple impl->current_folder from the selection in the folder
5351         tree.  This is so that going to /home/federico/.foo (e.g. from a
5352         bookmark) will work even if show_hidden == FALSE.  The folder tree
5353         needs to be fixed in this case to show such folders explicitly.
5354
5355         * gtk/gtkfilechooserdefault.c
5356         (gtk_file_chooser_default_set_current_folder): When changing
5357         folders, do the entry and list model work here, instead of
5358         tree_selection_changed().
5359         (struct _GtkFileChooserDefault): Added a changing_folder flag
5360         again, dum de dum.
5361         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
5362
5363 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
5364
5365         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
5366         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
5367
5368 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5369
5370         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
5371         bookmarks buttons with the location entry.
5372
5373         * gtk/gtkfilechooserdefault.c
5374         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
5375         bookmarks buttons and the location entry.
5376
5377 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
5378
5379         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
5380         shortcuts tree as a drag destination.
5381         (shortcuts_drag_data_received_cb): New callback.
5382         (get_file_info): Also fetch information on whether the file is a folder.
5383         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
5384         (error_could_not_add_bookmark_dialog): New function.
5385         (shortcuts_add_bookmark_from_path): New helper function.
5386         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
5387         (shortcuts_row_activated): We no longer need the changing_folder flag.
5388         (struct _GtkFileChooserDefault): Likewise.
5389
5390 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5391
5392         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
5393         disappearing placeholders that are still visible.
5394
5395         * gtk/gtktoolbar.c: formatting fixes
5396
5397         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
5398         disappearing, for placeholders that are going to disappear.
5399
5400         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
5401
5402 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
5403
5404         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
5405         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5406         Patch from <chinen@jp.ibm.com> to handle RTL support for column
5407         resizers, #127874
5408
5409 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
5410
5411         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
5412         Don't use freed memory.  (#127698, Taavi Talvik) 
5413
5414 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
5415
5416         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
5417
5418 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
5419
5420         * gtk/gtkuimanager.c: Remove debug define.
5421
5422 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
5423
5424         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
5425         and the attach widget.
5426
5427         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
5428         sensitivity and the parent menu.
5429
5430         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
5431         checks whether accelerators may activate a widget. the default handler
5432         demands the widget be sensitive and visible+viewable.
5433
5434         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
5435
5436 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
5437
5438         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
5439         popup menus.  (#127227)
5440
5441 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
5442
5443         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
5444
5445 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5446
5447         * gtk/gtkradiotoolbutton.[ch]
5448         (gtk_radio_tool_button_new_from_widget): Make this function take a
5449         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
5450         Cumming)
5451
5452 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5453
5454         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
5455
5456 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5457
5458         * gtk/gtktoolbar.c: remove variable
5459         n_overflowed_menu_items_when_dnd_started
5460
5461 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5462
5463         Rework sliding algorithm.
5464         - No more weird jumping when items are dragged off and added to
5465         the toolbar,
5466         - More natural item movement
5467
5468         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
5469         function is now responsible for calculating intermediate positions
5470         during item sliding. It is also responsible for starting sliding
5471         if items disappear.  Also turn off expanding when there is an
5472         overflow menu.
5473         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
5474         (slide_idle_handler): New function. All the sliding is now done by
5475         gtk_toolbar_size_allocate(), so the idle handler now just checks
5476         if there is more sliding to be done.
5477         (compute_intermediate_allocation, position): new functions
5478         calculating intermediate steps in the slide animations. The new
5479         animation algorithm uses a constant speed instead of a constant
5480         must-be-finished-within time.
5481         (struct _ToolbarContent): use 
5482         GtkAllocation goal_allocation; and 
5483         GtkAllocation start_allocation; instead of 
5484         gint start/goal_width;
5485
5486         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
5487         documentation
5488
5489 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
5490
5491         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
5492         positioning Xinerama-aware.  (#127332)
5493
5494 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
5495
5496         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
5497         boundaries visible in fake Xinerama mode.
5498
5499 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
5500
5501         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
5502         for the gtk_widget_hide() call.
5503
5504 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
5505
5506         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
5507         from David Hampton to fix sorting on booleans.
5508
5509 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5510
5511         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
5512         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
5513         by Frederic Crozat).
5514
5515 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
5516
5517         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
5518
5519 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5520
5521         Fixes to problems reported by Iain Holmes:
5522
5523         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
5524         throw up an error dialog if the desktop doesn't exist.
5525         (error_message): Handle the case where there is no real toplevel
5526
5527         yet.
5528         (list_model_filter_func): Always let folders pass through (patch
5529         by Dave Malcolm).
5530
5531 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
5532
5533         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
5534         to a somewhat more logical place,
5535         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
5536
5537 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
5538
5539         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
5540         the popup when it is visible, popdown when there are less chars
5541         than the minimum key length in the entry,
5542         (gtk_entry_completion_changed): popdown when the entry is empty.
5543
5544         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
5545         size request of the vscrollbar to (-1, 0), to get a nicely sized
5546         completion treeview (Fixes #126573, reported by Piers Cornwell),
5547         (_gtk_entry_completion_resize_popup): show/hide the action_view
5548         based on items.
5549
5550 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5551
5552         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
5553         off the dialog's separator (thanks to Iain Holmes).
5554
5555 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5556
5557         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
5558         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
5559         on items that have a submenu. (#120104).
5560
5561 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5562
5563         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
5564         "ItemState" field indicating the overflowed-ness etc. of the item.
5565         (gtk_toolbar_size_allocate): update the field here.
5566
5567 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5568
5569         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
5570         to the alignment.  Use the HIG-specified spacing between the
5571         filter label and the combo.
5572         (create_filename_entry): Use HIG-specified spacing between the
5573         location label and the entry.
5574         (gtk_file_chooser_default_constructor): Don't use vertical padding
5575         around the filename entry.
5576
5577 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
5578
5579         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
5580         render_icon virtual method.
5581
5582         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
5583
5584         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
5585         Implement as a stub for now.
5586
5587         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
5588         gtk_file_system_render_icon().
5589         (list_icon_data_func): Likewise.
5590         (toolbar_create): Set the toolbar style to icons only.
5591
5592         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
5593         Fix doc comments.
5594
5595 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
5596
5597         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
5598         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
5599
5600 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
5601
5602         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
5603         only unselect all items if the treeview has focus. (Fixes bug
5604         reported by Marco Pesenti Gritti).
5605
5606 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
5607
5608         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
5609         number of actions is "matches + actions - 1". (Fixes #126572).
5610
5611 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
5612
5613         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
5614         mem leaks (#119435).
5615
5616 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
5617
5618         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
5619         try to fetch the child back, since we do know that it is already
5620         gone by now (#126493, Marco Pesenti Gritti).
5621
5622 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
5623
5624         Fixes based on comments from Owen Taylor, #125264.
5625
5626         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
5627         variable,
5628         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
5629         a resize,
5630         (gtk_cell_view_get_size_of_row): new function,
5631         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
5632         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
5633         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
5634         s/cellview/cell_view/ in the function definitions, so they match
5635         with the header file.
5636
5637         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
5638         flag again (:, and use gtk_cell_view_get_size_of_row instead of
5639         the measurer, remove _set_size_request call,
5640         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
5641         instead of the measurer,
5642         (gtk_combo_box_style_set): queue a resize,
5643         (gtk_combo_box_size_request): update of _remeasure call,
5644         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
5645         (gtk_combo_box_cell_layout_pack_end),
5646         (gtk_combo_box_cell_layout_clear),
5647         (gtk_combo_box_set_model): get rid of the measurer,
5648         (gtk_combo_box_cell_layout_add_attribute),
5649         (gtk_combo_box_cell_layout_set_cell_data_func),
5650         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
5651         resize instead of calling _remeasure.
5652
5653 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
5654
5655         * gdk-pixbuf/Makefile.am
5656         * modules/input/Makefile.am: Use install-data-hook for
5657         gdk-pixbuf.loaders and gtk.immodules install generation targets.
5658         Fixes #112806.
5659
5660         * gtk/gtkexpander.h: Apply missing declarations from #124449.
5661
5662 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
5663
5664         Fix for #119555, Peter Zelezny:
5665         
5666         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
5667         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
5668         by removing the _ prefix. 
5669         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
5670         gdk/gdkwindow.c: Adjust all callers.
5671
5672 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
5673
5674         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
5675         the action is sensitive.  (#127187, Christian Persch)
5676
5677 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
5678
5679         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
5680
5681 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
5682
5683         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
5684
5685         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
5686         mapped, else resize_popup.
5687
5688         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
5689         (_gtk_entry_completion_popup): moved all popup resizing code to
5690         _gtk_entry_completion_resize_popup, and show the window when there
5691         are more than zero items in the completion list again (sigh).
5692
5693 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
5694
5695         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
5696         "use_markup" property. See bug #124449.
5697
5698         * gtk/gtkexpander.c:
5699         (gtk_expander_class_init),
5700         (gtk_expander_init), (gtk_expander_set_property),
5701         (gtk_expander_get_property), (gtk_expander_set_label),
5702         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
5703         Add a "use_markup" property and use it when creating the
5704         child label.
5705
5706 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
5707
5708         Temporary size requisition fix. Will fix it for real tonight.
5709
5710         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
5711         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
5712         a good width for the child,
5713         (gtk_combo_box_cell_layout_add_attribute),
5714         (gtk_combo_box_set_cell_data_func),
5715         (gtk_combo_box_cell_layout_clear_attributes): update.
5716
5717 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
5718
5719         Fixes #124373, Murray Cumming.
5720
5721         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
5722         is no longer construct only,
5723         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
5724         (gtk_combo_box_menu_fill): new functions,
5725         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
5726         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
5727         (gtk_combo_box_list_destroy): updated,
5728         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
5729         functions,
5730         (gtk_combo_box_set_model): is now public, updated,
5731         (gtk_combo_box_get_model): small update.
5732
5733         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
5734         text_column property is no longer construct only,
5735         (gtk_combo_box_entry_set_text_column): now public,
5736         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
5737         new/changed functions.
5738
5739         * tests/testcombo.c: updated.
5740
5741 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
5742
5743         Reinstate fixes for (#124212, Marco Pesenti Gritti):
5744         
5745         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
5746         warnings for popups.
5747         (_gtk_menu_is_empty): Return FALSE for non-menus.
5748
5749 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
5750
5751         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
5752         gtk_cell_view_cell_layout_clear instead of trying to free the
5753         structure ourselves here. (#125726, Morten Welinder).
5754
5755 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
5756
5757         * gtk/gtkfilechooser.[hc]: 
5758         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
5759         confuse gtk-doc.
5760
5761 2003-11-15  Hans Breuer  <hans@breuer.org>
5762
5763         * gdk/makefile.msc gdk/gdk.def 
5764             gtk/gtk.def gtk/makefile.msc.in : updated
5765         * tests/makefile.msc : added all the new tests
5766
5767         * gtk/gtkfilefilter.c(finalize) : initialize filter
5768         from object not from itself
5769
5770         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
5771         modified as less as posible to have aworking implementation
5772         on win32. There maybe the desire to merge the unchanged pats into
5773         a common base class.
5774         Also implemented a simple glib based bookmark handling, which
5775         is currently missing in gtkfilesystemunix.[hc] but can be copied
5776         over there.
5777         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
5778
5779         * gdk/win32/gdkwindow-win32.c : implement 
5780         gdk_window_set_keep_above() and gdk_window_set_keep_below()
5781
5782         * tests/testmerge.c : don't include unistd.h unconditionally,
5783         #define STDOUT_FILENO if it isn't defined
5784
5785         * tests/testfilechooser.c : make it compile on win32
5786
5787 2003-11-15  Tor Lillqvist  <tml@iki.fi>
5788
5789         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
5790         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
5791
5792 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
5793
5794         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
5795
5796 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
5797
5798         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
5799         GTK_DATADIR/{icons,pixmaps} instead of 
5800         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
5801
5802 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
5803
5804         Changes to improve menu positioning on Xinerama (#108328, #126150):
5805         
5806         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
5807         window of the menuitem to determine the monitor. This fixes some
5808
5809         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
5810         to store the monitor on which the menu is to be positioned.
5811
5812         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
5813         in the GtkMenuPrivate struct and fetch the monitor geometry after
5814         calling the position_func, in case it has been changed.
5815
5816         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
5817         to be used in GtkMenuPositionFunc implementations for setting
5818         the monitor_num field in GtkMenuPrivate.
5819
5820         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
5821         gtk_menu_set_monitor.
5822
5823 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
5824
5825         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
5826         label for the empty list. String change.  (#95446, Tomas Ã–gren)
5827
5828 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
5829
5830         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
5831         the definition of the values.  (#123361, Marco Pesenti Gritti)
5832
5833 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
5834
5835         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
5836         (#122941, Egmont Koblinger)
5837
5838 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
5839
5840         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
5841         opacity entry widget. Change tooltip for opacity widgets. (#126426)
5842
5843 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
5844
5845         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
5846         affect window menu position when popped from keyboard. (#102660)
5847
5848 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5849
5850         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
5851         are using the old API, make all items "is_important". That way
5852         BOTH_HORIZ will continue to show both icon and label in old API
5853         mode.
5854
5855 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
5856
5857         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
5858         Remember the new value in all cases.  (#126276, Damon Chaplin)
5859
5860 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
5861
5862         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
5863         functions with the toplevel as argument.
5864
5865         * demos/gtk-demo/geninclude.pl.in: Change the signature
5866         of GDoDemoFunc to take a widget argument
5867
5868         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
5869         * demos/gtk-demo/tree_store.c (do_tree_store): 
5870         * demos/gtk-demo/textview.c (do_textview): 
5871         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
5872         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
5873         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
5874         * demos/gtk-demo/panes.c (do_panes): 
5875         * demos/gtk-demo/menus.c (do_menus): 
5876         * demos/gtk-demo/list_store.c (do_list_store): 
5877         * demos/gtk-demo/images.c (do_images): 
5878         * demos/gtk-demo/hypertext.c (do_hypertext): 
5879         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
5880         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
5881         * demos/gtk-demo/dialog.c (do_dialog): 
5882         * demos/gtk-demo/colorsel.c (do_colorsel): 
5883         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
5884         * demos/gtk-demo/button_box.c (do_button_box): 
5885         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
5886         as argument, and make new windows or dialogs appear on the
5887         same screen.  (#80388)
5888
5889 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
5890
5891         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
5892         visible-window default to TRUE, as documented and 
5893         implemented. (#126270 Damon Chaplin)
5894
5895 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
5896
5897         * gtk/gtkicontheme.c: 
5898         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
5899         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
5900         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
5901         2.4 additions.
5902
5903 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
5904
5905         Changing GtkFileChooserEntry to use GtkEntryCompletion.
5906
5907         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
5908         a GtkListStore for the completion list.  Create a
5909         GtkEntryCompletion and attach it to the chooser entry.
5910         (gtk_file_chooser_entry_finalize): Unref the completion store.
5911         (completion_match_func): New callback for the GtkEntryCompletion.
5912         (completion_idle_callback): Fill the completion store with filenames.
5913
5914 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
5915
5916         * gtk/gtkwindow.c (gtk_window_set_role): 
5917         * gtk/gtkwindow.c (gtk_window_set_title): 
5918         * gtk/gtkwidget.c (gtk_widget_set_name): 
5919         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
5920         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
5921         safe for self-assignment.  (#122745, Soeren Sandmann)
5922
5923 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
5924
5925         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
5926         (#126369, Olexiy Avramchenko)
5927
5928 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
5929
5930         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
5931         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
5932         consistency of titles.  (#126193, Damon Chaplin)
5933
5934 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
5935
5936         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
5937         menus to be transient for the toplevel they were torn off from.
5938         (gtk_menu_get_toplevel): Auxiliary function to find the
5939         toplevel of a menu.  (#54775, Jon-Kare Hellan)
5940
5941 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
5942
5943         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
5944         min-position and max-position.  (#58431, Padraig O'Briain)
5945
5946 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
5947
5948         * gtk/gtkcolorsel.c (update_color): 
5949         (make_label_spinbutton): 
5950         (adjustment_changed): Change the ranges for Saturation and
5951         Value to be 0-100 instead of 0-255, since these axes of HSV
5952         are usually expressed in percent.  (#121519, Gregory Merchan)
5953
5954 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
5955
5956         * docs/faq/gtk-faq.sgml: More 2.x updates
5957
5958 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
5959
5960         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
5961         pkg-config command error, update copyright.
5962
5963 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
5964
5965         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
5966         well.  Use a helper function.
5967         (shortcuts_append_home): Display an error box if necessary.
5968         (shortcuts_append_desktop): Likewise.
5969         (add_bookmark_button_clicked_cb): Likewise.
5970         (gtk_file_chooser_default_select_path): Likewise.
5971         (entry_activate): Likewise.
5972         (shortcuts_append_paths): New helper function.
5973         (shortcuts_append_file_system_roots): Use
5974         shortcuts_append_paths().
5975         (shortcuts_append_bookmarks): Likewise.
5976
5977 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
5978
5979         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
5980         menu is NULL.
5981         (update_smart_separators): Remove some unneeded ifs.
5982
5983 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
5984
5985         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
5986         these usable in C++. Forgot this file in my Oct 11 commit.
5987
5988 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
5989
5990         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
5991         icon to the "Add bookmark" button.
5992
5993         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
5994         * gtk/gtkfilesystemmodel.c: Likewise.
5995         * gtk/gtkfilechooser.c: Likewise.
5996         * gtk/gtkfilechooserdefault.c: Likewise.
5997
5998 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
5999
6000         * gdk/gdk.c: 
6001         * gdk/gdkinternals.h: 
6002         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
6003         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
6004         Xinerama mode when no actual Xinerama setup is found. 
6005
6006 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
6007
6008         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
6009         (create_shortcuts_tree): Don't call the above.
6010         (bookmarks_changed_cb): Likewise.
6011         (tree_selection_changed): Unselect everything from the shortcuts
6012         list.  This is the behavior that Mac OS has.
6013         (toolbar_add_item): Return the item.
6014         (toolbar_create): Store the up_button in the impl structure.
6015         (toolbar_check_sensitivity): New function to set the sensitivity
6016         of the "Up" button in the toolbar.
6017         (tree_selection_changed): Call toolbar_check_sensitivity().
6018
6019 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
6020
6021         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
6022         not set a border width for the toplevel container.
6023         (toolbar_create): New function; create a simple toolbar for the
6024         file chooser.
6025         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
6026         the table, as per the HIG.
6027         (gtk_file_chooser_default_init): Likewise, for the default
6028         implementation's vbox.
6029
6030         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
6031         note that NULL is a valid return value for the parent path.
6032
6033 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6034
6035         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
6036         Change on activation, not selection change (temporary
6037         workaround for #125955, needed for keynav, likely
6038         the right UI anyways.)
6039
6040         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
6041         Don't allow the separator node to be selected.
6042
6043         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
6044         Set the focus chain so that the entry gets focused first.
6045         (Not really right after initial focusing, maybe we
6046         should just have a gtk_file_chooser_focus_entry() that
6047         we call from gtk_file_chooser_dialog on creation.)
6048
6049 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
6050
6051         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
6052         residual call to gtk_window_get_private().
6053
6054 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
6055
6056         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
6057         into GtkWindowPrivate structure, fixing ABI breakage
6058         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
6059         to instance-private-data.
6060
6061 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6062
6063         * gtk/gtktoolbar.c (get_item_requisition): delete this function
6064         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
6065         instead of re-calculating for each item.
6066         (gtk_toolbar_size_allocate): Update comments
6067
6068 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6069
6070         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
6071         placeholders when include_internals is TRUE.
6072
6073 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6074
6075         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
6076         item 0 is a placeholder. (#125826)
6077         * tests/testtoolbar.c: add an assertion that 
6078         gtk_toolbar_get_nth_item (0) != NULL
6079
6080 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6081
6082         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
6083         logical == 0.(#125826)
6084
6085 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6086
6087         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
6088         return the index of a real item.
6089         (get_nth_item) assert that the returned items is not a
6090         placeholder.  (#125826, Marco Pesenti Gritti).
6091         
6092 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
6093
6094         * gtk/gtkcellrendererseptext.c
6095         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
6096         text is NULL, rather than also doing it if it is an empty string.
6097
6098 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
6099
6100         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
6101         gtk_message_dialog_new_with_format): Allow NULL
6102         for message_format, as described in the docs and
6103         as worked previously. (#125759, Richard Hult)
6104
6105         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
6106         Use g_markup_vprintf_escaped() to escape arguments.
6107
6108         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
6109         so there is some way to set literal markup.
6110
6111 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
6112  
6113         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
6114         the call to gdk_error_trap_pop() to the right place,
6115         fixing a problem where we'd pop() too many times 
6116         when bailing out. (#123302, Thomas Leonard)
6117         
6118 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
6119
6120         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
6121         Fix infinite recursion. (#125679, Christian Persch)
6122
6123 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
6124
6125         * docs/faq/gtk-faq.sgml: further 2.x updates:
6126         mirrors,compiling,g_main_context_iteration
6127
6128 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6129
6130         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
6131         function; remove gtk_toolbar_highlight_drop_location() and
6132         gtk_toolbar_unhighlight_drop_location().
6133
6134         Also fix bug where the number of overflowed items were miscounted.
6135
6136 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
6137
6138         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
6139         some accidentally committed duplicate code.
6140
6141 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
6142
6143         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
6144
6145 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
6146
6147         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
6148         gtk_has_toplevel_focus): Add getters corresponding to
6149         the is_active and has_toplevel_focus properties.
6150         (#122531)
6151
6152 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
6153
6154         * gtk/gtkexpander.c:
6155         (gtk_expander_class_init): hook up the destroy handler.
6156         (gtk_expander_destroy), (gtk_expander_unrealize):
6157         remove the expand/collapse timeout on destroy instead
6158         of unrealize to avoid leaving the expander in a inconsistent
6159         state when unrealizing during animation.
6160         (gtk_expander_start_animation): remove realized check.
6161         (gtk_expander_set_expanded): if the widget isn't realized,
6162         expand immediately.
6163
6164 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
6165
6166         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
6167         do nothing when recipient is NULL, as described in the
6168         doc comment. (#123107, Thomas Leonard)
6169
6170 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
6171
6172         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
6173         rewrite docs, mention memory management for the return
6174         value. (Partly addresses #125549, Michael Natterer)
6175
6176 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
6177
6178         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
6179         Change index to filter_index to fix compilation error.
6180
6181         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
6182
6183 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
6184
6185         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
6186         we have RandR support, for XRRUpdateConfiguration declaration.
6187
6188         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
6189         declaration.
6190
6191         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
6192         length a gsize variable, since that's what g_file_get_contents()
6193         expects.
6194
6195 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
6196
6197         * NEWS: Fix attribution for above/below EWMH work.
6198
6199 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
6200
6201         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
6202         as a construct-only property.  (#125475, Murray Cumming)
6203
6204 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6205
6206         Fix bug 116297 and 125472
6207         
6208         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
6209         this function take an index and a GtkToolItem.
6210
6211         * tests/testtoolbar.c (main): Make "Show Arrow" default to
6212         true. Make one of the separators !draw and expand.
6213         Update for new highlight_drop_location() API.
6214
6215         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
6216
6217         * gtk/gtktoolbar.h: Formatting fixes.
6218
6219         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
6220         separator tool items to expand.
6221         (logical_to_physical, physical_to_logical): Fix off-by-one errors
6222         (Fix #125472, Marco Pesenti Gritti)
6223
6224         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
6225         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
6226         return FALSE, not TRUE.
6227         (gtk_separator_too_item_{set|get}_property,
6228         (gtk_separator_tool_item_{set|get}_draw): new functions
6229
6230 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
6231
6232         * === Released 2.3.0 ===
6233
6234         * configure.in: Remove a stray comma.
6235
6236         * README.in: Fix a few notes about Xft 1 and pango-1.0.
6237
6238         * NEWS: Finish updates for 2.3.0.
6239
6240         * po/Makefile.in.in: Update to latest GLib version.
6241
6242 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
6243
6244         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6245         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
6246         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
6247         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
6248         Sandmann).
6249
6250 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
6251
6252         * gtk/gtktreemodelfilter.h: add padding to the class structure.
6253
6254 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
6255
6256         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
6257         (gtk_file_chooser_remove_filter): Likewise.
6258         (gtk_file_chooser_select_all): Added docs.
6259         (gtk_file_chooser_unselect_all): Likewise.
6260
6261         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
6262
6263         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
6264
6265 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
6266
6267         * gtk/gtkfilefilter.c: 
6268         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
6269
6270 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
6271
6272         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
6273
6274 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
6275
6276         * NEWS: Remove a few duplicates, group the menu changes.
6277
6278 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
6279
6280         * NEWS: Updates for 2.3.0; changed header to match the style we used
6281         for 2.1.0.
6282
6283 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
6284
6285         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
6286         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
6287
6288 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
6289
6290         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
6291         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
6292         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
6293
6294 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6295
6296         * NEWS: Partial update for 2.3.0.
6297
6298 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
6299
6300         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
6301         GtkComboBox.
6302
6303 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
6304
6305         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
6306         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
6307         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
6308         Basic framework for the new file selector widget.
6309
6310         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
6311         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
6312         Initial implementation of the GtkFileChooser user interface.
6313
6314         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
6315         for Unix files.
6316
6317         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
6318         for freedesktop.org MIME system on Unix.
6319
6320         * tests/testfilechooser.c: Test program for GtkFileChooser
6321
6322         * tests/prop-editor.c: Add support for properties on interfaces.
6323
6324 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6325
6326         * demos/gtk-demo/menus.c (do_menus): Fix some unused
6327         variables.
6328
6329         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
6330         variable warning.
6331
6332 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
6333
6334         * NEWS: Partial update for 2.3.0.
6335
6336 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
6337
6338         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
6339         ctrl_pressed and shift_pressed according to the current event
6340         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
6341
6342 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
6343
6344         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
6345         timeout when the user pressed on Enter/ESC. Fixes the bug where the
6346         completion popup popped up after the user pressed on Enter (which is
6347         just weird). Reported by the Epiphany people (all of them).
6348
6349 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6350
6351         Add support for OS X like sliding of toolbar items during drag and
6352         drop, (#110919, Dave Bordoley)
6353
6354         Make dnd highlighting the responsibility of the
6355         application. (Fixes #116298, Owen Taylor)
6356
6357         * gtk/gtktoolbar.h: Add prototypes for new API.
6358         
6359         * gtk/gtktoolbar.c
6360         (physical_to_logical, logical_to_physical): new functions
6361         converting between "position including placeholders" and "position
6362         excluding placeholders".
6363         (gtk_toolbar_class_init): remove drag_leave and drag_motion
6364         handlers
6365         (struct _ToolbarContent): new struct containing information
6366         related to toolbar items.
6367         (gtk_toolbar_highlight_drop_location): new public function
6368         (gtk_toolbar_unhighlight_drop_location): new public function
6369         
6370         * tests/testtoolbar.c
6371         (toolbar_drag_motion, toolbar_drag_leave): new functions
6372         (main): connect to dnd signals.  Make the "New" item expand to
6373         make drag and drop more exciting.
6374
6375 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
6376
6377         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
6378         _set_active, not _set_active_item.
6379
6380 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
6381
6382         * gtk/gtkcombobox.h: add padding to the class structure.
6383         * gtk/gtkcomboboxentry.h: ditto.
6384         * gtk/gtkentrycompletion.h: ditto.
6385
6386 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
6387
6388         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
6389         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
6390         value and what it means.
6391
6392         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
6393         item to -1 (default),
6394         (gtk_combo_box_entry_active_changed): do nothing when the index is
6395         < 0.
6396
6397 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
6398
6399         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
6400         to set the active row by iter.
6401
6402         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
6403         to get the active row by iter.
6404
6405 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
6406
6407         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
6408         operations on windows if the tree view is not mapped.
6409         (gtk_tree_view_button_press): Compare equal types of pointers, not
6410         GtkWidget* vs. GtkTreeView*.
6411
6412 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
6413
6414         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
6415         the reset of first_sel_changed, as after the first popup the treeview
6416         will always have a row selected and will thus not focus_to_cursor.
6417
6418         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
6419         whether the keyval should move the completion selection cursor (used
6420         to avoid ending up with extreme cluttered code), also added
6421         all KP_ equivalents of the keys here,
6422         (gtk_entry_completion_key_press): Keynav tweaks based on comments
6423         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
6424         as possible current selection, implement Home/End keys, modified
6425         the down key to stop cycling. Maybe page up/down should be implemented
6426         at some later time.
6427
6428 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
6429
6430         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
6431         as documented when pixmap or mask is NULL.  (#124081) 
6432
6433 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
6434
6435         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
6436         I was adding the signal block/unblock code. Oops. (Noticed by
6437         Marco Pesenti Gritti).
6438
6439 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
6440
6441         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
6442         (set_interp_type), (main): port over from option menu to GtkComboBox.
6443
6444 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
6445
6446         * tests/testmenus.c: Still uses option menus, so turn off
6447         GTK_DISABLE_DEPRECATED.
6448
6449 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
6450
6451         * gtk/gtkalignment.[hc]: 
6452         * gtk/gtkcombobox.[hc]: 
6453         * gtk/gtkcomboboxentry.[hc]: 
6454         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
6455         from header to implementation.
6456
6457 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
6458
6459         * tests/testtreeview.c: 
6460         * demos/testpixbuf-scale.c: 
6461         * tests/prop-editor.c: These files still use option menus,
6462         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
6463
6464 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
6465
6466         * gtk/gtkactiongroup.h: 
6467         * gtk/gtkaction.h: 
6468         * gtk/gtkradioaction.h: 
6469         * gtk/gtkradiotoolbutton.h: 
6470         * gtk/gtkseparatortoolitem.h: 
6471         * gtk/gtktoggleaction.h: 
6472         * gtk/gtktoolitem.h: 
6473         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
6474         these usable in C++.  (#124351, Murray Cumming)
6475
6476 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
6477
6478         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
6479         non-NULL before accessing it. Oops.
6480
6481 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
6482
6483         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
6484         (gtk_entry_completion_insert_action_text),
6485         (gtk_entry_completion_insert_action_markup): the gchar* parameters
6486         should be const (pointed out by both Marco Pesenti Gritti and
6487         Murray Cumming (#124356).
6488
6489 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
6490
6491         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
6492         child list mode, allocate the height allocation->height to the
6493         button instead of the height requested by the button. (Tiny
6494         size allocation screwup noticed by Macro Pesenti Gritti).
6495
6496 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
6497
6498         Fixes based on comments from Marco Pesenti Gritti.
6499
6500         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
6501         signal handler, avoids the completion popup to popup when text is
6502         set programmatically in most cases (we actually have to handle this
6503         in the _editable functions as well, but that will break popping up
6504         when the user actually typed something :),
6505         (gtk_entry_completion_key_press): when handling enter, bail out
6506         when nothing has been selected,
6507         (gtk_entry_completion_changed): don't popdown when the entry content
6508         changed.
6509
6510         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
6511         (gtk_entry_completion_selected_changed): unselect_all on the
6512         first selected changed signal. Avoids having a default row selected,
6513         (_gtk_entry_completion_popup): don't select the first row by default.
6514
6515         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
6516         first_sel_changed field.
6517
6518 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
6519
6520         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
6521         in the intro (again).
6522
6523 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
6524
6525         Fixes for (#124212, Marco Pesenti Gritti):
6526         
6527         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
6528         warnings for popups.
6529         (_gtk_menu_is_empty): Return FALSE for non-menus.
6530
6531 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
6532
6533         * gtk/gtkcombo.h: Deprecate.
6534         * gtk/gtkoptionmenu.h: Ditto.
6535
6536         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
6537         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
6538         needs some work on requesting enough size when taking the items in
6539         the list into account.
6540
6541         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
6542         deprecated" guards.
6543         * gtk/gtkinputdialog.c: ditto.
6544         * gtk/gtkitemfactory.c: ditto.
6545         * gtk/gtkoptionmenu.c: ditto.
6546
6547         * demos/gtk-demo/menus.c: remove the option menu.
6548         * demos/gtk-demo/sizegroup.c: replace the option menus with
6549         GtkComboBox.
6550         * demos/gtk-demo/textview.c: ditto.
6551         (A general GtkComboBox demo will be added later on).
6552
6553 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
6554
6555         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
6556         callback to propertly report radio actions.
6557
6558         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
6559
6560 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
6561
6562         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
6563         version in in the right field of the _XEMBED_INFO property.  
6564         (#123885, Denis Mikhalkin)
6565
6566 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
6567
6568         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
6569         the child if we have one.
6570
6571         (gtk_expander_button_release): use
6572         gtk_widget_activate instead.
6573
6574 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
6575
6576         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
6577         "right_attach" with a capital.  (#123945, Christian Rose)
6578
6579 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
6580
6581         * tests/testsocket.c (child_read_watch): Remove an
6582         extraneous unref.  (#122336, Frederic Crozat)
6583
6584 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
6585
6586         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
6587         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
6588
6589 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6590
6591         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
6592         focus arrow before pack_end items (#123851, Matthias Clasen)
6593
6594 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
6595
6596         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
6597         on ->priv->cell_view if ->priv->cell_view is non-NULL.
6598
6599         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
6600         field to GtkComboBoxEntryPrivate,
6601         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
6602         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
6603         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
6604         a construct-only "text_column" property and reorder code to use it
6605         and support inheriting this widget.
6606
6607 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
6608
6609         * gtk/gtkcombobox.c: Added API doc comments.
6610
6611         * gtk/gtkcomboboxentry.c: Ditto.
6612
6613 2003-10-02  Matthias Clasen  <maclas@gmx.de>
6614
6615         * gtk/gtktoggleaction.c: Documentation tweaks.
6616
6617 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
6618
6619         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
6620         packing/attribute/cell data functions from the header,
6621         (gtk_cell_view_set_cell_data): added support for cell data funcs.
6622
6623         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
6624         packing/attribute/cell data functions from the header, implemented
6625         cell data func support.
6626
6627         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
6628         for the move to GtkCellLayout.
6629
6630         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
6631
6632 2003-10-01  Matthias Clasen  <maclas@gmx.de>
6633
6634         * gtk/gtkaction.c (gtk_action_class_init): 
6635         (gtk_action_[gs]et_property): Introduce a separate
6636         "hide_if_empty" property for empty menu handling.
6637         (_gtk_action_sync_menu_visible): ...and use it here.
6638
6639         * tests/testmerge.c (main): ...and here.
6640
6641         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
6642         comments to pacify gtk-doc.
6643
6644         * gtk/gtkmain.c: Doc formatting tweaks.
6645
6646         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
6647
6648         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
6649         Use the same parameter names as in .c file, to pacify gtk-doc.
6650
6651         * gtk/gtktoggletoolbutton.[hc]: 
6652         * gtk/gtktoolbutton.[hc]: 
6653         * gtk/gtktoolitem.[hc]:
6654         * gtk/gtktoolbar.[hc]: 
6655         * gtk/gtkcolorbutton.[hc]: 
6656         * gtk/gtkfontbutton.[hc]: 
6657         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
6658         source, not in the header.
6659
6660         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
6661         Document these as 2.4 API additions.
6662
6663 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
6664
6665         * gtk/gtkentry.c (gtk_entry_set_completion),
6666         (gtk_entry_get_completion): Add API doc comments.
6667
6668         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
6669
6670 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
6671
6672         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
6673
6674 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
6675
6676         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
6677
6678         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
6679
6680 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6681
6682         * tests/merge-*.ui: 
6683         * tests/testmerge.c: Test handling of empty menus.
6684
6685         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
6686         whether a menu is empty. Used in gtkaction.c.
6687         (update_smart_separators): Also update the visibility of empty menus.
6688         (update_node): When creating a new menu proxy, insert an "Empty" menu 
6689         item which only gets shown if the menu is empty. 
6690
6691         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
6692         "is_important" for menu proxies.
6693         (_gtk_action_sync_menu_visible): New function to sync the visibility
6694         of menu proxies. Used in gtkuimanager.c.
6695         (gtk_action_sync_visible): New function to sync the visibility of 
6696         proxies.
6697
6698 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
6699
6700         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
6701         popup_in_progress to TRUE,
6702         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
6703         won't disappear on the first button release. (Reported by Matthias
6704         Clasen).
6705
6706 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
6707
6708         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
6709
6710         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
6711         Marco Pesenti Gritti).
6712
6713 2003-09-30  Murray Cumming  <murrayc@usa.net>
6714  
6715         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
6716         instead of a GdkWindow*, because that what it is given. The 
6717         documentation was already correct. This should cause no API/ABI
6718         breakage with C compilers.
6719         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
6720         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
6721         implementation accordingly.
6722
6723 2003-09-30  Matthias Clasen  <maclas@gmx.de>
6724
6725         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
6726         "direction-changed" and "keys-changed" signals.
6727
6728         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
6729         "size-changed" signal.
6730
6731         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
6732         Document the "display-opened" signal.
6733
6734         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
6735         (gdk_display_class_init): Document the "closed" signal.
6736
6737 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6738
6739         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
6740         accepts_tab. (#122709 again).
6741
6742 2003-09-27  Matthias Clasen  <maclas@gmx.de>
6743
6744         * gtk/gtkwindow.c (gtk_window_new):
6745         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
6746         the fact that the newly created object does not come with 
6747         a floating reference.  (#103068, patch by Frederic Lespez)
6748         
6749         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
6750         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
6751         since GtkActionGroup uses it.
6752
6753         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
6754         this test uses the soon-to-be-deprecated GtkItemFactory.
6755
6756         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
6757         remove item_factory.c
6758
6759         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
6760         using GtkUIManager instead of GtkItemFactory.
6761
6762         * tests/testmerge.c: Demonstrate the use of the 
6763         connect-proxy signal.
6764
6765         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
6766         disconnect-proxy signals to do small customizations 
6767         like displaying tooltips in the statusbar without 
6768         custom actions.  (#122894, Philip Langdale)
6769
6770         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
6771
6772 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
6773
6774         Landing the new ComboBox. Note that only gtkcombobox.h and
6775         gtkcomboboxentry.h are public.
6776
6777         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
6778         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
6779
6780         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
6781
6782         * tests/testcombo.c: and a new test.
6783
6784         * tests/Makefile.am: adding the new test.
6785
6786 2003-09-25  Tor Lillqvist  <tml@iki.fi>
6787
6788         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
6789
6790 2003-09-21  Tor Lillqvist  <tml@iki.fi>
6791
6792         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
6793         function. Code split out from gdk_event_translate(). Needed
6794         because gdk_event_get_graphics_expose() couldn't do anything
6795         sensible otherwise. (Not that I think graphics exposes work anyway
6796         in gdk/win32, but at least now the code could work.)
6797
6798         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
6799         gdk_event_translate(), which couldn't have worked as it doesn't
6800         take any pre-allocated GdkEvent parameter any longer.
6801         
6802         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
6803         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
6804
6805 2003-09-24  Matthias Clasen  <maclas@gmx.de>
6806
6807         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
6808         on toolitems.
6809
6810         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
6811
6812         * gtk/gtkuimanager.c (update_node): Don't complain about missing
6813         actions on popups. Re-set "tooltip" property on toolitems after
6814         adding them to parent to trigger proxy update.
6815
6816 2003-09-22  Matthias Clasen  <maclas@gmx.de>
6817
6818         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
6819         group member to test the fix for #122904.
6820
6821         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
6822         Add the action to the group before activating it, otherwise we
6823         may end up with multiple active group members.  (#122904, Marco
6824         Pesenti Gritti)
6825
6826 2003-09-21  Matthias Clasen  <maclas@gmx.de>
6827
6828         Changes to make cross-process merging feasible:
6829         
6830         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
6831         merged UI definition. Remove the "changed" signal, since its role
6832         is now filled by "notify::ui". Instead add a "actions-changed" signal
6833         which gets emitted when the set of actions changes.
6834
6835         * gtk/gtktoggleactionprivate.h:
6836         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
6837         Add a "draw_as_radio" property to toggle actions so that they can be
6838         used as proxies for radio actions much like the "draw_as_radio" 
6839         property on check menu items enables them to operate as proxies for
6840         radio actions.
6841
6842         Prevent the "show_all" trap for action-based menus (see
6843         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
6844         msg00260.html):
6845
6846         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
6847         calls from static functions.
6848
6849         * gtk/gtkuimanager.c (update_node): 
6850         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
6851         widgets whose visibility is externally controlled.
6852
6853         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
6854         "no_show_all" property with setter and getter. When TRUE, it keeps
6855         gtk_widget_{hide,show}_all() from modifying the visibility of the 
6856         widget and its children.
6857
6858 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6859
6860         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
6861
6862 2003-09-20  Tor Lillqvist  <tml@iki.fi>
6863
6864         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
6865         including editor backup files. List files we want explicitly.
6866
6867         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
6868         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
6869         LC_ALL, LC_CTYPE and LANG environment variables, than calls
6870         g_win32_getlocale().
6871
6872         (gtk_get_default_language): Code snippet moved to above function,
6873         call it.
6874
6875         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
6876         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
6877         _gtk_get_lc_ctype() instead of setlocale().
6878
6879 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6880
6881         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
6882         (#96632)
6883
6884 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6885
6886         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
6887         documentation. (#117306, Steve Chaplin)
6888
6889 2003-09-19  Tor Lillqvist  <tml@iki.fi>
6890
6891         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
6892         present on the US-International keyboard. For clarity, order
6893         keysyms in case statement according to numeric value.
6894
6895         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
6896         correctly. (#120176, Ken Rastatter and Owen Taylor)
6897
6898 2003-09-18  Matthias Clasen  <maclas@gmx.de>
6899
6900         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
6901         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
6902
6903         Install accelerators on actions, not on proxies, support
6904         accelerator-only actions:
6905         
6906         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
6907         and its lock status either via _gtk_widget_get_accel_path() or by 
6908         looking at the accel_path stored in the menu item itself and determining
6909         its lock status by peeking into the contained accel label. This was
6910         already (accidentally) committed a week ago.
6911
6912         * gtk/gtkaction.h (gtk_action_set_accel_group):
6913         (gtk_action_[dis]connect_accelerator): New functions.
6914
6915         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
6916         accel_closure and accel_count. We must have a reference to the 
6917         accel_group, since we need it in connect_proxy. The count is necessary
6918         to ensure that the accelerator isn't removed before the last proxy 
6919         requesting it has been unmerged.
6920         (connect_proxy): Connect the accelerator to the 
6921         action now, only set the accel_path on the menuitem.
6922         (remove_proxy): Disconnect the accelerator from the action, not from
6923         the menuitem.
6924         (gtk_action_set_accel_group): Set the accel group. 
6925         (gtk_action_[dis]connect_accelerator): Count the number of times
6926         this functions have been called and install/remove the accelerator if
6927         the count leaves/reaches zero.
6928
6929         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
6930         GTK_UI_MANAGER_ACCELERATOR.
6931
6932         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
6933         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
6934         <accelerator> elements.
6935         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
6936         type is GTK_UI_MANAGER_ACCELERATOR.
6937         (update_node): Set the accel group on actions before creating their
6938         proxies. Don't set the accel group on created menus. For 
6939         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
6940         (print_node): Also emit <accelerator> elements.
6941
6942         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
6943
6944         * gtk/gtkuimanager.c (update_node): Robustness improvements.
6945
6946 2003-09-17  Matthias Clasen  <maclas@gmx.de>
6947
6948         * gtk/gtkuimanager.c (text_handler): Report unexpected character
6949         data as error from the GMarkup parser, otherwise things like
6950         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
6951         pass unexpectedly.
6952
6953 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6954
6955         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
6956         committed redraw_on_allocate change.
6957
6958 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
6959
6960         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
6961         stubs to fix compilation
6962
6963         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
6964         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
6965
6966         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
6967         variable. Patch from Marc Welz (#121347).
6968
6969 2003-09-16  Matthias Clasen  <maclas@gmx.de>
6970
6971         * gtk/gtkaction.h: Apply egtk-format-protos.
6972
6973 2003-09-15  Matthias Clasen  <maclas@gmx.de>
6974
6975         * gtk/gtkuimanager.c: Doc tweaks.
6976
6977         Smart separators; see 
6978         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
6979         
6980         * gtk/gtkuimanager.c (update_smart_separators): New function which 
6981         implements "smart" separators by iterating once over the entries of a 
6982         menu, hiding and showing separators as necessary.
6983         (update_node): Mark separators used as fences of placeholders as
6984         hidden. Explicitly added separators are marked as smart. Call 
6985         update_smart_separators after updating a menu or toolbar node. 
6986         Connect update_smart_separators to "notify::visible" signal on menu
6987         and tool items.
6988         
6989         * tests/merge-[12].ui: Test smart separators.
6990
6991         Changes to allow setting action state before connecting signal; see
6992         the thread starting at 
6993         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
6994         
6995         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
6996         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
6997         setting the currently selected group member before connecting signals.
6998         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
6999         including a boolean to initialize the action state before connecting
7000         signals.
7001         (gtk_action_group_add_toggle_actions):
7002         (gtk_action_group_add_toggle_actions_full): New functions to construct
7003         toggle actions from an array of GtkToggleActionEntries.
7004
7005         * demos/gtk-demo/appwindow.c: 
7006         * tests/testactions.c: 
7007         * tests/testmerge.c: Adjust to new action group API.
7008
7009 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7010
7011         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
7012         "gtk-toolbar-arrow" so themes can special-case it.
7013
7014 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7015
7016         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
7017
7018 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7019
7020         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
7021         PangoFontMetrics. Patch from Steve Chaplin (#122257).
7022
7023 2003-09-14  Tor Lillqvist  <tml@iki.fi>
7024
7025         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
7026         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
7027         the usefulness of which was already in doubt. Removing it fixes
7028         bugs #118575 and #121851.
7029
7030 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
7031
7032         Merge from stable.
7033
7034         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
7035         pressed button (used to determine if we want to initiate a drag later
7036         on) if the current grab widget is either NULL or tree_view (Reported
7037         by Jeroen Zwartepoorte).
7038
7039 2003-09-12  Matthias Clasen  <maclas@gmx.de>
7040
7041         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
7042         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
7043
7044 2003-09-11  Matthias Clasen  <maclas@gmx.de>
7045
7046         * gdk/gdkpango.c: Doc tweaks.
7047
7048         * tests/testgtk.c: Add table menu tests.
7049
7050         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
7051         GtkMenuPrivate struct itself. Pointed out by valgrind.
7052
7053         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
7054         properly.  (#121998)
7055
7056 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
7057
7058         The table menu patch! Turns GtkMenu into a table, so you can attach
7059         menu items in numerous new ways! Be creative!
7060
7061         Contains some bug fixes and RTL adaptions from Matthias Clasen.
7062
7063         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
7064         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
7065         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
7066         the heights array in the private struct,
7067         (gtk_menu_class_init): reorder code a bit, install child properties,
7068         (get_attach_info), (get_child_attach): new utility functions,
7069         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
7070         child properties, for the attach info,
7071         (gtk_menu_remove): remove AttachInfo from menu item,
7072         (gtk_menu_real_insert): implemented algorithm to automagically place
7073         inserted menu items at the correct place in the table,
7074         (gtk_menu_size_request), (gtk_menu_size_allocate),
7075         (compute_child_offset): reworked/rewritten to support table menus,
7076         (gtk_menu_attach): new function,
7077         (find_child_containing), (gtk_menu_move_current): new functions to
7078         get table menu keynav right.
7079
7080         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
7081
7082 2003-09-10  Matthias Clasen  <maclas@gmx.de>
7083
7084         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
7085         PropertyNotify events from the stream if they have been handled,
7086         in order to enable extending the plug<->socket communication via
7087         properties.
7088
7089 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
7090
7091         Big TreeView DnD fixage, makes drops on empty models work, makes
7092         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
7093         Related bugs #95362 and #113314. I don't want to touch this code
7094         ever again.
7095
7096         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
7097
7098         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
7099         for selection_data->length.
7100
7101         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
7102         (set_dest_row), (get_dest_row): we don't store just the row ref
7103         anymore, but a struct with the row ref and additional info,
7104         (set_destination_row): handle drops on empty space and some
7105         style fixes,
7106         (get_logical_dest_row): also return path_down_mode/drop_append_mode
7107         flags, handle dropping childs on their new parents, rewrite
7108         drop append handling into something saner,
7109         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
7110         spaces,
7111         (gtk_tree_view_drag_drop): updates for updated backend,
7112         (gtk_tree_view_drag_data_received): updates for updated backend,
7113         path down mode (treestore DnD) handling,
7114         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
7115         when we are trying to drop a row on an empty model,
7116         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
7117
7118         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
7119         (gtk_list_store_row_drop_possible): style and drop-append fixes.
7120
7121         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
7122
7123 2003-09-08  Alexander Larsson  <alexl@redhat.com>
7124
7125         * gtk/gtkeventbox.[hc]:
7126         Implement gtk_event_box_get/set_input_only()
7127         
7128         * tests/testgtk.c:
7129         Tests for the new input only event boxes
7130
7131 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
7132
7133         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
7134
7135         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
7136         the call to gtk_tree_model_filter_add_root,
7137         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
7138         the virtual root, allow building levels on the second try to convert
7139         the child path to a filter path,
7140         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
7141         root when calling gtk_tree_model_filter_elt_get_path.
7142
7143 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7144
7145         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
7146         Josh Beam)
7147
7148         Fixes for accelerator handling during (un)merging:
7149         
7150         * gtk/gtkuimanager.c (update_node): Move setting info-action
7151         after the switch, since the old action is needed in some cases.
7152         In cases of proxy type mismatch, disconnect the old proxy from
7153         the old action.
7154
7155         * gtk/gtkaction.c (remove_proxy): Renamed from 
7156         gtk_action_remove_proxy(). Move unsetting of the accelerator
7157         here from disconnect_proxy() in order to catch all cases of 
7158         removing a proxy.
7159         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
7160         to fail if proxy isn't a proxy of action.
7161
7162 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
7163
7164         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
7165         ALL_LINGUAS
7166
7167 2003-09-07  Matthias Clasen  <maclas@gmx.de>
7168
7169         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
7170         for toolitems.
7171
7172 2003-09-06  Matthias Clasen  <maclas@gmx.de>
7173
7174         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
7175         prev_action, not from action.  (Fix by David Hampton)
7176
7177 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
7178  
7179         * Back out locale-dependent interpretation of
7180         KP_Decimal, the official XFree86 interpretation
7181         is that KP_Decimal => . KP_Separator => ,
7182         always, independent of locale. 
7183         (#105161, Frederic Crozat, 
7184         http://bugs.xfree86.org/show_bug.cgi?id=534)
7185  
7186 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7187
7188         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
7189
7190         * gtk/gtktoggleaction.c (connect_proxy): 
7191         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
7192         that a "draw_as_radio" property is needed for check buttons similar to 
7193         check menu items, in order to fully support button proxies for radio actions.
7194
7195         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
7196
7197         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
7198
7199         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
7200         'type' argument of gtk_ui_manager_add_ui().
7201
7202         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
7203         to make this function as powerful as the XML methods of adding UI.  (#120647)
7204
7205 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
7206
7207         Merge from stable.
7208
7209         * docs/RELEASE-HOWTO: updates.
7210
7211 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7212
7213         * tests/merge-2.ui: Use "position" instead of "pos".
7214
7215         * gtk/gtkuimanager.c (start_element_handler): No need 
7216         to be terse: Change the name of the "pos" attribute
7217         to "position".
7218
7219 2003-09-04  Matthias Clasen  <maclas@gmx.de>
7220
7221         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
7222         GtkUIManagerNode to shorten the names and to make the
7223         GTK_UI_MANAGER_<TYPE> names available for a public enum.
7224
7225         * gtk/gtkactiongroup.c:
7226         * gtk/gtkuimanager.c: Various doc tweaks.       
7227
7228         * gtk/gtkuimanager.c (start_element_handler):
7229         (end_element_handler): Improve error reporting. 
7230
7231 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
7232
7233         Merge from stable.
7234
7235         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
7236         use end_position - page_size instead of G_MAXINT, since
7237         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
7238         reported by Havoc Pennington).
7239
7240 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
7241
7242         Merge from stable.
7243
7244         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
7245         unref it. (Fixes memleak, patch from Kjartan Maraas).
7246
7247 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
7248
7249         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
7250         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
7251         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
7252         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
7253         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
7254         gtk/gtktypeutils.h: big patch from Kjartan Maraas
7255         to fix numerous typos.
7256
7257 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
7258
7259         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
7260
7261 2003-09-02  Tor Lillqvist  <tml@iki.fi>
7262
7263         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
7264         CloseHandle() on the HMODULE returned from GetModuleHandle().
7265         Didn't cause any harm, but didn't do anything useful either. When
7266         running a GTK+ program under MS's debugger, the CloseHandle() call
7267         would cause a "first-chance exception" in ntdll.dll to show up.
7268         (The exception is caught appropriately if you let it proceed, but
7269         it confuses the person using the debugger). Thanks to Bruce
7270         Hochstetler for noticing.
7271
7272 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
7273
7274         Merge from stable.
7275
7276         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
7277         to only select when button 1 is pressed introduced in the fix of
7278         bug #120187.
7279
7280 2003-09-02  Matthias Clasen  <maclas@gmx.de>
7281
7282         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
7283
7284         * gtk/gtkuimanager.c: Shorten the names of some static 
7285         functions.
7286
7287         Support adding and removing merge nodes dynamically (#120647, 
7288         Anders Carlsson):
7289         
7290         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
7291         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
7292         and made it public.
7293         (gtk_ui_manager_add_ui): New function to add UI elements
7294         without juggling XML fragments, currently restricted to menuitems,
7295         toolitems and separators. Actions still come from registered 
7296         action groups.
7297
7298 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7299
7300         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
7301         background pixmap was being offset twice, once by the ts_origin in
7302         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
7303
7304 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7305
7306         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
7307         this public again, since it's occasionally useful.  (#121128,
7308         Marco Pesenti Gritti)
7309
7310         * gtk/gtkaction.c: Add an "is_important" property and propagate
7311         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
7312
7313 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7314
7315         * tests/testtoolbar.c (main): connect to "delete_event" so the
7316         application will actually quit when you close the window
7317
7318 2003-09-01  Matthias Clasen  <maclas@gmx.de>
7319
7320         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
7321         (gtk_ui_manager_get_action): g_return_if_fail() if
7322         path is NULL.
7323         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
7324         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
7325         Marco Pesenti Gritti)
7326
7327 2003-08-31  Matthias Clasen  <maclas@gmx.de>
7328
7329         * gtk/gtktoolitem.c: Fix some typos in docs.
7330
7331         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
7332         replaces gtk_ui_manager_activate().  (#120658)
7333
7334         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
7335         gtk_ui_manager_activate().
7336
7337         * gtk/gtkaction.c: 
7338         * gtk/gtkactiongroup.c: Some doc tweaks.
7339
7340         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
7341         wasn't emitted anyway. Some doc tweaks.
7342
7343 2003-08-30  Matthias Clasen  <maclas@gmx.de>
7344
7345         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
7346         rather than to "remove" on handlebox. 
7347
7348         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
7349         activate an action found by following a path.  (#120658)
7350
7351         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
7352
7353         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
7354
7355         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
7356         setter and getter. If it is set, add tearoff menu items to regular 
7357         menus, but not to popups. Add a signal "changed", which gets emitted
7358         when the merged ui has changed.  (#120649, #120656)
7359
7360         * tests/testmerge.c: Add button to test the generation of tearoff 
7361         menu items.
7362
7363 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7364
7365         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
7366         Actually group the actions together rather than putting each in its 
7367         own group.
7368
7369         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
7370         proxy menu items for radio actions.
7371
7372         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
7373
7374 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7375
7376         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
7377         Fix use of uninitialized variable.
7378
7379         * gtk/gtktextutil.c
7380         (_gtk_text_util_append_special_char_menuitems): add const cast to
7381         get rid of warning
7382
7383 2003-08-29  Matthias Clasen  <maclas@gmx.de>
7384
7385         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
7386         "draw_as_radio" as a separate property, not as an alias of 
7387         "inconsistent".
7388         (gtk_check_menu_item_get_property): 
7389         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
7390
7391 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7392
7393         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
7394         are narrower than 13 time the estimated character width of the
7395         font. (#107781, David Bordoley)
7396
7397         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
7398         here if the GtkToggleButton is active. This may be the case if it
7399         is a radio button.
7400
7401         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
7402         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
7403         Suarez-Alvarez).
7404
7405         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
7406         property. (#111207, David Bordoley).
7407
7408         * gtk/gtktoggletoolbutton.c
7409         (gtk_toggle_tool_button_create_menu_proxy): use new
7410         "draw_as_radio" property on the menu item when the item is a radio
7411         tool button
7412
7413         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
7414         to only pay attention to the "use_underline" property when the
7415         button label comes from the "label" property.
7416
7417 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
7418
7419         * configure.in: Added "sq" to ALL_LINGUAS.
7420         
7421 2003-08-28  Matthias Clasen  <maclas@gmx.de>
7422
7423         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
7424         fix in the docs.
7425
7426         * gtk/gtkuimanager.c: Change the XML format:
7427         <Root> element is replaced by <ui>,
7428         <menu> element is replaced by <menubar>,
7429         <submenu> element is replaced by <menu>,
7430         <dockitem> element is replaced by <toolbar>,
7431         <popups> element is gone,
7432         verb attribute is replaced by action,
7433         name defaults to action or the element name. 
7434
7435         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
7436         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
7437         by removing the user_data, entry_type and extra_data fields, 
7438         GtkRadioActionEntry is further simplified by removing the callback. 
7439         The user_data can now be specified as an argument to 
7440         gtk_action_group_add_actions(). There is a new method 
7441         gtk_action_group_add_radio_actions(), which is similar to 
7442         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
7443         and a callback parameter in addition to the user_data. The callback
7444         is connected to the ::changed signal of the first group member.
7445         There are _full() variants taking a GDestroyNotify of 
7446         gtk_action_group_add_[radio_]actions().
7447
7448         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
7449         on every member of the radio group when the active member is changed. 
7450         Add an integer property "value", and a getter for the value of "value"
7451         on the currently active group member. 
7452
7453         * tests/testactions.c: 
7454         * tests/testmerge.c: 
7455         * tests/merge-[123].ui:  
7456         * demos/gtk-demo/appwindow.c: Adjust to these changes.
7457
7458         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
7459
7460 2003-08-27  Anders Carlsson  <andersca@gnome.org>
7461
7462         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
7463         text view, so the tool bar won't have focus.
7464
7465 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
7466
7467         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
7468         declaration not at start of block. (#120371, Damien Carbery)
7469
7470 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7471
7472         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
7473         for length, not gsize.
7474
7475         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
7476         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
7477         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
7478
7479         * demos/gtk-demo/appwindow.c: 
7480         * tests/testactions.c: 
7481         * tests/testmerge.c:
7482         * tests/merge-1.ui:
7483         * tests/merge-2.ui:
7484         * tests/merge-3.ui: Adjust to the new XML format.
7485
7486 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
7487
7488         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
7489         Since we add one to the layout's reported width to
7490         account for the cursor, we need to subtract one when
7491         setting the wrap width for the layout. (Fixes infinite
7492         loop (#120325, Frederic Crozat)
7493
7494         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
7495         Be a bit more careful about rounding when converting
7496         wrapped width from Pango units to pixels.
7497
7498 2003-08-26  Matthias Clasen  <maclas@gmx.de>
7499
7500         Rename GtkMenuMerge to GtkUIManager. 
7501         
7502         * gtk/gtkuimanager.[hc]: New files. 
7503         * gtk/gtkmenumerge.[hc]: Removed. 
7504
7505         * gtk/Makefile.am: 
7506         * gtk/gtk.h:
7507         * tests/testmerge.c: 
7508         * tests/testactions.c: 
7509         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
7510         GtkUIManager.
7511
7512         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
7513         add comments to entries array, remove newlines from ui definition. Don't 
7514         use the ::add_widget signal.
7515
7516 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
7517
7518         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
7519         include page->menu_label - causes various problems,
7520         including #12047.
7521
7522 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
7523
7524         Merge from stable.
7525
7526         Fixes #115871, reported by Michael Natterer.
7527
7528         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
7529         added ctrl_pressed and shift_pressed bitfields,
7530         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
7531         arg with GtkTreeSelectMode.
7532
7533         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
7534         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
7535         (_gtk_tree_selection_internal_select_node): all updated for
7536         GdkModifierType -> GtkTreeSelectMode move.
7537
7538         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
7539         and shift_pressed around selection handling block,
7540         (gtk_tree_view_real_select_cursor_row),
7541         (gtk_tree_view_real_toggle_cursor_row),
7542         (gtk_tree_view_real_selection_cursor_parent),
7543         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
7544         instead of checking the event state. And also updates for the
7545         GdkModifierType -> GtkTreeSelectMode move.
7546
7547 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
7548
7549         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
7550         to the parent when there was no focus widget before
7551         and no focus widget after - that is, when there are
7552         no focusable widgets. (#108678, help tracking it
7553         down from Padraig O'Briain, Federico Mena Quintero, )
7554
7555         * gtk/gtkxembed.[ch]: Move various shared utilities
7556         for the XEMBED protocol eused by GtkPlug and GtkSocket 
7557         here.
7558
7559         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
7560         a flag bit that is sent with focus mesages to indicate
7561         that the focus has wrapped around on the toplevel;
7562         use this bit to catch infinite loops when there is no
7563         focusable widget at ll in the entire toplevel.
7564
7565         * tests/testsocket.c (child_read_watch): Remove an
7566         extraneous unref.
7567
7568         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
7569         Up XEMBED protocol version to 1, add logic for 
7570         sending the right version in XEMBED_EMBEDDED_NOTIFY.
7571
7572         * gtk/gtksocket.c (gtk_socket_add_window): Send
7573         the embedder window in the XEMBED_EMBEDDED_NOTIFY
7574         as the spec requires.
7575
7576 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
7577
7578         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
7579         NumLock handling for non-XKB. Add a special case
7580         hack for NumLock on Sun servers. (Patch from
7581         Robert Basch, #115819)
7582
7583 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7584
7585         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
7586         Welinder)
7587
7588         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
7589         gtk_action_group_set_translation_domain): Hooks for translation of
7590         label and tooltip in GtkActionGroupEntries.  (#120620)
7591
7592 2003-08-25  Matthias Clasen  <maclas@gmx.de>
7593
7594         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
7595         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
7596         
7597         * gtk/gtkactiongroup.c: 
7598         * demos/gtk-demo/appwindow.c: 
7599         * tests/testmerge.c: 
7600         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
7601
7602 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
7603
7604         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
7605
7606 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
7607
7608         * gtk/Makefile.am: Fix accidental commit of references
7609         to gtkresizegrip.[ch]
7610
7611 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
7612
7613         * gtk/gtkrc.c: Fix some missing initializations of
7614         rc_file->directory.
7615
7616 2003-08-24  Matthias Clasen  <maclas@gmx.de>
7617
7618         * gtk/gtkaction.[ch]: 
7619         * gtk/gtktoggleaction.[ch]: 
7620         * gtk/gtktoggleactionprivate.h: 
7621         * gtk/gtkradioaction.[ch]: 
7622         * gtk/gtkactiongroup.[ch]: 
7623         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
7624         toolbars, using the EggMenu code by James Henstridge.
7625
7626         * gtk/gtk.h: Include new headers.
7627         * gtk/Makefile.am: Add new files.
7628
7629         * tests/testactions.c: Test for actions.
7630         * tests/testmerge.c: Test for menu merging.
7631         * tests/merge-[123].ui: Test data for testmerge. 
7632         * tests/Makefile.am: Add testactions and testmerge.
7633
7634         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
7635         menubar and toolbar.
7636         
7637 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
7638  
7639         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
7640         problem where rc_file->directory wasn't always getting
7641         set. (#120549, Luis Villa)
7642  
7643 2003-08-22  Christian Rose  <menthos@menthos.com>
7644
7645         * configure.in: Added "ne" to ALL_LINGUAS.
7646
7647 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
7648  
7649         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
7650         being parsed, not just the directories for those
7651         files. Use that to catch recursion. (Part of
7652         #114988)
7653  
7654 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
7655
7656         Merge from stable.
7657
7658         Fix option menu scrolling (#119821, Owen Taylor).
7659
7660         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
7661         by #80484 and the CLAMP,
7662         (get_menu_height): new function,
7663         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
7664         new_offset to handle page up/down right.
7665
7666 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
7667
7668         * gdk/x11/gdkkeys-x11.c: Change the interpretation
7669         of consumed_modifiers so that it contains:
7670          - Modifiers combinations actually found in
7671            state.
7672          - Single modifier modifier combinations.
7673         But not multi-modifier combinations that aren't
7674         in event->state. Document. (#100439)
7675
7676 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
7677
7678         Slightly modified patch from Yann Rouillard to improve selection
7679         behavior with the mouse. Fixes #120187.
7680
7681         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
7682         select/deselect items on the first button press of button 1,
7683         expand checks for row_activated to include triple clicks.
7684
7685 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
7686
7687         Merge from stable.
7688
7689         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
7690         approximate digit widths up, to avoid truncation, convert to
7691         pango pixels when we have the full string width instead of converting
7692         the approx digit width to pango pixels, take inner border and
7693         interior focus into account correctly. (Fixes #116368, patch from
7694         Morten Welinder).
7695
7696 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
7697
7698         * gtk/queryimmodules.c: Don't look at the same directory twice (in
7699         simple cases). (#120342)
7700
7701 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7702
7703         * gdk/gdkwindow.c: Make the layers in the paint stack have their
7704         own pixmap instead of sharing one. (#118317)
7705
7706         * tests/testgtk.c (create_get_image): Fixes to make the window fit
7707         on an 800x600 screen
7708
7709 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
7710
7711         Merged from stable.
7712
7713         * gtk/gtkspinbutton.c (start_spinning): change the type of step
7714         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
7715
7716 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
7717
7718         * modules/input/gtkimcontextxim.[ch]: Substantially
7719         rework the handling of status windows:
7720         
7721          - Store the current StatusWindow in the 
7722            GtkIMContextXIM structure and vice-versa, so we
7723            don't have to hunt the window hierarchy on
7724            cleanup.
7725          - Use the Gtkidget hierarchy instead of/or as well
7726            as the GdkWindow hierarchy when finding the toplevel;
7727            this helps for things like GtkHandlebox
7728          - Watch GtkWidget::hierarchy_changed to catch 
7729            changes in the toplevel without changes in the
7730            GdkWindow (reparenting)
7731          - Never create the GtkWindow for the status window
7732            unless we have text to display.
7733          - Various cleanups, add lots of comments.
7734
7735         (#115077, much help from Takuro Ashie and Hidetoshi
7736         Tajima in tracking this down and figuring out a fix.)
7737
7738         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
7739
7740         * modules/input/gtkimcontextxim.c: Track the current
7741         screen for each toplevel so that we show the status
7742         window on the right screen. (#116340, James Su)
7743
7744         * modules/input/gtkimcontextxim.c: If create a new IC
7745         when we currently have the focus, call XSetICFocus()
7746         on it.
7747         
7748         * modules/input/gtkimcontextxim.c (get_im): Fix bug
7749         with multiple open screens.
7750
7751 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
7752
7753         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
7754         Replace client_window field with 'priv' pointer,
7755         retaining binary compatibility.
7756
7757         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
7758         save use_preedit/cursor_location/focus status and set
7759         up the new slave appropriately. (#118651, Botond Botyanszki)
7760
7761 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
7762
7763         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
7764         Don't use impl->position_info.clip_rect for toplevels.
7765         (#107068, reported by Thomas Mirlacher)
7766
7767 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
7768
7769         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
7770         Add a fallback for unaligned source data for
7771         FORMAT_ARGB_MASK. (#117217)
7772
7773 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
7774
7775         * configure.in: Rework handling of REBUILD_PNGS,
7776         so that we also don't try to REBUILD_PNGS when
7777         cross-compiling and there is no gdk-pixbuf-csource.
7778         But give an error if gtk/stock-icons/gtkstockpixbufs.h
7779         is not in the source tree. (Note that REBUILDS_PNG
7780         was set backwards before, which is why you always
7781         had to manually recreate gtkstockpixbufs.h!)
7782
7783 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
7784
7785         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
7786         path to libgtk.la. (#120080, Benedikt Spranger)
7787
7788 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
7789
7790         * modules/input/imcedilla.c: Make the list of default
7791         languages more comprehensive. (Suggestion of
7792         Fco. Javier F. Serrador)
7793
7794 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
7795
7796         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
7797         parentheses when skipping args.
7798
7799 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
7800
7801         Fix major bug in row ref handling, so the new combo box
7802         will actually work right (:. Bug #107748. Patch written
7803         with help from Tim Janik.
7804
7805         The basic idea is to update the row refs in a closure,
7806         before the actual signal is emitted (rather than having
7807         the model connect signal handlers).
7808
7809         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
7810         g_signal_new calls for row_inserted, row_deleted and
7811         rows_reordered to use the new marshallers,
7812         (row_inserted_marshall), (row_deleted_marshall),
7813         (rows_reordered_marshall): the new marshallers,
7814         (gtk_tree_row_ref_inserted_callback): renamed to
7815         gtk_tree_row_ref_inserted since it isn't a callback
7816         anymore and gets called by the marshaller now,
7817         (gtk_tree_row_ref_deleted_callback): likewise,
7818         (gtk_tree_row_ref_reordered_callback): likewise,
7819         (connect_ref_callbacks), (disconnect_ref_callbacks):
7820         removed,
7821         (gtk_tree_row_reference_new_proxy),
7822         (gtk_tree_row_reference_free),
7823         (gtk_tree_row_reference_inserted),
7824         (gtk_tree_row_reference_deleted),
7825         (gtk_tree_row_reference_reordered): updated.
7826
7827 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
7828
7829         Improve Cedilla handling - based on a patch from Gustavo 
7830         De Nardin, #111334
7831
7832         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
7833         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
7834         dead_acute+c combinations. Make this the default for
7835         fr and pt.
7836
7837         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
7838         Use LC_CTYPE instead of LC_MESSAGES to pick the default
7839         input method.
7840
7841 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
7842
7843         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
7844         for Multi_key+c+apostrophe.
7845
7846 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
7847
7848         Merged from stable.
7849
7850         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
7851         on vertical scrolling. (#108035, reported by Tim Janik).
7852
7853 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
7854
7855         Merged from stable.
7856
7857         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
7858         (gtk_tree_model_sort_level_find_insert),
7859         (gtk_tree_model_sort_insert_value): fix off-by-one error.
7860         (#109292 continued, patch from Yann Rouillard).
7861
7862 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
7863
7864         (Note: This is not exactly the same as the patch which went in
7865          gtk-2-2).
7866
7867         * gtk/gtktreeview.c (gtk_tree_view_class_init),
7868         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
7869         Also support the up, down, left, right, home, end, page up and
7870         page down keys on the numpad. (#119419, reported by Alex Larsson).
7871
7872 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
7873
7874         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
7875
7876         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
7877         we link libgtk against X explicitely, since we
7878         make GTK+ calls for plug/socket.
7879
7880         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
7881         G_MODULE_SUFFIX here. 
7882
7883         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
7884         XShmPutImage with #ifdef USE_SHM.
7885
7886 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
7887
7888         * gtk/gtkfilesel.c (gtk_file_selection_populate):
7889         Don't reposition the cursor when we aren't trying
7890         to complete. (Fixes problems with selection on
7891         startup, #108433, reported by Mark Finlay.)
7892
7893         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
7894         code that tried to position the cursor after the common
7895         prefix when there was one, it wasn't working, and
7896         would be hard to fix. Just always put the cursor
7897         at the end when completing.
7898
7899 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
7900
7901         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
7902         the current directory fails because of encoding
7903         conversion problems, walk up textually to parent
7904         directories until we can convert. (#113627)
7905
7906 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
7907
7908         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
7909         Remove usage of menu_shell->ignore leave which was
7910         to deal with stray events we no longer get because
7911         we do grabbing differently. Comment it as unused in
7912         the header. (#115837, Keith Bissett)
7913
7914 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
7915
7916         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
7917         Fix some places that weren't properly Xinerama-ified.
7918
7919         * gtk/gtkmenu.c: Fix problem with windows that scroll
7920         at the top of the screen.
7921
7922 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
7923
7924         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
7925         key-press-event on the entry, so input methods get access to 
7926         key presses before GtkCombo customization.
7927         (#115451, Botond Botyanszki)
7928
7929 2003-08-13  Anders Carlsson  <andersca@gnome.org>
7930
7931         * tests/testtoolbar.c: (set_important_func), (important_toggled),
7932         (create_items_list):
7933         Add an important column.
7934         
7935 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
7936
7937         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
7938         against reentrancy from ::focus-out handlers. 
7939         (#118129, Felipe Heidrich)
7940
7941 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
7942
7943         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
7944         GDK_LOCK_MASK before calling
7945         gdk_keymap_translate_keyboard_state so bindings 
7946         and accelerators are independent of the Caps-lock
7947         key. (#115384, reported by Toni Willberg)
7948
7949 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
7950
7951         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
7952         break statements (#119494, Soeren Sandmann)
7953
7954 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
7955
7956         * gtk/gtkwidget.h: Mark parent public as well; it's
7957         extensively accessed in existing code, so there is
7958         no advantage in making people use get_parent().
7959         (Tweak to #119463 fix)
7960
7961 2003-08-11  Matthias Clasen  <maclas@gmx.de>
7962
7963         Add support for EWMH "Above" and "Below" window states.  (105100,
7964         Manuel Clos)
7965         
7966         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
7967         State" demo.
7968
7969         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
7970         gtk_window_set_keep_below.
7971
7972         * gtk/gtk.def: Add gtk_window_set_keep_above and
7973         gtk_window_set_keep_below.
7974
7975         * gtk/gtkwindow.c (gtk_window_set_keep_below):
7976         (gtk_window_set_keep_above): New functions, call the corresponding
7977         gdk functions.
7978
7979         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
7980         function, sets _NET_WM_STATE_BELOW.
7981         (gdk_window_set_keep_above): New function, sets
7982         _NET_WM_STATE_ABOVE.
7983
7984         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
7985         gdk_window_set_keep_below.
7986
7987         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
7988         GDK_WINDOW_STATE_BELOW.
7989
7990         * gdk/gdk.def: Add gdk_window_set_keep_above and
7991         gdk_window_set_keep_below.
7992
7993         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
7994         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
7995         xmlcatalog in PATH.  (#119115)
7996
7997 2003-08-10  Matthias Clasen  <maclas@gmx.de>
7998
7999         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
8000         public.  (#119463)
8001
8002 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
8003
8004         * gdk/gdkevents.h:
8005         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
8006         docs on GdkFilterFunc and GdkFilterReturn.
8007
8008 2003-08-09  Matthias Clasen  <maclas@gmx.de>
8009
8010         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
8011         to let the mouse wheels select the month. Scrolling down
8012         moves forward in time. (#53134, Abigail Brady) 
8013
8014         * gtk/gtkcalendar.c: Complete the RTL flipping support for
8015         GtkCalendar, make it possible to flip the headings using the
8016         "magic translated string" technique.  Translators, note the
8017         comment in gtk_calendar_init() explaining this.  (#102416)
8018
8019         * gtk/gtkcalendar.c: Get the information about the first day of
8020         the week from the locale using another instance of the "magic
8021         translated string" technique.  Ignore the display option
8022         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
8023
8024         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
8025         date is dragged as text, formatted via strftime %x. Text drops are
8026         accepted if g_date_set_parse() can make sense of the text. A
8027         dedicated data format for date DND has not been introduced yet,
8028         since there didn't seem to be sufficient consensus on such a
8029         format on xdg-list.  (#117297)
8030         
8031 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8032
8033         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
8034         Fix a segfault.  (#115284, Jan Kratochvil)
8035
8036 2003-08-08  Tor Lillqvist  <tml@iki.fi>
8037
8038         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
8039         coordinates for events that have such. Print coordinates for enter
8040         and leave events.
8041
8042         (gdk_event_translate): Don't use event uninitialixed in the
8043         return_exposes branch of the WM_PAINT handler.
8044
8045         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
8046         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
8047         Must offset top-level window coordinates here, too.
8048
8049 2003-08-08  Matthias Clasen  <maclas@gmx.de>
8050
8051         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
8052         when maximized or fullscreen.
8053
8054 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8055
8056         * gdk/win32/gdkinput-win32.h
8057         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
8058         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
8059         used.
8060
8061         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
8062         accordingly, in fact an uninitialised variable was dereferenced.
8063         
8064
8065         [Win32] Add support for multiple monitors. 
8066         
8067         * gdk/win32/gdkprivate-win32.h
8068         * gdk/win32/gdkglobals-win32.c: New global variables for
8069         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
8070         _gdk_offset_x and _gdk_offset_y.
8071         
8072         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
8073         functions, enumeration functions passed to EnumDisplayMonitors().
8074
8075         (gdk_display_open): If the EnumDisplayMonitors() and
8076         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
8077         if to find out monitor info.
8078
8079         Calculate the offset between Win32 coordinates (relative to the
8080         primary monitor's origin (and thus negative on monitors to the
8081         left of or above it), and GDK's (visible coordinates should be
8082         non-negative).
8083         
8084         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
8085         gdk_screen_get_monitor_geometry): Use information collected above.
8086
8087         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
8088         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
8089
8090         (gdk_window_get_geometry, gdk_window_get_origin,
8091         gdk_window_get_frame_extents): For top-level windows, add
8092         _gdk_offset_{x,y} to GDK root window coordinates
8093
8094         Still need to handle multiple monitors in
8095         gdk_window_fullscreen(). Probably should make the window
8096         fullscreen on the monitor where the cursor is?
8097
8098         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
8099         root window coordinates in GdkEvents.
8100
8101         
8102         [Win32] Fix geometry hint handling. Add support for resize
8103         increment and base size, and aspect ratio geometry hints. The
8104         "gridded geometry" test in testgtk now works beautifully.
8105
8106         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
8107         Turns out this function shouldn't actually ever modify the
8108         window's size, just store the hints. (Old code kept for a while
8109         inside #if 0.)
8110
8111         (gdk_window_set_hints): Remove presumably broken code that handles
8112         the position hints, this function is obsolete anyway.
8113
8114         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
8115         variables, not used.
8116
8117         (adjust_drag): New function, used to implement resize increment
8118         hints.
8119
8120         (gdk_event_translate): Handle WM_SIZING, implement resize
8121         increment and base size, and aspect ratio geometry hints here. The
8122         WM_GETMINMAXINFO handler takes care of the minimum and maximum
8123         size hints as before. Fix the WM_GETMINMAXINFO handler to take
8124         into account window decorations. No need to modify the
8125         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
8126         the defaults are fine.
8127         
8128         * gdk/win32/gdkprivate-win32.h 
8129         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
8130         _gdk_win32_get_adjusted_client_rect): New helper functions.
8131
8132 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8133
8134         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
8135         toplevel->have_* flags before iterating over the _NET_WM_STATE 
8136         atoms.  (#119217) 
8137
8138 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
8139  
8140         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
8141         Fix a bug where on theme change, resize/redraw wasn't
8142         properly getting queued on toplevel windows. (#116346,
8143         Rajkumar Siva)
8144  
8145         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
8146         Fix bug where wrong coordinates were used for toplevel
8147         window.
8148  
8149 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
8150
8151         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
8152         page_num variable (Archit Baweja)
8153
8154 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8155
8156         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
8157         cope with C libraries with crippled locale support.  (#115293)
8158
8159 2003-08-07  Hans Breuer  <hans@breuer.org>
8160
8161         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
8162         (only if the new window not known to Gdk) to get proper
8163         leave notification, and get rid of the wrong placed 
8164         tooltips, bug #102283
8165  
8166         (gdk_event_translate) : small code reordering to not get
8167         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
8168         menus, bug #117367
8169
8170 2003-08-07  Tor Lillqvist  <tml@iki.fi>
8171
8172         * gdk/gdk.def
8173         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
8174         missing function, trivially implement.
8175
8176 2003-08-07  Matthias Clasen  <maclas@gmx.de>
8177
8178         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
8179         rendering.  (#118646, Charles Kerr) 
8180
8181 2003-08-06  Hans Breuer  <hans@breuer.org>
8182
8183         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
8184         initialize bits to 0 (probably default on NT)
8185
8186         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8187         now it works as intended ;-)
8188
8189 2003-08-04  Hans Breuer  <hans@breuer.org>
8190
8191         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
8192         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
8193
8194         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
8195         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
8196
8197         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
8198         against all expectations it is basically ony a call with WM_SETICON
8199         needed (the visual effect is there, though colors or mask are
8200         still somewhat wrong).
8201         * gdk/win32/gdkwindow-win32.h : place to store the HICON
8202
8203         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
8204         pixel drawing as it was fixed at 1999-08-23
8205
8206         gtk/gtk.def : updated
8207
8208 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
8209
8210         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
8211         Add a missing break. (#119156, Callum McKenzie)
8212
8213 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8214
8215         * gtk/gtkmenu.c (gtk_menu_position): New positioning
8216         algorithm.(#116649)
8217
8218 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8219
8220         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
8221         property
8222         
8223         * gtk/gtkradiotoolbutton.c
8224         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
8225
8226         * gtk/gtkradiotoolbutton.c
8227         (gtk_radio_tool_button_new_with_stock_from_widget): make this
8228         function take a stock_id.
8229
8230         * gtk/toolbar: documentation
8231
8232 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
8233
8234         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
8235         Fix problem where use_xshm was getting set wrong if
8236         MIT_SHM wasn't found. (George Lebel)
8237
8238 2003-08-04  Tor Lillqvist  <tml@iki.fi
8239
8240         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
8241         actually use the passed-in filter list. The function also needs a
8242         GdkWindow parameter, as filter functions expect
8243         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
8244
8245 2003-08-03  Matthias Clasen  <maclas@gmx.de>
8246
8247         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
8248         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
8249         the term "virtual screen".  (#119030, Tor Lillqvist)
8250
8251 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8252
8253         * tests/testtext.c (test_init): 
8254         * tests/testgtk.c (test_init): 
8255         * tests/testdnd.c (test_init): 
8256         * demos/pixbuf-init.c (pixbuf_init): 
8257         * demos/gtk-demo/main.c (main): Use g_setenv().
8258
8259         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
8260         g_unsetenv(). 
8261
8262 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
8263
8264         * configure.in: Requires glib-2.3.0, pango-1.2.0.
8265
8266         * configure.in: Require Xft version 2,
8267         remove code for handling older versions of pango and Xft.
8268         Many miscellaneous improvements to X checks
8269
8270         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
8271         a library to a variable, avoiding dups.
8272
8273         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
8274         Always load "fixed"
8275
8276         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
8277         for pangox.
8278
8279 2003-08-02  Matthias Clasen  <maclas@gmx.de>
8280
8281         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
8282         (palette_drop_handle): 
8283         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
8284         drops with the wrong format, since the KDE color chooser incorrectly
8285         drops application/x-color with format 8.  (#118810)
8286
8287         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
8288         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
8289         Accept drops with the wrong format, since the KDE color chooser 
8290         incorrectly drops application/x-color with format 8.  (#118810)
8291
8292 2003-08-02  Tor Lillqvist  <tml@iki.fi>
8293
8294         Fix gdk/win32 window geometry handling again. The window position
8295         in a GDK_CONFIGURE event should be that of the client area, not of
8296         the window decorations. (I was confused by the term "window
8297         border" in X11. It does *not* mean the window manager
8298         decorations. There are no X11-style window borders in Win32.)
8299         Also, this time do take the geometry hints into account
8300         appropriately when moving windows. Now testgtk's gravity test's
8301         move buttons work OK. There are stil problems with taking gravity
8302         into account when showing a hidden window.
8303
8304         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
8305         instead of separate fields.
8306         
8307         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
8308         adjust for decorations.
8309
8310         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
8311         adjust_for_gravity_hints): New functions.
8312         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
8313         above functions, take geometry hints into account.
8314         (gdk_window_set_geometry_hints): Size hints specicy client area,
8315         not including decorations.
8316
8317 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
8318
8319         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
8320         return an absolute path (#115590), fix a problem where
8321         you could crash the file selector with a looong name
8322         by returning a newly allocated buffer.
8323
8324 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
8325
8326         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
8327         bug in rarely or never hit code path (#118071,
8328         Tor Lillqvist)
8329
8330 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
8331
8332         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
8333         If the check for missing depths, try actually creating pixmaps
8334         of the depths to deal with Xinerama not reporting
8335         all the depths it should. (#115822)
8336
8337 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
8338
8339         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
8340         forward KeyRelease events as well as KeyPress events.
8341         (#115597)
8342
8343 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
8344  
8345         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
8346         if argc is 0 as well, instead of leaving it unset.
8347         (#116023, Michael Meeks)
8348  
8349 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8350
8351         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
8352         default to TRUE; ignore the property when api_mode != NEW_API
8353
8354 2003-07-31  Matthias Clasen  <maclas@gmx.de>
8355
8356         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
8357         to icon, to pacify gtk-doc.
8358
8359         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
8360         example. 
8361
8362 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8363
8364         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
8365
8366 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8367
8368         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
8369         overflow_item field.
8370
8371 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8372
8373         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
8374         an internal function
8375
8376         * gtk/gtktoolitem.h: remove unused declaration of
8377         _gtk_tool_item_get_drag_window().
8378
8379 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8380
8381         * gtk/gtktoolbutton.[ch]:
8382         (gtk_tool_button_new): swap icon_widget and label arguments to
8383         match BonoboUIToolbarButton.
8384
8385         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
8386
8387 2003-07-30  Matthias Clasen  <maclas@gmx.de>
8388
8389         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
8390         signal docs. 
8391
8392 2003-07-29  Tor Lillqvist  <tml@iki.fi>
8393
8394         Fix for #108007, #112402, #117042: There was confusion in
8395         gdk/win32 at various places whether a window position refers to
8396         the decoration position or the client area position. Also whether
8397         window size includes decorations or not.
8398         
8399         The correct interpretation apparently is that in GDK (like in
8400         X11), a top-level window position means the decoration's position,
8401         but size means the window's inner size (client area size). In the
8402         Win32 API, the window size usually includes the decorations,
8403         though.
8404         
8405         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
8406         #ifdef G_ENABLE_DEBUG.
8407         (handle_configure_event): New function, generates GDK_CONFIGURE
8408         events from WM_SIZE and WM_MOVE messages. Even if no event is
8409         generated because of the event mask, still set the private
8410         position and size fields. Calculate position and size correctly.
8411         (gdk_event_translate): Call handle_configure_event().
8412
8413         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
8414
8415         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
8416         macros. Cosmetic debugging output changes.
8417         (SafeAdjustWindowRectEx): Remove. If an application wants to
8418         locate a window outside of the screen, it's not GDK's business to
8419         prevent it. And anyway, with multiple monitors, negative
8420         coordinates are perfectly normal.
8421         (gdk_window_new): Adjust the window size for decorations after
8422         _gdk_window_init_position() has done its job. (But the big window
8423         code currently is presumably broken on Win32 anyway.)
8424         (gdk_window_move): The position passed in is supposed to be that
8425         of the window border, so don't need to adjust for decorations.
8426         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
8427
8428 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8429
8430         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
8431         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
8432         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
8433         gtk_toolbar_append_space, gtk_toolbar_insert_item,
8434         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
8435         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
8436         gtk_toolbar_new, gtk_toolbar_prepend_item):
8437
8438         Move documentation inline from template files.
8439
8440         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
8441         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
8442         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
8443         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
8444         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
8445         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
8446         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
8447
8448         Copy documentation from stable that was added after the EggToolbar
8449         branched.
8450
8451         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
8452
8453 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8454
8455         * gtk+/docs/: Commit autogenerated changes, so patches will make
8456         sense.
8457
8458 2003-07-27  Tor Lillqvist  <tml@iki.fi>
8459
8460         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
8461         the keyboard state returned by GetKeyboardState() doesn't
8462         distinguish between the left and right Control and Alt keys. Thus
8463         we cannot detect AltGr (which is supposed to be left Control +
8464         right Alt) the same way as on NT-based systems, but have to accept
8465         either Control + either Alt as AltGr.
8466
8467 2003-07-27  Matthias Clasen  <maclas@gmx.de>
8468
8469         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8470         Fix function name in warning message.  (#118156, Tim-Philipp
8471         Mller)
8472
8473         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
8474         is-expander and is-expanded are boolean properties, not ints.
8475         (#118359, Josh Parsons)
8476
8477 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8478
8479         * gtk/gtkimagemenuitem.c
8480         (gtk_image_menu_item_toggle_size_request): don't request
8481         toggle_space when the image width is 0.
8482
8483 2003-07-25  Tor Lillqvist  <tml@iki.fi>
8484
8485         * gdk/win32/gdkprivate-win32.h
8486         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
8487         and _gdk_keyboard_has_altgr.
8488         
8489         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
8490         ones detailled here.
8491
8492         Code that has been ifdeffed out for a long time removed. Remove
8493         some really old doc comments that were left behind for some public
8494         functions, the official ones are in the X11 backend anyway. Change
8495         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
8496         multi-line boolean expressions to have the operators at ends of
8497         lines.
8498
8499         As mouse capture with SetCapture() indeed seems to work OK, no
8500         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
8501
8502         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
8503         needed at some time, and things seem to work fine now without
8504         (knock on wood).
8505
8506         Ifdef out the search for some Latin locale keyboard layout being
8507         loaded. Not used currently, but might be needed after all, if we
8508         decide that we want to be able to generate ASCII control character
8509         events with a non-Latin keyboard.
8510
8511         (assign_object): New helper function, handles the g_object_ref()
8512         and unref() calls when assigning GObject pointers.
8513                 
8514         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
8515         enter event when the pointer has moved to an ancestor window. Was
8516         left out by mistake.
8517
8518         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
8519
8520         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
8521         functionality, using ClipCursor().
8522                 
8523         (find_window_for_mouse_event): Splice part of code into new
8524         function find_real_window_for_grabbed_mouse_event().
8525
8526         (fixup_event, append_event, apply_filters): New functions, code
8527         refactored out from elsewhere.
8528
8529         (synthesize_enter_or_leave_event, synthesize_leave_event,
8530         synthesize_enter_event,
8531         synthesize_leave_events,synthesize_enter_events): Also take a
8532         GdkCrossingMode parameter, in preparation to generating
8533         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
8534
8535         (fixup_event, append_event, fill_key_event_string): New functions,
8536         code refactoring.
8537
8538         (vk_from_char, build_keypress_event, build_keyrelease_event):
8539         Removed as part of dropping WM_CHAR handling.
8540
8541         (build_key_event_state,gdk_event_translate): Call
8542         GetKeyboardState(), once, for each keyboard message, instead of
8543         several calls to GetKeyState() here and there.
8544
8545         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
8546         at it, do some major refactoring, and some fixes for potential
8547         problems noticed while going through the code.
8548
8549         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
8550         WM_KEYUP. Don't need the state variables related to whether to
8551         wait for WM_CHAR or not, and whether the current key is
8552         AltGr. Remove lots of complexity. Thus don't need the
8553         use_ime_composition flag.
8554
8555         Not handling WM_CHAR means dead key handling will have to be taken
8556         care of by GTK, but that seems to work fine, so no worry.
8557
8558         Another side-effect is that Alt+keypad digits don't work any
8559         longer, but it's better to learn to use GTK's ISO14755 support is
8560         anyway.
8561
8562         Be more careful in checking whether AltGr is involved. Only
8563         attempt to handle it if the keyboard actually has it. And
8564         explicitly check for *left* Control plus *right* Alt being
8565         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
8566         chars.
8567
8568         Handle keys using similar code as in the X11 backend. As we have
8569         built a keymap in gdkkeys-win32.c anyway, use it by calling
8570         gdk_keymap_translate_keyboard_state() to look up the keysym from
8571         the virtual key code and keyboard state. Build the key event
8572         string in exactly the same way as the X11 backend.
8573
8574         If an IME is being used, don't generate GDK events for keys
8575         between receiving WM_IME_STARTCOMPOSITION and
8576         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
8577         
8578         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
8579         the IME, not just the first one.
8580
8581         gdk_event_translate() is still quite complex, could split the
8582         message handler cases out into separate functions.
8583
8584         On mouse events, when the mouse is grabbed, use
8585         find_real_window_for_grabbed_mouse_event() in order to be able to
8586         generate correct crossing events.
8587         
8588         No longer take a pre-allocated GdkEvent as parameter. Instead,
8589         allocate events as needed and append them to the queue. (This is
8590         different from how gdk_event_translate() in the X11 backend
8591         works.) This change made the code much clearer, especially in the
8592         cases where we have to generate several GDK events for one Windows
8593         message.  Return FALSE if DefWindowProc() should be called, TRUE
8594         if not. If DefWindowProc() should not be called, also return the
8595         value to be returned from the window procedure.
8596
8597         (Previously, the interaction with gdk_event_translate()'s caller
8598         was much more complex, when we had to indicate whether the
8599         already-queued event should be left in the queue or removed, and
8600         in addition also had to indicate whether to call DefWindowProc()
8601         or not, and what value to return from the window procedure if
8602         not.)
8603
8604         Don't use a separate "private" variable required to be pointing to
8605         the GdkWindowObject of the "window" variable at all times. Just
8606         use casts, even if looks a bit uglier.
8607
8608         Notice destroyed windows as early as possible, and break out of
8609         the messsage switch.
8610
8611         Use _gdk_pointer_root as current_window when the pointer is
8612         outside GDK's top-level windows.
8613         
8614         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
8615         appropriate, based on ImmIsIME().
8616         
8617         (gdk_event_translate, gdk_event_send_client_message_for_display,
8618         gdk_screen_broadcast_client_message): Implement client messages.
8619         Use a registered Windows message to pass GDK client messages. Note
8620         that the amount of user data is restricted to four bytes, as it is
8621         carried in the LPARAM. (The WPARAM is used for the message type
8622         "atom".)
8623         
8624         (real_window_procedure): Adapt for new gdk_event_translate()
8625         interface.
8626
8627         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
8628         _gdk_input_locale_is_ime initially.
8629
8630         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
8631         of g_colormap_ref()/unref().
8632
8633         (gdk_window_new): Made code a bit more like the X11 one, pretend
8634         to handle screens (although we just have one for now).
8635
8636         * gdk/x11/gdkevents-x11.c
8637         (gdk_event_send_client_message_for_display,
8638         gdk_screen_broadcast_client_message): Document the user data
8639         limitation on Win32.
8640
8641         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
8642         and leave notify detail output.
8643
8644         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
8645         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
8646         for those, so that the GtkIMContextCimple compose tables will
8647         work. Deduce if the keyboard layout has the AltGr key, and set the
8648         above flag accordingly.
8649
8650 2003-07-26  Matthias Clasen  <maclas@gmx.de>
8651
8652         * gtk/gtkwidget.c: Document DND signals.
8653
8654 2003-07-24  Matthias Clasen  <maclas@gmx.de>
8655
8656         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
8657         insensitive when editing isn't possible.  (#118150)
8658
8659 2003-07-23  Matthias Clasen  <maclas@gmx.de>
8660
8661         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
8662         spinbutton wrap.  (#118097, John Darrington)
8663
8664         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
8665
8666 2003-07-20  Hans Breuer  <hans@breuer.org>
8667
8668         * makefile.msc : new file to build it all
8669         * Makefile.am : ... added to EXTRA_DIST
8670
8671         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
8672           gtk/makefile.msc.in tests/makefile.msc : updated
8673
8674         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
8675         functions
8676
8677         * gtk/gtkbbox.c : use g_return_val_if_fail() if
8678         there is a value to return
8679
8680         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
8681         static correctness
8682
8683         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
8684         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
8685
8686         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
8687
8688         * gtk/gtkimmulticontext.c : use gtkprivate.h
8689
8690         * gtk/stock-icons/stock_color_picker_25.png
8691           gtk/stock-icons/stock_jump_to_rtl_16.png
8692           gtk/stock-icons/stock_jump_to_rtl_24.png
8693           gtk/stock-icons/stock_redo_rtl_16.png
8694           gtk/stock-icons/stock_redo_rtl_24.png
8695           gtk/stock-icons/stock_undelete_rtl_16.png
8696           gtk/stock-icons/stock_undelete_rtl_24.png
8697           gtk/stock-icons/stock_undo_rtl_16.png :
8698           gtk/stock-icons/stock_undo_rtl_24.png :
8699         readded as binary
8700
8701 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8702
8703         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
8704         leftover request of {xy}thickness
8705
8706 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8707
8708         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
8709         attempt to add a NULL icon to the box.
8710
8711 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8712
8713         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
8714         on focus in/out.
8715
8716 2003-07-19  Matthias Clasen  <maclas@gmx.de>
8717
8718         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
8719         * gtk/gtkiconfactory.c (get_default_icons): Add
8720         stock_dialog_authentication_48.  (#65765) 
8721         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
8722         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
8723
8724         * gtk/gtkbbox.h: 
8725         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
8726         function. (#64562) 
8727
8728 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8729
8730         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
8731         declaration
8732
8733         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
8734         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
8735         instead of full draws.
8736
8737 2003-07-18  Matthias Clasen  <maclas@gmx.de>
8738
8739         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
8740
8741         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
8742         signal, move_viewport. 
8743         (gtk_text_view_move_viewport): New function which implements the
8744         move_viewport functionality. 
8745         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
8746         the viewport. (#78669) 
8747
8748         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
8749         move_viewport argument. 
8750
8751         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
8752         property.  (#111779) 
8753
8754         * gtk/gtkwindow.h: 
8755         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
8756
8757         * gtk/gtkmessagedialog.h:
8758         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
8759         (#65501, Sebastian Rittau)
8760
8761 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8762
8763         * gtk/gtktextview.c (changed_handler): use
8764         gtk_widget_queue_resize_noredraw().
8765
8766 2003-07-16  Jody Goldberg <jody@gnome.org>
8767
8768         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
8769
8770 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8771
8772         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
8773         API. 
8774
8775 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8776
8777         By popular request give toolbuttons a border.
8778         
8779         * gtk/gtktoolitem.c
8780         (gtk_tool_item_size_allocate):
8781         (gtk_tool_item_size_request): don't request and allocate a border
8782         around the child
8783
8784         * gtk/gtktoolbutton.c 
8785         (gtk_tool_button_size_allocate):
8786         (gtk_tool_button_size_request): remove these functions
8787
8788         * gtk/gtktoolbar.c 
8789         (gtk_toolbar_size_request):
8790         (gtk_toolbar_size_allocate): request and allocate a border if we
8791         have a shadow.
8792
8793 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
8794
8795         Merged from stable.
8796
8797         Fixes issues pointed out by Morten Welinder in #115140.
8798
8799         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
8800         (do_validate_rows): update validated_area with a logic OR instead
8801         of a bitwise OR,
8802         (validate_rows_handler): make the if statement match the one in
8803         validate_rows(), so we don't leak the timeout.
8804
8805 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
8806
8807         Merged from stable.
8808
8809         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
8810         should only grab focus back if the "cell_editable" widget still
8811         has focus. (Fixes #110104, testcase provided by Marco Pesenti
8812         Gritti).
8813
8814 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
8815
8816         Merged from stable.
8817
8818         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
8819         Don't set attr.event_mask twice, those things were meant to be
8820         ORred. (#115139, pointed out by Morten Welinder).
8821
8822 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
8823
8824         Merged from stable.
8825
8826         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
8827         if needed. (Fixes #115869, reported by Michael Natterer).
8828
8829 2003-07-15  Matthias Clasen  <maclas@gmx.de>
8830
8831         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
8832         Fight against gtk-doc stupidity.
8833
8834 2003-07-13  Matthias Clasen  <maclas@gmx.de>
8835
8836         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
8837         targets, to pacify gtk-doc.
8838
8839 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8840
8841         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
8842         label_text, label_widget and icon_widget. (#117312, 
8843         Christian Persch)
8844         
8845 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8846
8847         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
8848         "horizontal-offset" and "vertical-offset" that determines the
8849         position of the menu when it is a submenu. 
8850
8851         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
8852         submenus according to new vertical- and horizontal-offset
8853         properties.
8854
8855 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
8856
8857         Merged from stable.
8858
8859         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
8860         case drags to "0", scroll to the top after dropping. (Fixes #94968,
8861         reported by Alp Toker).
8862
8863 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
8864
8865         Merged from stable.
8866
8867         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
8868         code (#115784, Owen Taylor).
8869
8870 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
8871
8872         Merged from stable.
8873
8874         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
8875         free the old text and extra_attrs *after* we parsed the new
8876         markup string. (Fixes #114485, reported by Owen Taylor).
8877
8878 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
8879
8880         Merged from stable.
8881
8882         Fixes #113904, testcase provided by Rene Seindal.
8883
8884         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
8885         pressed_button to -1 when a row has been activated,
8886         (gtk_tree_view_motion_bin_window): only start a drag if there's
8887         a button being pressed.
8888
8889 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
8890
8891         Merged from stable.
8892
8893         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
8894         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
8895         to avoid a roundtrip (#110272, Owen Taylor).
8896
8897 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
8898
8899         Merged from stable.
8900
8901         This patch really really fixes scrolling. Related bugs: #81627,
8902         testcase provided by Timo Sirainen, #111500, testcase provided by
8903         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
8904
8905         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
8906         which is equal to the lower border of the window means scrolling
8907         to an invisible row, always update the dy when scrolling to an
8908         invisible row, corrected area_above/below calculations for
8909         invisible rows, when walking the tree correct the size
8910         subtracted for invalidated rows, fix wrong logic in comment.
8911
8912 2003-07-11  Matthias Clasen  <maclas@gmx.de>
8913
8914         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
8915         mime_types.  (#117219, Steve Chaplin)
8916
8917 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
8918
8919         * gdk/x11/gdkevents-x11.c (get_real_window)
8920         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
8921         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
8922         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
8923         Don't assume that all events start with XEventAny - Xkb events
8924         don't! (#105745). So, only do that for core events, and for
8925         non-core events, add a system for registering event types
8926         that start with XEventAny.
8927
8928         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
8929         Check to see if the result of gdk_window_lookup_for_display()
8930         is actually a window.
8931
8932 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
8933
8934         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
8935         check a silent assert, so it follows the g_free() behaviour.
8936
8937 2003-07-11  Matthias Clasen  <maclas@gmx.de>
8938
8939         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
8940         vertically.  (#109823, Joe Shaw)
8941
8942 2003-07-11  Morten Welinder  <terra@gnome.org>
8943
8944         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
8945         access error.  (#69436)
8946
8947 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
8948
8949         Landing GtkTreeModelFilter and the completion code. (Test program
8950         and documentation will follow next week).
8951
8952         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
8953         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
8954
8955         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
8956         necessary code to hook up completion.
8957
8958         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
8959         GtkCellLayout interface.
8960
8961         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
8962
8963         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
8964         source files.
8965
8966 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
8967
8968         Merge from stable.
8969
8970         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
8971         directly return from ->window_at_pointer, but set win_x and win_y
8972         first if needed. (Fixes #110166, reported by Arno Charlet).
8973
8974         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
8975         function to accept GdkDrawables and not just GdkWindows. This was
8976         already done in some other functions a while back, but this patch
8977         got lost for some reason.
8978
8979 2003-07-09  Matthias Clasen  <maclas@gmx.de>
8980
8981         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
8982         direction when sorting children.  (#116540, Soeren Sandmann)
8983
8984 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
8985
8986         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
8987         Change _gdk_x11_send_xevent_async() to 
8988         _gdk_x11_send_client_message_async() avoid using Xlib
8989         internals that are different on Solaris. 
8990         (#116917, Morten Welinder)
8991
8992 2003-07-08  Matthias Clasen  <maclas@gmx.de>
8993
8994         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
8995         (#116501, Doug Quale)
8996
8997 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
8998
8999         * gtk/gtktoggletoolbutton.h: remove strange #define
9000         * gtk/gtktoolbutton.h: fix cut'n'paste error
9001         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
9002         private data
9003         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
9004         private data instead of g_new0()
9005         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
9006         instance private data
9007
9008 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9009
9010         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
9011         for INPUT_ONLY window
9012         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
9013         * gtk/gtknotebook.c (gtk_notebook_realize): same
9014         * gtk/gtkexpander.c (gtk_expander_realize): same
9015         * gtk/gtkrange.c (gtk_range_realize): same
9016
9017         Fix #116303
9018
9019 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9020
9021         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
9022         when detail is "menuitem". With the new menu look is isn't needed
9023         anymore.
9024
9025         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
9026         resize here, so that tool items will get a chance to relayout
9027         themselves based on the toolbar configuration.
9028
9029         change DEFAULT_SPACE_SIZE to 4 instead of 5
9030
9031         * gtk/gtktoolbar.c 
9032         Get rid of "!GTK_BIN (item)->child means separator". Separators
9033         are widgets in their own right
9034
9035         change DEFAULT_SPACE_SIZE to 4 instead of 5
9036         
9037         (get_space_size): remove this function
9038         (toolbar_item_is_homogeneous): new function
9039
9040         * gtk/gtkseparatortoolitem.c
9041         (gtk_separator_tool_item_size_request): new function.
9042
9043 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9044
9045         * gtk/gtktoggletoolbutton.h: use private data, add new
9046         internal function _gtk_toggle_tool_button_get_button()
9047
9048         * gtk/gtktoolbutton.h: move to private data
9049
9050         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
9051         private data.
9052
9053 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9054
9055         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
9056         type check, (#116947, Krasimir Angelov)
9057
9058         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
9059         
9060         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
9061         data. Not instance private data yet, because of bug 116921.
9062
9063         * gtk/gtktoolitem.h: new accessors:
9064                 gtk_tool_item_get_homogeneous ()
9065                 gtk_tool_item_get_expand ()
9066                 gtk_tool_item_get_pack_end ()
9067                 gtk_tool_item_get_use_drag_window ()
9068
9069 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9070
9071         * gtk/gtkcellrenderertext.c
9072         (gtk_cell_renderer_text_class_init): remove accidentally committed
9073         debugging spew
9074
9075         * gtk/gtktoolbar.c
9076         (gtk_toolbar_paint_space_line): remove this function
9077         (gtk_toolbar_expose): always propagate expose, even if the item is
9078         a separator item
9079
9080         * gtk/gtkseparatortoolitem.c
9081         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
9082         (get_space_size): new function.
9083         (get_space_style): new function
9084
9085 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
9086
9087         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
9088         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
9089         of GDK_POINTER_MOTION_HINT_MASK.
9090
9091         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
9092         of the drag into an idle as a superior form of 
9093         expose compression.
9094
9095         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
9096         creation here, so that we have an icon at the start
9097         of the drag (e.g., when retrieving the window cache
9098         information.)
9099
9100 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9101
9102         * docs/widget_geometry.txt: better drawing of GtkMenuItem
9103         * docs/widget_geometry.txt: add notes about GtkMenu
9104         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
9105
9106 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9107
9108         * gtk/gtkmenu.c: add vertical_padding style property.
9109         
9110         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
9111         arrow_spacing and horizontal_padding. Also center separators and
9112         make them a bit taller.
9113
9114         * gtk/*menuitem.c: use new style properties.
9115         
9116         * docs/widget_geometry.txt: Add note about GtkMenuItem
9117
9118         * gtk/gtkstyle.c 
9119         (gtk_default_draw_vline, gtk_default_draw_hline):
9120         fix +/-1 errors. 
9121
9122         (gtk_default_draw_shadow): draw a black border around menus.
9123
9124         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
9125         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
9126         x2 and y1, y2 respectively, not x, width and y, height).
9127
9128 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
9129
9130         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
9131         all the atoms in the target list at once.
9132
9133         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
9134         Local drag short-circuit.
9135
9136         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
9137         local case, poke the actions in directly instead of
9138         going through xdnd_set_actions.
9139
9140         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
9141         the local case.
9142
9143         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
9144         XSelectInput()/add a filter if the drag is local.
9145
9146         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
9147         Simplify handling of "XdndSelection".
9148
9149         * gdk/x11/gdkevents-x11.c
9150         (gdk_event_send_client_message_to_all_recurse): Somehow,  
9151         a WM_STATE => _NET_WM_STATE change hand been made here.
9152
9153         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
9154         xatom_names, not atom_names.
9155
9156         * tests/testdnd.c (target_drag_motion): Make the trashcan
9157         open again. (Got lost in deprecation cleanup.)
9158
9159 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
9160
9161         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
9162         earlier, so we don't get a big pile of uncompressed
9163         motion events before the grab takes effect.
9164
9165         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
9166         gdk_window_process_all_updates() so that the area
9167         we are dragging over gets a change to redraw.
9168
9169         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
9170         gdk_window_get_position(), not gdk_window_get_origin().
9171
9172         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
9173         gdkdisplay-x11.h: use XShapeQueryExtension to 
9174         avoid duplicate XQueryExtension when we actually
9175         use it. Remove unnecessary caching in GdkDisplayX11.
9176
9177 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
9178
9179         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
9180         Function to get a range of information about all the
9181         children of a window in a single pass.
9182
9183         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
9184         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
9185         _gdk_x11_get_window_child_info() to greatly reduce
9186         the number of roundtrips.
9187
9188 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
9189
9190         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
9191         a function to XSendEvent() and call a calback on
9192         failure/success.
9193
9194         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
9195         messages to the same process, use _gdk_send_xevent_async().
9196
9197 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
9198
9199         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
9200         toplevel-specific pieces of GdkWindowImplX11 into
9201         a separate GdkToplevelX11 structure.
9202
9203 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
9204
9205         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
9206         some leftover fields.
9207
9208 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
9209
9210         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
9211         Use asynchronously _gdk_x11_set_input_focus_safe
9212         to avoid having to trap errors and XSync().
9213
9214         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
9215         _gdk_x11_set_input_focus_safe() here as well.
9216
9217         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
9218         Rework handling of property notifies on _NET_WM_STATE
9219         so that we ignore _NET_WM_DESKTOP notifies unless we
9220         really care.
9221
9222         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
9223         XShmQueryExtension() rather than XQueryExtension() to
9224         avoid extra rountrip.
9225
9226         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
9227         Remove unused call to XGetWindowAttributes()
9228         
9229         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
9230         unused call to XGetKeyboardControl().
9231
9232         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
9233         Add (#99571)
9234
9235         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
9236         No-op implementations of gdk_display_flush().
9237
9238         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
9239         gdk_display_flush() rather than gdk_flush() to avoid
9240         XSync().
9241         
9242         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
9243         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
9244         so that we don't have to get the property back from the server.
9245
9246         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
9247         the serial of when we map a toplevel to allow optimizing
9248         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
9249
9250         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
9251         XTranslateCoordinates() for override-redirect windows.
9252
9253 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
9254
9255         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
9256         about setting window group after the window is mapped from docs
9257         - nothing the ICCCM forbids that.
9258
9259         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
9260         Fix g_return_val_if_fail() in void return function.
9261
9262         * configure.in: Fix misplaced comma that was resulting
9263         in XShm always being disabled.
9264
9265 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9266
9267         * tests/stresstest-toolbar: remove this accidentally committed
9268         file.
9269         
9270         * tests/stresstest-toolbar.c: really add this new test
9271
9272 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9273
9274         * tests/stresstest-toolbar.c: new test for removing items
9275         
9276         * tests/testtoolbar.c: add a popup menu
9277
9278         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
9279           assert widget->parent == container when the container is a
9280           toolbar.
9281
9282         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
9283         simpler. Also make correct.
9284
9285         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
9286         popup_context_menu a boolean handled signal.
9287
9288 2003-07-04  Tor Lillqvist  <tml@iki.fi>
9289
9290         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
9291         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
9292         the width and height of the bounding rectangle only after the
9293         minumum x and y have been found, and need a separate loop for
9294         it. Thanks to Bruce Hochstetler for providing a sample program
9295         exhibiting the bug.
9296
9297 2003-07-03  Tor Lillqvist  <tml@iki.fi>
9298
9299         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
9300         (#116537, Peter Zelezny)
9301
9302 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9303
9304         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
9305         fix warning. Assign something to old_value to quiet gcc
9306
9307         * gtk/gtkcalendar.c 
9308         (start_spinning): gtk_timeout_add->g_timeout_add
9309
9310         * gtk/gtkicontheme.c 
9311         (theme_lookup_icon): Make it compile (remove double semicolon)
9312
9313         * gtk/gtktoolbutton.c
9314         (gtk_tool_button_class_init): Long comment about properties.
9315         (gtk_tool_button_class_init): Improve text for "use_underline"
9316         property
9317         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
9318         on whether the passed-in label has use_mnemonic set
9319         (gtk_tool_button_create_menu_proxy): Split image cloning out in
9320         new function. Make that function also handle image with pixbuf
9321         storage.
9322         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
9323         instead of gtk_container_remove().
9324         (gtk_tool_button_construct_contents): Fix eliding bug
9325
9326         * gtk/gtktoolbar.c
9327         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
9328         by Morten Welinder
9329         (gtk_toolbar_button_press): Make popup_context_menu signal provide
9330         coordinates and button number
9331
9332         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
9333
9334         * tests/apple-red.png: new file
9335
9336 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
9337          
9338         * gtk/gtkicontheme.[ch]: Implement a loader for
9339         named themed icon based on from gnome-desktop library
9340         by Alex Larsson.
9341
9342         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
9343         from gnome-desktop.
9344
9345         * gtk/gtkiconfactory.[ch]: Add
9346         gtk_icon_source_set/get_icon_name() to allow stock icons
9347         to be based off of named theme icons.
9348
9349         * gtk/gtkiconfactory.c: Rework sources so that the source
9350         is *either* a pixbuf, or a filename, or an icon name,
9351         instead of the pixbuf/filename mix it was before. Put a
9352         workaround for get_pixbuf() so that it can return the
9353         filename pixbuf, e.g, for render_icon().
9354
9355         * gtk/gtkiconfactory.c: Make the default setup use
9356         themed icons, and add builtin icons to the default
9357         icon theme for all the standard pixbufs, so we
9358         don't rely on actually having an icon theme on disk.
9359
9360         * gtk/gtkrc.c: Add support for @"icon-name" to specify
9361         a themed icon for a stock icon source.
9362
9363         * tests/Makefile.am test/testicontheme.c: Add a test
9364         program from gnome-desktop.
9365
9366         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
9367         Net/IconThemeName / gtk-icon-theme-name setting.
9368
9369         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
9370         update the icon cache serial so we don't continually
9371         think we are out-of-date.
9372
9373         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
9374         to ::direction_set that should have been to ::direction-changed
9375
9376 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
9377
9378         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
9379         style to the widget.
9380
9381 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9382
9383         * gtk/gtk.h: Add new toolbar headers
9384
9385         * tests/testtoolbar.c: new file
9386
9387         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
9388
9389         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
9390
9391 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9392
9393         * gtk/gtktoolbar.c:
9394         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
9395         inside a for loop (pointed out by Morten Welinder).
9396         (gtk_toolbar_focus_home_or_end): Minor formatting change
9397
9398         Comments from Owen:
9399
9400         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
9401         gtk_toolbar_elide_underscores instead.
9402
9403         * gtk/gtktoolbar.c: rename signal from focus_ends to
9404         focus_home_or_end.
9405         (_gtk_toolbar_elide_underscores): export this as an internal
9406         function.
9407         (gtk_toolbar_move_focus): add comment explaining difference to
9408         gtk_toolbar_focus();
9409         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
9410         TAB_BACKWARD focus the right widgets in RTL mode
9411
9412         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
9413         "label" and "icon" parameters
9414
9415         * gtk/gtktoolbutton.[ch]: remove icon_set property.
9416
9417 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9418
9419         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
9420         (116364, Morten Welinder) 
9421
9422         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
9423         corresponding dialogs.
9424
9425         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
9426         gtkcolorbutton.h.  
9427         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
9428
9429         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
9430
9431         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
9432
9433         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
9434
9435         * gtk/gtkexpander.c: Small additions to the docs. 
9436
9437 2003-07-01  Tor Lillqvist  <tml@iki.fi>
9438
9439         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
9440         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
9441
9442 2003-07-01  Matthias Clasen  <maclas@gmx.de>
9443
9444         * configure.in: Check for Xcursor.
9445         
9446         * gdk/x11/gdkcursor-x11.c:
9447         * gdk/gdkdisplay.h: 
9448         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
9449         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
9450         gdk_display_supports_cursor_color(),
9451         gdk_display_get_default_cursor_size() and 
9452         gdk_display_get_maximal_cursor_size().  (#69436)
9453
9454 2003-06-30  Tor Lillqvist  <tml@iki.fi>
9455
9456         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
9457         callback proc for EnumWindows().
9458         (gdk_drag_find_window_for_screen): Actually take the drag_window
9459         argument into account: Instead of using WindowFromPoint(), use
9460         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
9461         M Brown, Herman Bloggs)
9462
9463         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
9464         gdk_window_ref()/unref() calls with g_object_ref()/unref().
9465         Consistently use %p format in debugging output of pointers and
9466         HANDLEs.
9467
9468 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9469
9470         * gtk/gtkexpander.h: kill some stray characters
9471         breaking the build.
9472
9473 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
9474
9475         Add GtkExpander. See discussion in bug #60553.
9476
9477         * gtk/gtkexpander.[ch]: add.
9478         
9479         * gtk/Makefile.am: build gtk-expander.[ch].
9480         
9481         * docs/widget_geometry.txt: add info on the layout
9482         of GtkExpander.
9483
9484 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9485
9486         * gtkradiotoolbutton.c:         new file
9487         * gtkradiotoolbutton.h:            "
9488         * gtktoggletoolbutton.c:           "
9489         * gtktoggletoolbutton.h:           "
9490         * gtktoolbutton.c:                 "
9491         * gtktoolbutton.h:                 "
9492         * gtktoolitem.c:                   "
9493         * gtktoolitem.h:                   "
9494         * gtktoolbar.c: many changes
9495         * gtktoolbar.h: many changes
9496         * gtkseparatortoolitem.c:       new file
9497         * gtkseparatortoolitem.h           "
9498
9499         New toolbar.
9500         
9501         - Items on a toolbar are now separate widgets, instances of a
9502           subclass of GtkToolItem.
9503
9504         - Items there aren't room for on the toolbar are unmapped, and an
9505           overflow menu with a proxy menu item is added instead.
9506
9507         - The toolbar is keyboard navigatable. Press TAB to focus the
9508           first item, then use arrow keys and Ctrl TAB to move around the
9509           toolbar. TAB moves focus out of the toolbar.
9510
9511         - Bascially all of the old toolbar API is deprecated in favor of
9512           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
9513
9514         - The toolbar is backwards compatible with the old toolbar.
9515
9516 2003-06-29  Matthias Clasen  <maclas@gmx.de>
9517
9518         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
9519         from docs, some more formatting fixes. 
9520
9521 2003-06-28  Tor Lillqvist  <tml@iki.fi>
9522
9523         Fix for #111028, thanks to J. Ali Harlow, who writes:
9524         I found that the GdkPixmap->GdkImage reference really isn't
9525         important. It's only really there to have somewhere convenient to
9526         store the location of the pixel data in the pixmap and as an easy
9527         way of accessing the dimensions of that data. I have therefore put
9528         together a fix which removes this reference entirely which seems
9529         to solve the problem.
9530
9531         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
9532         Instead of a pointer to a GdkImage, keep a pointer to the pixels
9533         directly.
9534
9535         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
9536         (_gdk_win32_new_image): New function, replacing the above. Creates
9537         a GdkImage without any associated GdkPixmap.
9538         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
9539
9540         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
9541
9542         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
9543         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
9544         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
9545         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
9546         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
9547         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
9548         Corresponding changes.
9549
9550 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9551
9552         * gtk/gtktreeviewcolumn.c
9553         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
9554         and "is_expanded" if the new value is different fromt he old one.
9555
9556 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
9557
9558         * docs/faq/gtk-faq.sgml: Fix typos. Update
9559         thread example I missed yesterday.
9560
9561 2003-06-24  Matthias Clasen  <maclas@gmx.de>
9562
9563         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
9564         shadow_type. 
9565
9566         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
9567         (gtk_widget_class_list_style_properties): Use same parameter names as in  
9568         header (to silence gtk-doc).
9569
9570         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
9571
9572 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
9573
9574         * docs/faq/gtk-faq.sgml: Thread support updates
9575         from Owen. Various suggestions from Steve Chaplin.
9576
9577 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
9578
9579         * po/id.po: Updated Indonesian translation
9580
9581 2003-06-21  Tor Lillqvist  <tml@iki.fi>
9582
9583         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
9584         emulating X11's automatic grab on button down, pass owner_events
9585         as FALSE. According to the XLib spec, automatic grabs use True for
9586         owner_events when OwnerGrabButtonMask is selected, and I don't see
9587         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
9588         (find_window_for_pointer_event): Improve debugging output.
9589
9590 2003-06-17  Tor Lillqvist  <tml@iki.fi>
9591
9592         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
9593         subdirectory, where libtool 1.5 installs them.
9594
9595         * README.win32: Point to FSF's binary Win32 distribution of
9596         gettext-runtime.
9597
9598 2003-06-17  Matthias Clasen  <maclas@gmx.de>
9599
9600         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
9601         macros to check for XML catalog contents and path, borrowed from
9602         gtk-doc. 
9603         * configure.in: New option --enable-man to enable regeneration of
9604         man pages from Docbook, if the necessary tools are found.
9605
9606 2003-06-15  Matthias Clasen  <maclas@gmx.de>
9607
9608         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
9609         * gtk/gtknotebook.c (gtk_notebook_class_init): 
9610         * gtk/gtkalignment.c (gtk_alignment_class_init): 
9611         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
9612         as 2.4 additions.
9613
9614         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
9615         to the proper place, immediately before the g_signal_new() call.
9616
9617         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
9618         more obvious.  (#115122, Jeff Franks)
9619
9620 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
9621
9622         * gtk/gtkwidget.c: (event_window_is_still_viewable):
9623         Special case pixmaps. (#114880)
9624         
9625 2003-06-12  Matthias Clasen  <maclas@gmx.de>
9626
9627         * gtk/gtkwidget.c: Document child-notify and drag-data-received
9628         signals. Owen, we need to figure out where the best place for
9629         these comments in the source is. I currently put them in front of
9630         the signals enum.
9631
9632 2003-06-11  Matthias Clasen  <maclas@gmx.de>
9633
9634         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
9635
9636 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
9637
9638         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9639         silly typo fix. s/seperator/separator/. This gets rid of the
9640         assert spam when using TreeView.
9641
9642 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9643
9644         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
9645         function for XIM instantiate callback.
9646         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
9647         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
9648         actually made.
9649         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
9650         for XIM's destroy callback.
9651         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
9652         is set or not - if it's not set, call xim_info_try_im() to try to
9653         initiaize it.
9654         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
9655         filter_key_release flag of the context.
9656         * modules/input/gtkimcontextxim.c (get_ic_real): removed
9657         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
9658         code from the removed get_ic_real().
9659
9660         For XIM instantiation, destruction and re-instantiation. With
9661         this, Gtk+ apps will be able to connect or reconnect to the XIM,
9662         when it starts after the apps, or when the XIM gets lost and recover.
9663         (#113099, #107782).
9664
9665 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
9666
9667         Merged from stable.
9668
9669         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
9670         check if width is !null, not *width. Doh.
9671
9672 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
9673
9674         Merged from stable.
9675
9676         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
9677         Remove the weird dx logic, get all cell_area and background_area
9678         calculations right. Not sure what was up with it before. (Fixes
9679         #110989, testcase from Vasco Alexandre da Silva Costa).
9680
9681 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9682
9683         * tests/testgtk.c: Make it compile with C89 compilers
9684
9685 2003-06-10  Matthias Clasen  <maclas@gmx.de>
9686
9687         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
9688         property "overwrite".
9689         (gtk_text_view_[gs]et_property): Handle "overwrite".
9690         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
9691         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
9692
9693 2003-06-09  Matthias Clasen  <maclas@gmx.de>
9694
9695         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
9696         properties "resize" and "shrink".
9697         (gtk_paned_[gs]et_child_property): Implementations of 
9698         GtkContainer::[gs]et_child_property.  
9699         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
9700         paned child properties instead of remove/add hacks.  (#114667, 
9701         Soeren Sandmann) 
9702
9703 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
9704
9705         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
9706         out event->window test - it wasn't needed because
9707         of the call to get_widget_coordinates().
9708
9709         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
9710         call to gtk_widget_grab_focus() when not clicking on
9711         any tabs. (Real fix for #114534)
9712
9713 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
9714
9715         * tests/testdnd.c: Use application/x-rootwindow-drop for
9716         root window drops. (#108670, Alex Larsson)
9717
9718         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
9719         Accept either application/x-rootwin-drop (what GTK+ has always used)
9720         or application/x-rootwindow-drop (what the XDND standard specifies).
9721
9722 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
9723
9724         * gtk/gtkwidget.c (event_window_still_viewable): 
9725         Before delivering an event to a widget, check that
9726         (if relevant), the event's window is still viewable.
9727         (#105642, Dennis Björklund)
9728
9729         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
9730         NULL out private->parent, since after destruction
9731         it might not be valid any more.
9732
9733         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
9734         accesses before g_return_val_if_fail(). Treat 
9735         DESTROYED windows as unmapped.
9736
9737 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
9738
9739         * gtk/gtkentry.c: Recompute unconditionally in
9740         gtk_entry_style_set, and in a new gtk_label_screen_changed().
9741         Protect the guts of recompute_idle_func() with
9742         gtk_widget_has_screen(). (#114040, Morten Welinder) 
9743         Fix FALSE/0 confusion.
9744         
9745 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
9746
9747         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
9748         Fixes (#114669)
9749
9750 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
9751
9752         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
9753         set_adjustment (viewport, NULL);
9754
9755 2003-06-07  Matthias Clasen  <maclas@gmx.de>
9756
9757         * gtk/gtkiconfactory.c (get_default_icons): 
9758         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
9759         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
9760         undelete and revert.  (#96633)
9761         
9762 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
9763
9764         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
9765         refactoring of code to reduce duplication; fixes include:
9766
9767         - gtk_viewport_realize(): Position the window correct from adjustment 
9768         values. (#110737, Michael Natterer)
9769
9770         - Remove some division-by-zero checks in places where there is no 
9771         longer division. (#110737)
9772
9773         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
9774         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
9775         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
9776
9777         - Switch over to encapsulated lazy-creation for hadjustment/
9778         vadjustment; even with the CONSTRUCT property, we need this after
9779         destroy.
9780
9781         - When updating the adjustment, immediate set their values to
9782         match the the current range of the viewport, and update the 
9783         viewport position to match the value of the new adjustments. 
9784         (Part of #1165)
9785
9786 2003-06-06  Tor Lillqvist  <tml@iki.fi>
9787
9788         * gdk/win32/gdkprivate-win32.h: Fix typo.
9789
9790         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
9791         graphics_exposures and subwindow_mode, too, even if they aren't
9792         currently used.
9793
9794 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
9795
9796         Merged from stable.
9797
9798         * gtk/gtktreeview.c (do_expand_collapse),
9799         (expand_collapse_timeout), (cancel_arrow_animation): made
9800         expand_collapse_timeout a wrapper with locks around     
9801         do_expand_collapse, made cancel_arrow_animation use
9802         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
9803         Peter Bloomfield).
9804
9805 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
9806
9807         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
9808         * modules/input/gtkimcontextxim.c (preedit_start_callback,
9809         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
9810         to keep preedit-[start,changed,end] signals from being called during
9811         finalization (#111861).
9812
9813 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
9814
9815         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
9816         presses that are not on the tab (#114534).
9817
9818 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
9819
9820         * demos/Makefile.am: Conditionalize dependencies for
9821         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlow). 
9822         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
9823         test-inline-pixbufs.h if we don't have libpng.
9824
9825         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
9826         Add a dependency on gdk-pixbuf.loaders when not 
9827         cross-compiling, remove the dependency on gdk-pixbuf-csource
9828         when not cross compiling.
9829
9830 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
9831
9832         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
9833         gtk_window_get_geometry_info() returning NULL.
9834         (#107311, John Finlay)
9835
9836 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
9837
9838         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
9839         twice the border width from the width/height, not
9840         1x the border width. (#106336, Rodney Dawes)
9841
9842 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
9843  
9844         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
9845         If at the end of the buffer, move to the end iter -
9846         parallels behavior of move_iter_to_previous_line.
9847         (#81960, Padraig O'Briain)
9848  
9849 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
9850
9851         #80023, Yao Zhang, TOKUNAGA Hiroyuki
9852
9853         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
9854         Account for the preedit cursor offset if the iter passed
9855         in is at the same place as the insertion cursor.
9856
9857         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
9858         Encapsulate getting the insertion cursor location.
9859
9860         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
9861         Pass the real y/height to the IM context. Take 
9862         text_view->x/yoffset into account.
9863
9864 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
9865
9866         * gtk/gtktextview.[ch]: Never scroll on focus in
9867         (#81893, Patch from Paolo Maggi)
9868
9869         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
9870         Scroll to the current cursor location before handling
9871         the action, in case the user just tabbed in
9872         and the cursor is offscreen.
9873
9874 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
9875          
9876          #107883, Gustavo Giráldez
9877
9878         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
9879         Split out the case where we know we changed, and 
9880         already dealt with our cached line being invalidated
9881         from external calls to gtk_text_layout_changed.
9882
9883         * gtk/gtktextlayout.c (gtk_text_layout_changed):
9884         Check if the invalidate yrange intersects our
9885         cached line, and clear it if necessary.
9886
9887 2003-06-05  Tor Lillqvist  <tml@iki.fi>
9888
9889         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
9890         filters.
9891
9892 2003-06-05  Matthias Clasen  <maclas@gmx.de>
9893
9894         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
9895         (gtk_text_view_grab_notify): 
9896         (gtk_text_view_state_changed): Implement these
9897         to unobscure cursor when grab shadowed or insensitised.
9898         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
9899         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
9900         gtk_text_view_motion_event().
9901         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
9902
9903         * gtk/gtktextview.c (select_all): New keybinding signal for
9904         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
9905
9906         * gtk/gtkcalendar.c (calendar_timer): 
9907         (stop_spinning): Replace deprecated gtk_timeout_* functions by
9908         their GLib counterparts.  (#114429)
9909
9910         * gtk/gtktreestore.c (gtk_tree_store_new): 
9911         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
9912         types.
9913
9914 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
9915
9916         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
9917         When drawing underlines, join up adjacent runs
9918         where possible, so we don't get changes in 
9919         shaper/font/etc. breaking underlines. (#103662,
9920         Kang Jeong-Hee)
9921
9922 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
9923
9924         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
9925         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
9926         improve the speed of inserting rows into an already sorted list,
9927         #109292
9928
9929 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
9930
9931         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
9932         track of when we have a clip mask set for the GC,
9933         and when we unset it, or switch to a clip region,
9934         immediately call XSetClipMask (..., None) to avoid
9935         Xlib caching stale data. (#111806)
9936
9937         * gtk/gtktextdisplay.c: Don't set a clip mask
9938         when drawing alpha pixmaps; it isn't necessary any more.
9939         (#111806)
9940
9941 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
9942
9943         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
9944         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
9945         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
9946         (#92548, Tim Evans)
9947
9948         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
9949         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
9950         Use state_type = STATE_INSENSITIVE for insensitive menu items.
9951
9952 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
9953
9954         Merged from stable.
9955
9956         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
9957         assert for get_info. (reported by Michael Natterer),
9958         (gtk_tree_view_expand_all_emission_helper),
9959         (gtk_tree_view_expand_all_helper): emit row_expanded for all
9960         expanded rows during an _expand_all operation. (Fixes #111280,
9961         reported by Benjamin Bayart).
9962
9963 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
9964
9965         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
9966         respond to pings on a root window; prevents infinite
9967         loops if we are selecting for SubstructureNotify on the
9968         root window. (#111945, Sergey V. Udaltsov)
9969
9970 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
9971
9972         #71597, reported by Morten Welinder
9973
9974         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
9975         (Patch from Christian Petig)
9976
9977         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
9978         Major rewrite of 555 and 565 conversion routines:
9979
9980         - Move all the bit shifting into a small block of macros,
9981           eliminating much duplication of complicated arithmetic.
9982         - Get rid of 2-pixels at a time code, which was buggy,
9983           hard to maintain, caused unaligned accesses, and
9984           probably didn't actually perform any better.
9985         - Simplify cases where different data types were
9986           used for the little and big endian cases, use
9987           GUINT16_SWAP_LE_BE() where appropriate.
9988                 
9989 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
9990
9991         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
9992         bad optimization for src_rowstride == dest_stride.
9993         (Didn't consider the case where we were copying only
9994         partial widths of a wider source buffer)
9995         (#113034, reported by Hans Petter Jansson)
9996
9997 2003-06-03  Michael Natterer  <mitch@gimp.org>
9998
9999         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
10000         reenabled button_release events for xinput devices. (#113948)
10001
10002 2003-06-03  Christian Rose  <menthos@menthos.com>
10003
10004         * configure.in: Added "li" to ALL_LINGUAS.
10005
10006 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
10007
10008         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
10009         map the event window if the notebook isn't mapped. (#113980,
10010         Richard Reich)
10011
10012 2003-06-02  Sven Neumann  <sven@gimp.org>
10013
10014         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
10015
10016         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
10017
10018 2003-06-01  Matthias Clasen  <maclas@gmx.de>
10019
10020         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
10021         Since: 2.4 to the docs.
10022
10023         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
10024         an example to the docs.  (#98427)
10025
10026 2003-05-30  Murray Cumming  <murrayc@usa.net>
10027
10028         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
10029         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
10030         uses the new private data system - see g_type_class_add_private() in
10031         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
10032
10033 2003-05-30  Matthias Clasen  <maclas@gmx.de>
10034         
10035         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
10036         signature of gtk_notebook_draw_arrow() for Solaris builds to go
10037         through.  (#114043, Anand Subramanian)
10038
10039 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10040
10041         * modules/input/imipa.c: 
10042         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
10043
10044 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10045
10046         * gtk/gtkimmodule.c (_gtk_im_module_list):
10047         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
10048
10049 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10050
10051         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
10052         label of default input method localizable.
10053         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
10054         use translations of input method context names
10055         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
10056           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
10057           modules/input/imti-er.c, modules/input/imti-et.c
10058           modules/input/imviqr.c, modules/input/imxim.c
10059         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
10060         (#113850).
10061
10062 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
10063
10064         Merged from stable.
10065
10066         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
10067         grab separate, the user might clear the tree in the focus-in
10068         callback. (Fixes #113086, testcase from Felipe Heidrich).
10069
10070 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
10071
10072         Merged from stable.
10073
10074         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
10075         of row reference when we unset the model. Also reset
10076         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
10077
10078 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
10079
10080         Merged from stable.
10081
10082         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
10083         the current editing, if it exists. (Fixes #108956, reported by
10084         Michael Natterer).
10085
10086 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
10087
10088         Merged from stable.
10089
10090         * gtk/gtktreeview.c (check_selection_helper): new function,
10091         (gtk_tree_view_row_deleted): traverse the tree from the
10092         deleted node to see whether the selection changed, instead of
10093         just checking this node. (Fixes #107400, reported by 'Duncan').
10094
10095 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
10096
10097         Merged from stable.
10098
10099         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
10100         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
10101         instead of _maybe_begin_dragging_row, so the icon can be
10102         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
10103
10104 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
10105
10106         Merged from stable.
10107
10108         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
10109         cell_area x/width for the expander if needed. (Fixes #101748,
10110         reported by Dave Cook and Mariano Suarez-Alvarez).
10111
10112 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
10113
10114         Merged from stable.
10115
10116         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
10117         if tree/node are still the same after _internal_select_node.
10118         (Fixes #92256, reported by edscott).
10119
10120 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
10121
10122         Fixes #75745, reported by Richard Hult. Merged from stable.
10123
10124         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
10125         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
10126         cursor or not.
10127
10128         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
10129         if we are rendering a cursor row, and the cell the be
10130         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
10131         flag (else we unset it).
10132
10133 2003-05-27  Matthias Clasen  <maclas@gmx.de>
10134
10135         * gtk/gtkwindow-decorate.c: 
10136         * gtk/gtktreeprivate.h: 
10137         * gtk/gtkdnd.c: 
10138         * gdk/win32/gdkwindow-win32.h: 
10139         * gdk/linux-fb/gdkprivate-fb.h: 
10140         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
10141         unspecified signedness.  (#112919, Morten Welinder)
10142
10143         * gtk/queryimmodules.c (escape_string): 
10144         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
10145         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
10146         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
10147         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
10148         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
10149         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
10150         Morten Welinder) 
10151
10152 2003-05-27  Tor Lillqvist  <tml@iki.fi>
10153
10154         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
10155         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
10156
10157         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
10158         win32/libgdk-win32.la.
10159
10160         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
10161
10162 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10163
10164         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
10165         scrollbar slider length 21 instead of 7.
10166
10167 2003-05-23  Matthias Clasen  <maclas@gmx.de>
10168
10169         * gtk/gtknotebook.c: Add support for up to four scroll
10170         arrows. Control their display by new style properties
10171         "has_forward_stepper", "has_backward_stepper",
10172         "has_secondary_forward_stepper" and
10173         has_secondary_backward_stepper". (#110540)
10174
10175         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
10176         click_child three bits wide, add
10177         has_{before,after}_{previous,next} fields.
10178
10179         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
10180         focus out of hex_entry.  (#112665)
10181         (hex_focus_out): New signal handler for focus out of hex entry.
10182
10183 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
10184
10185         * gtk/gtkwidget.c (gtk_widget_realize): 
10186         g_return_if_fail() if
10187         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
10188         (#107872, Christian Reis)
10189
10190 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10191
10192         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
10193         (gtk_file_selection_rename_file): Some keynav improvements for the
10194         "Rename File" and "Create Directory" subdialogs: Enter in entry
10195         activates default, default is "Create"/"Rename", Escape cancels
10196         dialog.  (#113110)
10197         (gtk_file_selection_set_filename): Add a hint about opening 
10198         directories.  (#113175)
10199
10200 2003-05-22  Matthias Clasen  <maclas@gmx.de>
10201
10202         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
10203         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
10204         anyway.  (#113476)
10205
10206 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
10207
10208         * gtk/gtkprogress.c (gtk_progress_set_format_string,
10209         gtk_progress_set_show_text): Always queue a resize ... 
10210         we rely on the size-allocate to do the update, plus a 
10211         different format can actually change our size requisition.
10212         (#111052, Vasco Alexandre da Silva Costa)
10213
10214         * gtk/gtkprogress.c (gtk_progress_changed): Track
10215         ::changed as well as ::value_changed, and queue a
10216         resize on ::changed when necessary.
10217
10218         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
10219         Call gtk_progress_changed() here to update or 
10220         queue a resize as necessary.
10221
10222 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10223
10224         * gtk/gtkimcontextsimple.c: added composing rules of
10225         Greek accented letters, patch by Vasilis Vasaitis (#107507)
10226
10227 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10228
10229         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
10230         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
10231         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
10232
10233 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10234
10235         * gtk/gtkimcontextsimple.c: 
10236         code that can check the compose table for ascending order,
10237         by Vasilis Vasaitis (#104862).
10238
10239 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
10240
10241         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
10242         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
10243         to handle the case where a modifier not in the mask
10244         (like Num_Lock) changes the key value, so replace
10245         the masked state with a state/mask pair. (#106913,
10246         Olivier Ripoll)
10247
10248         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
10249         in state/mask pair to _gtk_key_hash_lookup()
10250
10251 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
10252
10253         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
10254         fix a memory leak, free input context list (#113259).
10255
10256 2003-05-21  Matthias Clasen  <maclas@gmx.de>
10257
10258         * configure.in (all_loaders): Add pcx.
10259
10260         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
10261
10262 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
10263
10264         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
10265         accept a missing gtk.immodules file, some people
10266         want to run without one. (#112406, patch from
10267         Arnaud Charlet)
10268
10269 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
10270
10271         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
10272         height/width confusion (#113370, Xan Lopez)
10273
10274 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
10275
10276         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
10277         zero all unused parts of client messages (Mainly Motif DND
10278         and EWMH). Also, fix a couple places where we were putting
10279         contents into Motif DND messages that didn't belong.
10280         (#113361, EWMH problem reported by Lubos Lunak)
10281
10282         * gtk/gtkselection.c (_gtk_selection_request): Handle the
10283         case where the property type for the multiple atoms is
10284         ATOM_PAIR by doing the conversions ourselve. This is
10285         needed for Xt inter-operation.
10286
10287 2003-05-19 Arafat Medini <lumina@silverpen.de>
10288
10289         * configure.in: Added ar to ALL_LINGUAS
10290
10291 2003-05-19  Matthias Clasen  <maclas@gmx.de>
10292
10293         * gtk/gtksettings.c (gtk_rc_property_parse_border,
10294         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
10295         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
10296         Add docs.
10297
10298         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
10299         gtk_widget_class_install_style_property_parser): Add docs. 
10300
10301 2003-05-17  Matthias Clasen  <maclas@gmx.de>
10302
10303         * tests/prop-editor.c: Add navigation for object properties, so
10304         that you can easily edit the properties of the parent of a widget.
10305         (#113152)
10306
10307 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
10308
10309         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
10310         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
10311         inconsistency and leave the old name as an aliass (#104873)
10312
10313 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
10314
10315         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
10316         from Charles Schmidt to add missing notify (#108305)
10317
10318 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
10319  
10320         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
10321         (#105500, Morten Welinder.)
10322  
10323 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
10324
10325         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
10326         instead of gumake for XNFilterEvents event mask(#110493).
10327
10328 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
10329
10330         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
10331         a GObject. (#112762)
10332
10333 2003-05-08  Sven Neumann  <sven@gimp.org>
10334
10335         * configure.in: set the HAVE_X11R6 automake conditional to false
10336         if not compiling for X11.
10337
10338 2003-05-08  Matthias Clasen  <maclas@gmx.de>
10339
10340         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
10341         (gtk_calendar_get_display_options): New functions.
10342         (gtk_calendar_display_options): Depreate.  (#64567)
10343         (gtk_calendar_class_init): Add boolean properties for the display
10344         options.  (#50949)
10345
10346 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
10347
10348         Patch from James Henstridge to update to automake-1.7
10349         (#109542)
10350  
10351         * autogen.sh: update to call newer tools.
10352  
10353         * configure.in: various updates, to use M4 macros to put
10354         variables that change each release at the top.
10355         Use AC_HELP_STRING to format help strings.
10356         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
10357  
10358         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
10359         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
10360         during distcheck.
10361  
10362         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
10363         makefile fragment.
10364  
10365         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
10366         Use BUILT_SOURCES where appropriate.
10367         Build generated files in builddir rather than srcdir.
10368         Fix uninstall and distclean targets to satisfy distcheck.
10369
10370         ===
10371
10372         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
10373         built first, since we are now using BUILT_SOURCES.
10374
10375         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
10376
10377         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
10378         with geninclude.pl.
10379
10380         * configure.in: Update versions to 2.3.0.
10381  
10382 2003-05-06  Tor Lillqvist  <tml@iki.fi>
10383
10384         Fix for #110165 (thanks to Arnaud Charlet):
10385         
10386         * gdk/win32/gdkevents-win32.c (build_keypress_event,
10387         build_keyrelease_event): For unshifted control char, use
10388         lowercase ASCII keyval.
10389         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
10390         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
10391         lowercase keyval. Use build_key_event_state() here, too, instead
10392         of minor code duplication.
10393
10394 2003-05-06  Matthias Clasen  <maclas@gmx.de>
10395
10396         * tests/testmultidisplay.c: Don't include strings.h, it's not
10397         needed anymore.  (#112388)
10398
10399         * examples/menu/itemfactory.c: 
10400         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
10401         itemfactory example.
10402
10403 2003-05-05  Matthias Clasen  <maclas@gmx.de>
10404
10405         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
10406         icon type to the stock icon type.  (#111735, Dave Bordoley)
10407
10408 2003-05-05  Christian Rose  <menthos@menthos.com>
10409
10410         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
10411         Removed sp, it's replaced by sr@Latn.
10412
10413 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
10414
10415         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
10416         Gonzalo Odiard
10417
10418 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
10419
10420         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
10421         data iff the destroy func isn't NULL.
10422
10423 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
10424
10425         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
10426
10427 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
10428
10429         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
10430
10431 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
10432
10433         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
10434         of UTF-8. (#106419, Roozbeh Pournader)
10435
10436 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
10437
10438         * configure.in: Only check for XFT2 if we found pango-xft
10439         (#105692, Jon Nall)
10440
10441 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
10442
10443         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
10444         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
10445
10446 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
10447
10448         * docs/faq/gtk-faq.sgml: add note about version converage.
10449
10450 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
10451
10452         * gtk/gtksocket.c (activate_key): Fix prototype for
10453         activate_key. (#108927, Jason D. Hildebrand)
10454
10455 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
10456
10457         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
10458         Remove geninclude.pl from CVS and don't dist it either,
10459         it is generated. (#108970, Rich Kinder)
10460
10461 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
10462
10463         * gtk/gtkobject.h: Remove a couple of obsolete comments,
10464         fix another comment. (#109737, Britton Kerin)
10465
10466 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
10467
10468         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
10469         the source list, not just it's contents (Patch
10470         from Charles Kerr, #108243)
10471
10472 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
10473
10474         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
10475         from Alex Larsson fixing problem with restacking during
10476         DND. (#108671)
10477
10478 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
10479
10480         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
10481         Calling XFlush() after ungrabbing, to avoid problems if
10482         the app subsequently blocks on a long-running operation.
10483         (#106520, reported by Rajkumar Siva)
10484
10485 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
10486
10487         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
10488         SKIP_TASKBAR/SKIP_PAGER to set of properties we
10489         might set on map. (#110019, problem reported
10490         by Loban Rahman)
10491
10492 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
10493
10494         * gdk/gdkevents.c (gdk_event_copy): Fix for the
10495         case when gdk_event_copy() is called on a non-allocated
10496         event. (#109716, reported by Rich Burridge)
10497
10498 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
10499
10500         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
10501         Fix pointer arithmetic on 'void *'. (#108322)
10502
10503 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
10504
10505         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
10506         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
10507         use of XAddConnectionWatch. Remove --enable-xim config option.
10508         Should fix building on X11R6 (#110523, Albert Chin)
10509
10510 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
10511
10512         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
10513         Patch from Morten Welinder to catch Sun servers with a 
10514         broken implementation of the RENDER extension. (#108309)
10515
10516 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
10517
10518         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
10519         gdk_free_compound_text(), not g_free(). (#107643,
10520         Michael Zucchi)
10521
10522 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
10523
10524         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
10525         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
10526         wrong use of base_finalize. (#105126, Sven Neumann)
10527
10528 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
10529
10530         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
10531         '/' vs. '*' problem in aspect ration computations. (#108237)
10532
10533 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
10534
10535         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
10536         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
10537         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
10538         event, so select for both. (#108406, Egmont Koblinger)
10539
10540 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
10541
10542         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
10543         caused by not clearing the scroll_to_path.
10544
10545 2003-04-16  Matthias Clasen  <maclas@gmx.de>
10546
10547         * gtk/gtkstyle.c: Doc additions and fixes.
10548
10549         * gtk/gtktreeviewcolumn.c
10550         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
10551
10552 2003-04-14  Michael Natterer  <mitch@gimp.org>
10553
10554         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
10555         that the iter is not reordered to its own position. Prevents model
10556         corruption for the case that the store contains only a single item
10557         (fixes bug #108387).
10558
10559         Unrelated:
10560
10561         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
10562         new list element later so we don't leak it if we decide to return
10563         early.
10564
10565         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
10566         set selection->tree_view->priv->anchor to NULL after freeing it.
10567
10568 2003-04-13  Matthias Clasen  <maclas@gmx.de>
10569
10570         * gtk/gtktreeviewcolumn.c
10571         (gtk_tree_view_column_cell_get_position): Document. 
10572
10573         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
10574         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
10575         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
10576         these as 2.4 additions.
10577
10578 2003-04-09  Matthias Clasen  <maclas@gmx.de>
10579
10580         * INSTALL.in: Fix the real thing.
10581
10582         * INSTALL: Typo fix.
10583
10584 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
10585
10586         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
10587         after ungrabbing the server.
10588  
10589         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
10590         calls to XFlush().
10591
10592         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
10593         Use gdk_x11_display_grab/ungrab.
10594
10595         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
10596         use_xshm to TRUE so SHM gets used when present.
10597  
10598 2003-04-07  Matthias Clasen  <maclas@gmx.de>
10599
10600         * gtk/gtktextlayout.c (set_para_values): 
10601         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
10602         David Brigada)
10603
10604         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
10605         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
10606         misspellings of possessive "its".  (#110027, Doug Quale)
10607
10608 2003-04-03  Matthias Clasen  <maclas@gmx.de>
10609
10610         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
10611         current directory if it looks like the srcdir.  (#109357)
10612
10613 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
10614
10615         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
10616         focus_on_click
10617
10618         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
10619         navigation not wrap around.
10620
10621 2003-04-02  Matthias Clasen  <maclas@gmx.de>
10622
10623         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
10624         Return 0 if lower == upper.  (#109155)
10625         (gtk_progress_get_current_percentage): Use
10626         gtk_progress_get_percentage_from_value().
10627
10628 2003-04-01  Matthias Clasen  <maclas@gmx.de>
10629
10630         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
10631         (#109510, Noah Levitt)
10632
10633 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
10634
10635         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
10636         members so Purify won't complain.
10637
10638         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
10639
10640 2003-03-31  Matthias Clasen  <maclas@gmx.de>
10641
10642         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
10643         gtk_window_[gs]et_role().  (#93904)
10644
10645 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
10646
10647         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
10648         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
10649
10650 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10651
10652         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
10653         of labels back to normal before reparenting back.  (#102387)
10654
10655         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
10656         a default window title to match the GtkFontSelectionDialog behavior.
10657  
10658         (gtk_color_selection_dialog_new): Don't call
10659         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
10660
10661 2003-03-29  Matthias Clasen  <maclas@gmx.de>
10662
10663         Fix for bug #78499:
10664         
10665         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
10666         select_lines. 
10667
10668         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
10669         select_lines on double/triple click.
10670
10671         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
10672         select-by-words and select-by-lines behaviour.
10673
10674         Fixes for bug #56248:
10675         
10676         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
10677         timer and queue a redraw. 
10678         (gtk_notebook_grab_notify): 
10679         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
10680         if necessary.   
10681         (gtk_notebook_button_release): Use stop_scrolling().
10682         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
10683
10684         * gtk/gtkrange.c (stop_scrolling): New function to remove the
10685         grab, remove the timer and queue a redraw.
10686         (gtk_range_grab_notify): 
10687         (gtk_range_state_changed): New functions to call stop_scrolling() 
10688         if necessary.   
10689         (gtk_range_button_release): Use stop_scrolling().
10690
10691         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
10692         (gtk_spin_button_state_changed): Redraw after stop_spinning.
10693         (gtk_spin_button_stop_spinning): Reset click_child to correct the
10694         drawing of the arrows.
10695         (gtk_spin_button_button_release): Use a local copy of click_child,
10696         since stop_spinning() resets it.
10697
10698         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
10699         C-A-PgDown as alternatives to the A-less variants. (This slipped
10700         in accidentally some time ago).  (#97860)
10701
10702 2003-03-26  Sven Neumann  <sven@gimp.org>
10703
10704         * gtk/gtktreeview.c: rewrote the function that does node and arrow
10705         prelighting, queue all redraws from here (Fixes bug #108792).
10706
10707 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
10708
10709         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
10710         Fixes bug #108778.
10711
10712 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
10713
10714         * configure.in: Added "ml" in ALL_LINGUAS
10715
10716 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
10717
10718         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
10719         G_DISABLE_DEPRECATED.
10720
10721 2003-03-14  Tor Lillqvist  <tml@iki.fi>
10722
10723         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
10724         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
10725         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
10726         multiple monitors can have negative coordinates on some of the
10727         monitors. (partial fix for #99496, Arnaud Charlet)
10728
10729 2003-03-15  Matthias Clasen  <maclas@gmx.de>
10730
10731         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
10732
10733 2003-03-13  Sven Neumann  <sven@gimp.org>
10734
10735         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
10736         removed redundant calls to g_object_notify().
10737         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
10738         bug #108236.
10739
10740         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
10741         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
10742         functions return an integer value).
10743
10744 2003-03-13  Tor Lillqvist  <tml@iki.fi>
10745
10746         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10747         WM_MOUSEMOVE, the test whether we have actually moved (and thus
10748         shouldn't generate an GDK event) moved after the call to
10749         propagate() and translate_mouse_coords(). Otherwise we were
10750         testing wrong values. (#108115, Allin Cottrell)
10751         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
10752         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
10753
10754         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
10755         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
10756         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
10757         cursor right away with SetCursor(), as we won't get any
10758         WM_SETCURSOR messages while the mouse is captured. 
10759         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
10760         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
10761
10762         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
10763         WM_SYSCHAR, return FALSE from the window procedure to prevent the
10764         DefWindowProc from being called. Otherwise Windows would beep,
10765         thinking you are tring to access a (nonexistent) menu when you
10766         press Alt-something. Don't do this for Alt-Space,
10767         though. (#107454, Martyn Russell)
10768
10769         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
10770
10771 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
10772
10773         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
10774         [left/right] expands/collapses the tree, #108092
10775
10776 2003-03-09  Tor Lillqvist  <tml@iki.fi>
10777
10778         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
10779         compensate for LineTo() not drawing the end pixel. It causes more
10780         harm than benefits, see bug #81895.
10781
10782 2003-03-08  Matthias Clasen  <maclas@gmx.de>
10783
10784         Bug #107664 continued:
10785
10786         * gdk/x11/gdkinputprivate.h: 
10787         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
10788         (_gdk_input_other_event): Return gboolean.
10789         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
10790         (_gdk_input_other_event): Return gboolean.
10791         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
10792
10793         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
10794         gboolean, remove pointless call to _gdk_input_window_none_event.
10795
10796         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
10797         (_gdk_input_window_none_event): Remove.
10798
10799         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
10800         (_gtk_text_iter_get_any_segment): 
10801         (_gtk_text_iter_get_segment_byte): 
10802         (_gtk_text_iter_get_segment_char): 
10803         (_gtk_text_iter_get_text_line): 
10804         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
10805         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
10806         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
10807         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
10808         (gdk_window_get_origin): 
10809         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
10810
10811 2003-03-06  Matthias Clasen  <maclas@gmx.de>
10812
10813         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
10814         (#107664, Morten Welinder)
10815
10816         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
10817         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
10818         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
10819         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
10820
10821         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
10822         * gtk/gtkeditable.c (gtk_editable_get_chars): 
10823         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
10824         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
10825         (#107648, Morten Welinder)Fix NULL/FALSE confusion
10826         (#107648, Morten Welinder)
10827
10828 2003-03-04  Matthias Clasen  <maclas@gmx.de>
10829
10830         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
10831
10832 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
10833
10834         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
10835         handle rtl code.  Thanks to Matthias Clasen for an initial patch
10836         to handle the RTL code.
10837
10838         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
10839
10840         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
10841
10842         * gtk/gtktreeview.c: (invalidate_column),
10843         (invalidate_last_column),
10844         (gtk_tree_view_get_real_requested_width_from_column),
10845         (gtk_tree_view_size_allocate_columns),
10846         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
10847         (gtk_tree_view_button_release_drag_column),
10848         (gtk_tree_view_update_current_reorder),
10849         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
10850         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
10851         (gtk_tree_view_get_background_xrange),
10852         (gtk_tree_view_get_arrow_xrange),
10853         (gtk_tree_view_is_expander_column),
10854         (gtk_tree_view_set_column_drag_info),
10855         (gtk_tree_view_move_cursor_left_right):
10856         Add RTL support.
10857
10858         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
10859         expand flag.
10860
10861         * gtk/gtktreeviewcolumn.c:
10862         (gtk_tree_view_column_class_init),
10863         (gtk_tree_view_column_set_property),
10864         (gtk_tree_view_column_get_property),
10865         (gtk_tree_view_column_set_expand),
10866         (gtk_tree_view_column_get_expand),
10867         (gtk_tree_view_column_cell_process_action):
10868         Add support for expand flag.  Thanks to Kristian Rietveld for an
10869         initial patch for this.
10870
10871 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
10872
10873
10874 2003-03-02  Tor Lillqvist  <tml@iki.fi>
10875
10876         * gdk/gdk.def
10877         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
10878         Gustin.
10879
10880 2003-03-01  Matthias Clasen  <maclas@gmx.de>
10881
10882         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
10883         (gtk_scrolled_window_set_hadjustment): Replace uses of
10884         gtk_object_new by g_object_new.
10885
10886 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
10887
10888         * demos/gtk-demo/main.c
10889         * demos/gtk-demo/tree_store.c
10890         * gdk/x11/gdkscreen-x11.c
10891         * gtk/gtkcellrenderertoggle.c
10892         * gtk/gtkcolorsel.c
10893         * gtk/gtkdnd.c
10894         * gtk/gtkeditable.c
10895         * gtk/gtkentry.c
10896         * gtk/gtkmenu.c
10897         * gtk/gtkmenubar.c
10898         * gtk/gtkmenuitem.c
10899         * gtk/gtkmenushell.c
10900         * gtk/gtkrc.c
10901         * gtk/gtksettings.c
10902         * gtk/gtkstyle.c
10903         * gtk/gtktextbuffer.c
10904         * gtk/gtktextview.c
10905         * gtk/gtktreeviewcolumn.c
10906         * tests/testgtk.c
10907         * tests/testtext.c
10908         * tests/testtreeedit.c
10909         * tests/testtreefocus.c
10910         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
10911
10912 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
10913
10914         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
10915         code.
10916
10917 2003-02-24  Sven Neumann  <sven@gimp.org>
10918
10919         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
10920
10921 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
10922
10923         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
10924
10925 2003-02-20  Matthias Clasen  <maclas@gmx.de>
10926
10927         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
10928         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
10929
10930         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
10931         (gtk_text_view_update_adjustments): Make sure cursor stays visible
10932         during horizontal scrolling.  (#75270)
10933
10934 2003-02-19  Matthias Clasen  <maclas@gmx.de>
10935
10936         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
10937         counterparts. (#106532)
10938
10939         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
10940         keys_changed virtual function with the keys_changed signal.
10941         (#106512, Jeff Franks)
10942
10943 2003-02-15  Larry Ewing  <lewing@ximian.com>
10944
10945         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
10946
10947 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
10948
10949         * po/id.po: Added Indonesian translation
10950         * configure.in: Added "id" to ALL_LINGUAS
10951
10952 2003-02-14  Matthias Clasen  <maclas@gmx.de>
10953
10954         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
10955
10956 2003-02-12  Christian Rose  <menthos@menthos.com>
10957
10958         * configure.in: Added "yi" to ALL_LINGUAS.
10959
10960 2003-02-12  Matthias Clasen  <maclas@gmx.de>
10961
10962         Fix for #82734 and #78216:
10963         
10964         * gtk/gtktextview.c (delete_cb): 
10965         (select_all_cb): New callbacks for context menu items.
10966         (popup_targets_received): Add "Delete" and "Select All" to context
10967         menu, mnemonics and title caps for all items.
10968
10969         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
10970         context menu item.
10971         (popup_targets_received): Add "Delete" to context menu, mnemonics
10972         and title caps for all items.
10973
10974 2003-02-09  Tor Lillqvist  <tml@iki.fi>
10975
10976         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
10977         GetDriveType() to recognize removable drives (in order to avoid
10978         hanging if trying to access an empty floppy drive), instead of
10979         hardcoding A: and B: (#105654).
10980
10981 2003-02-09  Matthias Clasen  <maclas@gmx.de>
10982
10983         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
10984         names.  (#57680)
10985
10986 2003-02-09  Christian Rose  <menthos@menthos.com>
10987
10988         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
10989
10990 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
10991
10992         * gtk/gtkobject.c: remove quark_user_data usage in
10993         gtk_object_{g|s}et_user_data(). fixes get_user_data()
10994         returning NULL for user_data set through property interface.
10995
10996         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
10997         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
10998         need to be a programming error (in case of loaded data), (b) it breaks
10999         with 2.0 behaviour where extra magic could be used to create empty
11000         images. don't attempt to retrieve pixbufs from NULL extra_data.
11001
11002 2003-02-06  Matthias Clasen  <maclas@gmx.de>
11003
11004         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
11005         a GdkVisual *, not a GdkVisual **.  (#105243)
11006
11007         * gtk/gtkclist.c: 
11008         * gtk/gtkctree.c: 
11009         * gtk/gtkcontainer.c: 
11010         * gtk/gtkdnd.c: 
11011         * gtk/gtkentry.c: 
11012         * gtk/gtklist.c:
11013         * gtk/gtkmenu.c:
11014         * gtk/gtkmenuitem.c:
11015         * gtk/gtknotebook.c:
11016         * gtk/gtkselection.c:
11017         * gtk/gtkspinbutton.c:
11018         * gtk/gtktext.c:
11019         * gtk/gtktextview.c:
11020         * gtk/gtktooltips.c:
11021         * gtk/gtktreeview.c:
11022         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
11023         their non-deprecated GLib counterparts.
11024         
11025         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
11026         
11027 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
11028
11029         * docs/tutorial/gtk-tut.sgml: cleanups from
11030         Sebastian Rittau (#104832)
11031
11032 2003-02-01  Tor Lillqvist  <tml@iki.fi>
11033
11034         Merge from stable:
11035
11036         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
11037         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
11038         (#104108, Naofumi Yasufuku)
11039
11040         * gdk/gdk.def: Export the above. Export
11041         gdk_screen_get_system_visual, noticed by Ed Woods.
11042
11043 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
11044
11045         * demos/pixbuf-demo.c
11046         * demos/testpixbuf.c
11047         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
11048
11049 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
11050                                                                                 
11051         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
11052         on the tab_label before unparenting it, in case the unparent
11053         drops the refcount to 0.
11054
11055 2003-02-01  Matthias Clasen  <maclas@gmx.de>
11056
11057         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
11058         headers. Sorry about gtk_selection_clear, Yosh.
11059
11060 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
11061
11062         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
11063         too, for gtkwidget.c. Remember people, when introducing new
11064         deprecations, make sure internal code isn't using it, or if so,
11065         reorganize appropriately like I've done in other places.
11066
11067         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
11068
11069 2003-01-31  Matthias Clasen  <maclas@gmx.de>
11070
11071         * gtk/gtkselection.h: 
11072         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
11073
11074         * gdk/gdkpixbuf.h: 
11075         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
11076         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
11077
11078         * gtk/gtkcolorsel.h:
11079         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
11080         Deprecate.  (#98167)
11081
11082         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
11083
11084         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
11085         and gtk_input_* functions.  (#71596)
11086         
11087         * gtk/gtkentry.c (gtk_entry_move_cursor): 
11088         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
11089         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
11090
11091         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
11092
11093         * gtk/gtkitemfactory.h: 
11094         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
11095         (#69244)
11096
11097 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
11098
11099         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
11100         only count the special cell if it is also visible,
11101         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
11102         account from visible cells,
11103         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
11104         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
11105         tracking bug was #104563).
11106         
11107 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
11108
11109         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
11110         subtract expander space and focus line space from the extra space
11111         we are about the allocate. (Fixes #104635).
11112
11113 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
11114
11115         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
11116         (Fixes #96242, patch from Soeren Sandmann).
11117
11118 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
11119
11120         * gtk/gtknotebook.c: Patch from Soeren Sandmann
11121         to update the states of the tab label child
11122         widgets to match the state of the tabs. 
11123         (#93389, Reported by Tommi Komulainen)
11124
11125 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
11126
11127         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
11128         EXTRA_DIST, and from dist rules. (#102231)
11129
11130 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11131
11132         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
11133         function that sets the icon's and label's packing options and
11134         visibility based on toolbar->style.
11135
11136         (gtk_toolbar_internal_insert_element):
11137         (gtk_real_toolbar_style_changed): Make use of
11138         set_child_packing_and_visibility() to clean up the code and get
11139         the packing right for icon-only/text-only toolbars. (#104679)
11140
11141         (get_first_child): Remove, and use gtk_bin_get_child() instead.
11142
11143 2003-01-30  Matthias Clasen  <maclas@gmx.de>
11144
11145         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
11146         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
11147
11148         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
11149         
11150 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
11151
11152         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
11153         attempt-to-allocate then free code. To handle multiple
11154         people allocating colors at the same time, we need
11155         to just go ahead and try. (#102213, Shivram U)
11156         
11157 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
11158
11159         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
11160         rectangle using the background color rather than relying on
11161         gdk_window_clear_area(), so that the palette works properly with
11162         pixmap themes. (#101732)
11163
11164         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
11165         to fill the drawing area in the background color.
11166
11167 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
11168
11169         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
11170         initialization error for selecting input style (#103549).
11171
11172 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
11173
11174         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
11175         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
11176         (#101225)
11177
11178 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
11179
11180         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
11181         Make up from the menu bar go to the end of the submenu.
11182         (#96114, Ian Peters.)
11183
11184         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
11185         Only do the select-but-not-activate stuff if the
11186         menu is already active. Otherwise, just activate.
11187         (#101690, Arvind Samptur)
11188
11189 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
11190
11191         * autogen.sh (have_automake): Fix version in complaint
11192         message about automake. (#104366, Rich Burridge)
11193
11194 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
11195
11196         * configure.in: Remove SOEXT stuff; it doesn't work portably.
11197
11198 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
11199
11200         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
11201         we appended/prepended, send the rows_reordered signal to the 
11202         correct level ... (Reported by Matthew Tuck).
11203
11204 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
11205
11206         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
11207         out if the level only has one item, recurse over the child if there
11208         is one. (Fixes #100458, reported by Gaël Le Mignot).
11209
11210 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
11211
11212         * gtk/gtktreeview.c (gtk_tree_view_set_model),
11213         (gtk_tree_view_search_equal_func): make TreeView search handle
11214         all types which are transformable by GValue. (Fixes #99803, reported
11215         by Muktha Narayan).
11216
11217 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
11218
11219         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
11220         *really* handle unsetting the ID. Slightly modified patch from
11221         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
11222
11223 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
11224
11225         Fixes the total GtkTreeSortable mess, and #83195, reported by
11226         Jarek Dukat
11227
11228         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
11229         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
11230         (gtk_tree_store_set_default_sort_func): use the constant
11231         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
11232         work as advertised by the documentation.
11233
11234         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
11235         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
11236         (gtk_list_store_set_default_sort_func): likewise.
11237
11238         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
11239         (gtk_tree_model_set_sort_func),
11240         (gtk_tree_model_sort_set_default_sort_func): make functions work
11241         as advertised by the documentation.
11242
11243 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
11244
11245         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
11246         before we decide if we edit. (fixes #100973, reported by Dave Cook).
11247
11248 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
11249
11250         Bug report and test case from Paolo Maggi via IRC.
11251
11252         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
11253         (gtk_list_store_move): update tail if needed.
11254
11255 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
11256
11257         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
11258         might be NULL. Use gtk_widget_get_display (widget) 
11259         (#102860, Thomas Leonard)
11260
11261 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
11262
11263         * configure.in: Fix --without-modules/--disable-modules
11264         confusion that was causing --disable-modules not to work.
11265         (#102865, Akira Tagoh)
11266
11267         * configure.in: Fix problem with plain --with-xinput
11268         (#104266, Akira Tagoh)
11269
11270 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
11271
11272         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
11273         patch.
11274
11275 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
11276
11277         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
11278
11279 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
11280
11281         * docs/faq/gtk-faq.sgml: Learn to spell Library
11282
11283 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
11284         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
11285
11286            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
11287            Composite widget" to modern standards. (I.e. use gobject instead of
11288            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
11289
11290         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
11291         code in Appendix C to reflect above changes.
11292
11293         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
11294         auto resize on page size change
11295
11296 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
11297
11298         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
11299         in addition to show_all in order to keep them symmetric. (#102201)
11300
11301 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
11302
11303         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
11304         the end of the function, so there is a statement following the "out"
11305         label in all cases (fixes #101961)
11306
11307 2003-01-22  Christian Rose  <menthos@menthos.com>
11308
11309         * configure.in: Added "mn" to ALL_LINGUAS.
11310
11311 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
11312  
11313         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
11314         Fix off-by-one error on the backward iteration loop,
11315         that was causing the wrong range to be redrawn.
11316         (at least part of #72734)
11317         
11318 2003-01-21  Matthias Clasen  <maclas@gmx.de>
11319
11320         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
11321         vadjustment value after changing its bounds.  (fixes #101963 and 
11322         #73562)
11323
11324         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
11325         unnecessary roundtrip failures.  (#93500)
11326
11327 2003-01-19  Tor Lillqvist  <tml@iki.fi>
11328
11329         Merge from stable:
11330         
11331         Fix for #103614 and some other problems with GtkFileSelection on
11332         Windows:
11333                 
11334         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
11335         g_ascii_tolower(). Windows file names are case-insensitive for all
11336         Unicode letters.
11337
11338         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
11339         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
11340         earlier, as it includes config.h unconditionally, and gtkprivate.h
11341         redefines GTK_LOCALEDIR.
11342         (struct _CompletionDirSent): Ifdef out the fields not used on
11343         Windows.
11344         (compare_utf8_filenames, compare_sys_filenames): Need different
11345         comparison implementation for UTF-8 file names and system locale
11346         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
11347         need to casefold all Unicode letters.
11348         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
11349         variables not used on Win32 to avoid warnings about unused
11350         variables.
11351         (open_ref_dir): Use g_path_skip_root() to skip past potential
11352         drive letter in front of the leading (back)slash.
11353         (open_new_dir): Ifdef out use of CompletionDirSent fields not
11354         there on Win32.
11355         (correct_parent): Bypass inode check also on Cygwin.
11356
11357         Fix bug noticed by Alex Shaduri: Tooltips and other
11358         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
11359         was a regression from earlier versions.
11360         
11361         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
11362         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
11363         (gdk_window_move, gdk_window_resize): Add debug logging.
11364
11365         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
11366         WM_SIZE message for a non-visible (withdrawn) window, don't clear
11367         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
11368         even if its size changes.
11369
11370 2003-01-16  Matthias Clasen  <maclas@gmx.de>
11371
11372         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
11373         (totally_invisible_line): Fix an incorrect optimization which
11374         caused invisible paragraphs to be occasionally misrendered.
11375
11376 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
11377
11378         * gtk/gtksettings.c: Set the double click speed from
11379         XSETTINGS when creating a new GtkSettings object
11380         as well as when getting a notify. (#103601, reported
11381         by Louis Garcia)
11382
11383 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
11384  
11385         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
11386         Show/hide the notebook event window as necessary,
11387         we weren't previously keeping the visibility updated
11388         properly.  (#103599)
11389  
11390 2003-01-15  Matthias Clasen  <maclas@gmx.de>
11391
11392         * examples/menu/itemfactory.c: 
11393         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
11394         example.  (#103211)
11395
11396 2002-12-29  Murray Cumming  <murrayc@usa.net>
11397
11398         Fixes #102168.
11399
11400         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
11401         Actually implement the GtkTreeDragSource::row_draggable virtual 
11402         function in GtkListStore and GtkTreeStore instead of just checking 
11403         whether it's implemented at all. This means that DnD isn't broken by
11404         gtkmm's virtual function wrappers. The alternative would be to
11405         hard-code the TRUE return value into gtkmm's wrappers, but that's 
11406         part of GTK+'s implementation, not it's API.
11407
11408 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
11409
11410         * gtk/gtktreeview.c: fix compiler warning.
11411
11412 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
11413
11414         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11415         make sure exposed pixbufs are clipped to the exposed area before
11416         drawing, which is a slight speedup. (#102379, patch from Soeren
11417         Sandmann).
11418
11419 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
11420
11421         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
11422         only free scroll_to_path when the complete tree has been validated.
11423         This makes sure that we scrolled to the correct path.
11424
11425 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
11426
11427         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
11428         background of widget->window and bin->window. (Fixes #96650, reported
11429         by Dave Camp).
11430
11431 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
11432
11433         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
11434         updates before scrolling, avoiding a "selection streak". (Fixes
11435         #101235, patch from Soeren Sandmann).
11436
11437 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
11438
11439         * gtk/gtktreeview.c (validate_visible_area): actually put values
11440         in the requisition using gtk_widget_size_request. (Fixes #100172,
11441         reported by Kjartan Maraas).
11442
11443 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
11444
11445         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
11446         arrow animation timeout before we actually reorder the rbtree. If
11447         we don't do this we can get stuck arrows,
11448         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
11449         reported and testcase provided by Hans Petter Jansson).
11450
11451 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
11452
11453         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
11454         anchor_path should be start_path, not end_path. (Fixes #102618,
11455         patch from Carlos Garnacho Parro).
11456
11457 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
11458
11459         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
11460         only correct new_pos if we don't move to the head/tail.
11461
11462 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
11463
11464         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
11465         the parent_iter if depth >= 1, so we send the reordered signal to
11466         the correct level, remove debugging printfs which I forgot the remove
11467         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
11468         testcase provided by Matthew Tuck).
11469
11470 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
11471
11472         * gtk/gtktreeview.c (invalite_last_column): split out actual column
11473         invalidation into invalidate_column(),
11474         (gtk_tree_view_size_allocate_columns): invalidate column if the
11475         new width is larger than the old width.
11476         (fixes #102890, reported by Alex Duggan).
11477
11478 2003-01-14  Matthias Clasen  <maclas@gmx.de>
11479
11480         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
11481         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
11482         GTK_MOVEMENT_WORDS.
11483
11484         * gtk/gtktextiter.c,
11485         gtk/gtktextiter.h: Add some variant movement functions which
11486         skip invisible chars, and do some cleanups.
11487
11488 2003-01-12  Tor Lillqvist  <tml@iki.fi>
11489
11490         Merge from stable:
11491                 
11492         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
11493         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
11494         lookup.
11495
11496         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
11497         gdk.def.
11498
11499         * gdk/gdk.def
11500         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
11501
11502         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
11503         gtk-demo}.exe and share/gtk-2.0.
11504
11505         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
11506         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
11507         window style.
11508         (gdk_window_set_type_hint): Add all cases to the switch (not all
11509         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
11510         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
11511         won't know that the skip_taskbar hint is on for the window, is
11512         this bad?
11513
11514 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
11515
11516         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
11517         <string.h> for strlen.
11518
11519         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
11520         <string.h> for strrchr.
11521
11522         * tests/testgtk.c (create_saved_position): "x" and "y" properties
11523         for widgets no longer exist, use gtk_window_move instead.
11524
11525         * test/testtextbuffer.c (check_get_set_text): cast strlen to
11526         int for g_error.
11527
11528 2003-01-08  Matthias Clasen  <maclas@gmx.de>
11529
11530         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
11531         the selection in the presence of invisible segments.
11532
11533 2003-01-07  Matthias Clasen  <maclas@gmx.de>
11534
11535         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
11536         to "select all" and "unselect all".  (#102065)
11537
11538         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
11539         the just_selected_element is unused.
11540
11541         * gtk/gtktextview.c (extend_selection): New helper function to
11542         find the range that should be added to the selection. 
11543         (selection_motion_event_handler): 
11544         (gtk_text_view_start_selection_drag): 
11545         (gtk_text_view_end_selection_drag): 
11546         (selection_motion_event_handler): 
11547         (selection_scan_timeout): Support select-by-words/lines.
11548         (gtk_text_view_button_press_event): Start a selection drag on
11549         double/triple clicks.  (#78499)
11550
11551 2003-01-06  Matthias Clasen  <maclas@gmx.de>
11552
11553         Implement a utility function proposed in #102534:
11554         
11555         * gtk/gtktextbtree.h: 
11556         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
11557         (_gtk_text_btree_place_cursor): Now a simple wrapper around
11558         _gtk_text_btree_select_range().   
11559
11560         * gtk/gtktextbuffer.h: 
11561         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
11562         (gtk_text_buffer_place_cursor): Now a simple wrapper around
11563         gtk_text_buffer_select_range(). 
11564
11565 2003-01-05  Havoc Pennington  <hp@pobox.com>
11566
11567         * configure.in: fix a stray bracket that was breaking the build
11568
11569 2003-01-05  Tor Lillqvist  <tml@iki.fi>
11570
11571         * gtk-zip.sh.in: Use correct DLL and import library names, with
11572         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
11573         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
11574
11575         * configure.in: Improve check for dimm.h.
11576
11577         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
11578         gdk-pixbuf/Makefile.am.
11579
11580         * gdk-pixbuf/makefile.mingw.in
11581         * gdk-pixbuf/pixops/makefile.mingw.in
11582         * gdk/makefile.mingw.in
11583         * gdk/win32/makefile.mingw.in
11584         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
11585
11586         * gdk-pixbuf/Makefile.am
11587         * gdk-pixbuf/pixops/Makefile.am
11588         * gdk/Makefile.am
11589         * gdk/win32/Makefile.am
11590         * gtk/Makefile.am
11591         * configure.in: Remove makefile.mingw{,.in} from here, too.
11592         
11593         * README.win32: Updates. Don't mention the now removed
11594         makefile.mingw files.
11595
11596         * gdk/gdk.def
11597         * gtk/gtk.def: Add a couple of missing entries.
11598
11599         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
11600
11601         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
11602         earlier.
11603
11604         * gdk/win32/rc/Makefile.am: Add hack to help
11605         build/win32/lt-compile-resource decide which kind of libtool
11606         object file to produce.
11607
11608 2003-01-05  Matthias Clasen  <maclas@gmx.de>
11609
11610         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
11611         C-Down step through the sequence of paragraph ends (old behaviour
11612         included paragraph starts).  (#80340, patch by Narayana Pattipati)
11613
11614         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
11615         Check for a tag toggle at the start iterator before calling
11616         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
11617         Elstner)
11618
11619 2003-01-04  Matthias Clasen  <maclas@gmx.de>
11620
11621         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
11622         and /*< private >*/ as appropriate.  (#97211)
11623
11624 2003-01-04  Tor Lillqvist  <tml@iki.fi>
11625
11626         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
11627         distribute gtk-zip.sh.in.
11628
11629         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
11630
11631 2003-01-03  Havoc Pennington  <hp@pobox.com>
11632
11633         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
11634
11635         * docs/text_widget_internals.txt: add a file documenting some of
11636         the text widget internals
11637
11638 2003-01-02  Matthias Clasen  <maclas@gmx.de>
11639
11640         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
11641         return NULL.  (#102069)
11642
11643 2003-01-01  Matthias Clasen  <maclas@gmx.de>
11644
11645         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
11646         a main() in the library is obviously bad. 
11647
11648 2002-12-27  Matthias Clasen  <maclas@gmx.de>
11649
11650         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
11651         cursor at drop point.  (#72384)
11652         (gtk_text_view_size_allocate): Update the horizontal adjustment
11653         value.  (#75694)
11654
11655 2002-12-25  Matthias Clasen  <maclas@gmx.de>
11656
11657         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
11658         selection wrt. to empty lines.  (#90435, #90582, #91619)
11659
11660         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
11661         Keep the cursor on screen.  (#96929)
11662
11663 2002-12-24  Matthias Clasen  <maclas@gmx.de>
11664
11665         * gtk/gtktextbuffer.c (paste_from_buffer): 
11666         (clipboard_text_received): Let the user action span the insertion
11667         and the deletion of the old selection.  (#82844)
11668
11669 2002-12-23  Matthias Clasen  <maclas@gmx.de>
11670
11671         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
11672         Don't call gtk_text_iter_backward_sentence_start() if
11673         count is zero.  (#99115)
11674
11675         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
11676         move_cursor() even if the cursor hasn't moved, since it has the
11677         side effect of canceling the selection.  (#81395, #98537, #98333)
11678
11679 2002-12-22  Matthias Clasen  <maclas@gmx.de>
11680
11681         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
11682         with empty ranges.  (fixes #101564 and #80637)
11683
11684 2002-12-21  Tor Lillqvist  <tml@iki.fi>
11685
11686         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
11687         sets the window style and extended window style, and adjusts the
11688         width and height to take the window decorations into account
11689         earlier. The adjusted width and height used to be ignored. Remove
11690         the local x, y, width and height variables, no need to further
11691         confuse the code by having local copies. (Partial fix, I hope, for
11692         #101588)
11693
11694         (gdk_window_move): When moving top-level windows, take title bar
11695         and border width into account, offsetting the coordinates before
11696         calling SetWindowPos().
11697
11698         (gdk_window_set_decorations, gdk_window_set_functions):
11699         Reimplement, taking into account the peculiar semantics of
11700         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
11701
11702         (gdk_window_get_decorations): Implement. (#98981)
11703         
11704         (gdk_window_set_type_hint): When setting
11705         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
11706         (#79036)
11707
11708         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
11709
11710 2002-12-21  Matthias Clasen  <maclas@gmx.de>
11711
11712         * gtk/gtktextview.c (gtk_text_view_set_background): New static
11713         function to set the background of all windows.
11714         (gtk_text_view_style_set): Use gtk_text_view_set_background().
11715         (gtk_text_view_state_changed): New function; change background
11716         according to state.  (#88126)
11717
11718 2002-12-21  Havoc Pennington  <hp@pobox.com>
11719
11720         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
11721