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