]> Pileus Git - ~andy/gtk/blob - ChangeLog
Don't draw bevels around active, RELIEF_NONE buttons that aren't
[~andy/gtk] / ChangeLog
1 Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>
2
3         * gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
4         active, RELIEF_NONE buttons that aren't depressed. This improves
5         the appearance of buttons in notebook tabs.  (#109213, reported
6         by Benjamin Otte, patch by Rodney Dawes)
7
8 Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>
9
10         * demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
11         HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)
12
13 Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>
14
15         Fix for #104811, Padraig O'Briain:
16
17         * gtk/gtkscale.h:
18         * gtk/gtkscale.c (_gtk_scale_clear_layout): 
19         * gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
20         * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
21         text and its position from a GtkScale, to make it more accessible. 
22         * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
23         * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
24         new GtkScale vfunc.
25
26 Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>
27
28         * gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
29         Remove an extraneous + 1 (#134015, Torsten Schoenfeld)
30
31 Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>
32
33         * gtk/gtktooltips.h:
34         * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
35         function to improve the accessibility of tooltips.  (#114851, 
36         Padraig O'Briain)
37
38 Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>
39
40         * gtk/gtkcombobox.c (gtk_combo_box_popup): 
41         * gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
42         add docs.  (#132847)
43
44 Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>
45
46         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
47         gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.
48
49         * gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
50         gdk_property_get call instead of 0.
51
52         * docs/reference/gdk/tmpl/properties.sgml: Document the above
53         as GDK_NONE instead of simply 0.
54
55 Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
56
57         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
58         correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).
59
60 Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>
61
62         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
63         Correct the docs.
64
65 Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>
66
67         * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
68         gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
69         for automatic DND.  (#133485, Tommi Komulainen)
70
71 Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>
72
73         * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
74         debug output.
75
76 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
77
78         * gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
79         handler.  If no widget has the focus, try to give it to the
80         default widget.  If there is no default widget, give it to the
81         first button.  Fixes the cause for which #59707 was reopened.
82
83 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
84
85         Fixes #134051.
86
87         * gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
88         (icon_info_new): Don't initialize the ref_count field.
89
90 2004-02-11  Federico Mena Quintero  <federico@ximian.com>
91
92         * gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
93         the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
94         <kaffeetisch@gmx.de>.
95
96 Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>
97
98         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
99         focus [hv]adjustment correctly when the focus is located deeper
100         down in the hierarchy.  (#133489)
101
102 Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>
103
104         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
105         arbitrary low upper limits on the xpad, ypad, width and height
106         properties.  (#129696, John Ellis)
107
108 Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>
109
110         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
111         Ugh. Don't try to free ints, even if they're stored in pointers.
112         (#133997, Morten Welinder)
113
114 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
115
116         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
117         Free the filters.  Fixes #133547, patch by Morten Welinder
118         <mortenw@gnome.org>.
119
120 Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>
121
122         * gdk/x11/xsettings-client.c (read_settings): Avoid
123         triggering an X error when the client->manager_window
124         is None...makes logs look cleaner.
125
126         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
127         GDK_NONE to mean AnyPropertyType as documented. (Reported 
128         by Yu Shao)
129
130         * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
131         gdk_x11_screen_get_window_manager_name): Fix error trap
132         we've been leaking since 2002... (#129538)
133
134 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
135
136         Fixes the entry-related part of #133852.
137
138         * gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
139         the file part of the entry if the selected item is a folder.
140
141 2004-02-10  Federico Mena Quintero  <federico@ximian.com>
142
143         Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.
144
145         * tests/prop-editor.c (create_prop_editor): Free the title.
146         (object_changed): Free the children list.
147
148 Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>
149
150         * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
151         * gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
152         these functions.
153
154 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
155
156         * gtk/gtkfilechooserdefault.c (set_list_model): Request
157         GTK_FILE_INFO_ALL from the file system model, so that arbitrary
158         filtering will work.  Perhaps we should have a way of aggregating
159         info types to the model as filters get installed.
160
161 Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>
162
163         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
164         Ugh. Don't try to free ints, even if they're stored in pointers.
165
166 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
167
168         Fix #132256.
169
170         * gtk/gtkfilechooserdefault.c
171         (gtk_file_chooser_default_get_paths): Read the contents of the
172         filename entry in both OPEN and SAVE mode.  In multiple-selection
173         mode, add this to the selection from the file/folder list.
174         (struct get_paths_closure): Add a path_from_entry field.
175         (get_paths_foreach): Only add the iterated path if it is not the
176         same as the path from the entry.
177
178 2004-02-09  Federico Mena Quintero  <federico@ximian.com>
179
180         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
181         the folder is already open, add the requested info types to it.
182
183 Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>
184
185         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
186         type casts for the gtk_window_set_screen() call.
187
188 Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>
189
190         * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
191         come up on the same screen as the combo box.  (#133544, 
192         Morten Welinder)
193
194 Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>
195
196         * gtk/gtkfilechooserdefault.c (create_file_list): clean up the
197         packing of the file selector.
198
199 Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>
200
201         * gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
202         calls in array initializers, as some compilers seem to hate this.
203         (#133216, Jonas Jonsson)
204
205 Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>
206
207         * gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
208         by on-demand instantiating a singleton object with a "changed" 
209         signal. 
210
211         * gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
212         for GtkAccelMap::changed.
213
214 Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
215
216         * gtk/gtktextbtree.c (_gtk_text_btree_check): 
217         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
218         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
219         Actually free the lists. Pointed out by Morten Welinder.
220         
221 Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>
222
223         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
224         positions in UTF-8 strings correctly.  (#133315, Theppitak 
225         Karoonboonyanan)
226
227 2004-02-06  Morten Welinder  <terra@gnome.org>
228
229         * gtk/gtktoolbar.c (show_menu): Cleanup using
230         gtk_menu_attach_to_widget.  Also fixes leak, see #133411.
231
232 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
233
234         * gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
235         list.  Fixes #133546.
236
237 2004-02-06  Federico Mena Quintero  <federico@ximian.com>
238
239         Fix #132327.
240
241         * gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
242         folder_hash field to keep a list of live folder objects.
243         (gtk_file_system_unix_init): Create the folder_hash.
244         (gtk_file_system_unix_finalize): Destroy the folder_hash.
245         (gtk_file_system_unix_get_folder): Ref and return an existing
246         folder if we have it around, otherwise return a new folder object.
247         (struct _GtkFileFolderUnix): Add a field for the parent file system.
248         (gtk_file_folder_unix_finalize): Remove the folder from the file
249         system's hash table.
250         (gtk_file_system_unix_create_folder):  Emit "files-added" on the
251         newly-created folder's parent.  Fixes #132327.
252
253 Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>
254
255         * gtk/gtkstock.c (builtin_items): Change the labels of the 
256         ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
257         "Best _Fit", to be HIG compliant.  (#124080, Mariano 
258         Suárez-Alvarez)
259
260 Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>
261
262         * gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
263         function to plug a few memory leaks.  (#133544, Morten Welinder)
264
265 Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>
266
267         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
268         Support mnemonic_activate here as well.
269         
270         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
271         the button, not the tree_view.
272
273 Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>
274
275         * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
276         function, to make mnemonic_activate work for combo boxes.
277         (#133443, Paolo Borelli)
278
279 Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>
280
281         * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
282         to FALSE.  (#133539, Morten Welinder)
283
284 Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>
285
286         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
287         of the depth one check.  (#133488, Christian Persch)
288
289 Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>
290
291         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
292         the drawing of tearoff menu items which don't come first in their
293         menu.  (#33311)
294
295 Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>
296
297         * gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
298         g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)
299
300 2004-02-04  Federico Mena Quintero  <federico@ximian.com>
301
302         Fix #59707.
303
304         * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
305         the focus chain.
306         (gtk_label_button_press): Fix prototype.
307         (gtk_label_button_release): Likewise.
308         (gtk_label_motion): Likewise.
309
310         * tests/testgtk.c (create_message_dialog): For the dialog with
311         only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
312
313 2004-02-04  Morten Welinder  <terra@gnome.org>
314
315         * gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
316         bug 133411, apart from the leak.)
317
318 Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>
319
320         * gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
321         in g_object_new, since it depends on lower and upper being set.
322
323 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
324
325         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
326         window not resizable.  Fixes #114032.
327
328 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
329
330         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
331         documentation for the use_separator style property.
332
333 2004-02-03  Federico Mena Quintero  <federico@ximian.com>
334
335         Fix #68938.
336
337         * gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
338         GtkDialog; right now it only contains an ignore_separator field.
339         (gtk_dialog_class_init): Register the private structure.
340         (gtk_dialog_init): Initialize the priv->ignore_separator field.
341         (_gtk_dialog_set_ignore_separator): New private function.
342         (gtk_dialog_set_has_separator): Ignore the setting if appropriate.
343
344         * gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
345         use_separator style property.
346         (gtk_message_dialog_style_set): Change the dialog's separator
347         based on the style property.
348         (gtk_message_dialog_init): Set the dialog box to ignore the
349         separator setting.
350
351 Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
352
353         * gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
354         also dist gtkfilesystemwin32.[hc].
355
356 Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>
357
358         * gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
359         in rtl mode.  (#129071, chinen@jp.ibm.com)
360
361 Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>
362
363         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
364         meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
365         mode.  (#107528)
366
367 Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>
368
369         Clip narrow columns in rtl-oriented tree views (#128089,  
370         chinen@jp.ibm.com):
371         
372         * gtk/gtkstyle.c (gtk_default_draw_option): 
373         * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
374         given area.
375
376         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
377         Use the right clip area when calling gtk_cell_renderer_render().
378         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
379         Use the right clip area when calling gtk_paint_focus().
380         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
381         Use the right clip area when calling gtk_paint_toggle() or
382         gtk_paint_check().
383         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
384         Clip to the expose_area when drawing the background rectangle.
385         
386 Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
387
388         * gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
389         Use a weak reference instead of ref()/unref(). (#60857, reported
390         by Joshua N Pritikin)
391
392         * gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.
393
394 Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
395
396         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
397         init_hadjust_value and prev_width.
398         * gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
399         them here.
400         * gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
401         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
402         here to properly handle the initial position of rtl-oriented
403         tree views.  (#127581, chinen@jp.ibm.com)
404
405 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
406
407         Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
408
409         * gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
410         we handle an event in the colums, and FALSE at the end if the
411         event is not handled at all.
412
413 Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>
414
415         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
416         Don't access the level after removing the node, since that may
417         kill the level.  (#132615, Crispin Flowerday)
418
419 2004-02-02  Tor Lillqvist  <tml@iki.fi>
420
421         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
422         in all cases. If no grab cursor specified, use the grabbing
423         window's cursor. If the grabbing window has no cursor, use the
424         default arrow cursor. (#118025)
425
426 Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>
427
428         * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
429         latest in menu separation technology.
430
431 Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
432
433         * gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
434         we have to take our chances with).
435         
436         (Bug 97510)
437
438 Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
439
440         Fix bug 110224.
441
442         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
443         Remove unused variable 'result'
444
445         * gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.
446
447         * gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
448         here.
449
450 Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>
451
452         * configure.in po/uz*.po: changed default for Uzbek; now just "uz"
453         is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed
454
455 Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
456
457         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
458         sliding when using the new API.
459
460 Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
461
462         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
463         item_area is positioned correctly. Fix #133070, reported by Jeroen
464         Zwartepoorte.
465
466 Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>
467
468         * gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
469         crash when finalizing an unused GtkTextChildAnchor.  (#132260,
470         muppet)
471
472 Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>
473
474         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
475         the documentation for new_order.  (#124790, Tim-Philipp Müller)
476
477 Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>
478
479         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
480         Reset use_resized_width when setting fixed_width.  (#108612, 
481         Felipe Heidrich) 
482
483 Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>
484
485         * gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
486         GtkKeySnooperData.  (#132038, R. McFarland)
487
488 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
489
490         Fixes #132975.
491
492         * gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
493         not FALSE.
494         (gtk_file_system_volume_render_icon): Likewise.
495
496         * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
497         Likewise.
498
499         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
500         not FALSE.
501
502         * gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
503         FALSE.
504
505         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
506         not FALSE.
507         (gtk_text_iter_get_bytes_in_line): Likewise.
508
509         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
510         Likewise.
511
512         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
513         0.
514
515 2004-01-30  Not Zed  <NotZed@Ximian.com>
516
517         Fixes #132929.
518
519         * gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
520         handler when we clear the timeout id.
521
522 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
523
524         Fix #129872, based on a patch by Jan Arne Petersen
525         <jpetersen@uni-bonn.de>
526
527         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
528         Implement.
529         (gtk_file_system_unix_add_bookmark): Implement.
530         (gtk_file_system_unix_remove_bookmark): Implement.
531
532 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
533
534         Fixes #132693.
535
536         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
537         use filename_from_path().  Also, check that the filename is
538         absolute.
539         (gtk_file_system_unix_get_folder): Likewise.
540         (gtk_file_system_unix_create_folder): Likewise.
541         (gtk_file_system_unix_make_path): Likewise.
542         (gtk_file_system_unix_parse): Likewise.
543         (gtk_file_folder_unix_get_info): Likewise.
544         (filename_from_path): Removed.
545
546 2004-01-30  Federico Mena Quintero  <federico@ximian.com>
547
548         * gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
549         by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.
550
551 Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>
552
553         * gdk/x11/gdkdrawable-x11.c: Revert changes from
554         #113476 and go back to using XftDrawSetClip, because
555         XftDrawSetClipRectangles is buggy in XFree86-4.3.
556
557 Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>
558
559         * gtk/gtktextlayout.c (line_display_iter_to_index)
560         * gtk/gtktextlayout.c (line_display_index_to_iter): Only
561         adjust the preedit position for lines that include the
562         preedit string. (#132353, Yao Zhang). How the heck
563         did this work as well as it did?!?!
564
565         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
566         Reverse change to change of XNFilterEvents event mask from
567         #110493 -- it's documented and in the Xlib code an
568         unsigned long. 
569         
570         * modules/input/gtkimcontextxim.c (preedit_start_callback): 
571         Return -1 rather than void to indicate no length limit.
572         (#129548)
573
574 Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>
575
576         * gtk/gtkadjustment.c: Add properties to GtkAdjustment.
577         (#64601, Murray Cumming)
578
579 Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>
580
581         * gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
582         for strings to clear the list.  (#105386, Marco Pesenti Gritti)
583         
584 2004-01-28  Richard Hult  <richard@imendio.com>
585
586         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
587         Free font_desc.  Fixes #132805.
588
589 2004-01-29  Federico Mena Quintero  <federico@ximian.com>
590
591         * gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
592         Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
593         Fixes #132574.
594
595 Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>
596
597         * gtk/gtkselection.c (gtk_selection_default_handler): 
598         nul-terminate the target atoms. (#132656, Christian Persch)
599
600 Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>
601
602         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
603         Don't leak path if we bail out early.  (#132505, Christian Persch)
604
605 Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>
606
607         * gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
608         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
609         reference counting on the user_data that is shared between
610         multiple signal handlers, to avoid calling the destroy notify
611         multiple times.  (#132447, Adam Hooper)
612
613 2004-01-28  Hans Breuer  <hans@breuer.org>
614
615         * gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
616           gtk/gtkstock.[hc] : ... define ...
617           gtk/gtkiconfactory.c : ... register ...
618           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
619         * gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
620         IFace changes.
621
622         * gtk/gtk.def : added a bunch of new exported symbols
623
624         * tests/testfilechooser.c (no_backup_files_filter) : don't crash
625         on filter_info->display_name being NULL
626
627         * tests/testgtk.c : make testgtk --bench=all work again
628
629 Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>
630
631         * gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
632         Don't leak string.  (#132482, Christian Persch)
633
634 Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>
635
636         * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
637         1.8 won't whine at us.
638
639 2004-01-28  Tor Lillqvist  <tml@iki.fi>
640
641         * gdk/win32/gdkevents-win32.c (synthesize_leave_event,
642         synthesize_enter_event): Don' generate enter or leave events if
643         the pointer is grabbed with owner_events off, and the grab event
644         mask doesn't ask for them. (#129242)
645
646         (gdk_event_translate): Ditto for focus change events.
647
648 2004-01-27  Federico Mena Quintero  <federico@ximian.com>
649
650         Fix #132314.
651
652         * gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.
653
654         * gtk/gtkfilesystem.c: Likewise.
655
656         * gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
657         icon-type code.
658         (gtk_file_system_unix_render_icon): Moved the icon-rendering code
659         from GtkFileInfo to here.
660         (gtk_file_system_unix_volume_render_icon): Implement.
661
662 2004-01-28  Changwoo Ryu  <cwryu@debian.org>
663
664         * modules/input/imhangul-defs.h: 
665         * modules/input/imhangul.c:
666         * modules/input/Makefile.am: Remove broken hangul input module.
667         
668 Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
669
670         * gtk/gtktoolbar.c: Remove obsolete comment.
671
672         * gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
673         SPACE_LINE_END): Make separators wider and taller, so they are
674         easier to pick up when editing the toolbar.
675
676         * gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
677         a bit, 
678
679         * gtk/gtktoolbar.c (rect_within): Formatting fix
680
681         * gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
682         sliding feel more responsive by only restarting sliding when the
683         placeholder actually changes its goal allocation.
684
685 Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>
686
687         * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
688         compiler warning.  (#122725, Kjartan Maraas)
689         
690 Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>
691
692         Make menus work better on Xinerama (#126150):
693         
694         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
695         monitor_num on the screen of the menu, not of the attach widget.
696
697         * gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
698         (gtk_menu_window_size_request): Remember the monitor_num.
699
700 2004-01-26  Federico Mena Quintero  <federico@ximian.com>
701
702         Fix #105497; constify uses of GdkColor.
703
704         * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
705         (gdk_gc_set_rgb_bg_color): Constify.
706         (gdk_gc_set_foreground): Constify.
707
708         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
709         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
710         * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
711
712         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
713         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
714         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
715
716         * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
717         * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
718         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
719
720         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
721         (gdk_draw_layout_with_colors): Constify.
722
723         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
724         (gdk_pixmap_colormap_create_from_xpm): Constify.
725         (gdk_pixmap_create_from_xpm): Constify.
726         (gdk_pixmap_colormap_create_from_xpm_d): Constify.
727         (gdk_pixmap_create_from_xpm_d): Constify.
728
729         * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
730
731         * gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
732         (gtk_clist_set_background): Constify.
733
734         * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
735         (gtk_color_button_set_color): Constify.
736
737         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
738         Constify and add a check for color != NULL.
739         (gtk_color_selection_get_current_color): Add a check for color != NULL.
740         (gtk_color_selection_set_previous_color): Constify and add a check
741         for color != NULL.
742         (gtk_color_selection_get_previous_color): Add a check for color != NULL.
743
744         * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
745         (gtk_ctree_node_set_background): Constify.
746
747         * gtk/gtktext.c (gtk_text_insert): Constify.
748         (insert_text_property): Constify.
749         (text_properties_equal): Constify.
750         (new_text_property): Constify.
751
752         * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
753         (gtk_widget_modify_fg): Constify.
754         (gtk_widget_modify_bg): Constify.
755         (gtk_widget_modify_text): Constify.
756         (gtk_widget_modify_base): Constify.
757
758 2004-01-26  Christian Rose  <menthos@menthos.com>
759
760         * configure.in: Added "mi" to ALL_LINGUAS.
761
762 2004-01-25  Tor Lillqvist  <tml@iki.fi>
763
764         * gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
765         WM_TRANSIENT_FOR property is being deleted, set the owner of the
766         window to the root window (i.e., effectively unset it). (#132411)
767
768         * gdk/win32/gdkprivate-win32.h
769         * gdk/win32/gdkglobals-win32.c
770         * gdk/win32/gdkmain-win32.c: Declare, define and initialize
771         _wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
772
773         * acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
774
775 Sun Jan 25 15:14:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
776
777         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Base the decision
778         to map/unmap items on whether they are actually allocated outside
779         the toolbar, not on whether that will eventually happen. Improves
780         animation in the presence of overflown items.
781
782         * gtk/gtktoolbar.c (gtk_toolbar_begin_sliding): Add a
783         queue_resize() to so that the items will get their new goal
784         values and the idle handler will not immediately return FALSE.
785
786         * gtk/gtktoolbar.c (slide_idle_handler): simplify the logic and
787         make sure that a placeholder becoming invisible doesn't cause a
788         return TRUE.
789
790         * gtk/gtktoolbar.c (get_item_size): Don't special case
791         placeholders here.
792
793 Sat Jan 24 23:17:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
794
795         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): Only
796         try to pack icon if there actually is one.
797
798         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
799         OVERFLOWN items get an allocation even when they are
800         unmapped. This ensures they will slide in properly.
801
802         * gtk/gtktoolbar.c (slide_idle_handler): Make sure we return TRUE
803         when there are overflown items that need to slide in. Also add
804         comments and make formatting more readable.
805
806 Sat Jan 24 17:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
807
808         * gtk/gtkradiotoolbutton.c (gtk_radio_tool_button_class_init):
809         Add a write-only property ::group to be consistent with
810         GtkRadioAction and GtkRadioButton. (#132159, Patch from Olivier
811         Andrieu)
812
813 Fri Jan 23 23:46:12 2004  Matthias Clasen  <maclas@gmx.de>
814
815         * gtk/gtkfontbutton.c (gtk_font_button_label_use_font): Don't leak the 
816         font description.  (#132168)
817
818 2004-01-23  Federico Mena Quintero  <federico@ximian.com>
819
820         Fix #132247.
821
822         * gtk/gtkfilechooserdefault.c (set_select_multiple): Handle folder
823         mode.
824         (set_select_multiple): Optionally notify about changes to the
825         select-multiple property.
826         (list_selection_changed): Change the condition for the editable row to
827         test for save mode; this is more clear than testing for not being
828         in multiple selection mode.
829         (gtk_file_chooser_default_get_paths): Get impl->action directly
830         rather than calling gtk_file_chooser_get_action().
831         (entry_activate): Likewise.
832         (set_select_multiple): Annotate about #133255.
833         (update_chooser_entry): Likewise.
834         (check_preview_change): Likewise.
835         (tree_selection_changed): Likewise.
836
837 Fri Jan 23 14:56:18 2004  Jonathan Blandford  <jrb@gnome.org>
838
839         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Don't crash
840         when there are no columns, or all columns are hidden, #131402
841
842 Fri Jan 23 16:58:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
843
844         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): Changing to 200 was a
845         mistake. Change back to 225.
846
847 Thu Jan 22 18:46:05 2004  Owen Taylor  <otaylor@redhat.com>
848
849         * === Released 2.3.2 ===
850
851 Thu Jan 22 18:45:26 2004  Owen Taylor  <otaylor@redhat.com>
852
853         * gtk/gtkicontheme.c: Patch from Christian Neumair
854         to make warning string more translator friendly.
855
856         * gtk/gtktreemodelfilter.h gtkseparatortoolitem.[ch]
857         gtk/gtktoolbar.c: Parameter name fixes to keep gtk-doc
858         happy.
859
860         * configure.in: Require GLib-2.3.2, version 2.3.2,
861         interface age 0, binary age 302.
862
863         * NEWS: Organized, added some names.
864
865 Thu Jan 22 16:59:36 2004  Jonathan Blandford  <jrb@gnome.org>
866
867         * gtk/gtkliststore.c (gtk_list_store_reorder): Doc fix.
868
869 2004-01-22  Federico Mena Quintero  <federico@ximian.com>
870
871         * gtk/gtkwidget.c (gtk_widget_class_init): Added documentation for
872         GtkWidget::popup_menu.
873
874 Thu Jan 22 21:45:24 2004  Matthias Clasen  <maclas@gmx.de>
875
876         * gtk/gtkmenu.c (gtk_menu_remove): Remove the attach 
877         info after calling gtk_menu_do_remove(), since that function
878         uses the attach info. Doh!
879
880         * gtk/gtkmenu.c (gtk_menu_do_remove): Don't check priv->columns 
881         for being 1 directly after setting it to 0.
882
883 Thu Jan 22 21:38:52 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
884
885         * NEWS: Updates
886
887 2004-01-22  Alexander Larsson  <alexl@redhat.com>
888
889         * gdk/x11/gdkwindow-x11.c (WINDOW_IS_TOPLEVEL):
890         Fix typo
891
892 2004-01-21  Federico Mena Quintero  <federico@ximian.com>
893
894         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
895         Free the path fields.
896
897         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): Free
898         the root_path, reported by <scott@asofyet.org>
899         (gtk_file_system_model_finalize): Unref the file system.
900
901         * gtk/gtkfilefilter.c (filter_rule_free): default:
902         g_assert_not_reached().
903         (gtk_file_filter_finalize): Free the filter->name, reported by
904         <scott@asofyet.org>
905         (gtk_file_filter_finalize): Free the rules list.
906
907 Wed Jan 21 18:10:40 2004  Jonathan Blandford  <jrb@gnome.org>
908
909         * gtk/gtkcolorbutton.c (gtk_color_button_set_color):redraw the
910         color button when an alpha is set.
911         (gtk_color_button_set_alpha): redraw the color button when an
912         alpha is set.
913
914 Wed Jan 21 23:27:14 2004  Matthias Clasen  <maclas@gmx.de>
915
916         Fix #131869: 
917         
918         * gtk/gtkaction.c (_gtk_action_emit_activate): Hold
919         a reference to the group while emitting the signals.
920
921         * gtk/gtkactiongroup.c (gtk_action_group_init): Use a 
922         destroy notify which does not only unref, but also resets
923         the action_group property of the action.
924
925 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
926
927         * NEWS: Added details about GtkFileChooser changes.
928
929 2004-01-20  Federico Mena Quintero  <federico@ximian.com>
930
931         Fix #99425, add accessor functions for GtkPaned's children.
932
933         * gtk/gtkpaned.c (gtk_paned_get_child1): New function.
934         (gtk_paned_get_child2): New function.
935
936 Tue Jan 20 23:49:52 2004  Matthias Clasen  <maclas@gmx.de>
937
938         * NEWS: Start of 2.3.2 section.
939
940 Tue Jan 20 22:11:31 2004  Matthias Clasen  <maclas@gmx.de>
941
942         Fixes for #130370, based on a patch by Michael Meeks:
943         
944         * gtk/gtkmenu.c (gtk_menu_do_remove): New auxiliary function to
945         adjust cell positions and recalculate row and column counts after
946         removing an item.
947
948         * gtk/gtkmenu.c (gtk_menu_remove): Call gtk_menu_do_remove.
949
950         * gtk/gtkmenu.c (gtk_menu_do_insert): Don't leave empty rows when
951         appending items.
952
953         * gtk/gtkmenu.c (gtk_menu_attach): Don't call gtk_menu_shell_append,
954         to avoid an unintended recursion.
955
956 2004-01-19  Federico Mena Quintero  <federico@ximian.com>
957
958         Fix #131418.
959
960         * gtk/gtkfilechooserdefault.c (set_select_multiple): New helper
961         function.
962         (gtk_file_chooser_default_set_property): Use
963         set_select_multiple().  Also, re-set this mode to single if the
964         file chooser is set to Save mode.
965         (entry_activate): Handle the case where the entry is completely
966         empty *and* its current folder does exist.  Also, there is need to
967         test for select_multiple here now that we ensure that it won't
968         happen during Save mode.
969
970 Sun Jan 18 15:25:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
971
972         * gtk/gtktoolbar.[ch]: Add _gtk_toolbar_paint_space_line(),
973         _gtk_toolbar_get_default_space_size ();
974
975         * gtk/gtkseparatortoolitem.c (gtk_separator_tool_item_expose,
976         get_space_size): Use them here.
977
978 Sun Jan 18 13:16:34 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
979
980         * tests/testgtk.c (create_toolbar): Set a small size request and
981         make the window resizable, to test mapping/unmapping of buttons.
982
983         * gtk/gtktoolbar.c (gtk_toolbar_remove_content,
984         gtk_toolbar_insert_tool_item): remove these functions.
985
986         * gtk/gtktoolbar.c (gtk_toolbar_show_all,
987         toolbar_content_show_all, gtk_toolbar_hide_all,
988         toolbar_content_hide_all): New functions. 
989
990         Ignore show_all/hide_all for buttons created in compatibility mode.
991
992         * gtk/gtktoolbar.c (internal_insert_element, gtk_toolbar_show_all,
993         gtk_toolbar_hide_all): Make sure buttons are ignored by
994         gtk_toolbar_show_all() and gtk_toolbar_hide_all().
995         
996         * gtk/gtktoolbar.c: s/regular_widget/compatibility/g
997
998         * gtk/gtktoolbar.c (struct _ToolbarContent): Allocate
999         GtkToolbarChild inline. Get rid of GtkToolbarChildSpace.
1000
1001         * gtk/gtktoolbar.c (toolbar_content_expose): Fix bug where widget
1002         could become NULL.
1003
1004         * gtk/gtktoolbar.c (gtk_toolbar_add): Append new tool items
1005         instead of prepending them.
1006
1007         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Use the same
1008         'elapsed' for all items.
1009
1010         * gtk/gtktoolbar.c (struct _GtkToolbarPrivate): Turn booleans
1011         into bitfields.
1012
1013         * gtk/gtktoolbar.c: Many formatting fixes
1014         
1015 Sun Jan 18 01:51:12 2004  Matthias Clasen  <maclas@gmx.de>
1016
1017         * configure.in: Add the necessary magic to create
1018         po-properties/Makefile.
1019
1020 Sat Jan 17 23:05:52 2004  Matthias Clasen  <maclas@gmx.de>
1021
1022         The second part of the fix for #114351 (see also 
1023         gdk-pixbuf/ChangeLog and po/ChangeLog):
1024
1025         * Makefile.am (SUBDIRS): Add po-properties.
1026
1027         * configure.in (AC_CONFIG_FILES): Add po-properties/Makefile.in 
1028
1029         * gdk/gdkintl.h (P_): 
1030         * gtk/gtkintl.h (P_): Use translation domain gtk20-properties. 
1031
1032         * gtk/gtkmain.c (gtk_parse_args): Call bindtextdomain and
1033         bind_textdomain_codeset for gtk20-properties as well.
1034
1035 Sat Jan 17 22:00:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1036
1037         * gtk/gtktoolbar.c: 
1038
1039         Fix rest of #128678: Implement all the toolbar_content()
1040         methods for the old API case.
1041
1042 Sat Jan 17 16:53:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1043
1044         * gtk/gtktoolbar.c: 
1045
1046         Phase 1 of fixing #128678: Only access ToolbarContent through a
1047         set of new functions:
1048
1049         toolbar_content_expose, toolbar_content_visible,
1050         toolbar_content_size_request, toolbar_content_is_homogeneous,
1051         toolbar_content_get_child_requisition,
1052         toolbar_content_is_placeholder, toolbar_content_disappearing,
1053         toolbar_content_get_state, toolbar_content_child_visible,
1054         toolbar_content_get_goal_allocation,
1055         toolbar_content_get_allocation,
1056         toolbar_content_set_start_allocation,
1057         toolbar_content_get_start_allocation, toolbar_content_get_expand,
1058         toolbar_content_set_goal_allocation,
1059         toolbar_content_set_child_visible, toolbar_content_size_allocate,
1060         toolbar_content_set_state, toolbar_content_get_widget,
1061         toolbar_content_set_disappearing,
1062         toolbar_content_set_size_request,
1063         toolbar_content_toolbar_reconfigured,
1064         toolbar_content_retrieve_menu_item, 
1065         toolbar_content_new_tool_item, toolbar_content_destroy,
1066         toolbar_content_is_separator
1067
1068         Also fix #127092.
1069         
1070 Sat Jan 17 12:55:13 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1071
1072         * gtk/gtktoolitem.c (gtk_tool_item_finalize): don't leak the menu
1073         item ID.
1074
1075 Sat Jan 17 12:37:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1076
1077         * gtk/gtktoolbar.c (gtk_toolbar_finalize): Don't leak the
1078         overflow menu.
1079         
1080         * gtk/gtktoolbar.h (struct _GtkToolbar): Make some fields public. 
1081         [#127726]
1082
1083 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
1084
1085         * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a
1086         has_editable field.
1087         (_gtk_file_system_model_add_editable): New function.
1088         (_gtk_file_system_model_remove_editable): New function.
1089         (gtk_file_system_model_get_value): Return appropriate values for
1090         the temporary editable row.
1091         (_gtk_file_system_model_get_info): Handle the editable row.
1092         (_gtk_file_system_model_get_path): Likewise.
1093
1094         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks):
1095         Removed an unused variable.
1096         (toolbar_button_new): Optionally show the button.
1097         (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype.
1098         (toolbar_create): Add a "New Folder" button for Save mode.
1099         (error_building_filename_dialog): New helper function.
1100         (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog().
1101         (create_file_list): Connect to the "edited" signal of the text
1102         cell renderer.  Store the name column and text renderer in the
1103         impl structure.
1104         (renderer_edited_cb): New callback.
1105         (gtk_file_chooser_default_set_property): Show/hide the "New
1106         folder" button when the save action changes.
1107         (COMPARE_DIRECTORIES): Allow the info values to be NULL.
1108         (COMPARE_DIRECTORIES): Duh, use the list_model, not the
1109         tree_model.
1110         (get_list_file_info): Likewise!
1111         (list_icon_data_func): Handle the path being NULL.
1112         (new_folder_button_clicked): New callback.
1113         (list_name_data_func): If we are on the editable row, set the text
1114         to "Type name of new folder".
1115         (list_selection_changed): Handle the editable row.
1116         (list_mtime_data_func): Likewise.
1117
1118         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return
1119         NULL, not FALSE.
1120         (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
1121
1122 Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
1123
1124         The first part of the fix for #114351 (see also 
1125         gdk-pixbuf/ChangeLog and po/ChangeLog):
1126         
1127         * gtk/gtkintl.h: 
1128         * gdk/gdkintl.h: Define P_() for property blurbs and nicks.
1129
1130         * gdk/gdkdisplaymanager.c:
1131         * modules/input/gtkimcontextxim.c:
1132         * gtk/*.c:  Mark property blurbs and nicks with P_().
1133         
1134 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
1135
1136         Fix #130969.
1137
1138         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an
1139         editing_canceled signal.
1140
1141         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the
1142         "editing-canceled" signal.
1143         (gtk_cell_renderer_editing_canceled): New function.
1144
1145         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
1146         Call gtk_cell_renderer_editing_canceled().
1147
1148 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
1149
1150         * gtk/gtkfilechooserdefault.c
1151         (gtk_file_chooser_default_set_property): Do not allow setting
1152         select_multiple when in Save mode.
1153         (set_list_model): No need to nullify the list_model and
1154         sort_model.
1155         (gtk_file_chooser_default_get_paths): Handle folder mode as well.
1156         (get_paths_foreach): Likewise.
1157
1158         * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Clarify
1159         documentation about folder mode.
1160         (gtk_file_chooser_get_uri): Likewise.
1161
1162 2004-01-16  Federico Mena Quintero  <federico@ximian.com>
1163
1164         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
1165         get_volume_for_path() method.
1166         (struct _GtkFileSystemIface): Finally removed the list_roots() and
1167         get_root_info() methods, and the "roots-changed" signal.
1168
1169         * gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
1170         function.
1171         (gtk_file_system_list_roots): Removed.
1172         (gtk_file_system_get_root_info): Removed.
1173
1174         * gtk/gtkfilesystemunix.c
1175         (gtk_file_system_unix_get_volume_for_path): Implement.
1176         (get_root_volume): New helper function.
1177         (gtk_file_system_unix_list_volumes): Use get_root_volume().
1178         (gtk_file_system_unix_list_roots): Removed.
1179         (gtk_file_system_unix_get_root_info): Removed.
1180
1181         * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
1182         accept a NULL root_path.
1183         (struct _GtkFileSystemModel): Add a field to remember the
1184         root_path.
1185         (_gtk_file_system_model_new): Store the root_path in the model
1186         structure.
1187         (find_and_ref_path): Stop going up the hierarchy at the root_path
1188         of the model.  Also, don't return prematurely when walking up the
1189         hierarchy.
1190
1191         * gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
1192         the rules_hint.
1193         (struct _GtkFileChooserDefault): Added a current_volume_path field.
1194         (set_tree_model): New function; create the folder tree model here.
1195         (create_folder_tree): Don't create the model here.
1196         (set_list_model): Set the show_hidden flag on the list model.
1197
1198 Fri Jan 16 00:04:43 2004  Matthias Clasen  <maclas@gmx.de>
1199
1200         * gtk/gtknotebook.h:
1201         * gtk/gtknotebook.c (gtk_notebook_append_page): 
1202         * gtk/gtknotebook.c (gtk_notebook_append_page_menu): 
1203         * gtk/gtknotebook.c (gtk_notebook_prepend_page): 
1204         * gtk/gtknotebook.c (gtk_notebook_prepend_page_menu): 
1205         * gtk/gtknotebook.c (gtk_notebook_insert_page): 
1206         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Return the
1207         index of the newly inserted page.  (#130986, Olexiy Avramchenko) 
1208
1209 Thu Jan 15 23:17:14 2004  Matthias Clasen  <maclas@gmx.de>
1210
1211         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Inserting
1212         a 'newly-allocated' to hint that the list should be freed after
1213         use.
1214
1215 Wed Jan 14 18:01:52 2004  Jonathan Blandford  <jrb@gnome.org>
1216
1217         * gtk/gtktreeview.c (gtk_tree_view_button_press): move grab_focus
1218         to after handling the button presses in the TreeView to avoid
1219         getting multiple selection_changes()
1220
1221 Wed Jan 14 21:16:20 2004  Matthias Clasen  <maclas@gmx.de>
1222
1223         * gtk/gtkimcontext.c: Documentation fix.  (#131335, Theppitak 
1224         Karoonboonyanan)
1225
1226 Wed Jan 14 21:00:49 2004  Matthias Clasen  <maclas@gmx.de>
1227
1228         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
1229         Don't leak name and stock_id.  (#131358, Morten Welinder)
1230
1231 Wed Jan 14 13:07:30 GMT 2004  Tony Gale <gale@gtk.org>
1232
1233         * docs/faq/gtk-faq.sgml: Updates to Section 5
1234
1235 Wed Jan 14 02:34:57 2004  Matthias Clasen  <maclas@gmx.de>
1236
1237         * gtk/gtkradioaction.c: Add a writable group property to align
1238         with the GtkRadioButton API.  (#129166, Olivier Andrieu) 
1239
1240 Tue Jan 13 14:48:27 GMT 2004  Tony Gale <gale@gtk.org>
1241
1242         * docs/faq/gtk-faq.sgml: Update info on using autoconf
1243
1244 Mon Jan 12 23:40:34 2004  Matthias Clasen  <maclas@gmx.de>
1245
1246         * tests/testmerge.c: Adjust to the new connect_proxy signals.
1247
1248         * gtk/gtkuimanager.c
1249         * gtk/gtkactiongroup.c
1250         * gtk/gtkaction.c: Move the connect_proxy and disconnect_proxy signals
1251         from GtkAction to GtkActionGroup and proxy it on GtkUIManager. This
1252         removes the confusion between the disconnect_/connect_proxy signals 
1253         and the (unrelated) virtual functions of the same name and aligns
1254         the setup with the pre_/post_activate signals.
1255
1256 2004-01-12  Jody Goldberg <jody@gnome.org>
1257
1258         * gtk/gtkaction.c (connect_proxy) : only connect activate for menus
1259           with no submenus otherwise it looks like we activate every time a
1260           submenu opens.
1261
1262 2004-01-12  Jody Goldberg <jody@gnome.org>
1263
1264         * gtk/gtkuimanager.c: Remove accidentially committed debug spew.
1265
1266 Sun Jan 11 01:55:07 2004  Matthias Clasen  <maclas@gmx.de>
1267
1268         * gtk/gtkaccelmap.c: Remove accidentally committed notification stuff. 
1269         (gtk_accel_map_lock_path): 
1270         (gtk_accel_map_unlock_path): Path locking can now be nested, a missing
1271         entry is silently created during lock_path(), and treated as an error 
1272         during unlock_path(). These changes have been requested by Tim Janik.
1273
1274 2004-01-10  Jody Goldberg <jody@gnome.org>
1275
1276         * gtk/gtkuimanager.c (d) : Add a debug macro to quiet the spew.
1277         s/merge_signals/ui_manager_signals/ for readability.
1278         (gtk_ui_manager_class_init) : add pre_activate and post_activate
1279           signals.
1280         (cb_proxy_pre_activate) : new.
1281         (cb_proxy_post_activate) : new.
1282         (gtk_ui_manager_insert_action_group) : connect the proxies for
1283           GtkActionGroup::pre/post_activate
1284         (gtk_ui_manager_remove_action_group) : disconnect them.
1285
1286         * gtk/gtkactiongroup.c (gtk_action_group_class_init) : add
1287           'sensitive', and 'visible' properties.  Also add pre_activate and
1288           post_activate signals to help deal with activations at a higher
1289           level (eg GtkUIManager)
1290         (gtk_action_group_init) : init sensitive and visible
1291         (gtk_action_group_set_property) : add sensitive and visible
1292         (gtk_action_group_get_property) : add sensitive and visible
1293         (gtk_action_group_get_sensitive) : new.
1294         (gtk_action_group_get_visible) : new.
1295         (cb_set_action_sensitivity) : new with minor optimization that only
1296           signals sensitivity changes if the action could possibly change.
1297         (cb_set_action_visiblility) : ditto.
1298         (gtk_action_group_set_sensitive) : new.  walk the actions directly
1299           rather than using notify::sensitive because that is simpler, easier
1300           to read, and more efficient.
1301         (gtk_action_group_set_visible) : ditto.
1302         (gtk_action_group_add_action) : Each action can only be in 1 group,
1303           set GtkAction::action_group.
1304         (gtk_action_group_remove_action) : clear it.
1305         (gtk_action_group_add_toggle_actions_full) : warning suppression.
1306         (gtk_action_group_add_radio_actions_full) : warning suppression.
1307         (_gtk_action_group_emit_pre_activate) : new protected routine for use
1308           by GtkAction.
1309         (_gtk_action_group_emit_post_activate) : ditto.
1310
1311         * gtk/gtkaction.c (gtk_action_class_init) : add 'action_group' property.
1312         (gtk_action_init) : initialize it.
1313         (gtk_action_get_property) : get.
1314         (gtk_action_set_property) : set it via
1315         (gtk_action_set_action_group) : new function.
1316         (gtk_action_sync_sensitivity) : new routine to sync proxy sensitivity
1317           with the logical sensitivity (action & group) rather than the simple
1318           action::sensitivity.
1319         (gtk_action_sync_visible) : use gtk_action_is_visible to handle
1320           logical visibility (action & group) rather than the simple
1321           action::visible.  Use widget show/hide directly.
1322         (connect_proxy) : handle the custom sensitivity handler.
1323           Make the TOOL_BUTTON signals more general and support TOOL_ITEM
1324           directly, with special cases for TOOL_BUTTON.  Still not especially
1325           good it might be useful to handle label/use_underline by parmspec
1326           lookup.  Those are likely to be implemented by custom types, and are
1327           assumed to exist in GtkToolItem.
1328         (disconnect_proxy) : disconnect the new sensitivity handler.
1329         (_gtk_action_emit_activate) : add pre/post signals.
1330         (gtk_action_activate) : use logical sensitivity.
1331         (gtk_action_is_sensitive) : logical sensitivity.
1332         (gtk_action_get_sensitive) : actual sensitivity.
1333         (closure_accel_activate) : use logical sensitivity.
1334
1335 Fri Jan  9 22:23:45 2004  Matthias Clasen  <maclas@gmx.de>
1336
1337         * gtk/gtkuimanager.c: Introduce a new parser state for 
1338         accelerator elements to avoid misparsing files containing 
1339         such elements.  (#131035, Morten Welinder)
1340
1341 Fri Jan  9 11:58:47 2004  Manish Singh  <yosh@gimp.org>
1342
1343         * gdk-pixbuf/gdk-pixbuf-io.c: #include <unistd.h> for unlink()
1344
1345 Fri Jan  9 15:28:21 GMT 2004  Tony Gale <gale@gtk.org>
1346
1347         * docs/faq/gtk-faq.sgml: update GtkEntry filter code example
1348
1349 Fri Jan  9 00:34:57 2004  Matthias Clasen  <maclas@gmx.de>
1350
1351         * gtk/gtkuimanager.h:
1352         * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): New function to
1353         obtain a list of toplevel widgets constructed by the ui manager.
1354
1355         * gtk/gtkuimanager.h (GtkUIManagerItemType): Change to flags, so that 
1356         the values can be combined for gtk_ui_manager_get_toplevels().
1357
1358         * tests/testmerge.c: Add a "Dump toplevels" button to test 
1359         gtk_ui_manager_get_toplevels().
1360
1361 Wed Jan  7 23:20:06 2004  Matthias Clasen  <maclas@gmx.de>
1362
1363         * demos/gtk-demo/Makefile.am (demos): Add entry_completion.c
1364         
1365         * demos/gtk-demo/entry_completion.c: New demo for GtkEntryCompletion 
1366         by Anders Carlsson  (#130464).
1367
1368 Wed Jan  7 23:07:28 2004  Matthias Clasen  <maclas@gmx.de>
1369
1370         * gtk/gtkmain.h: 
1371         * gtk/gtkmain.c (gtk_events_pending): Change the return value from 
1372         gint to gboolean.  (#130718, reported by Johannes Weißl)
1373
1374 Wed Jan  7 23:03:32 2004  Matthias Clasen  <maclas@gmx.de>
1375
1376         * gtk/gtkactiongroup.h: 
1377         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
1378         Remove the redundant name and stock_id parameters, adjust all callers.
1379
1380 Wed Jan  7 22:20:20 2004  Matthias Clasen  <maclas@gmx.de>
1381
1382         * gtk/gtkaction.h: 
1383         * gtk/gtkaction.c (gtk_action_new):  
1384         * gtk/gtktoggleaction.h: 
1385         * gtk/gtktoggleaction.c (gtk_toggle_action_new): 
1386         * gtk/gtkradioaction.h: 
1387         * gtk/gtkradioaction.c (gtk_radio_action_new): Add creation 
1388         functions for actions.
1389
1390         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
1391         (gtk_action_group_add_toggle_actions_full): 
1392         (gtk_action_group_add_radio_actions_full): and use the
1393         new functions here.  (#125322, Patch by Jeff Frank)
1394
1395 Wed Jan  7 21:42:49 2004  Matthias Clasen  <maclas@gmx.de>
1396
1397         * gtk/gtkaccelmap.c (gtk_accel_map_lock_path): Fix grammar of 
1398         docs.
1399
1400 2004-01-07  Jan Arne Petersen  <jpetersen@uni-bonn.de>
1401
1402         * gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
1403         (shortcuts_append_home), (shortcuts_append_desktop),
1404         (shortcuts_append_paths), (shortcuts_add_volumes),
1405         (shortcuts_append_bookmarks), (create_shortcuts_model),
1406         (gtk_file_chooser_default_add_shortcut_folder): add REMOVABLE column
1407         to the shortcuts_model.
1408
1409         (remove_bookmark_button_clicked_cb),
1410         (bookmarks_check_remove_sensitivity): use REMOVABLE column to check if
1411         bookmarks can be removed. Fixes #129873
1412
1413 Wed Jan  7 02:50:55 2004  Matthias Clasen  <maclas@gmx.de>
1414
1415         * demos/testpixbuf-save.c: Make s, S, Control-S, p, P, Control-P,
1416         i, I, Control-I test gdk_pixbuf_save(), gdk_pixbuf_save_to_buffer()
1417         and gdk_pixbuf_save_to_callback() with jpeg, png and ico formats, 
1418         respectively. Tests #82203.
1419
1420 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
1421
1422         * gtk/gtkfilesel.c (gtk_file_selection_create_dir_confirmed): Use
1423         0777 as the mode for mkdir() and let the umask do the right
1424         thing.  Fixes #121819.
1425
1426         * gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
1427         can return NULL; handle this.  Fixes #129565.
1428
1429 2004-01-06  Alexander Winston  <alexander.winston@comcast.net>
1430
1431         * gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space
1432         that proceeded the end-of-sentence punctuation. Fixes: #130353.
1433
1434 2004-01-06  Jody Goldberg <jody@gnome.org>
1435
1436         * gtk/gtktoolitem.c (gtk_tool_item_set_property) : Call 
1437           gtk_tool_item_set_visible_vertical for PROP_VISIBLE_VERTICAL.
1438
1439 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
1440
1441         * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Oops,
1442         call shortcuts_add_bookmarks() here.
1443         (remove_bookmark_button_clicked_cb): Ahem, fetch the selected
1444         iter.
1445         (shortcuts_append_paths): Don't display error dialogs here.
1446         (create_file_list): Remove the @#$% rules hint.
1447
1448 2004-01-05  Federico Mena Quintero  <federico@ximian.com>
1449
1450         * gtk/gtkfilechooserdefault.c (toolbar_button_new): New helper
1451         function.
1452         (toolbar_create): Do not use a toolbar widget, just an hbox
1453         instead.  Add the bookmarks buttons and the current folder label
1454         here.
1455         (create_filename_entry_and_filter_combo): Create the filter combo
1456         here.
1457         (filter_create): Don't show the filter combo initially.
1458         (up_button_cb): Renamed from toolbar_up_cb().
1459         (create_shortcuts_buttons): Removed.
1460
1461 2004-01-05  Murray Cumming  <murrayc@usa.net>
1462
1463         * gdk/gdkimage.h: Added <public> documentation to the struct, as
1464         suggested by Owen Taylor.
1465
1466 2004-01-05  Jody Goldberg <jody@gnome.org>
1467
1468         * gtk/gtkiconfactory.c (get_default_icons) : add stock indent, unindent
1469           I would have prefered outdent, but compatibility seems more
1470           important.
1471         * gtk/gtkstock.c (builtin_items) : ditto.
1472         * gtk/gtkstock.h : ditto.
1473         * gtk/stock-icons/Makefile.am : ditto.
1474         * gtk/stock-icons/stock_text_indent_16.png :
1475         * gtk/stock-icons/stock_text_indent_24.png :
1476         * gtk/stock-icons/stock_text_unindent_16.png :
1477         * gtk/stock-icons/stock_text_unindent_24.png : from gnome-icon-theme
1478
1479 Sun Jan  4 15:29:04 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
1480
1481         * gtk/gtkradiotoolbutton.[ch]
1482         (gtk_radio_tool_button_new_with_stock_from_widget): Change API so
1483         group is a GtkRadioButton, not a GtkWidget.
1484
1485 2004-01-04  Hans Breuer  <hans@breuer.org>
1486
1487         * gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in 
1488         gdk_window_set_keep_(above|below) to make DND work again.
1489         Thanks to Alif Wahid for noticing.
1490
1491         * gdk/gdk.def : update externals
1492
1493         * gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
1494
1495         * gtk/gtk-stock.[hc] gtk/gtkiconfactory.c 
1496           gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
1497           gtk/stock-icons/stock_harddisk_16.png 
1498           gtk/stock-icons/stock_harddisk_24.png 
1499         Harddisk stock icons for file system implementations. Beside
1500         FLOPPY and CDROM there is now HARDDISK, probably some 
1501         GTK_STOCK_NETWORK would be useful, but I could not find one.
1502
1503 Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>
1504
1505         * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
1506         Patch from Andrew Moise (#130462).
1507
1508 2004-01-01  Jody Goldberg <jody@gnome.org>
1509
1510         * gtk/gtkaction.c (_GtkActionPrivate) : add visible_horizontal,
1511           visible_vertical.
1512         (gtk_action_class_init) : here.
1513         (gtk_action_init) : here.
1514         (gtk_action_set_property) : here.
1515         (gtk_action_get_property) : here.
1516         (connect_proxy) : and here.
1517
1518 2003-12-30  Jody Goldberg <jody@gnome.org>
1519
1520         * gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel) :  new
1521           utility routine for use in derived GtkActions with the replicated code
1522           from.
1523         (gtk_action_group_add_actions_full) : here.
1524         (gtk_action_group_add_toggle_actions_full) : here.
1525         (gtk_action_group_add_radio_actions_full) : and here.
1526
1527 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
1528
1529         * configure.in: Added "bn" to ALL_LINGUAS.
1530
1531 2004-01-01  Taneem Ahmed  <taneem@bengalinux.org>
1532
1533         * bn.po: Added Bangla translation by 
1534         of Ankur group <gnome-translation@bengalinux.org>.
1535
1536 Fri Jan  2 02:50:11 2004  Matthias Clasen  <maclas@gmx.de>
1537
1538         * gtk/gtkcalendar.c (gtk_calendar_compute_days): 
1539         * gtk/gtkcalendar.c (gtk_calendar_paint_day_names): 
1540         * gtk/gtkcalendar.c (gtk_calendar_init): Changes to support 
1541         week_start values other than 0 and 1, e.g. 6 will let weeks start
1542         on Saturday.  (#130349, Roozbeh Pournader) 
1543
1544 2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>
1545
1546         * gdk/x11/gdkinput-x11.c: (gdk_input_translate_coordinates)
1547         
1548         Fix to allow reasonable pointer behavior in window mode when an
1549         extended input device reports an incorrect resolution of 0.  Fixes
1550         bug #123546
1551         
1552 2003-12-31  Christian Neumair  <chris@gnome-de.org>
1553
1554         * gdk-pixbuf/gdk-pixdata.c: (gdk_pixbuf_from_pixdata):
1555         * gtk/gtkfilechooserdefault.c: (list_size_data_func): Use ngettext for
1556         plurals (#123847).
1557
1558 Wed Dec 31 02:05:39 2003  Matthias Clasen  <maclas@gmx.de>
1559
1560         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): 
1561         (gtk_action_group_add_toggle_actions_full):
1562         (gtk_action_group_add_radio_actions_full): Pull accelerator key
1563         from the stock item if stock_id is given, but accelerator 
1564         not.  (Noticed by Jeff Franks and Jody Goldberg)
1565
1566         * tests/testmerge.c: Remove the accelerator from the "Open" entry
1567         to test the above change.
1568         
1569 2003-12-29  Federico Mena Quintero  <federico@ximian.com>
1570
1571         Make show_all() work for the extra and preview widgets; reported
1572         by Paolo Maggi.
1573
1574         * gtk/gtkfilechooserdefault.c (set_preview_widget): show_all() the
1575         preview widget.
1576         (set_extra_widget): show_all() the extra widget.
1577
1578 Mon Dec 29 12:22:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1579
1580         * gtk/gtkuimanager.c (do_updates): 
1581         * gtk/gtktoolbar.c (slide_idle_handler): 
1582         * gtk/gtkdnd.c (gtk_drag_update_idle): 
1583
1584         Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle
1585         functions. (#130157, patch from Olexiy Avramchenko).
1586         
1587 2003-12-29  Anders Carlsson  <andersca@gnome.org>
1588
1589         * gtk/gtkradiotoolbutton.c:
1590         * gtk/gtkradiotoolbutton.h:
1591         * gtk/gtkseparatortoolitem.c:
1592         * gtk/gtkseparatortoolitem.h:
1593         * gtk/gtktoggletoolbutton.c:
1594         * gtk/gtktoggletoolbutton.h:
1595         * gtk/gtktoolbar.c:
1596         * gtk/gtktoolbar.h:
1597         * gtk/gtktoolbutton.c:
1598         * gtk/gtktoolbutton.h:
1599         * gtk/gtktoolitem.c:
1600         * gtk/gtktoolitem.h:
1601         Update my e-mail address.
1602         
1603 Mon Dec 29 01:36:22 2003  Matthias Clasen  <maclas@gmx.de>
1604
1605         * gtk/gtkaccelmap.[hc]: (gtk_accel_map_lock_path, 
1606         gtk_accel_map_unlock_path): Add a way to lock individual accelerator
1607         paths.  (#73207, reported by Havoc Pennington)
1608
1609 Sat Dec 27 23:17:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1610
1611         * gtk/gtktoolbar.c (slide_idle_handler): use CHILD_VISIBLE
1612         instead of VISIBLE to determine whether we should stop
1613         sliding. (#130018, reported by Christian Persch).
1614
1615 Fri Dec 26 23:24:35 2003  Matthias Clasen  <maclas@gmx.de>
1616
1617         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
1618         Don't use first_action without initializing it if n_entries is 0.
1619
1620 Thu Dec 25 00:26:34 2003  Matthias Clasen  <maclas@gmx.de>
1621
1622         * gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
1623         Add the missing _get_ to the name of the non-Xcursor version of
1624         this function.  (noticed by Torsten Schoenfeld)
1625
1626 Tue Dec 23 22:34:50 2003  Manish Singh  <yosh@gimp.org>
1627
1628         * gtk/gtkicontheme.h: fix GTK_TYPE_ICON_INFO macro, reported by
1629         muppet.
1630
1631 2003-12-24  Jody Goldberg <jody@gnome.org>
1632
1633         * gtk/gtkactiongroup.h : Add some const to the char * in
1634           GtkActionEntry*.  We're reccomending people pass static strings to
1635           them, and not freeing them.  This stems to flood of warnings that
1636           result.
1637         * gtk/gtkactiongroup.c (gtk_action_group_add_actions_full) : change
1638           temp vars to const to match above.
1639         (gtk_action_group_add_toggle_actions_full) : ditto.
1640         (gtk_action_group_add_radio_actions_full) : ditto.
1641
1642 Wed Dec 24 01:12:53 2003  Matthias Clasen  <maclas@gmx.de>
1643
1644         * gtk/gtkclipboard.[hc]: Add GtkClipboardTargetReceivedFunc,
1645         gtk_clipboard_request_targets() and 
1646         gtk_clipboard_wait_for_targets().  (#101774, Dom Lachowicz)
1647
1648 Mon Dec 22 00:40:39 2003  Matthias Clasen  <maclas@gmx.de>
1649
1650         * gtk/gtkcalendar.c (gtk_calendar_paint_arrow): Use 
1651         gtk_paint_arrow instead of draw_arrow_left/draw_arrow_right.
1652         * gtk/gtkcalendar.c (draw_arrow_left):
1653         (draw_arrow_right): Removed. 
1654         * gtk/gtkcalendar.c (gtk_calendar_realize_arrows): 
1655         * gtk/gtkcalendar.c (gtk_calendar_state_changed): Set the
1656         arrow_state to GTK_STATE_INSENSITIVE if the calendar is 
1657         insensitive.  (#97376)
1658
1659 Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
1660
1661         * gtk/gtkuimanager.c (update_node): 
1662         (update_smart_separators): 
1663         (_gtk_menu_is_empty): 
1664         (find_menu_position): 
1665         * gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy): 
1666         * gtk/gtkcombobox.c (gtk_combo_box_relayout_item): 
1667         (gtk_combo_box_relayout): Fix memory leaks caused by the
1668         failure to free the result of gtk_container_get_children().
1669
1670 Sun Dec 21 17:34:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
1671
1672         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Set the right
1673         properties when the window becomes a toplevel. When a window that
1674         was previously a toplevel becomes a toplevel again, restore its
1675         window type. Also make sure the focus window is removed from the
1676         XID hash when it is destroyed. (#117579, reported by Morten
1677         Welinder, patch reviewed by Owen Taylor).
1678
1679 Sun Dec 21 01:54:40 2003  Matthias Clasen  <maclas@gmx.de>
1680
1681         * gtk/gtkmenushell.h: 
1682         * gtk/gtkmenushell.c (gtk_menu_shell_cancel): New function 
1683         to emit the "cancel" signal on a menu shell.
1684
1685         * gtk/gtkmenu.c (gtk_menu_key_press): 
1686         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_menu): 
1687         * gtk/gtkmenubar.c (_gtk_menu_bar_cycle_focus): Use the 
1688         new function instead of directly emitting the 
1689         signal.  (#81803, Owen Taylor)
1690
1691 Sun Dec 21 00:39:50 2003  Matthias Clasen  <maclas@gmx.de>
1692
1693         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): 
1694         Fix the "language_set" blurb.  
1695         
1696 Sat Dec 20 22:06:03 2003  Kristian Rietveld  <kris@gtk.org>
1697
1698         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate
1699         all of treeview when resizing (#110074, patch from Soeren Sandmann).
1700
1701 Fri Dec 19 23:36:00 2003  Kristian Rietveld  <kris@gtk.org>
1702
1703         Fixes #108458.
1704
1705         * gtk/gtkcelllayout.[ch]: added a reorder method.
1706
1707         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_init),
1708         (gtk_tree_view_column_cell_layout_reorder): implement reorder.
1709
1710         * gtk/gtkcellview.c (gtk_cell_view_cell_layout_init),
1711         (gtk_cell_view_cell_layout_reorder): ditto.
1712
1713         * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_init),
1714         (gtk_combo_box_cell_layout_reorder): ditto.
1715
1716         * gtk/gtkentrycompletion.c (gtk_entry_completion_cell_layout_init),
1717         (gtk_entry_completion_reorder): ditto.
1718
1719 Fri Dec 19 22:18:19 2003  Kristian Rietveld  <kris@gtk.org>
1720
1721         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): use strstr
1722         instead of strcmp (#117127, suggestion from Soeren Sandmann).
1723
1724 Fri Dec 19 21:52:46 2003  Kristian Rietveld  <kris@gtk.org>
1725
1726         * gtk/gtkmenu.c (gtk_menu_do_insert): move item insertion logic
1727         here from gtk_menu_real_insert(),
1728         (gtk_menu_real_insert): just call gtk_menu_do_insert(),
1729         (gtk_menu_reorder_child): run _do_insert after inserting the child
1730         (unbreaks _reorder_child, reported by Tim Janik).
1731
1732 2003-12-19  Federico Mena Quintero  <federico@ximian.com>
1733
1734         * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use
1735         g_date_strftime() for UTF-8 correctness; use Julian dates to
1736         simplify the function.
1737
1738 Fri Dec 19 01:47:34 2003  Matthias Clasen  <maclas@gmx.de>
1739
1740         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): 
1741         Test extra_width, not extra_height, when determining whether to
1742         set extra_width.  (#129647, Jan Arne Petersen)
1743
1744 Fri Dec 19 01:35:34 2003  Matthias Clasen  <maclas@gmx.de>
1745
1746         Fix the behaviour of insensitive actions, which was broken
1747         when gtk_action_activate() was changed to pay attention to 
1748         sensitivity  (#129557, Christian Persch)
1749         
1750         * gtk/gtkaction.h: 
1751         * gtk/gtkaction.c (_gtk_action_emit_activate): New auxiliary
1752         function to emit an activate signal without regard to sensitivity.
1753
1754         * gtk/gtkradioaction.c: 
1755         * gtk/gtktoggleaction.c: Always use _gtk_action_emit_activate()
1756         instead of gtk_action_activate().
1757
1758 2003-12-18  Jody Goldberg <jody@gnome.org>
1759
1760         * gtk/gtkicontheme.c (gtk_icon_theme_lookup_icon)) : Add a sanity test
1761           to ensure that the base hicolor theme is installed.  Silently
1762           failing to produce icons that apps assume exist in the theme seems
1763           like a bad idea.
1764
1765 Thu Dec 18 19:13:12 2003  Kristian Rietveld  <kris@gtk.org>
1766
1767         Fixes #110249, reworked patch from Joshua N Pritikin.
1768
1769         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_type),
1770         (gtk_tree_model_sort_tree_drag_source_init),
1771         (gtk_tree_model_sort_row_draggable),
1772         (gtk_tree_model_sort_drag_data_get),
1773         (gtk_tree_model_sort_drag_data_delete): implement GtkTreeDragSource.
1774
1775         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_type),
1776         (gtk_tree_model_filter_tree_drag_source_init),
1777         (gtk_tree_model_filter_row_draggable),
1778         (gtk_tree_model_filter_drag_data_get),
1779         (gtk_tree_model_filter_drag_data_delete): ditto.
1780
1781 Thu Dec 18 18:01:01 2003  Kristian Rietveld  <kris@gtk.org>
1782
1783         * gtk/gtktreeview.c (gtk_tree_view_class_init): add key bindings
1784         for "*" and "/" (expand/collapse all). (#110195, reported by
1785         Calum Benson).
1786
1787 Thu Dec 18 17:52:56 2003  Kristian Rietveld  <kris@gtk.org>
1788
1789         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
1790         clear the extra_attrs list if we set "text" after "markup".
1791         (Fixes #121933, Federico Mena Quintero).
1792
1793 2003-12-18  Alexander Larsson  <alexl@redhat.com>
1794
1795         * gtk/gtkicontheme.c (gtk_icon_info_get_embedded_rect):
1796         Fix typo that used the wrong x/y values for the x1, y1 point
1797         (#129605)
1798
1799 Thu Dec 18 01:41:50 2003  Kristian Rietveld  <kris@gtk.org>
1800
1801         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
1802         (gtk_cell_renderer_text_finalize),
1803         (gtk_cell_renderer_text_get_property),
1804         (gtk_cell_renderer_text_set_property), (get_layout): added language
1805         and language_set properties like GtkTextTag has. (#103800, reported
1806         by Owen Taylor).
1807
1808 Thu Dec 18 01:37:59 2003  Matthias Clasen  <maclas@gmx.de>
1809
1810         * gtk/gtkwidget.c (gtk_widget_activate): Correct misleading docs.
1811         * gtk/gtkbutton.c (gtk_button_class_init): Add docs for the 
1812         "activate" signal.  (#129358, Ka-Hing Cheung)
1813
1814 Thu Dec 18 01:21:59 2003  Kristian Rietveld  <kris@gtk.org>
1815
1816         * gtk/gtktreeview.c (gtk_tree_view_class_init): Jonathan got
1817         the logical flag backwards in the expand_collapse_cursor_row
1818         bindings, fixing.
1819         (gtk_tree_view_real_expand_collapse_cursor_row): invert expand
1820         flag when !logical and in RTL. (Fixes #107527, reported by
1821         Noah Levitt).
1822
1823 Thu Dec 18 01:10:16 2003  Kristian Rietveld  <kris@gtk.org>
1824
1825         * gtk/gtktreeview.c (gtk_tree_view_button_press): only start
1826         editing when activated by the left mouse button. (#106869,
1827         patch from Evan Martin).
1828
1829 Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
1830
1831         Migrating all cell renderers to use the new instance private data
1832         construction.
1833
1834         * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
1835         longer being used.
1836
1837         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
1838         (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
1839         (set_cell_bg_color), (gtk_cell_renderer_render): remove old
1840         GtkCellRendererInfo handling, migrate to instance private data.
1841
1842         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
1843         (gtk_cell_renderer_text_start_editing): moved focus_out_id
1844         from GtkCellRendererInfo to text renderer private data.
1845
1846         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
1847         (gtk_cell_renderer_pixbuf_class_init),
1848         (gtk_cell_renderer_pixbuf_finalize),
1849         (gtk_cell_renderer_pixbuf_get_property),
1850         (gtk_cell_renderer_pixbuf_set_property),
1851         (gtk_cell_renderer_pixbuf_create_stock_pixbuf),
1852         (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
1853         migrate to instance private data.
1854
1855         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
1856         (gtk_cell_renderer_toggle_get_property),
1857         (gtk_cell_renderer_toggle_set_property),
1858         (gtk_cell_renderer_toggle_render): migrate to instance private data.
1859
1860 Thu Dec 18 00:24:32 2003  Kristian Rietveld  <kris@gtk.org>
1861
1862         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init),
1863         (gtk_cell_renderer_text_get_property),
1864         (gtk_cell_renderer_text_set_property), (get_layout): add a
1865         single-paragraph-mode property, use private instance data.
1866         (Fixes #114943, reported by Morten Welinder).
1867
1868 Thu Dec 18 00:07:01 2003  Kristian Rietveld  <kris@gtk.org>
1869
1870         * gtk/gtktreemodel.h (gtk_tree_path_new_root),
1871         (gtk_tree_model_get_iter_root): now deprecated (#106953, reported
1872         by Matthias Clasen).
1873
1874 Wed Dec 17 23:50:56 2003  Kristian Rietveld  <kris@gtk.org>
1875
1876         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
1877         if we set a new stock_id and there was a previous stock_id, unref
1878         the pixbuf (since it was used to renderer the previous stock_id
1879         and stock_id might have been set to NULL now). (Fixes #122966).
1880
1881 2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>
1882
1883         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):
1884
1885         Check that index is not bigger than level array length
1886         also when depth is 1. Now get_iter_first correctly return
1887         FALSE when the model is empty (#129411).
1888
1889 Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
1890
1891         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
1892         try to strcmp or strlen if we managed to normalize and casefold
1893         the string correctly. Fixes crashes with non-UTF8 strings.
1894         (#121617, Patch from Tim-Philipp Müller).
1895
1896 Wed Dec 17 23:20:23 2003  Matthias Clasen  <maclas@gmx.de>
1897
1898         * gtk/gtkexpander.c (gtk_expander_animation_timeout): Add missing
1899         GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
1900         * gtk/gtkcalendar.c, gtk/gtkclist.c, gtk/gtkexpander.c, 
1901         gtk/gtklist.c, gtk/gtknotebook.c, gtk/gtkselection.c, 
1902         gtk/gtkspinbutton.c: Cast second argument to g_timeout_add() to
1903         GSourceFunc instead of GtkFunction.  (#129525, Olexiy Avramchenko) 
1904
1905 Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
1906
1907         * gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
1908         (#122727, patch from Kjartan Maraas).
1909
1910 Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
1911
1912         Yay! Fixed height mode! Hooray! (Part 2 of #80868).
1913
1914         * gtk/gtktreeview.c (gtk_tree_view_class_init),
1915         (gtk_tree_view_init), (gtk_tree_view_set_property),
1916         (gtk_tree_view_get_property), (gtk_tree_view_set_model): add a
1917         fixed_height_mode property,
1918         (intialize_fixed_height_mode), (do_validate_rows),
1919         (column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
1920         (gtk_tree_view_style_set), (gtk_tree_view_row_changed),
1921         (gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
1922         (gtk_tree_view_insert_column): implement fixed height mode,
1923         (gtk_tree_view_append_column), (gtk_tree_view_insert_column),
1924         (gtk_tree_view_insert_column_with_attributes),
1925         (gtk_tree_view_insert_column_with_data_func): update docs.
1926
1927         * gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
1928
1929 2003-12-07  Murray Cumming  <murrayc@usa.net>
1930  
1931         * gtk/gtktreemodel.c:
1932         (row_inserted_marshal, row_deleted_marshal, rows_reorderered_marshal)
1933         Actually call the default signal handlers instead of calling the
1934         marshallers themselves in an endless loop. These default signal handler
1935         callbacks are not actually set so this is only noticed by gtkmm at
1936         the moment. Bug 123923.
1937
1938 2003-12-16  Federico Mena Quintero  <federico@ximian.com>
1939
1940         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
1941         "volumes-changed" signal.  Added the following methods:
1942                 list_volumes
1943                 volume_free
1944                 volume_get_base_path
1945                 volume_get_is_mounted
1946                 volume_mount
1947                 volume_get_display_name
1948                 volume_render_icon
1949
1950         * gtk/gtkfilesystem.c (gtk_file_system_base_init): Create the
1951         "volumes-changed" signal.
1952         (gtk_file_system_list_volumes): New function.
1953         (gtk_file_system_volume_free): New function.
1954         (gtk_file_system_volume_get_base_path): New function.
1955         (gtk_file_system_volume_get_is_mounted): New function.
1956         (gtk_file_system_volume_mount): New function.
1957         (gtk_file_system_volume_get_display_name): New function.
1958         (gtk_file_system_volume_render_icon): New function.
1959
1960         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_volume_free): Implement.
1961         (gtk_file_system_unix_volume_get_base_path): Implement.
1962         (gtk_file_system_unix_volume_get_is_mounted): Implement.
1963         (gtk_file_system_unix_volume_mount): Implement.
1964         (gtk_file_system_unix_volume_get_display_name): Implement.
1965         (gtk_file_system_unix_volume_render_icon): Implement.
1966
1967         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
1968         Added a field for the "volumes-changed" signal connection.
1969         (gtk_file_chooser_default_set_property): Connect to
1970         "volumes-changed" on the file system.
1971         (gtk_file_chooser_default_finalize): Disconnect from
1972         "volumes-changed".
1973
1974         * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): New helper
1975         function.
1976         (shortcuts_get_index): New helper function.
1977         (shortcuts_insert_path): Can now insert volumes as well as paths.
1978         (shortcuts_append_paths): Don't take is_file_system_root.
1979         (shortcuts_add_volumes): New function.
1980         (shortcuts_append_file_system_roots): Removed.
1981         (create_shortcuts_model): Use shortcuts_add_volumes().
1982         (remove_bookmark_button_clicked_cb): Check that the index is
1983         within range.
1984         (bookmarks_check_add_sensitivity): Take volumes into account.
1985         (shortcuts_get_selected_index): New helper function.
1986         (remove_bookmark_button_clicked_cb): Use
1987         shortcuts_get_selected_index().
1988         (bookmarks_check_remove_sensitivity): Likewise.
1989         (shortcuts_select_func): Likewise.
1990         (shortcuts_row_activated_cb): Handle volumes as well as normal
1991         paths.
1992         (shortcuts_activate_volume): New function.
1993         (struct _GtkFileChooserDefault): Removed the bookmarks_set and
1994         bookmarks_iter fields.
1995         (shortcuts_append_bookmarks): Use shortcuts_remove_rows().
1996         (bookmarks_changed_cb): Use shortcuts_add_bookmarks().
1997         (remove_bookmark_rows): Removed.
1998         (shortcuts_add_bookmarks): New function; moved most of the code
1999         over from shortcuts_append_bookmarks().
2000         (shortcuts_append_bookmarks): Add the separator node here, and
2001         then call shortcuts_add_bookmarks().
2002
2003 Tue Dec 16 15:01:10 2003  Manish Singh  <yosh@gimp.org>
2004
2005         * gtk/gtkfilechooserwidget.c: fix preprocessor conditional confusion.
2006         (G_OS_UNIX/G_OS_WIN32 stuff)
2007
2008 Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
2009
2010         Do not interpret distant clicks as double-clicks  (#116541,
2011         Bernhard Walle):
2012         
2013         * gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
2014         double_click_distance, button_x and button_y.
2015         * gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
2016
2017         * gdk/gdkdisplay.h: 
2018         * gdk/gdkevents.c (gdk_display_set_double_click_distance): 
2019         New function to set the double click distance on a display.
2020
2021         * gdk/gdkevents.c: Take double click distance into account
2022         when generating single, double or triple clicks.
2023
2024         * gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
2025
2026         * gdk/x11/gdkevents-x11.c: Add the XSetting 
2027         "Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
2028
2029 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
2030
2031         * gtk/gtkdialog.c: Sigh, revert the change.
2032
2033 2003-12-15  Federico Mena Quintero  <federico@ximian.com>
2034
2035         * gtk/gtkdialog.c (dialog_has_cancel): Removed.
2036         (gtk_dialog_close): Don't call dialog_has_cancel().  At least
2037         allows sane behavior for #101293.
2038
2039 Mon Dec 15 00:56:54 2003  Matthias Clasen  <maclas@gmx.de>
2040
2041         * gtk/gtkbutton.[hc]: Add new properties, xalign and yalign, with
2042         getter and setter gtk_button_[sg]et_alignment(), to set the
2043         alignment of the child.  (#70961, Jody Goldberg)
2044
2045 2003-12-14  Hans Breuer  <hans@breuer.org>
2046
2047         * gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
2048         similar as the other filesystem placement 'constants' (dynamic
2049         resolving on win32)
2050
2051         * gtk/gtkfilechooserwidget.c : handle file system to win32
2052         renaming here as will
2053         * gtk/gtkfilesystemwin32.c : implement render_icon
2054
2055         * gtk/gtk.def gdk/gdk.def : updated externals
2056
2057         * gdk/win32/gdkdisplay-win32.c : make it compile without
2058         <multimon.h> - i.e. even older sdk
2059
2060         * gdk/win32/gdkevents-win32.c : match resize_timer_proc
2061         with TIMERPROC prototype
2062
2063         * gdk/win32/gdkwindow-win32.c : older msvc does not know
2064         BITMAPV5HEADER (from win xp) either
2065
2066         * gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
2067         not defined
2068
2069         * tests/testfilechooser.c : recent GLib crashes on 
2070         g_print ("%s", NULL) so avoid this
2071
2072 2003-12-14  Tor Lillqvist  <tml@iki.fi>
2073
2074         * gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
2075         followed by calls to CloseClipboard(). Add a missing call to
2076         CloseClipboard(). Found by Adam Wright, fixes #104944. Use
2077         API_CALL macro in more places.
2078
2079 2003-12-14  Tor Lillqvist  <tml@iki.fi>
2080
2081         Merge from stable:
2082
2083         * gdk/gdkdisplaymanager.c: Mark default_display static.
2084
2085         * gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.
2086
2087         * gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
2088         output.
2089
2090         * gdk/win32/gdkevents-win32.c: Clean up the debugging output from
2091         --gdk-debug=events. In general, output just one line of debugging
2092         output for each Windows message, plus one line for each GDK event
2093         generated. Indent all lines according to window procedure nesting
2094         level.
2095
2096         (inner_window_procedure): Rename from real_window_procedure.
2097
2098         (find_real_window_for_grabbed_mouse_event): Don't get misled when
2099         the point is in the non-client (decoration) area of the window
2100         returned by WindowFromPoint(). Return the root window in that
2101         case.
2102
2103         (build_pointer_event_state): Test also MK_XBUTTON1 and
2104         MK_XBUTTON2 (buttons 4 and 5).
2105
2106         (synthesize_enter_event): Track the mouse leaving the window in
2107         the event being generated, not the one mentioned in the Windows
2108         message.
2109
2110         (propagate): Test for NULL parent earlier. Improves event
2111         generation from a grabbed pointer. Part of fix for #107320.
2112
2113         (handle_stuff_while_moving_or_resizing): New function, to
2114         dispatch the main loop (once).
2115
2116         (resize_timer_proc): New function, set to be called by an inerval
2117         timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().
2118
2119         (gdk_event_translate): Drop unused return_exposes parameter.
2120
2121         Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).
2122
2123         On WM_SYSKEYUP, generate a key release event also for just the Alt
2124         key.
2125
2126         On WM_MOUSELEAVE, generate a leave event of type
2127         GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
2128         top-level window, and left the app completely.
2129
2130         On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
2131         calls resize_timer_proc() at regular intervals. On
2132         WM_EXITSIZEMOVE, kill the timer.
2133
2134         On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
2135         and dispatch the main loop (by calling
2136         handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
2137         Herman Bloggs.
2138
2139         * gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
2140         also wintab messages.
2141
2142         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
2143         Instead of using WS_EX_TOOLWINDOW, implement by setting/unsetting
2144         the window's owner. Fixes #118093, reported by Maxime Romano.
2145
2146 Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>
2147
2148         * gdk/win32/gdkwindow-win32.[ch]: Implement
2149         gdk_window_set_icon_list() for Win32, with support for big and
2150         small icons and support for alpha-channel icons under Windows
2151         XP. Replaces the previous implementation of gdk_window_set_icon().
2152         (#128762)
2153         
2154 Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
2155
2156         * gdk/x11/gdkprivate-x11.h: 
2157         * gdk/x11/gdkx.h: 
2158         * gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type): 
2159         Rename from _gdk_x11_register_event_type(), added API docs.
2160         * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): 
2161         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
2162         all callers.  (#121471, Bill Haneman)
2163
2164 Sat Dec 13 23:37:50 2003  Matthias Clasen  <maclas@gmx.de>
2165
2166         * gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
2167         of gc is ignored.  (#101983, Sebastian Rittau)
2168
2169 Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
2170
2171         A trick for a faster treeview, step 1. Patch to short circuit
2172         _build_tree(), inspired by Jonathan (#80868).
2173
2174         * gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
2175         flags by default,
2176         (gtk_tree_view_build_tree): don't even try to recurse when the
2177         model says that it is a list, remove flag unsetter,
2178         (gtk_tree_view_set_model): change flag setting logic.
2179
2180         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
2181         propagate whether or not the child model has _IS_LIST set.
2182
2183         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
2184         ditto.
2185
2186 Sat Dec 13 02:33:17 2003  Matthias Clasen  <maclas@gmx.de>
2187
2188         * gtk/gtkrange.c (gtk_range_scroll): Undo the last change, 
2189         since it broke logical keynav. 
2190         * gtk/gtkrange.c (range_get_scroll_for_grab): Fix stepper
2191         direction in inverted scrollbars here instead.
2192
2193 Sat Dec 13 00:39:24 2003  Matthias Clasen  <maclas@gmx.de>
2194
2195         * gtk/gtkviewport.c (viewport_set_hadjustment_values): Implement
2196         "gravity" for RTL mode in a better way: Keep the distance from 
2197         the upper end of the page to the upper bound constant. This also 
2198         fixes problems with the initial position of the viewport in RTL 
2199         mode.  (#129063)
2200         
2201 Fri Dec 12 21:00:12 2003  Kristian Rietveld  <kris@gtk.org>
2202
2203         Combo box flipping support.
2204
2205         * gtk/gtkcombobox.c (gtk_combo_box_menu_position),
2206         (gtk_combo_box_size_allocate): support RTL flipping (#126518,
2207         patch from Matthias Clasen),
2208         (gtk_combo_box_popup): fix popup window alignment if there's a
2209         cell view frame visible (#126518, patch from Semion Chichelnitsky).
2210
2211         * gtk/gtkcellview.c (gtk_cell_view_expose): support RTL flipping
2212         (#128348, patch from Semion Chichelnitsky).
2213
2214 Fri Dec 12 01:13:34 2003  Matthias Clasen  <maclas@gmx.de>
2215
2216         * examples/gtkdial/gtkdial.c:
2217         * examples/menu/menu.c:
2218         * examples/scribble-xinput/scribble-xinput.c:
2219         * examples/progressbar/progressbar.c:
2220         * docs/tutorial/gtk-tut.sgml: Remove deprecated functions
2221         in examples. (#129074, Olexiy Avramchenko)
2222         * examples/calendar/Makefile:
2223         * examples/rangewidgets/Makefile:
2224         * examples/menu/Makefile: Allow deprecated functions in
2225         examples which use deprecated widgets.
2226
2227 Fri Dec 12 00:43:16 2003  Matthias Clasen  <maclas@gmx.de>
2228
2229         * gdk/gdk.c (gdk_threads_set_lock_functions): 
2230         * gdk/x11/gdkspawn-x11.c: Add "Since: 2.4" to doc comments.
2231
2232 Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>
2233
2234         * gtk/gtkrange.c (gtk_range_scroll): Fix direction of 
2235         steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
2236
2237 Thu Dec 11 23:50:30 2003  Matthias Clasen  <maclas@gmx.de>
2238
2239         * gtk/gtknotebook.c (gtk_notebook_pages_allocate): Don't 
2240         unnecessarily reserve space for arrows in RTL mode.  (#129075,
2241         Semion Chichelnitsky)
2242
2243 Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
2244
2245         Changes to allow "no input" windows (#64613):
2246         
2247         * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
2248         field accept_focus.
2249         
2250         * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
2251         set it.
2252
2253         * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
2254         and gtk_window_get_focus() and gtk_window_set_focus().
2255
2256         * gdk/win32/gdkwindow-win32.c (gdk_window_new): 
2257         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): 
2258         * gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
2259         Initialize the accept_focus field to TRUE.
2260
2261         * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): 
2262         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): 
2263         * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): 
2264         Implementations for the various backends. The Win32 and linux-fb
2265         implementations set the accept_focus field, but don't use it yet 
2266         to actually implement noinput windows. The X implementation updates
2267         the WM_HINTS to select the globally active input model (see the
2268         ICCCM) if accept_focus is FALSE.
2269
2270         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
2271         WM_TAKE_FOCUS message if accept_focus is FALSE.
2272         
2273 2003-12-10  Federico Mena Quintero  <federico@ximian.com>
2274
2275         * gtk/gtkfilechooserdefault.c (struct _GtkFileChooserDefault):
2276         Added toolbar items for the filter separator and the filter item.
2277         (toolbar_create): Add the filter widgets here.
2278         (filter_create): Renamed from create_filter().  Don't store the
2279         alignment in the impl structure, just return it.
2280         (toolbar_show_filters): New function.
2281         (gtk_file_chooser_default_add_filter): Use toolbar_show_filters().
2282         (gtk_file_chooser_default_remove_filter): Likewise.
2283         (gtk_file_chooser_default_constructor): Don't create the filter
2284         widget here.
2285         (struct _GtkFileChooserDefault): Added a field for a current
2286         folder label.
2287         (gtk_file_chooser_default_constructor): Create the folder label.
2288         (gtk_file_chooser_default_set_current_folder): Set the current
2289         folder label.
2290
2291         * tests/testfilechooser.c (main): Dramatically improved the
2292         usability of the extra widget through careful word choice.
2293
2294 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
2295
2296         * gdk/gdk.h: include gdkspawn.h.
2297
2298 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
2299
2300         * gdk/linux-fb/gdkspawn-fb.c,
2301           gdk/win32/gdkspawn-win32.c,
2302           gdk/x11/gdkspawn-x11.c: (gdk_spawn_command_line_on_screen):
2303         s/gdk_spawn/gdk_spawn_on_screen/.
2304
2305 2003-12-10  Mark McLoughlin  <mark@skynet.ie>
2306
2307         Utility functions for multi-screen applications which need
2308         to ensure launched applications appear on a certain screen.
2309         See bug #95897.
2310         
2311         * gdk/gdkspawn.h: header for multi-screen launching
2312         support.
2313         
2314         * gdk/Makefile.am: install gdkspawn.h.
2315         
2316         * gdk/x11/Makefile.am:
2317         * gdk/x11/gdkspawn-x11.c:
2318         (gdk_spawn_make_environment_for_screen): private function
2319         to create an environment vector with DISPLAY set appropriately
2320         for the screen.
2321         (gdk_spawn_on_screen): multi-screen version of g_spawn_async().
2322         (gdk_spawn_on_screen_with_pipes): version of g_spawn_async_with_pipes().
2323         (gdk_spawn_command_line_on_screen): version of g_spawn_command_line_async().
2324         
2325         * gdk/linux-fb/Makefile.am,
2326           gdk/linux-fb/gdkspawn-fb.c: linux-fb impl.
2327         
2328         * gdk/win32/Makefile.am,
2329           gdk/win32/gdkspawn-win32.c: win32 impl.
2330
2331 2003-12-09  Federico Mena Quintero  <federico@ximian.com>
2332
2333         * gtk/gtkfilechooserdefault.c (shortcuts_append_home): Use "Home"
2334         rather than "Username's Home" (#125964).
2335         (shortcuts_selection_changed_cb): New callback, check the
2336         sensitivity of the Remove Bookmark button at the right time.
2337         (shortcuts_row_activated_cb): It is not necessary to check the
2338         sensitivity here.
2339
2340 Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
2341
2342         Improve the GDK API for dealing with group leaders (#119375):
2343         
2344         * gdk/gdkwindow.h: 
2345         * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to 
2346         get the group leader of a toplevel window as a GdkWindow.
2347
2348         * gdk/gdkdisplay.h: 
2349         * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New 
2350         function to get the default group leader as a GdkWindow.
2351
2352         * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
2353         the GdkWindow of the default group leader.
2354         
2355         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
2356         for the default group leader.
2357
2358 2003-12-09  Noah Levitt  <nlevitt@columbia.edu>
2359
2360         * gdk/gdkkeysyms.h:
2361         * gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
2362         Ukrainian_GHE_WITH_UPTURN. (#128529)
2363
2364 2003-12-08  Jan Arne Petersen  <jpetersen@uni-bonn.de>
2365
2366         * gtk/gtkfilechooserdefault.c:
2367         (gtk_file_chooser_default_get_paths), (entry_activate): Use the
2368         behavior of the GtkFileSelection to determine selected paths in
2369         single selected, GTK_FILE_CHOOSER_ACTION_SAVE mode.
2370
2371 2003-12-08  Federico Mena Quintero  <federico@ximian.com>
2372
2373         * gtk/gtkfilechooserdefault.c
2374         (gtk_file_chooser_default_get_paths): Don't declare the closure
2375         struct twice.
2376         (get_paths_foreach): Likewise.
2377
2378 Tue Dec  9 00:12:36 2003  Matthias Clasen  <maclas@gmx.de>
2379
2380         * gtk/gtkfilesystemwin32.[hc]: s/Unix/Win32/g. 
2381
2382 2003-12-08  Tor Lillqvist  <tml@iki.fi>
2383
2384         * gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
2385         with MSVC and old headers. (#126933, John Ehresman)
2386
2387 Mon Dec  8 10:54:44 2003  Owen Taylor  <otaylor@redhat.com>
2388          
2389         * === Released 2.3.1 ===
2390
2391         * NEWS: Updates for 2.3.1
2392
2393         * configure.in: Version 2.3.1, interface age 0, binary age 301.
2394
2395         * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel):
2396         Rename from gtk_menu_item_real_can_activate_accel() to
2397         match GTK+ convention, improve comment.
2398
2399         * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(),
2400         can ::can-activate-accel signal.
2401
2402         * gtk/gtkwidget.c (closure_accel_activate): Fix spelling
2403         in comment.
2404
2405         * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean 
2406         up comment.
2407         
2408         * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros
2409         into the .c file.
2410
2411 Mon Dec  8 12:09:21 2003  Owen Taylor  <otaylor@redhat.com>
2412
2413         * gtk/gtkicontheme.c (find_builtin_icon): Fix a
2414         missing 'else'. (#128816, Jorn Baayen)
2415
2416 2003-12-02  Michael Meeks  <michael@ximian.com>
2417
2418         Based on a patch by Martin Kretzschmar; #122448
2419         
2420         * gdk/gdk.h: new gdk_threads_lock, gdk_threads_unlock, point to
2421         implementation of GDK_THREADS_ENTER / GDK_THREADS_LEAVE.
2422         (GDK_THREADS_ENTER, GDK_THREADS_LEAVE): use gdk_threads_[un]lock
2423         function pointers. Deprecate the global gdk_threads_mutex variable.
2424         
2425         * gdk/gdk.c (gdk_threads_impl_lock, gdk_threads_impl_unlock): new,
2426         extracted from GTK_THREADS_ENTER/LEAVE macros.
2427         (gdk_threads_init): init gtk_threads_[un]lock if not set.
2428         (gdk_threads_set_lock_functions): impl.
2429
2430         * gdk/gdkglobals.c: add definitions of gdk_threads_[un]lock.
2431
2432 Sun Dec  7 23:45:40 2003  Matthias Clasen  <maclas@gmx.de>
2433
2434         * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if
2435         icon_theme_builtin_icons hasn't been initialized.  (#128726, Diego
2436         Gonzalez)
2437
2438 2003-12-07  Tor Lillqvist  <tml@iki.fi>
2439
2440         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
2441         return value from SendMessage(WM_SETICON). That is the old
2442         icon. Fixes GDI resource leak. (#128559, Tim Evans)
2443
2444         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
2445         have a pointer grab active with a grab cursor set, destroy that
2446         cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2447
2448 2003-12-05  Paisa Seeluangsawat  <paisa@users.sf.net>
2449
2450         * configure.in: Added Thai (th) to ALL_LINGUAS.
2451
2452 Sat Dec  6 01:42:04 2003  Matthias Clasen  <maclas@gmx.de>
2453
2454         * gtk/gtkalignment.c (gtk_alignment_size_allocate): Implement
2455         RTL flipping for GtkAlignment.  (#127585)
2456
2457 Sat Dec  6 01:13:09 2003  Matthias Clasen  <maclas@gmx.de>
2458
2459         * gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the 
2460         popup window when in RTL mode.  (#127578)
2461
2462 Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>
2463
2464         * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
2465         Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
2466         before doing anything to prevent garbage returns.
2467
2468 Sat Dec  6 00:23:46 2003  Matthias Clasen  <maclas@gmx.de>
2469
2470         * gtk/gtkviewport.c: Implement RTL flipping for 
2471         GtkViewport: Adjust the "gravity" when resizing
2472         This is a bit flickery in RTL mode.  (#107526)
2473
2474 Sat Dec  6 00:22:14 2003  Matthias Clasen  <maclas@gmx.de>
2475
2476         * gtk/gtkscrolledwindow.c: Implement RTL flipping for 
2477         GtkScrolledWindow: the vertical scrollbar shows up on the left
2478         side in RTL mode.  (#107526)
2479
2480 Fri Dec  5 01:58:33 2003  Matthias Clasen  <maclas@gmx.de>
2481
2482         * gtk/gtknotebook.c: Implement RTL flipping for GtkNotebook:
2483         tabs displayed at the top/bottom are rearranged, and tabs on
2484         the left/right are displayed at the opposite edge.  (#96630)
2485
2486 2003-12-04  Mark McLoughlin  <mark@skynet.ie>
2487
2488         * gtk/gtklabel.c: (gtk_label_set_attributes_internal): Allow
2489         gtk_label_set_attributes() take NULL. See bug #128517.
2490
2491 2003-12-03  Federico Mena Quintero  <federico@ximian.com>
2492
2493         * gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Removed
2494         the in_change flag.
2495         (completion_idle_callback): Use a temporary list store and re-set
2496         it on the completion rather than modifying the old one.  We are
2497         re-reading the folder anyway, and this gets rid of non-atomicity
2498         problems.
2499
2500 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
2501
2502         Decouple impl->current_folder from the selection in the folder
2503         tree.  This is so that going to /home/federico/.foo (e.g. from a
2504         bookmark) will work even if show_hidden == FALSE.  The folder tree
2505         needs to be fixed in this case to show such folders explicitly.
2506
2507         * gtk/gtkfilechooserdefault.c
2508         (gtk_file_chooser_default_set_current_folder): When changing
2509         folders, do the entry and list model work here, instead of
2510         tree_selection_changed().
2511         (struct _GtkFileChooserDefault): Added a changing_folder flag
2512         again, dum de dum.
2513         (tree_selection_changed): Use _gtk_file_chooser_set_current_folder_path().
2514
2515 Tue Dec  2 01:01:54 2003  Matthias Clasen  <maclas@gmx.de>
2516
2517         * gtk/gtkiconfactory.h: Remove duplicate declaration of 
2518         gtk_icon_source_set_icon_name().  (#Jeff Franks, #128269)
2519
2520 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
2521
2522         Patch from Hans-Petter Jansson <hpj@ximian.com> to align the
2523         bookmarks buttons with the location entry.
2524
2525         * gtk/gtkfilechooserdefault.c
2526         (gtk_file_chooser_default_constructor): Use a GtkSizeGroup for the
2527         bookmarks buttons and the location entry.
2528
2529 2003-12-01  Federico Mena Quintero  <federico@ximian.com>
2530
2531         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Set the
2532         shortcuts tree as a drag destination.
2533         (shortcuts_drag_data_received_cb): New callback.
2534         (get_file_info): Also fetch information on whether the file is a folder.
2535         (add_bookmark_button_clicked_cb): Use error_could_not_add_bookmark_dialog().
2536         (error_could_not_add_bookmark_dialog): New function.
2537         (shortcuts_add_bookmark_from_path): New helper function.
2538         (add_bookmark_button_clicked_cb): Use shortcuts_add_bookmark_from_path().
2539         (shortcuts_row_activated): We no longer need the changing_folder flag.
2540         (struct _GtkFileChooserDefault): Likewise.
2541
2542 Sun Nov 30 17:31:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2543
2544         * gtk/gtktoolbar.c (slide_idle_handler): return TRUE if there are
2545         disappearing placeholders that are still visible.
2546
2547         * gtk/gtktoolbar.c: formatting fixes
2548
2549         * gtk/gtktoolbar.c (struct _ToolbarContent): new bit:
2550         disappearing, for placeholders that are going to disappear.
2551
2552         * gtk/gtktoolbar.c (get_item_size): return 0 for disappearing placeholders
2553
2554 Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>
2555
2556         * gtk/gtktreeview.c (gtk_tree_view_new_column_width): 
2557         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2558         Patch from <chinen@jp.ibm.com> to handle RTL support for column
2559         resizers, #127874
2560
2561 Fri Nov 28 00:26:24 2003  Matthias Clasen  <maclas@gmx.de>
2562
2563         * gtk/gtkfilesystemmodel.c (gtk_file_system_model_finalize): 
2564         Don't use freed memory.  (#127698, Taavi Talvik) 
2565
2566 Fri Nov 28 00:09:10 2003  Matthias Clasen  <maclas@gmx.de>
2567
2568         * gtk/gtkfilechooserentry.c: Remove debug g_print()s. 
2569
2570 Thu Nov 27 22:17:50 2003  Matthias Clasen  <maclas@gmx.de>
2571
2572         * gtk/gtkuimanager.c: Remove debug define.
2573
2574 Thu Nov 27 16:19:03 2003  Tim Janik  <timj@gtk.org>
2575
2576         * gtk/gtkmenu.c: allow accel activation depending on sensitivity
2577         and the attach widget.
2578
2579         * gtk/gtkmenuitem.c: allow accel activation depending on visibility,
2580         sensitivity and the parent menu.
2581
2582         * gtk/gtkwidget.[hc]: introduced ::can-activate-accel signal which
2583         checks whether accelerators may activate a widget. the default handler
2584         demands the widget be sensitive and visible+viewable.
2585
2586         * gtk/gtkaccelgroup.[hc]: export gtk_accel_group_activate().
2587
2588 Tue Nov 25 00:10:05 2003  Matthias Clasen  <maclas@gmx.de>
2589
2590         * gtk/gtkuimanager.c (update_node): Don't show accelerators in
2591         popup menus.  (#127227)
2592
2593 Mon Nov 24 13:47:39 GMT 2003  Tony Gale <gale@gtk.org>
2594
2595         * docs/faq/gtk-faq.sgml: start 2.x Section 4 updates
2596
2597 Mon Nov 24 04:05:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2598
2599         * gtk/gtkradiotoolbutton.[ch]
2600         (gtk_radio_tool_button_new_from_widget): Make this function take a
2601         GtkRadioToolButton instead of a GtkWidget. (#127729, Murray
2602         Cumming)
2603
2604 Mon Nov 24 02:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2605
2606         * gtk/gtktoolbar.c: remove variables in_dnd and leaving_dnd
2607
2608 Mon Nov 24 02:19:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2609
2610         * gtk/gtktoolbar.c: remove variable
2611         n_overflowed_menu_items_when_dnd_started
2612
2613 Mon Nov 24 01:47:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2614
2615         Rework sliding algorithm.
2616         - No more weird jumping when items are dragged off and added to
2617         the toolbar,
2618         - More natural item movement
2619
2620         * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Many changes. This
2621         function is now responsible for calculating intermediate positions
2622         during item sliding. It is also responsible for starting sliding
2623         if items disappear.  Also turn off expanding when there is an
2624         overflow menu.
2625         (gtk_toolbar_begin_sliding, stop_sliding): New functions.
2626         (slide_idle_handler): New function. All the sliding is now done by
2627         gtk_toolbar_size_allocate(), so the idle handler now just checks
2628         if there is more sliding to be done.
2629         (compute_intermediate_allocation, position): new functions
2630         calculating intermediate steps in the slide animations. The new
2631         animation algorithm uses a constant speed instead of a constant
2632         must-be-finished-within time.
2633         (struct _ToolbarContent): use 
2634         GtkAllocation goal_allocation; and 
2635         GtkAllocation start_allocation; instead of 
2636         gint start/goal_width;
2637
2638         * gtk/gtktoolitem.c (gtk_tool_item_set_tooltip): fix typo in
2639         documentation
2640
2641 Sun Nov 23 22:26:25 2003  Matthias Clasen  <maclas@gmx.de>
2642
2643         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip 
2644         positioning Xinerama-aware.  (#127332)
2645
2646 Fri Nov 21 01:57:21 2003  Matthias Clasen  <maclas@gmx.de>
2647
2648         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Make monitor
2649         boundaries visible in fake Xinerama mode.
2650
2651 Thu Nov 20 15:41:56 2003  Manish Singh  <yosh@gimp.org>
2652
2653         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): cast to GTK_WIDGET()
2654         for the gtk_widget_hide() call.
2655
2656 Thu Nov 20 14:51:41 2003  Jonathan Blandford  <jrb@redhat.com>
2657
2658         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
2659         from David Hampton to fix sorting on booleans.
2660
2661 Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2662
2663         * gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
2664         instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
2665         by Frederic Crozat).
2666
2667 Thu Nov 20 13:10:29 GMT 2003  Tony Gale <gale@gtk.org>
2668
2669         * docs/faq/gtk-faq.sgml: Update Section 3 to 2.x
2670
2671 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
2672
2673         Fixes to problems reported by Iain Holmes:
2674
2675         * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Do not
2676         throw up an error dialog if the desktop doesn't exist.
2677         (error_message): Handle the case where there is no real toplevel
2678
2679         yet.
2680         (list_model_filter_func): Always let folders pass through (patch
2681         by Dave Malcolm).
2682
2683 Wed Nov 19 23:19:23 2003  Kristian Rietveld  <kris@gtk.org>
2684
2685         * gtk/gtkcombobox.[ch] (gtk_combo_box_scroll_event): move function
2686         to a somewhat more logical place,
2687         (gtk_combo_box_remove_text): New function (#125262, Owen Taylor).
2688
2689 Wed Nov 19 22:15:01 2003  Kristian Rietveld  <kris@gtk.org>
2690
2691         * gtk/gtkentry.c (gtk_entry_completion_timeout): always resize
2692         the popup when it is visible, popdown when there are less chars
2693         than the minimum key length in the entry,
2694         (gtk_entry_completion_changed): popdown when the entry is empty.
2695
2696         * gtk/gtkentrycompletion.c (gtk_entry_completion_init): set the
2697         size request of the vscrollbar to (-1, 0), to get a nicely sized
2698         completion treeview (Fixes #126573, reported by Piers Cornwell),
2699         (_gtk_entry_completion_resize_popup): show/hide the action_view
2700         based on items.
2701
2702 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
2703
2704         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn
2705         off the dialog's separator (thanks to Iain Holmes).
2706
2707 Wed Nov 19 18:15:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2708
2709         * gtk/gtkmenu.c (DEFAULT_POPUP_DELAY): set to 200 instead of 225
2710         * gtk/gtkmenuitem.c (get_minimum_width): Impose a minimum width
2711         on items that have a submenu. (#120104).
2712
2713 Wed Nov 19 18:11:08 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
2714
2715         * gtk/gtktoolbar.c (struct _ToolbarContent): Add a new
2716         "ItemState" field indicating the overflowed-ness etc. of the item.
2717         (gtk_toolbar_size_allocate): update the field here.
2718
2719 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
2720
2721         * gtk/gtkfilechooserdefault.c (create_filter): Don't add padding
2722         to the alignment.  Use the HIG-specified spacing between the
2723         filter label and the combo.
2724         (create_filename_entry): Use HIG-specified spacing between the
2725         location label and the entry.
2726         (gtk_file_chooser_default_constructor): Don't use vertical padding
2727         around the filename entry.
2728
2729 2003-11-19  Federico Mena Quintero  <federico@ximian.com>
2730
2731         * gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
2732         render_icon virtual method.
2733
2734         * gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
2735
2736         * gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
2737         Implement as a stub for now.
2738
2739         * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
2740         gtk_file_system_render_icon().
2741         (list_icon_data_func): Likewise.
2742         (toolbar_create): Set the toolbar style to icons only.
2743
2744         * gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
2745         Fix doc comments.
2746
2747 Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>
2748
2749         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call 
2750         gtk_widget_hide(menu) when reattaching the menu.  (#126057) 
2751
2752 Wed Nov 19 00:06:04 2003  Kristian Rietveld  <kris@gtk.org>
2753
2754         * gtk/gtkentrycompletion.c (gtk_entry_completion_selection_changed):
2755         only unselect all items if the treeview has focus. (Fixes bug
2756         reported by Marco Pesenti Gritti).
2757
2758 Tue Nov 18 22:26:30 2003  Kristian Rietveld  <kris@gtk.org>
2759
2760         * gtk/gtkentry.c (gtk_entry_completion_key_press): the total
2761         number of actions is "matches + actions - 1". (Fixes #126572).
2762
2763 Tue Nov 18 21:05:05 2003  Christian Persch  <chp@cvs.gnome.org>
2764
2765         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted): fix
2766         mem leaks (#119435).
2767
2768 Tue Nov 18 20:51:38 2003  Kristian Rietveld  <kris@gtk.org>
2769
2770         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_deleted): don't
2771         try to fetch the child back, since we do know that it is already
2772         gone by now (#126493, Marco Pesenti Gritti).
2773
2774 Tue Nov 18 19:47:59 2003  Kristian Rietveld  <kris@gtk.org>
2775
2776         Fixes based on comments from Owen Taylor, #125264.
2777
2778         * gtk/gtkcellview.[ch] (gtk_cell_view_finalize): remove unused
2779         variable,
2780         (gtk_cell_view_set_value), (gtk_cell_view_set_displayed_model): queue
2781         a resize,
2782         (gtk_cell_view_get_size_of_row): new function,
2783         (gtk_cell_view_set_value), (gtk_cell_view_set_valuesv),
2784         (gtk_cell_view_set_values), (gtk_cell_view_set_model),
2785         (gtk_cell_view_set_displayed_row), (gtk_cell_view_get_displayed_row):
2786         s/cellview/cell_view/ in the function definitions, so they match
2787         with the header file.
2788
2789         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): remove the resize
2790         flag again (:, and use gtk_cell_view_get_size_of_row instead of
2791         the measurer, remove _set_size_request call,
2792         (gtk_combo_box_calc_requested_width): use gtk_cell_view_get_size_of_row
2793         instead of the measurer,
2794         (gtk_combo_box_style_set): queue a resize,
2795         (gtk_combo_box_size_request): update of _remeasure call,
2796         (gtk_combo_box_init), (gtk_combo_box_cell_layout_pack_start),
2797         (gtk_combo_box_cell_layout_pack_end),
2798         (gtk_combo_box_cell_layout_clear),
2799         (gtk_combo_box_set_model): get rid of the measurer,
2800         (gtk_combo_box_cell_layout_add_attribute),
2801         (gtk_combo_box_cell_layout_set_cell_data_func),
2802         (gtk_combo_box_cell_layout_clear_attributes): ditto and queue a
2803         resize instead of calling _remeasure.
2804
2805 Mon Nov 17 16:25:04 2003  Manish Singh <yosh@gimp.org>
2806
2807         * gdk-pixbuf/Makefile.am
2808         * modules/input/Makefile.am: Use install-data-hook for
2809         gdk-pixbuf.loaders and gtk.immodules install generation targets.
2810         Fixes #112806.
2811
2812         * gtk/gtkexpander.h: Apply missing declarations from #124449.
2813
2814 Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
2815
2816         Fix for #119555, Peter Zelezny:
2817         
2818         * gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
2819         * gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
2820         by removing the _ prefix. 
2821         * gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c, 
2822         gdk/gdkwindow.c: Adjust all callers.
2823
2824 Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>
2825
2826         * gtk/gtkaction.c (gtk_action_activate): Only activate if 
2827         the action is sensitive.  (#127187, Christian Persch)
2828
2829 Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>
2830
2831         * gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)
2832
2833 Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
2834
2835         * gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.
2836
2837         * gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
2838         mapped, else resize_popup.
2839
2840         * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
2841         (_gtk_entry_completion_popup): moved all popup resizing code to
2842         _gtk_entry_completion_resize_popup, and show the window when there
2843         are more than zero items in the completion list again (sigh).
2844
2845 2003-11-17  Mark McLoughlin  <mark@skynet.ie>
2846
2847         Patch from Jaiserca <jaiserca@inf.upv.es> to add a
2848         "use_markup" property. See bug #124449.
2849
2850         * gtk/gtkexpander.c:
2851         (gtk_expander_class_init),
2852         (gtk_expander_init), (gtk_expander_set_property),
2853         (gtk_expander_get_property), (gtk_expander_set_label),
2854         (gtk_expander_set_use_markup),  (gtk_expander_get_use_markup):
2855         Add a "use_markup" property and use it when creating the
2856         child label.
2857
2858 Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>
2859
2860         Temporary size requisition fix. Will fix it for real tonight.
2861
2862         * gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
2863         (gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
2864         a good width for the child,
2865         (gtk_combo_box_cell_layout_add_attribute),
2866         (gtk_combo_box_set_cell_data_func),
2867         (gtk_combo_box_cell_layout_clear_attributes): update.
2868
2869 Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>
2870
2871         Fixes #124373, Murray Cumming.
2872
2873         * gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
2874         is no longer construct only,
2875         (gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
2876         (gtk_combo_box_menu_fill): new functions,
2877         (gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
2878         (gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
2879         (gtk_combo_box_list_destroy): updated,
2880         (gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
2881         functions,
2882         (gtk_combo_box_set_model): is now public, updated,
2883         (gtk_combo_box_get_model): small update.
2884
2885         * gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
2886         text_column property is no longer construct only,
2887         (gtk_combo_box_entry_set_text_column): now public,
2888         (gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
2889         new/changed functions.
2890
2891         * tests/testcombo.c: updated.
2892
2893 Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>
2894
2895         Reinstate fixes for (#124212, Marco Pesenti Gritti):
2896         
2897         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
2898         warnings for popups.
2899         (_gtk_menu_is_empty): Return FALSE for non-menus.
2900
2901 Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>
2902
2903         * gtk/gtkcellview.c (gtk_cell_view_finalize): just call
2904         gtk_cell_view_cell_layout_clear instead of trying to free the
2905         structure ourselves here. (#125726, Morten Welinder).
2906
2907 Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
2908
2909         * gtk/gtkfilechooser.[hc]: 
2910         * gtk/gtkentrycompletion.h: Fix parameter name mismatches which
2911         confuse gtk-doc.
2912
2913 2003-11-15  Hans Breuer  <hans@breuer.org>
2914
2915         * gdk/makefile.msc gdk/gdk.def 
2916             gtk/gtk.def gtk/makefile.msc.in : updated
2917         * tests/makefile.msc : added all the new tests
2918
2919         * gtk/gtkfilefilter.c(finalize) : initialize filter
2920         from object not from itself
2921
2922         * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
2923         modified as less as posible to have aworking implementation
2924         on win32. There maybe the desire to merge the unchanged pats into
2925         a common base class.
2926         Also implemented a simple glib based bookmark handling, which
2927         is currently missing in gtkfilesystemunix.[hc] but can be copied
2928         over there.
2929         * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
2930
2931         * gdk/win32/gdkwindow-win32.c : implement 
2932         gdk_window_set_keep_above() and gdk_window_set_keep_below()
2933
2934         * tests/testmerge.c : don't include unistd.h unconditionally,
2935         #define STDOUT_FILENO if it isn't defined
2936
2937         * tests/testfilechooser.c : make it compile on win32
2938
2939 2003-11-15  Tor Lillqvist  <tml@iki.fi>
2940
2941         * gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
2942         maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
2943
2944 Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>
2945
2946         * docs/faq/gtk-faq.sgml: Update the rest of Section 2
2947
2948 Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>
2949
2950         * gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
2951         GTK_DATADIR/{icons,pixmaps} instead of 
2952         GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)
2953
2954 Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>
2955
2956         Changes to improve menu positioning on Xinerama (#108328, #126150):
2957         
2958         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
2959         window of the menuitem to determine the monitor. This fixes some
2960
2961         * gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
2962         to store the monitor on which the menu is to be positioned.
2963
2964         * gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
2965         in the GtkMenuPrivate struct and fetch the monitor geometry after
2966         calling the position_func, in case it has been changed.
2967
2968         * gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
2969         to be used in GtkMenuPositionFunc implementations for setting
2970         the monitor_num field in GtkMenuPrivate.
2971
2972         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
2973         gtk_menu_set_monitor.
2974
2975 Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>
2976
2977         * gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
2978         label for the empty list. String change.  (#95446, Tomas Ögren)
2979
2980 Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>
2981
2982         * gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
2983         the definition of the values.  (#123361, Marco Pesenti Gritti)
2984
2985 Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>
2986
2987         * gdk/gdkkeyuni.c: Map KP_Separator to ','.
2988         (#122941, Egmont Koblinger)
2989
2990 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
2991
2992         *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
2993         opacity entry widget. Change tooltip for opacity widgets. (#126426)
2994
2995 2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>
2996
2997         * gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
2998         affect window menu position when popped from keyboard. (#102660)
2999
3000 Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3001
3002         * gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
3003         are using the old API, make all items "is_important". That way
3004         BOTH_HORIZ will continue to show both icon and label in old API
3005         mode.
3006
3007 Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
3008
3009         * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
3010         Remember the new value in all cases.  (#126276, Damon Chaplin)
3011
3012 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
3013
3014         * demos/gtk-demo/main.c (row_activated_cb): Call the do_
3015         functions with the toplevel as argument.
3016
3017         * demos/gtk-demo/geninclude.pl.in: Change the signature
3018         of GDoDemoFunc to take a widget argument
3019
3020         * demos/gtk-demo/ui_manager.c (do_ui_manager): 
3021         * demos/gtk-demo/tree_store.c (do_tree_store): 
3022         * demos/gtk-demo/textview.c (do_textview): 
3023         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
3024         * demos/gtk-demo/sizegroup.c (do_sizegroup): 
3025         * demos/gtk-demo/pixbufs.c (do_pixbufs): 
3026         * demos/gtk-demo/panes.c (do_panes): 
3027         * demos/gtk-demo/menus.c (do_menus): 
3028         * demos/gtk-demo/list_store.c (do_list_store): 
3029         * demos/gtk-demo/images.c (do_images): 
3030         * demos/gtk-demo/hypertext.c (do_hypertext): 
3031         * demos/gtk-demo/editable_cells.c (do_editable_cells): 
3032         * demos/gtk-demo/drawingarea.c (do_drawingarea): 
3033         * demos/gtk-demo/dialog.c (do_dialog): 
3034         * demos/gtk-demo/colorsel.c (do_colorsel): 
3035         * demos/gtk-demo/changedisplay.c (do_changedisplay): 
3036         * demos/gtk-demo/button_box.c (do_button_box): 
3037         * demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
3038         as argument, and make new windows or dialogs appear on the
3039         same screen.  (#80388)
3040
3041 Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>
3042
3043         * gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
3044         visible-window default to TRUE, as documented and 
3045         implemented. (#126270 Damon Chaplin)
3046
3047 Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>
3048
3049         * gtk/gtkicontheme.c: 
3050         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
3051         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
3052         * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
3053         2.4 additions.
3054
3055 2003-11-07  Federico Mena Quintero  <federico@ximian.com>
3056
3057         Changing GtkFileChooserEntry to use GtkEntryCompletion.
3058
3059         * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
3060         a GtkListStore for the completion list.  Create a
3061         GtkEntryCompletion and attach it to the chooser entry.
3062         (gtk_file_chooser_entry_finalize): Unref the completion store.
3063         (completion_match_func): New callback for the GtkEntryCompletion.
3064         (completion_idle_callback): Fill the completion store with filenames.
3065
3066 Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>
3067
3068         * gtk/gtkwindow.c (gtk_window_set_role): 
3069         * gtk/gtkwindow.c (gtk_window_set_title): 
3070         * gtk/gtkwidget.c (gtk_widget_set_name): 
3071         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
3072         * gtk/gtkbutton.c (gtk_button_set_label): Make string setters
3073         safe for self-assignment.  (#122745, Soeren Sandmann)
3074
3075 Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>
3076
3077         * gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
3078         (#126369, Olexiy Avramchenko)
3079
3080 Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>
3081
3082         * gtk/gtkcolorbutton.c (gtk_color_button_init): 
3083         * gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
3084         consistency of titles.  (#126193, Damon Chaplin)
3085
3086 Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>
3087
3088         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
3089         menus to be transient for the toplevel they were torn off from.
3090         (gtk_menu_get_toplevel): Auxiliary function to find the
3091         toplevel of a menu.  (#54775, Jon-Kare Hellan)
3092
3093 Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>
3094
3095         * gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
3096         min-position and max-position.  (#58431, Padraig O'Briain)
3097
3098 Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>
3099
3100         * gtk/gtkcolorsel.c (update_color): 
3101         (make_label_spinbutton): 
3102         (adjustment_changed): Change the ranges for Saturation and
3103         Value to be 0-100 instead of 0-255, since these axes of HSV
3104         are usually expressed in percent.  (#121519, Gregory Merchan)
3105
3106 Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>
3107
3108         * docs/faq/gtk-faq.sgml: More 2.x updates
3109
3110 Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>
3111
3112         * docs/faq/gtk-faq.sgml: More 2.x updates, fix
3113         pkg-config command error, update copyright.
3114
3115 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
3116
3117         * gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
3118         well.  Use a helper function.
3119         (shortcuts_append_home): Display an error box if necessary.
3120         (shortcuts_append_desktop): Likewise.
3121         (add_bookmark_button_clicked_cb): Likewise.
3122         (gtk_file_chooser_default_select_path): Likewise.
3123         (entry_activate): Likewise.
3124         (shortcuts_append_paths): New helper function.
3125         (shortcuts_append_file_system_roots): Use
3126         shortcuts_append_paths().
3127         (shortcuts_append_bookmarks): Likewise.
3128
3129 Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>
3130
3131         * gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
3132         menu is NULL.
3133         (update_smart_separators): Remove some unneeded ifs.
3134
3135 Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>
3136
3137         * gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
3138         these usable in C++. Forgot this file in my Oct 11 commit.
3139
3140 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
3141
3142         * gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
3143         icon to the "Add bookmark" button.
3144
3145         * gtk/gtkfilesystemunix.c: Mark missing strings for translation.
3146         * gtk/gtkfilesystemmodel.c: Likewise.
3147         * gtk/gtkfilechooser.c: Likewise.
3148         * gtk/gtkfilechooserdefault.c: Likewise.
3149
3150 Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
3151
3152         * gdk/gdk.c: 
3153         * gdk/gdkinternals.h: 
3154         * gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
3155         GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
3156         Xinerama mode when no actual Xinerama setup is found. 
3157
3158 2003-11-03  Federico Mena Quintero  <federico@ximian.com>
3159
3160         * gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
3161         (create_shortcuts_tree): Don't call the above.
3162         (bookmarks_changed_cb): Likewise.
3163         (tree_selection_changed): Unselect everything from the shortcuts
3164         list.  This is the behavior that Mac OS has.
3165         (toolbar_add_item): Return the item.
3166         (toolbar_create): Store the up_button in the impl structure.
3167         (toolbar_check_sensitivity): New function to set the sensitivity
3168         of the "Up" button in the toolbar.
3169         (tree_selection_changed): Call toolbar_check_sensitivity().
3170
3171 2003-11-02  Federico Mena Quintero  <federico@ximian.com>
3172
3173         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
3174         not set a border width for the toplevel container.
3175         (toolbar_create): New function; create a simple toolbar for the
3176         file chooser.
3177         (gtk_file_chooser_default_constructor): Use a spacing of 12 for
3178         the table, as per the HIG.
3179         (gtk_file_chooser_default_init): Likewise, for the default
3180         implementation's vbox.
3181
3182         * gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
3183         note that NULL is a valid return value for the parent path.
3184
3185 Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>
3186
3187         * gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
3188         Change on activation, not selection change (temporary
3189         workaround for #125955, needed for keynav, likely
3190         the right UI anyways.)
3191
3192         * gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
3193         Don't allow the separator node to be selected.
3194
3195         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
3196         Set the focus chain so that the entry gets focused first.
3197         (Not really right after initial focusing, maybe we
3198         should just have a gtk_file_chooser_focus_entry() that
3199         we call from gtk_file_chooser_dialog on creation.)
3200
3201 Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>
3202
3203         * gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
3204         residual call to gtk_window_get_private().
3205
3206 Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>
3207
3208         * gtk/gtkwindow.[ch]: Move above_initially, below_initially
3209         into GtkWindowPrivate structure, fixing ABI breakage
3210         on Win32. (Hans Breuer). Switch GtkWindowPrivate over
3211         to instance-private-data.
3212
3213 Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3214
3215         * gtk/gtktoolbar.c (get_item_requisition): delete this function
3216         (toolbar_item_is_homogeneous): cache max_homogeneous_pixels
3217         instead of re-calculating for each item.
3218         (gtk_toolbar_size_allocate): Update comments
3219
3220 Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3221
3222         * gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
3223         placeholders when include_internals is TRUE.
3224
3225 Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3226
3227         * gtk/gtktoolbar.c (logical_to_physical): Make it work even when
3228         item 0 is a placeholder. (#125826)
3229         * tests/testtoolbar.c: add an assertion that 
3230         gtk_toolbar_get_nth_item (0) != NULL
3231
3232 Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3233
3234         * gtk/gtktoolbar.c (logical_to_physical): Make it work for
3235         logical == 0.(#125826)
3236
3237 Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3238
3239         * gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
3240         return the index of a real item.
3241         (get_nth_item) assert that the returned items is not a
3242         placeholder.  (#125826, Marco Pesenti Gritti).
3243         
3244 2003-10-29  Federico Mena Quintero  <federico@ximian.com>
3245
3246         * gtk/gtkcellrendererseptext.c
3247         (gtk_cell_renderer_sep_text_render): Only paint a separator if the
3248         text is NULL, rather than also doing it if it is an empty string.
3249
3250 Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>
3251
3252         * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
3253         gtk_message_dialog_new_with_format): Allow NULL
3254         for message_format, as described in the docs and
3255         as worked previously. (#125759, Richard Hult)
3256
3257         * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
3258         Use g_markup_vprintf_escaped() to escape arguments.
3259
3260         * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
3261         so there is some way to set literal markup.
3262
3263 Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
3264  
3265         * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
3266         the call to gdk_error_trap_pop() to the right place,
3267         fixing a problem where we'd pop() too many times 
3268         when bailing out. (#123302, Thomas Leonard)
3269         
3270 Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>
3271
3272         * gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
3273         Fix infinite recursion. (#125679, Christian Persch)
3274
3275 Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>
3276
3277         * docs/faq/gtk-faq.sgml: further 2.x updates:
3278         mirrors,compiling,g_main_context_iteration
3279
3280 Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3281
3282         * gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
3283         function; remove gtk_toolbar_highlight_drop_location() and
3284         gtk_toolbar_unhighlight_drop_location().
3285
3286         Also fix bug where the number of overflowed items were miscounted.
3287
3288 Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>
3289
3290         * gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
3291         some accidentally committed duplicate code.
3292
3293 Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
3294
3295         * docs/faq/gtk-faq.sgml: Update info on compiling GTK+
3296
3297 Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>
3298
3299         * gtk/gtkwindow.[ch] (gtk_window_is_active, 
3300         gtk_has_toplevel_focus): Add getters corresponding to
3301         the is_active and has_toplevel_focus properties.
3302         (#122531)
3303
3304 2003-10-28  Mark McLoughlin  <mark@skynet.ie>
3305
3306         * gtk/gtkexpander.c:
3307         (gtk_expander_class_init): hook up the destroy handler.
3308         (gtk_expander_destroy), (gtk_expander_unrealize):
3309         remove the expand/collapse timeout on destroy instead
3310         of unrealize to avoid leaving the expander in a inconsistent
3311         state when unrealizing during animation.
3312         (gtk_expander_start_animation): remove realized check.
3313         (gtk_expander_set_expanded): if the widget isn't realized,
3314         expand immediately.
3315
3316 Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>
3317
3318         * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
3319         do nothing when recipient is NULL, as described in the
3320         doc comment. (#123107, Thomas Leonard)
3321
3322 Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>
3323
3324         * gtk/gtkmain.c (gtk_check_version): Move docs inline,
3325         rewrite docs, mention memory management for the return
3326         value. (Partly addresses #125549, Michael Natterer)
3327
3328 2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>
3329
3330         * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
3331         Change index to filter_index to fix compilation error.
3332
3333         * gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.
3334
3335 Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>
3336
3337         * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
3338         we have RandR support, for XRRUpdateConfiguration declaration.
3339
3340         * gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
3341         declaration.
3342
3343         * gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
3344         length a gsize variable, since that's what g_file_get_contents()
3345         expects.
3346
3347 Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>
3348
3349         * NEWS: Fix attribution for above/below EWMH work.
3350
3351 Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>
3352
3353         * gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
3354         as a construct-only property.  (#125475, Murray Cumming)
3355
3356 Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3357
3358         Fix bug 116297 and 125472
3359         
3360         * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
3361         this function take an index and a GtkToolItem.
3362
3363         * tests/testtoolbar.c (main): Make "Show Arrow" default to
3364         true. Make one of the separators !draw and expand.
3365         Update for new highlight_drop_location() API.
3366
3367         * gtk/gtktoolitem.[ch]: Remove "pack_end" property
3368
3369         * gtk/gtktoolbar.h: Formatting fixes.
3370
3371         * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
3372         separator tool items to expand.
3373         (logical_to_physical, physical_to_logical): Fix off-by-one errors
3374         (Fix #125472, Marco Pesenti Gritti)
3375
3376         * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
3377         (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
3378         return FALSE, not TRUE.
3379         (gtk_separator_too_item_{set|get}_property,
3380         (gtk_separator_tool_item_{set|get}_draw): new functions
3381
3382 Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>
3383
3384         * === Released 2.3.0 ===
3385
3386         * configure.in: Remove a stray comma.
3387
3388         * README.in: Fix a few notes about Xft 1 and pango-1.0.
3389
3390         * NEWS: Finish updates for 2.3.0.
3391
3392         * po/Makefile.in.in: Update to latest GLib version.
3393
3394 Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>
3395
3396         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
3397         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
3398         gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
3399         under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
3400         Sandmann).
3401
3402 Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>
3403
3404         * gtk/gtktreemodelfilter.h: add padding to the class structure.
3405
3406 2003-10-23  Federico Mena Quintero  <federico@ximian.com>
3407
3408         * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
3409         (gtk_file_chooser_remove_filter): Likewise.
3410         (gtk_file_chooser_select_all): Added docs.
3411         (gtk_file_chooser_unselect_all): Likewise.
3412
3413         * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.
3414
3415         * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
3416
3417 Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>
3418
3419         * gtk/gtkfilefilter.c: 
3420         * gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.
3421
3422 Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>
3423
3424         * gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.
3425
3426 Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>
3427
3428         * NEWS: Remove a few duplicates, group the menu changes.
3429
3430 Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>
3431
3432         * NEWS: Updates for 2.3.0; changed header to match the style we used
3433         for 2.1.0.
3434
3435 Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>
3436
3437         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
3438         assign the new leader.  (#125168, Mariano Suarez-Alvarez)
3439
3440 Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>
3441
3442         * gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
3443         gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
3444         gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.
3445
3446 Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3447
3448         * NEWS: Partial update for 2.3.0.
3449
3450 Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>
3451
3452         * gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
3453         GtkComboBox.
3454
3455 Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
3456
3457         * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
3458         gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
3459         gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
3460         Basic framework for the new file selector widget.
3461
3462         * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
3463         gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
3464         Initial implementation of the GtkFileChooser user interface.
3465
3466         * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
3467         for Unix files.
3468
3469         * configure.in gtk/Makefile.am gtk/xdgmime: Build code
3470         for freedesktop.org MIME system on Unix.
3471
3472         * tests/testfilechooser.c: Test program for GtkFileChooser
3473
3474         * tests/prop-editor.c: Add support for properties on interfaces.
3475
3476 Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>
3477
3478         * demos/gtk-demo/menus.c (do_menus): Fix some unused
3479         variables.
3480
3481         * gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
3482         variable warning.
3483
3484 Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>
3485
3486         * NEWS: Partial update for 2.3.0.
3487
3488 Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>
3489
3490         * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
3491         ctrl_pressed and shift_pressed according to the current event
3492         state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
3493
3494 Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>
3495
3496         * gtk/gtkentry.c (gtk_entry_key_press): remove the completion
3497         timeout when the user pressed on Enter/ESC. Fixes the bug where the
3498         completion popup popped up after the user pressed on Enter (which is
3499         just weird). Reported by the Epiphany people (all of them).
3500
3501 Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3502
3503         Add support for OS X like sliding of toolbar items during drag and
3504         drop, (#110919, Dave Bordoley)
3505
3506         Make dnd highlighting the responsibility of the
3507         application. (Fixes #116298, Owen Taylor)
3508
3509         * gtk/gtktoolbar.h: Add prototypes for new API.
3510         
3511         * gtk/gtktoolbar.c
3512         (physical_to_logical, logical_to_physical): new functions
3513         converting between "position including placeholders" and "position
3514         excluding placeholders".
3515         (gtk_toolbar_class_init): remove drag_leave and drag_motion
3516         handlers
3517         (struct _ToolbarContent): new struct containing information
3518         related to toolbar items.
3519         (gtk_toolbar_highlight_drop_location): new public function
3520         (gtk_toolbar_unhighlight_drop_location): new public function
3521         
3522         * tests/testtoolbar.c
3523         (toolbar_drag_motion, toolbar_drag_leave): new functions
3524         (main): connect to dnd signals.  Make the "New" item expand to
3525         make drag and drop more exciting.
3526
3527 Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>
3528
3529         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
3530         _set_active, not _set_active_item.
3531
3532 Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>
3533
3534         * gtk/gtkcombobox.h: add padding to the class structure.
3535         * gtk/gtkcomboboxentry.h: ditto.
3536         * gtk/gtkentrycompletion.h: ditto.
3537
3538 Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>
3539
3540         * gtk/gtkcombobox.c (gtk_combo_box_get_active),
3541         (gtk_combo_box_set_active): mention in the docs that -1 is a valid
3542         value and what it means.
3543
3544         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
3545         item to -1 (default),
3546         (gtk_combo_box_entry_active_changed): do nothing when the index is
3547         < 0.
3548
3549 Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>
3550
3551         * gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
3552         to set the active row by iter.
3553
3554         * gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
3555         to get the active row by iter.
3556
3557 2003-10-13  Federico Mena Quintero  <federico@ximian.com>
3558
3559         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
3560         operations on windows if the tree view is not mapped.
3561         (gtk_tree_view_button_press): Compare equal types of pointers, not
3562         GtkWidget* vs. GtkTreeView*.
3563
3564 Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>
3565
3566         * gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
3567         the reset of first_sel_changed, as after the first popup the treeview
3568         will always have a row selected and will thus not focus_to_cursor.
3569
3570         * gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
3571         whether the keyval should move the completion selection cursor (used
3572         to avoid ending up with extreme cluttered code), also added
3573         all KP_ equivalents of the keys here,
3574         (gtk_entry_completion_key_press): Keynav tweaks based on comments
3575         from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
3576         as possible current selection, implement Home/End keys, modified
3577         the down key to stop cycling. Maybe page up/down should be implemented
3578         at some later time.
3579
3580 Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>
3581
3582         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
3583         as documented when pixmap or mask is NULL.  (#124081) 
3584
3585 Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>
3586
3587         * gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
3588         I was adding the signal block/unblock code. Oops. (Noticed by
3589         Marco Pesenti Gritti).
3590
3591 Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>
3592
3593         * demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
3594         (set_interp_type), (main): port over from option menu to GtkComboBox.
3595
3596 Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>
3597
3598         * tests/testmenus.c: Still uses option menus, so turn off
3599         GTK_DISABLE_DEPRECATED.
3600
3601 Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>
3602
3603         * gtk/gtkalignment.[hc]: 
3604         * gtk/gtkcombobox.[hc]: 
3605         * gtk/gtkcomboboxentry.[hc]: 
3606         * gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
3607         from header to implementation.
3608
3609 Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>
3610
3611         * tests/testtreeview.c: 
3612         * demos/testpixbuf-scale.c: 
3613         * tests/prop-editor.c: These files still use option menus,
3614         so turn off GTK_DISABLE_DEPRECATED to fix the build. 
3615
3616 Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>
3617
3618         * gtk/gtkactiongroup.h: 
3619         * gtk/gtkaction.h: 
3620         * gtk/gtkradioaction.h: 
3621         * gtk/gtkradiotoolbutton.h: 
3622         * gtk/gtkseparatortoolitem.h: 
3623         * gtk/gtktoggleaction.h: 
3624         * gtk/gtktoolitem.h: 
3625         * gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
3626         these usable in C++.  (#124351, Murray Cumming)
3627
3628 Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>
3629
3630         * gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
3631         non-NULL before accessing it. Oops.
3632
3633 Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
3634
3635         * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
3636         (gtk_entry_completion_insert_action_text),
3637         (gtk_entry_completion_insert_action_markup): the gchar* parameters
3638         should be const (pointed out by both Marco Pesenti Gritti and
3639         Murray Cumming (#124356).
3640
3641 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
3642
3643         * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
3644         child list mode, allocate the height allocation->height to the
3645         button instead of the height requested by the button. (Tiny
3646         size allocation screwup noticed by Macro Pesenti Gritti).
3647
3648 Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>
3649
3650         Fixes based on comments from Marco Pesenti Gritti.
3651
3652         * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
3653         signal handler, avoids the completion popup to popup when text is
3654         set programmatically in most cases (we actually have to handle this
3655         in the _editable functions as well, but that will break popping up
3656         when the user actually typed something :),
3657         (gtk_entry_completion_key_press): when handling enter, bail out
3658         when nothing has been selected,
3659         (gtk_entry_completion_changed): don't popdown when the entry content
3660         changed.
3661
3662         * gtk/gtkentrycompletion.c (gtk_entry_completion_init),
3663         (gtk_entry_completion_selected_changed): unselect_all on the
3664         first selected changed signal. Avoids having a default row selected,
3665         (_gtk_entry_completion_popup): don't select the first row by default.
3666
3667         * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
3668         first_sel_changed field.
3669
3670 Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>
3671
3672         * demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
3673         in the intro (again).
3674
3675 Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>
3676
3677         Fixes for (#124212, Marco Pesenti Gritti):
3678         
3679         * gtk/gtkuimanager.c (update_smart_separators): Don't spit 
3680         warnings for popups.
3681         (_gtk_menu_is_empty): Return FALSE for non-menus.
3682
3683 Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
3684
3685         * gtk/gtkcombo.h: Deprecate.
3686         * gtk/gtkoptionmenu.h: Ditto.
3687
3688         * gtk/gtkcombobox.c (gtk_combo_box_size_request),
3689         (gtk_combo_box_size_allocate): Rework, things behave better now. Still
3690         needs some work on requesting enough size when taking the items in
3691         the list into account.
3692
3693         * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
3694         deprecated" guards.
3695         * gtk/gtkinputdialog.c: ditto.
3696         * gtk/gtkitemfactory.c: ditto.
3697         * gtk/gtkoptionmenu.c: ditto.
3698
3699         * demos/gtk-demo/menus.c: remove the option menu.
3700         * demos/gtk-demo/sizegroup.c: replace the option menus with
3701         GtkComboBox.
3702         * demos/gtk-demo/textview.c: ditto.
3703         (A general GtkComboBox demo will be added later on).
3704
3705 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
3706
3707         * demos/gtk-demo/ui_manager.c (activate_radio_action): New
3708         callback to propertly report radio actions.
3709
3710         * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
3711
3712 Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>
3713
3714         * gtk/gtkplug.c (xembed_set_info): Put the supported protocol
3715         version in in the right field of the _XEMBED_INFO property.  
3716         (#123885, Denis Mikhalkin)
3717
3718 Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>
3719
3720         * gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
3721         the child if we have one.
3722
3723         (gtk_expander_button_release): use
3724         gtk_widget_activate instead.
3725
3726 Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>
3727
3728         * gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
3729         "right_attach" with a capital.  (#123945, Christian Rose)
3730
3731 Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>
3732
3733         * tests/testsocket.c (child_read_watch): Remove an
3734         extraneous unref.  (#122336, Frederic Crozat)
3735
3736 Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>
3737
3738         * gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
3739         whitespace in "visible-window" blurb.  (#123910, Christian Rose)
3740
3741 Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3742
3743         * gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
3744         focus arrow before pack_end items (#123851, Matthias Clasen)
3745
3746 Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>
3747
3748         * gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
3749         on ->priv->cell_view if ->priv->cell_view is non-NULL.
3750
3751         * gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
3752         field to GtkComboBoxEntryPrivate,
3753         (gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
3754         (gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
3755         (gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
3756         a construct-only "text_column" property and reorder code to use it
3757         and support inheriting this widget.
3758
3759 Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>
3760
3761         * gtk/gtkcombobox.c: Added API doc comments.
3762
3763         * gtk/gtkcomboboxentry.c: Ditto.
3764
3765 2003-10-02  Matthias Clasen  <maclas@gmx.de>
3766
3767         * gtk/gtktoggleaction.c: Documentation tweaks.
3768
3769 Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>
3770
3771         * gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
3772         packing/attribute/cell data functions from the header,
3773         (gtk_cell_view_set_cell_data): added support for cell data funcs.
3774
3775         * gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
3776         packing/attribute/cell data functions from the header, implemented
3777         cell data func support.
3778
3779         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
3780         for the move to GtkCellLayout.
3781
3782         * tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.
3783
3784 2003-10-01  Matthias Clasen  <maclas@gmx.de>
3785
3786         * gtk/gtkaction.c (gtk_action_class_init): 
3787         (gtk_action_[gs]et_property): Introduce a separate
3788         "hide_if_empty" property for empty menu handling.
3789         (_gtk_action_sync_menu_visible): ...and use it here.
3790
3791         * tests/testmerge.c (main): ...and here.
3792
3793         * gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
3794         comments to pacify gtk-doc.
3795
3796         * gtk/gtkmain.c: Doc formatting tweaks.
3797
3798         * gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.
3799
3800         * gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
3801         Use the same parameter names as in .c file, to pacify gtk-doc.
3802
3803         * gtk/gtktoggletoolbutton.[hc]: 
3804         * gtk/gtktoolbutton.[hc]: 
3805         * gtk/gtktoolitem.[hc]:
3806         * gtk/gtktoolbar.[hc]: 
3807         * gtk/gtkcolorbutton.[hc]: 
3808         * gtk/gtkfontbutton.[hc]: 
3809         * gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
3810         source, not in the header.
3811
3812         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
3813         Document these as 2.4 API additions.
3814
3815 Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>
3816
3817         * gtk/gtkentry.c (gtk_entry_set_completion),
3818         (gtk_entry_get_completion): Add API doc comments.
3819
3820         * gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.
3821
3822 Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>
3823
3824         * gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.
3825
3826 Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>
3827
3828         * gtk/gtktreeviewcolumn.c: Some API doc comment fixes.
3829
3830         * gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!
3831
3832 2003-09-30  Matthias Clasen  <maclas@gmx.de>
3833
3834         * tests/merge-*.ui: 
3835         * tests/testmerge.c: Test handling of empty menus.
3836
3837         * gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
3838         whether a menu is empty. Used in gtkaction.c.
3839         (update_smart_separators): Also update the visibility of empty menus.
3840         (update_node): When creating a new menu proxy, insert an "Empty" menu 
3841         item which only gets shown if the menu is empty. 
3842
3843         * gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
3844         "is_important" for menu proxies.
3845         (_gtk_action_sync_menu_visible): New function to sync the visibility
3846         of menu proxies. Used in gtkuimanager.c.
3847         (gtk_action_sync_visible): New function to sync the visibility of 
3848         proxies.
3849
3850 Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>
3851
3852         * gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
3853         popup_in_progress to TRUE,
3854         (gtk_combo_box_menu_show): and back to FALSE here; the menu now
3855         won't disappear on the first button release. (Reported by Matthias
3856         Clasen).
3857
3858 Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>
3859
3860         * gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.
3861
3862         * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
3863         Marco Pesenti Gritti).
3864
3865 2003-09-30  Murray Cumming  <murrayc@usa.net>
3866  
3867         * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
3868         instead of a GdkWindow*, because that what it is given. The 
3869         documentation was already correct. This should cause no API/ABI
3870         breakage with C compilers.
3871         * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
3872         gtkcellrenderertogger.c: Updated the declarations of the render vfunc
3873         implementation accordingly.
3874
3875 2003-09-30  Matthias Clasen  <maclas@gmx.de>
3876
3877         * gdk/gdkkeys.c (gdk_keymap_class_init): Document the
3878         "direction-changed" and "keys-changed" signals.
3879
3880         * gdk/gdkscreen.c (gdk_screen_class_init): Document the 
3881         "size-changed" signal.
3882
3883         * gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
3884         Document the "display-opened" signal.
3885
3886         * gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
3887         (gdk_display_class_init): Document the "closed" signal.
3888
3889 Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
3890
3891         * gtk/gtktextview.[ch]: rename property tab_moves_focus to
3892         accepts_tab. (#122709 again).
3893
3894 2003-09-27  Matthias Clasen  <maclas@gmx.de>
3895
3896         * gtk/gtkwindow.c (gtk_window_new):
3897         * gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
3898         the fact that the newly created object does not come with 
3899         a floating reference.  (#103068, patch by Frederic Lespez)
3900         
3901         * gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
3902         of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
3903         since GtkActionGroup uses it.
3904
3905         * tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
3906         this test uses the soon-to-be-deprecated GtkItemFactory.
3907
3908         * demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
3909         remove item_factory.c
3910
3911         * demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
3912         using GtkUIManager instead of GtkItemFactory.
3913
3914         * tests/testmerge.c: Demonstrate the use of the 
3915         connect-proxy signal.
3916
3917         * gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
3918         disconnect-proxy signals to do small customizations 
3919         like displaying tooltips in the statusbar without 
3920         custom actions.  (#122894, Philip Langdale)
3921
3922         * gtk/gtkuimanager.c (update_node): Don't leak tooltip.
3923
3924 Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>
3925
3926         Landing the new ComboBox. Note that only gtkcombobox.h and
3927         gtkcomboboxentry.h are public.
3928
3929         * gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
3930         gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.
3931
3932         * gtk/Makefile.am, gtk/gtk.h: adding the new files.
3933
3934         * tests/testcombo.c: and a new test.
3935
3936         * tests/Makefile.am: adding the new test.
3937
3938 2003-09-25  Tor Lillqvist  <tml@iki.fi>
3939
3940         * demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.
3941
3942 2003-09-21  Tor Lillqvist  <tml@iki.fi>
3943
3944         * gdk/win32/gdkevents-win32.c (handle_wm_paint): New
3945         function. Code split out from gdk_event_translate(). Needed
3946         because gdk_event_get_graphics_expose() couldn't do anything
3947         sensible otherwise. (Not that I think graphics exposes work anyway
3948         in gdk/win32, but at least now the code could work.)
3949
3950         (gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
3951         gdk_event_translate(), which couldn't have worked as it doesn't
3952         take any pre-allocated GdkEvent parameter any longer.
3953         
3954         (gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
3955         GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)
3956
3957 2003-09-24  Matthias Clasen  <maclas@gmx.de>
3958
3959         * demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
3960         on toolitems.
3961
3962         * gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.
3963
3964         * gtk/gtkuimanager.c (update_node): Don't complain about missing
3965         actions on popups. Re-set "tooltip" property on toolitems after
3966         adding them to parent to trigger proxy update.
3967
3968 2003-09-22  Matthias Clasen  <maclas@gmx.de>
3969
3970         * tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
3971         group member to test the fix for #122904.
3972
3973         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
3974         Add the action to the group before activating it, otherwise we
3975         may end up with multiple active group members.  (#122904, Marco
3976         Pesenti Gritti)
3977
3978 2003-09-21  Matthias Clasen  <maclas@gmx.de>
3979
3980         Changes to make cross-process merging feasible:
3981         
3982         * gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
3983         merged UI definition. Remove the "changed" signal, since its role
3984         is now filled by "notify::ui". Instead add a "actions-changed" signal
3985         which gets emitted when the set of actions changes.
3986
3987         * gtk/gtktoggleactionprivate.h:
3988         * gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
3989         Add a "draw_as_radio" property to toggle actions so that they can be
3990         used as proxies for radio actions much like the "draw_as_radio" 
3991         property on check menu items enables them to operate as proxies for
3992         radio actions.
3993
3994         Prevent the "show_all" trap for action-based menus (see
3995         http://mail.gnome.org/archives/gtk-devel-list/2003-September/
3996         msg00260.html):
3997
3998         * gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
3999         calls from static functions.
4000
4001         * gtk/gtkuimanager.c (update_node): 
4002         * gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
4003         widgets whose visibility is externally controlled.
4004
4005         * gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
4006         "no_show_all" property with setter and getter. When TRUE, it keeps
4007         gtk_widget_{hide,show}_all() from modifying the visibility of the 
4008         widget and its children.
4009
4010 Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4011
4012         * gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)
4013
4014 2003-09-20  Tor Lillqvist  <tml@iki.fi>
4015
4016         * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
4017         including editor backup files. List files we want explicitly.
4018
4019         * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
4020         calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
4021         LC_ALL, LC_CTYPE and LANG environment variables, than calls
4022         g_win32_getlocale().
4023
4024         (gtk_get_default_language): Code snippet moved to above function,
4025         call it.
4026
4027         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
4028         * gtk/gtkrc.c (gtk_rc_context_parse_file): Call
4029         _gtk_get_lc_ctype() instead of setlocale().
4030
4031 Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4032
4033         * gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
4034         (#96632)
4035
4036 Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4037
4038         * gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
4039         documentation. (#117306, Steve Chaplin)
4040
4041 2003-09-19  Tor Lillqvist  <tml@iki.fi>
4042
4043         * gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
4044         present on the US-International keyboard. For clarity, order
4045         keysyms in case statement according to numeric value.
4046
4047         (gdk_keymap_translate_keyboard_state): Handle Caps Lock
4048         correctly. (#120176, Ken Rastatter and Owen Taylor)
4049
4050 2003-09-18  Matthias Clasen  <maclas@gmx.de>
4051
4052         * gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
4053         unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)
4054
4055         Install accelerators on actions, not on proxies, support
4056         accelerator-only actions:
4057         
4058         * gtk/gtkmenu.c (get_accel_path): New function to get the accel path
4059         and its lock status either via _gtk_widget_get_accel_path() or by 
4060         looking at the accel_path stored in the menu item itself and determining
4061         its lock status by peeking into the contained accel label. This was
4062         already (accidentally) committed a week ago.
4063
4064         * gtk/gtkaction.h (gtk_action_set_accel_group):
4065         (gtk_action_[dis]connect_accelerator): New functions.
4066
4067         * gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
4068         accel_closure and accel_count. We must have a reference to the 
4069         accel_group, since we need it in connect_proxy. The count is necessary
4070         to ensure that the accelerator isn't removed before the last proxy 
4071         requesting it has been unmerged.
4072         (connect_proxy): Connect the accelerator to the 
4073         action now, only set the accel_path on the menuitem.
4074         (remove_proxy): Disconnect the accelerator from the action, not from
4075         the menuitem.
4076         (gtk_action_set_accel_group): Set the accel group. 
4077         (gtk_action_[dis]connect_accelerator): Count the number of times
4078         this functions have been called and install/remove the accelerator if
4079         the count leaves/reaches zero.
4080
4081         * gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
4082         GTK_UI_MANAGER_ACCELERATOR.
4083
4084         * gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
4085         (start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
4086         <accelerator> elements.
4087         (gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
4088         type is GTK_UI_MANAGER_ACCELERATOR.
4089         (update_node): Set the accel group on actions before creating their
4090         proxies. Don't set the accel group on created menus. For 
4091         NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
4092         (print_node): Also emit <accelerator> elements.
4093
4094         * tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 
4095
4096         * gtk/gtkuimanager.c (update_node): Robustness improvements.
4097
4098 2003-09-17  Matthias Clasen  <maclas@gmx.de>
4099
4100         * gtk/gtkuimanager.c (text_handler): Report unexpected character
4101         data as error from the GMarkup parser, otherwise things like
4102         gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
4103         pass unexpectedly.
4104
4105 Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4106
4107         * gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
4108         committed redraw_on_allocate change.
4109
4110 Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>
4111
4112         * gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
4113         stubs to fix compilation
4114
4115         * gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
4116         when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).
4117
4118         * gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
4119         variable. Patch from Marc Welz (#121347).
4120
4121 2003-09-16  Matthias Clasen  <maclas@gmx.de>
4122
4123         * gtk/gtkaction.h: Apply egtk-format-protos.
4124
4125 2003-09-15  Matthias Clasen  <maclas@gmx.de>
4126
4127         * gtk/gtkuimanager.c: Doc tweaks.
4128
4129         Smart separators; see 
4130         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
4131         
4132         * gtk/gtkuimanager.c (update_smart_separators): New function which 
4133         implements "smart" separators by iterating once over the entries of a 
4134         menu, hiding and showing separators as necessary.
4135         (update_node): Mark separators used as fences of placeholders as
4136         hidden. Explicitly added separators are marked as smart. Call 
4137         update_smart_separators after updating a menu or toolbar node. 
4138         Connect update_smart_separators to "notify::visible" signal on menu
4139         and tool items.
4140         
4141         * tests/merge-[12].ui: Test smart separators.
4142
4143         Changes to allow setting action state before connecting signal; see
4144         the thread starting at 
4145         http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
4146         
4147         * gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
4148         (gtk_action_group_add_radio_actions_full): Add value parameter to allow
4149         setting the currently selected group member before connecting signals.
4150         (GtkToggleActionEntry): Separate struct for constructing toggle actions,
4151         including a boolean to initialize the action state before connecting
4152         signals.
4153         (gtk_action_group_add_toggle_actions):
4154         (gtk_action_group_add_toggle_actions_full): New functions to construct
4155         toggle actions from an array of GtkToggleActionEntries.
4156
4157         * demos/gtk-demo/appwindow.c: 
4158         * tests/testactions.c: 
4159         * tests/testmerge.c: Adjust to new action group API.
4160
4161 Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4162
4163         * gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
4164         "gtk-toolbar-arrow" so themes can special-case it.
4165
4166 Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4167
4168         * gtk/Makefile.am (gtk_c_sources): sort the list of files.
4169
4170 Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4171
4172         * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
4173         PangoFontMetrics. Patch from Steve Chaplin (#122257).
4174
4175 2003-09-14  Tor Lillqvist  <tml@iki.fi>
4176
4177         * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
4178         special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
4179         the usefulness of which was already in doubt. Removing it fixes
4180         bugs #118575 and #121851.
4181
4182 Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>
4183
4184         Merge from stable.
4185
4186         * gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
4187         pressed button (used to determine if we want to initiate a drag later
4188         on) if the current grab widget is either NULL or tree_view (Reported
4189         by Jeroen Zwartepoorte).
4190
4191 2003-09-12  Matthias Clasen  <maclas@gmx.de>
4192
4193         * gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
4194         (gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)
4195
4196 2003-09-11  Matthias Clasen  <maclas@gmx.de>
4197
4198         * gdk/gdkpango.c: Doc tweaks.
4199
4200         * tests/testgtk.c: Add table menu tests.
4201
4202         * gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
4203         GtkMenuPrivate struct itself. Pointed out by valgrind.
4204
4205         * gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
4206         properly.  (#121998)
4207
4208 Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>
4209
4210         The table menu patch! Turns GtkMenu into a table, so you can attach
4211         menu items in numerous new ways! Be creative!
4212
4213         Contains some bug fixes and RTL adaptions from Matthias Clasen.
4214
4215         * gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
4216         GtkMenuPrivate, introduce AttachInfo, add child properties enum,
4217         (gtk_menu_free_private), (gtk_menu_get_private): we have to free
4218         the heights array in the private struct,
4219         (gtk_menu_class_init): reorder code a bit, install child properties,
4220         (get_attach_info), (get_child_attach): new utility functions,
4221         (gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
4222         child properties, for the attach info,
4223         (gtk_menu_remove): remove AttachInfo from menu item,
4224         (gtk_menu_real_insert): implemented algorithm to automagically place
4225         inserted menu items at the correct place in the table,
4226         (gtk_menu_size_request), (gtk_menu_size_allocate),
4227         (compute_child_offset): reworked/rewritten to support table menus,
4228         (gtk_menu_attach): new function,
4229         (find_child_containing), (gtk_menu_move_current): new functions to
4230         get table menu keynav right.
4231
4232         * gtk/gtkmenu.h: add gtk_menu_attach() prototype.
4233
4234 2003-09-10  Matthias Clasen  <maclas@gmx.de>
4235
4236         * gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
4237         PropertyNotify events from the stream if they have been handled,
4238         in order to enable extending the plug<->socket communication via
4239         properties.
4240
4241 Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
4242
4243         Big TreeView DnD fixage, makes drops on empty models work, makes
4244         TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
4245         Related bugs #95362 and #113314. I don't want to touch this code
4246         ever again.
4247
4248         * gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
4249
4250         * gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
4251         for selection_data->length.
4252
4253         * gtk/gtktreeview.c (struct DestRow), (dest_row_free),
4254         (set_dest_row), (get_dest_row): we don't store just the row ref
4255         anymore, but a struct with the row ref and additional info,
4256         (set_destination_row): handle drops on empty space and some
4257         style fixes,
4258         (get_logical_dest_row): also return path_down_mode/drop_append_mode
4259         flags, handle dropping childs on their new parents, rewrite
4260         drop append handling into something saner,
4261         (gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
4262         spaces,
4263         (gtk_tree_view_drag_drop): updates for updated backend,
4264         (gtk_tree_view_drag_data_received): updates for updated backend,
4265         path down mode (treestore DnD) handling,
4266         (gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
4267         when we are trying to drop a row on an empty model,
4268         (gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
4269
4270         * gtk/gtkliststore.c (gtk_list_store_drag_data_received),
4271         (gtk_list_store_row_drop_possible): style and drop-append fixes.
4272
4273         * gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
4274
4275 2003-09-08  Alexander Larsson  <alexl@redhat.com>
4276
4277         * gtk/gtkeventbox.[hc]:
4278         Implement gtk_event_box_get/set_input_only()
4279         
4280         * tests/testgtk.c:
4281         Tests for the new input only event boxes
4282
4283 Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>
4284
4285         Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
4286
4287         * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
4288         the call to gtk_tree_model_filter_add_root,
4289         (gtk_tree_model_filter_row_changed): bail out if c_path is not above
4290         the virtual root, allow building levels on the second try to convert
4291         the child path to a filter path,
4292         (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
4293         root when calling gtk_tree_model_filter_elt_get_path.
4294
4295 2003-09-07  Matthias Clasen  <maclas@gmx.de>
4296
4297         * gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
4298         Josh Beam)
4299
4300         Fixes for accelerator handling during (un)merging:
4301         
4302         * gtk/gtkuimanager.c (update_node): Move setting info-action
4303         after the switch, since the old action is needed in some cases.
4304         In cases of proxy type mismatch, disconnect the old proxy from
4305         the old action.
4306
4307         * gtk/gtkaction.c (remove_proxy): Renamed from 
4308         gtk_action_remove_proxy(). Move unsetting of the accelerator
4309         here from disconnect_proxy() in order to catch all cases of 
4310         removing a proxy.
4311         (gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
4312         to fail if proxy isn't a proxy of action.
4313
4314 2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>
4315
4316         * configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
4317         ALL_LINGUAS
4318
4319 2003-09-07  Matthias Clasen  <maclas@gmx.de>
4320
4321         * gtk/gtkaction.c (disconnect_proxy): Make disconnect work
4322         for toolitems.
4323
4324 2003-09-06  Matthias Clasen  <maclas@gmx.de>
4325
4326         * gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
4327         prev_action, not from action.  (Fix by David Hampton)
4328
4329 Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
4330  
4331         * Back out locale-dependent interpretation of
4332         KP_Decimal, the official XFree86 interpretation
4333         is that KP_Decimal => . KP_Separator => ,
4334         always, independent of locale. 
4335         (#105161, Frederic Crozat, 
4336         http://bugs.xfree86.org/show_bug.cgi?id=534)
4337  
4338 2003-09-04  Matthias Clasen  <maclas@gmx.de>
4339
4340         * tests/testmerge.c: Test buttons and toggle buttons as proxies.
4341
4342         * gtk/gtktoggleaction.c (connect_proxy): 
4343         (gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
4344         that a "draw_as_radio" property is needed for check buttons similar to 
4345         check menu items, in order to fully support button proxies for radio actions.
4346
4347         * gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.
4348
4349         * tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 
4350
4351         * gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
4352         'type' argument of gtk_ui_manager_add_ui().
4353
4354         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
4355         to make this function as powerful as the XML methods of adding UI.  (#120647)
4356
4357 Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>
4358
4359         Merge from stable.
4360
4361         * docs/RELEASE-HOWTO: updates.
4362
4363 2003-09-04  Matthias Clasen  <maclas@gmx.de>
4364
4365         * tests/merge-2.ui: Use "position" instead of "pos".
4366
4367         * gtk/gtkuimanager.c (start_element_handler): No need 
4368         to be terse: Change the name of the "pos" attribute
4369         to "position".
4370
4371 2003-09-04  Matthias Clasen  <maclas@gmx.de>
4372
4373         * gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
4374         GtkUIManagerNode to shorten the names and to make the
4375         GTK_UI_MANAGER_<TYPE> names available for a public enum.
4376
4377         * gtk/gtkactiongroup.c:
4378         * gtk/gtkuimanager.c: Various doc tweaks.       
4379
4380         * gtk/gtkuimanager.c (start_element_handler):
4381         (end_element_handler): Improve error reporting. 
4382
4383 Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>
4384
4385         Merge from stable.
4386
4387         * gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
4388         use end_position - page_size instead of G_MAXINT, since
4389         gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
4390         reported by Havoc Pennington).
4391
4392 Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>
4393
4394         Merge from stable.
4395
4396         * gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
4397         unref it. (Fixes memleak, patch from Kjartan Maraas).
4398
4399 Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>
4400
4401         * gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
4402         gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
4403         gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
4404         gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
4405         gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
4406         gtk/gtktypeutils.h: big patch from Kjartan Maraas
4407         to fix numerous typos.
4408
4409 Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>
4410
4411         * docs/faq/gtk-faq.sgml: Correct compile line for threads example.
4412
4413 2003-09-02  Tor Lillqvist  <tml@iki.fi>
4414
4415         * gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
4416         CloseHandle() on the HMODULE returned from GetModuleHandle().
4417         Didn't cause any harm, but didn't do anything useful either. When
4418         running a GTK+ program under MS's debugger, the CloseHandle() call
4419         would cause a "first-chance exception" in ntdll.dll to show up.
4420         (The exception is caught appropriately if you let it proceed, but
4421         it confuses the person using the debugger). Thanks to Bruce
4422         Hochstetler for noticing.
4423
4424 Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>
4425
4426         Merge from stable.
4427
4428         * gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
4429         to only select when button 1 is pressed introduced in the fix of
4430         bug #120187.
4431
4432 2003-09-02  Matthias Clasen  <maclas@gmx.de>
4433
4434         * gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.
4435
4436         * gtk/gtkuimanager.c: Shorten the names of some static 
4437         functions.
4438
4439         Support adding and removing merge nodes dynamically (#120647, 
4440         Anders Carlsson):
4441         
4442         * gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
4443         gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
4444         and made it public.
4445         (gtk_ui_manager_add_ui): New function to add UI elements
4446         without juggling XML fragments, currently restricted to menuitems,
4447         toolitems and separators. Actions still come from registered 
4448         action groups.
4449
4450 Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4451
4452         * gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
4453         background pixmap was being offset twice, once by the ts_origin in
4454         gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().
4455
4456 2003-09-01  Matthias Clasen  <maclas@gmx.de>
4457
4458         * gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
4459         this public again, since it's occasionally useful.  (#121128,
4460         Marco Pesenti Gritti)
4461
4462         * gtk/gtkaction.c: Add an "is_important" property and propagate
4463         it to toolitem proxies.  (#121058, Marco Pesenti Gritti)
4464
4465 Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4466
4467         * tests/testtoolbar.c (main): connect to "delete_event" so the
4468         application will actually quit when you close the window
4469
4470 2003-09-01  Matthias Clasen  <maclas@gmx.de>
4471
4472         * gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
4473         (gtk_ui_manager_get_action): g_return_if_fail() if
4474         path is NULL.
4475         (gtk_ui_manager_get_node): Avoid a segfault if path is empty.
4476         (gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
4477         Marco Pesenti Gritti)
4478
4479 2003-08-31  Matthias Clasen  <maclas@gmx.de>
4480
4481         * gtk/gtktoolitem.c: Fix some typos in docs.
4482
4483         * gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
4484         replaces gtk_ui_manager_activate().  (#120658)
4485
4486         * tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
4487         gtk_ui_manager_activate().
4488
4489         * gtk/gtkaction.c: 
4490         * gtk/gtkactiongroup.c: Some doc tweaks.
4491
4492         * gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
4493         wasn't emitted anyway. Some doc tweaks.
4494
4495 2003-08-30  Matthias Clasen  <maclas@gmx.de>
4496
4497         * tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
4498         rather than to "remove" on handlebox. 
4499
4500         * gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
4501         activate an action found by following a path.  (#120658)
4502
4503         * tests/testmerge.c: Add a button to test gtk_ui_manager_activate().
4504
4505         * tests/testmerge.c (add_widget): Put toolbars in handleboxes.
4506
4507         * gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
4508         setter and getter. If it is set, add tearoff menu items to regular 
4509         menus, but not to popups. Add a signal "changed", which gets emitted
4510         when the merged ui has changed.  (#120649, #120656)
4511
4512         * tests/testmerge.c: Add button to test the generation of tearoff 
4513         menu items.
4514
4515 2003-08-29  Matthias Clasen  <maclas@gmx.de>
4516
4517         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
4518         Actually group the actions together rather than putting each in its 
4519         own group.
4520
4521         * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
4522         proxy menu items for radio actions.
4523
4524         * gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
4525
4526 Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4527
4528         * gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
4529         Fix use of uninitialized variable.
4530
4531         * gtk/gtktextutil.c
4532         (_gtk_text_util_append_special_char_menuitems): add const cast to
4533         get rid of warning
4534
4535 2003-08-29  Matthias Clasen  <maclas@gmx.de>
4536
4537         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
4538         "draw_as_radio" as a separate property, not as an alias of 
4539         "inconsistent".
4540         (gtk_check_menu_item_get_property): 
4541         (gtk_check_menu_item_set_property): Also support "draw_as_radio".
4542
4543 Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4544
4545         * gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
4546         are narrower than 13 time the estimated character width of the
4547         font. (#107781, David Bordoley)
4548
4549         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
4550         here if the GtkToggleButton is active. This may be the case if it
4551         is a radio button.
4552
4553         * gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
4554         vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
4555         Suarez-Alvarez).
4556
4557         * gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
4558         property. (#111207, David Bordoley).
4559
4560         * gtk/gtktoggletoolbutton.c
4561         (gtk_toggle_tool_button_create_menu_proxy): use new
4562         "draw_as_radio" property on the menu item when the item is a radio
4563         tool button
4564
4565         * gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
4566         to only pay attention to the "use_underline" property when the
4567         button label comes from the "label" property.
4568
4569 2003-08-29  Laurent Dhima  <laurenti@alblinux.net>
4570
4571         * configure.in: Added "sq" to ALL_LINGUAS.
4572         
4573 2003-08-28  Matthias Clasen  <maclas@gmx.de>
4574
4575         * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
4576         fix in the docs.
4577
4578         * gtk/gtkuimanager.c: Change the XML format:
4579         <Root> element is replaced by <ui>,
4580         <menu> element is replaced by <menubar>,
4581         <submenu> element is replaced by <menu>,
4582         <dockitem> element is replaced by <toolbar>,
4583         <popups> element is gone,
4584         verb attribute is replaced by action,
4585         name defaults to action or the element name. 
4586
4587         * gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
4588         GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
4589         by removing the user_data, entry_type and extra_data fields, 
4590         GtkRadioActionEntry is further simplified by removing the callback. 
4591         The user_data can now be specified as an argument to 
4592         gtk_action_group_add_actions(). There is a new method 
4593         gtk_action_group_add_radio_actions(), which is similar to 
4594         gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
4595         and a callback parameter in addition to the user_data. The callback
4596         is connected to the ::changed signal of the first group member.
4597         There are _full() variants taking a GDestroyNotify of 
4598         gtk_action_group_add_[radio_]actions().
4599
4600         * gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
4601         on every member of the radio group when the active member is changed. 
4602         Add an integer property "value", and a getter for the value of "value"
4603         on the currently active group member. 
4604
4605         * tests/testactions.c: 
4606         * tests/testmerge.c: 
4607         * tests/merge-[123].ui:  
4608         * demos/gtk-demo/appwindow.c: Adjust to these changes.
4609
4610         * gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
4611
4612 2003-08-27  Anders Carlsson  <andersca@gnome.org>
4613
4614         * demos/gtk-demo/appwindow.c (do_appwindow): Focus the
4615         text view, so the tool bar won't have focus.
4616
4617 Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
4618
4619         * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
4620         declaration not at start of block. (#120371, Damien Carbery)
4621
4622 2003-08-26  Matthias Clasen  <maclas@gmx.de>
4623
4624         * gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
4625         for length, not gsize.
4626
4627         * gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
4628         <ui> and make it optional in strings. Rename verb to action, <dockitem> 
4629         to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
4630
4631         * demos/gtk-demo/appwindow.c: 
4632         * tests/testactions.c: 
4633         * tests/testmerge.c:
4634         * tests/merge-1.ui:
4635         * tests/merge-2.ui:
4636         * tests/merge-3.ui: Adjust to the new XML format.
4637
4638 Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
4639
4640         * gtk/gtktextview.c (gtk_text_view_update_layout_width): 
4641         Since we add one to the layout's reported width to
4642         account for the cursor, we need to subtract one when
4643         setting the wrap width for the layout. (Fixes infinite
4644         loop (#120325, Frederic Crozat)
4645
4646         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
4647         Be a bit more careful about rounding when converting
4648         wrapped width from Pango units to pixels.
4649
4650 2003-08-26  Matthias Clasen  <maclas@gmx.de>
4651
4652         Rename GtkMenuMerge to GtkUIManager. 
4653         
4654         * gtk/gtkuimanager.[hc]: New files. 
4655         * gtk/gtkmenumerge.[hc]: Removed. 
4656
4657         * gtk/Makefile.am: 
4658         * gtk/gtk.h:
4659         * tests/testmerge.c: 
4660         * tests/testactions.c: 
4661         * demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
4662         GtkUIManager.
4663
4664         * demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
4665         add comments to entries array, remove newlines from ui definition. Don't 
4666         use the ::add_widget signal.
4667
4668 Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
4669
4670         * gtk/gtknotebook.c (gtk_notebook_forall): Don't
4671         include page->menu_label - causes various problems,
4672         including #12047.
4673
4674 Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
4675
4676         Merge from stable.
4677
4678         Fixes #115871, reported by Michael Natterer.
4679
4680         * gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
4681         added ctrl_pressed and shift_pressed bitfields,
4682         (_gtk_tree_selection_internal_select_node): replace GdkModifierType
4683         arg with GtkTreeSelectMode.
4684
4685         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
4686         (gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
4687         (_gtk_tree_selection_internal_select_node): all updated for
4688         GdkModifierType -> GtkTreeSelectMode move.
4689
4690         * gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
4691         and shift_pressed around selection handling block,
4692         (gtk_tree_view_real_select_cursor_row),
4693         (gtk_tree_view_real_toggle_cursor_row),
4694         (gtk_tree_view_real_selection_cursor_parent),
4695         (gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
4696         instead of checking the event state. And also updates for the
4697         GdkModifierType -> GtkTreeSelectMode move.
4698
4699 Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
4700
4701         * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
4702         to the parent when there was no focus widget before
4703         and no focus widget after - that is, when there are
4704         no focusable widgets. (#108678, help tracking it
4705         down from Padraig O'Briain, Federico Mena Quintero, )
4706
4707         * gtk/gtkxembed.[ch]: Move various shared utilities
4708         for the XEMBED protocol eused by GtkPlug and GtkSocket 
4709         here.
4710
4711         * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
4712         a flag bit that is sent with focus mesages to indicate
4713         that the focus has wrapped around on the toplevel;
4714         use this bit to catch infinite loops when there is no
4715         focusable widget at ll in the entire toplevel.
4716
4717         * tests/testsocket.c (child_read_watch): Remove an
4718         extraneous unref.
4719
4720         * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
4721         Up XEMBED protocol version to 1, add logic for 
4722         sending the right version in XEMBED_EMBEDDED_NOTIFY.
4723
4724         * gtk/gtksocket.c (gtk_socket_add_window): Send
4725         the embedder window in the XEMBED_EMBEDDED_NOTIFY
4726         as the spec requires.
4727
4728 Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
4729
4730         * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
4731         NumLock handling for non-XKB. Add a special case
4732         hack for NumLock on Sun servers. (Patch from
4733         Robert Basch, #115819)
4734
4735 2003-08-25  Matthias Clasen  <maclas@gmx.de>
4736
4737         * gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
4738         Welinder)
4739
4740         * gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
4741         gtk_action_group_set_translation_domain): Hooks for translation of
4742         label and tooltip in GtkActionGroupEntries.  (#120620)
4743
4744 2003-08-25  Matthias Clasen  <maclas@gmx.de>
4745
4746         * gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
4747         values properly. Sorry about the resize grip trouble, Owen.  (#120621)
4748         
4749         * gtk/gtkactiongroup.c: 
4750         * demos/gtk-demo/appwindow.c: 
4751         * tests/testmerge.c: 
4752         * tests/testactions.c: Use new GtkActionGroupEntryType enum.  
4753
4754 Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
4755
4756         * gtk/gtk.h: Remove reference to gtkresizegrip.h.
4757
4758 Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
4759
4760         * gtk/Makefile.am: Fix accidental commit of references
4761         to gtkresizegrip.[ch]
4762
4763 Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
4764
4765         * gtk/gtkrc.c: Fix some missing initializations of
4766         rc_file->directory.
4767
4768 2003-08-24  Matthias Clasen  <maclas@gmx.de>
4769
4770         * gtk/gtkaction.[ch]: 
4771         * gtk/gtktoggleaction.[ch]: 
4772         * gtk/gtktoggleactionprivate.h: 
4773         * gtk/gtkradioaction.[ch]: 
4774         * gtk/gtkactiongroup.[ch]: 
4775         * gtk/gtkmenumerge.[ch]: A model-view separation for menus and
4776         toolbars, using the EggMenu code by James Henstridge.
4777
4778         * gtk/gtk.h: Include new headers.
4779         * gtk/Makefile.am: Add new files.
4780
4781         * tests/testactions.c: Test for actions.
4782         * tests/testmerge.c: Test for menu merging.
4783         * tests/merge-[123].ui: Test data for testmerge. 
4784         * tests/Makefile.am: Add testactions and testmerge.
4785
4786         * demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
4787         menubar and toolbar.
4788         
4789 Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
4790  
4791         * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
4792         problem where rc_file->directory wasn't always getting
4793         set. (#120549, Luis Villa)
4794  
4795 2003-08-22  Christian Rose  <menthos@menthos.com>
4796
4797         * configure.in: Added "ne" to ALL_LINGUAS.
4798
4799 Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
4800  
4801         * gtk/gtkrc.c: Keep a list of current GtkRcFiles
4802         being parsed, not just the directories for those
4803         files. Use that to catch recursion. (Part of
4804         #114988)
4805  
4806 Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
4807
4808         Merge from stable.
4809
4810         Fix option menu scrolling (#119821, Owen Taylor).
4811
4812         * gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
4813         by #80484 and the CLAMP,
4814         (get_menu_height): new function,
4815         (gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
4816         new_offset to handle page up/down right.
4817
4818 Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>
4819
4820         * gdk/x11/gdkkeys-x11.c: Change the interpretation
4821         of consumed_modifiers so that it contains:
4822          - Modifiers combinations actually found in
4823            state.
4824          - Single modifier modifier combinations.
4825         But not multi-modifier combinations that aren't
4826         in event->state. Document. (#100439)
4827
4828 Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>
4829
4830         Slightly modified patch from Yann Rouillard to improve selection
4831         behavior with the mouse. Fixes #120187.
4832
4833         * gtk/gtktreeview.c (gtk_tree_view_button_press): only
4834         select/deselect items on the first button press of button 1,
4835         expand checks for row_activated to include triple clicks.
4836
4837 Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
4838
4839         Merge from stable.
4840
4841         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
4842         approximate digit widths up, to avoid truncation, convert to
4843         pango pixels when we have the full string width instead of converting
4844         the approx digit width to pango pixels, take inner border and
4845         interior focus into account correctly. (Fixes #116368, patch from
4846         Morten Welinder).
4847
4848 2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
4849
4850         * gtk/queryimmodules.c: Don't look at the same directory twice (in
4851         simple cases). (#120342)
4852
4853 Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
4854
4855         * gdk/gdkwindow.c: Make the layers in the paint stack have their
4856         own pixmap instead of sharing one. (#118317)
4857
4858         * tests/testgtk.c (create_get_image): Fixes to make the window fit
4859         on an 800x600 screen
4860
4861 Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>
4862
4863         Merged from stable.
4864
4865         * gtk/gtkspinbutton.c (start_spinning): change the type of step
4866         to gdouble, since it gets it's data from a gdouble (Fixes #113547).
4867
4868 Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>
4869
4870         * modules/input/gtkimcontextxim.[ch]: Substantially
4871         rework the handling of status windows:
4872         
4873          - Store the current StatusWindow in the 
4874            GtkIMContextXIM structure and vice-versa, so we
4875            don't have to hunt the window hierarchy on
4876            cleanup.
4877          - Use the Gtkidget hierarchy instead of/or as well
4878            as the GdkWindow hierarchy when finding the toplevel;
4879            this helps for things like GtkHandlebox
4880          - Watch GtkWidget::hierarchy_changed to catch 
4881            changes in the toplevel without changes in the
4882            GdkWindow (reparenting)
4883          - Never create the GtkWindow for the status window
4884            unless we have text to display.
4885          - Various cleanups, add lots of comments.
4886
4887         (#115077, much help from Takuro Ashie and Hidetoshi
4888         Tajima in tracking this down and figuring out a fix.)
4889
4890         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 
4891
4892         * modules/input/gtkimcontextxim.c: Track the current
4893         screen for each toplevel so that we show the status
4894         window on the right screen. (#116340, James Su)
4895
4896         * modules/input/gtkimcontextxim.c: If create a new IC
4897         when we currently have the focus, call XSetICFocus()
4898         on it.
4899         
4900         * modules/input/gtkimcontextxim.c (get_im): Fix bug
4901         with multiple open screens.
4902
4903 Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>
4904
4905         * gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
4906         Replace client_window field with 'priv' pointer,
4907         retaining binary compatibility.
4908
4909         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
4910         save use_preedit/cursor_location/focus status and set
4911         up the new slave appropriately. (#118651, Botond Botyanszki)
4912
4913 Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>
4914
4915         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
4916         Don't use impl->position_info.clip_rect for toplevels.
4917         (#107068, reported by Thomas Mirlacher)
4918
4919 Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>
4920
4921         * gdk/x11/gdkdrawable-x11.c (convert_to_format): 
4922         Add a fallback for unaligned source data for
4923         FORMAT_ARGB_MASK. (#117217)
4924
4925 Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>
4926
4927         * configure.in: Rework handling of REBUILD_PNGS,
4928         so that we also don't try to REBUILD_PNGS when
4929         cross-compiling and there is no gdk-pixbuf-csource.
4930         But give an error if gtk/stock-icons/gtkstockpixbufs.h
4931         is not in the source tree. (Note that REBUILDS_PNG
4932         was set backwards before, which is why you always
4933         had to manually recreate gtkstockpixbufs.h!)
4934
4935 Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>
4936
4937         * gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
4938         path to libgtk.la. (#120080, Benedikt Spranger)
4939
4940 Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>
4941
4942         * modules/input/imcedilla.c: Make the list of default
4943         languages more comprehensive. (Suggestion of
4944         Fco. Javier F. Serrador)
4945
4946 Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>
4947
4948         * gdk/gdk.c (gdk_arg_context_parse): Fix broken 
4949         parentheses when skipping args.
4950
4951 Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>
4952
4953         Fix major bug in row ref handling, so the new combo box
4954         will actually work right (:. Bug #107748. Patch written
4955         with help from Tim Janik.
4956
4957         The basic idea is to update the row refs in a closure,
4958         before the actual signal is emitted (rather than having
4959         the model connect signal handlers).
4960
4961         * gtk/gtktreemodel.c (gtk_tree_model_base_init): change
4962         g_signal_new calls for row_inserted, row_deleted and
4963         rows_reordered to use the new marshallers,
4964         (row_inserted_marshall), (row_deleted_marshall),
4965         (rows_reordered_marshall): the new marshallers,
4966         (gtk_tree_row_ref_inserted_callback): renamed to
4967         gtk_tree_row_ref_inserted since it isn't a callback
4968         anymore and gets called by the marshaller now,
4969         (gtk_tree_row_ref_deleted_callback): likewise,
4970         (gtk_tree_row_ref_reordered_callback): likewise,
4971         (connect_ref_callbacks), (disconnect_ref_callbacks):
4972         removed,
4973         (gtk_tree_row_reference_new_proxy),
4974         (gtk_tree_row_reference_free),
4975         (gtk_tree_row_reference_inserted),
4976         (gtk_tree_row_reference_deleted),
4977         (gtk_tree_row_reference_reordered): updated.
4978
4979 Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>
4980
4981         Improve Cedilla handling - based on a patch from Gustavo 
4982         De Nardin, #111334
4983
4984         * modules/input/imcedilla.c po/POTFILES.in: Input method that 
4985         produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
4986         dead_acute+c combinations. Make this the default for
4987         fr and pt.
4988
4989         * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
4990         Use LC_CTYPE instead of LC_MESSAGES to pick the default
4991         input method.
4992
4993 Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>
4994
4995         * gtk/gtkimcontextsimple.c: Fix missing compose sequence
4996         for Multi_key+c+apostrophe.
4997
4998 Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>
4999
5000         Merged from stable.
5001
5002         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
5003         on vertical scrolling. (#108035, reported by Tim Janik).
5004
5005 Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>
5006
5007         Merged from stable.
5008
5009         * gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
5010         (gtk_tree_model_sort_level_find_insert),
5011         (gtk_tree_model_sort_insert_value): fix off-by-one error.
5012         (#109292 continued, patch from Yann Rouillard).
5013
5014 Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>
5015
5016         (Note: This is not exactly the same as the patch which went in
5017          gtk-2-2).
5018
5019         * gtk/gtktreeview.c (gtk_tree_view_class_init),
5020         (gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
5021         Also support the up, down, left, right, home, end, page up and
5022         page down keys on the numpad. (#119419, reported by Alex Larsson).
5023
5024 Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>
5025
5026         Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):
5027
5028         * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
5029         we link libgtk against X explicitely, since we
5030         make GTK+ calls for plug/socket.
5031
5032         * gtk/queryimmodules.c: Use USE_LA_MODULES and 
5033         G_MODULE_SUFFIX here. 
5034
5035         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
5036         XShmPutImage with #ifdef USE_SHM.
5037
5038 Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>
5039
5040         * gtk/gtkfilesel.c (gtk_file_selection_populate):
5041         Don't reposition the cursor when we aren't trying
5042         to complete. (Fixes problems with selection on
5043         startup, #108433, reported by Mark Finlay.)
5044
5045         * gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
5046         code that tried to position the cursor after the common
5047         prefix when there was one, it wasn't working, and
5048         would be hard to fix. Just always put the cursor
5049         at the end when completing.
5050
5051 Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>
5052
5053         * gtk/gtkfilesel.c (get_current_dir_utf8): If getting
5054         the current directory fails because of encoding
5055         conversion problems, walk up textually to parent
5056         directories until we can convert. (#113627)
5057
5058 Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>
5059
5060         * gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
5061         Remove usage of menu_shell->ignore leave which was
5062         to deal with stray events we no longer get because
5063         we do grabbing differently. Comment it as unused in
5064         the header. (#115837, Keith Bissett)
5065
5066 Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>
5067
5068         * gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
5069         Fix some places that weren't properly Xinerama-ified.
5070
5071         * gtk/gtkmenu.c: Fix problem with windows that scroll
5072         at the top of the screen.
5073
5074 Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>
5075
5076         * gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
5077         key-press-event on the entry, so input methods get access to 
5078         key presses before GtkCombo customization.
5079         (#115451, Botond Botyanszki)
5080
5081 2003-08-13  Anders Carlsson  <andersca@gnome.org>
5082
5083         * tests/testtoolbar.c: (set_important_func), (important_toggled),
5084         (create_items_list):
5085         Add an important column.
5086         
5087 Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>
5088
5089         * gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
5090         against reentrancy from ::focus-out handlers. 
5091         (#118129, Felipe Heidrich)
5092
5093 Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>
5094
5095         * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
5096         GDK_LOCK_MASK before calling
5097         gdk_keymap_translate_keyboard_state so bindings 
5098         and accelerators are independent of the Caps-lock
5099         key. (#115384, reported by Toni Willberg)
5100
5101 Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>
5102
5103         * gdk/x11/gdkevents-x11.c (get_real_window): Add missing
5104         break statements (#119494, Soeren Sandmann)
5105
5106 Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>
5107
5108         * gtk/gtkwidget.h: Mark parent public as well; it's
5109         extensively accessed in existing code, so there is
5110         no advantage in making people use get_parent().
5111         (Tweak to #119463 fix)
5112
5113 2003-08-11  Matthias Clasen  <maclas@gmx.de>
5114
5115         Add support for EWMH "Above" and "Below" window states.  (105100,
5116         Manuel Clos)
5117         
5118         * tests/testgtk.c: Add "Above" and "Below" to the the "Window
5119         State" demo.
5120
5121         * gtk/gtkwindow.h: Add gtk_window_set_keep_above and
5122         gtk_window_set_keep_below.
5123
5124         * gtk/gtk.def: Add gtk_window_set_keep_above and
5125         gtk_window_set_keep_below.
5126
5127         * gtk/gtkwindow.c (gtk_window_set_keep_below):
5128         (gtk_window_set_keep_above): New functions, call the corresponding
5129         gdk functions.
5130
5131         * gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
5132         function, sets _NET_WM_STATE_BELOW.
5133         (gdk_window_set_keep_above): New function, sets
5134         _NET_WM_STATE_ABOVE.
5135
5136         * gdk/gdkwindow.h: Add gdk_window_set_keep_above and
5137         gdk_window_set_keep_below.
5138
5139         * gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
5140         GDK_WINDOW_STATE_BELOW.
5141
5142         * gdk/gdk.def: Add gdk_window_set_keep_above and
5143         gdk_window_set_keep_below.
5144
5145         * acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
5146         JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
5147         xmlcatalog in PATH.  (#119115)
5148
5149 2003-08-10  Matthias Clasen  <maclas@gmx.de>
5150
5151         * gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
5152         public.  (#119463)
5153
5154 2003-08-09  Noah Levitt  <nlevitt@columbia.edu>
5155
5156         * gdk/gdkevents.h:
5157         * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
5158         docs on GdkFilterFunc and GdkFilterReturn.
5159
5160 2003-08-09  Matthias Clasen  <maclas@gmx.de>
5161
5162         * gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
5163         to let the mouse wheels select the month. Scrolling down
5164         moves forward in time. (#53134, Abigail Brady) 
5165
5166         * gtk/gtkcalendar.c: Complete the RTL flipping support for
5167         GtkCalendar, make it possible to flip the headings using the
5168         "magic translated string" technique.  Translators, note the
5169         comment in gtk_calendar_init() explaining this.  (#102416)
5170
5171         * gtk/gtkcalendar.c: Get the information about the first day of
5172         the week from the locale using another instance of the "magic
5173         translated string" technique.  Ignore the display option
5174         GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)
5175
5176         * gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
5177         date is dragged as text, formatted via strftime %x. Text drops are
5178         accepted if g_date_set_parse() can make sense of the text. A
5179         dedicated data format for date DND has not been introduced yet,
5180         since there didn't seem to be sufficient consensus on such a
5181         format on xdg-list.  (#117297)
5182         
5183 2003-08-08  Matthias Clasen  <maclas@gmx.de>
5184
5185         * gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
5186         Fix a segfault.  (#115284, Jan Kratochvil)
5187
5188 2003-08-08  Tor Lillqvist  <tml@iki.fi>
5189
5190         * gdk/win32/gdkevents-win32.c (print_event): Print also the root
5191         coordinates for events that have such. Print coordinates for enter
5192         and leave events.
5193
5194         (gdk_event_translate): Don't use event uninitialixed in the
5195         return_exposes branch of the WM_PAINT handler.
5196
5197         * gdk/win32/gdkwindow-win32.c (gdk_window_new,
5198         _gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
5199         Must offset top-level window coordinates here, too.
5200
5201 2003-08-08  Matthias Clasen  <maclas@gmx.de>
5202
5203         * demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
5204         when maximized or fullscreen.
5205
5206 2003-08-07  Tor Lillqvist  <tml@iki.fi>
5207
5208         * gdk/win32/gdkinput-win32.h
5209         * gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
5210         _gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
5211         used.
5212
5213         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
5214         accordingly, in fact an uninitialised variable was dereferenced.
5215         
5216
5217         [Win32] Add support for multiple monitors. 
5218         
5219         * gdk/win32/gdkprivate-win32.h
5220         * gdk/win32/gdkglobals-win32.c: New global variables for
5221         multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
5222         _gdk_offset_x and _gdk_offset_y.
5223         
5224         * gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
5225         functions, enumeration functions passed to EnumDisplayMonitors().
5226
5227         (gdk_display_open): If the EnumDisplayMonitors() and
5228         GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
5229         if to find out monitor info.
5230
5231         Calculate the offset between Win32 coordinates (relative to the
5232         primary monitor's origin (and thus negative on monitors to the
5233         left of or above it), and GDK's (visible coordinates should be
5234         non-negative).
5235         
5236         * gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
5237         gdk_screen_get_monitor_geometry): Use information collected above.
5238
5239         (gdk_window_move, gdk_window_move_resize_window_get_geometry):
5240         Subtract _gdk_offset_{x,y} from GDK root window coordinates.
5241
5242         (gdk_window_get_geometry, gdk_window_get_origin,
5243         gdk_window_get_frame_extents): For top-level windows, add
5244         _gdk_offset_{x,y} to GDK root window coordinates
5245
5246         Still need to handle multiple monitors in
5247         gdk_window_fullscreen(). Probably should make the window
5248         fullscreen on the monitor where the cursor is?
5249
5250         * gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
5251         root window coordinates in GdkEvents.
5252
5253         
5254         [Win32] Fix geometry hint handling. Add support for resize
5255         increment and base size, and aspect ratio geometry hints. The
5256         "gridded geometry" test in testgtk now works beautifully.
5257
5258         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
5259         Turns out this function shouldn't actually ever modify the
5260         window's size, just store the hints. (Old code kept for a while
5261         inside #if 0.)
5262
5263         (gdk_window_set_hints): Remove presumably broken code that handles
5264         the position hints, this function is obsolete anyway.
5265
5266         * gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
5267         variables, not used.
5268
5269         (adjust_drag): New function, used to implement resize increment
5270         hints.
5271
5272         (gdk_event_translate): Handle WM_SIZING, implement resize
5273         increment and base size, and aspect ratio geometry hints here. The
5274         WM_GETMINMAXINFO handler takes care of the minimum and maximum
5275         size hints as before. Fix the WM_GETMINMAXINFO handler to take
5276         into account window decorations. No need to modify the
5277         ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
5278         the defaults are fine.
5279         
5280         * gdk/win32/gdkprivate-win32.h 
5281         * gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
5282         _gdk_win32_get_adjusted_client_rect): New helper functions.
5283
5284 2003-08-07  Matthias Clasen  <maclas@gmx.de>
5285
5286         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
5287         toplevel->have_* flags before iterating over the _NET_WM_STATE 
5288         atoms.  (#119217) 
5289
5290 Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
5291  
5292         * gtk/gtkwidget.c (gtk_widget_set_style_internal): 
5293         Fix a bug where on theme change, resize/redraw wasn't
5294         properly getting queued on toplevel windows. (#116346,
5295         Rajkumar Siva)
5296  
5297         * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
5298         Fix bug where wrong coordinates were used for toplevel
5299         window.
5300  
5301 Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
5302
5303         * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
5304         page_num variable (Archit Baweja)
5305
5306 2003-08-07  Matthias Clasen  <maclas@gmx.de>
5307
5308         * gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
5309         cope with C libraries with crippled locale support.  (#115293)
5310
5311 2003-08-07  Hans Breuer  <hans@breuer.org>
5312
5313         * gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
5314         (only if the new window not known to Gdk) to get proper
5315         leave notification, and get rid of the wrong placed 
5316         tooltips, bug #102283
5317  
5318         (gdk_event_translate) : small code reordering to not get
5319         GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
5320         menus, bug #117367
5321
5322 2003-08-07  Tor Lillqvist  <tml@iki.fi>
5323
5324         * gdk/gdk.def
5325         * gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
5326         missing function, trivially implement.
5327
5328 2003-08-07  Matthias Clasen  <maclas@gmx.de>
5329
5330         * gtk/gtkctree.c (draw_row): Don't cut descenders when 
5331         rendering.  (#118646, Charles Kerr) 
5332
5333 2003-08-06  Hans Breuer  <hans@breuer.org>
5334
5335         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
5336         initialize bits to 0 (probably default on NT)
5337
5338         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
5339         now it works as intended ;-)
5340
5341 2003-08-04  Hans Breuer  <hans@breuer.org>
5342
5343         * gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
5344         set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
5345
5346         * gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
5347         (gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
5348
5349         * gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
5350         against all expectations it is basically ony a call with WM_SETICON
5351         needed (the visual effect is there, though colors or mask are
5352         still somewhat wrong).
5353         * gdk/win32/gdkwindow-win32.h : place to store the HICON
5354
5355         * gdk/win32/gdkdrawabke.win32.c : readded the conditional end
5356         pixel drawing as it was fixed at 1999-08-23
5357
5358         gtk/gtk.def : updated
5359
5360 Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
5361
5362         * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
5363         Add a missing break. (#119156, Callum McKenzie)
5364
5365 Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5366
5367         * gtk/gtkmenu.c (gtk_menu_position): New positioning
5368         algorithm.(#116649)
5369
5370 Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5371
5372         * gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
5373         property
5374         
5375         * gtk/gtkradiotoolbutton.c
5376         (gtk_radio_tool_button_new_from_widget): Don't take a stock id
5377
5378         * gtk/gtkradiotoolbutton.c
5379         (gtk_radio_tool_button_new_with_stock_from_widget): make this
5380         function take a stock_id.
5381
5382         * gtk/toolbar: documentation
5383
5384 Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
5385
5386         * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
5387         Fix problem where use_xshm was getting set wrong if
5388         MIT_SHM wasn't found. (George Lebel)
5389
5390 2003-08-04  Tor Lillqvist  <tml@iki.fi
5391
5392         * gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
5393         actually use the passed-in filter list. The function also needs a
5394         GdkWindow parameter, as filter functions expect
5395         GdkEvent::any.window to be valid. (#119034, Hans Breuer)
5396
5397 2003-08-03  Matthias Clasen  <maclas@gmx.de>
5398
5399         * gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
5400         (gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
5401         the term "virtual screen".  (#119030, Tor Lillqvist)
5402
5403 2003-08-02  Matthias Clasen  <maclas@gmx.de>
5404
5405         * tests/testtext.c (test_init): 
5406         * tests/testgtk.c (test_init): 
5407         * tests/testdnd.c (test_init): 
5408         * demos/pixbuf-init.c (pixbuf_init): 
5409         * demos/gtk-demo/main.c (main): Use g_setenv().
5410
5411         * gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
5412         g_unsetenv(). 
5413
5414 Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
5415
5416         * configure.in: Requires glib-2.3.0, pango-1.2.0.
5417
5418         * configure.in: Require Xft version 2,
5419         remove code for handling older versions of pango and Xft.
5420         Many miscellaneous improvements to X checks
5421
5422         * acinclude.m4: Add GTK_ADD_LIB() macro for adding 
5423         a library to a variable, avoiding dups.
5424
5425         * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
5426         Always load "fixed"
5427
5428         * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
5429         for pangox.
5430
5431 2003-08-02  Matthias Clasen  <maclas@gmx.de>
5432
5433         * gtk/gtkcolorsel.c (color_sample_drop_handle) 
5434         (palette_drop_handle): 
5435         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
5436         drops with the wrong format, since the KDE color chooser incorrectly
5437         drops application/x-color with format 8.  (#118810)
5438
5439         * gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
5440         * gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
5441         Accept drops with the wrong format, since the KDE color chooser 
5442         incorrectly drops application/x-color with format 8.  (#118810)
5443
5444 2003-08-02  Tor Lillqvist  <tml@iki.fi>
5445
5446         Fix gdk/win32 window geometry handling again. The window position
5447         in a GDK_CONFIGURE event should be that of the client area, not of
5448         the window decorations. (I was confused by the term "window
5449         border" in X11. It does *not* mean the window manager
5450         decorations. There are no X11-style window borders in Win32.)
5451         Also, this time do take the geometry hints into account
5452         appropriately when moving windows. Now testgtk's gravity test's
5453         move buttons work OK. There are stil problems with taking gravity
5454         into account when showing a hidden window.
5455
5456         * gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
5457         instead of separate fields.
5458         
5459         * gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
5460         adjust for decorations.
5461
5462         * gdk/win32/gdkwindow-win32.c (get_outer_rect,
5463         adjust_for_gravity_hints): New functions.
5464         (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
5465         above functions, take geometry hints into account.
5466         (gdk_window_set_geometry_hints): Size hints specicy client area,
5467         not including decorations.
5468
5469 Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>
5470
5471         * gtk/gtkfilesel.c (cmpl_completion_fullname): Always
5472         return an absolute path (#115590), fix a problem where
5473         you could crash the file selector with a looong name
5474         by returning a newly allocated buffer.
5475
5476 Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>
5477
5478         * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
5479         bug in rarely or never hit code path (#118071,
5480         Tor Lillqvist)
5481
5482 Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>
5483
5484         * gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
5485         If the check for missing depths, try actually creating pixmaps
5486         of the depths to deal with Xinerama not reporting
5487         all the depths it should. (#115822)
5488
5489 Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>
5490
5491         * gtk/gtksocket.c: Patch from Denis Mikhalkin to
5492         forward KeyRelease events as well as KeyPress events.
5493         (#115597)
5494
5495 Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
5496  
5497         * gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
5498         if argc is 0 as well, instead of leaving it unset.
5499         (#116023, Michael Meeks)
5500  
5501 Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5502
5503         * gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
5504         default to TRUE; ignore the property when api_mode != NEW_API
5505
5506 2003-07-31  Matthias Clasen  <maclas@gmx.de>
5507
5508         * gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
5509         to icon, to pacify gtk-doc.
5510
5511         * gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
5512         example. 
5513
5514 Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5515
5516         * gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem
5517
5518 Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5519
5520         * gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
5521         overflow_item field.
5522
5523 Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5524
5525         * gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
5526         an internal function
5527
5528         * gtk/gtktoolitem.h: remove unused declaration of
5529         _gtk_tool_item_get_drag_window().
5530
5531 Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5532
5533         * gtk/gtktoolbutton.[ch]:
5534         (gtk_tool_button_new): swap icon_widget and label arguments to
5535         match BonoboUIToolbarButton.
5536
5537         * gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().
5538
5539 2003-07-30  Matthias Clasen  <maclas@gmx.de>
5540
5541         * gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
5542         signal docs. 
5543
5544 2003-07-29  Tor Lillqvist  <tml@iki.fi>
5545
5546         Fix for #108007, #112402, #117042: There was confusion in
5547         gdk/win32 at various places whether a window position refers to
5548         the decoration position or the client area position. Also whether
5549         window size includes decorations or not.
5550         
5551         The correct interpretation apparently is that in GDK (like in
5552         X11), a top-level window position means the decoration's position,
5553         but size means the window's inner size (client area size). In the
5554         Win32 API, the window size usually includes the decorations,
5555         though.
5556         
5557         * gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
5558         #ifdef G_ENABLE_DEBUG.
5559         (handle_configure_event): New function, generates GDK_CONFIGURE
5560         events from WM_SIZE and WM_MOVE messages. Even if no event is
5561         generated because of the event mask, still set the private
5562         position and size fields. Calculate position and size correctly.
5563         (gdk_event_translate): Call handle_configure_event().
5564
5565         * gdk/win32/gdkgeometry-win32.c: Cosmetics.
5566
5567         * gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
5568         macros. Cosmetic debugging output changes.
5569         (SafeAdjustWindowRectEx): Remove. If an application wants to
5570         locate a window outside of the screen, it's not GDK's business to
5571         prevent it. And anyway, with multiple monitors, negative
5572         coordinates are perfectly normal.
5573         (gdk_window_new): Adjust the window size for decorations after
5574         _gdk_window_init_position() has done its job. (But the big window
5575         code currently is presumably broken on Win32 anyway.)
5576         (gdk_window_move): The position passed in is supposed to be that
5577         of the window border, so don't need to adjust for decorations.
5578         (gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
5579
5580 Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5581
5582         * gtk/gtktoolbar.c (gtk_toolbar_set_style,
5583         gtk_toolbar_prepend_element, gtk_toolbar_append_element,
5584         gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
5585         gtk_toolbar_append_space, gtk_toolbar_insert_item,
5586         gtk_toolbar_prepend_item, gtk_toolbar_append_item,
5587         gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
5588         gtk_toolbar_new, gtk_toolbar_prepend_item):
5589
5590         Move documentation inline from template files.
5591
5592         * gtk/gtktoolbar.c (gtk_toolbar_insert_element,
5593         gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
5594         gtk_toolbar_append_widget, gtk_toolbar_remove_space,
5595         gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
5596         gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
5597         gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
5598         gtk_toolbar_get_style, gtk_toolbar_get_orientation)
5599
5600         Copy documentation from stable that was added after the EggToolbar
5601         branched.
5602
5603         * gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
5604
5605 Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5606
5607         * gtk+/docs/: Commit autogenerated changes, so patches will make
5608         sense.
5609
5610 2003-07-27  Tor Lillqvist  <tml@iki.fi>
5611
5612         * gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
5613         the keyboard state returned by GetKeyboardState() doesn't
5614         distinguish between the left and right Control and Alt keys. Thus
5615         we cannot detect AltGr (which is supposed to be left Control +
5616         right Alt) the same way as on NT-based systems, but have to accept
5617         either Control + either Alt as AltGr.
5618
5619 2003-07-27  Matthias Clasen  <maclas@gmx.de>
5620
5621         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
5622         Fix function name in warning message.  (#118156, Tim-Philipp
5623         Mller)
5624
5625         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
5626         is-expander and is-expanded are boolean properties, not ints.
5627         (#118359, Josh Parsons)
5628
5629 Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5630
5631         * gtk/gtkimagemenuitem.c
5632         (gtk_image_menu_item_toggle_size_request): don't request
5633         toggle_space when the image width is 0.
5634
5635 2003-07-25  Tor Lillqvist  <tml@iki.fi>
5636
5637         * gdk/win32/gdkprivate-win32.h
5638         * gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
5639         and _gdk_keyboard_has_altgr.
5640         
5641         * gdk/win32/gdkevents-win32.c: Lots of changes. Most important
5642         ones detailled here.
5643
5644         Code that has been ifdeffed out for a long time removed. Remove
5645         some really old doc comments that were left behind for some public
5646         functions, the official ones are in the X11 backend anyway. Change
5647         GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
5648         multi-line boolean expressions to have the operators at ends of
5649         lines.
5650
5651         As mouse capture with SetCapture() indeed seems to work OK, no
5652         need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
5653
5654         Ifdef out the gdk-ping-msg stuff. I don't remember why it was
5655         needed at some time, and things seem to work fine now without
5656         (knock on wood).
5657
5658         Ifdef out the search for some Latin locale keyboard layout being
5659         loaded. Not used currently, but might be needed after all, if we
5660         decide that we want to be able to generate ASCII control character
5661         events with a non-Latin keyboard.
5662
5663         (assign_object): New helper function, handles the g_object_ref()
5664         and unref() calls when assigning GObject pointers.
5665                 
5666         (generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
5667         enter event when the pointer has moved to an ancestor window. Was
5668         left out by mistake.
5669
5670         (gdk_window_is_ancestor): Renamed from gdk_window_is_child().
5671
5672         (gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
5673         functionality, using ClipCursor().
5674                 
5675         (find_window_for_mouse_event): Splice part of code into new
5676         function find_real_window_for_grabbed_mouse_event().
5677
5678         (fixup_event, append_event, apply_filters): New functions, code
5679         refactored out from elsewhere.
5680
5681         (synthesize_enter_or_leave_event, synthesize_leave_event,
5682         synthesize_enter_event,
5683         synthesize_leave_events,synthesize_enter_events): Also take a
5684         GdkCrossingMode parameter, in preparation to generating
5685         GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
5686
5687         (fixup_event, append_event, fill_key_event_string): New functions,
5688         code refactoring.
5689
5690         (vk_from_char, build_keypress_event, build_keyrelease_event):
5691         Removed as part of dropping WM_CHAR handling.
5692
5693         (build_key_event_state,gdk_event_translate): Call
5694         GetKeyboardState(), once, for each keyboard message, instead of
5695         several calls to GetKeyState() here and there.
5696
5697         (gdk_event_translate): Fix bugs #104516, #104662, #115902. While
5698         at it, do some major refactoring, and some fixes for potential
5699         problems noticed while going through the code.
5700
5701         Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
5702         WM_KEYUP. Don't need the state variables related to whether to
5703         wait for WM_CHAR or not, and whether the current key is
5704         AltGr. Remove lots of complexity. Thus don't need the
5705         use_ime_composition flag.
5706
5707         Not handling WM_CHAR means dead key handling will have to be taken
5708         care of by GTK, but that seems to work fine, so no worry.
5709
5710         Another side-effect is that Alt+keypad digits don't work any
5711         longer, but it's better to learn to use GTK's ISO14755 support is
5712         anyway.
5713
5714         Be more careful in checking whether AltGr is involved. Only
5715         attempt to handle it if the keyboard actually has it. And
5716         explicitly check for *left* Control plus *right* Alt being
5717         pressed. Still, allow (left) Alt and/or (right) Control with AltGr
5718         chars.
5719
5720         Handle keys using similar code as in the X11 backend. As we have
5721         built a keymap in gdkkeys-win32.c anyway, use it by calling
5722         gdk_keymap_translate_keyboard_state() to look up the keysym from
5723         the virtual key code and keyboard state. Build the key event
5724         string in exactly the same way as the X11 backend.
5725
5726         If an IME is being used, don't generate GDK events for keys
5727         between receiving WM_IME_STARTCOMPOSITION and
5728         WM_IME_ENDCOMPOSITION, as those keys are for the IME.
5729         
5730         For WM_IME_COMPOSITION, handle all the Unicode chars returned from
5731         the IME, not just the first one.
5732
5733         gdk_event_translate() is still quite complex, could split the
5734         message handler cases out into separate functions.
5735
5736         On mouse events, when the mouse is grabbed, use
5737         find_real_window_for_grabbed_mouse_event() in order to be able to
5738         generate correct crossing events.
5739         
5740         No longer take a pre-allocated GdkEvent as parameter. Instead,
5741         allocate events as needed and append them to the queue. (This is
5742         different from how gdk_event_translate() in the X11 backend
5743         works.) This change made the code much clearer, especially in the
5744         cases where we have to generate several GDK events for one Windows
5745         message.  Return FALSE if DefWindowProc() should be called, TRUE
5746         if not. If DefWindowProc() should not be called, also return the
5747         value to be returned from the window procedure.
5748
5749         (Previously, the interaction with gdk_event_translate()'s caller
5750         was much more complex, when we had to indicate whether the
5751         already-queued event should be left in the queue or removed, and
5752         in addition also had to indicate whether to call DefWindowProc()
5753         or not, and what value to return from the window procedure if
5754         not.)
5755
5756         Don't use a separate "private" variable required to be pointing to
5757         the GdkWindowObject of the "window" variable at all times. Just
5758         use casts, even if looks a bit uglier.
5759
5760         Notice destroyed windows as early as possible, and break out of
5761         the messsage switch.
5762
5763         Use _gdk_pointer_root as current_window when the pointer is
5764         outside GDK's top-level windows.
5765         
5766         On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
5767         appropriate, based on ImmIsIME().
5768         
5769         (gdk_event_translate, gdk_event_send_client_message_for_display,
5770         gdk_screen_broadcast_client_message): Implement client messages.
5771         Use a registered Windows message to pass GDK client messages. Note
5772         that the amount of user data is restricted to four bytes, as it is
5773         carried in the LPARAM. (The WPARAM is used for the message type
5774         "atom".)
5775         
5776         (real_window_procedure): Adapt for new gdk_event_translate()
5777         interface.
5778
5779         * gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
5780         _gdk_input_locale_is_ime initially.
5781
5782         * gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
5783         of g_colormap_ref()/unref().
5784
5785         (gdk_window_new): Made code a bit more like the X11 one, pretend
5786         to handle screens (although we just have one for now).
5787
5788         * gdk/x11/gdkevents-x11.c
5789         (gdk_event_send_client_message_for_display,
5790         gdk_screen_broadcast_client_message): Document the user data
5791         limitation on Win32.
5792
5793         * gdk/win32/gdkevents-win32.c (print_event): More complete enter
5794         and leave notify detail output.
5795
5796         * gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
5797         visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
5798         for those, so that the GtkIMContextCimple compose tables will
5799         work. Deduce if the keyboard layout has the AltGr key, and set the
5800         above flag accordingly.
5801
5802 2003-07-26  Matthias Clasen  <maclas@gmx.de>
5803
5804         * gtk/gtkwidget.c: Document DND signals.
5805
5806 2003-07-24  Matthias Clasen  <maclas@gmx.de>
5807
5808         * gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
5809         insensitive when editing isn't possible.  (#118150)
5810
5811 2003-07-23  Matthias Clasen  <maclas@gmx.de>
5812
5813         * gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
5814         spinbutton wrap.  (#118097, John Darrington)
5815
5816         * docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 
5817
5818 2003-07-20  Hans Breuer  <hans@breuer.org>
5819
5820         * makefile.msc : new file to build it all
5821         * Makefile.am : ... added to EXTRA_DIST
5822
5823         * gdk/makefile.msc gtk/stock-icons/makefile.msc 
5824           gtk/makefile.msc.in tests/makefile.msc : updated
5825
5826         * gdk/gdk.def gtk/gtk.def : export a bunch of new 
5827         functions
5828
5829         * gtk/gtkbbox.c : use g_return_val_if_fail() if
5830         there is a value to return
5831
5832         * gtk/gtkfontsel.c gtk/gtkiconfactory.c :
5833         static correctness
5834
5835         * gtk/gtkicontheme.c : ported to use GTimeVal instead of
5836         struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
5837
5838         * gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
5839
5840         * gtk/gtkimmulticontext.c : use gtkprivate.h
5841
5842         * gtk/stock-icons/stock_color_picker_25.png
5843           gtk/stock-icons/stock_jump_to_rtl_16.png
5844           gtk/stock-icons/stock_jump_to_rtl_24.png
5845           gtk/stock-icons/stock_redo_rtl_16.png
5846           gtk/stock-icons/stock_redo_rtl_24.png
5847           gtk/stock-icons/stock_undelete_rtl_16.png
5848           gtk/stock-icons/stock_undelete_rtl_24.png
5849           gtk/stock-icons/stock_undo_rtl_16.png :
5850           gtk/stock-icons/stock_undo_rtl_24.png :
5851         readded as binary
5852
5853 Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5854
5855         * gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
5856         leftover request of {xy}thickness
5857
5858 Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5859
5860         * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
5861         attempt to add a NULL icon to the box.
5862
5863 Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5864
5865         * gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
5866         on focus in/out.
5867
5868 2003-07-19  Matthias Clasen  <maclas@gmx.de>
5869
5870         * gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
5871         * gtk/gtkiconfactory.c (get_default_icons): Add
5872         stock_dialog_authentication_48.  (#65765) 
5873         * gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
5874         * gtk/stock-icons/stock_dialog_authentication_48.png: New image.
5875
5876         * gtk/gtkbbox.h: 
5877         * gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
5878         function. (#64562) 
5879
5880 Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5881
5882         * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
5883         declaration
5884
5885         * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
5886         (gtk_widget_real_focus_{in|out}_event): queue shallow draws
5887         instead of full draws.
5888
5889 2003-07-18  Matthias Clasen  <maclas@gmx.de>
5890
5891         * gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
5892
5893         * gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
5894         signal, move_viewport. 
5895         (gtk_text_view_move_viewport): New function which implements the
5896         move_viewport functionality. 
5897         (gtk_text_view_move_cursor_internal): If the cursor is not visible, move
5898         the viewport. (#78669) 
5899
5900         * gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
5901         move_viewport argument. 
5902
5903         * gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
5904         property.  (#111779) 
5905
5906         * gtk/gtkwindow.h: 
5907         * gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
5908
5909         * gtk/gtkmessagedialog.h:
5910         * gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
5911         (#65501, Sebastian Rittau)
5912
5913 Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5914
5915         * gtk/gtktextview.c (changed_handler): use
5916         gtk_widget_queue_resize_noredraw().
5917
5918 2003-07-16  Jody Goldberg <jody@gnome.org>
5919
5920         * gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
5921
5922 Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5923
5924         * gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
5925         API. 
5926
5927 Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5928
5929         By popular request give toolbuttons a border.
5930         
5931         * gtk/gtktoolitem.c
5932         (gtk_tool_item_size_allocate):
5933         (gtk_tool_item_size_request): don't request and allocate a border
5934         around the child
5935
5936         * gtk/gtktoolbutton.c 
5937         (gtk_tool_button_size_allocate):
5938         (gtk_tool_button_size_request): remove these functions
5939
5940         * gtk/gtktoolbar.c 
5941         (gtk_toolbar_size_request):
5942         (gtk_toolbar_size_allocate): request and allocate a border if we
5943         have a shadow.
5944
5945 Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
5946
5947         Merged from stable.
5948
5949         Fixes issues pointed out by Morten Welinder in #115140.
5950
5951         * gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
5952         (do_validate_rows): update validated_area with a logic OR instead
5953         of a bitwise OR,
5954         (validate_rows_handler): make the if statement match the one in
5955         validate_rows(), so we don't leak the timeout.
5956
5957 Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
5958
5959         Merged from stable.
5960
5961         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
5962         should only grab focus back if the "cell_editable" widget still
5963         has focus. (Fixes #110104, testcase provided by Marco Pesenti
5964         Gritti).
5965
5966 Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
5967
5968         Merged from stable.
5969
5970         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5971         Don't set attr.event_mask twice, those things were meant to be
5972         ORred. (#115139, pointed out by Morten Welinder).
5973
5974 Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
5975
5976         Merged from stable.
5977
5978         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
5979         if needed. (Fixes #115869, reported by Michael Natterer).
5980
5981 2003-07-15  Matthias Clasen  <maclas@gmx.de>
5982
5983         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
5984         Fight against gtk-doc stupidity.
5985
5986 2003-07-13  Matthias Clasen  <maclas@gmx.de>
5987
5988         * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
5989         targets, to pacify gtk-doc.
5990
5991 Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5992
5993         * gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
5994         label_text, label_widget and icon_widget. (#117312, 
5995         Christian Persch)
5996         
5997 Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
5998
5999         * gtk/gtkmenu.c (gtk_menu_class_init): new properties
6000         "horizontal-offset" and "vertical-offset" that determines the
6001         position of the menu when it is a submenu. 
6002
6003         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
6004         submenus according to new vertical- and horizontal-offset
6005         properties.
6006
6007 Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>
6008
6009         Merged from stable.
6010
6011         * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
6012         case drags to "0", scroll to the top after dropping. (Fixes #94968,
6013         reported by Alp Toker).
6014
6015 Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>
6016
6017         Merged from stable.
6018
6019         * demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
6020         code (#115784, Owen Taylor).
6021
6022 Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>
6023
6024         Merged from stable.
6025
6026         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
6027         free the old text and extra_attrs *after* we parsed the new
6028         markup string. (Fixes #114485, reported by Owen Taylor).
6029
6030 Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>
6031
6032         Merged from stable.
6033
6034         Fixes #113904, testcase provided by Rene Seindal.
6035
6036         * gtk/gtktreeview.c (gtk_tree_view_button_press): set
6037         pressed_button to -1 when a row has been activated,
6038         (gtk_tree_view_motion_bin_window): only start a drag if there's
6039         a button being pressed.
6040
6041 Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>
6042
6043         Merged from stable.
6044
6045         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
6046         gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
6047         to avoid a roundtrip (#110272, Owen Taylor).
6048
6049 Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>
6050
6051         Merged from stable.
6052
6053         This patch really really fixes scrolling. Related bugs: #81627,
6054         testcase provided by Timo Sirainen, #111500, testcase provided by
6055         manu, #113241, reported by Pedro Gimeno/Michael Natterer.
6056
6057         * gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
6058         which is equal to the lower border of the window means scrolling
6059         to an invisible row, always update the dy when scrolling to an
6060         invisible row, corrected area_above/below calculations for
6061         invisible rows, when walking the tree correct the size
6062         subtracted for invalidated rows, fix wrong logic in comment.
6063
6064 2003-07-11  Matthias Clasen  <maclas@gmx.de>
6065
6066         * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
6067         mime_types.  (#117219, Steve Chaplin)
6068
6069 Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
6070
6071         * gdk/x11/gdkevents-x11.c (get_real_window)
6072         gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
6073         gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
6074         gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
6075         Don't assume that all events start with XEventAny - Xkb events
6076         don't! (#105745). So, only do that for core events, and for
6077         non-core events, add a system for registering event types
6078         that start with XEventAny.
6079
6080         * gdk/x11/gdkevents-x11.c (gdk_event_translate):
6081         Check to see if the result of gdk_window_lookup_for_display()
6082         is actually a window.
6083
6084 Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>
6085
6086         * gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
6087         check a silent assert, so it follows the g_free() behaviour.
6088
6089 2003-07-11  Matthias Clasen  <maclas@gmx.de>
6090
6091         * gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
6092         vertically.  (#109823, Joe Shaw)
6093
6094 2003-07-11  Morten Welinder  <terra@gnome.org>
6095
6096         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
6097         access error.  (#69436)
6098
6099 Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>
6100
6101         Landing GtkTreeModelFilter and the completion code. (Test program
6102         and documentation will follow next week).
6103
6104         * gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
6105         gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.
6106
6107         * gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
6108         necessary code to hook up completion.
6109
6110         * gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
6111         GtkCellLayout interface.
6112
6113         * gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.
6114
6115         * gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
6116         source files.
6117
6118 Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>
6119
6120         Merge from stable.
6121
6122         * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
6123         directly return from ->window_at_pointer, but set win_x and win_y
6124         first if needed. (Fixes #110166, reported by Arno Charlet).
6125
6126         * gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
6127         function to accept GdkDrawables and not just GdkWindows. This was
6128         already done in some other functions a while back, but this patch
6129         got lost for some reason.
6130
6131 2003-07-09  Matthias Clasen  <maclas@gmx.de>
6132
6133         * gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
6134         direction when sorting children.  (#116540, Soeren Sandmann)
6135
6136 Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>
6137
6138         * gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
6139         Change _gdk_x11_send_xevent_async() to 
6140         _gdk_x11_send_client_message_async() avoid using Xlib
6141         internals that are different on Solaris. 
6142         (#116917, Morten Welinder)
6143
6144 2003-07-08  Matthias Clasen  <maclas@gmx.de>
6145
6146         * gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
6147         (#116501, Doug Quale)
6148
6149 Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6150
6151         * gtk/gtktoggletoolbutton.h: remove strange #define
6152         * gtk/gtktoolbutton.h: fix cut'n'paste error
6153         * gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
6154         private data
6155         * gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
6156         private data instead of g_new0()
6157         * gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
6158         instance private data
6159
6160 Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6161
6162         * gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
6163         for INPUT_ONLY window
6164         * gtk/gtkmenuitem.c (gtk_menu_item_realize): same
6165         * gtk/gtknotebook.c (gtk_notebook_realize): same
6166         * gtk/gtkexpander.c (gtk_expander_realize): same
6167         * gtk/gtkrange.c (gtk_range_realize): same
6168
6169         Fix #116303
6170
6171 Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6172
6173         * gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
6174         when detail is "menuitem". With the new menu look is isn't needed
6175         anymore.
6176
6177         * gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
6178         resize here, so that tool items will get a chance to relayout
6179         themselves based on the toolbar configuration.
6180
6181         change DEFAULT_SPACE_SIZE to 4 instead of 5
6182
6183         * gtk/gtktoolbar.c 
6184         Get rid of "!GTK_BIN (item)->child means separator". Separators
6185         are widgets in their own right
6186
6187         change DEFAULT_SPACE_SIZE to 4 instead of 5
6188         
6189         (get_space_size): remove this function
6190         (toolbar_item_is_homogeneous): new function
6191
6192         * gtk/gtkseparatortoolitem.c
6193         (gtk_separator_tool_item_size_request): new function.
6194
6195 Tue Jul  8 14:10:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6196
6197         * gtk/gtktoggletoolbutton.h: use private data, add new
6198         internal function _gtk_toggle_tool_button_get_button()
6199
6200         * gtk/gtktoolbutton.h: move to private data
6201
6202         * gtk/gtkradiotoolbutton.c, gtk/gtktoolbutton.c: updates for new
6203         private data.
6204
6205 Tue Jul  8 12:50:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6206
6207         * gtk/gtktoolbutton.c (gtk_tool_button_get_icon_widget): fix a
6208         type check, (#116947, Krasimir Angelov)
6209
6210         * gtk/gtktoolbar.c: Use new GtkToolItem accessors.
6211         
6212         * gtk/gtktoolitem.[ch]: Use a private struct to hold the instance
6213         data. Not instance private data yet, because of bug 116921.
6214
6215         * gtk/gtktoolitem.h: new accessors:
6216                 gtk_tool_item_get_homogeneous ()
6217                 gtk_tool_item_get_expand ()
6218                 gtk_tool_item_get_pack_end ()
6219                 gtk_tool_item_get_use_drag_window ()
6220
6221 Mon Jul  7 16:50:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6222
6223         * gtk/gtkcellrenderertext.c
6224         (gtk_cell_renderer_text_class_init): remove accidentally committed
6225         debugging spew
6226
6227         * gtk/gtktoolbar.c
6228         (gtk_toolbar_paint_space_line): remove this function
6229         (gtk_toolbar_expose): always propagate expose, even if the item is
6230         a separator item
6231
6232         * gtk/gtkseparatortoolitem.c
6233         (gtk_separator_tool_item_expose): moved here from gtktoolbar.c
6234         (get_space_size): new function.
6235         (get_space_style): new function
6236
6237 Sun Jul  6 13:00:20 2003  Owen Taylor  <otaylor@redhat.com>
6238
6239         * gtk/gtkdnd.c (_gtk_drag_source_handle_event)
6240         * gtk/gtkdnd.c (gtk_drag_begin_internal):  Remove use
6241         of GDK_POINTER_MOTION_HINT_MASK.
6242
6243         * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating
6244         of the drag into an idle as a superior form of 
6245         expose compression.
6246
6247         * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon
6248         creation here, so that we have an icon at the start
6249         of the drag (e.g., when retrieving the window cache
6250         information.)
6251
6252 Sun Jul  6 17:21:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6253
6254         * docs/widget_geometry.txt: better drawing of GtkMenuItem
6255         * docs/widget_geometry.txt: add notes about GtkMenu
6256         * gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
6257
6258 Sat Jul  5 10:34:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6259
6260         * gtk/gtkmenu.c: add vertical_padding style property.
6261         
6262         * gtk/gtkmenuitem.c: add style properties toggle_spacing,
6263         arrow_spacing and horizontal_padding. Also center separators and
6264         make them a bit taller.
6265
6266         * gtk/*menuitem.c: use new style properties.
6267         
6268         * docs/widget_geometry.txt: Add note about GtkMenuItem
6269
6270         * gtk/gtkstyle.c 
6271         (gtk_default_draw_vline, gtk_default_draw_hline):
6272         fix +/-1 errors. 
6273
6274         (gtk_default_draw_shadow): draw a black border around menus.
6275
6276         * gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
6277         calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
6278         x2 and y1, y2 respectively, not x, width and y, height).
6279
6280 Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
6281
6282         * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
6283         all the atoms in the target list at once.
6284
6285         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
6286         Local drag short-circuit.
6287
6288         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
6289         local case, poke the actions in directly instead of
6290         going through xdnd_set_actions.
6291
6292         * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
6293         the local case.
6294
6295         * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
6296         XSelectInput()/add a filter if the drag is local.
6297
6298         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection): 
6299         Simplify handling of "XdndSelection".
6300
6301         * gdk/x11/gdkevents-x11.c
6302         (gdk_event_send_client_message_to_all_recurse): Somehow,  
6303         a WM_STATE => _NET_WM_STATE change hand been made here.
6304
6305         * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
6306         xatom_names, not atom_names.
6307
6308         * tests/testdnd.c (target_drag_motion): Make the trashcan
6309         open again. (Got lost in deprecation cleanup.)
6310
6311 Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
6312
6313         * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
6314         earlier, so we don't get a big pile of uncompressed
6315         motion events before the grab takes effect.
6316
6317         * gtk/gtkdnd.c (gtk_drag_update_icon): Call 
6318         gdk_window_process_all_updates() so that the area
6319         we are dragging over gets a change to redraw.
6320
6321         * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use 
6322         gdk_window_get_position(), not gdk_window_get_origin().
6323
6324         * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
6325         gdkdisplay-x11.h: use XShapeQueryExtension to 
6326         avoid duplicate XQueryExtension when we actually
6327         use it. Remove unnecessary caching in GdkDisplayX11.
6328
6329 Fri Jul  4 23:49:22 2003  Owen Taylor  <otaylor@redhat.com>
6330
6331         * gdk/x11/gdkasync.[ch] (_gdk_x11_get_window_child_info): 
6332         Function to get a range of information about all the
6333         children of a window in a single pass.
6334
6335         * gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse)
6336         gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Use
6337         _gdk_x11_get_window_child_info() to greatly reduce
6338         the number of roundtrips.
6339
6340 Fri Jul  4 22:57:18 2003  Owen Taylor  <otaylor@redhat.com>
6341
6342         * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add
6343         a function to XSendEvent() and call a calback on
6344         failure/success.
6345
6346         * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit
6347         messages to the same process, use _gdk_send_xevent_async().
6348
6349 Fri Jul  4 22:26:27 2003  Owen Taylor  <otaylor@redhat.com>
6350
6351         * gdk/x11/gdkwindow-x11.[ch] gdkevents-x11.c: Split
6352         toplevel-specific pieces of GdkWindowImplX11 into
6353         a separate GdkToplevelX11 structure.
6354
6355 Fri Jul  4 22:05:09 2003  Owen Taylor  <otaylor@redhat.com>
6356
6357         * gdk/x11/gdkasync.c (struct _SetInputFocusState): Fix
6358         some leftover fields.
6359
6360 Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
6361
6362         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
6363         Use asynchronously _gdk_x11_set_input_focus_safe
6364         to avoid having to trap errors and XSync().
6365
6366         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
6367         _gdk_x11_set_input_focus_safe() here as well.
6368
6369         * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
6370         Rework handling of property notifies on _NET_WM_STATE
6371         so that we ignore _NET_WM_DESKTOP notifies unless we
6372         really care.
6373
6374         * gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
6375         XShmQueryExtension() rather than XQueryExtension() to
6376         avoid extra rountrip.
6377
6378         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
6379         Remove unused call to XGetWindowAttributes()
6380         
6381         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
6382         unused call to XGetKeyboardControl().
6383
6384         * gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
6385         Add (#99571)
6386
6387         * gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c 
6388         No-op implementations of gdk_display_flush().
6389
6390         * gdk/gdkwindow.c (gdk_window_process_all_updates): Use
6391         gdk_display_flush() rather than gdk_flush() to avoid
6392         XSync().
6393         
6394         * gdk/x11/gdkwindow-x11.c (update_wm_hints)
6395         gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
6396         so that we don't have to get the property back from the server.
6397
6398         * gdk/x11/gdkwindow-x11.c (show_window_internal): Store
6399         the serial of when we map a toplevel to allow optimizing
6400         out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
6401
6402         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
6403         XTranslateCoordinates() for override-redirect windows.
6404
6405 Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
6406
6407         * gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
6408         about setting window group after the window is mapped from docs
6409         - nothing the ICCCM forbids that.
6410
6411         * gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
6412         Fix g_return_val_if_fail() in void return function.
6413
6414         * configure.in: Fix misplaced comma that was resulting
6415         in XShm always being disabled.
6416
6417 Fri Jul  4 19:55:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6418
6419         * tests/stresstest-toolbar: remove this accidentally committed
6420         file.
6421         
6422         * tests/stresstest-toolbar.c: really add this new test
6423
6424 Fri Jul  4 19:06:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6425
6426         * tests/stresstest-toolbar.c: new test for removing items
6427         
6428         * tests/testtoolbar.c: add a popup menu
6429
6430         * gtk/gtkcontainer.c (gtk_container_remove): add hack to avoid
6431           assert widget->parent == container when the container is a
6432           toolbar.
6433
6434         * gtk/gtktoolbar.c (gtk_toolbar_remove_tool_item): Make much
6435         simpler. Also make correct.
6436
6437         * gtk/gtktoolbar.c (gtk_toolbar_button_press): make
6438         popup_context_menu a boolean handled signal.
6439
6440 2003-07-04  Tor Lillqvist  <tml@iki.fi>
6441
6442         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_polygon,
6443         gdk_win32_draw_segments, gdk_win32_draw_lines): We can calculate
6444         the width and height of the bounding rectangle only after the
6445         minumum x and y have been found, and need a separate loop for
6446         it. Thanks to Bruce Hochstetler for providing a sample program
6447         exhibiting the bug.
6448
6449 2003-07-03  Tor Lillqvist  <tml@iki.fi>
6450
6451         * gdk/gdk.def: Add gdk_string_to_compound_text_for_display.
6452         (#116537, Peter Zelezny)
6453
6454 Thu Jul  3 03:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6455
6456         * gtk/gtkpaned.c (gtk_paned_set_child_property): Insert cast to
6457         fix warning. Assign something to old_value to quiet gcc
6458
6459         * gtk/gtkcalendar.c 
6460         (start_spinning): gtk_timeout_add->g_timeout_add
6461
6462         * gtk/gtkicontheme.c 
6463         (theme_lookup_icon): Make it compile (remove double semicolon)
6464
6465         * gtk/gtktoolbutton.c
6466         (gtk_tool_button_class_init): Long comment about properties.
6467         (gtk_tool_button_class_init): Improve text for "use_underline"
6468         property
6469         (gtk_tool_button_create_menu_proxy): Fix up to use_mnemonic based
6470         on whether the passed-in label has use_mnemonic set
6471         (gtk_tool_button_create_menu_proxy): Split image cloning out in
6472         new function. Make that function also handle image with pixbuf
6473         storage.
6474         (gtk_tool_button_construct_contents): Use gtk_widget_destroy()
6475         instead of gtk_container_remove().
6476         (gtk_tool_button_construct_contents): Fix eliding bug
6477
6478         * gtk/gtktoolbar.c
6479         (gtk_toolbar_finalize): New function. Unref tooltips, pointed out
6480         by Morten Welinder
6481         (gtk_toolbar_button_press): Make popup_context_menu signal provide
6482         coordinates and button number
6483
6484         * tests/testtoolbar.c (main): Add new pixbuf toolbutton
6485
6486         * tests/apple-red.png: new file
6487
6488 Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
6489          
6490         * gtk/gtkicontheme.[ch]: Implement a loader for
6491         named themed icon based on from gnome-desktop library
6492         by Alex Larsson.
6493
6494         * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
6495         from gnome-desktop.
6496
6497         * gtk/gtkiconfactory.[ch]: Add
6498         gtk_icon_source_set/get_icon_name() to allow stock icons
6499         to be based off of named theme icons.
6500
6501         * gtk/gtkiconfactory.c: Rework sources so that the source
6502         is *either* a pixbuf, or a filename, or an icon name,
6503         instead of the pixbuf/filename mix it was before. Put a
6504         workaround for get_pixbuf() so that it can return the
6505         filename pixbuf, e.g, for render_icon().
6506
6507         * gtk/gtkiconfactory.c: Make the default setup use
6508         themed icons, and add builtin icons to the default
6509         icon theme for all the standard pixbufs, so we
6510         don't rely on actually having an icon theme on disk.
6511
6512         * gtk/gtkrc.c: Add support for @"icon-name" to specify
6513         a themed icon for a stock icon source.
6514
6515         * tests/Makefile.am test/testicontheme.c: Add a test
6516         program from gnome-desktop.
6517
6518         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
6519         Net/IconThemeName / gtk-icon-theme-name setting.
6520
6521         * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
6522         update the icon cache serial so we don't continually
6523         think we are out-of-date.
6524
6525         * gtk/gtkwidget.c: Fix a couple of references in doc comments 
6526         to ::direction_set that should have been to ::direction-changed
6527
6528 Wed Jul  2 14:45:41 2003  Owen Taylor  <otaylor@redhat.com>
6529
6530         * gtk/gtktoolbar.c (gtk_toolbar_realize): Attach the
6531         style to the widget.
6532
6533 Wed Jul  2 15:42:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6534
6535         * gtk/gtk.h: Add new toolbar headers
6536
6537         * tests/testtoolbar.c: new file
6538
6539         * tests/Makefile.am (noinst_PROGRAMS): Add testtoolbar.c
6540
6541         * gtk/gtkexpander.c (gtk_expander_class_init): Make it compile
6542
6543 Tue Jul  1 22:49:25 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6544
6545         * gtk/gtktoolbar.c:
6546         (gtk_toolbar_remove_tool_item): Fix bug where list is changed
6547         inside a for loop (pointed out by Morten Welinder).
6548         (gtk_toolbar_focus_home_or_end): Minor formatting change
6549
6550         Comments from Owen:
6551
6552         * gtk/gtktoolbutton.c: remove copy of elide_underscores(). Use
6553         gtk_toolbar_elide_underscores instead.
6554
6555         * gtk/gtktoolbar.c: rename signal from focus_ends to
6556         focus_home_or_end.
6557         (_gtk_toolbar_elide_underscores): export this as an internal
6558         function.
6559         (gtk_toolbar_move_focus): add comment explaining difference to
6560         gtk_toolbar_focus();
6561         (gtk_toolbar_list_children_in_focus_order): Make TAB_FORWARD and
6562         TAB_BACKWARD focus the right widgets in RTL mode
6563
6564         * gtk/gtktoolbutton.c (gtk_tool_button_new): Change to take
6565         "label" and "icon" parameters
6566
6567         * gtk/gtktoolbutton.[ch]: remove icon_set property.
6568
6569 2003-07-01  Matthias Clasen  <maclas@gmx.de>
6570
6571         * gtk/gtkspinbutton.c (gtk_spin_button_set_digits): Improve docs.
6572         (116364, Morten Welinder) 
6573
6574         * tests/testgtk.c: Use GtkFontButton and GtkColorButton to bring up the
6575         corresponding dialogs.
6576
6577         * gtk/Makefile.am (gtk_public_h_sources): Add gtkfontbutton.h,
6578         gtkcolorbutton.h.  
6579         (gtk_c_sources): Add gtkfontbutton.c, gtkcolorbutton.c. 
6580
6581         * gtk/gtkfontbutton.[hc]: New files containing a font picker widget. 
6582
6583         * gtk/gtkcolorbutton.[hc]: New files containing a color picker widget. 
6584
6585         * gtk/gtk.h: Include gtkexpander.h, gtkfontbutton.h, gtkcolorbutton.h.
6586
6587         * gtk/gtkexpander.c: Small additions to the docs. 
6588
6589 2003-07-01  Tor Lillqvist  <tml@iki.fi>
6590
6591         * gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_get_pointer):
6592         WindowFromPoint() wants screen coordinates (#115422, Tim Evans).
6593
6594 2003-07-01  Matthias Clasen  <maclas@gmx.de>
6595
6596         * configure.in: Check for Xcursor.
6597         
6598         * gdk/x11/gdkcursor-x11.c:
6599         * gdk/gdkdisplay.h: 
6600         * gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
6601         gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(), 
6602         gdk_display_supports_cursor_color(),
6603         gdk_display_get_default_cursor_size() and 
6604         gdk_display_get_maximal_cursor_size().  (#69436)
6605
6606 2003-06-30  Tor Lillqvist  <tml@iki.fi>
6607
6608         * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function,
6609         callback proc for EnumWindows().
6610         (gdk_drag_find_window_for_screen): Actually take the drag_window
6611         argument into account: Instead of using WindowFromPoint(), use
6612         EnumWindows(), to be able to skip the drag_window. (#116320, Tony
6613         M Brown, Herman Bloggs)
6614
6615         * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and
6616         gdk_window_ref()/unref() calls with g_object_ref()/unref().
6617         Consistently use %p format in debugging output of pointers and
6618         HANDLEs.
6619
6620 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
6621
6622         * gtk/gtkexpander.h: kill some stray characters
6623         breaking the build.
6624
6625 2003-06-30  Mark McLoughlin  <mark@skynet.ie>
6626
6627         Add GtkExpander. See discussion in bug #60553.
6628
6629         * gtk/gtkexpander.[ch]: add.
6630         
6631         * gtk/Makefile.am: build gtk-expander.[ch].
6632         
6633         * docs/widget_geometry.txt: add info on the layout
6634         of GtkExpander.
6635
6636 Mon Jun 30 01:20:19 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6637
6638         * gtkradiotoolbutton.c:         new file
6639         * gtkradiotoolbutton.h:            "
6640         * gtktoggletoolbutton.c:           "
6641         * gtktoggletoolbutton.h:           "
6642         * gtktoolbutton.c:                 "
6643         * gtktoolbutton.h:                 "
6644         * gtktoolitem.c:                   "
6645         * gtktoolitem.h:                   "
6646         * gtktoolbar.c: many changes
6647         * gtktoolbar.h: many changes
6648         * gtkseparatortoolitem.c:       new file
6649         * gtkseparatortoolitem.h           "
6650
6651         New toolbar.
6652         
6653         - Items on a toolbar are now separate widgets, instances of a
6654           subclass of GtkToolItem.
6655
6656         - Items there aren't room for on the toolbar are unmapped, and an
6657           overflow menu with a proxy menu item is added instead.
6658
6659         - The toolbar is keyboard navigatable. Press TAB to focus the
6660           first item, then use arrow keys and Ctrl TAB to move around the
6661           toolbar. TAB moves focus out of the toolbar.
6662
6663         - Bascially all of the old toolbar API is deprecated in favor of
6664           new API in gtktoolbar.h, gtktoolitem.h, gtktoolbutton.h
6665
6666         - The toolbar is backwards compatible with the old toolbar.
6667
6668 2003-06-29  Matthias Clasen  <maclas@gmx.de>
6669
6670         * gtk/gtkwidget.c (gtk_widget_class_init): Remove a duplicate parameter
6671         from docs, some more formatting fixes. 
6672
6673 2003-06-28  Tor Lillqvist  <tml@iki.fi>
6674
6675         Fix for #111028, thanks to J. Ali Harlow, who writes:
6676         I found that the GdkPixmap->GdkImage reference really isn't
6677         important. It's only really there to have somewhere convenient to
6678         store the location of the pixel data in the pixmap and as an easy
6679         way of accessing the dimensions of that data. I have therefore put
6680         together a fix which removes this reference entirely which seems
6681         to solve the problem.
6682
6683         * gdk/win32/gdkpixmap-win32.h (struct _GdkPixmapImplWin32):
6684         Instead of a pointer to a GdkImage, keep a pointer to the pixels
6685         directly.
6686
6687         * gdk/win32/gdkimage-win32.c (_gdk_win32_setup_pixmap_image): Remove.
6688         (_gdk_win32_new_image): New function, replacing the above. Creates
6689         a GdkImage without any associated GdkPixmap.
6690         (gdk_image_new_bitmap, _gdk_image_new_for_depth): Use it instead.
6691
6692         * gdk/win32/gdkprivate-win32.h: Remove from here, too.
6693
6694         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap)
6695         * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap)
6696         * gdk/win32/gdkgc-win32.c (_gdk_win32_bitmap_to_hrgn)
6697         * gdk/win32/gdkmain-win32.c (_gdk_win32_drawable_description):
6698         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize,
6699         gdk_pixmap_new, gdk_bitmap_create_from_data, gdk_pixmap_foreign_new)
6700         Corresponding changes.
6701
6702 Thu Jun 26 21:41:16 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6703
6704         * gtk/gtktreeviewcolumn.c
6705         (gtk_tree_view_column_cell_set_cell_data): only set "is_expander"
6706         and "is_expanded" if the new value is different fromt he old one.
6707
6708 Wed Jun 25 18:59:15 BST 2003  Tony Gale <gale@gtk.org>
6709
6710         * docs/faq/gtk-faq.sgml: Fix typos. Update
6711         thread example I missed yesterday.
6712
6713 2003-06-24  Matthias Clasen  <maclas@gmx.de>
6714
6715         * gtk/gtkspinbutton.c (gtk_spin_button_class_init): Add a blurb for
6716         shadow_type. 
6717
6718         * gtk/gtkwidget.c (gtk_widget_class_install_style_property_parser): 
6719         (gtk_widget_class_list_style_properties): Use same parameter names as in  
6720         header (to silence gtk-doc).
6721
6722         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Fix doc comments.
6723
6724 Tue Jun 24 20:00:45 BST 2003  Tony Gale <gale@gtk.org>
6725
6726         * docs/faq/gtk-faq.sgml: Thread support updates
6727         from Owen. Various suggestions from Steve Chaplin.
6728
6729 2003-03-24  Mohammad DAMT  <mdamt@bisnisweb.com>
6730
6731         * po/id.po: Updated Indonesian translation
6732
6733 2003-06-21  Tor Lillqvist  <tml@iki.fi>
6734
6735         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When
6736         emulating X11's automatic grab on button down, pass owner_events
6737         as FALSE. According to the XLib spec, automatic grabs use True for
6738         owner_events when OwnerGrabButtonMask is selected, and I don't see
6739         the X11 backend doing that. (#82497, #91619, #92835, #107322, #110271)
6740         (find_window_for_pointer_event): Improve debugging output.
6741
6742 2003-06-17  Tor Lillqvist  <tml@iki.fi>
6743
6744         * gtk-zip.sh.in (DLLDIR): Look for DLLs also in the bin
6745         subdirectory, where libtool 1.5 installs them.
6746
6747         * README.win32: Point to FSF's binary Win32 distribution of
6748         gettext-runtime.
6749
6750 2003-06-17  Matthias Clasen  <maclas@gmx.de>
6751
6752         * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
6753         macros to check for XML catalog contents and path, borrowed from
6754         gtk-doc. 
6755         * configure.in: New option --enable-man to enable regeneration of
6756         man pages from Docbook, if the necessary tools are found.
6757
6758 2003-06-15  Matthias Clasen  <maclas@gmx.de>
6759
6760         * gtk/gtkcalendar.c (gtk_calendar_class_init): 
6761         * gtk/gtknotebook.c (gtk_notebook_class_init): 
6762         * gtk/gtkalignment.c (gtk_alignment_class_init): 
6763         * gtk/gtkpaned.c (gtk_paned_class_init): Document new properties
6764         as 2.4 additions.
6765
6766         * gtk/gtkwidget.c (gtk_widget_class_init): Move inline signal docs 
6767         to the proper place, immediately before the g_signal_new() call.
6768
6769         * gtk/gtktextiter.h: Make the flags-nature of GtkTextSearchFlags 
6770         more obvious.  (#115122, Jeff Franks)
6771
6772 2003-06-12  Anders Carlsson  <andersca@codefactory.se>
6773
6774         * gtk/gtkwidget.c: (event_window_is_still_viewable):
6775         Special case pixmaps. (#114880)
6776         
6777 2003-06-12  Matthias Clasen  <maclas@gmx.de>
6778
6779         * gtk/gtkwidget.c: Document child-notify and drag-data-received
6780         signals. Owen, we need to figure out where the best place for
6781         these comments in the source is. I currently put them in front of
6782         the signals enum.
6783
6784 2003-06-11  Matthias Clasen  <maclas@gmx.de>
6785
6786         * gtk/gtkdnd.c (gtk_drag_check_threshold): s/threshhold/threshold/.
6787
6788 Thu Jan 12 01:01:19 2003  Kristian Rietveld  <kris@gtk.org>
6789
6790         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
6791         silly typo fix. s/seperator/separator/. This gets rid of the
6792         assert spam when using TreeView.
6793
6794 Tue Jun 10 11:23:48 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
6795
6796         * modules/input/gtkimcontextxim.c (xim_instantiate_callback): New
6797         function for XIM instantiate callback.
6798         * modules/input/gtkimcontextxim.c (xim_info_try_im): New function
6799         where call to XOpenIM() or XRegisterIMInstantiateCallback() is
6800         actually made.
6801         * modules/input/gtkimcontextxim.c (xim_destroy_callback): New function
6802         for XIM's destroy callback.
6803         * modules/input/gtkimcontextxim.c (get_im): add a check if info->im 
6804         is set or not - if it's not set, call xim_info_try_im() to try to
6805         initiaize it.
6806         * modules/input/gtkimcontextxim.c (reinitialize_ic): reset
6807         filter_key_release flag of the context.
6808         * modules/input/gtkimcontextxim.c (get_ic_real): removed
6809         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): move
6810         code from the removed get_ic_real().
6811
6812         For XIM instantiation, destruction and re-instantiation. With
6813         this, Gtk+ apps will be able to connect or reconnect to the XIM,
6814         when it starts after the apps, or when the XIM gets lost and recover.
6815         (#113099, #107782).
6816
6817 Mon Jun 10 01:12:31 2003  Kristian Rietveld  <kris@gtk.org>
6818
6819         Merged from stable.
6820
6821         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size):
6822         check if width is !null, not *width. Doh.
6823
6824 Tue Jun 10 01:09:33 2003  Kristian Rietveld  <kris@gtk.org>
6825
6826         Merged from stable.
6827
6828         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
6829         Remove the weird dx logic, get all cell_area and background_area
6830         calculations right. Not sure what was up with it before. (Fixes
6831         #110989, testcase from Vasco Alexandre da Silva Costa).
6832
6833 Tue Jun 10 00:58:23 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6834
6835         * tests/testgtk.c: Make it compile with C89 compilers
6836
6837 2003-06-10  Matthias Clasen  <maclas@gmx.de>
6838
6839         * gtk/gtktextview.c (gtk_text_view_class_init): Install boolean
6840         property "overwrite".
6841         (gtk_text_view_[gs]et_property): Handle "overwrite".
6842         * gtk/gtktextview.[hc] (gtk_text_view_[gs]et_overwrite): Getter
6843         and setter for "overwrite" property.  (#110241, Jeroen Zwartepoorte)
6844
6845 2003-06-09  Matthias Clasen  <maclas@gmx.de>
6846
6847         * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
6848         properties "resize" and "shrink".
6849         (gtk_paned_[gs]et_child_property): Implementations of 
6850         GtkContainer::[gs]et_child_property.  
6851         * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
6852         paned child properties instead of remove/add hacks.  (#114667, 
6853         Soeren Sandmann) 
6854
6855 Mon Jun  9 16:18:11 2003  Owen Taylor  <otaylor@redhat.com>
6856
6857         * gtk/gtknotebook.c (gtk_notebook_button_press): Back
6858         out event->window test - it wasn't needed because
6859         of the call to get_widget_coordinates().
6860
6861         * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
6862         call to gtk_widget_grab_focus() when not clicking on
6863         any tabs. (Real fix for #114534)
6864
6865 Sun Jun  8 22:03:09 2003  Owen Taylor  <otaylor@redhat.com>
6866
6867         * tests/testdnd.c: Use application/x-rootwindow-drop for
6868         root window drops. (#108670, Alex Larsson)
6869
6870         * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): 
6871         Accept either application/x-rootwin-drop (what GTK+ has always used)
6872         or application/x-rootwindow-drop (what the XDND standard specifies).
6873
6874 Fri Jun  6 11:07:33 2003  Owen Taylor  <otaylor@redhat.com>
6875
6876         * gtk/gtkwidget.c (event_window_still_viewable): 
6877         Before delivering an event to a widget, check that
6878         (if relevant), the event's window is still viewable.
6879         (#105642, Dennis Björklund)
6880
6881         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): 
6882         NULL out private->parent, since after destruction
6883         it might not be valid any more.
6884
6885         * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
6886         accesses before g_return_val_if_fail(). Treat 
6887         DESTROYED windows as unmapped.
6888
6889 Thu Jun  5 09:28:03 2003  Owen Taylor  <otaylor@redhat.com>
6890
6891         * gtk/gtkentry.c: Recompute unconditionally in
6892         gtk_entry_style_set, and in a new gtk_label_screen_changed().
6893         Protect the guts of recompute_idle_func() with
6894         gtk_widget_has_screen(). (#114040, Morten Welinder) 
6895         Fix FALSE/0 confusion.
6896         
6897 Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
6898
6899         * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
6900         Fixes (#114669)
6901
6902 Sun Jun  8 11:27:29 2003  Owen Taylor  <otaylor@redhat.com>
6903
6904         * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with 
6905         set_adjustment (viewport, NULL);
6906
6907 2003-06-07  Matthias Clasen  <maclas@gmx.de>
6908
6909         * gtk/gtkiconfactory.c (get_default_icons): 
6910         * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
6911         * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
6912         undelete and revert.  (#96633)
6913         
6914 Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
6915
6916         * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and 
6917         refactoring of code to reduce duplication; fixes include:
6918
6919         - gtk_viewport_realize(): Position the window correct from adjustment 
6920         values. (#110737, Michael Natterer)
6921
6922         - Remove some division-by-zero checks in places where there is no 
6923         longer division. (#110737)
6924
6925         - gtk_viewport_class_init: Make the hadjustment/vadjustment properties 
6926         G_PARAM_CONSTRUCT, so that there will always be adjustments, even 
6927         if gtk_viewport_new isn't used (#101135, Thomas Leonard).
6928
6929         - Switch over to encapsulated lazy-creation for hadjustment/
6930         vadjustment; even with the CONSTRUCT property, we need this after
6931         destroy.
6932
6933         - When updating the adjustment, immediate set their values to
6934         match the the current range of the viewport, and update the 
6935         viewport position to match the value of the new adjustments. 
6936         (Part of #1165)
6937
6938 2003-06-06  Tor Lillqvist  <tml@iki.fi>
6939
6940         * gdk/win32/gdkprivate-win32.h: Fix typo.
6941
6942         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
6943         graphics_exposures and subwindow_mode, too, even if they aren't
6944         currently used.
6945
6946 Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
6947
6948         Merged from stable.
6949
6950         * gtk/gtktreeview.c (do_expand_collapse),
6951         (expand_collapse_timeout), (cancel_arrow_animation): made
6952         expand_collapse_timeout a wrapper with locks around     
6953         do_expand_collapse, made cancel_arrow_animation use
6954         do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
6955         Peter Bloomfield).
6956
6957 Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
6958
6959         * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
6960         * modules/input/gtkimcontextxim.c (preedit_start_callback,
6961         preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag 
6962         to keep preedit-[start,changed,end] signals from being called during
6963         finalization (#111861).
6964
6965 2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
6966
6967         * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
6968         presses that are not on the tab (#114534).
6969
6970 Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
6971
6972         * demos/Makefile.am: Conditionalize dependencies for
6973         gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe). 
6974         Buildtest-inline-pixbufs.h in srcdir. Don't try to build 
6975         test-inline-pixbufs.h if we don't have libpng.
6976
6977         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): 
6978         Add a dependency on gdk-pixbuf.loaders when not 
6979         cross-compiling, remove the dependency on gdk-pixbuf-csource
6980         when not cross compiling.
6981
6982 Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
6983
6984         * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
6985         gtk_window_get_geometry_info() returning NULL.
6986         (#107311, John Finlay)
6987
6988 Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
6989
6990         * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
6991         twice the border width from the width/height, not
6992         1x the border width. (#106336, Rodney Dawes)
6993
6994 Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
6995  
6996         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
6997         If at the end of the buffer, move to the end iter -
6998         parallels behavior of move_iter_to_previous_line.
6999         (#81960, Padraig O'Briain)
7000  
7001 Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
7002
7003         #80023, Yao Zhang, TOKUNAGA Hiroyuki
7004
7005         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
7006         Account for the preedit cursor offset if the iter passed
7007         in is at the same place as the insertion cursor.
7008
7009         * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
7010         Encapsulate getting the insertion cursor location.
7011
7012         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
7013         Pass the real y/height to the IM context. Take 
7014         text_view->x/yoffset into account.
7015
7016 Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
7017
7018         * gtk/gtktextview.[ch]: Never scroll on focus in
7019         (#81893, Patch from Paolo Maggi)
7020
7021         * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages): 
7022         Scroll to the current cursor location before handling
7023         the action, in case the user just tabbed in
7024         and the cursor is offscreen.
7025
7026 Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
7027          
7028          #107883, Gustavo Giráldez
7029
7030         * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
7031         Split out the case where we know we changed, and 
7032         already dealt with our cached line being invalidated
7033         from external calls to gtk_text_layout_changed.
7034
7035         * gtk/gtktextlayout.c (gtk_text_layout_changed):
7036         Check if the invalidate yrange intersects our
7037         cached line, and clear it if necessary.
7038
7039 2003-06-05  Tor Lillqvist  <tml@iki.fi>
7040
7041         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
7042         filters.
7043
7044 2003-06-05  Matthias Clasen  <maclas@gmx.de>
7045
7046         * gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
7047         (gtk_text_view_grab_notify): 
7048         (gtk_text_view_state_changed): Implement these
7049         to unobscure cursor when grab shadowed or insensitised.
7050         (gtk_text_view_unobscure_mouse_cursor): New function to undo the
7051         effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
7052         gtk_text_view_motion_event().
7053         (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
7054
7055         * gtk/gtktextview.c (select_all): New keybinding signal for
7056         (un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
7057
7058         * gtk/gtkcalendar.c (calendar_timer): 
7059         (stop_spinning): Replace deprecated gtk_timeout_* functions by
7060         their GLib counterparts.  (#114429)
7061
7062         * gtk/gtktreestore.c (gtk_tree_store_new): 
7063         * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on 
7064         types.
7065
7066 Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
7067
7068         * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
7069         When drawing underlines, join up adjacent runs
7070         where possible, so we don't get changes in 
7071         shaper/font/etc. breaking underlines. (#103662,
7072         Kang Jeong-Hee)
7073
7074 Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
7075
7076         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
7077         Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
7078         improve the speed of inserting rows into an already sorted list,
7079         #109292
7080
7081 Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
7082
7083         * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
7084         track of when we have a clip mask set for the GC,
7085         and when we unset it, or switch to a clip region,
7086         immediately call XSetClipMask (..., None) to avoid
7087         Xlib caching stale data. (#111806)
7088
7089         * gtk/gtktextdisplay.c: Don't set a clip mask
7090         when drawing alpha pixmaps; it isn't necessary any more.
7091         (#111806)
7092
7093 Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
7094
7095         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): 
7096         gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): 
7097         Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
7098         (#92548, Tim Evans)
7099
7100         * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
7101         gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
7102         Use state_type = STATE_INSENSITIVE for insensitive menu items.
7103
7104 Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
7105
7106         Merged from stable.
7107
7108         * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
7109         assert for get_info. (reported by Michael Natterer),
7110         (gtk_tree_view_expand_all_emission_helper),
7111         (gtk_tree_view_expand_all_helper): emit row_expanded for all
7112         expanded rows during an _expand_all operation. (Fixes #111280,
7113         reported by Benjamin Bayart).
7114
7115 Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
7116
7117         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
7118         respond to pings on a root window; prevents infinite
7119         loops if we are selecting for SubstructureNotify on the
7120         root window. (#111945, Sergey V. Udaltsov)
7121
7122 Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
7123
7124         #71597, reported by Morten Welinder
7125
7126         * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
7127         (Patch from Christian Petig)
7128
7129         * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
7130         Major rewrite of 555 and 565 conversion routines:
7131
7132         - Move all the bit shifting into a small block of macros,
7133           eliminating much duplication of complicated arithmetic.
7134         - Get rid of 2-pixels at a time code, which was buggy,
7135           hard to maintain, caused unaligned accesses, and
7136           probably didn't actually perform any better.
7137         - Simplify cases where different data types were
7138           used for the little and big endian cases, use
7139           GUINT16_SWAP_LE_BE() where appropriate.
7140                 
7141 Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
7142
7143         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
7144         bad optimization for src_rowstride == dest_stride.
7145         (Didn't consider the case where we were copying only
7146         partial widths of a wider source buffer)
7147         (#113034, reported by Hans Petter Jansson)
7148
7149 2003-06-03  Michael Natterer  <mitch@gimp.org>
7150
7151         * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
7152         reenabled button_release events for xinput devices. (#113948)
7153
7154 2003-06-03  Christian Rose  <menthos@menthos.com>
7155
7156         * configure.in: Added "li" to ALL_LINGUAS.
7157
7158 Mon Jun  2 18:58:54 2003  Owen Taylor  <otaylor@redhat.com>
7159
7160         * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
7161         map the event window if the notebook isn't mapped. (#113980,
7162         Richard Reich)
7163
7164 2003-06-02  Sven Neumann  <sven@gimp.org>
7165
7166         * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
7167
7168         * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
7169
7170 2003-06-01  Matthias Clasen  <maclas@gmx.de>
7171
7172         * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add 
7173         Since: 2.4 to the docs.
7174
7175         * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
7176         an example to the docs.  (#98427)
7177
7178 2003-05-30  Murray Cumming  <murrayc@usa.net>
7179
7180         * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
7181         gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
7182         uses the new private data system - see g_type_class_add_private() in
7183         gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
7184
7185 2003-05-30  Matthias Clasen  <maclas@gmx.de>
7186         
7187         * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
7188         signature of gtk_notebook_draw_arrow() for Solaris builds to go
7189         through.  (#114043, Anand Subramanian)
7190
7191 Thu May 29 18:30:35 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7192
7193         * modules/input/imipa.c: 
7194         use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
7195
7196 Thu May 29 18:08:01 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7197
7198         * gtk/gtkimmodule.c (_gtk_im_module_list):
7199         use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
7200
7201 Thu May 29 09:34:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7202
7203         * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
7204         label of default input method localizable.
7205         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): 
7206         use translations of input method context names
7207         * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
7208           modules/input/iminuktitut.c, modules/input/imthai-broken.c,
7209           modules/input/imti-er.c, modules/input/imti-et.c
7210           modules/input/imviqr.c, modules/input/imxim.c
7211         use GETTEXT_PACKAGE instead of "gtk+" for domain name.
7212         (#113850).
7213
7214 Thu May 29 18:23:01 2003  Kristian Rietveld  <kris@gtk.org>
7215
7216         Merged from stable.
7217
7218         * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
7219         grab separate, the user might clear the tree in the focus-in
7220         callback. (Fixes #113086, testcase from Felipe Heidrich).
7221
7222 Thu May 29 18:06:26 2003  Kristian Rietveld  <kris@gtk.org>
7223
7224         Merged from stable.
7225
7226         * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
7227         of row reference when we unset the model. Also reset
7228         dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
7229
7230 Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>
7231
7232         Merged from stable.
7233
7234         * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
7235         the current editing, if it exists. (Fixes #108956, reported by
7236         Michael Natterer).
7237
7238 Thu May 29 17:06:09 2003  Kristian Rietveld  <kris@gtk.org>
7239
7240         Merged from stable.
7241
7242         * gtk/gtktreeview.c (check_selection_helper): new function,
7243         (gtk_tree_view_row_deleted): traverse the tree from the
7244         deleted node to see whether the selection changed, instead of
7245         just checking this node. (Fixes #107400, reported by 'Duncan').
7246
7247 Thu May 29 16:31:34 2003  Kristian Rietveld  <kris@gtk.org>
7248
7249         Merged from stable.
7250
7251         * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
7252         (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
7253         instead of _maybe_begin_dragging_row, so the icon can be
7254         overridden by apps. (Fixes #104374, patch from Daniel Elstner).
7255
7256 Thu May 29 16:14:04 2003  Kristian Rietveld  <kris@gtk.org>
7257
7258         Merged from stable.
7259
7260         * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
7261         cell_area x/width for the expander if needed. (Fixes #101748,
7262         reported by Dave Cook and Mariano Suarez-Alvarez).
7263
7264 Thu May 29 16:01:38 2003  Kristian Rietveld  <kris@gtk.org>
7265
7266         Merged from stable.
7267
7268         * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
7269         if tree/node are still the same after _internal_select_node.
7270         (Fixes #92256, reported by edscott).
7271
7272 Thu May 29 15:38:30 2003  Kristian Rietveld  <kris@gtk.org>
7273
7274         Fixes #75745, reported by Richard Hult. Merged from stable.
7275
7276         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
7277         GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
7278         cursor or not.
7279
7280         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
7281         if we are rendering a cursor row, and the cell the be
7282         processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
7283         flag (else we unset it).
7284
7285 2003-05-27  Matthias Clasen  <maclas@gmx.de>
7286
7287         * gtk/gtkwindow-decorate.c: 
7288         * gtk/gtktreeprivate.h: 
7289         * gtk/gtkdnd.c: 
7290         * gdk/win32/gdkwindow-win32.h: 
7291         * gdk/linux-fb/gdkprivate-fb.h: 
7292         * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
7293         unspecified signedness.  (#112919, Morten Welinder)
7294
7295         * gtk/queryimmodules.c (escape_string): 
7296         * gtk/gtktextbtree.c (_gtk_text_btree_get_text): 
7297         * gtk/gtksettings.c (_gtk_settings_parse_convert): 
7298         * gtk/gtkrc.c (gtk_rc_parse_assignment): 
7299         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): 
7300         * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all 
7301         occurances of g_string_new ("") by g_string_new (NULL). (#106975,
7302         Morten Welinder) 
7303
7304 2003-05-27  Tor Lillqvist  <tml@iki.fi>
7305
7306         * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
7307         files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
7308
7309         * gdk/Makefile.am: libgdk-win32-2.0.la depends on
7310         win32/libgdk-win32.la.
7311
7312         * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
7313
7314 Sat May 24 22:19:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7315
7316         * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
7317         scrollbar slider length 21 instead of 7.
7318
7319 2003-05-23  Matthias Clasen  <maclas@gmx.de>
7320
7321         * gtk/gtknotebook.c: Add support for up to four scroll
7322         arrows. Control their display by new style properties
7323         "has_forward_stepper", "has_backward_stepper",
7324         "has_secondary_forward_stepper" and
7325         has_secondary_backward_stepper". (#110540)
7326
7327         * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
7328         click_child three bits wide, add
7329         has_{before,after}_{previous,next} fields.
7330
7331         * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
7332         focus out of hex_entry.  (#112665)
7333         (hex_focus_out): New signal handler for focus out of hex entry.
7334
7335 Wed May 21 19:01:06 2003  Owen Taylor  <otaylor@redhat.com>
7336
7337         * gtk/gtkwidget.c (gtk_widget_realize): 
7338         g_return_if_fail() if
7339         GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
7340         (#107872, Christian Reis)
7341
7342 2003-05-22  Matthias Clasen  <maclas@gmx.de>
7343
7344         * gtk/gtkfilesel.c (gtk_file_selection_create_dir): 
7345         (gtk_file_selection_rename_file): Some keynav improvements for the
7346         "Rename File" and "Create Directory" subdialogs: Enter in entry
7347         activates default, default is "Create"/"Rename", Escape cancels
7348         dialog.  (#113110)
7349         (gtk_file_selection_set_filename): Add a hint about opening 
7350         directories.  (#113175)
7351
7352 2003-05-22  Matthias Clasen  <maclas@gmx.de>
7353
7354         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
7355         Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
7356         anyway.  (#113476)
7357
7358 Wed May 21 15:53:14 2003  Owen Taylor  <otaylor@redhat.com>
7359
7360         * gtk/gtkprogress.c (gtk_progress_set_format_string,
7361         gtk_progress_set_show_text): Always queue a resize ... 
7362         we rely on the size-allocate to do the update, plus a 
7363         different format can actually change our size requisition.
7364         (#111052, Vasco Alexandre da Silva Costa)
7365
7366         * gtk/gtkprogress.c (gtk_progress_changed): Track
7367         ::changed as well as ::value_changed, and queue a
7368         resize on ::changed when necessary.
7369
7370         * gtk/gtkprogress.c (gtk_progress_set_adjustment): 
7371         Call gtk_progress_changed() here to update or 
7372         queue a resize as necessary.
7373
7374 Wed May 21 14:06:13 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7375
7376         * gtk/gtkimcontextsimple.c: added composing rules of
7377         Greek accented letters, patch by Vasilis Vasaitis (#107507)
7378
7379 Wed May 21 13:19:05 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7380
7381         * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle): 
7382         * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
7383         gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
7384
7385 Wed May 21 12:10:25 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7386
7387         * gtk/gtkimcontextsimple.c: 
7388         code that can check the compose table for ascending order,
7389         by Vasilis Vasaitis (#104862).
7390
7391 Wed May 21 12:52:01 2003  Owen Taylor  <otaylor@redhat.com>
7392
7393         * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need 
7394         to pass the unmasked state to gdk_keymap_translate_keyboard_state() 
7395         to handle the case where a modifier not in the mask
7396         (like Num_Lock) changes the key value, so replace
7397         the masked state with a state/mask pair. (#106913,
7398         Olivier Ripoll)
7399
7400         * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
7401         in state/mask pair to _gtk_key_hash_lookup()
7402
7403 Tue May 20 21:58:00 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
7404
7405         * modules/input/gtkimcontextxim.c (xim_info_display_closed):
7406         fix a memory leak, free input context list (#113259).
7407
7408 2003-05-21  Matthias Clasen  <maclas@gmx.de>
7409
7410         * configure.in (all_loaders): Add pcx.
7411
7412         * gtk/gtkcalendar.c: Make calendar controls spin.  (#112540)
7413
7414 Tue May 20 17:27:24 2003  Owen Taylor  <otaylor@redhat.com>
7415
7416         * gtk/gtkimmodule.c (gtk_im_module_init): Silently
7417         accept a missing gtk.immodules file, some people
7418         want to run without one. (#112406, patch from
7419         Arnaud Charlet)
7420
7421 Tue May 20 17:05:31 2003  Owen Taylor  <otaylor@redhat.com>
7422
7423         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix 
7424         height/width confusion (#113370, Xan Lopez)
7425
7426 Tue May 20 15:48:45 2003  Owen Taylor  <otaylor@redhat.com>
7427
7428         * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
7429         zero all unused parts of client messages (Mainly Motif DND
7430         and EWMH). Also, fix a couple places where we were putting
7431         contents into Motif DND messages that didn't belong.
7432         (#113361, EWMH problem reported by Lubos Lunak)
7433
7434         * gtk/gtkselection.c (_gtk_selection_request): Handle the
7435         case where the property type for the multiple atoms is
7436         ATOM_PAIR by doing the conversions ourselve. This is
7437         needed for Xt inter-operation.
7438
7439 2003-05-19 Arafat Medini <lumina@silverpen.de>
7440
7441         * configure.in: Added ar to ALL_LINGUAS
7442
7443 2003-05-19  Matthias Clasen  <maclas@gmx.de>
7444
7445         * gtk/gtksettings.c (gtk_rc_property_parse_border,
7446         gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
7447         gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
7448         Add docs.
7449
7450         * gtk/gtkwidget.c (gtk_widget_class_install_style_property, 
7451         gtk_widget_class_install_style_property_parser): Add docs. 
7452
7453 2003-05-17  Matthias Clasen  <maclas@gmx.de>
7454
7455         * tests/prop-editor.c: Add navigation for object properties, so
7456         that you can easily edit the properties of the parent of a widget.
7457         (#113152)
7458
7459 Wed May 14 17:45:32 2003  Owen Taylor  <otaylor@redhat.com>
7460
7461         * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
7462         Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis 
7463         inconsistency and leave the old name as an aliass (#104873)
7464
7465 Wed May 14 16:40:09 2003  Owen Taylor  <otaylor@redhat.com>
7466
7467         * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
7468         from Charles Schmidt to add missing notify (#108305)
7469
7470 Wed May 14 16:00:51 2003  Owen Taylor  <otaylor@redhat.com>
7471  
7472         * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
7473         (#105500, Morten Welinder.)
7474  
7475 Wed May 14 09:05:11 2003   Hidetoshi Tajima <hidetoshi.tajima@sun.com>
7476
7477         * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
7478         instead of gumake for XNFilterEvents event mask(#110493).
7479
7480 2003-05-11  Anders Carlsson  <andersca@codefactory.se>
7481
7482         * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
7483         a GObject. (#112762)
7484
7485 2003-05-08  Sven Neumann  <sven@gimp.org>
7486
7487         * configure.in: set the HAVE_X11R6 automake conditional to false
7488         if not compiling for X11.
7489
7490 2003-05-08  Matthias Clasen  <maclas@gmx.de>
7491
7492         * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options): 
7493         (gtk_calendar_get_display_options): New functions.
7494         (gtk_calendar_display_options): Depreate.  (#64567)
7495         (gtk_calendar_class_init): Add boolean properties for the display
7496         options.  (#50949)
7497
7498 Tue May  6 16:50:52 2003  Owen Taylor  <otaylor@redhat.com>
7499
7500         Patch from James Henstridge to update to automake-1.7
7501         (#109542)
7502  
7503         * autogen.sh: update to call newer tools.
7504  
7505         * configure.in: various updates, to use M4 macros to put
7506         variables that change each release at the top.
7507         Use AC_HELP_STRING to format help strings.
7508         Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
7509  
7510         * Makefile.am: require Automake 1.7.  Remove gdk-2.0.pc and
7511         gtk+-2.0.pc on uninstall.  Pass --enable-gtk-doc to configure
7512         during distcheck.
7513  
7514         * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
7515         makefile fragment.
7516  
7517         * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
7518         Use BUILT_SOURCES where appropriate.
7519         Build generated files in builddir rather than srcdir.
7520         Fix uninstall and distclean targets to satisfy distcheck.
7521
7522         ===
7523
7524         * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
7525         built first, since we are now using BUILT_SOURCES.
7526
7527         * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
7528
7529         * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
7530         with geninclude.pl.
7531
7532         * configure.in: Update versions to 2.3.0.
7533  
7534 2003-05-06  Tor Lillqvist  <tml@iki.fi>
7535
7536         Fix for #110165 (thanks to Arnaud Charlet):
7537         
7538         * gdk/win32/gdkevents-win32.c (build_keypress_event,
7539         build_keyrelease_event): For unshifted control char, use
7540         lowercase ASCII keyval.
7541         (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
7542         UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
7543         lowercase keyval. Use build_key_event_state() here, too, instead
7544         of minor code duplication.
7545
7546 2003-05-06  Matthias Clasen  <maclas@gmx.de>
7547
7548         * tests/testmultidisplay.c: Don't include strings.h, it's not
7549         needed anymore.  (#112388)
7550
7551         * examples/menu/itemfactory.c: 
7552         * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
7553         itemfactory example.
7554
7555 2003-05-05  Matthias Clasen  <maclas@gmx.de>
7556
7557         * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock):  Actually set the
7558         icon type to the stock icon type.  (#111735, Dave Bordoley)
7559
7560 2003-05-05  Christian Rose  <menthos@menthos.com>
7561
7562         * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
7563         Removed sp, it's replaced by sr@Latn.
7564
7565 Wed Apr 30 22:09:11 BST 2003  Tony Gale <gale@gtk.org>
7566
7567         * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
7568         Gonzalo Odiard
7569
7570 Mon Apr 28 17:54:39 2003  Jonathan Blandford  <jrb@redhat.com>
7571
7572         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
7573         data iff the destroy func isn't NULL.
7574
7575 Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>
7576
7577         * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
7578
7579 2003-04-23  Abel Cheung  <maddog@linux.org.hk>
7580
7581         * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
7582
7583 Tue Apr 22 15:33:51 2003  Owen Taylor  <otaylor@redhat.com>
7584
7585         * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
7586         of UTF-8. (#106419, Roozbeh Pournader)
7587
7588 Tue Apr 22 15:17:25 2003  Owen Taylor  <otaylor@redhat.com>
7589
7590         * configure.in: Only check for XFT2 if we found pango-xft
7591         (#105692, Jon Nall)
7592
7593 Tue Apr 22 15:12:19 2003  Owen Taylor  <otaylor@redhat.com>
7594
7595         * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
7596         PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
7597
7598 Tue Apr 22 19:43:01 BST 2003  Tony Gale <gale@gtk.org>
7599
7600         * docs/faq/gtk-faq.sgml: add note about version converage.
7601
7602 Mon Apr 21 19:02:16 2003  Owen Taylor  <otaylor@redhat.com>
7603
7604         * gtk/gtksocket.c (activate_key): Fix prototype for
7605         activate_key. (#108927, Jason D. Hildebrand)
7606
7607 Mon Apr 21 18:42:51 2003  Owen Taylor  <otaylor@redhat.com>
7608
7609         * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
7610         Remove geninclude.pl from CVS and don't dist it either,
7611         it is generated. (#108970, Rich Kinder)
7612
7613 Mon Apr 21 18:35:48 2003  Owen Taylor  <otaylor@redhat.com>
7614
7615         * gtk/gtkobject.h: Remove a couple of obsolete comments,
7616         fix another comment. (#109737, Britton Kerin)
7617
7618 Mon Apr 21 18:29:03 2003  Owen Taylor  <otaylor@redhat.com>
7619
7620         * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
7621         the source list, not just it's contents (Patch
7622         from Charles Kerr, #108243)
7623
7624 Mon Apr 21 18:13:46 2003  Owen Taylor  <otaylor@redhat.com>
7625
7626         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
7627         from Alex Larsson fixing problem with restacking during
7628         DND. (#108671)
7629
7630 Mon Apr 21 15:07:29 2003  Owen Taylor  <otaylor@redhat.com>
7631
7632         * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
7633         Calling XFlush() after ungrabbing, to avoid problems if
7634         the app subsequently blocks on a long-running operation.
7635         (#106520, reported by Rajkumar Siva)
7636
7637 Fri Apr 18 17:42:45 2003  Owen Taylor  <otaylor@redhat.com>
7638
7639         * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
7640         SKIP_TASKBAR/SKIP_PAGER to set of properties we
7641         might set on map. (#110019, problem reported
7642         by Loban Rahman)
7643
7644 Fri Apr 18 17:14:33 2003  Owen Taylor  <otaylor@redhat.com>
7645
7646         * gdk/gdkevents.c (gdk_event_copy): Fix for the
7647         case when gdk_event_copy() is called on a non-allocated
7648         event. (#109716, reported by Rich Burridge)
7649
7650 Fri Apr 18 16:57:44 2003  Owen Taylor  <otaylor@redhat.com>
7651
7652         * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
7653         Fix pointer arithmetic on 'void *'. (#108322)
7654
7655 Fri Apr 18 16:31:49 2003  Owen Taylor  <otaylor@redhat.com>
7656
7657         * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
7658         Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
7659         use of XAddConnectionWatch. Remove --enable-xim config option.
7660         Should fix building on X11R6 (#110523, Albert Chin)
7661
7662 Fri Apr 18 15:56:46 2003  Owen Taylor  <otaylor@redhat.com>
7663
7664         * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
7665         Patch from Morten Welinder to catch Sun servers with a 
7666         broken implementation of the RENDER extension. (#108309)
7667
7668 Fri Apr 18 15:30:38 2003  Owen Taylor  <otaylor@redhat.com>
7669
7670         * gdk/x11/gdkwindow-x11.c (set_text_property): Use
7671         gdk_free_compound_text(), not g_free(). (#107643,
7672         Michael Zucchi)
7673
7674 Fri Apr 18 15:11:50 2003  Owen Taylor  <otaylor@redhat.com>
7675
7676         * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
7677         gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
7678         wrong use of base_finalize. (#105126, Sven Neumann)
7679
7680 Fri Apr 18 15:06:00 2003  Owen Taylor  <otaylor@redhat.com>
7681
7682         * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
7683         '/' vs. '*' problem in aspect ration computations. (#108237)
7684
7685 Fri Apr 18 14:15:09 2003  Owen Taylor  <otaylor@redhat.com>
7686
7687         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): 
7688         * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
7689         don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify 
7690         event, so select for both. (#108406, Egmont Koblinger)
7691
7692 Thu Apr 17 09:57:44 2003  Jonathan Blandford  <jrb@gnome.org>
7693
7694         * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
7695         caused by not clearing the scroll_to_path.
7696
7697 2003-04-16  Matthias Clasen  <maclas@gmx.de>
7698
7699         * gtk/gtkstyle.c: Doc additions and fixes.
7700
7701         * gtk/gtktreeviewcolumn.c
7702         (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
7703
7704 2003-04-14  Michael Natterer  <mitch@gimp.org>
7705
7706         * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
7707         that the iter is not reordered to its own position. Prevents model
7708         corruption for the case that the store contains only a single item
7709         (fixes bug #108387).
7710
7711         Unrelated:
7712
7713         * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
7714         new list element later so we don't leak it if we decide to return
7715         early.
7716
7717         * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
7718         set selection->tree_view->priv->anchor to NULL after freeing it.
7719
7720 2003-04-13  Matthias Clasen  <maclas@gmx.de>
7721
7722         * gtk/gtktreeviewcolumn.c
7723         (gtk_tree_view_column_cell_get_position): Document. 
7724
7725         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): 
7726         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand): 
7727         * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
7728         these as 2.4 additions.
7729
7730 2003-04-09  Matthias Clasen  <maclas@gmx.de>
7731
7732         * INSTALL.in: Fix the real thing.
7733
7734         * INSTALL: Typo fix.
7735
7736 Mon Apr  7 19:43:15 2003  Owen Taylor  <otaylor@redhat.com>
7737
7738         * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
7739         after ungrabbing the server.
7740  
7741         * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
7742         calls to XFlush().
7743
7744         * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
7745         Use gdk_x11_display_grab/ungrab.
7746
7747         * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
7748         use_xshm to TRUE so SHM gets used when present.
7749  
7750 2003-04-07  Matthias Clasen  <maclas@gmx.de>
7751
7752         * gtk/gtktextlayout.c (set_para_values): 
7753         * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR.  (#110086,
7754         David Brigada)
7755
7756         * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
7757         gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
7758         misspellings of possessive "its".  (#110027, Doug Quale)
7759
7760 2003-04-03  Matthias Clasen  <maclas@gmx.de>
7761
7762         * demos/gtk-demo/main.c (demo_find_file): Only use files from the
7763         current directory if it looks like the srcdir.  (#109357)
7764
7765 Wed Apr  2 23:02:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
7766
7767         * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
7768         focus_on_click
7769
7770         * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
7771         navigation not wrap around.
7772
7773 2003-04-02  Matthias Clasen  <maclas@gmx.de>
7774
7775         * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
7776         Return 0 if lower == upper.  (#109155)
7777         (gtk_progress_get_current_percentage): Use
7778         gtk_progress_get_percentage_from_value().
7779
7780 2003-04-01  Matthias Clasen  <maclas@gmx.de>
7781
7782         * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
7783         (#109510, Noah Levitt)
7784
7785 Mon Mar 31 13:52:13 2003  Jonathan Blandford  <jrb@redhat.com>
7786
7787         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
7788         members so Purify won't complain.
7789
7790         * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
7791
7792 2003-03-31  Matthias Clasen  <maclas@gmx.de>
7793
7794         * gtk/gtkwindow.c: Add a new property, role, corresponding to 
7795         gtk_window_[gs]et_role().  (#93904)
7796
7797 Sun Mar 30 03:57:42 2003  Jonathan Blandford  <jrb@gnome.org>
7798
7799         * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
7800         fix crash.  Patch from Markus Lausser <sgop@users.sourceforge.net>
7801
7802 2003-03-29  Matthias Clasen  <maclas@gmx.de>
7803
7804         * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
7805         of labels back to normal before reparenting back.  (#102387)
7806
7807         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
7808         a default window title to match the GtkFontSelectionDialog behavior.
7809  
7810         (gtk_color_selection_dialog_new): Don't call
7811         gtk_window_set_title() if title is NULL.  (bug #101975, Daniel Elstner)
7812
7813 2003-03-29  Matthias Clasen  <maclas@gmx.de>
7814
7815         Fix for bug #78499:
7816         
7817         * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
7818         select_lines. 
7819
7820         * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
7821         select_lines on double/triple click.
7822
7823         * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
7824         select-by-words and select-by-lines behaviour.
7825
7826         Fixes for bug #56248:
7827         
7828         * gtk/gtknotebook.c (stop_scrolling): New function to remove the
7829         timer and queue a redraw. 
7830         (gtk_notebook_grab_notify): 
7831         (gtk_notebook_state_changed): New functions to call stop_scrolling() 
7832         if necessary.   
7833         (gtk_notebook_button_release): Use stop_scrolling().
7834         (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
7835
7836         * gtk/gtkrange.c (stop_scrolling): New function to remove the
7837         grab, remove the timer and queue a redraw.
7838         (gtk_range_grab_notify): 
7839         (gtk_range_state_changed): New functions to call stop_scrolling() 
7840         if necessary.   
7841         (gtk_range_button_release): Use stop_scrolling().
7842
7843         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): 
7844         (gtk_spin_button_state_changed): Redraw after stop_spinning.
7845         (gtk_spin_button_stop_spinning): Reset click_child to correct the
7846         drawing of the arrows.
7847         (gtk_spin_button_button_release): Use a local copy of click_child,
7848         since stop_spinning() resets it.
7849
7850         * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
7851         C-A-PgDown as alternatives to the A-less variants. (This slipped
7852         in accidentally some time ago).  (#97860)
7853
7854 2003-03-26  Sven Neumann  <sven@gimp.org>
7855
7856         * gtk/gtktreeview.c: rewrote the function that does node and arrow
7857         prelighting, queue all redraws from here (Fixes bug #108792).
7858
7859 2003-03-20  Richard Kinder <r_kinder@yahoo.com>
7860
7861         * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
7862         Fixes bug #108778.
7863
7864 2003-03-20  Guntupalli Karunakar <karunakar@freedomink.org>
7865
7866         * configure.in: Added "ml" in ALL_LINGUAS
7867
7868 Sat Mar 15 18:49:27 2003  Manish Singh  <yosh@gimp.org>
7869
7870         * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
7871         G_DISABLE_DEPRECATED.
7872
7873 2003-03-14  Tor Lillqvist  <tml@iki.fi>
7874
7875         * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
7876         GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
7877         DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
7878         multiple monitors can have negative coordinates on some of the
7879         monitors. (partial fix for #99496, Arnaud Charlet)
7880
7881 2003-03-15  Matthias Clasen  <maclas@gmx.de>
7882
7883         * gtk/gtktextview.c: Add a "buffer" property.  (#108353) 
7884
7885 2003-03-13  Sven Neumann  <sven@gimp.org>
7886
7887         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
7888         removed redundant calls to g_object_notify().
7889         (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
7890         bug #108236.
7891
7892         * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
7893         (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
7894         functions return an integer value).
7895
7896 2003-03-13  Tor Lillqvist  <tml@iki.fi>
7897
7898         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
7899         WM_MOUSEMOVE, the test whether we have actually moved (and thus
7900         shouldn't generate an GDK event) moved after the call to
7901         propagate() and translate_mouse_coords(). Otherwise we were
7902         testing wrong values. (#108115, Allin Cottrell)
7903         (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
7904         way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
7905
7906         * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
7907         is used, must copy the HCURSOR with CopyCursor(), as it is OK to
7908         destroy the GdkCursor after calling gdk_pointer_grab(). Set the
7909         cursor right away with SetCursor(), as we won't get any
7910         WM_SETCURSOR messages while the mouse is captured. 
7911         (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
7912         with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
7913
7914         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
7915         WM_SYSCHAR, return FALSE from the window procedure to prevent the
7916         DefWindowProc from being called. Otherwise Windows would beep,
7917         thinking you are tring to access a (nonexistent) menu when you
7918         press Alt-something. Don't do this for Alt-Space,
7919         though. (#107454, Martyn Russell)
7920
7921         * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
7922
7923 Tue Mar 11 12:01:07 2003  Jonathan Blandford  <jrb@gnome.org>
7924
7925         * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
7926         [left/right] expands/collapses the tree, #108092
7927
7928 2003-03-09  Tor Lillqvist  <tml@iki.fi>
7929
7930         * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
7931         compensate for LineTo() not drawing the end pixel. It causes more
7932         harm than benefits, see bug #81895.
7933
7934 2003-03-08  Matthias Clasen  <maclas@gmx.de>
7935
7936         Bug #107664 continued:
7937
7938         * gdk/x11/gdkinputprivate.h: 
7939         * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove. 
7940         (_gdk_input_other_event): Return gboolean.
7941         * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove. 
7942         (_gdk_input_other_event): Return gboolean.
7943         * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
7944
7945         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
7946         gboolean, remove pointless call to _gdk_input_window_none_event.
7947
7948         * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
7949         (_gdk_input_window_none_event): Remove.
7950
7951         * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment): 
7952         (_gtk_text_iter_get_any_segment): 
7953         (_gtk_text_iter_get_segment_byte): 
7954         (_gtk_text_iter_get_segment_char): 
7955         (_gtk_text_iter_get_text_line): 
7956         (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
7957         * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
7958         * gdk/win32/gdkfont-win32.c (gdk_font_equal): 
7959         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin): 
7960         (gdk_window_get_origin): 
7961         * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion. 
7962
7963 2003-03-06  Matthias Clasen  <maclas@gmx.de>
7964
7965         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
7966         (#107664, Morten Welinder)
7967
7968         * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): 
7969         * gdk/x11/gdkfont-x11.c (gdk_font_equal): 
7970         * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): 
7971         Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)
7972
7973         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): 
7974         * gtk/gtkeditable.c (gtk_editable_get_chars): 
7975         * gtk/gtkctree.c (gtk_ctree_find_node_ptr): 
7976         * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
7977         (#107648, Morten Welinder)Fix NULL/FALSE confusion
7978         (#107648, Morten Welinder)
7979
7980 2003-03-04  Matthias Clasen  <maclas@gmx.de>
7981
7982         * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
7983
7984 Sun Mar  2 23:35:57 2003  Jonathan Blandford  <jrb@gnome.org>
7985
7986         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
7987         handle rtl code.  Thanks to Matthias Clasen for an initial patch
7988         to handle the RTL code.
7989
7990         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
7991
7992         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
7993
7994         * gtk/gtktreeview.c: (invalidate_column),
7995         (invalidate_last_column),
7996         (gtk_tree_view_get_real_requested_width_from_column),
7997         (gtk_tree_view_size_allocate_columns),
7998         (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
7999         (gtk_tree_view_button_release_drag_column),
8000         (gtk_tree_view_update_current_reorder),
8001         (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
8002         (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
8003         (gtk_tree_view_get_background_xrange),
8004         (gtk_tree_view_get_arrow_xrange),
8005         (gtk_tree_view_is_expander_column),
8006         (gtk_tree_view_set_column_drag_info),
8007         (gtk_tree_view_move_cursor_left_right):
8008         Add RTL support.
8009
8010         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
8011         expand flag.
8012
8013         * gtk/gtktreeviewcolumn.c:
8014         (gtk_tree_view_column_class_init),
8015         (gtk_tree_view_column_set_property),
8016         (gtk_tree_view_column_get_property),
8017         (gtk_tree_view_column_set_expand),
8018         (gtk_tree_view_column_get_expand),
8019         (gtk_tree_view_column_cell_process_action):
8020         Add support for expand flag.  Thanks to Kristian Rietveld for an
8021         initial patch for this.
8022
8023 Fri Feb 28 02:06:17 2003  Jonathan Blandford  <jrb@gnome.org>
8024
8025
8026 2003-03-02  Tor Lillqvist  <tml@iki.fi>
8027
8028         * gdk/gdk.def
8029         * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
8030         Gustin.
8031
8032 2003-03-01  Matthias Clasen  <maclas@gmx.de>
8033
8034         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): 
8035         (gtk_scrolled_window_set_hadjustment): Replace uses of
8036         gtk_object_new by g_object_new.
8037
8038 Thu Feb 27 17:44:24 2003  Manish Singh  <yosh@gimp.org>
8039
8040         * demos/gtk-demo/main.c
8041         * demos/gtk-demo/tree_store.c
8042         * gdk/x11/gdkscreen-x11.c
8043         * gtk/gtkcellrenderertoggle.c
8044         * gtk/gtkcolorsel.c
8045         * gtk/gtkdnd.c
8046         * gtk/gtkeditable.c
8047         * gtk/gtkentry.c
8048         * gtk/gtkmenu.c
8049         * gtk/gtkmenubar.c
8050         * gtk/gtkmenuitem.c
8051         * gtk/gtkmenushell.c
8052         * gtk/gtkrc.c
8053         * gtk/gtksettings.c
8054         * gtk/gtkstyle.c
8055         * gtk/gtktextbuffer.c
8056         * gtk/gtktextview.c
8057         * gtk/gtktreeviewcolumn.c
8058         * tests/testgtk.c
8059         * tests/testtext.c
8060         * tests/testtreeedit.c
8061         * tests/testtreefocus.c
8062         * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
8063
8064 Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>
8065
8066         * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
8067         code.
8068
8069 2003-02-24  Sven Neumann  <sven@gimp.org>
8070
8071         * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
8072
8073 2003-02-21  Tomas Ogren  <stric@ing.umu.se>
8074
8075         * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
8076
8077 2003-02-20  Matthias Clasen  <maclas@gmx.de>
8078
8079         * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag): 
8080         Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)
8081
8082         * gtk/gtktextview.c (gtk_text_view_scroll_to_iter): 
8083         (gtk_text_view_update_adjustments): Make sure cursor stays visible
8084         during horizontal scrolling.  (#75270)
8085
8086 2003-02-19  Matthias Clasen  <maclas@gmx.de>
8087
8088         * tests/testdnd.c: Replace gtk_timeout_* by their GLib
8089         counterparts. (#106532)
8090
8091         * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
8092         keys_changed virtual function with the keys_changed signal.
8093         (#106512, Jeff Franks)
8094
8095 2003-02-15  Larry Ewing  <lewing@ximian.com>
8096
8097         * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
8098
8099 2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>
8100
8101         * po/id.po: Added Indonesian translation
8102         * configure.in: Added "id" to ALL_LINGUAS
8103
8104 2003-02-14  Matthias Clasen  <maclas@gmx.de>
8105
8106         * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
8107
8108 2003-02-12  Christian Rose  <menthos@menthos.com>
8109
8110         * configure.in: Added "yi" to ALL_LINGUAS.
8111
8112 2003-02-12  Matthias Clasen  <maclas@gmx.de>
8113
8114         Fix for #82734 and #78216:
8115         
8116         * gtk/gtktextview.c (delete_cb): 
8117         (select_all_cb): New callbacks for context menu items.
8118         (popup_targets_received): Add "Delete" and "Select All" to context
8119         menu, mnemonics and title caps for all items.
8120
8121         * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
8122         context menu item.
8123         (popup_targets_received): Add "Delete" to context menu, mnemonics
8124         and title caps for all items.
8125
8126 2003-02-09  Tor Lillqvist  <tml@iki.fi>
8127
8128         * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
8129         GetDriveType() to recognize removable drives (in order to avoid
8130         hanging if trying to access an empty floppy drive), instead of
8131         hardcoding A: and B: (#105654).
8132
8133 2003-02-09  Matthias Clasen  <maclas@gmx.de>
8134
8135         * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in 
8136         names.  (#57680)
8137
8138 2003-02-09  Christian Rose  <menthos@menthos.com>
8139
8140         * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
8141
8142 Fri Feb  7 04:49:46 2003  Tim Janik  <timj@gtk.org>
8143
8144         * gtk/gtkobject.c: remove quark_user_data usage in
8145         gtk_object_{g|s}et_user_data(). fixes get_user_data()
8146         returning NULL for user_data set through property interface.
8147
8148         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
8149         warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
8150         need to be a programming error (in case of loaded data), (b) it breaks
8151         with 2.0 behaviour where extra magic could be used to create empty
8152         images. don't attempt to retrieve pixbufs from NULL extra_data.
8153
8154 2003-02-06  Matthias Clasen  <maclas@gmx.de>
8155
8156         * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
8157         a GdkVisual *, not a GdkVisual **.  (#105243)
8158
8159         * gtk/gtkclist.c: 
8160         * gtk/gtkctree.c: 
8161         * gtk/gtkcontainer.c: 
8162         * gtk/gtkdnd.c: 
8163         * gtk/gtkentry.c: 
8164         * gtk/gtklist.c:
8165         * gtk/gtkmenu.c:
8166         * gtk/gtkmenuitem.c:
8167         * gtk/gtknotebook.c:
8168         * gtk/gtkselection.c:
8169         * gtk/gtkspinbutton.c:
8170         * gtk/gtktext.c:
8171         * gtk/gtktextview.c:
8172         * gtk/gtktooltips.c:
8173         * gtk/gtktreeview.c:
8174         * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
8175         their non-deprecated GLib counterparts.
8176         
8177         * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
8178         
8179 Sun Feb  2 16:45:57 GMT 2003  Tony Gale <gale@gtk.org>
8180
8181         * docs/tutorial/gtk-tut.sgml: cleanups from
8182         Sebastian Rittau (#104832)
8183
8184 2003-02-01  Tor Lillqvist  <tml@iki.fi>
8185
8186         Merge from stable:
8187
8188         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
8189         gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
8190         (#104108, Naofumi Yasufuku)
8191
8192         * gdk/gdk.def: Export the above. Export
8193         gdk_screen_get_system_visual, noticed by Ed Woods.
8194
8195 Fri Jan 31 17:45:22 2003  Manish Singh  <yosh@gimp.org>
8196
8197         * demos/pixbuf-demo.c
8198         * demos/testpixbuf.c
8199         * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
8200
8201 Fri Jan 31 17:33:00 2003  Manish Singh  <yosh@gimp.org>
8202                                                                                 
8203         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
8204         on the tab_label before unparenting it, in case the unparent
8205         drops the refcount to 0.
8206
8207 2003-02-01  Matthias Clasen  <maclas@gmx.de>
8208
8209         * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
8210         headers. Sorry about gtk_selection_clear, Yosh.
8211
8212 Thu Jan 30 17:16:05 2003  Manish Singh  <yosh@gimp.org>
8213
8214         * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
8215         too, for gtkwidget.c. Remember people, when introducing new
8216         deprecations, make sure internal code isn't using it, or if so,
8217         reorganize appropriately like I've done in other places.
8218
8219         * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
8220
8221 2003-01-31  Matthias Clasen  <maclas@gmx.de>
8222
8223         * gtk/gtkselection.h: 
8224         * gtk/gtkselection.c (gtk_selection_clear): Deprecate.  (#85683)
8225
8226         * gdk/gdkpixbuf.h: 
8227         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): 
8228         (gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)
8229
8230         * gtk/gtkcolorsel.h:
8231         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8232         Deprecate.  (#98167)
8233
8234         * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
8235
8236         * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
8237         and gtk_input_* functions.  (#71596)
8238         
8239         * gtk/gtkentry.c (gtk_entry_move_cursor): 
8240         * gtk/gtklabel.c (gtk_label_move_cursor): Handle
8241         GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
8242
8243         * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)
8244
8245         * gtk/gtkitemfactory.h: 
8246         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. 
8247         (#69244)
8248
8249 Thu Jan 30 23:48:30 2003  Kristian Rietveld  <kris@gtk.org>
8250
8251         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
8252         only count the special cell if it is also visible,
8253         (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
8254         account from visible cells,
8255         (gtk_tree_view_column_cell_get_position): likewise, (Reported and
8256         testcase provided by Vasco Alexandre da Silva Costa, via IRC,
8257         tracking bug was #104563).
8258         
8259 Thu Jan 30 23:46:15 2003  Kristian Rietveld  <kris@gtk.org>
8260
8261         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
8262         subtract expander space and focus line space from the extra space
8263         we are about the allocate. (Fixes #104635).
8264
8265 Thu Jan 30 23:42:03 2003  Kristian Rietveld  <kris@gtk.org>
8266
8267         * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
8268         (Fixes #96242, patch from Soeren Sandmann).
8269
8270 Thu Jan 30 16:54:29 2003  Owen Taylor  <otaylor@redhat.com>
8271
8272         * gtk/gtknotebook.c: Patch from Soeren Sandmann
8273         to update the states of the tab label child
8274         widgets to match the state of the tabs. 
8275         (#93389, Reported by Tommi Komulainen)
8276
8277 Thu Jan 30 16:30:54 2003  Owen Taylor  <otaylor@redhat.com>
8278
8279         * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
8280         EXTRA_DIST, and from dist rules. (#102231)
8281
8282 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
8283
8284         * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
8285         function that sets the icon's and label's packing options and
8286         visibility based on toolbar->style.
8287
8288         (gtk_toolbar_internal_insert_element):
8289         (gtk_real_toolbar_style_changed): Make use of
8290         set_child_packing_and_visibility() to clean up the code and get
8291         the packing right for icon-only/text-only toolbars. (#104679)
8292
8293         (get_first_child): Remove, and use gtk_bin_get_child() instead.
8294
8295 2003-01-30  Matthias Clasen  <maclas@gmx.de>
8296
8297         * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
8298         GTK_MOVEMENT_HORIZONTAL_PAGES.  (#68947)
8299
8300         * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
8301         
8302 Thu Jan 30 16:01:29 2003  Owen Taylor  <otaylor@redhat.com>
8303
8304         * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the 
8305         attempt-to-allocate then free code. To handle multiple
8306         people allocating colors at the same time, we need
8307         to just go ahead and try. (#102213, Shivram U)
8308         
8309 2003-01-30  Daniel Elstner  <daniel.elstner@gmx.net>
8310
8311         * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
8312         rectangle using the background color rather than relying on
8313         gdk_window_clear_area(), so that the palette works properly with
8314         pixmap themes. (#101732)
8315
8316         * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
8317         to fill the drawing area in the background color.
8318
8319 Wed Jan 29 14:11:21 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
8320
8321         * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
8322         initialization error for selecting input style (#103549).
8323
8324 Wed Jan 29 17:02:41 2003  Owen Taylor  <otaylor@redhat.com>
8325
8326         * gdk/gdkkeyuni.c (get_decimal_char): Make the 
8327         translation of GDK_KP_Decimal dependent on LC_NUMERIC.
8328         (#101225)
8329
8330 Wed Jan 29 15:43:56 2003  Owen Taylor  <otaylor@redhat.com>
8331
8332         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
8333         Make up from the menu bar go to the end of the submenu.
8334         (#96114, Ian Peters.)
8335
8336         * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate): 
8337         Only do the select-but-not-activate stuff if the
8338         menu is already active. Otherwise, just activate.
8339         (#101690, Arvind Samptur)
8340
8341 Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>
8342
8343         * autogen.sh (have_automake): Fix version in complaint
8344         message about automake. (#104366, Rich Burridge)
8345
8346 Mon Jan 27 16:38:13 2003  Owen Taylor  <otaylor@redhat.com>
8347
8348         * configure.in: Remove SOEXT stuff; it doesn't work portably.
8349
8350 Mon Jan 27 22:45:15 2003  Kristian Rietveld  <kris@gtk.org>
8351
8352         * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
8353         we appended/prepended, send the rows_reordered signal to the 
8354         correct level ... (Reported by Matthew Tuck).
8355
8356 Mon Jan 27 22:43:11 2003  Kristian Rietveld  <kris@gtk.org>
8357
8358         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
8359         out if the level only has one item, recurse over the child if there
8360         is one. (Fixes #100458, reported by Gaël Le Mignot).
8361
8362 Mon Jan 27 22:41:26 2003  Kristian Rietveld  <kris@gtk.org>
8363
8364         * gtk/gtktreeview.c (gtk_tree_view_set_model),
8365         (gtk_tree_view_search_equal_func): make TreeView search handle
8366         all types which are transformable by GValue. (Fixes #99803, reported
8367         by Muktha Narayan).
8368
8369 Mon Jan 27 22:39:25 2003  Kristian Rietveld  <kris@gtk.org>
8370
8371         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
8372         *really* handle unsetting the ID. Slightly modified patch from
8373         Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
8374
8375 Mon Jan 27 22:33:43 2003  Kristian Rietveld  <kris@gtk.org>
8376
8377         Fixes the total GtkTreeSortable mess, and #83195, reported by
8378         Jarek Dukat
8379
8380         * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
8381         (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
8382         (gtk_tree_store_set_default_sort_func): use the constant
8383         GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
8384         work as advertised by the documentation.
8385
8386         * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
8387         (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
8388         (gtk_list_store_set_default_sort_func): likewise.
8389
8390         * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
8391         (gtk_tree_model_set_sort_func),
8392         (gtk_tree_model_sort_set_default_sort_func): make functions work
8393         as advertised by the documentation.
8394
8395 Mon Jan 27 22:31:56 2003  Kristian Rietveld  <kris@gtk.org>
8396
8397         * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
8398         before we decide if we edit. (fixes #100973, reported by Dave Cook).
8399
8400 Mon Jan 27 22:29:30 2003  Kristian Rietveld  <kris@gtk.org>
8401
8402         Bug report and test case from Paolo Maggi via IRC.
8403
8404         * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
8405         (gtk_list_store_move): update tail if needed.
8406
8407 Mon Jan 27 16:19:59 2003  Owen Taylor  <otaylor@redhat.com>
8408
8409         * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
8410         might be NULL. Use gtk_widget_get_display (widget) 
8411         (#102860, Thomas Leonard)
8412
8413 Mon Jan 27 15:58:31 2003  Owen Taylor  <otaylor@redhat.com>
8414
8415         * configure.in: Fix --without-modules/--disable-modules
8416         confusion that was causing --disable-modules not to work.
8417         (#102865, Akira Tagoh)
8418
8419         * configure.in: Fix problem with plain --with-xinput
8420         (#104266, Akira Tagoh)
8421
8422 2003-01-24  Sebastian Rittau  <srittau@jroger.in-berlin.de>
8423
8424         * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
8425         patch.
8426
8427 Fri Jan 24 17:06:41 GMT 2003  Tony Gale <gale@gtk.org>
8428
8429         * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
8430
8431 Thu Jan 23 21:15:29 GMT 2003  Tony Gale <gale@gtk.org>
8432
8433         * docs/faq/gtk-faq.sgml: Learn to spell Library
8434
8435 Thu Jan 23 20:56:56 GMT 2003  Tony Gale <gale@gtk.org>
8436         * Sebastian Rittau  <srittau@jroger.in-berlin.de>:
8437
8438            docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
8439            Composite widget" to modern standards. (I.e. use gobject instead of
8440            glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
8441
8442         * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
8443         code in Appendix C to reflect above changes.
8444
8445         * examples/rangewidgets/rangewidgets.c: From Roger Leigh
8446         auto resize on page size change
8447
8448 2003-01-23  Daniel Elstner  <daniel.elstner@gmx.net>
8449
8450         * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
8451         in addition to show_all in order to keep them symmetric. (#102201)
8452
8453 Wed Jan 22 14:18:46 2003  Manish Singh  <yosh@gimp.org>
8454
8455         * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
8456         the end of the function, so there is a statement following the "out"
8457         label in all cases (fixes #101961)
8458
8459 2003-01-22  Christian Rose  <menthos@menthos.com>
8460
8461         * configure.in: Added "mn" to ALL_LINGUAS.
8462
8463 Wed Jan 15 17:02:18 2003  Owen Taylor  <otaylor@redhat.com>
8464  
8465         * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
8466         Fix off-by-one error on the backward iteration loop,
8467         that was causing the wrong range to be redrawn.
8468         (at least part of #72734)
8469         
8470 2003-01-21  Matthias Clasen  <maclas@gmx.de>
8471
8472         * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
8473         vadjustment value after changing its bounds.  (fixes #101963 and 
8474         #73562)
8475
8476         * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid 
8477         unnecessary roundtrip failures.  (#93500)
8478
8479 2003-01-19  Tor Lillqvist  <tml@iki.fi>
8480
8481         Merge from stable:
8482         
8483         Fix for #103614 and some other problems with GtkFileSelection on
8484         Windows:
8485                 
8486         * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
8487         g_ascii_tolower(). Windows file names are case-insensitive for all
8488         Unicode letters.
8489
8490         * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
8491         G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
8492         earlier, as it includes config.h unconditionally, and gtkprivate.h
8493         redefines GTK_LOCALEDIR.
8494         (struct _CompletionDirSent): Ifdef out the fields not used on
8495         Windows.
8496         (compare_utf8_filenames, compare_sys_filenames): Need different
8497         comparison implementation for UTF-8 file names and system locale
8498         file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
8499         need to casefold all Unicode letters.
8500         (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
8501         variables not used on Win32 to avoid warnings about unused
8502         variables.
8503         (open_ref_dir): Use g_path_skip_root() to skip past potential
8504         drive letter in front of the leading (back)slash.
8505         (open_new_dir): Ifdef out use of CompletionDirSent fields not
8506         there on Win32.
8507         (correct_parent): Bypass inode check also on Cygwin.
8508
8509         Fix bug noticed by Alex Shaduri: Tooltips and other
8510         GDK_WINDOW_TEMP windows were activated. This looked very odd, and
8511         was a regression from earlier versions.
8512         
8513         * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
8514         behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
8515         (gdk_window_move, gdk_window_resize): Add debug logging.
8516
8517         * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
8518         WM_SIZE message for a non-visible (withdrawn) window, don't clear
8519         the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
8520         even if its size changes.
8521
8522 2003-01-16  Matthias Clasen  <maclas@gmx.de>
8523
8524         * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
8525         (totally_invisible_line): Fix an incorrect optimization which
8526         caused invisible paragraphs to be occasionally misrendered.
8527
8528 Wed Jan 15 15:55:47 2003  Owen Taylor  <otaylor@redhat.com>
8529
8530         * gtk/gtksettings.c: Set the double click speed from
8531         XSETTINGS when creating a new GtkSettings object
8532         as well as when getting a notify. (#103601, reported
8533         by Louis Garcia)
8534
8535 Wed Jan 15 14:56:09 2003  Owen Taylor  <otaylor@redhat.com>
8536  
8537         * gtk/gtknotebook.c (gtk_notebook_size_allocate): 
8538         Show/hide the notebook event window as necessary,
8539         we weren't previously keeping the visibility updated
8540         properly.  (#103599)
8541  
8542 2003-01-15  Matthias Clasen  <maclas@gmx.de>
8543
8544         * examples/menu/itemfactory.c: 
8545         * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
8546         example.  (#103211)
8547
8548 2002-12-29  Murray Cumming  <murrayc@usa.net>
8549
8550         Fixes #102168.
8551
8552         * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
8553         Actually implement the GtkTreeDragSource::row_draggable virtual 
8554         function in GtkListStore and GtkTreeStore instead of just checking 
8555         whether it's implemented at all. This means that DnD isn't broken by
8556         gtkmm's virtual function wrappers. The alternative would be to
8557         hard-code the TRUE return value into gtkmm's wrappers, but that's 
8558         part of GTK+'s implementation, not it's API.
8559
8560 Tue Jan 14 23:42:29 2003  Kristian Rietveld  <kris@gtk.org>
8561
8562         * gtk/gtktreeview.c: fix compiler warning.
8563
8564 Tue Jan 14 23:29:00 2003  Kristian Rietveld  <kris@gtk.org>
8565
8566         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
8567         make sure exposed pixbufs are clipped to the exposed area before
8568         drawing, which is a slight speedup. (#102379, patch from Soeren
8569         Sandmann).
8570
8571 Tue Jan 14 23:26:41 2003  Kristian Rietveld  <kris@gtk.org>
8572
8573         * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
8574         only free scroll_to_path when the complete tree has been validated.
8575         This makes sure that we scrolled to the correct path.
8576
8577 Tue Jan 14 23:25:32 2003  Kristian Rietveld  <kris@gtk.org>
8578
8579         * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
8580         background of widget->window and bin->window. (Fixes #96650, reported
8581         by Dave Camp).
8582
8583 Tue Jan 14 23:24:02 2003  Kristian Rietveld  <kris@gtk.org>
8584
8585         * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
8586         updates before scrolling, avoiding a "selection streak". (Fixes
8587         #101235, patch from Soeren Sandmann).
8588
8589 Tue Jan 14 23:22:13 2003  Kristian Rietveld  <kris@gtk.org>
8590
8591         * gtk/gtktreeview.c (validate_visible_area): actually put values
8592         in the requisition using gtk_widget_size_request. (Fixes #100172,
8593         reported by Kjartan Maraas).
8594
8595 Tue Jan 14 23:19:45 2003  Kristian Rietveld  <kris@gtk.org>
8596
8597         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
8598         arrow animation timeout before we actually reorder the rbtree. If
8599         we don't do this we can get stuck arrows,
8600         (cancel_arrow_animation): new function. (Fixes #93629, part 2,
8601         reported and testcase provided by Hans Petter Jansson).
8602
8603 Tue Jan 14 23:18:21 2003  Kristian Rietveld  <kris@gtk.org>
8604
8605         * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
8606         anchor_path should be start_path, not end_path. (Fixes #102618,
8607         patch from Carlos Garnacho Parro).
8608
8609 Tue Jan 14 23:16:15 2003  Kristian Rietveld  <kris@gtk.org>
8610
8611         * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
8612         only correct new_pos if we don't move to the head/tail.
8613
8614 Tue Jan 14 23:11:55 2003  Kristian Rietveld  <kris@gtk.org>
8615
8616         * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
8617         the parent_iter if depth >= 1, so we send the reordered signal to
8618         the correct level, remove debugging printfs which I forgot the remove
8619         earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
8620         testcase provided by Matthew Tuck).
8621
8622 Tue Jan 14 20:58:44 2003  Kristian Rietveld  <kris@gtk.org>
8623
8624         * gtk/gtktreeview.c (invalite_last_column): split out actual column
8625         invalidation into invalidate_column(),
8626         (gtk_tree_view_size_allocate_columns): invalidate column if the
8627         new width is larger than the old width.
8628         (fixes #102890, reported by Alex Duggan).
8629
8630 2003-01-14  Matthias Clasen  <maclas@gmx.de>
8631
8632         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
8633         invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
8634         GTK_MOVEMENT_WORDS.
8635
8636         * gtk/gtktextiter.c,
8637         gtk/gtktextiter.h: Add some variant movement functions which
8638         skip invisible chars, and do some cleanups.
8639
8640 2003-01-12  Tor Lillqvist  <tml@iki.fi>
8641
8642         Merge from stable:
8643                 
8644         * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
8645         as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
8646         lookup.
8647
8648         * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
8649         gdk.def.
8650
8651         * gdk/gdk.def
8652         * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
8653
8654         * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
8655         gtk-demo}.exe and share/gtk-2.0.
8656
8657         * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
8658         Implement by setting or clearing the WS_EX_TOOLWINDOW extended
8659         window style.
8660         (gdk_window_set_type_hint): Add all cases to the switch (not all
8661         do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
8662         calling gdk_window_set_skip_taskbar_hint(). This means that GTK
8663         won't know that the skip_taskbar hint is on for the window, is
8664         this bad?
8665
8666 Wed Jan  8 18:43:03 2003  Manish Singh  <yosh@gimp.org>
8667
8668         * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
8669         <string.h> for strlen.
8670
8671         * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
8672         <string.h> for strrchr.
8673
8674         * tests/testgtk.c (create_saved_position): "x" and "y" properties
8675         for widgets no longer exist, use gtk_window_move instead.
8676
8677         * test/testtextbuffer.c (check_get_set_text): cast strlen to
8678         int for g_error.
8679
8680 2003-01-08  Matthias Clasen  <maclas@gmx.de>
8681
8682         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
8683         the selection in the presence of invisible segments.
8684
8685 2003-01-07  Matthias Clasen  <maclas@gmx.de>
8686
8687         * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
8688         to "select all" and "unselect all".  (#102065)
8689
8690         * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
8691         the just_selected_element is unused.
8692
8693         * gtk/gtktextview.c (extend_selection): New helper function to
8694         find the range that should be added to the selection. 
8695         (selection_motion_event_handler): 
8696         (gtk_text_view_start_selection_drag): 
8697         (gtk_text_view_end_selection_drag): 
8698         (selection_motion_event_handler): 
8699         (selection_scan_timeout): Support select-by-words/lines.
8700         (gtk_text_view_button_press_event): Start a selection drag on
8701         double/triple clicks.  (#78499)
8702
8703 2003-01-06  Matthias Clasen  <maclas@gmx.de>
8704
8705         Implement a utility function proposed in #102534:
8706         
8707         * gtk/gtktextbtree.h: 
8708         * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
8709         (_gtk_text_btree_place_cursor): Now a simple wrapper around
8710         _gtk_text_btree_select_range().   
8711
8712         * gtk/gtktextbuffer.h: 
8713         * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
8714         (gtk_text_buffer_place_cursor): Now a simple wrapper around
8715         gtk_text_buffer_select_range(). 
8716
8717 2003-01-05  Havoc Pennington  <hp@pobox.com>
8718
8719         * configure.in: fix a stray bracket that was breaking the build
8720
8721 2003-01-05  Tor Lillqvist  <tml@iki.fi>
8722
8723         * gtk-zip.sh.in: Use correct DLL and import library names, with
8724         GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
8725         (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
8726
8727         * configure.in: Improve check for dimm.h.
8728
8729         * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
8730         gdk-pixbuf/Makefile.am.
8731
8732         * gdk-pixbuf/makefile.mingw.in
8733         * gdk-pixbuf/pixops/makefile.mingw.in
8734         * gdk/makefile.mingw.in
8735         * gdk/win32/makefile.mingw.in
8736         * gtk/makefile.mingw.in: Remove. Not maintained anyway.
8737
8738         * gdk-pixbuf/Makefile.am
8739         * gdk-pixbuf/pixops/Makefile.am
8740         * gdk/Makefile.am
8741         * gdk/win32/Makefile.am
8742         * gtk/Makefile.am
8743         * configure.in: Remove makefile.mingw{,.in} from here, too.
8744         
8745         * README.win32: Updates. Don't mention the now removed
8746         makefile.mingw files.
8747
8748         * gdk/gdk.def
8749         * gtk/gtk.def: Add a couple of missing entries.
8750
8751         * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
8752
8753         * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
8754         earlier.
8755
8756         * gdk/win32/rc/Makefile.am: Add hack to help
8757         build/win32/lt-compile-resource decide which kind of libtool
8758         object file to produce.
8759
8760 2003-01-05  Matthias Clasen  <maclas@gmx.de>
8761
8762         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
8763         C-Down step through the sequence of paragraph ends (old behaviour
8764         included paragraph starts).  (#80340, patch by Narayana Pattipati)
8765
8766         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
8767         Check for a tag toggle at the start iterator before calling
8768         gtk_text_iter_forward_to_tag_toggle().  (#102090, patch by Daniel 
8769         Elstner)
8770
8771 2003-01-04  Matthias Clasen  <maclas@gmx.de>
8772
8773         * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
8774         and /*< private >*/ as appropriate.  (#97211)
8775
8776 2003-01-04  Tor Lillqvist  <tml@iki.fi>
8777
8778         * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
8779         distribute gtk-zip.sh.in.
8780
8781         * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
8782
8783 2003-01-03  Havoc Pennington  <hp@pobox.com>
8784
8785         * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
8786
8787         * docs/text_widget_internals.txt: add a file documenting some of
8788         the text widget internals
8789
8790 2003-01-02  Matthias Clasen  <maclas@gmx.de>
8791
8792         * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
8793         return NULL.  (#102069)
8794
8795 2003-01-01  Matthias Clasen  <maclas@gmx.de>
8796
8797         * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
8798         a main() in the library is obviously bad. 
8799
8800 2002-12-27  Matthias Clasen  <maclas@gmx.de>
8801
8802         * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
8803         cursor at drop point.  (#72384)
8804         (gtk_text_view_size_allocate): Update the horizontal adjustment
8805         value.  (#75694)
8806
8807 2002-12-25  Matthias Clasen  <maclas@gmx.de>
8808
8809         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
8810         selection wrt. to empty lines.  (#90435, #90582, #91619)
8811
8812         * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
8813         Keep the cursor on screen.  (#96929)
8814
8815 2002-12-24  Matthias Clasen  <maclas@gmx.de>
8816
8817         * gtk/gtktextbuffer.c (paste_from_buffer): 
8818         (clipboard_text_received): Let the user action span the insertion
8819         and the deletion of the old selection.  (#82844)
8820
8821 2002-12-23  Matthias Clasen  <maclas@gmx.de>
8822
8823         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
8824         Don't call gtk_text_iter_backward_sentence_start() if
8825         count is zero.  (#99115)
8826
8827         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
8828         move_cursor() even if the cursor hasn't moved, since it has the
8829         side effect of canceling the selection.  (#81395, #98537, #98333)
8830
8831 2002-12-22  Matthias Clasen  <maclas@gmx.de>
8832
8833         * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
8834         with empty ranges.  (fixes #101564 and #80637)
8835
8836 2002-12-21  Tor Lillqvist  <tml@iki.fi>
8837
8838         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
8839         sets the window style and extended window style, and adjusts the
8840         width and height to take the window decorations into account
8841         earlier. The adjusted width and height used to be ignored. Remove
8842         the local x, y, width and height variables, no need to further
8843         confuse the code by having local copies. (Partial fix, I hope, for
8844         #101588)
8845
8846         (gdk_window_move): When moving top-level windows, take title bar
8847         and border width into account, offsetting the coordinates before
8848         calling SetWindowPos().
8849
8850         (gdk_window_set_decorations, gdk_window_set_functions):
8851         Reimplement, taking into account the peculiar semantics of
8852         GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
8853
8854         (gdk_window_get_decorations): Implement. (#98981)
8855         
8856         (gdk_window_set_type_hint): When setting
8857         GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
8858         (#79036)
8859
8860         * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
8861
8862 2002-12-21  Matthias Clasen  <maclas@gmx.de>
8863
8864         * gtk/gtktextview.c (gtk_text_view_set_background): New static
8865         function to set the background of all windows.
8866         (gtk_text_view_style_set): Use gtk_text_view_set_background().
8867         (gtk_text_view_state_changed): New function; change background
8868         according to state.  (#88126)
8869
8870 2002-12-21  Havoc Pennington  <hp@pobox.com>
8871
8872         * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation
8873