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