]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Set current serial so that we don't eternally update the keymap after we
[~andy/gtk] / ChangeLog.pre-2-4
1 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
2
3         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
4         so that we don't eternally update the keymap after we
5         get a change notification.
6
7         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
8         incorrect cast.
9
10 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
11
12         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
13         it working. It mostly works now, although there're still a few issues
14         to be worked out.
15
16         * tests/testtreesort.c (main): changes to have a better test
17         application for the GtkTreeModelSort.
18
19 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
20
21         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
22         fix for bug #59222.
23
24         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
25         gpointer search_data argument to function definition and
26         prototype, to match GtkTreeViewSearchEqualFunc typedef.
27
28 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
29
30         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
31         per jrb's request.
32
33 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
34
35         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
36
37         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
38
39 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
40
41         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
42         Instead of always mirroring the selection to a single PRIMARY
43         selection, allow it to be mirrored to any number of clipboards.
44
45         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
46         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
47
48         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
49         GtkClipboard argument, and for paste_clipboard, the
50         @override_location argument from @paste_primary.
51
52         * gtk/gtktextview.c: Adapt to above change.
53         
54 2001-08-30  Havoc Pennington  <hp@redhat.com>
55
56         * gtk/gtktextview.c (invalidated_handler): put validate idle at
57         resize - 2 just for flexibility
58
59 2001-08-30  Havoc Pennington  <hp@redhat.com>
60
61         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
62         object from the empty-child-anchor case by drawing a little box.
63         
64         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
65         if the child anchor has no anchored widgets - fixes #59328.
66
67         Also, remove bizarre deletion of preedit string that seems to have
68         gotten in here somehow.
69
70 2001-08-30  Havoc Pennington  <hp@redhat.com>
71
72         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
73         to #58420 from Hidetoshi Tajima and Matthias Clasen
74
75 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
76
77         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
78         change color when the GtkTreeView loses focus.
79
80         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
81         ditto.
82         
83         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
84
85 2001-08-28  Havoc Pennington  <hp@pobox.com>
86
87         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
88
89 2001-08-28  Havoc Pennington  <hp@pobox.com>
90
91         * demos/gtk-demo/main.c (setup_default_icon): add default icon
92
93         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
94         warning fix
95         (gtk_radio_button_new_with_label): warning fix
96
97         * gtk/gtkdnd.c: used some random GtkImage private structs, 
98         update to reflect GtkImage changes
99
100         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
101         whether the hint is supported, just always set the icon. A task
102         list might want to use it even if the WM doesn't, and the WM may
103         change over time. Also, XDeleteProperty() if list == NULL.
104
105         * gtk/gtkwindow.c (gtk_window_set_icon_list)
106         (gtk_window_get_icon_list)
107         (gtk_window_set_icon)
108         (gtk_window_get_icon)
109         (gtk_window_set_default_icon_list)
110         (gtk_window_get_default_icon_list):
111         new functions
112
113         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
114
115         * gtk/gtkimage.c: Implement property support, bug #59408
116
117         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
118         on reparent-without-removing-first a bit more helpful.
119         Let's just destroy this FAQ.
120
121 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
122
123         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
124         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
125
126 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
127
128         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
129         of use_text_format to the end of the function. (#56447)
130
131 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
132
133         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
134         only in response to an area_prepared signal.
135
136 2001-08-28  Alex Larsson  <alexl@redhat.com>
137
138         * gtk/gtkwidget.c (gtk_widget_class_init):
139         Make unrealize GTK_RUN_LAST.
140
141 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
142
143         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
144         with_label and with_mnemonic should create radio buttons, not
145         check buttons
146
147 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
148
149         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
150         * tests/treestoretest.c (make_window): ditto
151         * demos/gtk-demo/main.c (create_tree): ditto
152         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
153
154 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
155
156         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
157         GTK selection types rather than GtkTreeSelectionMode.
158
159         * docs/Changes-2.0: Add comment about selection change.
160
161 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
162
163         * gtk/gtkenums.h (GtkSelectionMode): deprecate
164         GTK_SELECTION_EXTENDED.
165
166         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
167         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
168
169         * gtk/gtkctree.c: ditto
170
171         * gtk/gtklist.c: ditto
172
173         * gtk/gtktree.c: ditto
174
175 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
176
177         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
178         of typos in compat macros. (#59624, Skip Montaro)
179
180 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
181
182         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
183         macro.
184
185          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
186  
187         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
188         interface to be a standard setter from gtk_menu_item_right_justify.
189         (gtk_menu_item_get_right_justified): a getter to go with the setter
190
191         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
192         gtk_menu_item_right_justify.
193
194         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
195         gtk_menu_item_set_right_justified.
196  
197 2001-08-27  Jens Finke <jens@gnome.org>
198
199         * gtk+.spec.in: Updated to match gpp requirements, reworked the
200         files section to make it work with 1.3.x releases.
201
202 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
203
204         * gtk/gtkbutton.[ch]:
205         Add properties for labels, mnemonics and stock items.
206         Added C accessor functions for the properties.
207         Removed deprecated button->child.
208
209         * gtk/gtkradiobutton.c:
210         * gtk/gtktogglebutton.c:
211         Update to use the functions in GtkButton.
212
213         * gtk/gtkcheckbutton.c:
214         Update to use the functions in GtkButton.
215         Changed size allocation of child. Now only gets as much
216         space as it requests.
217
218         * gtk/gtkclist.c:
219         Don't use GtkButton->child
220
221         * gtk/gtklabel.c:
222         Fixed typo in docs
223         
224 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
225
226         * tests/testgtk.c:
227         * tests/Makefile.am:
228         Ressurect the properties test.
229         I don't care if it is inferior, I just want to test my property code.
230
231 2001-08-25  Chema Celorio  <chema@celorio.com>
232
233         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
234         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
235         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
236
237 2001-08-24  Havoc Pennington  <hp@pobox.com>
238
239         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
240         these are already in gtkmenu.h, and the copies
241         here were broken.
242
243         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
244
245         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
246         special-case bitmaps to allow no colormap
247         (bitmap1): implement no-colormap bitmap-getting
248         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
249         alpha
250         (rgb8): indentation
251         (rgb1a, rgb1): change the way we read the data out of the image, 
252         old way didn't seem to work quite right.
253
254         I'm pretty sure a lot of the rgbconvert code is still broken.
255         
256         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
257         above position constraint (I really intended to do this before,
258         don't know what's up with that)
259         (gtk_XParseGeometry): shut up gcc
260
261         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
262         and "0" should have been. remove the attempted 4-bytes-at-once
263         optimization, it was totally broken.
264
265 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
266
267         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
268         on push to buttons (based on patch from Soeren Sandmann, #54720)
269
270           - Add child_displacement_x/y style properties to control how far the
271             child moves when the button is depressed.
272
273           - Add non-exported function _gtk_button_set_depressed to clean
274             up the handling of the in/out shadow and separate it frmo
275             widget->state.
276
277           - Lots of code cleanup and simplification of state handling
278             for GtkButton/GtkToggleButton.
279  
280         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
281         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
282
283 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
284
285         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
286         and make gtk_image_new() take no arguments. The compiler will
287         catch it, and it is vastly more useful than having
288         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
289
290         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
291         to add tearoff-title property (#51319, Lee Mallabone)
292
293 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
294
295         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
296         gtk_menu_item_configure(). (#58925)
297
298 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
299
300         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
301         "use_align" to give people the option to just make a cell visible.
302
303         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
304         we were scrolling past the end of the tree.
305
306         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
307         rename gtk_tree_view_column_pack_start_cell_renderer to
308         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
309
310 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
311
312         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
313         a stray g_object_ref() left over from gtk_object_ref/sink.
314         (Pointed out by Josh Pritikin.)
315
316 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
317
318         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
319         to gtk_container_get_children. Added deprecated compatibility
320         macro. (Suggested by Vitaly Tishkov, #59051)
321
322         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
323         calls.
324
325 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
326
327         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
328         gtk_menu_bar_append/prepend/insert, forgot to do this
329         when we deprecated gtk_menu_append/prepend/insert.
330
331         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
332         compat macros.
333
334         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
335         renamed by compat macro.
336
337         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
338         gtk_font_selection_dialog_get_font(). (Suggested by
339         Vitaly Tishkov, #59383)
340
341 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
342
343         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
344         Rename from gtk_text_tag_table_size(). (#59366)
345
346 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
347
348         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
349         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
350         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
351         (#59173).
352
353 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
354
355         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
356         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
357         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
358
359 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
360
361         [ Patch from Sebastian Wilhelmi, 52790 ]
362
363         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
364
365         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
366         Move compatibility macros from g[dt]kcompat.h to within 
367         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
368
369         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
370
371         * demos/Makefile.am demos/gtk-demo/Makefile.am 
372           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
373           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
374
375         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
376                  testpixbuf.c}: Fix usages of deprecated functions.
377
378 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
379
380         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
381         when changing models.
382
383 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
384
385         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
386         We check the current event for modifiers rather than try to trap
387         all presses.
388
389 2001-08-22  Anders Carlsson  <andersca@gnu.org>
390
391         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
392         It's LIST_STORE, not LISTSTORE.
393
394 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
395
396         * gtk/gtk.h: Remove commented out gtkpacker reference.
397
398 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
399
400         * configure.in (all_loaders): Add tga loader, 
401         patch by Nicola Girardi. (#56067)
402
403 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>>
404
405         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
406         a little.  More needs to be done tomorrow.
407
408 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
409
410         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
411
412 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
413
414         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
415         reported by Kristian Rietveld <kristian@planet.nl> to handle row
416         == NULL.
417         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
418         <kristian@planet.nl> to change destroy order.
419
420 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
421
422         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
423         correct marshaller.
424
425 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
426
427         * gtk/gtkliststore.c: Fix up warnings, #58928.
428
429         * gtk/gtktreeselection.h: Change signal prototype, #58647
430
431         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
432         #59221.
433
434         * gtk/gtkstyle.c: Actually prelight arrow, #50981
435         
436 2001-08-18  Hans Breuer  <hans@breuer.org>
437
438         * gdk/gdk.def : updated externals
439
440         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
441         is required to get (at least) visible in entry fields. Some selections
442         are really handled now - even on win32 - but copying via middle
443         mouse button into a different app needs to wait ... 
444
445         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
446         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
447
448         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
449         handling. I'm not sure if it is better now, but at least not worse
450
451         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
452         with SetWindowPos () which allows more fine-tuning backing-store wise
453
454         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
455         Also changed move/resize to be more like the X version.
456
457         * gtk/gtk.def : updated externals
458
459 2001-08-19  Sven Neumann  <sven@gimp.org>
460
461         * gtk/gtktooltips.c
462         * tests/testtreesort.c
463         * tests/treestoretest.c: inserted some casts to get rid of compiler
464         warnings.
465
466 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>>
467
468         * gtk/gtktreeviewcolumn.c
469         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
470
471         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
472         (_gtk_tree_view_find_node): If *node is NULL,
473         *tree should be NULL too.
474
475         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
476         column/renderers.
477         * tests/testtreecolumns.c: ditto
478         * tests/testtreefocus.c: ditto
479         * tests/testtreesort.c: ditto
480         * tests/testtreeview.c: ditto
481         * tests/treestoretest.c: ditto
482
483 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
484
485         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
486         signals; is_expander/is_expanded.
487
488         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
489         pixbufs.
490
491         * gtk/gtktreeview.c: set above properties.
492
493 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
494
495         * gtk/gtkwidget.h: Really remove set_default_style().
496
497         * docs/Changes-2.0.txt: added a note about
498         gtk_widget_push/pop/set_default_style.
499
500 2001-08-18  Havoc Pennington  <hp@pobox.com>
501
502         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
503         hints_changed in addition to the other cases.
504         (gtk_window_move_resize): include last position from configure
505         notify in debug spew
506
507 2001-08-18  James Henstridge  <james@daa.com.au>
508
509         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
510         second argument to the weak ref notify, cleaning up some uglyness.
511         (gtk_accel_group_attach): remove and add the weak notifier when
512         changing the accel groups slist.
513         (gtk_accel_group_detach): same here.
514
515 2001-08-17  Darin Adler  <darin@bentspoon.com>
516
517         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
518         missing parameters to utf8 functions to make it compile.
519
520 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
521
522         * gtk/gtktreeprivate.h:
523         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
524         (gtk_tree_view_init), (gtk_tree_view_set_property),
525         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
526         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
527         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
528         (gtk_tree_view_set_destroy_count_func),
529         (gtk_tree_view_set_enable_search),
530         (gtk_tree_view_get_enable_search),
531         (gtk_tree_view_get_search_column),
532         (gtk_tree_view_set_search_column),
533         (gtk_tree_view_get_search_equal_func),
534         (gtk_tree_view_set_search_equal_func),
535         (gtk_tree_view_search_dialog_destroy),
536         (gtk_tree_view_search_position_func),
537         (gtk_tree_view_interactive_search),
538         (gtk_tree_view_search_delete_event),
539         (gtk_tree_view_search_button_press_event),
540         (gtk_tree_view_search_key_press_event),
541         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
542         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
543         * gtk/gtktreeview.h:
544         Add heavily modified patch from Kristian Rietveld to handle
545         interactive searching.
546
547 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
548
549         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
550         string parameter.
551
552         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
553         GtkMenuShell::selection_done, now that we have it, instead of 
554         ::deactivate so we're not tearing the menu apart and notify
555         the user prematurely.
556
557 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
558
559         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
560         window, clear window->need_default_position to avoid infinite loops.
561         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
562
563 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
564
565         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
566         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
567         (gtk_tree_view_set_property): don't cast possible NULL objects.
568         (gtk_tree_view_destroy): reset the model to NULL.
569
570         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
571         parent_class handler.
572
573 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
574
575         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
576
577 2001-08-17  Anders Carlsson  <andersca@gnu.org>
578
579         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
580         point numbers so that the result will be floating point.
581
582 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
583
584         * tests/testgtk.c (create_handle_box): 
585         (create_toolbar): Replace gtk_window_set_policy calls by
586         gtk_window_set_resizable.
587
588 2001-08-16  Jakub Steiner <jimmac@ximian.com>
589
590         * gtk/stock-icons/dialog_info.png: new style bulb
591         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
592         * gtk/stock-icons/dialog_warning.png: need a hand?
593         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
594           the aa border gets chopped off ok
595         * gtk/stock-icons/stock_colorselector.png: using the new hand
596         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
597           this one is for, but the old icon was butt ugly.
598         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
599         * gtk/stock-icons/stock*_insert_object.png: "
600         * gtk/stock-icons/stock_index.png: using new hand icon
601         * gtk/stock-icons/stock*_new.png: the document template being used 
602           elsewhere too
603         * gtk/stock-icons/stock*_print*.png: new print and print preview 
604           icons (panel/menu)  
605         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
606           icons based on Tuomas' floppy image.
607         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
608         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
609         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
610         * gtk/stock-icons/stock*_undelete.png: "
611         * gtk/stock-icons/stock_preferences.png: I have a version with a 
612           document base if the sliders are no good.
613         * gtk/stock-icons/stock_properties.png: properties 
614         
615
616         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
617           (tigert@ximian.com) clipboard icons
618         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
619         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
620         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
621           little bigger IMHO
622
623 2001-08-16  Sven Neumann  <sven@gimp.org>
624
625         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
626
627 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
628
629         * gtk/gtkcellrenderertext.c:
630         Avoid warning when specifying NULL for "attributes" property
631
632 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
633
634         * docs/debugging.txt: Add a warning about --enable-debug=no,
635         some editorial changes.
636
637 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
638
639         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
640         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
641         debugging info, remove unused debug flags. (#58330)
642
643 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
644
645         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
646         (gtk_tree_selection_select_all): Remove strict checking for rows.
647
648 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
649         
650         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
651         Don't remove the tooltip window when the tip text changes. (#15891)
652
653 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
654
655         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
656         $(srcdir).
657
658 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
659
660         * Makefile.am (EXTRA_DIST): Fix problem with trying to
661         dist files from intl/, which is no longer there.
662
663 2001-08-11  Hans Breuer  <hans@breuer.org>
664
665         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
666           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
667           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
668           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
669           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
670           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
671
672         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
673           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
674         GDK_TYPE_EVENT signals
675
676         * gtk/gtkalignment.c : removed 'direct allocation bug',
677         which Tim discovered while reading the patch
678
679 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
680
681         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
682         compat macros for push/pop/set_visual that were supposed
683         to be added a long time ago, but got dropped. 
684
685 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
686
687         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
688         property notifies.
689
690 2001-08-07  Havoc Pennington  <hp@pobox.com>
691
692         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
693
694         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
695         some fixage is needed here, but nothing simple. Owen understands
696         it. ;-)
697
698         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
699         sizing and positioning.  Also, fix bug in compute_geometry_hints
700         (width/height confusion for setting min size). 
701         (gtk_window_move): new function
702         (gtk_window_resize): new function
703         (gtk_window_get_size): new function
704         (gtk_window_get_position): new function
705         (gtk_window_parse_geometry): new function
706         
707         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
708         (gtk_widget_get_size_request): new function
709         (gtk_widget_get_usize): delete, that was a short-lived function
710         ;-)
711         (gtk_widget_set_usize): deprecate
712         (gtk_widget_set_uposition): deprecate, make it a trivial 
713         gtk_window_move() wrapper
714         (gtk_widget_class_init): remove x/y/width/height properties,
715         add width_request height_request
716         
717         * demos/*: update to avoid deprecated functions
718         
719         * gtk/gtklayout.c: add x/y child properties
720
721         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
722         uses of "gint16"
723
724         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
725         sizing test
726
727         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
728         configure events on toplevel windows are always in root window
729         coordinates, following ICCCM spec that all synthetic events 
730         are in root window coords already, while real events are 
731         in parent window coords. Previously the code assumed that 
732         coords of 0,0 were parent window coords, which was 
733         really broken.
734   
735         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
736         warning
737  
738         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
739         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
740         hints in gtk_window_parse_geometry()
741  
742         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
743         new USER_POS USER_SIZE hints    
744
745 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
746
747         * tests/prop-editor.c (properties_from_type): Use 
748         g_object_class_list_properties to get the param specs 
749         for a given type. (#58609)
750
751 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
752
753         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
754         free the text_aa parts. (#57549)
755
756 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
757
758         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
759         not the foreground color. (#57621)
760
761 2001-08-09  Alexander Larsson <alexl@redhat.com>
762
763         * gdk/win32/gdkfont-win32.c:
764         Update to the new pango win32 api.
765
766 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
767
768         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
769         COMPOUND_TEXT instead of TEXT
770         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
771         interpret the return value of g_string_to_compound_text()
772         (#55152)
773
774 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
775
776         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
777         fail if iter is NULL. (#58347)
778
779 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
780
781         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
782         some off-by-one issues, fixing selection of line-ends. (#50323)
783
784 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
785
786         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
787         functions in order to make mouse operation work again in the
788         color wheel. (#58604)
789
790 2001-08-07  James Henstridge  <james@daa.com.au>
791
792         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
793         the accelerator when the accel object is changed.  Fixes bug
794         #58628.
795
796 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
797
798         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
799         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
800         (gnome bugzilla #58202)
801
802 2001-08-06  Havoc Pennington  <hp@pobox.com>
803  
804         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
805         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
806         it was expecting a GdkWindow, not a GdkWindowImplX11.
807  
808         Also, we were getting the window rect in screen coords 
809         and the screen rect in window coords then intersecting 
810         them; instead, get window rect in window coords.
811  
812         Finally, there were codepaths that resulted in a stuck server grab
813         (when the window was fully onscreen, or on gdk_image_new()
814         failure); make the server ungrab thing a bit more
815         robust/consistent.
816
817 2001-08-06  Sven Neumann  <sven@gimp.org>
818
819         * gdk/gdkpango.c (gdk_pango_context_destroy): 
820         check if info->colormap != NULL before unref'ing it. It might have
821         been set to NULL using gdk_pango_context_set_colormap().
822
823 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
824
825         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
826         Fix conversion from float to int so that we don't get
827         skew in the int => float => int roundtrip. 
828         (#58120, reported by Vitaly Tishkov). Also fix problem
829         where if no alpha was set, the returned alpha
830         from (say) set_current_alpha() was returned as 1, not 65535.
831
832 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
833
834         * gtk/gtklist.c (gtk_list_clear_items): Fix
835         problem with selecting a new focus child.
836
837         * gtk/gtklist.c (gtk_list_clear_items): Clear 
838         list->undo/list_focus_child after unparenting
839         child, since unparenting the child can result
840         in list->last_focus_child being set. (#58024)
841
842         * Makefile.am (SUBDIRS): Add target specific pc
843         files to DISTCLEANFILES.
844
845         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
846         (58327, Matthias Clasen)
847
848 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
849
850         * tests/testgtk.c: Patch from Hans (with various modifications),
851         to add the ability to use testgtk as a rough-and-ready
852         benchmark. Try, 'testgtk --bench all:5' (if you want decent
853         numbers, run without a window manager)
854
855 2001-08-04 Alexander Larsson <alexl@redhat.com>
856
857         * gdk/win32/gdkinput.c:
858         Add #ifdef HAVE_WINTAB around wintab.h include.
859
860         * gtk/gtk.def:
861         Removed marshals that have been moved to glib.
862         Commented out plug and socket. They didn't compile for me 
863         on win32.
864
865 2001-08-04  Hans Breuer  <hans@breuer.org>
866
867         * gtk/stocks-icons/makefile.msc : new file
868         * gtk/makefile.msc.in : use it
869
870         * gtk/gtkstyle.c : not all platforms do provide M_PI and
871         friends, but luckily there is G_PI
872
873         * gtk/gtk.def : updated
874
875         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
876         windows WS_POPUP, but only those without a parent. This fixes the 
877         mis-alignment between the selectable (temp, input only) window and 
878         the window text of GtkLabel.
879
880         (gdk_window_show) : respect private->state when actually showing
881         the window.
882
883         (gdk_window_set_transient_for) : Implementation from Wolfgang 
884         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
885         error handling. Should fix #50586.
886
887         * gdk/win32/gdkevents-win32.c : beautify log output
888
889 2001-08-04  Michael Natterer  <mitch@gimp.org>
890
891         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
892         Need to show the image after adding it to the GtkImageMenuItem.
893         This used to work without in testgtk because of the
894         gtk_widget_show_all() at the end of the function.
895         (Closes #54978).
896
897 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
898
899         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
900         (gtk_notebook_set_child_property): fix finding of child's page,
901         since we have to validly deal with labels and menus here as well.
902         (gtk_notebook_get_child_property): fix warning.
903         (gtk_notebook_class_init): property tab_pack is of type
904         GTK_TYPE_PACK_TYPE (enum) not boolean.
905         (gtk_notebook_find_child): don't always warn, we might be looking
906         for a label or menu child.
907         (gtk_notebook_map): fix mapping of panel.
908
909         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
910         widget's mapped state, regardless of the value being set equals
911         old settings, since things like REALIZED(parent) or MAPPED(parent)
912         may have changed since the old value was set. make it an error to
913         invoke this function on a toplevel widget.
914
915 2001-07-31  Darin Adler  <darin@bentspoon.com>
916
917         * gdk/gdkprivate.h:
918         * gdk/x11/gdkx.h:
919         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
920
921         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
922         GTK_OBJECT.
923
924 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
925
926         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
927         scoping error pointed out by matthiasc@poet.de.
928
929 2001-07-31  Sven Neumann  <sven@gimp.org>
930
931         * demos/gtk-demo/appwindow.c
932         * demos/gtk-demo/item_factory.c
933         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
934
935 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
936
937         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
938         argument order for g_signal_has_handler_pending.
939
940 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
941
942         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
943         instead of long deprecated g_scanner_stat_mode().
944
945 2001-07-29  Hans Breuer  <hans@breuer.org>
946
947         * gdk/makefile.msc : build in the backend dir after
948         auto-generating files
949
950         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
951         with code from win32-production-branch.
952
953         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
954         before calling DestroyWindow, which indirectly calls 
955         gdk_window_destroy_notify ()
956
957         (performance patch merged from win32-production-branch)
958         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
959         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
960         R2_COPYPEN rop). It is claimed to be much faster.
961
962 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
963
964         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
965         add an "attributes" property to the text renderer for ATK.
966
967 2001-07-26  Alex Larsson  <alexl@redhat.com>
968
969         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
970         Initialize image->bits_per_pixel from the drawable, not from
971         the root window.
972
973         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
974         Fix cast. argument is an IMPL already.
975
976 2001-07-15  James Henstridge  <james@daa.com.au>
977
978         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
979         (gtk_window_remove_accel_group): same here.
980         (gtk_window_key_press_event): same here.
981
982         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
983         (gtk_widget_remove_accelerator): same here.
984         (gtk_widget_remove_accelerators): same here.
985
986         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
987
988         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
989         instead of GtkObject.
990
991         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
992         now takes GObjects.
993
994         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
995         pass a GObject to gtk_accel_group_entries_from_object.
996         (gtk_item_factory_create_item): s/accel_widget/accel_object/
997
998         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
999
1000         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
1001
1002         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
1003         GObjects can have accelerators set now.  Add compatibility
1004         defines.
1005
1006         * gtk/gtkmarshal.list: add missing marshallers.
1007
1008         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
1009         accelerators on plain GObjects.  gtk_accel_group_object_destroy
1010         has been converted into a weak reference, and
1011         gtk_accel_group_delete_entries is now a destroy notify for that
1012         piece of data.
1013
1014 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
1015
1016         * gdk/gdkdraw.c: Added a check on the colormap depth to
1017         gdk_drawable_set_colormap()
1018         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
1019         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
1020         for pixmaps without visuals (more specifically, bitmaps)
1021         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
1022         doesn't set a colormap with the wrong depth
1023
1024
1025 2001-07-22  Anders Carlsson  <andersca@gnome.org>
1026
1027         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
1028         expander_height and expander_width properties with a single
1029         property, expander_size.
1030         (gtk_tree_view_init): Set the tab_offset to expander_size
1031         plus some padding.
1032         (gtk_tree_view_unrealize): Remove the expand/collapse
1033         timeout if it exists.
1034         (coords_are_over_arrow): Fix a small bug.
1035         (gtk_tree_view_motion_draw_column_motion_arrow): Use
1036         expander_size.
1037         (gtk_tree_view_draw_focus): Use "treeview" instead of
1038         "add-mode" as detail when drawing the focus.
1039         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
1040         instead of "add-mode" as detail when drawing the focus.
1041         (gtk_tree_view_deleted): If we have a node currently being
1042         expanded or collapsed, remove the timeout and set the node 
1043         to NULL.
1044         (gtk_tree_view_queue_draw_arrow): New function that just
1045         redraws the arrow of a node.
1046         (gtk_tree_view_draw_arrow): Use expander_size instead of
1047         expander_width/expander_height, also pass a different
1048         expander_style to gtk_paint_expander depending on the 
1049         state of the node being drawn.
1050         (expand_collapse_timeout): New function for expanding 
1051         or collapsing a node depending on the previous state.
1052         (gtk_tree_view_real_expand_row): Add timeout and set 
1053         correct state for node being expanded.
1054         (gtk_tree_view_real_collapse_row): Add timeout and set
1055         correct state for node being collapsed.
1056
1057         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
1058         information about the node currently being expanded or
1059         collapsed, and also a timeout id.
1060
1061         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
1062         with expander_style for draw_expander.
1063
1064         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
1065         expander_style.
1066         (create_expander_affine): New function for creating an 
1067         expander affine.
1068         (apply_affine_on_point): New function for applying an 
1069         affine to a point.
1070         (gtk_default_draw_expander): Modified to take expander_style
1071         instead of is_open, and to draw the rectangle rotated differently
1072         depending on the expander style.
1073         (gtk_paint_expander): Replace is_open with expander_style.
1074
1075         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
1076
1077         * gtk/gtkenums.h: Add expander style enum.
1078
1079 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
1080
1081         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
1082         value from gtk_tree_model_get_iter, the model might be empty.
1083
1084 2001-07-20  Hans Breuer  <hans@breuer.org>
1085
1086         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
1087         gdk/gdkinput.c like the other backends
1088
1089         * gdk/win32/gdkinput-win32.h :
1090         * gdk/win32/gdkinput.c :
1091         * gdk/win32/gdkvisual-win32.c :
1092         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
1093         GdkVisual GObjectification. UNTESTED for pen-devices because
1094         I simply have none.
1095
1096         * gdk/gdk.def :
1097         * gtk/gtk.def : updated externals
1098
1099         * gtk/gtkiconfactory.c :
1100         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
1101         before passing &error to functions to avoid strange crashes
1102         
1103         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
1104
1105         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
1106
1107         * gtk/makefile.msc.in : updated
1108
1109 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
1110
1111         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
1112         Add property support. (#51858)
1113
1114 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
1115
1116         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
1117         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
1118         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
1119
1120 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
1121
1122         * gtk/gtkcolorsel.c: Add propery support (roughly
1123         based on patch from Lee Mallabone, #51014)
1124
1125         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
1126         deprecated, since we already g_warning() on it.
1127
1128 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
1129
1130         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
1131         typo that sometimes caused selection not to work properly.
1132
1133         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
1134         entry when tabbing in. (#57743)
1135         
1136         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
1137         user drags up above or down below the entry, move
1138         to the end or the beginning of the entry. (Suggestion
1139         from Jay Cox, #50940)
1140
1141         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
1142         a current selection, then when moving by chars or
1143         words, move to the end of the selection rather than
1144         from entry->current_pos. (Suggestion from Jay Cox,
1145         #50942)
1146         
1147 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
1148
1149         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
1150         set window->decorated. (Patch from Hidetoshi Tajima,
1151         #55846)
1152
1153 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
1154
1155         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
1156         the widget/child realization/mapping invariants.
1157
1158         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
1159         gtk_widget_[get/set]_child_visible() to control
1160         whether visible children of a mapped window are
1161         mapped.
1162
1163         * docs/widget_system.txt: Updated for changes in
1164         container contract, and addition of GTK_CHILD_VISIBLE.
1165
1166         * gtk/gtkcontainer.c: Add generic map()/unmap()
1167         functions that work for almost all containers.
1168
1169         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
1170         gtk_widget_set_child_visible() where necessary.
1171
1172         * gtk/*.c: Remove excess map(), unmap(), and 
1173         realization/mapping invariant enforcing code
1174         from many containers.
1175
1176 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
1177
1178         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
1179         Get the foreground color from 'text', nor 'fg'. (#57568)
1180
1181 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
1182
1183         * gtk/*.c: Patch from Matthias Clasen to remove remove
1184         all instances of g_return_if_fail (foo != NULL); that are
1185         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
1186         since the second check catches the NULL anyways.
1187
1188 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
1189
1190         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
1191         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
1192         GDK_THREADS_ENTER()/LEAVE() pairs.
1193
1194         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
1195         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
1196         pairs. (Problem found by M. Meeks)
1197
1198 2001-07-18  Darin Adler  <darin@bentspoon.com>
1199
1200         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
1201         that we don't get a g_warning message every time we register a new
1202         icon size.
1203
1204         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
1205         using pixel variable of the correct type.
1206         
1207 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
1208
1209         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
1210         so that using X functions on a GdkWindow is possible, if
1211         a little hairy.
1212
1213         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
1214         and ts_origin of a GC, so that external parties can offset/restore
1215         a GC, when using gdk_window_get_internal_paint_info().
1216
1217 2001-07-17  Darin Adler  <darin@bentspoon.com>
1218
1219         * .cvsignore: Ignore the sgml directory made by gtkdoc.
1220         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
1221         instead of the deprecated gtk_window_set_policy.
1222         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
1223         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
1224         function to get rid of warning and some code too.
1225         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
1226         missing const.
1227         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
1228         unused local.
1229         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
1230         const.
1231         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
1232         (gdk_utf8_to_compound_text): Add missing const.
1233         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
1234         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
1235         cast and get rid of an unnecessary one.
1236         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
1237         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
1238         local.
1239         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
1240         Remove unused local.
1241         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
1242         missing const.
1243         * tests/testsocket.c: (add_child): Add cast so the printf format
1244         doesn't make us implicitly depend on what integer type
1245         gtk_socket_get_id returns.
1246         * tests/testtextbuffer.c: Add missing const.
1247         * tests/testtreefocus.c: (main): Remove unused local.
1248         * tests/treestoretest.c: (iter_remove): Remove unused local.
1249         (uppercase_value): Remove unused function.
1250         (make_window): Add statement to quiet the compiler's uninitialized
1251         variable warning.
1252
1253 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
1254
1255         * gtk/gtkrange.c:
1256         (second_timeout): 
1257         (initial_timeout): 
1258         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
1259         (gtk_range_calc_layout): compute the new layout based on an
1260         adjustment->value being passed in as argument.
1261         (gtk_range_button_press): for button2 slider warps, first recalc
1262         the layout, then adjust the value. also, use update_slider_position()
1263         for adjusting the value, so we keep pixel quantisation at which we
1264         usually operate (upon motion or button releases). the reason for this
1265         is that, we can't change the adjustment upon button2 presses to a non
1266         quantised value and upon button2 release re-quantise the value since
1267         that'd alter the value even if we didn't get any motion events (causing
1268         unexpected scroll area warps upon release and/or slider pixel-jitter).
1269         (gtk_range_motion_notify): update the slider position from queried
1270         coordinates, not event coordinates.
1271
1272 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
1273
1274         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
1275         the default gc values are: width=0, CapBut, JoinMiter.
1276
1277 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
1278
1279         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
1280         into account the xpad and ypad when calculating the width and the
1281         height of the pixbuf cel.
1282
1283 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
1284
1285         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
1286         Rename to gtk_radio_menu_item_get_group(), add deprecated
1287         alias. (#57044)
1288
1289         * gtk/gtkfilesel.c: Indentation fix.
1290
1291 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
1292
1293         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
1294         Hasselmann to fix warnings in compat macros. 
1295         (#56773)
1296
1297         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
1298         stupid wrong cast added in last patch.
1299
1300 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
1301
1302         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
1303         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
1304
1305 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
1306
1307         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
1308         missing cast.
1309
1310         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
1311         NULL/FALSE return value confusion.
1312
1313         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
1314         problem when scrollbar completely fills range. (Patch
1315         from  Matthias Clasen, #57047)
1316
1317 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
1318
1319         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
1320         clean up when handling events for move-resize emulation.
1321         (Problem traced down by Matthias Clasen, #57271)
1322
1323 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
1324
1325         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
1326           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
1327           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
1328           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
1329           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
1330           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
1331           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
1332         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
1333
1334 2001-07-09  Peter Williams  <peterw@ximian.com>
1335
1336         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
1337         for when srcdir != builddir
1338
1339 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1340
1341         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
1342         gtk_tree_model_get_iter_root.
1343
1344         * gtk/gtkliststore.c: Add a bunch of g_return statements.
1345         (gtk_list_store_iter_n_children): Fix up.
1346
1347         * gtk/gtktreestore.c: Add a bunch of g_return statements.
1348
1349 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
1350
1351         * gtk/gtkwidget.c (gtk_widget_class_init):
1352         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
1353         restore some workingness.
1354
1355         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
1356         handle of window type for input-only windows.
1357
1358 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
1359
1360         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
1361         Patch from Gregory Merchan to add 
1362         gtk_button_box_set_secondary(), which separates
1363         the child into a separate group from the normal
1364         buttons. (#56331)
1365
1366         * gtk/gtkdialog.c: Make help buttons secondary by
1367         default.
1368
1369         * gtk/gtkbbox.c: Added a child property "secondary".
1370
1371         * gtk/testgtk.c: Turn on the help button for the 
1372         color selector to check that it properly appears
1373         as secondary.
1374
1375 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
1376  
1377         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
1378         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
1379         Add gdk_set_pointer_hooks() to allow pointer-querying to
1380         be hooked by an event record/playback system like GERD.
1381         (#56914)
1382         
1383 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
1384
1385         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
1386         in the right value of initial_emission to
1387         gtk_widget_set_style_internal (#57091)
1388
1389 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
1390
1391         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
1392         Make compile.
1393
1394         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
1395         with calling gtk_widget_set_style_internal() with
1396         the old style, not the new style. (#56989)
1397
1398 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
1399
1400         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
1401           gtk/gtkwidget.c:
1402         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
1403         not GTK_WIDGET_GET_ANCESTOR ... see 
1404         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
1405         Indicate the best practice in the docs for gtk_widget_get_toplevel().
1406
1407         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
1408         so GtkPlug can give the correct signals when transforming
1409         from a child to a toplevel.
1410         
1411         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
1412         reparentation correctly.
1413
1414         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
1415         Propagate the previous_toplevel argument down properly.
1416
1417         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
1418         of wrong atr list.
1419
1420         * gtk/gtkplug.[ch]: Add an "embedded" signal.
1421
1422         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
1423         signals.
1424
1425         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
1426         functions gtk_plug_get_id(), gtk_socket_get_id(),
1427         to avoid the user having to worry about realization,
1428         and gdkx.h.
1429
1430         * tests/testsocket.c: Extend to try out the new signals
1431         and gtk_plug/socket_get_id().
1432
1433         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
1434         setting of underline attributes.
1435
1436         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
1437         DestroyNotify events from SubstructureNotifyMask
1438
1439         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
1440         Switch GDK_WINDOW_TYPE (window) as needed.
1441
1442         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
1443         allow creation of toplevel windows as children of
1444         foreign windows.
1445
1446         * gtk/gtkplug.c: Remove hacks involving changing private
1447         fields of GdkWindow.
1448
1449         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
1450         exactly the same signals and notification
1451         be emitted for local embedding as for inter-process
1452         embedding.
1453
1454 2001-07-04  James Henstridge  <james@daa.com.au>
1455
1456         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
1457
1458 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
1459
1460         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
1461         XEMBED embedding add a _XEMBED_INFO property to the
1462         client with version number and a "mapped" flags.
1463         Use the mapped flag instead of the racy MapRequestEvent
1464
1465         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
1466         code to reliably set things (when the child is a passive
1467         embedder participating in the XEMBED protocol) intead
1468         of just being a hack for embedding non-participating
1469         programs. Fix various bugs and race conditions.
1470         
1471         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
1472         work by simply making the GtkSocket the gtk parent
1473         of the GtkPlug. Set a flag in this case and make
1474         the GtkPlug work like a normal container by overriding
1475         methods such as check_resize and "chaining past" GtkWindow
1476         to GtkBin.
1477
1478         * gtk/gtkentry.c (gtk_entry_real_activate)
1479           gtk/gtkmain.c (gtk_propagate_event): 
1480         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
1481         
1482         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
1483         gtk_widget_get_ancestor):
1484         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
1485         might not give the expected result and recommend
1486         an alternative.
1487
1488         * tests/testsocket.c tests/testsocket_child.c
1489         tests/testsocket_common.c tests/Makefile.am: Extended
1490         to test different type of adding plugs to sockets
1491         (local,active,passive), and to test mapping/unmapping
1492         the plug.
1493
1494         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
1495         mark the window as destroyed until after we
1496         called _gdk_windowing_window_destroy().
1497         (_gdk_windowing_window_destroy() may use GDK functions
1498         on the window.)
1499
1500         * gdk/x11/gdkinput.c: Remove the check for finalization - 
1501         devices can be finalized under some circumnstances.
1502  
1503         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
1504         small problem with GDK_TYPE_DEVICE.
1505  
1506 2001-07-02  Havoc Pennington  <hp@pobox.com>
1507
1508         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
1509         use constants not atoms.
1510
1511 2001-07-02  James Henstridge  <james@daa.com.au>
1512
1513         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
1514         PANGO_TYPE_TAB_ARRAY.
1515
1516         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
1517         for PANGO_TYPE_TAB_ARRAY.
1518
1519         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
1520         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
1521
1522         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
1523         the file.  Remove Pango types from defs -- they are now defined in
1524         libpango.
1525
1526 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
1527
1528         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
1529
1530         * gtk/gtkobject.c (gtk_object_destroy): invoke
1531         g_object_run_dispose().
1532
1533         * gtk/gtkwindow.c: 
1534         * gtk/gtkwidget.c: 
1535         * gtk/gtkobject.c:
1536         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
1537         method.
1538
1539 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
1540
1541         * gtk/gtktypeutils.c (gtk_type_class): Remove
1542         change check for GTK_TYPE_OBJECT derivation to
1543         G_TYPE_OBJECTS - it's Tim-approved to use this 
1544         for arbitary objects.
1545
1546         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
1547         prefix gtk_container_dequeue_resize_handler().
1548
1549         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
1550         to the hierarachy_changed signal, since you otherwise
1551         have to always keep that around.
1552
1553         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
1554         for extra argument to hierarchy_changed.
1555
1556 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
1557
1558         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
1559         for style to mean "revert to default style"
1560
1561         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
1562           gtk_widget_restore_default_style): Make this functions
1563         deprecated aliases for gtk_widget_set_style (widget, NULL).
1564
1565         * gtk/gtkwidget.[ch]: Remove:
1566            gtk_widget_set_default_style ()
1567            gtk_widget_push_style ()
1568            gtk_widget_pop_style ()
1569         These functions interact are overriden by RC files, and
1570         thus virtually useless, and complicated.
1571
1572 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
1573
1574         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
1575         most of the previous global variables in gtkrc.c. This is
1576         in preparation for multi-head, since each screen can
1577         have different GtkSettings and RC information.
1578
1579         * gtk/gtkrc.[ch]: 
1580
1581         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
1582         GtkSettings parameter to GtkRcStyle::parse.
1583
1584         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
1585         Add two new settings gtk-theme-name, gtk-key-theme-name,
1586         for RC files that are loaded by name after reading
1587         the default RC files.
1588         
1589         * gtk/gtkrc.c: Allow priorities for styles, as wll as
1590         bindings.
1591
1592         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
1593         and use it by default for RC files loaded via 
1594         gtk-theme-name, gtk-key-theme-name.
1595
1596         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
1597         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
1598         tests/testgtkrc: Require pathnames to be absolute.
1599
1600         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
1601         the source when parsing, since the operation of looking up a
1602         pixmap from an RC file depends on the parsing context.
1603
1604         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
1605         reset RC styles on all widgets when files are reparsed.
1606
1607         * tests/testgtk.c (create_rc_file) 
1608           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
1609         Simplify, now that gtk_rc_reparse_all() resets styles on
1610         all widgets itself.
1611
1612         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
1613         return value.
1614
1615         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
1616         GtkSettings argument.
1617
1618         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
1619         gtk_settings_get_global().
1620
1621         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
1622         to get the appropriate GtkSettings for a widget. (For now,
1623         just gets the default GtkSetttings.) 
1624
1625         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
1626           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
1627         changes.
1628
1629         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
1630         getting a style for a path without actually having a widget.
1631         (Allows using a style for a subpart of a widget, for
1632         example.)
1633
1634         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
1635         the RC files to be reloaded for just one GtkSettings
1636         (not sure how useful this really is.)
1637
1638         * gtk/gtkrc.h: Deprecate
1639         gtk_rc_add_widget_name/widget_class/class_style
1640
1641 2001-06-30  Alex Larsson  <alexl@redhat.com>
1642
1643         * gdk/linux-fb/gdkinput-none.c:
1644         * gdk/linux-fb/gdkinput.c:
1645         * gdk/linux-fb/gdkinputprivate.h:
1646         Convert GdkDevice to a GObject.
1647
1648         * linux-fb/gdkprivate-fb.h:
1649         * linux-fb/gdkvisual-fb.c:
1650         Convert GdkVisual to a GObject.
1651
1652 2001-06-29  Alex Larsson  <alexl@redhat.com>
1653
1654         * gdk/gdkvisual.h:
1655         * gdk/gdkcolor.c:
1656         * gdk/x11/gdkx.h:
1657         * gdk/x11/gdkvisual-x11.c:
1658         Convert GdkVisual to a GObject.
1659
1660         * gdk/gdkinput.h:
1661         * gdk/gdkevents.c:
1662         * gdk/x11/gdkinputprivate.h:
1663         * gdk/x11/gdkinput-gxi.c:
1664         * gdk/x11/gdkinput-none.c:
1665         * gdk/x11/gdkinput-x11.c:
1666         * gdk/x11/gdkinput-xfree.c:
1667         * gdk/x11/gdkinput.c:
1668         Convert GdkDevice to a GObject.
1669
1670 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
1671
1672         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
1673         to just plain new, fixing the number of columns, and column types
1674         at creation time.
1675
1676         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
1677
1678         * gtk/gtkcellrenderertext.c
1679         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
1680         height to a specific font.
1681
1682         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
1683
1684         * tests/*c: change to work with new store models.
1685
1686 2001-06-29  Havoc Pennington  <hp@redhat.com>
1687
1688        * Throughout: fixes to compile with G_DISABLE_COMPAT
1689         (s/g_signal_connectc/g_signal_connect/,
1690         s/g_signal_newc/g_signal_new/,
1691         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
1692
1693 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
1694
1695         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
1696         add path argument to selection callbacks.
1697
1698 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
1699
1700         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
1701         walk through a model in a depth first manner, with the option to
1702         break out.
1703
1704 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
1705
1706         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
1707         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
1708         column and follow it when draged, rather than a location in the
1709         view. "expander_column" property and drawing functions changed
1710         accordingly.  Fixes bug #55942.
1711
1712         (gtk_tree_view_{set,get}_expander_column): Now works with a
1713         GtkTreeViewColumn* instead of int.
1714
1715 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
1716
1717         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
1718
1719 2001-06-28  Havoc Pennington  <hp@pobox.com>
1720
1721         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
1722         image data to the screen, using a server grab to avoid race
1723         conditions.
1724
1725         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
1726         check for NULL return from gtk_image_new_from_stock(), it never
1727         returns NULL.
1728         (gtk_item_factory_create_item): fix bug where we parsed the stock
1729         ID as an inline pixbuf
1730
1731         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
1732
1733         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
1734         support (should be using binding set here)
1735
1736         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
1737         support (should be using binding set here)
1738
1739         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
1740         support
1741
1742         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
1743
1744         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
1745
1746         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
1747
1748         * gtk/gtkimcontextsimple.c
1749         (gtk_im_context_simple_filter_keypress): keypad
1750
1751         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
1752
1753         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
1754
1755         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
1756
1757         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
1758         should be binding-setted)
1759
1760         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
1761
1762         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
1763
1764         * gtk/gtkcalendar.c: numeric keypad fixes
1765
1766         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
1767         support
1768
1769         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
1770         screwup
1771
1772         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
1773         clip the render area to the drawable's clip region in advance,
1774         so we don't get data from the server that we don't need.
1775
1776         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
1777         check return value of gdk_pixbuf_get_from_drawable(), fall back 
1778         to bilevel alpha if we can't get the pixbuf to composite against.
1779
1780         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
1781
1782         * gdk/gdkimage.c (gdk_image_get_colormap): add
1783         gdk_image_set_colormap, gdk_image_get_colormap
1784
1785         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
1786         take a region of the image, instead of converting the entire
1787         image.
1788
1789         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
1790         keybinding signal. Add default bindings for it. Add default
1791         handler for show_help that shows the tooltip for the widget.
1792
1793         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
1794         "close" keybinding signal, remove key press handler.
1795
1796         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
1797         it's not our usual practice to leave a deprecated function around
1798         with a runtime warning, plus we don't want it to appear in docs,
1799         plus if we make them yellow no one will want to change them
1800         anyhow.
1801
1802 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
1803
1804         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
1805         GTK_WIDGET_REALIZE() for resize queueing.
1806
1807         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
1808         GTK_WIDGET_REALIZE() for post event delivery destruction upon
1809         GDK_DESTROY.
1810         
1811         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
1812         sompensate for former (pre-2.0) connect_after() facility.
1813         (gtk_widget_send_expose): 
1814         (gtk_widget_event): assert the widget is realized, since event delivery
1815         to non-realized widgets is essentially a bug. event handlers should
1816         be able to unconditionally rely on widget->window (unless they
1817         emit events on their own which can trigger widget destruction).
1818         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
1819         logic. event delivery happens as follows:
1820         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
1821         b) if !was_handled in (a) and the widget is still realized, emit event-
1822            specific signal (RUN_LAST handler). returns was_handled.
1823         c) emission of GtkWidget::event-after for notification if the widget is
1824            still realized (regardless of was_handled from previous stages, no
1825            class handler). no return value.
1826         d) was_handled gets passed on to caller, to determine further
1827            propagation. if the widget got unrealized meanwhile, was_handled
1828            is returned as TRUE.
1829
1830         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
1831         gdk_event_get_coords().
1832
1833 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
1834
1835         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
1836         age 0, binary age 0. depend on glib 1.3.7.
1837
1838         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
1839
1840         * gtk/gtkmenubar.c: same here.
1841         
1842         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
1843
1844         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
1845
1846         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
1847         
1848         * gtk/gtkmenubar.c (add_to_window): likewise.
1849         
1850         * gtk/gtktextbtree.c: and here...
1851         
1852         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
1853         
1854         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
1855         
1856         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
1857         
1858         * gtk/gtktreeviewcolumn.c:
1859         (_gtk_tree_view_column_set_tree_view): yet again.
1860
1861         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
1862         signal connections without g_signal_connect_data().
1863         
1864         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
1865         demo of the matter.
1866         
1867         * demos/testpixbuf.c (main): running out of equality phrases for the
1868         ChangeLog, but had to adapt connections here as well.
1869         
1870         * demos/testanimation.c (progressive_timeout): and for the fun of it,
1871         tackled this the same way.
1872         
1873         * tests/testtext.c (create_view): ok, it's becoming a pain at this
1874         point, but had enough enery for one more fix.
1875
1876         * tests/testtreecolumns.c (main): stand up man, do your work!
1877
1878         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
1879         fix, either that's been all of it or CVS gtk is broken yet again.
1880         
1881 2001-06-29  James Henstridge  <james@daa.com.au>
1882
1883         The following changes correspond to bug #56812
1884
1885         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
1886         code for GdkDevice.
1887
1888         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
1889         GdkCursor.
1890
1891 2001-06-19  Havoc Pennington  <hp@pobox.com>
1892
1893         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
1894         for mapping a window without fooling with stacking order, but
1895         updating the "withdrawn" flag
1896
1897         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
1898         filtering as soon as possible, moving move resize and wmspec_check
1899         handling after the event filter.  Make default filter apply to all
1900         events, not just those with no GdkWindow wrapped around the X
1901         window. Fix a FIXME about how the window could be a pixmap using 
1902         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
1903
1904         Also, be robust against events not on a known GdkWindow.
1905
1906         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
1907         gdk_x11_ungrab_server): export reference-counted server grabs, so
1908         other people can grab server over a GDK function that also does
1909         so.
1910
1911 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
1912
1913         * gtk/gtktreeviewcolumn.c
1914         (gtk_tree_view_column_pack_start_cell_renderer): New function to
1915         reflect that you can (hypothetically) pack cell renderers into a
1916         column.
1917         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
1918         (gtk_tree_view_column_cell_is_visible): Move more functionality to
1919         the column.
1920         (gtk_tree_view_column_cell_can_focus): Move more functionality to
1921         the column.
1922
1923         * gtk/gtktreeview.c: Move to use new column-packing code.
1924         (gtk_tree_view_real_expand_row): remove totally braindead code.
1925         (gtk_tree_view_real_collapse_row): ditto.
1926
1927 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
1928
1929         * gtk/gtktreeviewcolumn.c: Fix a typo.
1930         
1931 2001-06-26  Joel Becker  <jlbec@evilplan.org>
1932
1933         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
1934           at the end of the file
1935
1936 2001-06-26  Havoc Pennington  <hp@redhat.com>
1937
1938         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
1939
1940 2001-06-26  Havoc Pennington  <hp@redhat.com>
1941
1942         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
1943         property
1944
1945 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
1946
1947         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
1948         stupid missing statement
1949
1950         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
1951         private function for ATK.  It notifies you of how many _visible_
1952         children are deleted when a node is deleted.  Should be used by
1953         atk only.
1954
1955 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
1956
1957         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
1958         Use new pango_context_get_metrics() to fix problems
1959         with font lists in descriptions. (#56184, reported by
1960         Jonas Borgström)
1961
1962 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
1963
1964         * gtk/gtkiconfactory.c:
1965         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
1966         item factory so inlined pixbufs actually work.
1967
1968 2001-06-25  Havoc Pennington  <hp@redhat.com>
1969
1970         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
1971         s/RESIZEABLE/RESIZABLE/
1972
1973         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
1974
1975 2001-06-25  Alexander Larsson  <alexl@redhat.com>
1976
1977         * configure.in:
1978         Added --enable-fbmanager. This is some experimental code
1979         that lets several GtkFB apps coordinate their access to the
1980         framebuffer.
1981         
1982         * acconfig.h:
1983         Added ENABLE_FB_MANAGER.
1984
1985         * gdk/linux-fb/Makefile.am:
1986         Added gdkfbmanager and gdkfbswitch.
1987
1988         * gdk/linux-fb/gdkkeyboard-fb.c:
1989         * gdk/linux-fb/gdkmouse-fb.c:
1990         * gdk/linux-fb/gdkprivate-fb.h:
1991         Split device init and open so that
1992         they can be opened and closed while switched
1993         away.
1994
1995         * gdk/linux-fb/gdkmain-fb.c:
1996         Add the basic manager communication.
1997
1998         * gdk/linux-fb/gdkrender-fb.c:
1999         Don't update to the shadow fb if we're
2000         blocked by the fb manager.
2001
2002 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2003
2004         * docs/Changes-2.0.txt: Add note about child property
2005         changes.
2006
2007 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
2008
2009         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
2010         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
2011
2012         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
2013         with un'reffing wrong list reported by Jeff Franks.
2014
2015         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
2016
2017         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
2018         for the default icon. Remove inline XPM.
2019
2020         * gtk/gtkstock.h gtk/gtkiconfactory.c:
2021         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
2022         is used for GTK_STOCK_DND, but it is a bit too small.)
2023
2024         * gtk/stock-icons/stock_dnd_multiple.png
2025         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
2026
2027         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
2028         TRUE when starting a drag. In other cases, we are
2029         just observing. (#52995)
2030
2031         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
2032         function to set the icon for a drag from a GdkPixbuf
2033         or stock ID.
2034
2035         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
2036         Likewise, for drag sources.
2037
2038         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
2039         (Now should be done using the stock system.)
2040
2041 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
2042
2043         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
2044         Removed - didn't work and not particularly useful anyways
2045         if it did. 
2046
2047 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
2048
2049         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
2050         introduced last night that was making things decidedly not work.
2051
2052         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
2053         so that we have getter/setter pairing everywhere it makes
2054         sense. (#55767)
2055
2056         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
2057         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
2058         deprecated compat macro. (#55516)
2059
2060         * gtk/gtklabel.[ch]: Add functions
2061         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
2062         gtk_label_set_label(), which mirror the property API for GtkLabel.
2063         Make gtk_label_get_attributes() only reflect the attributes
2064         set by gtk_label_set_attributes.
2065
2066         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
2067         from gtk_notebook_set_page().
2068
2069 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
2070
2071         * configure.in: Fix tests for XShm.h.
2072
2073         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
2074         gdk_image_new() by use of goto, properly use g_object_unref().
2075
2076 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
2077
2078         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
2079         calls, as GdkImage is an object. these should be g_obejct_unref()
2080         instead but that won't work because of the g_error() statement
2081         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
2082         to spot these places.
2083
2084 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
2085
2086         * modules/input/gtkimcontextxim.c: Fixup some problems with 
2087         text length handling in error cases.
2088
2089         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
2090         a bit to make test actually warn on attempt to allocation
2091         a negative size. (#56101, Matthias Clasen)
2092
2093 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
2094
2095         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2096         noticed by Brian Cameron.
2097         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
2098         Cameron.
2099
2100 2001-06-22  Hans Breuer  <hans@breuer.org>
2101
2102         * gdk/gdk.def : updated externals
2103
2104         * gdk/win32/gdkdrawable-win32.c : corrected some casts
2105         in GDK_NOTEs
2106
2107         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
2108         to translate coordinates to the internal > 16 bit system
2109         Try to handle WM_WINDOWPOSCHANGED to get better performance for
2110         when moving/resizing
2111
2112         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
2113         and gdk_keymap_get_direction (). The latter is untested for
2114         the RTL case
2115
2116         * gtk/gtk.def : updated externals
2117
2118         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
2119         from pango_language_from_string (), not an already freed pointer
2120
2121         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
2122         binary (-kb) to be useable on windoze
2123  
2124 2001-06-21  Alexander Larsson  <alexl@redhat.com>
2125
2126         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
2127         Update to new PangoLanguage changes.
2128         
2129         * gtk/gtkwindow-decorate.c:
2130         * gtk/gtkwindow.[ch]:
2131         Added setting argument to gtk_window_set_has_frame ()
2132         
2133 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
2134
2135         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
2136         the case without XKB properly.
2137
2138         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
2139         unused gtk_rc_auto_parse variable.
2140
2141         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
2142         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
2143         longer needed with GdkPixbuf.
2144
2145         * gtk/gtkrc.c (_gtk_rc_init): Make private.
2146
2147 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
2148
2149         * gtk/gtkentry.h: Mark deprecated functions with
2150         GTK_DISABLE_DEPRECATED.
2151
2152 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2153
2154         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
2155
2156         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
2157
2158         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
2159           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
2160           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
2161           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
2162           to recent changes in Pango.
2163
2164         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
2165           to test whether the basic engine honors them.
2166
2167 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
2168
2169         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
2170         gtk_container_child_get_property().
2171
2172 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
2173
2174         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
2175         (gtk_tree_view_move_cursor_page_up_down): implement.
2176
2177 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
2178
2179         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
2180         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
2181         don't use automatic fixed size buffer for printf-ing floats, doubles
2182         can expand to really _huge_ strings, use g_strdup_printf() instead.
2183
2184 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
2185
2186         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
2187         construct property in 1.2 and still needs to be.
2188
2189         * gtk/gtkwidget.c: "composite_child" is not a settable property.
2190
2191 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
2192
2193         * gtk/gtkliststore.c (gtk_list_store_clear): 
2194         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
2195         clear a model.
2196
2197 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
2198
2199         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
2200
2201         * gtk/Makefile.am:
2202         * gtk/gtk.h: disabled GtkPacker compilation.
2203
2204         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
2205
2206         * gtk/gtknotebook.c:
2207         * gtk/gtktable.c:
2208         * gtk/gtkbox.c: ported this over to child properties.
2209
2210         * gtk/gtksettings.c: fetch class properties via
2211         g_object_class_list_properties().
2212
2213         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
2214         child arg interface. use gobjectnotifyqueue.c for child property
2215         notification.
2216
2217         * gtk/gtkwidget.[hc]: provide necessary means for container child
2218         properties, i.e. ::child_notify signal,
2219         gtk_widget_freeze_child_notify(),
2220         gtk_widget_child_notify(),
2221         gtk_widget_thaw_child_notify().
2222
2223         * tests/testgtk.c: removed inferior property handling code, for
2224         property editing, a generic module should be used, and GLE
2225         coincidentally fullfills that purpose.
2226
2227         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
2228         needs to be adapted to g_object_class_list_properties() before this
2229         builds again.
2230
2231 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
2232
2233         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
2234         test if a node is expanded.
2235
2236 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
2237
2238         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2239         where collapsing a selected row would result in the cursor/anchor
2240         getting screwed up.
2241
2242 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2243
2244         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
2245         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
2246         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
2247         Now I can really reorder/sort all Store widgets.  treesorttest
2248         seems to just work now.
2249         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
2250         testtreesort worked through a big coincidence all this time.
2251         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
2252         code.
2253         * tests/testtreecolumns.c: Big 'ol warning at the top letting
2254         people know that this code should never ever ever be copied.
2255
2256 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
2257
2258         * gtk/gtkwindow.h: Fixed a small typo, it should be
2259         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
2260         on line 134.
2261
2262 2001-06-14  Havoc Pennington  <hp@redhat.com>
2263
2264         Docs fixups, and:
2265         
2266         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
2267         GTK_DISABLE_DEPRECATED
2268
2269 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
2270
2271         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
2272         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
2273         finish it off tonight, though it basically works now when it's a
2274         list.  Also, I have a sinking feeling neither GtkTreeStore or
2275         GtkListStore actually resort when adding a new item.  I'll look
2276         into it.
2277
2278 2001-06-14  Havoc Pennington  <hp@redhat.com>
2279
2280         * demos/gtk-demo/main.c (load_file): fix bug identified by
2281         warnings I just added to gtktextbuffer
2282
2283 2001-06-14  Havoc Pennington  <hp@redhat.com>
2284
2285         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
2286
2287         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
2288
2289         * gtk/gtktextbtree.c: don't leak node data all over the place.
2290
2291         * demos/gtk-demo/main.c (main): create fontify tags for the right
2292         buffer
2293
2294         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
2295         to mention tags in the same table can't have the same name,
2296         suggested by Skip Montanaro
2297
2298 2001-06-11  Havoc Pennington  <hp@redhat.com>
2299
2300         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
2301         for trying to add two tags with same name to the tag table
2302
2303         * demos/gtk-demo/main.c (main): fix colors ;-)
2304
2305 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
2306
2307         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
2308         that allows grouping together multiple windows so that grabs
2309         within that set of windows only affect those windows.
2310
2311         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
2312         signal for notification when a widget becomes shadowed
2313         by a grab or is no longer shadowed by a grab.
2314
2315         * gtk/gtkwidget.c (gtk_widget_propagate_state)
2316           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
2317         insenstive widgets to maintain a grab.
2318
2319 2001-06-14  Alexander Larsson  <alexl@redhat.com>
2320
2321         * docs/README.linux-fb:
2322         Add some example config files that can be used with the URW fonts.
2323         
2324         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
2325         Set up the color ramps for DirectColor mode.
2326
2327 2001-06-11  Havoc Pennington  <hp@redhat.com>
2328
2329         * Release 1.3.6
2330          
2331 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2332
2333         * gdk/linux-fb/gdkwindow-fb.c:
2334         Unify shaped window code and make it repaint the area that used
2335         to be part of the shape, but isn't anymore.
2336
2337 2001-06-11  Havoc Pennington  <hp@redhat.com>
2338
2339         * NEWS: Updates
2340
2341         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
2342
2343         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
2344         
2345 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2346
2347         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
2348         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
2349         passes zero instead, so do we.
2350         
2351 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2352
2353         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
2354         Deep copy dash_list too.
2355         (_gdk_fb_gc_new): Set default cap_style before
2356         setting values.
2357
2358 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
2359
2360         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
2361         gdk_keymap_get_direction): New functions.
2362
2363 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
2364
2365         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
2366         gtk_tree_model_get_flags by adding a second flag for atk.
2367
2368         * gtk/gtktreemodel.c: make cursor behavior interact better with
2369         mouse presses.
2370
2371 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
2372
2373         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
2374         expand_row/collapse_row to be 2 signals each -- test_expand_row
2375         and row_expanded as well as test_collapse_row and row_collapsed.
2376
2377 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
2378
2379         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
2380         signal name to be changed instead of selection_changed.
2381
2382 2001-06-08  Havoc Pennington  <hp@redhat.com>
2383
2384         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
2385         "scroll_offset" property for notification when the layout offsets
2386         may have changed
2387         (gtk_entry_adjust_scroll): add notify for scroll_offset
2388         (gtk_entry_layout_index_to_text_index): function to compensate for
2389         preedit string when doing coordinate stuff on the entry's layout
2390         (gtk_entry_text_index_to_layout_index): inverse function
2391         (gtk_entry_get_layout_offsets): hook to get current position of
2392         the layout      
2393         (gtk_entry_get_layout): hook to get the layout itself.
2394
2395         * gtk/gtklabel.c (gtk_label_get_layout): new function
2396
2397 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
2398
2399         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
2400         keybinding.
2401         (gtk_tree_view_focus): Fix merge conflict.
2402
2403 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
2404
2405         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
2406         clean up cursor handling.
2407
2408 2001-06-08  Havoc Pennington  <hp@redhat.com>
2409
2410         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
2411         function
2412
2413         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
2414         this function
2415
2416 2001-06-08  Alex Larsson  <alexl@redhat.com>
2417
2418         * gtk/gtkcompat.h.in:
2419         Added compat macros for all old GTK_TYPE_GDK_xxx types.
2420         Fixes bug #52892
2421
2422 2001-06-08  Havoc Pennington  <hp@redhat.com>
2423         
2424         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
2425         parent still
2426
2427 2001-06-08  Havoc Pennington  <hp@redhat.com>
2428
2429         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
2430         don't call g_list funcs on GSList
2431
2432         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
2433         gtk_container_focus(), since some widgets have focusable locations
2434         which are not other widgets. These widgets should not have to be 
2435         containers just to manage the focus. For example, GtkHSV is
2436         currently a container for no good reason. Also, this cleans
2437         up the "if (is_container && is_sensitive && is_drawable)
2438         container_focus ()" mess in widget implementations.
2439
2440         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
2441         function, and have it just call gtk_widget_child_focus().
2442
2443         * gtk/gtkhsv.c: derive from widget not container
2444         
2445         Throughout: fix to reflect GtkContainer::focus change
2446         
2447 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
2448
2449         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
2450         range.  Fix bug #55921
2451
2452         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
2453         (#55920).
2454
2455 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
2456
2457         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
2458         and gdk_keymap_get_current_direction().
2459
2460         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
2461           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
2462         the current locked group, use it to set the keymap
2463         direction.
2464
2465         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
2466         to determine whether we draw a split cursor or use
2467         a jumping cursor based on the current direction.
2468
2469         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
2470         Obey the split cursor setting. 
2471
2472 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
2473
2474         * gtk/gtkimmulticontext.c (activate_cb): Only activate
2475         when toggling on, not when toggling off... (#55906)
2476
2477 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
2478
2479         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
2480         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
2481         in docs. (#55812, Vitaly Tishkov)
2482
2483 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
2484
2485         * demos/gtk-demo/main.c (create_tree): Changed signal name from
2486         selection_changed to changed in signal connection to GtkTreeSelection,
2487         also used g_signal_connectc since GtkTreeSelection is now a GObject.
2488
2489 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
2490
2491         * gtk/gtktreeselection.c: Now it's a GObject instead of a
2492         GtkObject.  The GtkTreeSelection::selection_changed signal is now
2493         the GtkTreeSelection::changed signal.
2494
2495         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
2496         object.
2497
2498         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
2499         object.
2500
2501 2001-06-07  Havoc Pennington  <hp@redhat.com>
2502
2503         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
2504
2505 2001-06-07  Havoc Pennington  <hp@redhat.com>
2506         
2507         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
2508         (not tested yet because with absolute path to srcdir I can't build
2509         atk, but it was broken anyway so this may help) 
2510
2511 2001-06-07  Havoc Pennington  <hp@redhat.com>
2512
2513         * configure.in: output m4macros/Makefile
2514         
2515 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
2516
2517         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
2518         buttons.  Fixes #55460 reported by matthiasc@poet.de.
2519
2520 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
2521
2522         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
2523         expansion/collapsing so it only happens in one place.
2524         (gtk_tree_view_real_expand_row): ditto.
2525
2526 2001-06-07  Havoc Pennington  <hp@redhat.com>
2527
2528         * tests/Makefile.am: add missing -I flag
2529
2530         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
2531
2532         * configure.in: use pkg-config to see if GModule is
2533         supported; fix to properly turn on included loaders 
2534         when GModule isn't supported; don't use AC_CHECK_LIB 
2535         when libs are not installed yet
2536
2537         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
2538
2539         * Makefile.am (SUBDIRS): add m4macros subdir
2540
2541         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
2542         dependencies also.
2543
2544 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
2545
2546         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
2547         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
2548
2549 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
2550
2551         * gtk/gtktreeview.c
2552         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
2553         bindings to expand and collapse rows.
2554         (gtk_tree_view_real_select_cursor_parent): New key binding.
2555         (gtk_tree_view_real_toggle_cursor_row): New key binding.
2556
2557         * gtk/gtkmarshal.list: new
2558         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
2559
2560 2001-06-06  Havoc Pennington  <hp@redhat.com>
2561
2562         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
2563
2564         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
2565         Down to move visually rather than logically, since it confuses 
2566         people. Add -/+ and Ctrl--/+ bindings for logical movement.
2567
2568 2001-06-06  Alex Larsson  <alexl@redhat.com>
2569
2570         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
2571         Fix up error messages.
2572
2573 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
2574
2575         * gtk/gtktooltips.h: Include gtkwidget.h 
2576         (#55798, Karl Nelson)
2577
2578         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
2579         a valid latin-1 character. (Marc Lehmann, #35467)
2580
2581         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
2582         (Marc Lehmann, #35467)
2583         
2584 2001-06-05  Alex Larsson  <alexl@redhat.com>
2585
2586         * demos/gtk-demo/appwindow.c (do_appwindow):
2587         Don't swap the order of the args to gtk_widget_destroyed.
2588
2589         * tests/testgtk.c (destroy_properties):
2590         Don't crash when the properties window is destroyed.
2591
2592         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
2593         Use with_mnemonics to handle the case of stock items with
2594         underscores in them.
2595
2596 2001-06-05  Havoc Pennington  <hp@redhat.com>
2597
2598         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
2599         gtk_text_iter_reorder
2600
2601 2001-06-05  Havoc Pennington  <hp@redhat.com>
2602
2603         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
2604
2605 2001-06-05  Havoc Pennington  <hp@redhat.com>
2606
2607         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
2608         to the range that was set
2609
2610         * gtk/gtkrange.c: add value_changed signal, primarily 
2611         intended for use with GtkScale
2612         (gtk_range_set_increments): new function
2613         (gtk_range_set_range): new function with weird name
2614         (gtk_range_set_value): new function
2615         (gtk_range_get_value): new function
2616
2617         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
2618         from gtk_spin_button_get_value_as_float(). Compat #define
2619         added for get_value_as_float.
2620
2621         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
2622
2623         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
2624
2625 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
2626
2627         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
2628
2629 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
2630
2631         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
2632
2633         * tests/testgtk.c (create_tooltips): Remove usage of
2634         gtk_widget_set().
2635
2636 2001-06-05  Havoc Pennington  <hp@redhat.com>
2637
2638         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
2639
2640         Applying patch from Jeff Franks, with function docs added.
2641         
2642         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
2643         remove call to set_mnemonic_widget, change docs a bit.  
2644
2645         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
2646         new function
2647
2648         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
2649         new function
2650
2651         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
2652
2653         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
2654         function
2655         (gtk_radio_button_new_with_mnemonic_from_widget): new function
2656
2657         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
2658         new function
2659
2660         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
2661         function        
2662
2663         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
2664         auto-selection of mnemonic widget.
2665
2666 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
2667
2668         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
2669         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
2670         (gtk_tree_view_column_set_min_width): ditto.
2671
2672 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
2673
2674         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
2675         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
2676
2677 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
2678
2679         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
2680         gtk_clist_thaw().
2681
2682 2001-06-04  Havoc Pennington  <hp@pobox.com>
2683
2684         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
2685         releases for buttons 6, 7
2686
2687 2001-06-04  Havoc Pennington  <hp@redhat.com>
2688
2689         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
2690         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
2691         #55562
2692
2693 2001-06-04  Havoc Pennington  <hp@redhat.com>
2694
2695         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
2696         where text_view->layout == NULL by assuming its size is 0, 
2697         i.e. same as if we haven't done any reflow. Reported by 
2698         Hidetoshi Tajima #55448 
2699
2700 2001-06-04  Havoc Pennington  <hp@redhat.com>
2701
2702         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
2703         and 7 for scroll left/right, from Thomas Broyer
2704
2705 2001-05-10  Havoc Pennington  <hp@redhat.com>
2706
2707         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
2708         we need to parse the xsetting as if it were an RC file string.
2709
2710         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
2711         value of palette from settings, not from static variable
2712
2713         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
2714         xsettings translation table
2715
2716         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
2717         hardcoding the toolbar style conflicts with new customizable 
2718         toolbar style philosophy
2719         (gtk_toolbar_class_init): add settings for default toolbar style;
2720         these are used unless the app specifically forces a toolbar style
2721
2722         * gtk/gtksettings.c (settings_install_property_parser): only
2723         return at the start if we warn and parser == NULL
2724
2725         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
2726         palette changed handler so we don't notify dead color selections
2727
2728         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
2729         xthickness/ythickness of 0 or 1 properly 
2730         (gtk_default_draw_resize_grip): clear the background behind the
2731         resize grips, and align to bottom right if we square the 
2732         area to be drawn.
2733
2734         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
2735         statusbar label to 1, so it doesn't make toplevels resize oddly
2736         (gtk_statusbar_size_request): add grip size to request
2737         (gtk_statusbar_size_allocate): hack so the hbox still works with 
2738         the grip size in the request
2739
2740         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
2741         bug where showing all on a toplevel makes the toolbar 
2742         button text appear despite the toolbar mode
2743
2744         * gtk/gtkmenubar.c: add internal padding style property
2745
2746         * gtk/gtktoolbar.c: Add internal padding style property; add
2747         shadow type style property
2748
2749         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
2750         state; and put Container::border_width outside the frame
2751
2752         * gtk/gtktextview.c: don't draw focus rectangle if we're in
2753         interior focus mode, we just use blinking cursor
2754
2755 2001-06-04  Havoc Pennington  <hp@redhat.com>
2756
2757         * configure.in: Make gdk-pixbuf have same version number as GTK
2758
2759 2001-06-04  Havoc Pennington  <hp@redhat.com>
2760
2761         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
2762         digits greater than 6. If there actually are limits (which there
2763         likely aren't), should clamp to them not warn.
2764         (gtk_spin_button_new_with_range): don't take log of 0
2765         (gtk_spin_button_size_request): use digits to compute size
2766         request, rather than step increment.
2767
2768         * tests/testgtk.c (create_spins): test larger values of digits
2769         
2770         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
2771         font on map not expose, so we don't get weirdness during scrolling
2772
2773 2001-06-04  Havoc Pennington  <hp@redhat.com>
2774
2775         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
2776         Sam Solon, bug #54577, update value even if not drawable.
2777
2778 2001-06-04  Havoc Pennington  <hp@redhat.com>
2779
2780         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
2781         SCROLL_LEFT, reported by Thomas Broyer.
2782
2783 2001-06-04  Havoc Pennington  <hp@redhat.com>
2784
2785         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
2786         Process updates immediately, to prevent funny lag effect
2787         when scrolling, at some mild potential efficiency cost.
2788
2789 2001-06-04  Havoc Pennington  <hp@redhat.com>
2790
2791         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
2792         slider on the click.
2793
2794 2001-06-03  Havoc Pennington  <hp@pobox.com>
2795
2796         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
2797         hscale/vscale details, so we can use it for scrollbar as well.
2798
2799         * tests/testgtk.c (reformat_value): honor digits from GtkScale
2800
2801         * gtk/gtkenums.h (GtkTroughType): Remove this enum
2802         (GtkScrollType): add START and END from GtkTroughType
2803
2804         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
2805         its x/y arguments
2806
2807         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
2808         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
2809         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
2810         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
2811         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
2812
2813         Notable changes in the process:
2814          
2815         - stepper_size style property is the height for vertical 
2816           ranges, width for horizontal; the other dimension matches
2817           the trough size
2818         - add ability to do NeXT-style steppers (and several other styles
2819           that don't make any sense)
2820         - added min_slider_length, fixed_slider_length properties to
2821           GtkScrollbar
2822         - cleaned some private (or at least useless) functions out of
2823           gtkscale.h    
2824         - moved bindings to GtkScale from subclasses, even arrow keys,
2825           since blind users don't know scale orientation.
2826         - change move_slider action signal to use new GtkScrollType,
2827           remove GtkTroughType argument
2828         - digits rounds the values a range will input to the given 
2829           number of decimals, but will not try to force adjustment 
2830           values set by other controllers. That is, we no longer
2831           modify adjustment->value inside a value_changed handler.
2832         - added getters for GtkScale setters
2833         - middle-click begins a slider drag
2834         
2835 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
2836
2837         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
2838         getting the focus code to work.
2839         (gtk_tree_view_class_init): Add a bunch of keybindings.
2840
2841         * gtk/gtktreeviewcolumn.c
2842         (gtk_tree_view_column_set_cell_data_func):
2843         s/GtkCellDataFunc/GtkTreeCellDataFunc.
2844         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
2845         of "properties_changed" to help justify the death of the latter
2846         signal. (-:
2847
2848         * tests/testtreefocus.c (main): Let some columns be focussable to
2849         test focus better.
2850
2851 2001-06-01  Havoc Pennington  <hp@redhat.com>
2852
2853         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
2854         
2855         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
2856         overwrite in overwrite mode if we already deleted the selection
2857         and replaced it with new text.  
2858
2859         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
2860         selection to an empty range, clear the clipboard if we owned it.
2861         (gtk_label_set_selectable): give up selection if we become
2862         unselectable.
2863         (gtk_label_state_changed): override state changed to unselect text
2864         when insensitive
2865         (get_text_callback): add paranoia check that indexes aren't
2866         outside of label->text
2867         (gtk_label_select_region): make -1 for start_offset mean "end of
2868         label," for consistency with GtkEditable
2869
2870         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
2871         GTK_DIALOG_NO_SEPARATOR flag
2872
2873 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
2874
2875         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
2876         notifications on non-existant "enable_arrow_keys".
2877         (#53753, Skip Montanaro)
2878
2879 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
2880
2881         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
2882         GDK_TYPE_RECTANGLE.
2883
2884         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
2885         of allocation argument be GDK_TYPE_RECTANGLE.
2886
2887 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
2888
2889         * gtk/gtkoptionmenu.c: Account for the fact that the border
2890         width is _outside_ the window. (Fixes #54585, bug found
2891         by Bastien Nocera.)
2892
2893 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
2894
2895         * gtk/gtksettings.c (gtk_settings_get_property): Validate
2896         value from GDK settings against parameter spec.
2897
2898         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
2899         to temporary values and use g_value_transform(), since
2900         thinking that GValue was going to be easy or efficient
2901         to use was, of course, a mistake.
2902
2903         * gtk/gtksettings.c: Add cursor blink setting.
2904         
2905         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
2906
2907         * gtk/gtkentry.c: Add cursor blinking.
2908
2909         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
2910         cursor blink global settings.
2911
2912         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
2913         for :text_position in places where it is missing.
2914
2915 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
2916
2917         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
2918
2919 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
2920
2921         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
2922         not pkg-config. (#51032)
2923
2924         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
2925         (fixes #51952, James Henstridge)
2926         
2927 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
2928
2929         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
2930         Rename to the more correct gtk-go-up.
2931
2932         * gtk/stock-icons/stock_menu_sort_ascending.png:
2933         Added new file.
2934         
2935         * gtk/stock-icons/stock_menu_sort_descending.png:
2936         Changed to show descending instead of ascending.
2937
2938         * gtk/gtkiconfactory.c:
2939         Added menu size icon to sort ascending.
2940
2941         * gtk/stock-icons/Makefile.am:
2942         Added stock_menu_sort_ascending.png.
2943         
2944         * gtk/gtkseparatormenuitem.c:
2945         Use correct typenames.
2946
2947 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
2948
2949         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
2950         gulong as in GSignal.
2951
2952 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
2953
2954         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
2955         instances of GtkCellRenderer in code (all but dnd icon code).
2956         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
2957         there, and I can do multiple Cells per column.
2958
2959         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
2960
2961         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
2962         when model was unreffed prior to removing the row reference.
2963
2964 2001-05-25  Havoc Pennington  <hp@redhat.com>
2965
2966         * gtk/gtkiconfactory.c: fix so that default icons are created if 
2967         you call gtk_stock_list_ids()
2968
2969         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
2970         in list
2971
2972 2001-05-25  Havoc Pennington  <hp@redhat.com>
2973
2974         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
2975         set can render without falling back to missing image icon
2976
2977         * gtk/gtktextview.c (gtk_text_view_size_request): request full
2978         size of text, instead of random values
2979
2980         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
2981         size of tree view, instead of random values
2982
2983         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
2984         image in an appropriate size
2985
2986         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
2987         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
2988
2989         Throughout: fix GTK_STOCK_BUTTON_ instances
2990         
2991         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
2992         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
2993         Add a bunch of new stock items/icons
2994
2995         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
2996         new function, convenience for inserting columns with a data func
2997
2998         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
2999         (_gtk_icon_factory_list_ids): use list of all factories to
3000         generate a list of all known IDs
3001
3002         * gtk/gtkstock.c (gtk_stock_list_ids): replace
3003         gtk_stock_list_items() with a function that returns all IDs known
3004         including those for GtkIconFactory.
3005
3006 2001-05-25  Hans Breuer  <hans@breuer.org>
3007
3008         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
3009         work -> check boxes and radio buttons are drawn now, even on win9x.
3010         Improved line settings a bit, still no clue how to get really dotted
3011         lines on win9x, on NT it's PS_ALTERNATE.
3012
3013         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
3014         GDK_HINT_MIN_SIZE as well
3015
3016         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
3017
3018         * gtk/gtk.def : updated
3019
3020         * gtk/gtktreeprivate.h : change column_drop_func to be a function
3021         pointer not a function pointer pointer
3022
3023         * tests/testdnd.c : include <stdlib.h> for putenv prototype
3024
3025         * tests/testsocket.c : made it compile on win32 again
3026
3027         * tests/makefile.msc : one more test-app uses prop-editor.obj
3028
3029 2001-05-22  Havoc Pennington  <hp@pobox.com>
3030
3031         * gtk/gtkbin.c (gtk_bin_get_child): New function
3032
3033 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
3034
3035         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
3036         to ignore when doing compose processing.
3037
3038 2001-05-22  Joe Shaw  <joe@ximian.com>
3039
3040         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
3041         Simplify as suggested by Havoc. Just get the last iter and work
3042         backward to the tag instead of getting a line and working back from
3043         there. Fixes passing in an invalid offset to
3044         iter_init_from_byte_offset().
3045
3046 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
3047
3048         * gtk/gtktreeview*.h: 
3049         * gtk/gtkcell*.h:
3050         * gtk/gtk*store.h:
3051         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
3052         macros to all objects.
3053
3054 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
3055
3056         * gtk/gtkcellrenderertext.c
3057         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
3058         with very large (TM) amounts of text.  May be moved to
3059         GtkCellRenderer in the future, though I'm not sure it wants to be
3060         this accessible.
3061
3062         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3063         More sanity brought to this class.  I like it.
3064
3065         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
3066         case.  Kids, don't try this at home.
3067
3068         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
3069         convenience function.
3070
3071         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
3072
3073 2001-05-21  Alexander Larsson  <alexl@redhat.com>
3074
3075         * gtk/gtkfontsel.c:
3076         Added properties. Based on patch by Lee Mallabone.
3077
3078         * gtk/gtkruler.c:
3079         * gtk/gtkhruler.c:
3080         * gtk/gtkvruler.c:
3081         * gtk/gtktext.c:
3082         * gtk/gtktextview.c:
3083         Converted GtkArg to GParam. Based on patches by John Margaglione.
3084
3085         * tests/Makefile.am:
3086         * tests/testtext.c:
3087         Add a property editor to testtext.
3088         
3089 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
3090
3091         * gtk/gtk{h,v,}paned.c: Only show the separator if 
3092
3093         * configure.in: Fixed reversed conditional causing all image
3094         libraries to be linked in.
3095
3096 2001-05-21  Joe Shaw  <joe@ximian.com>
3097
3098         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
3099         that top_y needs to be >= 0.
3100
3101 2001-05-11  Havoc Pennington  <hp@pobox.com>
3102         
3103         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
3104         losing connection to the X server.
3105
3106 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
3107
3108         * configure.in: Start checks for X from pangox/pangoxft
3109         CFLAGS to avoid duplicate libraries.
3110
3111         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
3112
3113         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
3114         to include gobject.
3115         
3116 2001-05-18  Alexander Larsson  <alexl@redhat.com>
3117
3118         * gtk/gtkspinbutton.c:
3119         Convert GtkArgs to GParams. Based on patch by John Margaglione.
3120         Also do size request reasonable for MAXDOUBLE. Previously it printed
3121         the limits to a buffer and overran it. Instead do it using log10() and
3122         limit the width to 10 digits.
3123         
3124         * gtk/gtkwidget.c (gtk_widget_get_property):
3125         Correctly handle setting the parent property to NULL.
3126
3127 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
3128
3129         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
3130         style attributes even if the widget isn't realized.
3131
3132         * demos/gtk-demo/main.c: Use a slightly smaller font.
3133
3134 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
3135
3136         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
3137         This is something that only a widget writer would ever want
3138         to change.
3139
3140         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
3141         gtk_signal_emit_by_name().
3142
3143         * gtk/gtkviewport.c: Fix some warnings.
3144
3145         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
3146         allowing the requisitions of multiple widgets to be grouped
3147         together.
3148
3149         * tests/testgtk.c: Add GtkSizeGroup test
3150
3151         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
3152
3153         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
3154         warnings.
3155
3156         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
3157
3158 2001-04-28  Martin Baulig  <baulig@suse.de>
3159
3160         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
3161         to gtk_image_menu_item_set_icon() and made it work if there's already
3162         an image.
3163         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
3164         (gtk_image_menu_item_new_with_label): New function.
3165
3166 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
3167
3168         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
3169         highlighting code!!!!  The result is okay so long as you don't try
3170         to stress it.  It also highlights a bug in the TextView so it's in
3171         an unproportional font right now until it's fixed.
3172
3173         *demos/gtk-demo/*.c: Clean up code a bit to make it
3174         ugly-parser(TM) friendly. (-:
3175
3176 2001-05-17  Joe Shaw  <joe@ximian.com>
3177
3178         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
3179         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
3180         if it is only partially onscreen.
3181
3182 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
3183
3184         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
3185         not by characters.
3186
3187         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
3188         are not zero or one; that is, when graphemes of multiple characters
3189         are involved.
3190
3191         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
3192         FIXME.
3193
3194 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
3195         
3196         * gtk/gtkbbox.c:
3197         Add properties, based on patch by Lee Mallabone.
3198
3199         * gtk/gtknotebook.c:
3200         * gtk/gtktoolbar.c:
3201         Convert from GtkArg to GParam, based on patch by John Margaglione.
3202         
3203         * gtk/gtkhscale.c:
3204         * gtk/gtkvscale.c:
3205         * gtk/gtkhscrollbar.c:
3206         * gtk/gtkvscrollbar.c:
3207         * gtk/gtkrange.c:
3208         Move adjustment property to GtkRange.
3209
3210         * gtk/gtklabel.c:
3211         Setup mnemonics on property changes
3212
3213         * gtk/gtkwidget.c (gtk_widget_get_property):
3214         GdkExtensionMode is an enum, not a flag. Set it with
3215         g_value_set_enum ().
3216
3217         * tests/prop-editor.c:
3218         Better propery editor.
3219
3220         * tests/testgtk.c:
3221         Add new property test. Pass zero to the property editor to
3222         get properties from all derived types.
3223         
3224 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
3225
3226         * autogen.sh (have_automake): Require libtool-1.4,
3227         automake-1.4p1.
3228
3229         * acinclude.m4: Remove libtool macros.
3230
3231         * gdk-pixbuf/Makefile.am: Add dependencies to loade
3232         modules.
3233
3234         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
3235         for libgdk.
3236
3237         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
3238         libgdk.la for libgtk.
3239
3240         * modules/input/Makefile.am: Make modules have full
3241         dependencies.
3242
3243 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
3244
3245         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
3246         #54699 where paths weren't being checked for correctness.
3247
3248 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
3249
3250         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
3251         in any order you wan, whether or not the column is added to the
3252         tree, or the tree is realized.  Yay!
3253
3254         * gtk/gtktreeviewcolumn.c
3255         (gtk_tree_view_column_setup_sort_column_id_callback): handle
3256         sorting columns a lot saner
3257
3258         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
3259         new function to actually set wether or not a column is
3260         reorderable.
3261
3262         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
3263         if we have 'em.
3264
3265         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
3266         Fix nasty bug where we were showing the button just before
3267         realizing it.  As a result, the parent window was
3268         tree_view->window instead of tree_view->priv->header_window.
3269
3270         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
3271         to let you easily reorder a list or tree.
3272
3273 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
3274
3275         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
3276         from args to properties.
3277
3278 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
3279
3280         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
3281         from args to properties. (#51957)
3282
3283         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
3284         calls to after ->set_property call.
3285
3286 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
3287
3288         * tests/prop-editor.c: Block against redundant changes.
3289
3290         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
3291         properties.
3292
3293 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
3294
3295         * gdk/gdkpixmap.h: Remove creative formatting.
3296
3297 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
3298
3299         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
3300         property API. (#51669)
3301
3302         * gtk/gtkscale.c: Patch from John Margaglione converting to
3303         property API. (#51891)
3304
3305         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
3306         to property API. (#50985)
3307
3308 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
3309
3310         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
3311         buffering state across expose event, so we still call end_paint().
3312
3313 2001-05-11  Alexander Larsson  <alexl@redhat.com>
3314
3315         * gtk/gtkhsv.c (paint_triangle):
3316         Expose the ring in the triangle at the correct place when
3317         exposing just a part of the triangle.
3318
3319         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
3320         Return FALSE, or window focusing will not work.
3321
3322 2001-05-11  Havoc Pennington  <hp@pobox.com>
3323
3324         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
3325         #54144
3326
3327         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
3328         bug #54330
3329
3330 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
3331
3332         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
3333         propagate exposes to NULL child.
3334
3335         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
3336         against not having one of the scrollbars.
3337
3338         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
3339         we don't keep a mnemonic window if we have no mnemonic installed.
3340
3341 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
3342
3343         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
3344         it has the _important_ side effect of initializing a class.
3345
3346 2001-05-10  Alexander Larsson  <alexl@redhat.com>
3347
3348         * gdk/linux-fb/gdkprivate-fb.h:
3349         Make sure you can compile out the implementation/wrapper assert
3350         macros.
3351
3352         * gdk/linux-fb/gdkdrawable-fb2.c:
3353         Check implementation/wrappers, initialize type for pixmap dummys.
3354
3355         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
3356         Hide the cursor if reading from the screen.
3357
3358         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
3359         Fix sign bug in tiling code.
3360
3361         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
3362         Handle background pixmaps.
3363
3364 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
3365
3366         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
3367         function to let user control where columns are dragged.
3368
3369         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
3370         Escape is pressed.
3371
3372 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
3373
3374         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
3375         "columns_changed" signal.
3376         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
3377         motion code to draw arrows to the side if indicator is outside the
3378         widget.
3379         (gtk_tree_view_map_expanded_rows): Implement.
3380
3381 2001-05-07  Alexander Larsson  <alexl@redhat.com>
3382
3383         * demos/testpixbuf-save.c: 
3384         * demos/testpixbuf-drawable.c:
3385         Include gdkfb.h on linux-fb.
3386
3387 2001-05-07  Alexander Larsson  <alexl@redhat.com>
3388
3389         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
3390         New function for getting toplevel window at position.
3391         (gdk_drag_find_window): Use get_toplevel_window () instead
3392         of gdk_window_get_pointer(). (gdk_drag_status): Use
3393         correct context for getting window.
3394
3395         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
3396         g_strdup the atom name.
3397
3398         * gdk/linux-fb/gdkwindow-fb.c:
3399         Costmetic fix.
3400
3401         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
3402         Add code for changing cursor on linux-fb backend (same as
3403         win32).
3404
3405 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
3406
3407         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
3408         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
3409         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
3410         report was not for the development branch of GTK+, but it applies
3411         anyways).
3412
3413 2001-05-04  Havoc Pennington  <hp@redhat.com>
3414
3415         * configure.in: fix some shell typos
3416
3417         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
3418
3419         * gtk/gtkimage.c: handle animations
3420
3421         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
3422         border_width * 2, not just border_width
3423
3424         * gtk/gtkscale.c: add "format_value" signal to allow people
3425         to override the way values are drawn.
3426         (gtk_scale_get_value_size): fix width/height mistake,
3427         and compute size from actual displayed text, not 
3428         from made-up text.
3429
3430         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
3431         signal registration
3432
3433         * tests/testtext.c: Add "Remove all tags" menu item for testing
3434
3435         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
3436
3437         * demos/gtk-demo/main.c (main): add hack so we can find modules
3438         without installing gtk
3439
3440         * demos/gtk-demo/textview.c (insert_text): demo font scaling
3441
3442         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
3443         factor)
3444         (gtk_cell_renderer_text_set_property): remove some bogus
3445         g_object_notify
3446
3447         * gtk/gtktexttag.c: add "scale" property which is a font scaling
3448         factor
3449
3450         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
3451         to layout
3452
3453         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
3454         gtk_text_iter_is_first
3455
3456 2001-01-06  Hans Breuer  <hans@breuer.org>
3457
3458         * gdk/gdk.def : updated exports
3459
3460         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
3461         gdk won't compile anymore
3462  
3463         * gdk/win32/gdkevents-win32.c : initialize ret_val when
3464         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
3465         Improved gdk_flush () to not only do pending drawing operations
3466         but also process all currently pending events. This should make
3467         the behaviour more similar to the X11 version.  
3468
3469         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
3470         option needs to be set even if there is no GDK_GC_BACKGROUND.
3471         (gdk_win32_hdc_get) : use predraw_set_background () independent
3472         of value_mask. This allows to draw dashed lines leaving the original
3473         background intact.
3474
3475         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
3476         after processing, because we can't reuse it as the X11 version does.
3477
3478         * gtk/gtk.def : updated exports
3479
3480         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
3481         would like to get rid of this file again, and use straight
3482         makefile.msc again, as the other Gtk+ subdirs do)
3483
3484         * test/makefile.msc (new file) : build the test apps here
3485
3486 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
3487
3488         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
3489         strike-through setting
3490         (gdk_draw_layout_line_with_colors): Render strike-through
3491
3492 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
3493
3494         * Release 1.3.5
3495
3496         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
3497
3498         * NEWS: Updated
3499
3500         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
3501         Makefile breakage.
3502
3503 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
3504
3505         * demos/gtk-demo/images.c (progressive_timeout): Fix
3506         typo in filename.
3507
3508         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
3509         out FIXME warning; just too annoying.
3510
3511 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
3512
3513         * gdk/linux-fb/gdkcolor-fb.c:
3514         Better error messages.
3515
3516         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
3517         Initialize abs_x and abs_y.
3518         
3519         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
3520         Correct handling of stipple offset.
3521
3522         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
3523         Treat directcolor framebuffers as truecolor.
3524         
3525 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
3526
3527         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
3528         dependency on Atk for accessibility support.
3529
3530         * configure.in **/Makefile.am: Major reworking of substituted
3531         variables for CFLAGS/LIBS to make a lot more sane and 
3532         keep the the compile/link lines a bit shorter.
3533
3534         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
3535
3536 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
3537
3538         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
3539         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
3540         use _gtk_boolean_handled_accumulator.
3541
3542 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
3543
3544         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
3545         to fix things so clicking inside selection leaves cursor
3546         at point where clicked. (#50324)
3547
3548         * gtk/gtksettings.c (gtk_settings_class_init): Restore
3549         sane value for default double click time.
3550
3551         * tests/testtext.c (test_init): Really path to input modules.
3552
3553 2001-05-03  Sven Neumann  <sven@convergence.de>
3554
3555         * demos/testpixbuf-save.c: include target-specific headers as
3556         done in testpixbuf-drawable.c
3557
3558 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
3559
3560         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
3561         new_text_length appropriately when we run into the 
3562         size limit for the entry. (#53445, reported by Jeff Franks)
3563
3564         * tests/testgtk.c (create_entry): Remove most of the
3565         property toggle buttons. Replace with a "Props" button
3566         that brings up a property editor.
3567
3568         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
3569         Split the property editor code out for reuse, improve.
3570
3571 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
3572
3573         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
3574         trap errors around calls to XSetInputFocus since we have
3575         no way of knowing reliably whether we are viewable or
3576         not. (#53947)
3577
3578 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
3579
3580         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
3581         fix bug in dropping columns.  Moving columns now basically works
3582         modula some fine tuning.
3583
3584 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
3585
3586         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
3587         autoscroll support.  It mostly works, but could use some fine
3588         tuning.
3589         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
3590         Actually move the column.
3591
3592 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
3593
3594         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
3595           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
3596           New default theme! A slighly improved version of the 2.0 Raleigh
3597           theme, with Windows-esque focus/drawing default. 
3598           (GtkWidget::interior_focus defaults to TRUE.)
3599
3600         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
3601
3602 2001-04-30  Havoc Pennington  <hp@pobox.com>
3603
3604         * tests/testtext.c (line_numbers_expose): fix to work with
3605         gtk_paint_layout change
3606
3607 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
3608
3609         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
3610           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
3611           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
3612           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
3613
3614         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
3615           with GtkWidget::interior_focus = TRUE better.
3616
3617         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
3618         ::default_outside_border for more flexibility.
3619
3620         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
3621         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
3622         change that had to be made with g_object_get.
3623
3624 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
3625
3626         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
3627         (gtk_tree_view_move_column_after): Clean up interface. 
3628
3629 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
3630
3631         * gtk/gtkpacker.h:
3632         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
3633          to gtkenum.h.
3634
3635         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
3636         handled in switch).
3637
3638         * gtk/Makefile.am:
3639         (gtk.defs): generate enum portions with  glib-mkenums.
3640         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
3641         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
3642         
3643         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
3644         addition.
3645
3646         * docs/Changes-2.0.txt: keep a note on signal handlers now
3647         not getting emitted during the emission they were connected within.
3648
3649 2001-04-28  Havoc Pennington  <hp@pobox.com>
3650
3651         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
3652
3653 2001-04-24  Havoc Pennington  <hp@redhat.com>
3654
3655         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
3656         (gtk_text_layout_move_iter_to_next_line): fix these two for
3657         invisible text, lots of other stuff still hosed.
3658
3659         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
3660         new function, replaces the get/set palette stuff. This function 
3661         is intended for use by libgnomeui which should set the hook to a
3662         thing which sets the palette in GConf, and we need the
3663         GConf-to-xsettings proxy which will result in the change being
3664         propagated back to the GTK app.
3665
3666         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
3667         about unusable signals that it may be because the signal has 
3668         parameters.
3669
3670         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
3671         style, otherwise gtkrc.c won't know to create a new GtkStyle for
3672         it.
3673         (gtk_widget_modify_color_component): call
3674         gtk_widget_modify_style() so the rc style will get copied.
3675         (gtk_widget_modify_font): ditto
3676
3677         * gtk/gtkrc.c: make a couple variables static
3678
3679         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
3680         help button by default, since it does nothing
3681
3682         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
3683         around with UI
3684
3685         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
3686         so we can have tooltips
3687
3688         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
3689         can have tooltips
3690
3691         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
3692         GDK_ENABLE_BROKEN, because its memory behavior is completely
3693         hosed.
3694
3695         * gtk/gtknotebook.c: remove key press handler, replace with
3696         binding set, add numeric keypad support
3697
3698         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
3699
3700         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
3701
3702         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
3703         addition to plain Delete
3704
3705         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
3706         GDK_KP_Enter in addition to GDK_Return
3707
3708         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
3709         activate on entry instead of key press
3710         (gtk_font_selection_on_clist_key_press): get
3711         rid of this signal handler, not needed with new font sel.
3712
3713         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
3714         no-longer-needed emit_stop_by_name(), just return TRUE
3715
3716         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
3717         cruft, this widget is no longer focusable.
3718
3719         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
3720         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
3721         move_slider action signal, add binding set for vscale/hscale, in
3722         the process support numeric keypad
3723
3724         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
3725         make GDK_Return and GDK_KP_Enter activate the entry via 
3726         binding set, instead of hardcoded.
3727
3728 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
3729
3730         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
3731         code.  Some documentation added.
3732
3733 2001-04-27  Havoc Pennington  <hp@redhat.com>
3734
3735         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
3736
3737         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
3738
3739         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
3740         line/para separators
3741         (gtk_entry_create_layout): set single paragraph mode on the layout
3742
3743         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
3744         spacing between the image and label; instead, inside a button box 
3745         the button will get extra space that will go there, but if people 
3746         configure button box for 0 chubbiness, then there's no spacing.
3747
3748         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
3749         and min/max size style properties, so people can tune their
3750         chubbiness.
3751
3752         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
3753         functions
3754
3755         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
3756         space_style, and button_relief into style properties, remove
3757         functions for setting them
3758         
3759         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
3760         it back down
3761
3762         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
3763         types from gtk_widget_style_get
3764
3765         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
3766         with a style property.
3767
3768         * gdk/x11/gdkevents-x11.c: namespace the settings
3769
3770         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
3771
3772         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
3773         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
3774         be used. Also, translate doc strings for settings. Also, namespace
3775         the double-click-time property. Also, remove bell properties crap.
3776
3777 2001-04-27  Sven Neumann  <sven@gimp.org>
3778
3779         * Makefile.am: before creating links, check if pkg-config files
3780         exist for the default target. Otherwise link to the pkg-config files
3781         that got installed with this build.
3782
3783 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
3784
3785         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
3786         dragging code.  Revealed some (potential) GdkWindow bugs.
3787
3788         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
3789         _gdk_window_init_position to the end of reparent to fix the case
3790         of reparenting when new_x != old_x and new_y != old_y.
3791
3792 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
3793
3794         * gtk/gtkentry.c (strstr_len): Fix optimization that
3795         was correct for the use here, but completely incorrect
3796         in general.
3797
3798 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
3799
3800         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
3801         until patch adding gtk_window_set_size() is recommitted. 
3802
3803         * **Makefile.am configure.in gdk/x11/gdkim-11.c
3804           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
3805           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
3806           (#10784)
3807
3808 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
3809
3810         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
3811         window == NULL in a number of cases.
3812
3813         * tests/testdnd.c: Set module path for gdk-pixbuf.
3814
3815 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
3816
3817         * gtk/Makefile.am xembed.h: File containing #defines
3818         for XEMBED protocol.
3819
3820         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
3821
3822         - Change protocol from old plug/socket specific protocol
3823           to XEMBED draft
3824         - Various fixes to work with GTK+-2.0
3825
3826         Still quite a bit of work to do here to handle initiation
3827         from the socket side (as specified by XEMBED), to handle
3828         the more advanced features of XEMBED, and to figure out
3829         a good way to handle same-app embedding with less overhead
3830         than using full XEMBED.
3831
3832 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
3833
3834         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
3835         track of whether the toplevel has the focus; only send
3836         focus-in events to the focus widget when the window
3837         actually has the focus.
3838
3839 2001-04-25  Havoc Pennington  <hp@pobox.com>
3840
3841         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
3842         were still in the header
3843
3844 2001-04-24  Alexander Larsson  <alexl@redhat.com>
3845
3846         * gtk/gtkclist.[ch]:
3847         * gtk/gtkctree.c:
3848         When there is a row highlighted for D'n'D it must alse
3849         be painted hightlighted on exposes. Otherwise exposes from
3850         the icon being dragged will mess up the hightlight.
3851
3852         * gtk/gtkfontsel.c:
3853         Don't recenter selected font when exposing the font family
3854         clist. This means you can now actually scroll the font family
3855         list.
3856
3857         * gtk/gtknotebook.c:
3858         Fix focus movement on scrolling tabs that are placed on the left
3859         and right.
3860
3861 2001-04-21  Havoc Pennington  <hp@pobox.com>
3862
3863         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
3864         empty/invisible lines.
3865
3866         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
3867         (gtk_text_iter_set_visible_line_index): new functions to set
3868         indexes excluding invisible text
3869
3870         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
3871         index
3872
3873         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
3874         (gtk_text_iter_get_visible_line_offset): new functions to 
3875         get indexes excluding invisible text
3876
3877         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
3878         bunch of extra padding that served no purpose
3879
3880         * gtk/gtkdialog.c: Make all the spacings configurable via style
3881         properties, for chubbiness configuration in themes
3882
3883         * tests/testtext.c: fix path to the immodules.
3884         
3885 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
3886
3887         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
3888         got munched by #endif.
3889
3890         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
3891
3892         * gtk/gtktreeview.c: Refactored code to clean up a number of
3893         events.
3894
3895         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
3896         values to make consistent with other functions.  Spotted by Jeff
3897         Franks <jcf@tpg.com.au>.
3898
3899         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
3900         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
3901
3902 2001-04-23  Sven Neumann  <sven@gimp.org>
3903
3904         * gtk/Makefile.am
3905         * gtk/gtkplug.c
3906         * gtk/gtksocket.c: on request of Owen, reverted my last change 
3907         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
3908
3909 2001-04-23  Sven Neumann  <sven@gimp.org>
3910
3911         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
3912         compile for non-X11 targets again
3913
3914 2001-04-20  Alexander Larsson  <alexl@redhat.com>
3915
3916         * gtk/gtkcolorsel.[ch]:
3917         API Change. Take GdkColor arguments instead of gdouble *.
3918         Leave the old gtk_color_selection_set_color for compatibility,
3919         but marked deprecated.
3920         Do correct rounding when converting RGB <-> HSV.
3921         
3922         * gtk/gtkcolorseldialog.c:
3923         * tests/testgtk.c:
3924         Use new GtkColorSelection API.
3925
3926         * gtk/gtkhsv.c:
3927         Fix problem selecting colors in triangle when Hue is 330.
3928         Fix some black dots around the HSB triangle.
3929         
3930         * gtk/gtkfilesel.c:
3931         return FALSE from the focus_in_event handler to fix focus problems.
3932
3933 2001-04-18  Havoc Pennington  <hp@redhat.com>
3934
3935         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
3936         set, so keybindings are configurable    
3937         (gtk_window_activate_default): Change to activate the focus widget
3938         instead if there's a focus widget, to be consistent with the
3939         behavior that previously existed in key_press_event
3940
3941 2001-04-18  Havoc Pennington  <hp@redhat.com>
3942
3943         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
3944
3945 2001-04-18  Havoc Pennington  <hp@redhat.com>
3946
3947         Close bug #50615:
3948         
3949         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
3950         the layout
3951
3952         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
3953
3954         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
3955
3956         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
3957         
3958         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
3959         to blue for base, in addition to bg
3960         
3961 2001-04-18  Havoc Pennington  <hp@redhat.com>
3962
3963         * tests/testgtk.c (create_image): allow shrinking the image window
3964         to test that we clip to allocation.
3965
3966         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
3967         #9845
3968
3969         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
3970
3971 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
3972
3973         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
3974         mode on shm segments to 0600. We'll see who complains.
3975
3976         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
3977         _gdk_windowing_window_destroy() AFTER recursing through
3978         children.
3979
3980         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
3981         testsocket_child on X.
3982
3983         * tests/testsocket[_child].c: Fix uses of
3984         gtk_window_get_default_accel_group().
3985
3986         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
3987
3988         * gdk/gdkimage.c: (gdk_image_get):
3989         Deal with the possibility that XGetImage() might return NULL.
3990         Allocate the GdkImagePrivate structure only after XGetImage()
3991         succeeds in order not to dereference a NULL ximage pointer.  This
3992         prevents a core dump when XGetImage() fails - which is unlikely,
3993         but can happen due to race conditions accessing the geometries of
3994         drawables.  An x error will still be triggered, but the gdk image
3995         wrapper at least wont seg fault.
3996         
3997 2001-04-18  Havoc Pennington  <hp@redhat.com>
3998
3999         * gtk/gtkimage.c: fix to properly queue resizes when the image is
4000         set
4001
4002         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
4003         if the insertion point isn't editable
4004
4005         * demos/gtk-demo/images.c: Added a GtkImage demo
4006
4007         * demos/gtk-demo/drawingarea.c: drawing area demo
4008         
4009         * demos/gtk-demo/menus.c (create_menu): cleanups
4010
4011 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
4012
4013         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
4014           gdk/x11/gdkevents-x11.c: Introduce an extra child
4015         of toplevel windows that serves to hold the focus to
4016         avoid events being delivered to embedded windows.
4017
4018         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
4019         some extra variables to clean up code and reduce the
4020         number of casts.
4021
4022         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
4023         guint for 1 bit bit fields, not gboolean.
4024
4025 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
4026
4027         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
4028         not TRUE. (Fixes #52925)
4029
4030 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
4031
4032         * Released 1.3.4
4033
4034         * NEWS: Updated
4035
4036         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
4037         use GTK_TYPE_ENUM.
4038
4039 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
4040
4041         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4042
4043         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
4044         names to compatibility #defines so docs work.
4045
4046         * gtk/gtkenums.h: Remove GtkMenuFactoryType
4047
4048         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
4049
4050         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4051
4052         * tests/testgtkrc: No magenta cursors, please.
4053
4054         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
4055
4056         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
4057         
4058 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
4059
4060         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
4061         grabs, since they are no longer necessary.
4062
4063         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
4064         by signal_connect() and call gtk_button_pressed() rather
4065         than signal_connect_after().
4066
4067         * tests/testgtk.c: Restore radio menu items to combos 
4068         since they'll look OK with Raleigh, and it is easier
4069         than finishing the process of removing them that was
4070         started earlier.
4071
4072 2001-04-16  Hans Breuer  <hans@breuer.org>
4073
4074         * gdk/gdk.def :
4075         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
4076
4077         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
4078         we are interested in the functions return value not the function address
4079         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
4080
4081         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
4082
4083 2001-04-14  Hans Breuer  <hans@breuer.org>
4084
4085         * gdk/gdk.def :
4086         * gdk/makefile.msc : updated
4087
4088         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
4089         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
4090         (the testgtk::text backgound pixmap is drawn again)
4091         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
4092         Win32 Pango change
4093         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
4094
4095         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
4096         Not sure if the returned settings have the right unit, because I couldn't
4097         find any docs for the X version ...
4098
4099         * gtk/gtk.def :
4100         * gtk/makefile.msc.in : updated
4101
4102 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4103
4104         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
4105         wording problems. (Compared to version from Johannes Stezenbach to
4106         check correctness.)
4107
4108 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
4109
4110         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
4111         this to compile.
4112
4113 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
4114
4115         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
4116         not pixbufpos.
4117
4118         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
4119
4120         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
4121         are unsigned insts, therefore use g_value_set_uint.
4122         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
4123
4124 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
4125
4126         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
4127
4128         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
4129         GTK_TYPE_STRING.
4130
4131         * gtk/gtktreeview.c: New functions to allow initial column
4132         dragging work.
4133
4134         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
4135
4136         * tests/testtreefocus.c: give dave some love.
4137
4138         * tests/testtreesort.c: Modify test to check really long samples.
4139
4140 2001-04-11  Alexander Larsson  <alexl@redhat.com>
4141
4142         * gtk-2.0.m4: Pass pkg-config options
4143         before the other args so it works even if
4144         POSIXLY_CORRECT is set.
4145
4146 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
4147
4148         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
4149         0, interface 0).
4150
4151 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
4152
4153         * gtk/gtkcalendar.c (gtk_calendar_button_press):
4154         check for action_func != NULL
4155
4156 2001-04-04  Sven Neumann  <sven@gimp.org>
4157
4158         * tests/testgtk.c (test_init): corrected path to gtk.immodules
4159
4160 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
4161
4162         * Released Gtk+-1.3.3.
4163
4164 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
4165
4166         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
4167
4168 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
4169
4170         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
4171         files to/from source dir. (if we don't stay in builddir, we
4172         can't reach make-inline-pixbuf.
4173
4174         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
4175         deps.
4176
4177         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
4178         ages 0).
4179
4180 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
4181
4182         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
4183         moved to the GtkTreeSortable interface.
4184
4185         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
4186         Make more efficient (fixes #50262).
4187
4188 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
4189
4190         * NEWS: Updated.
4191
4192         * configure.in: Remove support for uninstalled glib.
4193
4194         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
4195         so as not to stop emission.
4196
4197         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
4198         is no longer supported.
4199
4200         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
4201         into tests, change build order to build modules before
4202         gtk/.
4203
4204         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
4205         to here.
4206
4207 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
4208
4209         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
4210         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
4211         GPatternSpec. this is actually unlikely to cause breakage in
4212         third-party apps since except for gle, pretty much ever caller
4213         passes NULL here.
4214
4215         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
4216
4217         * *.c: use g_pattern_*() API.
4218
4219         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
4220
4221         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
4222         directions aren't passed in.
4223
4224         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
4225         functionality to be usable from gtkstyle.c as well, give precedence
4226         for conversion to user-supplied parsers.
4227         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
4228
4229         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
4230         _gtk_settings_parse_convert() for rcporperty value conversion.
4231
4232 2001-04-03  Alexander Larsson  <alexl@redhat.com>
4233
4234         * gdk/linux-fb/gdkevents-fb.c:
4235         Add empty gdk_setting_get().
4236
4237 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
4238
4239         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
4240         variable names.
4241         
4242         * gtk/makeenums.pl: touch this so enum files get remade.
4243
4244 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
4245
4246         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
4247         work again when not sorted.
4248
4249         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
4250         and "expand_row" signal, closing bug 52578.
4251
4252         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
4253         support.
4254
4255         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
4256         support.
4257
4258 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4259
4260         * gdk/gdkevents.h: Add GdkEventSetting event for notification
4261         of changes to system settings, gdk_setting_get() to retrieve
4262         a single system setting.
4263
4264         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
4265         to the draft XSETTINGS mechanism.
4266
4267         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
4268         XSETTINGS.
4269
4270         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
4271         of GDK settings changes to the GtkSettings object.
4272
4273         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
4274         double-click-timeout property to GDK.
4275
4276         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
4277         Define GDK boxed types here.
4278
4279         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
4280         gdk/gdkenumtypes.[ch] for enum definitions.
4281
4282         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
4283         * gtk/gtk-boxed.defs: Comment out GDK types
4284         * gtk/gtktypeutils.h: Remove GDK types
4285         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
4286
4287 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
4288
4289         * Applied patch from Ron Steinke to add signal accumulators
4290         so that signals with the convention 'TRUE return means
4291         handled' stop emission on a TRUE return.
4292
4293         * gtk/gtkmain.[ch]: Add private accumulator 
4294         _gtk_boolean_handled_accumulator, used throughout GTK+.
4295         
4296         * gtk/gtkspinbutton.c: Add accumulator for ::output.
4297
4298         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
4299         
4300         * gtk/gtkwidget.c: Add accumulators for event signals,
4301         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
4302         for ::mnemonic-activate.
4303
4304         * gtk/gtkwindow.c: Add accumulator for ::frame_event
4305
4306 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
4307
4308         * gtk/gtkwidget.c: Add missing include.
4309
4310 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
4311
4312         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
4313         marshaller.
4314
4315         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
4316         "changed" signal to "range_changed".
4317
4318         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
4319         removing a tree from one model would remove all trees from that
4320         model.
4321         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
4322         changed signal instead.
4323
4324 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
4325
4326         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
4327         chaining up to parent impl, since we have a INPUT_ONLY
4328         window.
4329
4330         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
4331         foreground color for the cursor.
4332
4333 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
4334
4335         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
4336         param spec when caching property values, since we unref it
4337         later when we free the style.
4338
4339         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
4340         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
4341
4342 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
4343
4344         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
4345         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
4346         stupidity.
4347
4348 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
4349
4350         [ First pass at adding style properties. Still needs some definite
4351         fine-tuning. ]
4352
4353         * gtk/gtkbutton.c: Add ::default_spacing style property.
4354          
4355         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
4356         ::indicator_spacing style properties.
4357
4358         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
4359         style properties.
4360
4361         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
4362         rather than a normal property.
4363
4364         * gtk/gtkwidget.c: Add an ::interior_focus style property to
4365         draw focus inside buttons, in the Windows/Java Metal/etc. style.
4366
4367         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
4368         Honor ::interior_focus.
4369         
4370         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
4371         TRUE.
4372
4373         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
4374         Add ::slider_width, ::trough_border, ::stepper_size,
4375         ::stepper_spacing style properties.
4376
4377         * gtk/gtkscale.[ch] Add ::slider-length style property.
4378
4379 2001-04-02 Alexander Larsson   <alexl@redhat.com>
4380
4381         * gdk/linux-fb/gdkwindow-fb.c:
4382         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
4383         warnings that were spewed on startup.
4384
4385         * gtk/gtkwindow-decorate.c:
4386         gtk_window_reposition -> _gtk_window_reposition
4387
4388 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
4389
4390         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
4391         Add boxed type for GtkRequistion. Use it for ::size-request.
4392
4393         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
4394         Add a new GtkBorder structure useful for geometry properties
4395         for widgets. Add corresponding GTK_TYPE_BORDER.
4396         
4397         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
4398         Support automatic parser selection like
4399         gtk_settings_install_property_parser().
4400
4401         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
4402         functionality for use by gtk_widget_class_install_style_property.
4403         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
4404
4405 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
4406
4407         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
4408         g_param_spec_unichar(). 
4409
4410 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
4411
4412         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
4413         _NET window managers.
4414
4415         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
4416
4417 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
4418
4419         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
4420         bad needs to be nuked, not just deprecated.
4421
4422         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
4423         gtk_widget_popup().
4424
4425         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
4426         
4427         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
4428         widget.
4429         
4430         * docs/Changes-2.0.txt: updates.
4431         
4432 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
4433
4434         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
4435         for (i = 0; i < 100; i ++)
4436           g_print ("I will confirm it compile before committing\n");
4437
4438 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
4439
4440         * gtk/gtktreestore.c: Initial work on implementing the
4441         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
4442
4443 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
4444
4445         * gtk/gtkwidget.c: fixed a bunch of notifications, added
4446         reference counts around emissions where the widget is used afterwards.
4447         added freeze/thaws around multiple properties being notified.
4448         (_gtk_widget_get_aux_info): cleanups.
4449         
4450         * gtk/gtksettings.c (gtk_settings_install_property): provide
4451         default parsing functions for gdkcolor, enums and flags.
4452
4453         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
4454         applied by owen.
4455         backed out gtk_window_get_location(), gtk_window_set_location(),
4456         gtk_window_get_size() and gtk_window_set_size(), these
4457         have to be sorted out wrg x/y/width/height/default_with/default_height
4458         properties.
4459         kept a flag in GtkWindowGeometryInfo to handle user
4460         resetting default sizes.
4461         cleaned up ZVT comments.
4462         bunch of assorted bug fixes, notification fixes.
4463         (_gtk_window_reposition): make this a really internal function.
4464         
4465         * gtk/testgtk.c: fixups.
4466         
4467 2001-03-31  Hans Breuer  <hans@breuer.org>
4468
4469         * config.h.win32.in : disable USE_MMX for msvc build cause
4470         the assembler doesn't fit and is out of my scope. Disable
4471         USE_GMODULE for msvc build as wel. The right way to share
4472         binaries on win32 would be to use libtiff.dll etc. To reduce
4473         installation hassles IMO it's better to include all fileformats
4474         builtin to gdk-pixbuf
4475
4476         * gdk-pixbuf/makefile.msc : new file
4477
4478         * gdk/gdk.def : updated
4479
4480         * gdk/win32/gdkevents-win32.c : don't erase the background if
4481         .no_bg is set. It improves the scrolling (e.g. of testgtk main
4482         buttons
4483         * gdk/win32/gdkgeometry-win32.c : added comment about the above
4484
4485         * gdk/win32/gdkwindow-win32.c : added three new functions like
4486         the X version. Only one is implemented, because the other two
4487         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
4488         be default behaviour on win32 anyway ...
4489
4490         * gtk/gtk.def : updated
4491
4492         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
4493         from where it was built and add an additional rule to automagically
4494         build gtkmarshal.[hc]
4495
4496         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
4497         before array access for the current entry isn't finished
4498
4499         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
4500         use g_return_val_if_fail
4501
4502         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
4503         for the static array, but let the compiler calculate it. It
4504         makes me wonder if gcc isn't capable to catch bugs like this ...
4505
4506 2001-03-31  James Henstridge  <james@daa.com.au>
4507
4508         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
4509         constant "-1" in the aux info structure.
4510
4511 2001-03-30  Alexander Larsson  <alexl@redhat.com>
4512
4513         * gtk/gtkbutton.c (gtk_button_get_property):
4514         * gtk/gtklabel.c:
4515         Remove leaks.
4516         
4517         * gtk/gtkcontainer.c:
4518         * gtk/gtkhscale.c:
4519         * gtk/gtkhscrollbar.c:
4520         * gtk/gtklayout.c:
4521         * gtk/gtkmisc.c:
4522         * gtk/gtkprogress.c:
4523         * gtk/gtkprogressbar.c:
4524         * gtk/gtkrange.c:
4525         * gtk/gtktable.c:
4526         * gtk/gtkviewport.c:
4527         * gtk/gtkvscale.c:
4528         * gtk/gtkvscrollbar.c:
4529         * gtk/gtkwidget.c:
4530         Property patches, based on patches from John Margaglione and Lee Mallabone.
4531
4532 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
4533
4534         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
4535         adjustment. Cleaned redundant preconditions (spin != NULL). Added
4536         inline API function docs.
4537         (gtk_spin_button_new_with_range): New convenience constructor.
4538         (gtk_spin_button_set_increments): New adjustment helper.
4539         (gtk_spin_button_set_range): New adjustment helper.
4540
4541         * gtk/testgtk.c : added test of the new convenince constructor and
4542         value_changed signals.
4543
4544 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
4545
4546         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
4547         listen to the reorder signal.
4548
4549 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
4550
4551         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
4552         to get the aux info structure fo the widget.
4553
4554         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
4555         above function.
4556
4557         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
4558
4559         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
4560         to get the size of the window manager frame, basically the same
4561         code that gdk_window_get_root_origin() had
4562         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
4563
4564         * gtk/gtkwindow.c (gtk_window_set_default_size): use
4565         gdk_window_resize() if the window is realized and resizeable
4566
4567         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
4568         typo so that setting gravity works
4569
4570         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
4571         allocation if auto_shrink is on, even if the default size
4572         has not changed.
4573
4574         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
4575         g_return_if_fail
4576
4577 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
4578
4579         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
4580         reordering/sorting work.  Now pretty much works.
4581
4582         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
4583         reorder mostly work.  Still need to get the parity correct.
4584
4585         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
4586         signal, so I can listen for the sort_column_changed signal so I
4587         can change my "sort_indicator" property.  Cool.
4588
4589 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
4590
4591         [ Patch from Havoc Pennington, hp@redhat.com ]
4592
4593         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
4594         Add functions gdk_window_begin_resize_drag/begin_move_drag
4595         to start resizing or moving a toplevel window. This
4596         is done either using the _NET_WM_MOVERESIZE protocol,
4597         or, if that isn't present, by emulation.
4598
4599         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
4600         to export the above to GTK+-land.
4601
4602         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
4603         
4604         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
4605         Move this function into gdkwindow, since we need it
4606         when implementing fallback resizing.
4607
4608         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
4609         Fix typo when setting gravity.
4610
4611         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
4612         Add an optional (but on by default) resize grip for resizing 
4613         the parent window.
4614
4615 01-03-29  Alexander Larsson  <alexl@redhat.com>
4616
4617         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
4618         Don't return TRUE from the event handler, that blocks all
4619         event signals on the tooltip widget. Now you can press buttons
4620         in toolbars again.
4621
4622 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
4623
4624         * gtk/testtext.c (create_buffer): Add missing NULL on
4625         valist.
4626
4627         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
4628         c-n-p problem with INCONSISTENT property.
4629
4630         [ Patch from Havoc Pennington  <hp@redhat.com> ]
4631
4632         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
4633         hook.
4634
4635         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
4636         signal as a hook for extending the default popup menu
4637
4638         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
4639         use radio menu items for the input method menuitems
4640
4641         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
4642         inserted unicode from Ctrl-Shift-hex input method
4643
4644         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
4645         validatation here, already done at GtkTextBuffer level.
4646
4647         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
4648         popup_menu run action signal and Shift+F10 and Menu keybindings.
4649
4650         * gtk/gtkentry.c: implement a default handler for popup_menu
4651
4652         * gtk/gtktextview.c: implement a default handler for popup_menu
4653
4654         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
4655         from a key event
4656         
4657         * gtk/gtklabel.c: remove "trailer" cruft
4658
4659 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
4660
4661         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
4662         handle reordering of trees.  Seems to mostly work w/ the exception
4663         of the parity flag.
4664
4665         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
4666         signal.
4667
4668 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
4669
4670         * gtk/gtkwidget.h: c++ fixes.
4671
4672 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
4673
4674         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
4675         memory.
4676
4677 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
4678
4679         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
4680         Nils Barth fixing event return values. (#51041)
4681
4682         * gtk/gtkwidget.c: Fix some return values for default
4683         functions.
4684
4685         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
4686         return values for trough_keys functions.
4687
4688         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
4689         value for add_accelerator (shoudl have been a void
4690         return.)
4691
4692         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
4693         Fix return type of EVENT.
4694
4695         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
4696         signal return a boolean.
4697
4698 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
4699
4700         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
4701         reordered signal.
4702
4703         * tests/testtreesort.c (main): fix spelling.
4704
4705 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
4706
4707         * gtk/gtkliststore.c: More work on implementing sortable
4708         interface.
4709
4710 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
4711
4712         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
4713         reference the widgets in the resulting list. (#11821)
4714         This makes this consistent with gtk_container_children.
4715
4716         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
4717         uses of gtk_window_list_toplevels.
4718
4719 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
4720
4721         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
4722         a virtual function to set whether the IM context should use 
4723         the preedit string. (#51922)
4724         
4725 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
4726
4727         * gdk/gdkpango.h: Remove stale FIXME comment.
4728
4729 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
4730
4731         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
4732         Fixed bug that returned NULL if a filename was selected.
4733
4734 2001-03-24  Havoc Pennington  <hp@pobox.com>
4735
4736         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
4737         to contain the word "theme"
4738
4739 2001-03-24  Havoc Pennington  <hp@pobox.com>
4740
4741         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
4742         slower but finer-grained
4743         (gtk_hsv_focus): get initial focus on the ring or triangle 
4744         according to tab direction
4745
4746         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
4747
4748 2001-03-23  Havoc Pennington  <hp@pobox.com>
4749
4750         * gtk/gtkhsv.c: make this somewhat key-navigable
4751
4752         * gtk/gtkfontsel.c: mnemonics
4753
4754         * gtk/gtkgamma.c: mnemonics
4755
4756         * gtk/gtkcolorsel.c: add mnemonics to labels
4757
4758 2001-03-22  Havoc Pennington  <hp@pobox.com>
4759
4760         Applied big patch from Seth Lytle to fix event handler return
4761         values, slightly modified.
4762
4763         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
4764         handled.
4765         (gtk_calendar_key_press): return TRUE for GDK_space triggers
4766         select_day
4767
4768         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
4769         (gtk_clist_button_release): return TRUE if handled
4770
4771         * gtk/gtkcolorsel.c (mouse_release):
4772         (palette_activate): 
4773         (palette_press): 
4774         (palette_new): 
4775         (mouse_press): 
4776         (get_screen_color): 
4777         fixed return type (void to gboolean), return TRUE,
4778         added GTK_SIGNAL_FUNC cast
4779
4780         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
4781         (void to gboolean), and return TRUE
4782         (gtk_combo_button_release): changed return value to TRUE after
4783         gtk_grab_add on combo->popwin
4784
4785         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
4786         collapse or expand
4787
4788         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
4789         button/motion
4790
4791         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
4792         press/release and motion that trigger act
4793
4794         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
4795
4796         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
4797         for GDK_Return
4798         
4799         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
4800         (gtk_list_button_release): return TRUE if selection
4801
4802         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
4803         press
4804
4805         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
4806         (gtk_menu_shell_button_release): chain parent_menu_shell retval
4807
4808         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
4809         nothing triggered
4810         (gtk_notebook_button_release): return TRUE if we do anything
4811
4812         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
4813         (gtk_spin_button_button_release): return TRUE or chained retval
4814
4815         * gtk/gtktext.c (gtk_text_button_press): 
4816         (gtk_text_button_release): return TRUE
4817         (gtk_text_key_press): remove redundant retval code
4818         
4819         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
4820         and sensitive
4821         (gtk_tree_item_subtree_button_click): changed type to gint, and return
4822         TRUE if sensitive
4823
4824         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
4825         return TRUE
4826
4827 2001-03-23  Havoc Pennington  <hp@redhat.com>
4828
4829         * gtk/testgtk.c: fix warnings
4830
4831         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
4832
4833         * gtk/gtktextview.c: fix warnings
4834
4835         * gtk/gtktext.c (find_cursor_at_line): fix warning
4836
4837         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
4838
4839         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
4840         of this function
4841
4842         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
4843         fix warning
4844
4845         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
4846
4847         * gtk/gtkfontsel.c: fix warning
4848
4849         * gtk/gtkcolorsel.c: fix warnings
4850
4851 2001-03-23  Havoc Pennington  <hp@redhat.com>
4852
4853         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
4854
4855         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
4856
4857         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
4858         and deprecated gtk_check_menu_item_set_show_toggle().
4859         
4860         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
4861
4862         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
4863
4864         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
4865
4866 2001-03-23  Havoc Pennington  <hp@redhat.com>
4867
4868         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
4869         some docs
4870
4871 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
4872
4873         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
4874         this.
4875
4876         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
4877         set_cell to set_value
4878
4879         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
4880         set_cell to set_value
4881
4882 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
4883
4884         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4885         fix braino.
4886         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
4887         support.
4888
4889         * gtk/gtktreeview.c: Addition of initial sortable support.
4890
4891         * gtk/gtktreestore.c: Addition of initial sortable support.
4892
4893         * gtk/gtkliststore.c: Addition of initial sortable support.
4894
4895         * gtk/gtkmarshal.list: yet another marshaller.
4896
4897         * gtk/gtktreedatallist.[ch]: shared code between the store models
4898         for handling sorting headers.
4899
4900 2001-03-22  Havoc Pennington  <hp@redhat.com>
4901
4902         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
4903         (gtk_container_unset_focus_chain): Add ability to override the 
4904         focus chain for a container explicitly
4905
4906 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
4907
4908         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
4909         added PROP_MNEMONIC_WIDGET.
4910
4911         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
4912         (gtk_window_remove_mnemonic): 
4913         (gtk_window_add_mnemonic): fixed assertions.
4914         (gtk_window_activate_mnemonic): constrain modifier checks to those
4915         permitted by gtk_accelerator_get_default_mod_mask().
4916         got rid of gtk_window_get_default_accel_group().
4917
4918         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
4919         activatable widgets either by focussing or a warning.
4920         added a signal accumulator to ::activate_mnemonic which stops the
4921         emission once a handler returned TRUE.
4922
4923 2001-03-22  Havoc Pennington  <hp@pobox.com>
4924
4925         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
4926         the stock item label
4927
4928         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
4929
4930         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
4931
4932         * demos/gtk-demo/*.c: Add mnemonics all over the place
4933
4934         * gtk/gtklabel.h: mark parse_uline deprecated
4935
4936 2001-03-21  Alexander Larsson  <alexl@redhat.com>
4937
4938         * gtk/gtkitemfactory.[ch]:
4939         Add support for stock and normal imagemenuitems.
4940         
4941         * gtk/testgtk.c:
4942         Add some tests for mnemonics, stock toolbars, stock
4943         and image menuitems in itemfactory and gdk_window_scroll.
4944
4945 2001-03-21  Alexander Larsson  <alexl@redhat.com>
4946
4947         * gtk/gtkbutton.[ch]:
4948         * gtk/gtkdialog.c:
4949         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
4950         removed accel_group argument. Renamed gtk_button_new_accel() to
4951         gtk_button_new_with_mnemonic() and removed accel_group argument.
4952
4953         * gtk/gtkcheckbutton.[ch]:
4954         New function gtk_check_button_new_with_mnemonic().
4955
4956         * gtk/gtkentry.c:
4957         Override activate_mnemonic and just grab focus.
4958
4959         * gtk/gtkitemfactory.c:
4960         Don't add menu uline accel group, instead use mnemonics support.
4961
4962         * gtk/gtklabel.[ch]:
4963         New support for mnemonics.
4964
4965         * gtk/gtkmarshal.list:
4966         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
4967
4968         * gtk/gtkmenu.[c]:
4969         * gtkmenushell.c:
4970         Use mnemonics instead of accel groups for uline
4971         support in menu items.
4972         Removed gtk_menu_get_uline_accel_group() and
4973         gtk_menu_ensure_uline_accel_group().
4974
4975         * gtk/gtkmenuitem.c:
4976         Override activate_mnemonic to handle switching between
4977         menu items if there are collisions.
4978         
4979         * gtk/gtknotebook.c:
4980         Connect to activate_mnemonic on the tab_label, so that
4981         activating it switches to that notebook page.
4982
4983         * gtk/gtkwidget.[ch]:
4984         Add activate_mnemonic signal. New function
4985         gtk_widget_activate_mnemonic() to emit it.
4986         Default implementation does activate/grab_focus.
4987
4988         * gtk/gtkwindow.[ch]:
4989         Add support for mnemonics in windows.
4990         New functions:
4991         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
4992         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
4993
4994         * gtk/testgtk.c:
4995         Update to function name changes.
4996         
4997 2001-03-21  Alexander Larsson  <alexl@redhat.com>
4998
4999         * gtk/gtkimagemenuitem.[c]:
5000         Add gtk_image_menu_item_new_from_stock()
5001
5002 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
5003
5004         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5005         Fix buglet in meeting.
5006
5007 2001-03-19  Havoc Pennington  <hp@redhat.com>
5008
5009         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
5010         add a bunch of accessor functions. This is because we have
5011         reasonable expectations of extending what fields it contains in
5012         the future.
5013
5014         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
5015         changes
5016
5017         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
5018         GtkIconSource   
5019
5020 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
5021
5022         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
5023         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
5024
5025         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
5026           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
5027           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
5028           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
5029         Change float to double everywhere with the exception of 0<->1.0 alignment
5030         and GtkCurve.
5031
5032 2001-03-19  Tor Lillqvist  <tml@iki.fi>
5033
5034         * gdk/win32/gdkdrawable-win32.c
5035         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
5036         output.
5037
5038         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
5039         gdkwin32.h.
5040
5041 2001-03-18  Tor Lillqvist  <tml@iki.fi>
5042
5043         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
5044         print_event_state, print_event): Use preprocessor macro to make
5045         code more compact. Print also GDK_WINDOW_STATE events.
5046         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
5047         
5048         * gtk/gtk.def
5049         * gtk/makefile.mingw.in: Update.
5050
5051         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
5052         to catch also Cygwin.
5053
5054 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
5055
5056         * gtk/gtkspinbutton.[hc]: added rc-style argument
5057         GtkSpinButton::shadow_type.
5058         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
5059         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
5060         rc-style settings.
5061
5062         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
5063
5064         * gtk/gtkwidget.c: quark cleanups.
5065
5066         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
5067         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
5068         to create_rc_style() (we don't do cloning in standard OO sense).
5069         added per rc style properties.
5070         
5071         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
5072         property values and for caching those. some cleanups.
5073         
5074         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
5075         
5076         * gtk/gtksettings.[hc]: new file for global rc-file properties
5077         (at least currently, should get extended to support X properties
5078         and other communication mechanisms).
5079         
5080         * gtk/gtkwidget.[hc]: added style property support:
5081         (gtk_widget_class_install_style_property_parser): install style
5082         property pspec with parser function for rc-file values other
5083         than LONG, DOUBLE or STRING.
5084         (gtk_widget_class_install_style_property): same as above without
5085         parser (parsers are going to be needed quite infrequently).
5086         (gtk_widget_style_get_property): retrive style property value.
5087         (gtk_widget_style_get_valist): same as above with varargs support,
5088         has NOCOPY semantics.
5089         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
5090
5091 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
5092
5093         * demos/gtk-demo/main.c (row_activated_cb): modified to use
5094         "row_activated" signal.
5095
5096         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
5097         stupidity.  Lets actually pass in the row with this signal...
5098
5099 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
5100
5101         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
5102
5103         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
5104
5105         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
5106         everything into the ::destroy function, and freed a lot more.
5107
5108 2001-03-16  Havoc Pennington  <hp@redhat.com>
5109
5110         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
5111         instead of gint16, to avoid overflow issues, since sizes > 16-bit
5112         are now allowed.
5113
5114 2001-03-16  Havoc Pennington  <hp@redhat.com>
5115
5116         * Applied patch from Nils Barth (bug # 51041) to 
5117         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
5118         in various places.
5119
5120 2001-03-15  Havoc Pennington  <hp@redhat.com>
5121         
5122         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
5123         for properties to set on the tag.
5124
5125         * gtk/testtext.c: fixups to reflect create_tag change
5126         
5127         * gtk/gtktexttag.c (gtk_text_tag_set_property):
5128         background/foreground stipple are objects, not boxed.
5129
5130         * demos/gtk-demo/textview.c: intellihancing
5131
5132 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5133
5134         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
5135         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
5136
5137 2001-03-16  Alexander Larsson  <alexl@redhat.com>
5138
5139         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
5140         Fix sign error with queued region translations.
5141
5142 2001-03-15  HideToshi Tajima  <tajima@happy>
5143
5144         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
5145         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
5146         * gtk/gtkentry.c (update_im_cursor_location): 
5147         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
5148         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
5149         set_cursor_pos to set_cursor_location in GtkInputContext class
5150
5151 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
5152
5153         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
5154         the location of the cell relative to its area.
5155         * gtk/gtkcell*: modified for above change
5156         * gtk/gtktreeview.c: modified for above change.
5157
5158 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
5159
5160         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
5161          (gtk_tree_view_finalize): actually unref the model.  Thanks to
5162         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
5163
5164 2001-03-14  Havoc Pennington  <hp@redhat.com>
5165
5166         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
5167         
5168         * gtk/gtk.h: remove gtkdata.h
5169
5170         * gtk/Makefile.am: remove gtkdata
5171         
5172         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
5173         not "disconnect" on the adjustments.
5174         
5175         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
5176         GtkData
5177
5178         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
5179         not GtkData
5180
5181         * configure.in: handle case where X render exists, but Pango lacks
5182         Xft support.
5183
5184 2001-03-15 Alexander Larsson  <alexl@redhat.com>
5185
5186         * gtk/gtktoolbar.[ch]:
5187         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
5188         to add stock items to toolbars.
5189
5190         * gtk/Makefile.am:
5191         Remove ../gdk/gdkim.h from gdk_headers.
5192
5193 2001-03-15  Sven Neumann  <sven@gimp.org>
5194
5195         * gdk/gdkim.h: removed
5196         
5197         * gdk/gdkprivate.h
5198         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
5199
5200 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
5201
5202         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
5203         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
5204         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
5205         set_cursor_pos() virtual method
5206
5207         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
5208         (gtk_im_context_xim_set_cursor_pos): add implementation for
5209         set_cursor_pos() method
5210
5211         * gtk/gtkentry.c (recompute_idle_func): set current cursor
5212         position to input methods
5213
5214 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
5215
5216         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
5217         code a lot.
5218
5219         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
5220         g_mem_chunk.
5221         (_gtk_tree_data_list_alloc): use g_mem_chunk.
5222         (_gtk_tree_data_list_node_to_value): Fix to switch on
5223         G_TYPE_FUNDAMENTAL.
5224         (_gtk_tree_data_list_value_to_node): Fix to switch on
5225         G_TYPE_FUNDAMENTAL.
5226         (_gtk_tree_data_list_node_copy): Fix to switch on
5227         G_TYPE_FUNDAMENTAL.
5228
5229 2001-03-12  Havoc Pennington  <hp@redhat.com>
5230
5231         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
5232         to convert to new property API. Also, change default_width and
5233         default_height get_property to return 0 as the flag value for
5234         "unset"; -1 is not a valid value for these fields.
5235
5236 2001-03-12  Havoc Pennington  <hp@redhat.com>
5237
5238         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
5239         enum with registration for icon sizes, instead of strings.
5240
5241         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
5242         gtkwidget.c: Fix to reflect GtkIconSize
5243         
5244 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5245
5246         Make GtkFB compile and link.
5247         
5248         * gdk/linux-fb/gdkdrawable-fb2.c:
5249         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5250         
5251         * gdk/linux-fb/gdkwindow-fb.c:
5252         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5253         Added gdk_window_shape_combine_region.
5254         Added assorted placeholders for unimplemented new GdkWindow API calls.
5255
5256 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5257
5258         * gtk/gtkfilesel.c:
5259         Add more test when converting filenames from/to utf-8.
5260         Don't allow entering text in the filename entry which isn't allowed in
5261         a filename. Just beep instead.
5262
5263 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5264
5265         * gtk/gtkclist.c:
5266         Scroll using gdk_window_scroll(). Don't wait for exposes.
5267         Move the column headers in an order that makes them flash less.
5268
5269 2001-03-10  Hans Breuer  <hans@breuer.org>
5270
5271         * gdk/gdk.def : updated
5272
5273         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
5274         to offseting the clip_mask at the right place
5275
5276         * gdk/win32/gdkwindow-win32.c : don't create background brushes
5277         for all the gdkClasses, especially not for the input_only case.
5278         Otherwise flickering wont be avoidable, because we don't get
5279         WM_ERASEBKGND message for these windows.
5280
5281         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
5282         and fixed massive redraw problems apparently triggered by Alexanders 
5283         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
5284         but it seems to work quite well :-)
5285
5286         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
5287         prototype
5288
5289 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
5290
5291         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
5292         (gtk_list_store_set_cell): Fix a stupid typo.
5293
5294 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
5295
5296         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
5297         select_all not work if you're in SINGLE mode (it doesn't make that
5298         much sense, anyway.)
5299
5300         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
5301         handle types more sanely.
5302         (_gtk_tree_data_list_value_to_node): handle types more sanely.
5303         (_gtk_tree_data_list_node_copy): handle types more sanely.
5304
5305         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
5306         GValue better. Converts the type as well.
5307
5308         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
5309         GValue better. Converts the type as well.
5310
5311 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
5312
5313         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
5314         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
5315         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
5316         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
5317
5318         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
5319         gdk_im/gdk_ic.
5320
5321 2001-03-09  Hans Breuer  <hans@breuer.org>
5322
5323         * gdk/gdk.def : updated
5324
5325         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
5326         for their palette
5327
5328         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
5329         removing
5330
5331         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
5332         removing and implemented Havoc's GdkWindow state functions; 
5333         stick/unstick only as no-op, cause I don't know how to emulate 
5334         on win32 ...
5335
5336         * gtk/gtk.def : updated
5337
5338         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
5339
5340         * gtk/gtktypeutils.c : #include <string.h>
5341
5342         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
5343
5344 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
5345
5346         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
5347         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
5348         not a boxed.
5349
5350 2001-03-09  Alexander Larsson  <alexl@redhat.com>
5351
5352         * docs/Changes-2.0.txt:
5353         Document expose event->region change and that gtk_widget_event
5354         doesn't allow passing expose events.
5355
5356         * gdk/gdkevents.h:
5357         Add region to expose event.
5358         
5359         * gdk/gdkevents.c:
5360         Handle event->region in gdk_event_copy() and gdk_event_free().
5361
5362         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
5363         Generate expose_event->region when creating expose events.
5364
5365         * gdk/x11/gdkevents-x11.c:
5366         Generate expose events with regions when translating X events.
5367
5368         * gtk/gtkcontainer.[ch]:
5369         Default expose handler that propagates expose events to NO_WINDOW
5370         children. New function gtk_container_propagate_expose()
5371
5372         * gtk/gtkwidget.[ch]:
5373         Moved gtk_widget_event implementation to gtk_widget_event_internal.
5374         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
5375         expose events. New function gtk_widget_send_expose() to send expose
5376         events. New function gtk_widget_region_intersect() to calculate
5377         window/region intersections.
5378         
5379         * gtk/gtkmain.c (gtk_main_do_event):
5380         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
5381         Use gtk_widget_send_expose() to send expose events.
5382         
5383         * gtk/gtkbin.c:
5384         * gtk/gtkbox.c:
5385         * gtk/gtkfixed.c:
5386         * gtk/gtkimagemenuitem.c:
5387         * gtk/gtklist.c:
5388         * gtk/gtkpacker.c:
5389         * gtk/gtktable.c:
5390         * gtk/gtktree.c:
5391         Remove expose handler, using the default container implementation
5392         instead.
5393         
5394         * gtk/gtkbutton.c:
5395         * gtk/gtkcheckbutton.c:
5396         * gtk/gtkeventbox.c:
5397         * gtk/gtkfixed.c:
5398         * gtk/gtkhandlebox.c:
5399         * gtk/gtklayout.c:
5400         * gtk/gtklistitem.c:
5401         * gtk/gtkmenu.c:
5402         * gtk/gtkmenubar.c:
5403         * gtk/gtkmenuitem.c:
5404         * gtk/gtknotebook.c:
5405         * gtk/gtkoptionmenu.c:
5406         * gtk/gtkpaned.c:
5407         * gtk/gtkscrolledwindow.c:
5408         * gtk/gtktogglebutton.c:
5409         * gtk/gtktoolbar.c:
5410         * gtk/gtktreeitem.c:
5411         * gtk/gtkviewport.c:
5412         Chain expose handler to parent class handler. Use
5413         gtk_container_propagate_expose() to propagate exposes.
5414
5415         * gtk/gtkclist.c (check_exposures):
5416         * gtk/gtktext.c (process_exposes):
5417         Use gtk_widget_send_expose instead of gtk_widget_event.
5418
5419 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
5420
5421         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
5422
5423 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
5424
5425         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
5426         unref the nodes.   Fixes bug #50058.
5427
5428         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
5429         "::ref_iter" to "::ref_node".
5430         (gtk_tree_model_unref_node): change "::unref_iter" to
5431         "::unref_node". Fixes bug #50064.
5432
5433 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
5434
5435         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
5436         support for invisible cells.
5437          (gtk_tree_view_bin_expose): ditto
5438
5439 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
5440
5441         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
5442         on gobjects.
5443
5444         * tests/testtreefocus.c (main): New test file.
5445
5446         * tests/testtreeview.c: update to latest glib changes.
5447
5448         * tests/testtreecolumns.c: update to latest glib changes.
5449
5450 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
5451
5452         * gtk/testgtk.c: re-enabled event watcher emission hooks.
5453
5454 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
5455
5456         * *.c: added accumulator data argument to g_signal_newc()
5457         functions.
5458
5459         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
5460         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
5461         * gtk/treestoretest.c (make_window):
5462         s/g_signal_connect/g_signal_connectc/.
5463
5464         * gtk/gtktextbuffer.c: completed signal arg fixups,
5465         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
5466
5467 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
5468
5469         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
5470         G_CONST_RETURN.
5471
5472         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
5473         ::hierarchy-changed signal when a widget changes
5474         from anchored to unanchored or vice versa.
5475         (anchored means 
5476          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
5477         Use a private flag to keep track of this efficiently.
5478
5479 2001-03-07  Havoc Pennington  <hp@redhat.com>
5480
5481         * gtk/testgtk.c (create_spins): uglify so that size request gets
5482         tested.
5483
5484         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
5485         request on values for upper/lower, completes #6152
5486
5487 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
5488
5489         * Makefile.am: Remove gtk-config-2.0 again.
5490         (Grrrr, pkg-config. And stops make loops.)
5491
5492 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
5493
5494         * gtk/gtksignal.[hc]: removed old emission hook API.
5495         
5496         * docs/Changes-2.0.txt: fixed sections.
5497         
5498         * gtk/gtktextbuffer.c: signal arg fixups.
5499
5500 2001-03-07  Havoc Pennington  <hp@redhat.com>
5501
5502         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
5503
5504         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
5505         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
5506         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
5507         validation and the redraw which is higher priority than the
5508         validation.
5509
5510 2001-03-07  Havoc Pennington  <hp@redhat.com>
5511
5512         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
5513         (gtk_entry_set_property): remove trailer
5514
5515         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
5516         (gtk_entry_get_width_chars): new functions, to set size request to 
5517         a given number of characters
5518
5519         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
5520
5521         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
5522         (gtk_dialog_get_has_separator): new function
5523         (run_delete_handler): fix to not emit "response" signal
5524         because we already did in the delete event handler installed
5525         at dialog creation time.
5526         
5527         * gtk/gtkdialog.h: add a has_separator property,
5528         add GTK_DIALOG_NO_SEPARATOR flag
5529
5530 2001-03-07  Havoc Pennington  <hp@redhat.com>
5531
5532         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
5533         off decorations for a window.
5534
5535         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
5536         changes
5537
5538         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
5539         to get location of PangoLayout inside the label, closes #51198
5540
5541         * gtk/testgtk.c (create_bbox): fix up button box usage
5542
5543         * gtk/testcalendar.c (create_calendar): fix up button box usage
5544
5545         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
5546
5547         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
5548
5549         * gtk/gtkhbbox.h: deprecations
5550
5551         * gtk/gtkvbbox.h: deprecations
5552
5553         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
5554         emulate deprecated gtk_button_box_get_spacing
5555
5556         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
5557         the "set global default" functions
5558         (struct _GtkButtonBox): remove "spacing" field, use the one from 
5559         GtkBox base class
5560
5561         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
5562
5563         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
5564         render the icon, return the missing image icon.
5565
5566         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
5567         image icon if the load fails.   
5568
5569         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
5570         when no image is found; should be the Netscape "missing image"
5571         icon eventually but for now is a random image
5572
5573         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
5574         role for the session manager
5575
5576         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
5577
5578         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
5579         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
5580
5581         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
5582
5583 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
5584
5585         * gtk/*.c: marshaller fixes.
5586         
5587         * gtk/gtkmarshal.list: extreme cleanup.
5588
5589         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
5590         param spec for now.
5591
5592         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
5593         where appliable.
5594
5595         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
5596         special cased autogenerated boxed types from gtktypebuiltins_ids.c
5597         which are not reference counted:
5598         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
5599         PangoFontDescription, GtkTreeIter and GtkTreePath.
5600
5601 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
5602
5603         * gtk/gtktreeselection.h: 
5604         * gtk/gtktreemodel.c:
5605         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
5606         file should be included directly, and gobject/gmarshal.h
5607         as well as gtk/gtkmarshal.h even can't be included directly.
5608
5609         * Makefile.am: grr, install gtk-config-2.0.
5610
5611         * gtk/testgtk.c:
5612         * gtk/simple.c:
5613         * gtk/gtkmenu.c:
5614         * gtk/gtkitemfactory.c: use g_object_connect() instead of
5615         passing "*signal*::*" args to gtk_widget_set().
5616         
5617         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
5618         
5619         * gtk/*.c: removed trailer arg from property setters and getters.
5620         macro fixups.
5621
5622 2001-03-07  Alexander Larsson  <alexl@redhat.com>
5623
5624         * gtk/gtklabel.c (set_markup): Removed warning
5625
5626 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
5627
5628         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
5629         field to allow you to hide cell renderers.
5630
5631         * gtk/gtkcellrenderer.c: Add support for invisible cells.
5632
5633         * gtk/gtktreeview.c: Add support for invisible cells.
5634
5635 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
5636
5637         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
5638         Add "clicked" signal back to columns.
5639
5640         * ChangeLog: remove conflict markers.
5641
5642 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
5643
5644         * gtk/gtkbutton.c: Add animation of activation by, on 
5645         activate, pressing the button, and adding a timeout that 
5646         releases the button after 250ms or on key release and
5647         emits ::clicked. (#51501)
5648
5649         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
5650         action area, we connect to ::clicked instead of ::activate
5651         so the dialog stays up through the animation.
5652
5653 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
5654
5655         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
5656         check the ignore_enter flag for the menu shell that
5657         the item is actually a child of, not for attached
5658         submenus. (#51536)
5659
5660 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
5661
5662         * gtk/gtkmain.c (gtk_propagate_event): Only do special
5663         special key-press grab handling for widgets within
5664         GtkWindows. Otherwise, fall through to normal case.
5665
5666         This prevents key events being sent twice to GtkInvisible
5667         widgets, which can cause all sorts of mischief.
5668
5669 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
5670
5671         * gtk/gtkmain.c (gtk_propagate_event): When a grab
5672         widget is in effect, give the grab widget a first
5673         crack at KEY_PRESS/RELEASE events. (#424)
5674
5675 2001-03-06  James Henstridge  <james@daa.com.au>
5676
5677         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
5678         offset for the window_state_event to point at window_state_event
5679         rather than no_expose_event.
5680
5681 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
5682
5683         * gtk/gtkimmodule.h: fix busted /* comment */
5684
5685 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
5686
5687         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
5688         object properties.
5689
5690 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
5691
5692         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
5693         add object properties.
5694
5695         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
5696         to add object properties.
5697
5698         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
5699         object properties.
5700
5701         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
5702         add object properties.
5703
5704         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
5705         object properties.
5706
5707 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
5708
5709         * gtk/gtktreemodel.c: renamed "child_toggled" to
5710         "has_child_toggled".
5711
5712         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
5713         handle new signal name.
5714
5715         * gtk/gtktreestore.c: Updated to handle new signal name.
5716         * gtk/gtklisttore.c: Updated to handle new signal name.
5717         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
5718
5719 2001-03-05  Alexander Larsson  <alexl@redhat.com>
5720
5721         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
5722         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
5723
5724 2001-03-05  Michael Natterer  <mitch@gimp.org>
5725
5726         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
5727         pixbuf-engine coincidentially also failed to make one of it's
5728         parent_class pointers static, causing overwriting of GtkLabel's
5729         parent_class pointer in pixbuf_style_class_init().
5730         (Will commit the fix to the pixbuf-engine too).
5731
5732 2001-03-05  Alexander Larsson  <alexl@redhat.com>
5733
5734         * gdk/gdkwindow.h:
5735         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
5736         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
5737         gdk_window_set_icon_list for net wmspec functionality.
5738
5739         * gdk/x11/gdkwindow-x11.c:
5740         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
5741         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
5742         gdk_window_set_icon_list.
5743         Added gdk_wmspec_change_state helper function and used it in the code.
5744         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
5745
5746         * gtk/gtkdialog.c (gtk_dialog_init):
5747         Set GDK_WINDOW_TYPE_HINT_DIALOG.
5748
5749         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
5750         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
5751
5752         * gtk/gtkwindow.c:
5753         new function gtk_window_set_type_hint.
5754         On realize, set type hint and modal hint.
5755
5756         * gtk/gtkwindow.h:
5757         Added type_hint field and gtk_window_set_type_hint.
5758
5759 2001-03-05  Alexander Larsson  <alexl@redhat.com>
5760
5761         * gtk/gtklabel.[ch]:
5762         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
5763         New function gtk_label_get_accel_keyval () to get the underline accelerator
5764         of the label. Setting the label pattern overrides other attributes.
5765
5766 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
5767
5768         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
5769         Added missing initializers to gtk_rc_style_init().
5770
5771 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
5772
5773         * gtk/gtktextview.c: fixed bug #51097 about setting 
5774         gtk_text_view_set_border_window_size() if the widget is 
5775         already realized.
5776
5777 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
5778
5779         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
5780
5781         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
5782         comment. Won't do to have duplicated doc comments between
5783         the platform subdirs.
5784
5785 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
5786
5787         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
5788           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
5789
5790         Detectable auto-repeat - make a repeating key generate
5791         press/press/press/release instead of press/release pairs.
5792
5793         If we have Xkb and XkbSetDectableAutoRepeat supports
5794         that, we do it that way. Otherwise, when we get
5795         a release event, we check ahead with XPending to see
5796         if the next key is a KeyPress with the same keycode
5797         and timestamp. (Not 100% reliable, but pretty close.)
5798           
5799 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
5800         
5801         * gtk/gtkmain.c (gtk_propagate_event): Only do special
5802         special key-press grab handling for widgets within
5803         GtkWindows. Otherwise, fall through to normal case.
5804  
5805         This prevents key events being sent twice to GtkInvisible
5806         widgets, which can cause all sorts of mischief.
5807  
5808 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
5809  
5810         * gtk/gtkmain.c (gtk_propagate_event): When a grab
5811         widget is in effect, give the grab widget a first
5812         crack at KEY_PRESS/RELEASE events. (#424)
5813  
5814 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
5815
5816         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
5817         to extend the selection. (Roughly based on patch
5818         from Jay Cox, #50939)
5819
5820         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
5821         to properly handle previous GDK_BUTTON_PRESS. 
5822         (Patch from Jay Cox, #50938)
5823
5824         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
5825         '\0' back along with the deleted text. (#51148)
5826
5827 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
5828
5829         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
5830         the group when extracting it from the X keyboard event.
5831
5832         * modules/input/Makefile.am modules/input/imipa.c: 
5833         Simple module for entering IPA. (Do we need a 
5834         gtk-stupid-input-tricks CVS module?)
5835
5836 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
5837
5838         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
5839         const.
5840
5841         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
5842
5843         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
5844         is no focus widget for the dialog currently, grab the focus as well
5845         as the default.
5846
5847         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
5848         the action area's children to iterate through, not the
5849         dialog's children.
5850
5851 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
5852
5853         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
5854         Add plug-socket tests. (Won't work worth a darn until I commit
5855         the rest of the plug-socket changes, but no reason these
5856         can't go into CVS now.)
5857
5858 2001-03-02  Havoc Pennington  <hp@redhat.com>
5859
5860         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
5861         _gdk_region_get_xrectangles()
5862
5863         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
5864
5865         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
5866
5867         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
5868         function, contributed by Ron Steinke    
5869
5870         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
5871         gdk_net_wm_supports
5872
5873         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
5874         New function, contributed by Ron Steinke
5875
5876         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
5877         used to line up the text in the entry when using the entry for
5878         editable sheet cell hacks
5879
5880         * gtk/testgtk.c (create_entry): test the activate_default setting
5881         on GtkEntry
5882
5883         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
5884         cause the entry to activate the default button for a dialog when 
5885         activated
5886         (gtk_entry_get_activates_default): new function
5887
5888 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
5889
5890         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
5891         Hwang to move call to sync_selection() up a few lines
5892         to before the row list is modified, to fix crash when
5893         removing rows in the undo_selection list.
5894
5895         (Test case provided by Daniel Elstner:
5896
5897         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
5898
5899 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
5900
5901         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
5902         of tree->root_tree in parent_set rather than _map(), 
5903         fixing #50892 in a bit better manner.
5904
5905 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
5906
5907         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
5908
5909 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
5910
5911         * gtk/gtkstyle.c : Remove duplicate fwd decl for
5912         gtk_default_draw_shadow.
5913
5914 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
5915
5916         * gdk/gdkimage.c (gdk_image_new): Remove excess 
5917         warning, make warnings more verbose, treat a error
5918         in shmat as permanent, and don't try again.
5919         (#51163, Ed Randall.)
5920
5921 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
5922
5923         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
5924         delay for the first click before starting to scroll.
5925         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
5926
5927         * gtk/gtktext.c: GtkText should have I-beam cursor. 
5928         (based on gtk-enf-990513-1.patch, Eric Fisher.)
5929
5930 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
5931
5932         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
5933         cleanup to remove some references to unused
5934         ->xoffset, ->yoffset.
5935
5936 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
5937
5938         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
5939         mask. (#51039, fix from Martin Maierhofer)
5940
5941 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
5942
5943         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
5944         for unshifted + and shifted = for non-us keyboards.
5945         Make <Control>+ and <Control>- work as well as 
5946         <Control>KP_Plus, <Control>KP_Minus for recursive
5947         open/close.  (#2682, René Seindal)
5948
5949 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
5950
5951         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
5952         the active menu item before deactivating the menu,
5953         so gtk_menu_popdown doesn't change the history. (#50964)
5954         
5955 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
5956
5957         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
5958         draw lines with text_gc rather than black_gc.
5959         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
5960
5961 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
5962
5963         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
5964         Move handling of buttons fully in gtktreeviewcolumn.  This code is
5965         less interrelated then it was, but it still requires the
5966         GtkTreeView to map it.
5967
5968         * test/testtreecolumn.c: Now I can add a column to one view,
5969         remove it, add it to the another view, remove it, then re-add it
5970         to the first.  Nifty.
5971
5972 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
5973
5974         * docs/tutorial/gtk-tut.sgml: Minor corrections
5975
5976 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
5977
5978         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
5979         GtkRowReference.
5980
5981 2001-02-28  Havoc Pennington  <hp@redhat.com>
5982
5983         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
5984         draw_default
5985         (gtk_widget_draw_focus): remove this function; we could instead
5986         make it just gtk_widget_draw(), but in most cases I think the
5987         result would be broken user code, so think it's better to have
5988         that code not compile and get fixed
5989         (gtk_widget_draw_default): ditto
5990
5991         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
5992         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
5993         
5994         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
5995         widgets lose/get the default, instead of calling draw_default
5996         
5997         * docs/Changes-2.0.txt: note about all this
5998
5999         Then fixed every widget in GTK, I won't list all the filenames.
6000
6001 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
6002
6003         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
6004         _gtk_tree_row_reference_deleted.
6005         (inserted_callback): Proxy out to
6006         _gtk_tree_row_reference_inserted.
6007         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
6008         get around signal emission ordering problem.
6009
6010         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
6011         fix to work with SINGLE 
6012         (_gtk_tree_selection_internal_select_node): Major sanitization on
6013         selections.  SINGLE now seems to work.
6014
6015         * tests/Makefile.am: add testtreecolumn.c:
6016
6017         * tests/testtreecolumn.c: New test.  Mostly points out selection
6018         bugs currently, but will test columns later.
6019
6020         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
6021         selection bug.  I hate touching this code -- it's scary.
6022
6023 2001-02-26  Havoc Pennington  <hp@redhat.com>
6024
6025         * gtk/testgtk.c: test the window state stuff
6026
6027         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
6028         window come to the user's attention as if it were just created
6029         (gtk_window_iconify): new function
6030         (gtk_window_deiconify): new function
6031         (gtk_window_stick): new function
6032         (gtk_window_unstick): new function
6033         (gtk_window_maximize): new function
6034         (gtk_window_unmaximize): new function
6035
6036         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
6037
6038         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
6039
6040         * gdk/x11/gdkevents-x11.c: create window state events when
6041         appropriate
6042         (gdk_wmspec_supported): new function
6043
6044         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
6045         iconification before showing the window
6046         (gdk_window_deiconify): new function
6047         (gdk_window_stick): new function
6048         (gdk_window_unstick): new function
6049         (gdk_window_maximize): new function
6050         (gdk_window_unmaximize): new function
6051
6052         * gdk/gdkwindow.c: store the window state in the window; 
6053         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
6054         window->mapped.
6055         (gdk_window_get_state): return the current window state
6056
6057         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
6058         (gdk_event_get_state): handle GDK_WINDOW_STATE
6059         (gdk_synthesize_window_state): function to create the window state
6060         events
6061
6062         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
6063         event, for changes to "window state" such as maximized, sticky, 
6064         etc.
6065         
6066         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
6067         focuses a window
6068
6069         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
6070         finds out if we support a given WM spec hint
6071
6072 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
6073
6074         * docs/faq/gtk-faq.sgml: New question re memory leaks.
6075
6076 2001-02-25  Hans Breuer  <hans@breuer.org>
6077
6078         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
6079         cause we want to loose those prototypes only in the latter case
6080
6081         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
6082         GdkPixmapImplWin32 because it itsn't derived from it. Use the
6083         impl member variable instead
6084
6085         * gtk/gtk.def : updated
6086
6087         * gtk/gtklist.c : 
6088         * gtk/gtkmenus.c : include <string.h> for memset ()
6089
6090         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
6091         for everthing built here, but for gtk-x.x.dll only. This solves
6092         problem of indifferent gtk type definitions
6093
6094 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
6095
6096         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
6097
6098 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
6099
6100         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
6101         column that is exposed.
6102
6103         (_gtk_tree_view_update_size): Changed name from set_size, and
6104         changed function to do more work, and not force people calling it
6105         to figure out the size.  Simplifies a lot of code elsewhere.
6106
6107 2001-02-23  Alexander Larsson  <alexl@redhat.com>
6108
6109         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
6110         return solid masks for xpms that have no transparent color.
6111         This makes the ..._create_from_xpm... API backwards
6112         compatible.
6113
6114 2001-02-23  Tor Lillqvist  <tml@iki.fi>
6115
6116         * README.win32: Update. Mention the gtk-1-3-win32-production
6117         branch.
6118
6119         * gdk/win32/bdfcursor.c: New file. A program that generates
6120         xcursors.h. Thanks to Stefan Ondrejicka.
6121
6122         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
6123         compact format.
6124
6125         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
6126
6127         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
6128         function, uses xcursors.h.
6129         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
6130         cursor from inline data instead of using LoadCursor() to generate
6131         it from a resource.
6132
6133         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
6134         event, must check the Windows message for mouse button state, as
6135         the GDK event state might not have been built if it is
6136         undelivered. Remove one goto.
6137
6138         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
6139         SetCursor() if the current cursor as returned by GetCursor() is
6140         the window's previous cursor. The ChildWindowFromPoint() test
6141         apparently didn't work correctly.
6142
6143         * gdk/win32/rc/*.cur: Remove.
6144
6145         * gdk/win32/rc/gdk.rc.in: Remove cursors.
6146
6147         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
6148
6149         * gtk/makefile.{mingw,msc}.in: Updates.
6150
6151 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
6152
6153         * gtk/gtktreemodel.h: add functions for signal emission.
6154
6155         * gtk/gtktreestore.c: move to use above functions instead of
6156         g_signal_emit.
6157
6158         * gtk/gtkliststore.c: ditto
6159
6160 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
6161
6162         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
6163         GObject instead of GtkObject.
6164
6165         * gtk/gtkliststore.c: ditto.
6166
6167         * gtk/gtktreemodelsort.c: ditto.
6168
6169         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
6170         GtkTreeModelIface, instead of in each model.
6171
6172 2001-02-21  Havoc Pennington  <hp@redhat.com>
6173
6174         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
6175         unbreak this function
6176
6177         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
6178         properties
6179
6180         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
6181         properties
6182
6183         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
6184         properties
6185
6186         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
6187         mean unset the max length
6188
6189 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
6190
6191         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
6192         Changed name to be set_cell_data_func to make it clear what
6193         the functino does.  Close bug #51069.
6194
6195 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
6196
6197         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
6198         have memory actually freed.  Keeps box running longer.
6199
6200 2001-02-21  Alexander Larsson  <alexl@redhat.com>
6201         
6202         * gtk/gtkseparatormenuitem.[ch]:
6203         Added new menu separator item. The drawing and size handling
6204         is still done in GtkMenuItem, but the API is a bit more sane.
6205         
6206         * gtk/Makefile.am:
6207         Add gtkseparatormenuitem.[ch].
6208
6209         * gtk/gtk.h:
6210         Add gtkseparatormenuitem.h.
6211         
6212         * gtk/gtkentry.c:
6213         * gtk/gtkmenufactory.c:
6214         * gtk/gtktextview.c:
6215         Use the new API for menu separators.
6216         
6217         * demos/gtk-demo/menus.c (create_menu):
6218         Add some GtkSeparatorMenuItem demo code.
6219
6220 2001-02-20  Havoc Pennington  <hp@redhat.com>
6221
6222         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
6223         Lee Mallabone
6224
6225         * gtk/gtkarrow.c: Convert to new property API, patch from 
6226         Lee Mallabone
6227
6228 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
6229
6230         * tests/testtreeview.c (toggled_callback): fix to reflect change
6231         in GtkTreeModelStore.
6232
6233 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
6234
6235         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
6236         function to create an icon set from a pixbuf.
6237
6238 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6239
6240         * gtk/gtkcellrenderertext.[ch]:
6241         Add a "markup" property.
6242
6243         * gtk/treestoretest.c:
6244         Use the markup property, remove some leftover stuff from
6245         GtkTreeModelMapping.
6246
6247 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6248
6249         * gtk/gtklabel.c (gtk_label_set_selectable):
6250         Queue a redraw if the selectable setting was changed.
6251
6252 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6253
6254         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
6255         Actually copy the whole gc, not just the public parts.
6256         
6257         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
6258         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
6259         labels.
6260
6261 2001-02-19  Havoc Pennington  <hp@pobox.com>
6262
6263         * gdk/gdkwindow.c: docs
6264
6265         * gdk/gdkrgb.c: docs
6266
6267         * gdk/gdkregion-generic.c: docs
6268
6269         * gdk/gdkgc.c (gdk_gc_set_values): docs
6270
6271         * gdk/gdkdraw.c: docs
6272
6273         * gdk/gdkdrawable.h: deprecate drawable get/set data
6274
6275 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
6276
6277         * demos/gtk-demo/dialog.c: Add simple new demo.
6278
6279 2001-02-19  Havoc Pennington  <hp@redhat.com>
6280
6281         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
6282         insert_child_anchor signal, bug #50245
6283
6284         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
6285         from create_child_anchor, so the anchor is passed in
6286
6287         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
6288         (_gtk_widget_segment_new): have the child anchor object passed in, 
6289         instead of creating it.
6290
6291         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
6292         to gtk_text_buffer_get_modified
6293
6294 2001-02-19  Havoc Pennington  <hp@redhat.com>
6295
6296         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
6297         changed GLib without fixing GTK
6298
6299         * gtk/gtkrange.h: Rename all the stupid implementation detail 
6300         functions to have an underscore in front. Most of them should 
6301         probably just go away, but for starters don't export them.
6302         Bug #50482
6303
6304 2001-02-19  Havoc Pennington  <hp@redhat.com>
6305
6306         * gdk/gdkcolor.h: test was backward, so deprecated functions were
6307         excluded by default
6308
6309         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
6310         clean up the old code a bit
6311
6312         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
6313         inconsistent state
6314
6315         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
6316         draw inconsistent state
6317
6318         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
6319         (create_menu): add inconsistent test
6320
6321         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
6322         new function
6323         (gtk_check_menu_item_get_inconsistent): new function
6324         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
6325         state (using etched in for now)
6326
6327         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
6328         draw inconsistent state
6329
6330         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
6331         function, used when the user has selected a range of stuff in
6332         different states
6333         (gtk_toggle_button_get_inconsistent): accessor for that
6334         (gtk_toggle_button_paint): draw inconsistent state (etched in?
6335         don't know what else to do)
6336
6337 2001-02-19  Hans Breuer <hans@breuer.org>
6338
6339         * gtk/gtk.def : updated exported symbols
6340
6341         * gtk/makefile.msc.in : updated
6342
6343         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
6344         a colormap, when invoked from testgtk::entry. I'm not sure where
6345         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
6346         avoids immediate crashing ...
6347
6348         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
6349         any objections ?
6350
6351         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
6352         0 parameter. At least msvc doesn't like macros with var args. 
6353         I simply removed the extra 0, was it a feature or a typo ?
6354
6355         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
6356         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
6357         because the value assignment to the internal struct wasn't working.
6358         I'm not absolutely sure. The problem could have been resolved by
6359         changing the "func" declartion in the struct, but was the pointer
6360         to the function pointer intended ?
6361
6362         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
6363
6364         * gdk/gdk.def : updated exported symbols
6365
6366         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
6367         only use SetDIBitsToDevice if there is a palette at the drawable
6368         and the image is GDK_VISUAL_PSEUDO_COLOR
6369
6370         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
6371
6372         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
6373
6374         * gdk/*/makefile.msc : updated
6375
6376 2001-02-19  Havoc Pennington  <hp@redhat.com>
6377
6378         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
6379         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
6380
6381         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
6382         (gdk_key_repeat_restore): nuke
6383
6384         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
6385         (gdk_init_check): no atexit func
6386
6387         * gdk/gdkrgb.h: mark some stuff deprecated
6388
6389         * gdk/gdkcolor.h: mark some stuff deprecated
6390         
6391         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
6392
6393         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
6394
6395 2001-02-16  Havoc Pennington  <hp@redhat.com>
6396
6397         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
6398         scroll steps.
6399
6400         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
6401         steps, and add Ctrl-arrow shortcuts for paging visually as with
6402         HScale, since Page Up and Page Down move logically.
6403
6404         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
6405         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
6406         
6407         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
6408         steps
6409         (gtk_range_scroll): handle the visual steps
6410
6411         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
6412         scroll steps
6413
6414         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
6415         steps, not the logical ones.
6416
6417         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
6418         (scroll_vertical): handle up/down steps
6419
6420 2001-02-19 Alexander Larsson  <alexl@redhat.com>
6421
6422         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
6423         Copy data and free data with free().
6424
6425         * gdk-pixbuf/gdk-pixbuf.c:
6426         * gdk-pixbuf/io-jpeg.c:
6427         * gdk-pixbuf/io-png.c:
6428         Use g_try_malloc/g_free instead malloc/free.
6429         
6430         * gdk-pixbuf/test-gdk-pixbuf.c:
6431         Must... initialize... gobject...
6432         
6433         * gdk-pixbuf/pixops/timescale.c:
6434         * gtk/gtkcalendar.c:
6435         Use g_malloc instead of malloc.
6436         
6437 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
6438
6439         * gtk/testgtkrc:
6440         Comment out property assignments, these don't work yet.
6441
6442 2001-02-17  Havoc Pennington  <hp@pobox.com>
6443
6444         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
6445         bit.
6446
6447 2001-02-17  Havoc Pennington  <hp@pobox.com>
6448
6449         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
6450         shadowed variables that had broken size request in some cases,
6451         leading to bogus tooltips (#50996)
6452
6453 2001-02-06  Jon K Hellan  <hellan@acm.org>
6454
6455         Implement fast browsing of tooltips, bug #50619
6456         
6457         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
6458         and last_popdown
6459         
6460         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
6461         use_sticky_delay and last_popdown.
6462         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
6463         time of popdown.
6464         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
6465         is NULL.
6466         (gtk_tooltips_recently_shown): New static function.  Return true
6467         if < sticky_delay has elapsed since last popdown.
6468         (gtk_tooltips_event_handler): Display window after sticky_delay
6469         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
6470         since last popdown.
6471         
6472 2001-02-17  Havoc Pennington  <hp@pobox.com>
6473
6474         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
6475         instead of (). #6394
6476
6477         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
6478         G_CONST_RETURN, make it return by reference, #50473
6479         
6480 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
6481
6482         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
6483         generated ENTER_NOTIFY event with 0, otherwise not explicitely
6484         setup fields contain garbage (e.g. subwindow, breaking
6485         gdk_drawable_ref() upon event copy).
6486         (gtk_menu_stop_navigating_submenu_cb): same here.
6487
6488         * gtk/gtklist.c (gtk_list_vertical_timeout): 
6489         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
6490         * gtk/gtkclist.c (vertical_timeout): 
6491         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
6492         default-zero-intialization for unions to memset(,0,), as unions are
6493         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
6494         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
6495
6496         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
6497         g_closure_sink() warning.
6498
6499         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
6500         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
6501         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
6502         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
6503         
6504 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
6505
6506         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
6507         gtk_*_store_get, and moved to GtkTreeModel.
6508
6509         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
6510
6511         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
6512
6513         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
6514
6515         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
6516         set the func.
6517
6518         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
6519         freeze/thaw notify between setting all the properties for a cell.
6520
6521         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
6522
6523 2001-02-15  Havoc Pennington  <hp@redhat.com>
6524
6525         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
6526         the X coordinates so they're with respect to the line, rather than 
6527         with respect to the layout.
6528
6529         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
6530         Mallabone
6531
6532         * gtk/testgtk.c (create_range_controls): add vscale tests, 
6533         and inverted test
6534
6535         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
6536         #50806
6537
6538         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
6539
6540         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
6541         gtk_text_iter_is_end
6542
6543         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
6544         rename gtk_text_buffer_get_end_iter
6545
6546         * gtk/testgtk.c (create_labels): Add test for selectable
6547
6548         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
6549         the selection stuff. This code is kind of broken since it doesn't 
6550         use the theme engine.
6551
6552         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
6553         fix infinite loop and y offset problem
6554         (gdk_draw_layout_line_with_colors): fix foreground color handling
6555
6556         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
6557         that makes the label selectable.
6558         
6559         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
6560         layout when the style is set, since fonts etc. could have changed.      
6561
6562 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
6563
6564         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
6565
6566         * gtk/gtktreemodelsimple.[ch]: removed.
6567
6568 2001-02-16  Alexander Larsson  <alexl@redhat.com>
6569
6570         * gtk/gtktreemodelmapping.[ch]:
6571         New files. Implement GtkTreeModelMapping.
6572         
6573         * gtk/Makefile.am:
6574         Add gtktreemodelmapping.[ch].
6575         
6576         * gtk/gtk.h:
6577         Add gtktreemodelmapping.h
6578
6579         * gtk/treestoretest.c:
6580         Test the GtkTreeModelMapping
6581
6582 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
6583
6584         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
6585         have a demo, we might as well pass in real values.  Thanks to
6586         clahey for pointing this out.
6587
6588 2001-02-14  Havoc Pennington  <hp@pobox.com>
6589
6590         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
6591         "static" to a private function
6592         (gtk_image_menu_item_class_init): remove destroy handler,
6593         add "image" object property
6594
6595 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
6596
6597         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
6598         Add a shortcut if the window and the current clip_region doesn't
6599         overlap. This is needed when there are a lot of windows in a
6600         window. The layout test in testgtk is a good test.
6601
6602         * gdk/linux-fb/gdkwindow-fb.c:
6603         Whitespace fix.
6604
6605 2001-02-13  Sven Neumann  <sven@convergence.de>
6606
6607         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
6608
6609 2001-02-13  Alexander Larsson  <alexl@redhat.com>
6610
6611         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
6612         Don't reference last_cursor if it is null. Fixes crash when rotating
6613         the screen before having moved the mouse.
6614
6615         * gdk/linux-fb/gdkcc-fb.c: Zapp!
6616
6617         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
6618
6619         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
6620         when using 90 or 270 degrees rotation.
6621
6622 2001-02-12  Havoc Pennington  <hp@pobox.com>
6623
6624         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
6625         it always set the foreground, even if we were only using
6626         a stipple.
6627         (gdk_draw_layout_line_with_colors): new function, allow
6628         override colors
6629         (gdk_draw_layout_with_colors): new function, allow override
6630         colors
6631         (gdk_pango_layout_line_get_clip_region): function to get the clip
6632         region for a logical text range
6633         (gdk_pango_layout_get_clip_region): get the clip region for a
6634         logical text range
6635
6636         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
6637         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
6638         the right number of arguments.
6639
6640         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
6641         enhance the function to check that node data corresponds to a 
6642         view still belonging to the tree.
6643
6644         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
6645         GtkTreePath
6646         (gtk_tree_view_inserted): ditto
6647         (gtk_tree_view_child_toggled): ditto
6648
6649         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
6650         simplify this code.
6651
6652         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
6653         a PangoAttrList
6654
6655         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
6656
6657         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
6658
6659         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
6660         size in the size request 
6661         (gtk_menu_bar_size_allocate): consider toggle size here
6662
6663         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
6664         that displays a widget in the toggle slot
6665
6666         * gtk/testgtk.c: test GtkImageMenuItem
6667
6668         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
6669         
6670         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
6671         request and allocation
6672
6673         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
6674
6675         * gtk/gtkcheckmenuitem.c
6676         (gtk_check_menu_item_toggle_size_request): ditto
6677         
6678 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
6679
6680         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
6681         reference.
6682
6683         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
6684         and refuse to initialize GTK+ if they fail.
6685
6686 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
6687
6688         * configure.in: Add check for gtk-doc version.
6689
6690 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
6691
6692         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
6693         where the xpad/ypad was only being used on one side!
6694
6695 2001-02-11  Tor Lillqvist  <tml@iki.fi>
6696
6697         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
6698         function, copied from X11 version.
6699
6700         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
6701         DestroyCursor failures. The reason for the problem (despite the
6702         inconsistent messages from GetLastError()) was that
6703         DestroyCursor() cannot be called while a cursor is set in a
6704         window. Set the new cursor first and then destroy the old one.
6705         Thanks to jpe@archaeopteryx.com.
6706
6707         * gdk/win32/gdkcc-win32.c: Remove.
6708
6709         * gdk/win32/Makefile.am: Remove from here, too.
6710         
6711         * gdk/gdk.def
6712         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
6713
6714         * gtk/gtk.def
6715         * gtk/makefile.mingw.in: Updates.
6716
6717 2001-02-08  Havoc Pennington  <hp@redhat.com>
6718
6719         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
6720         add a widget to a bin that already has a child.
6721
6722         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
6723
6724         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
6725         
6726         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
6727
6728         * gdk/gdk.h: remove gdkcc.h
6729
6730         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
6731
6732         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
6733         GdkPixbuf, since the previous implementation was GdkColorContext
6734         dependent.
6735
6736         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
6737         
6738 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
6739
6740         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
6741         a sane value!
6742
6743 2001-02-08  Havoc Pennington  <hp@redhat.com>
6744
6745         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
6746         lighten them.
6747
6748 2001-02-08  Havoc Pennington  <hp@redhat.com>
6749
6750         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
6751         validation idle
6752
6753         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
6754         cell renderer
6755
6756         * demos/pixbuf-demo.c (timeout): remove deprecated
6757         gtk_widget_draw
6758
6759         * demos/testpixbuf-save.c (main): remove deprecated
6760         gtk_drawing_area_size
6761
6762         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
6763         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
6764         at the start of the allocation.
6765         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
6766         unsetup or NULL model.
6767
6768         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
6769         even/odd/sorted cells in the tree view.
6770
6771         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
6772         bugfixes
6773
6774         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
6775         backgrounds with draw_flat_box using different detail for even/odd
6776         rows.
6777
6778         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
6779         row, so we can draw the alternating colors thing
6780
6781         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
6782         property from a synonym property, notify for the synonym.
6783         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
6784         (gtk_text_tag_get_property): Always return the font, even if
6785         all its fields aren't set
6786
6787         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
6788         store the attr list; it leaves us with no way to change attributes
6789         in _render according to the render flags, and no way to implement
6790         get_property. Instead store all the specific text attributes. 
6791         Separate whether an attribute is enabled from its value. Sync all
6792         properties with GtkTextTag, make them all consistent, etc.
6793
6794         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
6795         renderers can highlight the sort row/column     
6796
6797         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
6798         accessor functions to get values; this has the side effect of
6799         showing up which accessor functions were missing. Added those.
6800
6801         * gtk/gtktreeviewcolumn.h: Replace set_justification with
6802         set_alignment, to be consistent with GtkLabel, GtkMisc
6803
6804         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
6805         arrow.
6806
6807         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
6808
6809         * gtk/gtktreesortable.h: updates in here
6810
6811 2001-02-07  Sven Neumann  <sven@convergence.de>
6812
6813         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
6814         pango dimensions after painting the background. We used to draw
6815         gigantic flat boxes here.
6816
6817 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
6818
6819         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
6820         error introduced with earlier commit) (pointed out by
6821         Ollie Lho)
6822
6823 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
6824
6825         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
6826         which are no longer necessary.
6827
6828 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
6829
6830         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
6831
6832 2001-02-04  Tor Lillqvist  <tml@iki.fi>
6833
6834         * gdk/gdk.def
6835         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
6836         Provide dummy implementations.
6837
6838 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
6839
6840         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
6841
6842         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
6843         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
6844         deprecated this function.
6845
6846         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
6847         argument.
6848
6849 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
6850
6851         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
6852
6853 2001-02-03  Havoc Pennington  <hp@pobox.com>
6854
6855         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
6856         Mikael Hermansson with patch from Mikael (if there was a toggle
6857         start one after the first character in the range, this function
6858         was broken). Bug #50380
6859
6860 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
6861
6862         * configure.in: Remove confusing comment about X11.
6863
6864 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
6865
6866         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
6867         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
6868         
6869 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
6870
6871         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
6872         it breaks things on BSD. If you want to compile GTK+ with
6873         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
6874         when configuring, since GTK+ simply can't be "pure ANSI" 
6875         in the header files it uses. (#8170, Greg Hudson)
6876
6877 2001-02-02  Havoc Pennington  <hp@redhat.com>
6878
6879         * gtk/gtkwindow.c: docs
6880
6881         * gtk/gtkwidget.c: docs
6882         (gtk_widget_set_colormap): add a reference to the colormap
6883         (gtk_widget_get_default_colormap): add a reference to the colormap
6884
6885         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
6886
6887         * gtk/gtktextiter.c: docs
6888
6889         * gtk/gtkmain.c (gtk_propagate_event): docs
6890
6891         * gtk/gtkpaned.c (gtk_paned_get_position): docs
6892         (gtk_paned_set_position): docs
6893
6894         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
6895         sort interface, no implementation yet.
6896
6897         * demos/testpixbuf.c (new_testrgb_window): replace
6898         gtk_drawing_area_size() with gtk_widget_set_usize()
6899
6900         * demos/testpixbuf-drawable.c (main): ditto
6901         
6902         * gtk/testgtk.c: remove use of GtkStatusbarMsg
6903
6904         * gtk/gtktextbuffer.c: docs
6905
6906         * gtk/gtkstock.c: docs
6907
6908         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
6909
6910         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
6911
6912         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
6913         
6914         * gtk/gtkimage.c: add some docs in here
6915         (gtk_image_size_request): change name of
6916         gtk_widget_render_stock_icon
6917         (gtk_image_get_icon_set): don't dup returned string
6918         (gtk_image_get_icon_set): don't dup returned string
6919
6920         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
6921         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
6922         and gtkiconfactory.h functions
6923
6924         * gtk/gtkiconfactory.c: add some docs in here
6925
6926         * gtk/gtkmain.c (gtk_get_default_language): document
6927         (gtk_get_current_event): document
6928         (gtk_get_current_event_state): document
6929         (gtk_get_event_widget): document
6930
6931         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
6932
6933         * gtk/gtkcontainer.c: Add some documentation
6934         (gtk_container_add): give a more explanatory warning on adding an
6935         already-parented widget, this is kind of a FAQ and also a common
6936         typo that's easier to debug with a nice warning 
6937
6938         * gtk/gtkcellrenderertoggle.c
6939         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
6940         adding this, it's useless
6941         (gtk_cell_renderer_toggle_set_active): remove
6942         (gtk_cell_renderer_toggle_get_radio): add
6943
6944         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
6945         the NULL cell renderer, that doesn't make any sense to me. 
6946
6947         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
6948         demo code should never use deprecated features.
6949
6950         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
6951         code should never use deprecated features.
6952
6953         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
6954         gtk_widget_queue_clear_area deprecated
6955
6956         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
6957         deprecated
6958
6959         * gtk/gtklabel.h: mark gtk_label_get() deprecated
6960
6961         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
6962         a GdkImage deprecated, replaced by new consistently-named
6963         functions       
6964
6965         * gtk/gtkmain.h: Mark gtk_exit() deprecated
6966
6967         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
6968
6969         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
6970         deprecated
6971
6972         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
6973         so it won't appear in docs and confuse people.
6974
6975         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
6976
6977         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
6978         macros deprecated. (can't mark the type itself deprecated, since
6979         GtkProgressBar is not deprecated and we need the type decl to use
6980         GtkProgressBar)
6981
6982         * gtk/gtkpixmap.h: Mark deprecated
6983
6984         * gtk/gtkoldeditable.h: Mark deprecated
6985
6986         * gtk/gtklist.h: Mark deprecated
6987
6988         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
6989         for anything anymore.
6990
6991         * gtk/gtkctree.h: Mark deprecated
6992
6993         * gtk/gtkclist.h: Mark deprecated
6994
6995         * gtk/gtkpreview.h: Mark deprecated
6996
6997         * gtk/gtkpacker.h: Mark deprecated
6998
6999         * gtk/gtktipsquery.h: Mark deprecated
7000
7001         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
7002
7003         * gtk/gtkvruler.h: Add comment that it will move out of GTK
7004
7005         * gtk/gtkhruler.h: Add comment that it will move out of GTK
7006
7007         * gtk/gtkruler.h: Add comment that it will move out of GTK
7008
7009         * gtk/gtkgamma.h: Add comment that it will move out of GTK
7010
7011         * gtk/gtkcurve.h: Add comment that it will move out of GTK
7012
7013 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
7014
7015         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
7016         gdk_colormap_sync private since it was never exported
7017         in a header file.
7018
7019         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
7020         colormap->colors[] for StaticGray, StaticColor colormaps.
7021
7022         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
7023         was being used as if it was image->bits_per_pixel.
7024
7025         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
7026         for the image in the GdkImage structure since it isn't
7027         reconstructable, and we need it to handle packed types
7028
7029         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
7030         the assumption that on Win32 image->bits_per_pixel == image->depth,
7031         always.
7032
7033         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
7034
7035         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
7036         warning message if no converter can be found. 
7037
7038 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
7039
7040         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
7041         chars to isupper() / tolower(). (#567)
7042
7043         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
7044         to clear up 64-bit warnings. (#567)
7045
7046 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
7047
7048         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
7049         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
7050
7051         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
7052         since some people set $(libdir) separately. (#1290, David Kaelbling)
7053
7054 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
7055
7056         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
7057         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
7058         MAXPATHLEN, but the code here depends on a fixed value.)
7059         (#4524)
7060
7061 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
7062
7063         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
7064         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
7065
7066 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
7067
7068         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
7069         viewable there is no way that moving the node will cause the 
7070         focus row to become not viewable, so omit check on the visibility
7071         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
7072
7073 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
7074
7075         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
7076         selection before inserting new text.
7077
7078 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
7079
7080         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
7081         Make the sensitivity of the reparented child track that of
7082         the original parent menu item. (#34218, David Hodson)
7083
7084         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
7085         the case where the current item is destroyed properly.
7086
7087         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
7088         some edge cases with child-less menuitems.
7089         
7090 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
7091
7092         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
7093         key pop down window. (#12074, Jon K Hellan)
7094
7095 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
7096
7097         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
7098         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
7099         The solution here isn't perfect - you get an extraneous
7100         emission of "toggle", which could conceivably confuse an app,
7101         but better than the current situation. LXR search seems to
7102         indicate that no apps in GNOME CVS connect to "toggle".
7103
7104 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
7105
7106         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
7107         gtk_public_h_sources to directly here to avoid warning when
7108         building srcdir != builddir. (#9656)
7109
7110 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
7111
7112         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
7113         handlers in gtkrange.c return the proper values (TRUE == handled)
7114         (#10316).
7115
7116         This is just the tip of the iceberg, but gtkrange.c is the
7117         most common place where the propagation is problematical,
7118         and also a place where it is almost certainly safe to change
7119         this in the stable branch.
7120
7121         (You don't want right click popups on a range control or anything...)
7122
7123 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
7124
7125         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
7126         area on focus out, even if a background pixmap isn't set.
7127         (#13941)
7128         
7129 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
7130
7131         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
7132         to deal with setting the shape properly when scrolling arrows are
7133         turned on, but not visible because there is sufficient space.
7134         (#13432)
7135
7136 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
7137
7138         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
7139         items with submenus, destroy the item along with the submenu.
7140         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
7141         properly.
7142
7143         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
7144         later.
7145
7146 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
7147
7148         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
7149         the focus widget sometimes wasn't drawn with the default if there
7150         was no default widget.
7151
7152         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
7153         unreference pixmaps. 
7154
7155         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
7156         for some extra safety.
7157
7158 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
7159
7160         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
7161         the text of a cell to the old pointer value better, by
7162         copying the new text before freeing the old text. Some code
7163         cleanup. (#8079, Karl Nelson)
7164
7165 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
7166
7167         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
7168         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
7169
7170 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
7171
7172         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
7173         item from a menu, check to see if it matches 
7174         menu->old_active_menu_item, and if so, unref and clear
7175         old_active_menu_item (Patch from Pavel Cisler)
7176
7177         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
7178         menu_shell->active_menu_item, if it is the child being
7179         removed. (Patch based on that of Gene Ragan, #50337)
7180
7181 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
7182
7183         * gdk/linux-fb/gdkselection-fb.c: 
7184         * gdk/linux-fb/gdkcolor-fb.c: 
7185         * gdk/linux-fb/gdkdrawable-fb2.c: 
7186         * gdk/linux-fb/gdkfont-fb.c: 
7187         * gdk/linux-fb/gdkim-fb.c: 
7188         * gdk/linux-fb/gdkinput.c: 
7189         * gdk/linux-fb/gdkkeyboard-fb.c: 
7190         * gdk/linux-fb/gdkmain-fb.c: 
7191         * gdk/linux-fb/gdkrender-fb.c: 
7192         A bunch of whitespace cleanup.
7193         
7194 2001-01-30  Havoc Pennington  <hp@pobox.com>
7195
7196         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
7197         #ifdef GTK_ENABLE_BROKEN.
7198
7199         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
7200         GTK_ENABLE_BROKEN just before including the broken headers.
7201         
7202         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
7203         deprecated types registered.
7204
7205         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
7206         we have to test the broken stuff.
7207
7208         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
7209         
7210 2001-01-30  Havoc Pennington  <hp@redhat.com>
7211
7212         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
7213         here where prev pointer was set to the wrong thing
7214
7215         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
7216         (gtk_tree_path_is_descendant): new function
7217
7218         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
7219         cached length
7220         (gtk_list_store_get_iter): don't modify iter if we can't get the
7221         path.
7222
7223         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
7224         
7225         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
7226         GtkTreeDragDest
7227
7228         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
7229         was causing segfault
7230
7231         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
7232         pointer to NULL
7233
7234         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
7235
7236         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
7237         on returning FALSE
7238         (gtk_list_store_iter_children): ditto
7239         (gtk_list_store_iter_nth_child): ditto
7240         (gtk_list_store_iter_nth_child): ditto
7241         (gtk_list_store_iter_parent): ditto
7242
7243         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
7244         on iter->user_data != NULL instead of silently accepting it.
7245         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
7246         we are returning TRUE.
7247         (gtk_tree_store_iter_children): ditto
7248         (gtk_tree_store_iter_nth_child): ditto
7249         (gtk_tree_store_iter_parent): ditto
7250         (gtk_tree_store_insert): remove handling of parent->user_data ==
7251         NULL, replace with parent == NULL       
7252
7253         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
7254         and a comment explaining things
7255
7256         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
7257         interface support to GtkTreeStore.
7258
7259         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
7260         FALSE if no prev, fix
7261
7262         * gtk/gtktreeview.c (set_source_row): use a row reference
7263         (set_dest_row): use a row reference
7264
7265 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
7266
7267         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
7268         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
7269         (gtk_tree_selection_select_iter): The same as above.
7270
7271 2001-01-26  Havoc Pennington  <hp@redhat.com>
7272
7273         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
7274         which holds a handle to a specific row (particular set of values
7275         in the model, i.e. pointer-identity row).
7276
7277         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
7278         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
7279         Still need to use it for the src/dest row saved on the drag context.
7280
7281 2001-01-26  Havoc Pennington  <hp@redhat.com>
7282
7283         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
7284
7285         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
7286         not offset by TREE_VIEW_HEADER_HEIGHT
7287         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
7288         TREE_VIEW_HEADER_HEIGHT
7289
7290         * configure.in (included_loaders): for me, --with-included-loaders
7291         generates the error "the specified loader yes does not exist",
7292         i.e. the arg defaults to "yes", so change test for value ""
7293         to test for value "yes", and include all loaders in that case.
7294
7295         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
7296
7297         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
7298         handle TREE_VIEW_VERTICAL_SEPARATOR
7299         (gtk_tree_view_bin_expose): fix to consider the row offset as
7300         pointing halfway into vertical separator.       
7301         (gtk_tree_view_draw_node_focus_rect): ditto
7302
7303         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
7304         --gtk-debug=updates, which causes gdk_window_set_debug_updates
7305         (TRUE) to be called.
7306
7307         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
7308         debug mode where the invalid region is colored in on invalidate,
7309         so you can see the flicker and know whether your redraw code is 
7310         doing a good job.
7311
7312         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
7313         tree window coordinates (clip rect is in tree window coords)
7314
7315         * gtk/Makefile.am: add gtktreednd.[hc]
7316
7317         * gtk/gtkliststore.c: implement gtktreednd interfaces.
7318
7319         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
7320         drag-and-drop data operations on a model (so we can set up tree
7321         drag-and-drop automatically)
7322
7323         * gtk/testgtk.c: Add a window to change sensitivity in the
7324         GtkLabel test; add a way to change the entry frame in GtkEntry
7325         test
7326
7327         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
7328         (gtk_entry_get_has_frame): new functions to remove the frame
7329         around an entry
7330         (gtk_entry_size_request): shrink requisition if no frame
7331         (gtk_entry_draw_focus): don't draw frame if no frame
7332
7333         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
7334         checks inside a cell renderer
7335         (gtk_default_draw_option): ditto for options
7336
7337         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
7338         children from the alignment, not the button
7339         (gtk_tree_view_column_init): ref/sink the column, to emulate
7340         GObject refcounting.
7341
7342         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
7343         
7344         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7345         Use theme functions to draw the toggles 
7346
7347         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
7348
7349         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
7350         GdkPangoAttrEmbossed to use in rendering insensitive text
7351
7352         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
7353
7354         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
7355         using new GDK features
7356         
7357 2001-01-24  Alexander Larsson  <alexl@redhat.com>
7358
7359         * gtk/gtkimage.c:
7360         Splitted gtk_image_clear into gtk_image_clear() and
7361         gtk_image_reset(). Call gtk_image_clear() in ::destroy
7362         to avoid leaks.
7363
7364         * gtk/gtklabel.c (set_markup):
7365         Don't leak text.
7366
7367         * gtk/gtktextlayout.c:
7368         Always free display->shaped_objects.
7369
7370         * gtk/testgtk.c (create_clist):
7371         Don't leak custom style.
7372
7373 2001-01-23  Alexander Larsson  <alexl@redhat.com>
7374
7375         * gtk/gtkcolorsel.c (grab_color_at_mouse):
7376         Don't leak image. Simplify using gdk_colormap_query_color().
7377         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
7378
7379         * linux-fb/gdkcolor-fb.c:
7380         Implemented gdk_colormap_query_color.
7381
7382 2001-01-23  Alexander Larsson  <alexl@redhat.com>
7383
7384         * linux-fb/gdkcursor-fb.c:
7385         Don't leak built-in cursors.
7386
7387         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
7388         Don't leak tmp_points.
7389
7390         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
7391         Don't modify desc. Don't leak font if the PangoFont
7392         isn't found.
7393         
7394         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
7395         Free dash_list.
7396
7397         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
7398         Don't leak string.
7399         
7400 2001-01-20  Havoc Pennington  <hp@pobox.com>
7401
7402         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
7403         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
7404         me, matches Pango
7405
7406 2001-01-22  Havoc Pennington  <hp@redhat.com>
7407
7408         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
7409
7410         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
7411
7412         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
7413         Remove, move back to gdk-pixbuf
7414
7415         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
7416         to all the word functions
7417
7418         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
7419         before doing anything on NULL layout or if we don't have the focus
7420
7421         * gtk/testtext.c (fill_example_buffer): "justification"
7422
7423         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
7424         to be called "justification" not "justify"
7425
7426         * demos/gtk-demo/textview.c (create_tags): "justification"
7427         
7428         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
7429
7430 2001-01-22  Alexander Larsson  <alexl@redhat.com>
7431
7432         * gdk/gdkwindow.c (gdk_window_invalidate_region):
7433         Don't leak visible_region. Use visible_region instead of region.
7434         
7435         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
7436         Don't do extra gdk_drawable_ref(). This is not X.
7437         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
7438         gdk_fb_focused_window is ref:ed.
7439         (gdk_fb_window_send_crossing_events): Watch out for destroyed
7440         windows.
7441
7442 2001-01-22  Alexander Larsson  <alexl@redhat.com>
7443
7444         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
7445         Don't leak the PangoFontDescriptor.
7446
7447 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
7448
7449         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
7450         when not realized.
7451         (gtk_tree_view_scroll_to_cell): Make work when not realized.
7452         (gtk_tree_view_realize): add scroll_to support
7453         (gtk_tree_view_finalize): add a finalize method.  Populate.
7454         (gtk_tree_view_insert_column): ref and sink the column.
7455         (gtk_tree_view_append_column): ref and sink the column.
7456         (gtk_tree_view_queue_draw_node): New function to handle redrawing
7457         individual nodes.  Should make the code much more efficient, if
7458         actually used.
7459
7460 2001-01-19  Havoc Pennington  <hp@redhat.com>
7461
7462         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
7463         byte_offset variable was being used to mean both "offset into
7464         layout" and "offset into buffer line" which was no longer true
7465         with addition of preedit string; fix
7466
7467 2001-01-19  Havoc Pennington  <hp@redhat.com>
7468
7469         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
7470
7471         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
7472         function
7473
7474         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
7475         implement
7476
7477         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
7478         scroll_to_cell, matches TextView scroll functions better
7479         (gtk_tree_view_tree_to_widget_coords): new function
7480         (gtk_tree_view_widget_to_tree_coords): new function
7481         (gtk_tree_view_get_visible_rect): new function
7482         (gtk_tree_view_get_path_at_pos): accept negative coordinates
7483         (gtk_tree_view_draw_node_focus_rect): new function moved from
7484         draw_focus, also, use width of bin_window as width of the focus
7485         rect
7486         (gtk_tree_view_expand_row): fix bug where it didn't recognize
7487         already-expanded rows
7488         (gtk_tree_view_get_cell_rect): new function
7489         (gtk_tree_view_get_path_at_pos): return the click position
7490         relative to the passed-in cell
7491         (gtk_tree_view_set_expander_column): new function
7492
7493         * configure.in: remove gtk-config-2.0 chmod
7494
7495         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
7496         and properly handle drags with targets we don't understand
7497         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
7498         scrolling anyway
7499         (gtk_text_view_drag_drop): stop scrolling here though, and set the
7500         mark invisible
7501
7502         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
7503         function
7504         (gtk_drag_dest_get_target_list): new function
7505         (gtk_drag_dest_set_target_list): new function
7506         
7507         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
7508
7509         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
7510         related to drag-and-drop
7511
7512 2001-01-19  Alexander Larsson  <alexl@redhat.com>
7513
7514         * gdk/linux-fb/gdkprivate-fb.h:
7515         Define EMULATE_GDKFONT.
7516         Add extra pango_font stuff to GfkFontPrivate.
7517         
7518         * gdk/linux-fb/gdkdrawable-fb2.c:
7519         * gdk/linux-fb/gdkfont-fb.c:
7520         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
7521         emulation using PangoFont.
7522
7523 2001-01-17  Havoc Pennington  <hp@pobox.com>
7524
7525         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
7526         all the non-deprecated set_foo functions. Added missing object
7527         properties, and added g_object_notify() to setters. 
7528         Wrote docs.
7529         
7530 2001-01-18  Tor Lillqvist  <tml@iki.fi>
7531
7532         * gtk/gtkmain.c
7533         * gtk/gtkrc.c: (Win32) Use the new
7534         g_win32_get_package_installation_(sub)directory() functions.
7535
7536         * config.h.win32.in: New file.
7537         
7538         * config.h.win32: Removed.
7539
7540         * configure.in: Output config.h.win32.
7541
7542         * Makefile.am: Add it to EXTRA_DIST.
7543
7544         * gtk/gtk.def: Update.
7545
7546 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
7547
7548         * gtk/gtklabel.c (gtk_label_size_request): Set the
7549         attributes onto the PangoLayout even if they are newly
7550         created from label->pattern.
7551
7552 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
7553
7554         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
7555
7556         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
7557         structures in functions. Fixes bug where gtk_dataset_*
7558         was accidentally still being used in one place, causing
7559         every dest side event to be treated independently.
7560
7561         * gtk/gtkdnd.c: Remove last vestages of handling
7562         ::draw (fixes warning)
7563         
7564         * gtk/gtkentry.[ch]: Add drag and drop support.
7565
7566         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
7567         new function gtk_check_drag_threshhold() for checking
7568         to check if (dx,dy) has exceeded the threshhold for starting
7569         a drag and use it everywhere.
7570
7571 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
7572
7573         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
7574         add -I{includedir}/gtk-2.0.
7575
7576         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
7577         gdk/gdk-pixbuf.h: Doc fixups.
7578         
7579         * gtk/gtkobject.h: Remove trailing , from enum
7580
7581 2001-01-17 Alexander Larsson <alexl@redhat.com> 
7582
7583         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
7584         Doh! Mixed up x and y.
7585
7586         * gdk/linux-fb/gdkglobals-fb.c:
7587         Removed gdk_fb_pointer_grab_window_events,
7588         added _gdk_fb_pointer_grab_owner_events and
7589         _gdk_fb_keyboard_grab_owner_events.
7590
7591         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
7592         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
7593         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
7594         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
7595         Send crossing events after ungrab finished.
7596         (gdk_keyboard_grab): Set ..._owner_events
7597         (type_masks): Move out of function.
7598         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
7599         gdk_fb_keyboard_event_window): New functions, return the
7600         window an event should be targeted at. Handles grabs and
7601         event propagation. Can return NULL.
7602         (gdk_event_make): Remove event_mask checking. Now always
7603         returns an event.
7604                 
7605         * gdk/linux-fb/gdkkeyboard-fb.c:
7606         * gdk/linux-fb/gdkproperty-fb.c:
7607         * gdk/linux-fb/gdkselection-fb.c:
7608         Use new event_window/gdk_event_make() behaviour.
7609         
7610         * gdk/linux-fb/gdkmouse-fb.c:
7611         Use new event_window/gdk_event_make() behaviour.
7612         Only send motion events if in the same window.
7613         If grabbed, use cursor from window if sibling of grabbed
7614         window, and cursor from grabbed window otherwise.
7615
7616         * gdk/linux-fb/gdkprivate-fb.h:
7617         Update gdk_fb_window_send_crossing_events, gdk_event_make
7618         and grab varaible declarations. Add gdk_fb_*_event_window().
7619
7620         * gdk/linux-fb/gdkwindow-fb.c:
7621         Use new event_window/gdk_event_make() behaviour.
7622         Keep correct track of focus window.
7623         (gdk_window_set_events): Set all specific button motion masks
7624         if GDK_BUTTON_MOTION_MASK set.
7625
7626         * gtk/gtkdnd.c (gtk_drag_update):
7627         Free info->last_event if gdk_drag_motion returned FALSE.
7628
7629 2001-01-16  Tor Lillqvist  <tml@iki.fi>
7630
7631         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
7632         Eliminate redraws when input-only windows are shown or
7633         hidden. Thanks to jpe@archaeopteryx.com.
7634
7635 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
7636
7637         * docs/faq/gtk-faq.sgml: FAQ update:
7638           - Update to bugzilla
7639           - Add GTK+ and security/SUID/SGID
7640           - Add DnD question
7641
7642 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
7643
7644         * gdk/linux-fb/gdkdnd-fb.c:
7645         Some cleanups.
7646         
7647 2001-01-15  Havoc Pennington  <hp@pobox.com>
7648
7649         * tests/testtreeview.c: add test stuff for CellRendererToggle
7650
7651         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
7652         accessor
7653
7654         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
7655         only toggle on button press (would do release like GtkButton, but
7656         we'd need implicit grab code for treeview cells)
7657
7658 2001-01-16  Tor Lillqvist  <tml@iki.fi>
7659
7660         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
7661
7662         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
7663         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
7664
7665         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
7666         to g_{locale,filename}_{to,from}_utf8 to match current API.
7667
7668         * gtk/makefile.msc.in (gtk_OBJECTS)
7669         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
7670
7671         * gtk/gtk.def: Update.
7672
7673 2001-01-15  Tor Lillqvist  <tml@iki.fi>
7674
7675         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
7676         implementaion that more closely mimics the events that an X server
7677         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
7678         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
7679         with nested preview widgets, for instance, more responsive when
7680         you move the mouse quickly into them.
7681         (find_window_for_pointer_event): Make it actually compile.
7682         (gdk_event_translate): Set send_event to the value of
7683         InSendMessage (). This doesn't really mean the same as X11's
7684         send_event flag, but is close enough, says jpe@archaeopteryx.com
7685
7686 2001-01-15  Alexander Larsson  <alexl@redhat.com>
7687
7688         * gdk/linux-fb/gdkdnd-fb.c:
7689         Implemented drag and drop.
7690         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
7691         when it tries to free and then copy the same event (info->last_event).
7692         I am not sure about why this happens, but will continue looking.
7693
7694 2001-01-15  Alexander Larsson  <alexl@redhat.com>
7695
7696         * gdk/linux-fb/gdkwindow-fb.c:
7697         Use gdk_window_invalidate_rect instead of
7698         gdk_window_invalidate_rect_clear to minimise flashing.
7699         When hiding windows you need to clear the root window though.
7700
7701 2001-01-15  Alexander Larsson  <alexl@redhat.com>
7702
7703         * gdk/linux-fb/gdkdrawable-fb2.c:
7704         For optization, add an full_shapes argument to gdk_fb_clip_region.
7705         If this is false, only the cliprects of the shapes are used.
7706
7707         * gdk/linux-fb/gdkprivate-fb.h:
7708         Export gdk_fb_window_peek_shape.
7709         Add full_shapes to gdk_fb_clip_region.
7710
7711         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
7712         When moving a window, don't clear everything under the it, just the
7713         root window. Makes stuff faster and flash less.
7714         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
7715         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
7716         offset of the shape.
7717         
7718
7719 2001-01-12  Havoc Pennington  <hp@redhat.com>
7720
7721         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
7722         current invalid region, fixes redraw bug while scrolling the 
7723         text widget
7724
7725         * gtk/gtktextview.c, gtk/gtktextview.h:
7726         Rearrange the scrolling/validation/etc. code in a major way, 
7727         so it seems to make sense to me. Probably isn't genuinely that
7728         much better, but...
7729
7730         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
7731         notifies
7732
7733         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
7734
7735 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
7736
7737         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
7738         Hide mouse pointer while rotation. Show it afterwards.
7739
7740 2001-01-12  Alexander Larsson  <alexl@redhat.com>
7741
7742         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
7743         windows in consideration when generating clip region.
7744
7745         * gdk/linux-fb/gdkfb.h:
7746         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
7747
7748         * gdk/linux-fb/gdkprivate-fb.h:
7749         Add shape to GdkWindowFBDatat.
7750         exported gdk_fb_window_get_abs_shape().
7751         removed gdk_fb_draw_lines declaration.
7752
7753         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
7754         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
7755         send focus changes when there is a grabbed window.
7756         (gdk_window_get_pointer): Handle shaped windows.
7757         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
7758         (gdk_fb_window_peek_shape): Returns the shape for a window,
7759         handles GDK_FB_USE_CHILD_SHAPE.
7760         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
7761         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
7762         (gdk_window_shape_combine_mask): Implement.
7763
7764         * gtk/gtkwindow-decorate.c:
7765         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
7766         setting the shape of a window makes the window transparent.
7767
7768 2001-01-11  Havoc Pennington  <hp@redhat.com>
7769
7770         * gtk/gtktreemodelsimple.h: Oops, broke some macros
7771
7772 2001-01-10  Havoc Pennington  <hp@redhat.com>
7773
7774         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
7775         add this function, bug 40251
7776
7777         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
7778         of type macro   
7779
7780 2001-01-11  Alexander Larsson  <alexl@redhat.com>
7781
7782         * acconfig.h:
7783         Added ENABLE_SHADOW_FB
7784
7785         * configure.in:
7786         Added --disable-shadowfb
7787
7788         * gdk/linux-fb/gdkcursor-fb.c:
7789         Update shadowfb when updating cursor
7790
7791         * gdk/linux-fb/gdkdrawable-fb2.c:
7792         Added wrappers for shadowfb that calls  the normal drawable
7793         methods, but calls gdk_shadow_fb_update(bounding box) when
7794         GdkWindows are drawed to.
7795         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
7796         which also returns the bounding box.
7797
7798         * gdk/linux-fb/gdkfb.h:
7799         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
7800
7801         * gdk/linux-fb/gdkgeometry-fb.c:
7802         Update shadowfb when scrolling window.
7803
7804         * gdk/linux-fb/gdkglobals-fb.c:
7805         Add _gdk_fb_screen_angle.
7806         
7807         * gdk/linux-fb/gdkkeyboard-fb.c:
7808         Test code for screen rotation. Shift-F2 in the xlate driver
7809         rotates the screen.
7810
7811         * gdk/linux-fb/gdkmain-fb.c:
7812         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
7813
7814         * gdk/linux-fb/gdkmouse-fb.c:
7815         Use fb_width/height instead of modeinfo.xres/yres.
7816
7817         * gdk/linux-fb/gdkprivate-fb.h:
7818         Added fb_men, fb_width, fb_height & fb_stride. When using
7819         shadow fb these can differ from the framebuffer stuff.
7820         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
7821         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
7822         _gdk_fb_screen_angle. Removed CM, RP.
7823
7824         * gdk/linux-fb/gdkrender-fb.c:
7825         Added code for shadowfb handling and screen rotation using
7826         shadowfb.
7827
7828         * gdk/linux-fb/gdkwindow-fb.c:
7829         Use fb_mem, fb_stride, fb_width, fb_height.
7830         Added recompute_rowstride to reset the rowstride of all windows.
7831         Added gdk_fb_recompute_all() which recomputes rootwindow size,
7832         window abs positions and window rowstrides. Usefull when the
7833         rotation has changed.
7834
7835 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
7836
7837         * docs/faq/gtk-faq.sgml: update to make web site updating easier
7838
7839 2001-01-10  Havoc Pennington  <hp@redhat.com>
7840
7841         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
7842         where sibling == iter
7843         (gtk_tree_store_insert_after): handle sibling == iter
7844         (gtk_tree_store_prepend): remove stamp checks
7845         (gtk_tree_store_insert_before): ditto
7846         (gtk_tree_store_append): ditto
7847         (gtk_tree_store_get_path): ditto
7848         (gtk_tree_store_get_value): ditto
7849         (gtk_tree_store_iter_has_child): ditto
7850         (gtk_tree_store_iter_n_children): ditto
7851         (gtk_tree_store_iter_nth_child): ditto
7852         (gtk_tree_store_insert_after): ditto
7853         (gtk_tree_store_is_ancestor): ditto
7854         (gtk_tree_store_iter_depth): ditto
7855         (gtk_tree_store_insert_before): assert that sibling's parent is
7856         the same as the passed-in parent
7857         (gtk_tree_store_insert_after): assert that sibling's parent is
7858         the same as the passed-in parent
7859
7860         
7861         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
7862         function to get the first iterator in a model
7863         
7864         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
7865         conventionally the "root" in this sense is just NULL afaict.
7866
7867         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
7868         where sibling == iter
7869         (gtk_list_store_insert_after): handle case where sibling == iter
7870
7871         * tests/testtreeview.c (run_automated_tests): fairly lame basic
7872         automated tests for ListStore, TreeStore
7873
7874         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
7875         (gtk_list_store_insert): update tail pointer, and fix it to work
7876         (gtk_list_store_insert_before): update tail pointer, and fix it to work
7877         (gtk_list_store_append): use tail to be faster
7878         (gtk_list_store_prepend): fix it, update tail pointer
7879         (gtk_list_store_insert_after): fix it, update tail pointer
7880
7881         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
7882         the list
7883
7884 2001-01-09  Havoc Pennington  <hp@redhat.com>
7885
7886         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
7887         is NULL due to a pending resize
7888
7889         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
7890         column width to values less than 1
7891
7892         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
7893         width to be between min/max width, and still set the width 
7894         even if autosize is turned on, so the tree view can use this 
7895         function in order to autosize.
7896         (gtk_tree_view_column_init): set initial width to 1 not 0
7897
7898         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
7899         setter function to modify column width, so we get notification
7900         (gtk_tree_view_insert_iter_height): ditto
7901         (gtk_tree_view_calc_size): ditto
7902         (gtk_tree_view_check_dirty): ditto
7903
7904         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
7905         properties to change all the interesting attributes of the tree
7906         view column.
7907         (gtk_tree_view_column_set_header_clickable): rename set_clickable
7908         (gtk_tree_view_column_get_clickable): add
7909         (gtk_tree_view_column_set_cell_renderer): don't unset the current
7910         attributes; assume a cell renderer with equivalent object
7911         properties has been swapped in. Do g_object_notify().
7912         (gtk_tree_view_column_set_visible): g_object_notify
7913         (gtk_tree_view_column_get_sizing): rename from get_col_type
7914         (gtk_tree_view_column_set_sizing): g_object_notify
7915         (gtk_tree_view_column_set_width): add g_object_notify
7916         (gtk_tree_view_column_set_min_width): ditto
7917         (gtk_tree_view_column_set_max_width): ditto
7918         (gtk_tree_view_column_set_title): ditto
7919         (gtk_tree_view_column_set_clickable): ditto
7920         (gtk_tree_view_column_set_widget): ditto
7921         (gtk_tree_view_column_set_justification): ditto
7922
7923 2001-01-09  Havoc Pennington  <hp@redhat.com>
7924
7925         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
7926         there are no rows in the model
7927
7928         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
7929         NULL, then return the start of the list
7930
7931         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
7932         if we can't get any rows from an empty model 
7933
7934         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
7935         extraneous * after function pointer typedef usage
7936
7937         * Makefile.am: don't specify full path to cp and rm
7938
7939         * gtk/gtkcellrenderertextpixbuf.c
7940         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
7941         NULL before dereferencing, fixes a segfault that happened from
7942         time to time
7943
7944         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
7945         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
7946         and reindent the function
7947         (gtk_cell_renderer_pixbuf_get_size): indentation
7948
7949         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
7950         we quit it
7951         (gtk_dialog_add_buttons_valist): add g_return_if_fail
7952         (gtk_dialog_set_default_response): New function, to set default
7953         button
7954         (gtk_dialog_set_response_sensitive): New function, to set 
7955         sensitivity of buttons
7956
7957         * gtk/gtkcellrendererpixbuf.c
7958         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
7959         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
7960
7961         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
7962         handle any G_TYPE_OBJECT subclass, not just the base class, and 
7963         also boxed types.
7964         (_gtk_tree_data_list_value_to_node): ditto
7965
7966         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
7967         --gtk-debug=tree
7968
7969         * gtk/gtkmain.c: add GTK_DEBUG_TREE
7970
7971         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
7972
7973 2001-01-09  Tor Lillqvist  <tml@iki.fi>
7974
7975         * gdk/win32/gdkevents-win32.c: Implement better mouse
7976         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
7977         (find_window_for_pointer_event): New function.
7978         (gdk_event_translate): Use it when handling mouse events.
7979
7980 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
7981
7982         * configure.in:
7983         Added --with-included-loaders option
7984
7985         * gdk-pixbuf/Makefile.am:
7986         * gdk-pixbuf/gdk-pixbuf-io.c:
7987         Add support for including selected gdk-pixbuf loaders only.
7988
7989         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
7990         gtk_window_set_has_frame):
7991         Added inline documentation.
7992
7993         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
7994         * docs/reference/gdk/tmpl/windows.sgml:
7995         Added inline documentation.
7996
7997 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
7998
7999         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
8000         realizing buttons that have already been realized.
8001
8002 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
8003
8004         * tests/testtreeview.c (main): Show menu items before adding to
8005         option menu.
8006
8007         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
8008         around if we kill them.
8009
8010         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
8011         Return if we pass in a NULL model.
8012
8013 2001-01-08  Havoc Pennington  <hp@redhat.com>
8014
8015         * tests/testtreeview.c: hack on this some
8016
8017         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
8018         gtk_tree_store_set_valist, v is for arrays, valist for varargs
8019         list
8020         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
8021
8022         * gtk/gtkliststore.h: Add varargs set() and get() convenience
8023         functions
8024
8025 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8026
8027         * gtk/gtkwindow-decorate.[hc]:
8028         * gtk/Makefile.am:
8029         New files. Contains an implementation of a minimal WM for
8030         linux-fb.
8031
8032         * gtk/gtkwindow.h:
8033         Add the possibility for GtkWindows to specify a frame. This
8034         is used for the window decoration code, but could concievably
8035         be used for X programs too (xmms style windows).
8036         GtkWindow->frame is the toplevel window if the window is framed.
8037         The signal frame_event gets all events that are targeted to
8038         GtkWindow->frame.
8039         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
8040         
8041         * gtk/gtkwindow.c:
8042         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
8043         Call out to gtkwindow-decorate.c for WM support in linx-fb.
8044
8045 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8046
8047         * docs/README.linux-fb:
8048         Correct filename ~/.pangoft2_aliases
8049
8050         * gdk/gdkwindow.h:
8051         Added new function gdk_window_get_decorations.
8052
8053         * gdk/linux-fb/gdkfb.h:
8054         Removed _gdk_window_get_decorations declaration.
8055         Renamed _gdk_window_set_child_handler to
8056         gdk_fb_window_set_child_handler.
8057
8058         * gdk/linux-fb/gdkwindow-fb.c:
8059         Renamed _gdk_window_set_child_handler to
8060         gdk_fb_window_set_child_handler.
8061
8062         * gdk/x11/gdkwindow-x11.c:
8063         New function gdk_window_get_mwm_hints().
8064         Implemented gdk_window_get_decorations.
8065
8066         * docs/reference/gdk/tmpl/windows.sgml:
8067         * docs/reference/gdk/gdk-sections.txt:
8068         Added gdk_window_get_decorations docs.
8069         
8070 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
8071
8072         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
8073         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
8074         gdk_fb_window_send_crossing_events):
8075         Possibly send focus events when the mouse moves from one
8076         window to another.
8077
8078 2001-01-07  Tor Lillqvist  <tml@iki.fi>
8079
8080         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
8081         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
8082         to match current API.
8083
8084         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
8085         environment variable is set, don't call g_error when on a
8086         palettized (PseudoColor) display. Some people want to use GTK+ 
8087         in 256-colour mode even though works only partially.
8088
8089         * gdk/gdk.def
8090         * gtk/gtk.def
8091         * gtk/makefile.mingw.in: Update.
8092
8093 2001-01-05  Havoc Pennington  <hp@redhat.com>
8094
8095         * tests/testtreeview.c: hack on this a bit
8096
8097         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
8098         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
8099
8100         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
8101         was spelled incorrectly
8102         (GTK_IS_TREE_MODEL_SIMPLE): ditto
8103
8104         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
8105         from gtk_tree_view_set_headers_active   
8106
8107         * gtk/gtktexttag.c:
8108         (gtk_text_tag_get_property): handle PROP_DIRECTION
8109         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
8110         properties, bug 40235
8111
8112         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
8113         forward_to_line_end
8114
8115 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
8116
8117         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
8118         modules/input/gtkimcontextxim.c: Adapt to new prototypes
8119         for unicode,locale,filename conversion functions.
8120
8121 2001-01-05  Havoc Pennington  <hp@redhat.com>
8122
8123         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
8124         broken if called on the first position in the buffer.
8125
8126         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
8127         forward_to_delimiters to be called only if we aren't already at
8128         the delimiters.
8129
8130 2001-01-05  Havoc Pennington  <hp@redhat.com>
8131
8132         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
8133
8134 2001-01-05  Alexander Larsson  <alexl@redhat.com>
8135
8136         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
8137         colormap in here. Sync from X port.
8138         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
8139         Sync from X port.
8140         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
8141         This happens now and then, and i don't think it is a bug.
8142         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
8143         != endpoint.
8144         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
8145         GDK_LINE_SOLID.
8146
8147         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
8148         some of the fields filled in at least.
8149
8150         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
8151         miLineArcD is no more, remove it from the function definition.
8152
8153 2001-01-04  Havoc Pennington  <hp@redhat.com>
8154
8155         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
8156         this
8157
8158         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
8159         user_data instead of tree_node
8160
8161         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
8162         TREE_VIEW_COLUMN_SIZE
8163
8164         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
8165         "size" field to "width" finishes bug 40061
8166
8167         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
8168         for bitfields, bug 40268
8169
8170 2001-01-04  Havoc Pennington  <hp@redhat.com>
8171
8172         Rename some stuff:
8173         
8174         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
8175
8176         s/GtkModelSimple/GtkTreeModelSimple/g;
8177         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
8178         s/gtk_model_simple/gtk_tree_model_simple/g;
8179         s/gtkmodelsimple/gtktreemodelsimple/g;
8180
8181         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
8182
8183         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
8184         s/column_set_col_type/column_set_sizing/g;
8185
8186         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
8187         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
8188
8189         s/GtkCellRendererType/GtkCellRendererState/g;
8190         
8191         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
8192         (gtk_cell_renderer_toggle_class_init): change "state" property to
8193         "active", to match GtkToggleButton
8194         (gtk_cell_renderer_toggle_get_active): new function, bug
8195         40269
8196         (gtk_cell_renderer_toggle_set_active): new function
8197         (gtk_cell_renderer_toggle_set_property): route changes to toggle
8198         state through gtk_cell_renderer_set_active
8199
8200 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
8201
8202         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
8203         temporarily until they work again.  Brought up to date with
8204         changes in the model.
8205         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
8206         model.
8207
8208 2001-01-04  Havoc Pennington  <hp@redhat.com>
8209
8210         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
8211         equal to the line length, then position iterator before paragraph 
8212         separators. Fixes crash reported by Mikael Hermansson when
8213         pressing left arrow from the start of a line.   
8214
8215         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
8216         about byte indexes off the end
8217         (iter_set_from_char_offset): add g_error about char offsets
8218         off the end
8219
8220 2001-01-03  Havoc Pennington  <hp@redhat.com>
8221
8222         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
8223
8224         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
8225         of private functions; remove inclusion of private headers.
8226
8227         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
8228         function, so we don't need private functions in gtktextdisplay.c
8229
8230         * gtk/gtktextiterprivate.h: underscore-ification
8231
8232         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
8233         to instead say "only useful to implement widgets"
8234
8235         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
8236         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
8237         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
8238
8239         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
8240         This function was completely broken
8241
8242         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
8243
8244         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
8245
8246         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
8247
8248         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
8249
8250         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
8251
8252         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
8253
8254         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
8255         gtk_paint_layout
8256
8257         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
8258         gtk_paint_layout
8259
8260         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
8261         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
8262         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
8263         which were not implemented.     
8264
8265         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
8266         insert_pixbuf signal. Rename delete_text to delete_range since it
8267         also deletes pixbufs and child anchors. This almost closes bug
8268         40245 (still need to deal with child anchors)
8269
8270         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
8271         insert_pixbuf, change signal names as appropriate, change types of
8272         signals taking marks/tags to have the specific type, not just
8273         G_TYPE_OBJECT
8274         
8275         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
8276         closes bug 40051
8277
8278         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
8279         unnecessary remove_contents() call
8280         (gtk_option_menu_class_init): add a "changed" signal, closes
8281         bug 40039
8282         (gtk_option_menu_update_contents): emit "changed" if the 
8283         active menu item changes
8284
8285         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
8286         cast to GtkObject, reported by Jonas Borgstrom
8287         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
8288         we can't do stuff with side effects in finalize. Instead, spew a
8289         warning if the loader isn't closed.
8290
8291         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
8292         colormap in here, non-X ports probably need to sync to this change
8293
8294         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
8295         assertion that colormap != NULL, you can set the colormap to NULL
8296         if you like.
8297         
8298         * Makefile.am: remove gtk-config-2.0
8299
8300         * configure.in: Use pkg-config to locate GLib. Remove
8301         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
8302         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
8303         Use pkg-config to locate Pango. Output correct Pango libs to
8304         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
8305
8306         * Makefile.am (pkgconfig_DATA): install only target-specific pc
8307         files
8308         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
8309         X11 pc files
8310
8311         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
8312         unref from here
8313
8314 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
8315
8316         * configure.in:
8317         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
8318
8319 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8320
8321         * gtk/gtktextlayout.c
8322         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
8323         variable when moving back onto a single line.
8324
8325 2001-01-01  Havoc Pennington  <hp@redhat.com>
8326
8327         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8328
8329         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8330
8331         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
8332         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
8333
8334 2001-01-01  Havoc Pennington  <hp@redhat.com>
8335
8336         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
8337
8338         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
8339         GtkTextAttributes
8340
8341         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
8342         #40246
8343         (gtk_text_attributes_copy_values): rename from 
8344         gtk_text_attributes_copy
8345         (gtk_text_attributes_copy): a more standard GTK copy function, 
8346         which returns a new object
8347
8348 2001-01-01  Havoc Pennington  <hp@redhat.com>
8349
8350         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
8351         
8352         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
8353         don't fill in tree_view->priv->selection, kind of an unexpected
8354         side effect
8355
8356         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
8357         gtkintl.h
8358         
8359         * gtk/gtkcellrenderer.c: Remove definition of _ and include
8360         gtkintl.h
8361         (gtk_cell_renderer_get_property): remove calls to g_value_init
8362
8363         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
8364         gtkintl.h
8365
8366         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
8367         and include gtkintl.h
8368         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
8369         property names
8370
8371         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
8372         GtkTreeSelection
8373         (_gtk_tree_selection_new_from_with_view): rename, return
8374         GtkTreeSelection
8375         (_gtk_tree_selection_set_tree_view): rename with uscore
8376         (gtk_tree_selection_get_selected): fill in the "model" out param
8377         first, so it gets filled in even if we return at the top of the 
8378         function
8379         (gtk_tree_selection_real_select_all): add a comment and an else{}
8380         to clarify this a bit
8381         (gtk_tree_selection_real_unselect_all): add the same else{}
8382
8383         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
8384         set_tree_view to have underscore prefixes, move them to the
8385         private header, fix return type of new_with_tree_view
8386         (struct _GtkTreeSelection): mark struct
8387         fields private  
8388
8389         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
8390         GtkTreeModelFlags, not a guint
8391         (gtk_tree_path_prev): return gboolean not gint
8392         (gtk_tree_path_up): return gboolean not gint
8393
8394         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
8395         return GtkTreeModelFlags, not a guint
8396
8397         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
8398         that child model is non-null before unrefing it
8399         (g_value_int_compare_func): make this a qsort compare func, not 
8400         a boolean predicate
8401
8402         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
8403         (add -umn to the end), and mark it unimplemented
8404         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
8405         I don't see what it's for - doesn't the model always sort itself?
8406         (gtk_tree_model_sort_set_compare): this had the wrong signature
8407
8408         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
8409         Fix the docs to say that it destructively replaces existing
8410         attributes (previously said that it added attributes).
8411         (gtk_tree_view_column_set_visible): canonicalize bool before
8412         equality testing. Also, check for realization before
8413         hiding/showing the tree_column->window; if this window could exist
8414         before realization, then it's busted and needs fixing, we can't 
8415         create GDK resources pre-realization. Also, remove
8416         superfluous queue_resize(), since set_size() does that for us.
8417         (gtk_tree_view_column_set_col_type): check realization before 
8418         using tree_column->window
8419
8420         * gtk/gtktreedatalist.c: fix filename in copyright notice
8421
8422 2000-12-31  Havoc Pennington  <hp@pobox.com>
8423
8424         * gtk/gtktextview.c: Rearrange all the
8425         scroll-while-dragging-or-selecting code to be different, not
8426         necessarily better. ;-)
8427         (gtk_text_view_scroll_to_mark): Change this
8428         function to take within_margin as a fraction instead of a pixel
8429         value, and to take alignment arguments (indicating where to align 
8430         the mark inside the visible area)
8431         
8432         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
8433         to GtkObject
8434
8435         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
8436         behavior so that offsets past the end of the line are not 
8437         allowed, and an offset equal to the line length moves the iterator
8438         to the next line
8439         (gtk_text_iter_set_line_index): make parallel change
8440         (gtk_text_iter_get_bytes_in_line): add this function
8441         
8442         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
8443         of byte indexes off the end of the line; byte index at the end of
8444         the line now returns FALSE and doesn't fill in the requested
8445         values, byte index past the end of the line is an error.  Also,
8446         don't allow -1 offset anymore, since its meaning is unclear.
8447
8448         This change exposes some bug in visual cursor motion, where we
8449         end up with a huge invalid byte index; needs fixing. Symptom of 
8450         bug is a crash when you hit up arrow.
8451         
8452         (_gtk_text_line_char_locate): match the change to byte_locate
8453
8454         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
8455         from start of line properly. fixes bug reported by Mikael
8456         Hermansson where backspace would delete all text before the
8457         cursor.
8458
8459 2000-12-30  Tor Lillqvist  <tml@iki.fi>
8460
8461         * gdk/win32/gdkwindow-win32.c
8462         (gdk_window_impl_win32_get_visible_region): New function, as in
8463         the X11 backend.
8464         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
8465         instead of duplicating the same code here.
8466
8467         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
8468         GDK_COLORMAP macro.
8469
8470         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
8471         destroy function.
8472         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
8473         access that.
8474
8475         * gtk/gtk.def: Update.
8476
8477         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
8478
8479 2000-12-30  Havoc Pennington  <hp@pobox.com>
8480
8481         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
8482         colormap on input only windows, to avoid special cases all over
8483         the code for these windows.
8484
8485 2000-12-26  Tor Lillqvist  <tml@iki.fi>
8486
8487         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
8488         we are on a palettized display ("PseudoColor" in X11), as the code
8489         for that doesn't work anyway, and never has.
8490
8491 2000-12-22  Alexander Larsson  <alexl@redhat.com>
8492
8493         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
8494         Don't use isprint() for chars > 255.
8495
8496 2000-12-21  Havoc Pennington  <hp@redhat.com>
8497
8498         * tests/testtreeview.c: more work
8499
8500 2000-12-21  Alexander Larsson  <alexl@redhat.com>
8501
8502         * docs/README.linux-fb:
8503         Update the docs to the new pangoft2 way.
8504
8505 2000-12-21  Alexander Larsson  <alexl@redhat.com>
8506
8507         * configure.in:
8508         For linux-fb get the pangoft2 cflags and libs. This needs a recent
8509         pango version.
8510         Remove modules/linux-fb/Makefile.
8511
8512         * gdk/linux-fb/gdkdrawable-fb2.c:
8513         Render glyphs using freetype.
8514
8515         * gdk/linux-fb/gdkfb.h:
8516         Add new fb-specific functions needed for managing windows.
8517
8518         * gdk/linux-fb/gdkmain-fb.c:
8519         Remove gdk_font_init/fini() calls.
8520
8521         * gdk/linux-fb/gdkpango-fb.c:
8522         Remove old implementation. Use pangoft2 instead.
8523
8524         * gdk/linux-fb/gdkprivate-fb.h:
8525         Remove PangoFBFont and related stuff.
8526
8527         * gdk/linux-fb/gdkwindow-fb.c:
8528         Implement drawable->get_visible_region.
8529         Implement support for _gdk_window_set_child_handler () and
8530         _gdk_window_get_decorations().
8531
8532         * modules/Makefile.am:
8533         Remove linux-fb subdir.
8534
8535         * modules/linux-fb/*:
8536         Removed all.
8537         
8538 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
8539
8540         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
8541         calls, as they are no longer needed.
8542
8543         * gtk/gtktreemodelsort.c: Fix up the comparison code.
8544         
8545         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
8546         figure out how to emit a signal on an interface.
8547
8548 2000-12-20  Havoc Pennington  <hp@redhat.com>
8549
8550         * tests: new directory to contain tests, gtk/test* should move
8551         here sometime (with appropriate on-cvs-server hackery)
8552
8553         * tests/testtreeview.c, tests/Makefile.am: a test
8554         
8555         * configure.in (AC_OUTPUT): add tests/Makefile
8556
8557         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
8558         and "invisible_set" which were missing
8559
8560         * gtk/gtkrbtree.h: some cheesy indentation fix
8561         
8562 2000-12-20  Alexander Larsson  <alexl@redhat.com>
8563
8564         * gtk/gtkinvisible.c (gtk_invisible_realize):
8565         Attach the style to the window so that the style it is not
8566         leaked when unrealizing the window.
8567
8568 2000-12-18  Havoc Pennington  <hp@redhat.com>
8569
8570         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
8571         begin/end user action where appropriate
8572         (gtk_text_view_commit_handler): add begin/end user action
8573
8574         * gtk/gtktextbuffer.c: add begin/end user action signals, and
8575         bracket interactive operations with begin/end user action pair.
8576         
8577         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
8578         "interactive" arg from insert_text and delete_text signals.
8579         Add begin_user_action, end_user_action signals
8580         (gtk_text_buffer_begin_user_action): 
8581         (gtk_text_buffer_end_user_action): New functions to delimit 
8582         a user-visible action
8583
8584         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
8585         signals.
8586         
8587 2000-12-18  Havoc Pennington  <hp@redhat.com>
8588
8589         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
8590         was pretty non-working.
8591
8592         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
8593         by passing the length to g_utf8_validate().
8594
8595 2000-12-16  Havoc Pennington  <hp@pobox.com>
8596
8597         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
8598         Port to GObject, can go back in gdk-pixbuf after setting up 
8599         a gdk-pixbuf-marshal.h header over there.
8600
8601         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
8602         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
8603         args
8604         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
8605         set
8606         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
8607         here, do it when we create the buttons later
8608         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
8609         (gtk_tree_view_map): paranoia checks that column->button is shown 
8610         and unmapped
8611         (gtk_tree_view_size_request): only request visible children.
8612         Move header size calculation in here, for cleanliness, and 
8613         to maintain invariants for child widgets if we eventually 
8614         let users set different children inside the buttons
8615         (gtk_tree_view_map_buttons): factor out code to map buttons,
8616         since it was being called several times
8617         (gtk_tree_view_size_allocate_buttons): move_resize the drag
8618         windows instead of just moving them; their height may change 
8619         if we allow random widgets in there, or the theme changes.
8620         (gtk_tree_view_size_allocate): move button size allocation 
8621         above emitting the scroll signals, to ensure a sane state when we
8622         hit user code
8623         (gtk_tree_view_button_release): remove queue_resize after
8624         tree_view_set_size(), set_size() will handle any resize queuing
8625         that's needed
8626         (gtk_tree_view_focus_in): just queue a draw, don't fool with
8627         draw_focus goo
8628         (gtk_tree_view_focus): use gtk_get_current_event() and
8629         gdk_event_get_state()
8630         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
8631         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
8632         semicolon
8633         (gtk_tree_view_create_button): show the button here
8634         (gtk_tree_view_button_clicked): actually emit the clicked signal
8635         on the column
8636         (_gtk_tree_view_set_size): return right away if the size is
8637         unchanged, as a cheesy optimization
8638         (gtk_tree_view_setup_model): rename set_model_realized to 
8639         setup_model to match the flag that indicates whether we've 
8640         called it
8641         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
8642         exist, because set_scroll_adjustment does that and it shouldn't
8643         matter what order you call these in
8644         (gtk_tree_view_get_vadjustment): ditto
8645         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
8646         for paranoia
8647         (gtk_tree_view_set_headers_visible): call
8648         gtk_tree_view_map_buttons() instead of using cut-and-paste code
8649         (gtk_tree_view_append_column): clarify whether the return value
8650         is the count of columns before or after, and do the increment 
8651         separately from the return statement so you can tell from the code.
8652         (gtk_tree_view_remove_column): ditto
8653         (gtk_tree_view_insert_column): ditto
8654         (gtk_tree_view_get_column): remove g_return_if_fail for columns
8655         outside the existing range, the docs say that outside-range
8656         columns are allowed, so we handle them as documented. (Presumably
8657         this allows a nice loop with column != NULL as test.)
8658         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
8659         mean (left/right/center etc.).
8660         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
8661         (gtk_tree_view_expand_row): add docs
8662         (gtk_tree_view_collapse_row): add docs
8663
8664         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
8665         function to emit the clicked signal on a column
8666         
8667         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
8668         state of an event
8669         (gdk_event_get_time): don't treat GDK_SCROLL 
8670         as a button event, remove default case from switch so gcc 
8671         will whine if we don't explicitly handle all event types
8672
8673         * gtk/gtktreeselection.h: added some FIXME 
8674         
8675         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
8676         "columns" to "n_columns" and "column" to "columns" for clarity
8677
8678 2000-12-16  Havoc Pennington  <hp@pobox.com>
8679         
8680         * gtk/gtktextiter.c: General cleanup of the log attr iteration
8681         stuff. This should make e.g. the delete key work again in the
8682         text widget...
8683         (gtk_text_iter_forward_cursor_positions): handle negative count
8684         (gtk_text_iter_backward_cursor_positions): handle negative count
8685         (gtk_text_iter_forward_word_ends): handle negative count
8686         (gtk_text_iter_backward_word_starts): handle negative count
8687
8688         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
8689         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
8690         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
8691         GObject. No doubt will cause breakage.
8692
8693         * demos/gtk-demo/textview.c: remove hacks around
8694         non-GObject-ification of the text objects
8695
8696         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
8697         the text tag
8698         
8699 2000-12-14  Havoc Pennington  <hp@pobox.com>
8700
8701         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
8702         that we have Xrender
8703
8704 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
8705
8706         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
8707         Add two virtualized functions gdk_drawable_get_clip_region - to
8708         get the clip region when drawing.
8709         
8710         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
8711         use invalidate_region.
8712
8713         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
8714         region.
8715
8716         * acconfig.h configure.in: Check for Xft. For now, assume
8717         that if Xft is found, Pango was compiled with Xft support
8718         as well.
8719
8720         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
8721         gdk_colormap_query_color().
8722         
8723         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
8724         with Xft if appropriate.
8725
8726         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
8727         a pangoxft context if we have XFT and the environment
8728         variable GD_USE_XFT is set.
8729         
8730         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
8731         and also possibly an XftDraw structure.
8732
8733         * gtk/gtkfontsel.c: Handle the case where the font from the
8734         style doesn't match any of the fonts a bit better.
8735         
8736         * gtk/testgtk.c: Add tabs between directional segments for
8737         hebrew/arabic test. (Not really necessary, just a little
8738         prettier.)
8739
8740 2000-12-14  Havoc Pennington  <hp@redhat.com>
8741
8742         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
8743         reading a file
8744
8745 2000-12-14  Havoc Pennington  <hp@redhat.com>
8746
8747         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
8748         unused call to get_last_line()
8749
8750         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
8751         here until boxed is working (and maybe after that - we should
8752         really not gratuitously break old code)
8753
8754         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
8755         specific types for font_desc and tabs args, move them to
8756         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
8757         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
8758
8759         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
8760         use GTK_TYPE_POINTER for signal signatures as a hack-around
8761
8762         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
8763         PangoTabArray
8764
8765         * gtk/gtktextlayout.c (line_display_iter_to_index): 
8766         make static
8767         (line_display_index_to_iter): make static
8768
8769         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
8770         to marshal a string not a boxed
8771
8772         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
8773
8774         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
8775         since the UTF-8 isn't validated yet
8776
8777         * gtk/gtktextsegment.c (char_segment_check_func): don't require
8778         lines to end in '\n'
8779         
8780         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
8781         forward_to_delimiters, and grapheme boundaries
8782         (gtk_text_view_delete_from_cursor): properly handle non-newline
8783         delimiters, and grapheme boundaries
8784
8785         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
8786         to gtk_text_iter_forward_to_delimiters, and make it work properly
8787         if empty lines end with a character other than '\n'
8788
8789         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
8790         position
8791
8792 2000-12-15  Tor Lillqvist  <tml@iki.fi>
8793
8794         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
8795
8796         * gtk/gtk.def
8797         * gdk/gdk.def: Update.
8798
8799         * gdk/win32/gdkmain-win32.c
8800         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
8801         gdkmain-win32.c here.
8802
8803         * gdk/win32/makefile.mingw.in (all): No need to make
8804         gdk-win32res.o here, the makefile one step up will call us to make
8805         it.
8806
8807         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
8808         gdkkeys-win32.
8809
8810         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
8811
8812         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
8813         call to g_source_add().
8814
8815         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
8816         leak. Thanks to Andreas Kemnade.
8817
8818 2000-12-13  Havoc Pennington  <hp@pobox.com>
8819
8820         * gtk/gtktextbtree.h: Remove double _ in front of some functions
8821
8822         * gtk/gtktext*.[hc]: update accordingly
8823         
8824 2000-12-13  Havoc Pennington  <hp@pobox.com>
8825
8826         * gtk/gtktextbtree.h: Put _ in front of every function in this 
8827         header file
8828
8829         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
8830
8831 2000-12-13  Alex Larsson  <alexl@redhat.com>
8832
8833         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
8834         Add support for ps2 intellimouse.
8835
8836         * gdkkeyboard-fb.c:
8837         Move shift-F1 repaint handling to xlate handler only.
8838         
8839         * docs/README.linux-fb:
8840         Add imps2 to docs.
8841         Document the new refresh keys.
8842         
8843 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
8844
8845         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
8846
8847         * gtk/gtkbox.c: change property types from (u)long to (u)int for
8848         ::position and ::padding.
8849
8850         * gtk/gtkcontainer.c: make ::border_width an INT property.
8851
8852         * gtk/gtkpacker.c: make ::position an INT property.
8853
8854         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
8855         guard against NULL h/v scrollbars, since this is used at construction
8856         time.
8857
8858         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
8859         internal gtk_clist_constructor().
8860
8861         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
8862         gtk_ctree_constructor().
8863
8864         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
8865         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
8866
8867         * docs/reference/Makefile.am: fun stuff, disabled docs generation
8868         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
8869
8870         * gtk/gtkwidget.[hc]:
8871         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
8872         and gtk_widget_get().
8873         (gtk_widget_new): use g_object_new_valist().
8874         (gtk_widget_set): use g_object_set_valist().
8875
8876         * gtk/gtkobject.[hc]:
8877         removed gtk_object_arg_get_info(), gtk_object_getv(),
8878         gtk_object_query_args(), gtk_object_newv(),
8879         gtk_object_class_add_signals(),
8880         gtk_object_class_user_signal_new(),
8881         gtk_object_class_user_signal_newv(),
8882         gtk_object_arg_set(), gtk_object_arg_get(),
8883         gtk_object_args_collect(),
8884         gtk_object_default_construct(),
8885         gtk_object_constructed(),
8886         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
8887         removed nsignals, signals and n_args members from GtkObjectClass.
8888         (gtk_object_new): use g_object_new_valist().
8889         (gtk_object_set): use g_object_set_valist().
8890         (gtk_object_get): use g_object_get_valist().
8891         
8892         * gtk/gtkcompat.h: define gtk_object_default_construct().
8893         
8894         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
8895         g_object_new().
8896
8897         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
8898         fucntions, cleaned up method assignments (make sure your structures
8899         are setup properly before calling out). removed all GTK_CONSTRUCTED
8900         hacks ;)
8901
8902 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
8903
8904         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
8905         off-by-one error in checks. (Dave Lambert)
8906
8907 2000-12-12  Alexander Larsson  <alexl@redhat.com>
8908
8909         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
8910         Don't free gdk_fb_keyboard twice.
8911
8912 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
8913
8914         * gtk/testgtk.c:
8915         (create_tooltips): 
8916         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
8917         use GObject swapped_signal:: properties instead.
8918
8919         * gtk/gtkcellrenderertoggle.c: 
8920         * gtk/gtkcellrenderertextpixbuf.c: 
8921         * gtk/gtkcellrenderertext.c: 
8922         * gtk/gtkcellrendererpixbuf.c: 
8923         * gtk/gtkcellrenderer.c:
8924         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
8925         missing warnings for invalid property ids, install properties
8926         with g_object_class_install_property() now.
8927         
8928         * gtk/gtksignal.c:
8929         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
8930         
8931 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
8932         
8933         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
8934         to determine if a window is the focus widget within
8935         its toplevel.
8936
8937         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
8938         to be boolean.
8939
8940         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
8941         of the case where the container CAN_FOCUS to here instead
8942         of having it in each individual move-the-focus place.
8943
8944         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
8945         focusing to be geometric in a much more obvious sense. Arrowing
8946         around is still non-intuitive because it isn't perfect and
8947         because entries, etc, grab the arrow keys, but it at least
8948         usually will do what you expect now.
8949         
8950         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
8951         file.
8952
8953         * gtk/gtknotebook.c: Change tabs to be a single item in
8954         the focus chain. Make movement of focus on tabs with arrow
8955         keys wrap around.
8956         
8957         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
8958         CHECK_FIND_CHILD macro to give informative error messages
8959         instead of silent returns.
8960
8961         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
8962         flag since we handle GdkReturn on the tabs.
8963
8964         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
8965         windows rather than sending expose events directly.
8966
8967         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
8968         definition for GtkNotebookPage into .c file, since it is private.
8969
8970         * gtk/testgtk.c (create_notebook): Add option for 
8971         testing borderless notebook.
8972
8973         * gtk/testgtk.c (page_switch): Removed egregious poking
8974         around in GTK+ internals.
8975
8976         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
8977
8978         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
8979         properly through gtk_clist_focus. Make the title headers a
8980         single item in the tab-focus chain, and make left-right wrap
8981         around.
8982
8983         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
8984         focus method so that wrapping around works properly.
8985
8986         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
8987         that is handled for the widget now. 
8988
8989 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
8990
8991         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
8992         widgets as TOPLEVEL.
8993
8994         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
8995         TOPLEVEL widgets are containers.
8996
8997         * gtk/gtkinvisible.h: Remove useless include.
8998
8999 2000-12-11  Havoc Pennington  <hp@redhat.com>
9000
9001         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
9002         Handle chopping off \r\n and 0x2029 in addition to \n before
9003         passing to PangoLayout
9004
9005         * gtk/gtkimcontextsimple.c
9006         (gtk_im_context_simple_get_preedit_string): 
9007         return an empty string if no match is pending
9008
9009         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
9010         assertion that the returned preedit string was sane
9011
9012         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
9013         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
9014         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
9015
9016 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
9017
9018         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
9019         Fix up finalizer to chain to its parent.
9020
9021 2000-12-11  Alexander Larsson  <alexl@redhat.com>
9022
9023         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
9024         Clearified the difference between the keyboard types. Wrote a note
9025         about the magic sysrq key to get out of raw mode.
9026
9027 2000-12-09  James Henstridge  <james@daa.com.au>
9028
9029         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
9030         member to hold masks for detecting the start of a protocol packet.
9031         (mouse_devs): add packet start masks for ps2 and ms device types.
9032         Left the mask for fidmour blank, as I have no idea what it should
9033         be.
9034         (handle_mouse_io): skip bytes until we get to the start of a
9035         packet.  My Logitech mouse seems to be passing an extra NULL pad
9036         byte, and GPM does a similar thing here.
9037         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
9038         this is the ms mouse driver.
9039         (gdk_fb_mouse_ms_packet): fix up button handling, which was
9040         completely broken except for button1.  It was checking the wrong
9041         bit in the packet for the status of the right mouse button, and
9042         wrongly assuming right == button2 rather than 3.  I fixed that and
9043         also added support for middle button (button2).
9044
9045 2000-12-08  Havoc Pennington  <hp@redhat.com>
9046
9047         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
9048         that cause a segfault on text insertion
9049
9050         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
9051         warning
9052
9053         * gtk/gtktextiter.c (test_log_attrs): use
9054         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
9055
9056         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
9057         Get log attrs for a line, using a cache stored on the buffer
9058         
9059         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
9060         reported by Jeff Franks
9061
9062 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9063
9064         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
9065         /dev/ttyS0 -> /dev/mouse
9066
9067 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9068
9069         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
9070         Added dummy gdk_fontset_load.
9071
9072 2000-12-08  Alexander Larsson  <alexl@redhat.com>
9073
9074         * docs/README.linux-fb:
9075         * docs/Makefile.am:
9076         Initial GtkFB docs.
9077         
9078         * gdk/linux-fb/Makefile.am:
9079         Define GDK_DATA_PREFIX.
9080
9081         * gdk/linux-fb/gdkmain-fb.c:
9082         Fix typo.
9083         Change default display to /dev/fb0.
9084
9085         * gdk/linux-fb/gdkpango-fb.c:
9086         Add $(prefix)/share/fonts/ to font path.
9087         
9088 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9089
9090         * gdk/linux-fb/gdkkeyboard-fb.c:
9091         New file containing the abstracted keyboard driver. Most code
9092         taken from gdkinput-ps2.c
9093
9094         * gdk/linux-fb/gdkinput-ps2.c:
9095         Removed file.
9096         
9097         * gdk/linux-fb/Makefile.am:
9098         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
9099
9100         * gdk/linux-fb/gdkcolor-fb.c:
9101         display->fb was renamed to display->fb_fd.
9102
9103         * gdk/linux-fb/gdkcursor-fb.c:
9104         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9105
9106         * gdk/linux-fb/gdkinput.c:
9107         Moved gdk_input_init here from gdkinput-ps2.c
9108
9109         * gdk/linux-fb/gdkmain-fb.c:
9110         display->fb was renamed to display->fb_fd.
9111         Now the tty and the console is opened here instead
9112         of in the keyboard driver. Also check GDK_VT to see what
9113         tty to open.
9114         Move gdk_beep () here from gdkinput-ps2.c
9115         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9116
9117         * gdk/linux-fb/gdkmouse-fb.c:
9118         Add header.
9119         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9120         Return correct keyboard modifiers.
9121         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
9122
9123         * gdk/linux-fb/gdkprivate-fb.h:
9124         Add tty and vt info to display.
9125         Add orignal modeinfo storage to display
9126         Update global functions
9127
9128         * gdk/linux-fb/gdkwindow-fb.c:
9129         Added gdk_fb_window_find_focus().
9130         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9131
9132 2000-12-07  Havoc Pennington  <hp@pobox.com>
9133
9134         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
9135         function, noticed by Alex
9136
9137 2000-12-06  Elliot Lee  <sopwith@redhat.com>
9138
9139         * configure.in: Detect freetype properly
9140
9141         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
9142         above.
9143
9144 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9145
9146         * gdk/linux-fb/Makefile.am:
9147         Add gdkmouse-fb.c
9148         
9149         * gdk/linux-fb/gdkmouse-fb.c:
9150         New file. Abstracted the mouse drivers a bit.
9151
9152         * gdk/linux-fb/gdkcursor-fb.c:
9153         The cursor hide/show functions was moved here from gdkinput-ps2.c.
9154
9155         * gdk/linux-fb/gdkinput-ps2.c:
9156         Removed old mouse handling code. Moved cursor handling code
9157         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
9158         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
9159         gdk_mouse_get_info.
9160
9161         * gdk/linux-fb/gdkmain-fb.c:
9162         Pass NULL pointers for x,y in gdk_mouse_get_info call.
9163
9164         * gdk/linux-fb/gdkprivate-fb.h:
9165         Removed public gdk_fb_find_common_ancestor, added and renamed
9166         functions for the new mouse handling code.
9167
9168         * gdk/linux-fb/gdkwindow-fb.c:
9169         Moved gdk_fb_window_send_crossing_events here. added global
9170         variable gdk_fb_window_containing_pointer. made
9171         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
9172         renamed to gdk_mouse_get_info.
9173
9174 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9175
9176         * gdk/linux-fb/gdkevents-fb.c:
9177         Update to match latest gmain/gsource changes.
9178
9179         * gdk/linux-fb/gdkinput-ps2.c:
9180         Bogus gdk_keymap_get_entries_for_keycode implementation so that
9181         it links. Will be implemented later.
9182
9183 2000-12-03  Havoc Pennington  <hp@pobox.com>
9184
9185         * gdk/Makefile.am: add gdkkeys.[hc]
9186
9187         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
9188         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
9189
9190         * acconfig.h, configure.in: add checks and command line options
9191         for XKB
9192
9193         * gdk/x11/gdkkeys-x11.c: Implement the above functions
9194         
9195         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
9196         and group in the key event
9197
9198         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
9199         field with the low-level hardware key code, and a group
9200         field with the keyboard group
9201
9202         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
9203         and declare a couple globals used for keymap handling
9204         
9205         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
9206         hold down Shift-Control and type a hex number to get a Unicode 
9207         character corresponding to the hex number
9208         (gtk_im_context_simple_get_preedit_string): Fix cursor position
9209         (return bytes not chars)
9210
9211 2000-12-05  Elliot Lee  <sopwith@redhat.com>
9212
9213         * gdk/gdkcolor.h: Make GdkColor specify element sizes
9214         to avoid waste on 64-bit platforms.
9215
9216 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
9217
9218         * INSTALL: Fix link to PNG home, remove reference
9219         to fribidi.
9220
9221         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
9222         
9223         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
9224         tested.)
9225
9226         * gtk/gtkcheckmenuitem.c: Permanently turn on
9227         always_show_toggle.
9228
9229         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
9230         be NULL. (Vladimir Klebanov, #26545)
9231
9232         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
9233         some signed/unsigned comparison problems. (#6510,
9234         David Kaelbling)
9235
9236         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
9237         return type to boolean (Oskar Liljeblad, #18648)
9238
9239 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9240
9241         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
9242         Remove bogus colormap setting.
9243
9244 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9245
9246         * gdk/linux-fb/gdkcolor-fb.c:
9247         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
9248
9249         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
9250         Must set colormap.
9251         
9252 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
9253
9254         * docs/tutorial/gtk-tut.sgml: DND updates
9255
9256 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
9257
9258         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
9259         Remove old debug g_warning().
9260         (gdk_fb_draw_drawable): The src argument can be either a wrapper
9261         or an implementation, just pass the implementation to draw_drawable_2.
9262         
9263         * gdk/linux-fb/gdkprivate-fb.h:
9264         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
9265
9266         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9267         clear and invalidate area when window is destroyed.
9268         (send_map_events): Remove old commented out code.
9269
9270 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9271
9272         * gdk/linux-fb/gdkpango-fb.c:
9273         Use italic instead of oblique in font aliases.
9274         
9275         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
9276         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
9277         other unsupported functions.
9278
9279 2000-12-04  Havoc Pennington  <hp@redhat.com>
9280
9281         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
9282
9283         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
9284
9285         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
9286
9287         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
9288         hack to avoid infinite loops (synthetic expose event) - 
9289         Owen has more appropriate fixes in a branch he'll check in later.
9290
9291         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
9292         separator, CR, and CRLF as line ends
9293
9294         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
9295         into lines using pango_find_paragraph_boundary(); other bits of
9296         the widget are still going to be broken if the boundary isn't '\n'
9297         though
9298
9299 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9300
9301         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
9302         multiply.
9303
9304         * gdk/linux-fb/gdkpango-fb.c:
9305         Copied some 26.6 scaling macros from pango to clean up the rounding.
9306         (pango_fb_font_get_glyph_info): Correct sign on x value.
9307
9308         * gdk/linux-fb/gdkprivate-fb.h:
9309         Removed unreferenced external functions.
9310
9311         * modules/linux-fb/Makefile.am: Use ` instead of '.
9312
9313         * modules/linux-fb/basic.c:
9314         Remove dead code. In particular the dummy lang engine which broke all
9315         pango layouts in GtkFB. Don't include tables-big.i anymore.
9316
9317         * modules/linux-fb/tables-big.i:
9318         Upgrade to latest version from pango. Left for reference, basic_ranges
9319         moved to basic.c.
9320         
9321 2000-12-04  Havoc Pennington  <hp@redhat.com>
9322
9323         Fix bugs Alex found:
9324         
9325         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
9326         to "draw"
9327
9328         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
9329
9330         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
9331
9332         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
9333         implementation in here, apparently the expose() implementation was
9334         dead code.
9335
9336 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9337
9338         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
9339         Return positive descent.
9340
9341 2000-12-02  Havoc Pennington  <hp@pobox.com>
9342
9343         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
9344         method and signal
9345         
9346         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
9347         calls gdk_window_process_updates() to push the exposes through
9348         (gtk_widget_class_init): No more draw signal, no
9349         gtk_widget_real_draw()  
9350         
9351         * gtk/gtkbin.c (gtk_bin_draw): remove
9352
9353         * gtk/gtkbox.c (gtk_box_draw): remove
9354
9355         * gtk/gtkbutton.c (gtk_button_draw): remove
9356
9357         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
9358
9359         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
9360
9361         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
9362
9363         * gtk/gtkclist.c (gtk_clist_draw): remove
9364
9365         * gtk/gtkentry.c (gtk_entry_draw): remove
9366
9367         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
9368
9369         * gtk/gtkfixed.c (gtk_fixed_draw): remove
9370
9371         * gtk/gtkframe.c (gtk_frame_draw): remove
9372
9373         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
9374
9375         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
9376
9377         * gtk/gtklayout.c (gtk_layout_draw): remove
9378
9379         * gtk/gtklist.c (gtk_list_draw): remove
9380
9381         * gtk/gtklistitem.c (gtk_list_item_draw): remove
9382
9383         * gtk/gtkmenu.c (gtk_menu_draw): remove
9384
9385         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
9386
9387         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
9388
9389         * gtk/gtknotebook.c (gtk_notebook_draw): remove
9390
9391         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
9392
9393         * gtk/gtkpacker.c (gtk_packer_draw): remove
9394
9395         * gtk/gtkrange.c (gtk_range_draw): remove
9396
9397         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
9398
9399         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
9400
9401         * gtk/gtktable.c (gtk_table_draw): remove
9402
9403         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
9404
9405         * gtk/gtktext.c (gtk_text_draw): remove
9406
9407         * gtk/gtktextview.c (gtk_text_view_draw): remove
9408
9409         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
9410
9411         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
9412
9413         * gtk/gtktree.c (gtk_tree_draw): remove
9414
9415         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
9416
9417         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
9418
9419         * gtk/gtkviewport.c (gtk_viewport_draw): remove
9420
9421         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
9422
9423         * gtk/gtkvscale.c (gtk_vscale_draw): remove
9424
9425         * gtk/gtkwindow.c (gtk_window_draw): remove
9426
9427 2000-20-01  Anders Carlsson  <andersca@gnu.org>
9428
9429         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
9430         a GtkToggleButton is both insensitive and active, it was being
9431         drawn by the GtkButton draw handler which doesn't check the
9432         state. Now it's calling gtk_toggle_button_paint instead.
9433         
9434 2000-12-01  Havoc Pennington  <hp@redhat.com>
9435
9436         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
9437         dangling pointers to the appearance attributes from the 
9438         line display
9439
9440         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
9441         width/height to mean "full width/height of drawable"
9442
9443         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
9444         click to select word/line
9445         
9446         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
9447         when getting log attrs. Get a slice, so that pixmaps and stuff
9448         are properly handled.
9449
9450         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
9451         paste into the selection (replaces selection now, previously
9452         crashed or added to selection). Reveals longstanding btree bug -
9453         select multiple lines, middle-click on the selection, boom. This
9454         isn't related to my changes though.
9455
9456         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
9457         PangoLogAttrs changes
9458         (gtk_entry_move_backward_word): ditto
9459
9460         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
9461         functions return bool whether the iter moved onto a
9462         dereferenceable position.
9463  
9464         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
9465         functions for motion in terms of display lines.
9466
9467         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
9468         get the buffer a mark is inside
9469         
9470 2000-12-01  Alexander Larsson  <alexl@redhat.com>
9471
9472         * gdk/linux-fb/Makefile.am:
9473         * modules/linux-fb/Makefile.am:
9474         Freetype 2 final uses freetype-config
9475
9476         * gdk/linux-fb/gdkpango-fb.c:
9477         Upgrade to use Freetype 2 final.
9478         More flexible support for font aliases, this also fixes a bug with
9479         GtkFontSelector, as the aliases must be visible in the font/family list,
9480         or GtkFontSelector reads uninitialized memory.
9481
9482 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
9483
9484         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
9485         XGetIMValues to properly terminate variable argument list, and do
9486         NULL return check for ic_values and xim_styles.
9487
9488         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
9489         Restore preedit state after XmbResetIC().
9490         
9491         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
9492         XvaCreateNestedList() should take XvaNestedList, but not
9493         XvaNestedList*.
9494
9495         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
9496         preedit_draw_callback, preedit_caret_callback): Match
9497         "preedit-changed" signal name to "preedit_changed" to be
9498         consistent to the spec.
9499
9500         * gtk/gtkimcontextsimple.c (check_table):
9501         Match "preedit-changed" to "preedit_changed" to be consistent
9502         to the spec.
9503
9504 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
9505
9506         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
9507         gc->clip_region == NULL>
9508
9509 2000-11-30  Tor Lillqvist  <tml@iki.fi>
9510
9511         Changes by Hans Breuer:
9512         
9513         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
9514         Dont't use negative width and height as max_hints. This fixes
9515         Owen's recent testgtk changes for win32.
9516
9517         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
9518         gdk_win32_hdc_release): These are exported and may be called with
9519         other drawable types than our GdkDrawableImplWin32 (?).
9520
9521         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
9522         so always #define USE_BACKING_STORE.
9523
9524         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
9525         of printf for debugging output.
9526
9527         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
9528         
9529         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
9530
9531         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
9532         declaration.
9533
9534         * gtk/gtktexttypes.h: Ditto.
9535
9536         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
9537         (GDK_VoidSymbol) also if in case of arg check failure.
9538
9539         * gtk/gtkimcontextsimple.c
9540         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
9541         position to the pointer, but to the variable it points to.
9542
9543         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
9544
9545         * gtk/gtk.def: Updates.
9546
9547 2000-11-29  Elliot Lee  <sopwith@redhat.com>
9548
9549         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
9550         GTK_TYPE_TREE_MODEL.
9551
9552 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9553
9554         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
9555         Set the size of the font from the description.
9556         (gdk_text_width): Gross hack that calculates the width
9557         of text by text_length * size/2. This is necessary because
9558         GtkLabel does some ugly gtk_string_width call to calculate
9559         an good size.
9560         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
9561
9562 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
9563
9564         * docs/tutorial/gtk-tut.sgml: DND updates
9565
9566 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9567
9568         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
9569         If you pass width or height == 0 to gdk_window_clear_area they
9570         should be calculated from the window size.
9571
9572 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9573
9574         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
9575         a grab, but no grab-cursor, use the cursor from the grabbed
9576         window. (gdk_fb_window_send_crossing_events): Send normal
9577         enter/leave notifications if grab and owner_events == TRUE.
9578
9579 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9580
9581         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
9582         Do implicit button grabs, even if the window doesn't
9583         want the event.
9584         (gdk_fb_window_send_crossing_events): If there is a
9585         grab, only the grabbed window gets normal enter/leave
9586         notifications. On ungrab go from grabbed window to current.
9587         Don't send any notification to b when propagating from c -> b.
9588         If setting a grab on window, don't set prev_window.
9589         (handle_mouse_input): Send enter/leave events to the window the
9590         mouse is over, not the grabbed one.
9591         
9592 2000-11-28  Elliot Lee  <sopwith@redhat.com>
9593
9594         * gdk/gdkregion-generic.c: Zap warning.
9595         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
9596         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
9597
9598 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
9599
9600         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
9601         The cursor should be hidden if it is part of either the
9602         source or destination region. Not only if it is in both.
9603         (gdk_window_set_transient_for): Silence warnings.
9604
9605 2000-11-28  Alexander Larsson  <alexl@redhat.com>
9606
9607         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
9608         The default mode in X is Pie Arcs, therefore that is
9609         what Gtk+ uses.
9610
9611 2000-11-28  Alexander Larsson  <alexl@redhat.com>
9612
9613         * gdk/linux-fb/gdkinput-ps2.c:
9614         Implement correct EnterNotify/LeaveNotify:
9615         (gdk_fb_window_send_crossing_events): New function that sends
9616         all GdkCrossingEvents from the last mouse-window to the specified
9617         destination.
9618         (gdk_fb_window_visibility_crossing): Removed function.
9619         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
9620         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
9621         instead of gdk_window_get_pointer() for better readability.
9622
9623         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
9624         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
9625
9626         * gdk/linux-fb/gdkprivate-fb.h:
9627         removed gdk_fb_window_visibility_crossing, added
9628         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
9629
9630         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
9631         New function that finds the least common ancestor of two windows.
9632         (gdk_window_show, gdk_window_hide):
9633         Use gdk_fb_window_send_crossing_events.
9634         (gdk_fb_window_move_resize): Send configure events to toplevel
9635         windows. Use gdk_fb_window_send_crossing_events.
9636
9637 2000-11-27  Havoc Pennington  <hp@redhat.com>
9638
9639         * gtk/gtkprivate.h (enum): Remove a trailing comma
9640
9641 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
9642
9643         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
9644         the "changed" callback of the adjustment.  We need to redraw the
9645         spin button's arrows when the adjustment's range changes.
9646         (adjustment_changed_cb): Draw the arrows.
9647         (gtk_spin_button_value_changed): Draw the arrows.
9648
9649 2000-11-23  Alexander Larsson  <alexl@redhat.com>
9650
9651         * gdk/linux-fb/gdkselection-fb.c:
9652         Initial selection implementation.
9653
9654         * gtk/gtkselection.c:
9655         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
9656         requestor in gtk_selection_request.
9657         
9658         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
9659         Added gdk_selection_property atom.
9660
9661         * gdk/linux-fb/gdkprivate-fb.h:
9662         Export _gdk_selection_window_destroyed.
9663         Removed mask_off_x/y from GdkCursorPrivateFB.
9664         Removed hbearing, added top, left to PangoFBGlyphInfo.
9665
9666         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9667         Call _gdk_selection_window_destroyed
9668         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
9669         the root window has been created.
9670         (static_dx_hack, static_dy_hack, compare_draw_rects,
9671         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
9672         in region. They are already sorted. Instead just traverse them in
9673         reverse if draw_direction < 0.
9674         
9675         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
9676         Double-clicks must be sent after the normal button_press.
9677         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
9678         
9679         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
9680         Pass _gdk_fb_screen_gc instead of NULL.
9681
9682         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
9683         Initialize gdk_selection_property.
9684         (gdk_event_make): Remove unused code.
9685
9686         * gdk/linux-fb/gdkcursor-fb.c:
9687         Make the pixmap for the cursor the same size as the mask. Also remove
9688         the mask_off_x/y fields in GdkCursorPrivateFB and combine
9689         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
9690         Now the whole cursor is visible.
9691
9692         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
9693         Fix bug where xdest+height instead of ydest+height was used
9694         to calculate if the source and dest overlapped. This fixes the
9695         redraw bug when the main window in testgtk was scrolled when
9696         partially covered by a tall window.
9697         Copy rectangles in region in order depending on draw_direction.
9698         Also moved the draw_direction flipping of start_y and end_y into
9699         the gc functions, as this might not be what all of them want.
9700         (gdk_fb_draw_lines): Support dashed lines.
9701         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
9702         so that the text is positioned correctly (was 1 pixel high).
9703
9704         gdk/linux-fb/gdkgc-fb.c:
9705         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
9706         all lines were drawn a pixel to short. Also checked the default of
9707         the rest of the values, and they're the same as X now.
9708
9709         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
9710         Clean up pixel positioning of the glyphs. Just use bgy->top and
9711         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
9712         to all divisions to get correct rounding behaviour.
9713
9714         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
9715         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
9716         Moved start_y/end_y flip into draw_drawable implementations.
9717         Flip also x rendering when draw_direction < 0.
9718         Remove unneccesary multiply with draw_direction.
9719
9720 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
9721
9722         * docs/tutorial/gtk-tut.sgml:
9723           - get rid of gtk_toggle_button_toggled FUD
9724           - start DND section - needs work - based on:
9725                 http://wolfpack.twu.net/docs/gtkdnd/
9726
9727 2000-11-22  Alexander Larsson  <alexl@redhat.com>
9728
9729         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
9730         Correct calculation of font metrics. Now GtkEntrys have sane
9731         size.
9732
9733 2000-11-22  Alexander Larsson  <alexl@redhat.com>
9734
9735         * gdk/gdktypes.h:
9736         Add new type GdkSpan
9737         
9738         * docs/reference/gdk/gdk-sections.txt,
9739         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
9740         gdk/gdkregion.h:
9741         Implement and document gdk_region_spans_intersect_foreach.
9742
9743         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
9744         Add new file gdkrender-fb.c which contains all core
9745         rendering code.
9746         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
9747         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
9748         (optimized rectangle fillers).
9749
9750         * gdk/linux-fb/gdkdrawable-fb2.c:
9751         Move all rendering code to gdkrender-fb.c.
9752         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
9753         Use the new span intersection functions in gdk_fb_fill_spans.
9754         gdk_fb_draw_rectangle() clips filled rectangles and calls
9755         gc->fill_rectangle with the result.
9756         gdk_fb_fill_spans() gets extra argument "sorted".
9757
9758         * gdk/linux-fb/gdkevents-fb.c:
9759         Remove unused includes and defines.
9760         New function gdk_fb_get_time() to get correct time for events.
9761
9762         * gdk/linux-fb/gdkinput-ps2.c:
9763         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
9764         Make sure to set the time of all events.
9765
9766         * gdk/linux-fb/gdkmain-fb.c:
9767         Use gdk_fb_get_time ().
9768
9769         * gdk/linux-fb/gdkprivate-fb.h:
9770         New virtual GC calls: fill_span & fill_rectangle.
9771         Export gdk_fb_get_time().
9772         gdk_fb_fill_spans() gets extra argument "sorted".
9773
9774         * gdk/linux-fb/mi*.c:
9775         Use GdkSpan instead of GdkRectangle.
9776         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
9777         from XFree 4 source)
9778         
9779 2000-11-22    <jrb@redhat.com>
9780
9781         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
9782         reversing the order in an if statement will do.  Doing so managed
9783         to make the treemodelsort half work.  Other half will follow after
9784         I get the insert function fully fixed.
9785
9786 2000-11-21  Elliot Lee  <sopwith@redhat.com>
9787         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
9788         more than 2 bits. Besides, I need to implement an evil hack. :)
9789
9790 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
9791
9792         * docs/tutorial/gtk-tut.sgml: minor corrections
9793
9794 2000-11-20  Jonathan Blandford <jrb@redhat.com>
9795         * gtk/gtktreemodelsort.h: Add convertion functions to let you
9796           convert to and from relative path's and iters.
9797
9798         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
9799           testing sorting functions a bit better.  Currently broken -- will
9800           fix in morning.
9801
9802 2000-11-20  Havoc Pennington  <hp@redhat.com>
9803
9804         * gtk/gtkwidget.c: Documented a bunch of functions in here
9805         (gtk_widget_realize): Warn if you try to realize
9806         a widget with no parent that isn't a toplevel
9807         (gtk_widget_intersect): return a gboolean
9808
9809 2000-11-20  Havoc Pennington  <hp@redhat.com>
9810
9811         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
9812         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
9813         scrolling to be implemented in GDK to finish. Also, right now
9814         we just size_allocate all children on every layout change,
9815         which is pretty lame. Test commented out of testtext.c, 
9816         until it works better.
9817
9818 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
9819
9820         * gdk/linux-fb/gdkdrawable-fb2.c:
9821         Removed unused arguments from gdk_fb_drawable_get_pixel().
9822
9823         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
9824         Renamed fidur specific mouse packet data in MouseDevice to
9825         generic. Used it in ps2 mouse handling code to avoid blocking
9826         reads.
9827
9828 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
9829
9830         * demos/gtk-demo/main.c: Changed to have the list become
9831         non-italic when the demo window is destroyed through an external
9832         event (like a close button).  Doing so found three bugs in the
9833         widget.
9834
9835         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
9836
9837         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
9838         we actually set the cell.
9839
9840         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
9841
9842         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
9843         free a leaked path.  Thanks memprof.
9844
9845 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
9846
9847         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
9848         off-by-one error when destroying allocated segments
9849         on failure. (Elliot)
9850
9851 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
9852
9853         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
9854         memleaks found by Evan Martin.
9855
9856 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
9857
9858         * Released 1.3.2
9859         
9860         * NEWS: Updates for 1.3.2
9861
9862 2000-11-17  Tor Lillqvist  <tml@iki.fi>
9863
9864         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
9865         but in general for window system specific events.
9866
9867         * gtk/gtk.def
9868         * gtk/makefile.mingw.in
9869         * gtk/makefile.msc.in: Update.
9870         
9871         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
9872
9873 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
9874
9875         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
9876         distribute gtk.immodules.
9877
9878         * gtk/Makefile.am (install-data-local): Don't install the
9879         gtk.immodules file created for the uninstalled modules;
9880         instead run gtk-query-immodules after install
9881
9882 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
9883
9884         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
9885         -rpath to the right install location.
9886
9887         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
9888         -export-dynamic.
9889
9890         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
9891         properly.
9892
9893 2000-11-15  Havoc Pennington  <hp@pobox.com>
9894
9895         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
9896         patch from Mikael Hermansson to temporarily stop blinking while
9897         the user is using the keyboard to type or navigate. 
9898
9899         Also, when blinking, stay on for longer than we stay off. Also,
9900         return from start_cursor_blink if !cursor_visible, to save
9901         checking that flag all over the place before we call
9902         start_cursor_blink.
9903
9904 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
9905
9906         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
9907         only contain a "fontset" line, which is now ignored.
9908
9909         * gtk/gtkentry.c (gtk_entry_button_release): Make 
9910         double-click-to-select-word work.
9911         
9912 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
9913
9914         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
9915         Don't move back one char when we are actually at the end of the 
9916         paragraph.
9917
9918 2000-11-15  Robert Brady  <robert@suse.co.uk>
9919
9920         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
9921         'o' < 'p'.
9922         
9923         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
9924         bind_textdomain_codeset.
9925
9926         (gtk_init_check): Make the warning about translating default:LTR
9927         sterner.
9928         
9929 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
9930
9931         * **/Makefile.am : remove unecessary rules for win32-specific
9932         config-substituted targets. If you want these rules, use
9933         --enable-maintainer-mode (called automatically by autogen.sh).
9934         Stops a lot of unneccessary make-time warnings.
9935
9936         * gtk/gtktext{layout,display}.c: Factor in total width as
9937         well as screen when figuring alignment for word-wrap as well as
9938         no wrap; this is necessary to handle lines that cannot be wrapped
9939         at all.
9940
9941 2000-11-15  Havoc Pennington  <hp@redhat.com>
9942
9943         * gtk/testtext.c: Implement essential color cycling feature
9944
9945 2000-11-15  Havoc Pennington  <hp@redhat.com>
9946
9947         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
9948         when we invalidate the main window.
9949
9950         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
9951         GtkTextView will now invalidate the side windows for us when text
9952         changes.
9953
9954 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
9955
9956         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
9957         unconditionally, since we may need to update the horizontal
9958         scrollbars even if the height didn't change.
9959
9960         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
9961         the extra attrs, since some of them affect size.
9962
9963         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
9964         x_offset correctly.
9965
9966 2000-11-15  Havoc Pennington  <hp@redhat.com>
9967
9968         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
9969         don't move the first line out into the margin, instead move the
9970         whole paragraph in order to make space for the first line within 
9971         the margin
9972
9973 2000-11-15  Havoc Pennington  <hp@redhat.com>
9974
9975         * gtk/gtktextview.c (changed_handler): offset redraw rect by
9976         xoffset in addition to yoffset, so horizontal scrolling doesn't
9977         break redraws
9978
9979 2000-11-15  Havoc Pennington  <hp@redhat.com>
9980
9981         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
9982         from the cursor
9983         (render_layout_line): fix reversed test that caused weird
9984         underlines to get drawn
9985
9986 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
9987
9988         * gdk/linux-fb/gdkprivate-fb.h:
9989         Fix debug macros.
9990         
9991 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
9992
9993         * gdk/linux-fb/gdkprivate-fb.h:
9994         Added virtual functions set_pixel, get_color,
9995         fill_span and draw_drawable to the GC.
9996         Added global _gdk_fb_screen_gc to use instead of
9997         NULL when drawing to the screen.
9998         Added _gdk_fb_gc_calc_state() prototype.
9999
10000         * gdk/linux-fb/gdkgc-fb.c:
10001         Call _gdk_fb_gc_calc_state() on any gc state change.
10002
10003         * gdk/linux-fb/gdkglobals-fb.c:
10004         Add _gdk_fb_screen_gc
10005                 
10006         * gdk/linux-fb/gdkdrawable-fb2.c:
10007         _gdk_fb_gc_calc_state() calculates best functions
10008         for the GC state and depth.
10009         Moved bpp specialized code to separate functions.
10010         Added optimized 24 bpp AA draw_drawable.
10011
10012         * gdk/linux-fb/gdkevents-fb.c:
10013         Silence gcc warning.
10014
10015         * gdk/linux-fb/gdkimage-fb.c:
10016         Use _gdk_fb_screen_gc
10017
10018         * gdk/linux-fb/gdkwindow-fb.c:
10019         Init and use _gdk_fb_screen_gc
10020
10021         * gdk/linux-fb/mitypes.h:
10022         Remove unused types.
10023
10024 2000-11-14  Havoc Pennington  <hp@pobox.com>
10025
10026         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
10027         to pixels
10028
10029 2000-11-14  Havoc Pennington  <hp@pobox.com>
10030
10031         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
10032
10033         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
10034         unknown char, no real reason we were using a variable. 
10035         Remove gtk_text_unknown_char variable. Fix all the text widget
10036         files accordingly.
10037
10038         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
10039         since the Unicode spec seems to prefer that character for our
10040         purposes.
10041
10042 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
10043
10044         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
10045         value of g_getenv() isn't freeable, so g_strdup it.
10046
10047         * modules/input/inuktitut.c: Inuktitut input method.
10048
10049         * modules/input/Makefile.am: Build this.
10050         
10051 2000-11-14  Elliot Lee  <sopwith@redhat.com>
10052
10053         * gtk/Makefile.am: Install gtk.immodules, needed for operation
10054         of gtk programs.
10055
10056 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
10057
10058         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
10059         reversed > that was causing Home to go to end of previous line.
10060
10061         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
10062         modified-keypresses (leave for bindings.)
10063
10064         * modules/input/Makefile.am: Remove useless -export-dynamic
10065         from module LDFLAGS.
10066
10067 2000-11-14  Havoc Pennington  <hp@redhat.com>
10068
10069         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
10070         higher.
10071
10072         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
10073         account. Also, render rise, underline, background, etc. for
10074         pixbufs as well as text. Also, draw underlines one pixel higher.
10075
10076         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
10077         PangoAttribute for the rise, so it gets drawn properly. Also,
10078         add the GtkTextAppearance attribute for pixbuf/widget segments
10079         as well; we should go ahead and have rise, underline, background,
10080         stipple work for those
10081
10082         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
10083         Pango
10084
10085 2000-11-15  Tor Lillqvist  <tml@iki.fi>
10086
10087         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
10088
10089         * gtk/gtk.def: Update.
10090
10091         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
10092         included.
10093         (gtk_rc_get_im_module_file): Use run-time installation directory
10094         on Win32.
10095
10096         * gdk/win32/rc/gdk.rc: Remove.
10097         * gdk/win32/rc/gdk.rc.in: New file.
10098         * gdk/win32/rc/Makefile.am: New file
10099         * gdk/win32/Makefile.am: Corresponding changes.
10100
10101         * gtk/gtk.rc: Remove.
10102         * gtk/gtk-win32.rc.in: New file.
10103         * gtk/Makefile.am: Corresponding changes.
10104
10105         * configure.in: Corresponding changes.
10106
10107         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
10108         has a built gtkcompat.h. Developers using CVS code on Win32 can
10109         hand-edit it from gtkcompat.h.in.
10110
10111         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
10112         gtkcompat.h from gtkcompat.h.win32.
10113
10114 2000-11-14  Havoc Pennington  <hp@redhat.com>
10115
10116         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
10117         to default to GDK_ACTION_MOVE if the drag is within a single
10118         widget. Defaults to GDK_ACTION_COPY between widgets.
10119
10120 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
10121
10122         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
10123
10124         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
10125
10126         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
10127         srcdir != builddir
10128
10129         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
10130
10131         * configure.in (GTK_VERSION): Up to 1.3.2
10132
10133         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
10134         gtkimcontextxim.h
10135
10136         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
10137         missing doc comment.
10138
10139 2000-11-14  Alexander Larsson  <alexl@redhat.com>
10140
10141         * modules/linux-fb/basic.c:
10142         Use the glib iconv wrappers.
10143
10144 2000-11-13  Havoc Pennington  <hp@pobox.com>
10145
10146         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
10147         still more bugs.
10148
10149         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
10150         scroll the GdkWindows before realization.
10151
10152 2000-11-13  Havoc Pennington  <hp@redhat.com>
10153
10154         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
10155         where GC didn't always get updated properly
10156
10157         * demos/gtk-demo/textview.c (create_tags): Use subattributes
10158         of fonts instead of setting the entire font
10159
10160         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
10161         setting entire font
10162
10163         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
10164
10165         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
10166         a bunch of individually-settable font attributes. You can still 
10167         use the "font" and "font_desc" args, they just set all the font
10168         attributes at once.
10169
10170 2000-11-13 Elliot Lee <sopwith@redhat.com>
10171
10172         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
10173
10174 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
10175
10176         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
10177         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
10178
10179         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
10180         work better.
10181
10182 2000-11-13  Havoc Pennington  <hp@redhat.com>
10183
10184         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
10185         the module file.
10186
10187         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
10188         dest->language
10189
10190         * gtk/testtext.c: Test pixels above/below/inside paragraphs
10191         settings
10192
10193         * gtk/gtktextview.c: Implement object args and setters/getters for
10194         all the aspects of the GtkTextAttributes that are not set from
10195         GtkWidget attributes. This is spacing, justification, margins,
10196         etc.
10197
10198         (gtk_text_view_set_arg)
10199         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
10200         args
10201         (gtk_text_view_class_init): Add args for justify, left_margin,
10202         right_margin, indent, and tabs
10203         
10204
10205         * gtk/gtktextlayout.c (set_para_values): fix to display indent
10206         attribute properly
10207
10208         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
10209         replace with indent attribute
10210
10211         * gtk/gtktextlayout.c (set_para_values): multiply indent by
10212         PANGO_SCALE
10213
10214         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
10215         rearranging code to do that
10216         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
10217         i.e. don't subtract the top_margin first, just to keep
10218         all margin-futzing in one place.
10219
10220         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
10221
10222         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
10223         special case of last line, Pango now handles this itself.
10224         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
10225         Y coordinate
10226         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
10227         (find_display_line_above): wasn't moving the byte index as it
10228         iterated over lines, so always returned byte 0. Also, port to use
10229         PangoLayoutIter.
10230         (find_display_line_below): same problem as
10231         find_display_line_above. Also, port to use PangoLayoutIter.
10232
10233 2000-11-13  Alexander Larsson  <alexl@redhat.com>
10234
10235         * gdk/linux-fb/*.[ch]:
10236         Massive reindent to gtk+ standard. My hands hurt.
10237
10238         * gdk/linux-fb/gdkcolor-fb.c:
10239         Move GdkColorPrivateFB from inherited to windowing_data
10240
10241         * gdk/linux-fb/gdkcursor-fb.c:
10242         _gdk_cursor_new_from_pixmap made static
10243
10244         * gdk/linux-fb/gdkdnd-fb.c:
10245         GdkDragContextPrivate moved to windowing_data
10246
10247         * gdk/linux-fb/gdkdrawable-fb2.c:
10248         Removed endian.h, use glib endianness macros instead
10249         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
10250         and GDK_DRAWABLE_IMPL_FBDATA
10251
10252         * gdk/linux-fb/gdkfont-fb.c:
10253         Add empty gdk_font_load(). Needed for linking of Gtk+.
10254
10255         * gdk/linux-fb/gdkimage-fb.c:
10256         Removed endian.h, use glib endianness macros instead
10257         Moved GdkImagePrivateFB to windowing_data
10258         gdk_image_new_bitmap didn't always allocate enough
10259         memory.
10260
10261         * gdk/linux-fb/gdkinput-ps2.c:
10262         Added semi-working support for MS serial mice.
10263
10264         * gdk/linux-fb/gdkprivate-fb.h:
10265         s/GdkWindowPrivate/GdkWindowObject/
10266         Removed GdkWindowPrivate typedef
10267         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
10268         Removed GDK_DRAWABLE_P
10269         Move GdkColorPrivateFB from inherited to windowing_data
10270         Moved GdkImagePrivateFB to windowing_data
10271
10272         * gdk/linux-fb/gdkvisual-fb.c:
10273         Removed some unused debug code.
10274
10275         * gdk/linux-fb/gdkwindow-fb.c:
10276         Use stock cursors instead of including X headers.
10277         s/GdkWindowPrivate/GdkWindowObject/
10278
10279         * gdk/linux-fb/mitypes.h:
10280         Removed unused types.
10281
10282         * modules/linux-fb/basic.c:
10283         Use the pango fribidi wrappers.
10284
10285 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
10286
10287         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
10288         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
10289         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
10290         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
10291         GEqualFunc where applicable.
10292         
10293         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
10294         pango_font_description_equal as changed in pango.
10295         
10296         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
10297
10298         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
10299
10300         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
10301
10302         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
10303
10304         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
10305
10306         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
10307
10308         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
10309         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
10310
10311         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
10312         gtk_rc_styles_compare -> gtk_rc_styles_equal.
10313
10314 2000-11-12  Havoc Pennington  <hp@pobox.com>
10315
10316         * demos/gtk-demo/Makefile.am (democodedir): change demo install
10317         dir to datadir/gtk+-2.0/demo
10318
10319         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
10320         sorts of text widget and Pango font bugs. Urgh.
10321
10322         * demos/gtk-demo/Makefile.am (demos): Add textview.c
10323
10324         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
10325         tree that you should double click to see the demo. Fix 
10326         types of variables to reflect changed return values from 
10327         GtkTreeStore and GtkTreeViewColumn constructors.
10328
10329         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
10330         newly-created buffer to prepare for GObject semantics
10331
10332         * gtk/testtext.c: don't leak the buffer with GObject semantics
10333
10334         * gtk/testtextbuffer.c: ditto
10335         
10336 2000-11-12  Havoc Pennington  <hp@pobox.com>
10337
10338         Rename this testgtk to gtk-demo to avoid confusion, and 
10339         install it so people can use it as a supplement to 
10340         the documentation.
10341         
10342         * demos/gtk-demo: Moved from demos/testgtk
10343
10344         * demos/testgtk: Removed
10345
10346         * configure.in: make Makefile in gtk-demo
10347         
10348         * demos/gtk-demo/Makefile.am: Install sample source to 
10349         datadir/gtk-demo (maybe there's a better place?), and 
10350         rename the binary to gtk-demo
10351         
10352         * demos/gtk-demo/main.c (load_file): Load installed sample
10353         source if source isn't found in pwd.
10354
10355 2000-11-09  Havoc Pennington  <hp@pobox.com>
10356
10357         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
10358         argument to set the char displayed when visibility == FALSE
10359         (gtk_entry_create_layout): If !entry->visible, replace 
10360         all chars with the "invisible char"
10361
10362         * gtk/testgtk.c: Test the invisible_char deal
10363         
10364 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
10365
10366         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
10367         can't get a native font in the right encoding.
10368
10369 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
10370
10371         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
10372         respectively.
10373
10374 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
10375
10376         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
10377         Fix warning when moving between paragraphs.
10378
10379         * gtk/gtkentry.[ch]: Change move => move_cursor, 
10380         delete => delete_from_cursor, insert => insert_at_cursor
10381
10382 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
10383
10384         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
10385
10386         * modules/input/imthai-broken.c: A Thai input method for use if
10387         Thai keys are really generating Latin1 keysyms.
10388
10389         * modules/input/Makefile.am: Build these.
10390
10391 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
10392
10393         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
10394         g_filename_{to,from}_utf8 now takes an extra parameter.
10395
10396         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
10397         strftime into UTF-8.
10398
10399         (column_from_x, gtk_calendar_paint_day_names): Support RTL
10400         calendars.
10401
10402         (gtk_calendar_paint_day_names): Draw day names in the right 
10403         place.
10404         
10405 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
10406
10407         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
10408         problem with using result of g_get_charset() backwards -
10409         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
10410
10411         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
10412         negative min_width/height and max_width/height to
10413         mean "requisition"; this allows setting a window
10414         to be user-resizable in only one direction easily.
10415
10416         * gtk/testgtk.c (create_main_window): Remove hard-coded
10417         usize - set a default size in the vertical direction.
10418
10419 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
10420
10421         * gtk/gtkrange.c: Add some missing casts. Support 
10422         2 and 3 button clicks on the arrows to mean 
10423         "move by pages" and "jump to end". (Like gtkspinbutton)
10424
10425 2000-11-12 Hans Breuer <Hans@Breuer.Org>
10426
10427         * gdk/win32/makefile.msc : reflect build module changes
10428
10429         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
10430         from GdkPixmap*, cast implementation member instead.
10431
10432         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
10433         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
10434         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
10435         more Gdi functions return value checking. 
10436         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
10437         GdkImagePrivateWin32 *.
10438
10439         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
10440         menus useable again. Add #pragma message to keep reminded on this issue.
10441         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
10442         windows. This allows to enable backing store on Win32!
10443
10444         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
10445         in drawable is of impl type. Correct specific type checks appropriate.
10446  
10447         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
10448         GDK_WINDOW_DESTROYED before allocating new resources.
10449
10450         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
10451
10452         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
10453         (gdk_window_foreign_new) initialize parent handle.
10454         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
10455
10456         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
10457         Let the GDI invalidate the window on MoveWindow call to fix scrolling
10458         problems (e.g. main buttons in testgtk). 
10459
10460 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
10461
10462         * gtk/gtkentry.c (gtk_entry_key_press): Call 
10463         gtk_widget_activate for GDK_Return.
10464
10465         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
10466         of preedit cursor position.
10467
10468 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
10469
10470         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
10471         static.
10472
10473 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
10474
10475         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
10476         out support for multiple locales; that simple doesn't
10477         work reliably with current Xlib
10478
10479         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
10480         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
10481         Add support for positioning the cursor within the preedit string.
10482
10483 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
10484
10485         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
10486         at XIM input method module.
10487
10488         * gtk/gtktextview.c: Check for bindings after passing
10489         events to im context filter.
10490
10491 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
10492
10493         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
10494         empty attribute lists properly.
10495
10496 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
10497
10498         * gtk/queryimmodules.c (main): Return non-zero exit
10499         status if errors were encountered querying any
10500         modules.
10501
10502         * modules/input/Makefile.am (moduledir): remove
10503         leftover bin program target.
10504
10505         * docs/make-todo: Fix typo in error message.
10506
10507 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
10508
10509         * configure.in: Add modules/input/Makefile
10510
10511 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
10512
10513         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
10514         don't include gtkthemes.h.
10515
10516         * gtk/testgtk.c gtk/testtext.c: Set environment variables
10517         to point
10518
10519         * gtk/Makefile.am: Add new .c and .h files, build 
10520         gtk-query-immodules and use it to create a gtk.immodules
10521         file for use of test programs.
10522
10523         * gtk/gtkpreview.c: remove extra blank line.
10524
10525 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
10526
10527         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
10528         Add the ability to add extra tables beyond the default
10529         one, and also the ability to have compose sequences 
10530         that are prefixes of other compose sequences. 
10531
10532         * gtk/gtkimcontextsimple.c: Export a preedit string which
10533         consists of possible candidates for keystrokes that have
10534         been entered but not yet committed.
10535
10536         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
10537         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
10538
10539         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
10540         Add a function to add input-method switching menu items
10541         to a menu.
10542
10543         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
10544         when switching input methods.
10545
10546         * gtk/gtkimcontextsimple.[ch]: Change the format of
10547         the compose table to allow compose tables of different
10548         lengths / sequence.
10549
10550 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
10551
10552         * gtk/gtkimmodule.[ch]: Support routines for loading
10553         GtkIMContext implementations dynamically at runtime.
10554
10555         * modules/input/imcyrillic-translit.c: A sample input
10556         method (based on GtkIMContextSimple with an extra table),
10557         which demonstrates preedit strings and the module
10558         system for input modules
10559
10560         * gtk/queryimmodules.c: Program to query the available
10561         input modules and write the results into a file.
10562          
10563         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
10564         extra config options "im_module_file" (cache file for
10565         input method modules), and "im_module_path" - path
10566         to look for modules when generating cache file.
10567
10568         This doesn't scale.
10569
10570 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
10571
10572         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
10573         generic code from gtkthemes into a new abstraction
10574         GtkModule which has the logic for implementing
10575         a loadable module which implements a number of 
10576         GObject types.
10577
10578 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
10579
10580         * gtk/gtkeditable.[ch]: Convert GtkEditable from
10581         a class into an interface  
10582         
10583         * gtk/gtkoldeditable.[ch]: Move the old editable
10584         implementation into here, so legacy widgets can
10585         still rely on the implemenation. GtkOldEditable
10586         exports GtkEditable. Make selection handling
10587         code use new text conversion functions (and
10588         handle UTF-8 as a side-effect). Use GtkClipboard
10589         for CLIPBOARD.
10590
10591         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
10592         Adopt to match above changes.
10593
10594         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
10595         avoid GtkOldEditable implementation. Restructure
10596         to reduce number of places that modify state directly.
10597         Move to GtkBindingSet. Display the preedit string.
10598         Queue recomputation of PangoLayout and scroll position
10599         to improve effiency of doing complex changes naively.
10600         Add a menu with cut/copy/paste and input method selection.
10601
10602 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
10603
10604         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
10605         to set preedit string and attributes; display preedit string by
10606         inserting string and attributes at cursor when creating the
10607         GtkTextLineDisplay.
10608
10609         * gtk/gtktextlayout.c: Move all conversions between byte
10610         positions in PangoLayout and GtkTextIter into new functions
10611         line_display_iter_to_index/index_to_iter that properly
10612         handle the preedit string.
10613
10614         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
10615         it to return const char * (eventually will end up
10616         as GCONST char *, most likely.)
10617
10618         * gtk/gtktextview.[ch]: Handle the preedit string, call
10619         gtk_im_context_reset() as necessary, add a menu to switch
10620         input methods.
10621         
10622         * gtk/gtktextlayout.[ch]: Remove useless
10623         gtk_text_layout_get_log_attrs() function.
10624
10625 2000-11-11  Tor Lillqvist  <tml@iki.fi>
10626
10627         * gdk/gdk.def
10628         * gtk/gtk.def: Update.
10629
10630         * gdk/win32/*.c: Add last argument to g_type_register_static()
10631         calls.
10632
10633         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
10634
10635         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
10636         generated by older wheel mouse drivers. Get the correct y
10637         coordinate from WM_MOUSEWHEEL messages.
10638
10639         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
10640         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
10641         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
10642         Debugging functions.
10643
10644         * gdk/win32/gdkprivate-win32.h: Declare them.
10645
10646         * gdk/win32/gdkinput-win32.h: Add declaration for
10647         gdk_input_window_destroy().
10648
10649         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
10650
10651 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
10652
10653         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
10654         function to help handle keeping things in sync.
10655
10656 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
10657
10658         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
10659         BOXED marshallers.
10660
10661         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
10662         (gtk_list_store_class_init): use the new BOXED marshallers.
10663
10664         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
10665         new_with_values to new_with_types.
10666         (gtk_tree_store_get_column_type): add this.
10667         (gtk_tree_store_class_init): use the new BOXED marshallers.
10668
10669         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
10670         mirror some POINTER marshallers.
10671
10672 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
10673
10674         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
10675         allow more interesting iterators.  Also, made the lifecycle of
10676         iterators more explicit.
10677
10678         * gtk/gtktreemodelsort.[ch]: New model for sorting.
10679
10680         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
10681         types.
10682
10683 2000-11-09  Alexander Larsson  <alexl@redhat.com>
10684
10685         * demos/testgtk/menus.c:
10686         Changes to make the new testgtk compile after
10687         gtk_menu_append was removed.
10688
10689         * gdk/linux-fb/gdkdrawable-fb2.c
10690         (gdk_fb_get_depth, gdk_fb_get_visual,
10691         gdk_drawable_impl_fb_class_init): Implement
10692         these drawable functions. Now GtkImages work again.
10693
10694         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
10695
10696         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
10697         
10698         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
10699         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
10700         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
10701         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
10702
10703 2000-11-08  Havoc Pennington  <hp@pobox.com>
10704
10705         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
10706         visible_set args, don't know where these had gone, I thought they
10707         used to be there
10708
10709         * gtk/testtext.c: Add a menu item to apply invisibility tag;
10710         now we can test the feature and see that it's totally broken.
10711
10712 2000-11-08  Havoc Pennington  <hp@pobox.com>
10713
10714         Make DND copy pixbufs and tags when source and target share a 
10715         tag table.
10716         
10717         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
10718         in-process GTK_TEXT_BUFFER_CONTENTS target
10719         (gtk_text_view_drag_data_received): Paste from
10720         GTK_TEXT_BUFFER_CONTENTS if we receive it.
10721
10722 2000-11-08  Alexander Larsson  <alexl@redhat.com>
10723
10724         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
10725         API changes.
10726
10727         * gtk/gtkmenu.c: Add support for scrolling menus.
10728         Remove gtk_menu_append/prepend/insert, these have been moved to
10729         gtkcompat.h as #defines.
10730
10731         * gtk/gtkcompat.h.in:
10732         Add compatibility #defines for gtk_menu_append/prepend/insert
10733
10734         * gtk/gtkmenu.h: Add data needed for scrolling menus.
10735         GtkMenuPositionFunc gets an extra argument push_in.
10736         gtk_menu_append/prepend/insert removed.
10737         
10738         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
10739         positioning behaviour to fit to scrolling menus.
10740
10741         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
10742         into menuitem->submeny. That is wrong, and broke torn
10743         off submenus of torn off menus, since they were unrealized
10744         when the first menu was unrealized.
10745
10746         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
10747         gtk_menu_shell_select_item() since these need to be overridden in
10748         GtkMenu.
10749
10750         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
10751         positioning behaviour to fit to scrolling menus.
10752         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
10753         the current item so that it is prelighted when the menu pops up.
10754         This is a workaround to the fact that the menu doesn't get the
10755         initial enter event (due to grabs).
10756
10757         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
10758         s/gtk_menu_append/gtk_menu_shell_append/
10759
10760         * gtk/gtknotebook.c:
10761         s/gtk_menu_insert/gtk_menu_shell_insert/
10762
10763         * gtk/testgtk.c (create_menu, create_menus):
10764         Create the first menu with 50 items so that menu scrolling
10765         can be tested.
10766         
10767         
10768         Patch from Jonathan Blandford  <jrb@redhat.com>
10769
10770         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
10771         system to handle size requests.  First, we ask what the size of
10772         the toggle is.  Then, when allocating the size, we allocate the
10773         toggle_size first.  This way we can have multiple menu-item
10774         classes w/o needing a seperate class for each.
10775
10776         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
10777         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
10778
10779         * gtk/gtkcheckmenuitem.c
10780         (gtk_check_menu_item_toggle_size_request): New function to handle
10781         the toggle size-request.
10782
10783 2000-11-07  Havoc Pennington  <hp@redhat.com>
10784
10785         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
10786         Half-ass somewhat fix this function, so that scrolling to the
10787         insertion point works. Pango hacking is in the future to really
10788         fix it.
10789
10790         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
10791         length of data, no longer used.
10792
10793         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
10794         method contents in here, get rid of destroy method
10795         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
10796         that were backward. Remove debug spew.
10797         (cut_or_copy): Make the clipboard work with insert_range to
10798         preserve tags and pixbufs, not just the primary selection.
10799
10800 2000-11-07  Havoc Pennington  <hp@redhat.com>
10801
10802         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
10803         to gtk_text_mark_get_visible
10804
10805         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
10806         bug that was generating an invalid iterator
10807
10808         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
10809         ensure_char_offsets() in front of code placing the iter in an
10810         invalid state.
10811
10812         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
10813         make override_location arg const
10814         (paste): Replace the selection if we paste into the 
10815         current selection
10816
10817         * gtk/gtkselection.h: Remove "GtkSelectioData"
10818         (struct _GtkSelectionData): move the definition here.
10819
10820         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
10821         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
10822
10823         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
10824
10825         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
10826         (gtk_text_buffer_insert_range_interactive): implement
10827         (gtk_text_buffer_get_tags): Remove, replaced by
10828         gtk_text_iter_get_tags()
10829
10830         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
10831         limit parameter, to avoid infinite linear scan.
10832         (gtk_text_iter_backward_search): Add search limit
10833         (gtk_text_iter_forward_find_char): Add search limit
10834         (gtk_text_iter_backward_find_char): Add search limit
10835
10836 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
10837
10838         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
10839         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
10840         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
10841         gdk/linux-fb/gdkwindow-fb.c:
10842         use g_object_new() instead of g_type_create_instance() which
10843         is a private function for fundamental type implementations.
10844
10845         * gdk/linux-fb/gdkinput-ps2.c:
10846         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
10847         instead just store the current modifier state. Add a (somewhat broken)
10848         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
10849         Rename exported function gdk_input_ps2_get_mouseinfo to
10850         gdk_input_get_mouseinfo.
10851
10852         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
10853         gdk/linux-fb/gdkwindow-fb.c:
10854         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
10855         
10856
10857 2000-11-02  Havoc Pennington  <hp@redhat.com>
10858
10859         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
10860         use stock buttons. Should be 100% source compatible, appropriate
10861         filesel fields now point to dialog->vbox and dialog->action_area.
10862         On the bizarre side, dialog->action_area and filesel->action_area
10863         are not the same widget.
10864         (gtk_file_selection_init): Put some padding around the selection
10865         entry, so it isn't touching the GtkDialog separator.    
10866
10867         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
10868         use stock buttons, etc. Should also be source compatible.
10869         Set the dialog default title in _init not _new().
10870         
10871         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
10872         Use stock buttons; don't put a button box inside the existing
10873         dialog button box. Don't bother with push/pop colormap anymore.
10874
10875         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
10876         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
10877         for message dialog, and necessary for the font selection and color
10878         selection with help and apply buttons.
10879         
10880         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
10881         to the created button widget. Set GTK_CAN_DEFAULT on the button.
10882         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
10883         between buttons, put less padding around the action area.
10884         (gtk_dialog_run): Exit on unmap rather than on destroy. 
10885         This will also exit the loop if the widget is hidden.
10886         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
10887         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
10888         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
10889         special-case delete event.
10890
10891         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
10892         formatting
10893         
10894 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
10895
10896         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
10897         button to temporarily disable position recording in the
10898         "saved position" test.
10899
10900 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
10901
10902         * gtk/gtkthemes.c: added compat code that temporarily implements
10903         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
10904         going to be revamped by owen's upcoming GtkModule patches, but
10905         untill then people want gtk to build, right? ;)
10906
10907 2000-11-04  Havoc Pennington  <hp@pobox.com>
10908
10909         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
10910         list
10911
10912         * docs/Changes-2.0.txt: Add note about
10913         gtk_container_get_toplevels()
10914
10915         * gtk/gtktextview.h: formatting
10916         
10917         * gtk/gtktextview.c: don't start descriptions with "Returns",
10918         confuses gtk-doc
10919
10920 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
10921
10922         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
10923         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
10924
10925 2000-11-03  Havoc Pennington  <hp@redhat.com>
10926
10927         * gtk/gtktexttagtable.c: Docs
10928         (gtk_text_tag_table_size): return a signed int
10929
10930         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
10931         (gtk_text_tag_event): make the event_object a GObject
10932
10933         * gtk/gtktextview.c: Write API docs for all functions.
10934
10935         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
10936         for gtk_text_view_get_window_type() called on one of the private
10937         windows.
10938
10939         * gtk/gtktextview.c: Instead of accessing text_view->buffer
10940         directly, call get_buffer() which demand-creates a default
10941         buffer. So gtk_text_view_new() can be used to create a view with a
10942         default buffer in it, if you just want an empty text box users can
10943         put data in. Useful for GUI builders also.
10944
10945 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
10946
10947         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
10948         the charset encodign portion MUST be in lowercase.
10949         * gtk/gtkrc.az: added file for Azeri language
10950
10951 2000-11-03  Havoc Pennington  <hp@redhat.com>
10952
10953         Get widgets working on the btree/buffer side. Display of them 
10954         still doesn't work.
10955         
10956         * gtk/gtktextview.c: start implementing child widget stuff
10957
10958         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
10959
10960         * gtk/gtktextlayout.c: handle embedded widgets
10961
10962         * gtk/gtktextdisplay.c: handle embedded widgets
10963
10964         * gtk/gtktextchild.c: Implement all the child anchor goo
10965
10966         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
10967         function
10968
10969         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
10970         (insert_pixbuf_or_widget_segment): abstract out common portions of 
10971         creating a child anchor or a pixbuf segment.
10972         (gtk_text_btree_create_child_anchor): new function
10973         (gtk_text_btree_unregister_child_anchor): new function
10974
10975         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
10976         allocate_child signal on GtkTextLayout
10977
10978         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
10979         values
10980         (gtk_text_iter_get_child_anchor): new function
10981
10982         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
10983         default handler for the changed signal, which calls
10984         gtk_text_buffer_set_modified(), instead of just always emitting
10985         changed then calling set_modified() manually. I guess this is
10986         maybe more flexible. It seems logical.
10987
10988 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
10989
10990         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
10991         now.
10992
10993         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
10994
10995 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
10996
10997         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
10998         been marked static.
10999
11000 2000-11-02  Havoc Pennington  <hp@redhat.com>
11001
11002         * gtk/testgtk.c (create_labels): had a test backward
11003
11004         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
11005         fields, so the dest GC ends up with the correct clip origin, 
11006         etc. Fixes a bug where colored labels didn't redraw 
11007         properly.
11008
11009 2000-11-02  Alexander Larsson  <alexl@redhat.com>
11010
11011         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11012         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
11013         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
11014         Add last argument to t_type_register_static call.
11015         
11016         * gdk/linux-fb/gdkdrawable-fb2.c:
11017         Add last argument to t_type_register_static call.
11018         export the get_image drawable virtual function.
11019
11020         * gdk/linux-fb/gdkimage-fb.c:
11021         Add last argument to t_type_register_static call.
11022         rename gtk_image_get to _gdk_fb_get_image and
11023         export it for use by gdkdrawable-fb2.
11024
11025         * gdk/linux-fb/gdkprivate-fb.h:
11026         export _gdk_fb_get_image.
11027
11028         * gdk/linux-fb/gdkselection-fb.c:
11029         Add new api call stubs.
11030
11031         * gtk/Makefile.am:
11032         Missing ( in linux-fb part.
11033
11034         * modules/linux-fb/Makefile.am:
11035         Must link with gdk_pixbuf or get unresolved symbol.
11036
11037 2000-11-01  Havoc Pennington  <hp@pobox.com>
11038
11039         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
11040         GTK_TYPE_TEXT_ITER and BOXED marshallers
11041
11042         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
11043
11044         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
11045         
11046         * gtk/gtk-boxed.defs: add GtkTextIter
11047
11048         * gtk/gtkmarshal.list: Add marshallers for text widget that 
11049         properly use OBJECT and BOXED
11050
11051 2000-11-01  Havoc Pennington  <hp@redhat.com>
11052
11053         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
11054
11055         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
11056         before returning it. 
11057         
11058 2000-11-01  Havoc Pennington  <hp@redhat.com>
11059
11060         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11061         Clip the rectangle to be rendered to the drawable, since
11062         get_from_drawable() requires a region within the drawable
11063
11064 2000-11-01  Havoc Pennington  <hp@redhat.com>
11065
11066         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
11067         from coordinates.
11068
11069 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
11070
11071         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
11072         it isn't NULL.
11073
11074 2000-11-01  Havoc Pennington  <hp@pobox.com>
11075
11076         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
11077         on a label
11078         (gtk_label_finalize): unref the attr list if any.
11079
11080         * gtk/testgtk.c (create_get_image): close test on second click
11081         (make_message_dialog): close dialog if it exists
11082
11083         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
11084
11085         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
11086         gdk-pixbuf
11087
11088         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
11089         from Pango markup format
11090         (gtk_label_set_markup_with_accel): ditto but with accelerator
11091         parsing
11092
11093         * gtk/gtkimage.c (gtk_image_expose): reformatting.
11094
11095         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
11096         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
11097         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
11098         call gdk_window_get_origin().
11099
11100         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11101         implement GDK_PIXBUF_ALPHA_FULL
11102         
11103 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
11104
11105         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
11106         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
11107         g_signal_handlers_disconnect_matched to block/unblock and disconnect
11108         multiple handlers respectively, instead of only treating the
11109         first handler found (bug reported by owen).
11110
11111 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
11112
11113         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
11114
11115         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
11116
11117         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
11118         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
11119         gtk/gtktreeviewcolumn.h: Fixed inline docs.
11120
11121         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
11122         widget.  Needs writing someday.
11123
11124         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
11125         the docs.
11126
11127 2000-10-30  Havoc Pennington  <hp@redhat.com>
11128
11129         * gtk/gtktextview.h, gtk/gtktextview.c:
11130         Rename delete_at_cursor delete_from_cursor, and 
11131         move to move_cursor.
11132
11133 2000-10-30  Havoc Pennington  <hp@redhat.com>
11134
11135         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
11136         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
11137         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
11138         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
11139         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
11140         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
11141         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
11142         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
11143         gtktexttypes.h, gtktextview.c, gtktextview.h:
11144
11145         Massive reindentation and reformatting. Arg alignment and comments
11146         still need fixing in various places.
11147
11148 2000-10-30  Havoc Pennington  <hp@redhat.com>
11149
11150         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
11151         to be named insert_at_cursor and delete_at_cursor so C++ can
11152         handle them.
11153
11154 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11155
11156         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
11157         to get a double directory separator in case the home directory
11158         ends with one. This would cause trouble especially on Windows,
11159         where the path will be confused with the syntax for an an UNC
11160         (network share) path \\server\share\path.
11161         (gtk_rc_add_initial_default_files): Ditto.
11162
11163 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
11164
11165         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
11166
11167         * gtk/gtktextview.c: Use correct marshallers.
11168
11169 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
11170
11171         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
11172         use new iter stuff, and added all the appropriate signals et al.
11173
11174         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
11175         code is internal to gtk only.
11176
11177 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11178
11179         * gtk/gtk.def
11180         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
11181         glib-genmarshal etc.
11182
11183 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
11184
11185         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
11186         parallel builds.
11187
11188 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
11189
11190         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
11191
11192 2000-10-27  Robert Brady  <robert@suse.co.uk>
11193
11194         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
11195         en_GB (British), ia (Interlingua).
11196
11197 2000-10-26  Havoc Pennington  <hp@redhat.com>
11198
11199         * gtk/gtktextiter.c (my_strrstr): fix constness warning
11200
11201         Fixed output of:
11202         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
11203         
11204         * gtk/gtktextsegment.c (char_segment_new): rename
11205         (_char_segment_new_from_two_strings): rename
11206         (_toggle_segment_new): rename
11207         
11208         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
11209         (make_clipboard_widget): make it static
11210         (text_get_func): static
11211         (text_clear_func): static
11212
11213         * gtk/gtkcolorsel.c (adjustment_changed): make this function
11214         static
11215         (hex_changed): make it static
11216         (hsv_changed): make it static
11217         (opacity_entry_changed): make it static
11218
11219         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
11220         (toggle_segment_check_func): rename with _gtk
11221
11222         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
11223         (_widget_segment_new): rename
11224         (_widget_segment_add): rename
11225         (_widget_segment_remove): rename
11226         (_widget_segment_ref): rename
11227         (_widget_segment_unref): rename
11228
11229         * gtk/gtktextmark.c (_mark_segment_new): Rename
11230         _gtk_mark_segment_new   
11231
11232 2000-10-26  Havoc Pennington  <hp@redhat.com>
11233
11234         * gtk/gtkmarshal.list: add new marshallers used by the text widget
11235         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
11236         types
11237
11238         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
11239         marshaller types
11240
11241         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
11242         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
11243         license on these files.
11244
11245         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
11246         work.
11247
11248         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
11249         runtime random number different for each tree, instead of 
11250         a constant I made up.
11251
11252 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
11253
11254         * gtk/Makefile.am: buncha cleanups, kludged build sources
11255         dependencies with a Makefile: oldest-source-stamp dependancy
11256         for the moment. automake is really fighting us here, with
11257         intentionally not allowing user-defined rules or dependancies
11258         prior to it's -include $(DEP_FILES) statement. sucks rocks!
11259
11260         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
11261         to public headers. tehy have a comment stating that they are
11262         "semi-public" aren't included by gtk.h and if enums popup there,
11263         they can be /*< skip >*/-ed.
11264
11265         * gtk/gtktextlayout.h: 
11266         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
11267         added LGPL... <SIGH>
11268
11269 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
11270
11271         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
11272         GtkTreeIter.  Added iterators everywhere.
11273
11274         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
11275
11276         * gtk/gtktreeviewselection.c: Changed to use the iterators.
11277
11278         * gtk/gtktreestore.c: Changed to use the iterators.
11279
11280         * gtk/gtkliststore.c: Commented out the code.  Will convert to
11281         iterators tomorrow.
11282
11283         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
11284         iterators tomorrow.
11285
11286         * gtk/treestoretest.c: Changed to use iterators.
11287
11288         * demos/testgtk/main.c: Moved to use the new iterator system.
11289
11290 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
11291
11292         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
11293         localization misbehaviour.
11294
11295         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
11296         a useless type without copy/free.
11297
11298         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
11299         of GTK_TYPE_CTREE_NODE.
11300
11301 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
11302
11303         * gtk/gtksignal.c:
11304         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
11305         applicable.
11306
11307         * gtk/gtk-boxed.defs (GtkSelectionData): specify
11308         gtk_selection_data_copy and gtk_selection_data_free
11309         do GtkSelectionData work as params in signals.
11310
11311 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
11312
11313         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
11314         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
11315         couldn't they at least give it a non-standard name?
11316         
11317         * gtk/gtktextlayout.c: arg! yet another implementation of
11318         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
11319
11320         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
11321         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
11322         home. now i know this _is_ a conspiracy.
11323
11324         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
11325         ::state-changed.
11326
11327         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
11328         (gtk_accel_group_create_add): marshaller signature fixups.
11329
11330         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
11331         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
11332
11333         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
11334         anymore.
11335
11336 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
11337
11338         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
11339         due to the signal system changes, it wouldn't build currently. to
11340         be fixed soon.
11341
11342         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
11343
11344         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
11345         so it needs gtk_marshal_VOID__ENUM() instead of
11346         gtk_marshal_NONE__UINT().
11347
11348         * gdk/gdk*.c: adapted type registration functions.
11349
11350         * gtk/gtkbindings.c:
11351         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
11352         gone.
11353
11354         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
11355
11356         * gtk/gtkobject.c:
11357         (gtk_object_destroy):
11358         (gtk_object_shutdown): fixed recursion guards. basically we have to
11359         catch the case where any of GObject.shutdown() or gtk_object_destroy()
11360         is called during ::destroy, and avoid recursion there.
11361
11362         * gtk/gtktypeutils.c:
11363         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
11364         boxed_copy/boxed_free. this needs a more general solution based on a
11365         publically installed code-generator utility.
11366
11367         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
11368         glib's gobject has support for that now.
11369         define GtkSignalMarshaller in terms of GSignalCMarshaller.
11370
11371 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
11372
11373         * gtk/gtksignal.[hc]:
11374         * gtk/gtkmarshal.[hc]:
11375         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
11376         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
11377         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
11378         care of that.
11379
11380         * *.c: marshaller name fixups.
11381
11382         * gtk/gtkmarshal.list: added a comment briefing the format.
11383
11384 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
11385
11386         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
11387         compatibility macros here now. more specifically, most of
11388         the API is preserved (yes, _most_, nonwithstanding the
11389         following exceptions listed, the API is stil lHUGE ;)
11390         things that got removed completely:
11391         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
11392         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
11393         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
11394         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
11395         gtk_signal_remove_emission_hook().
11396         non-functional functions variants:
11397         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
11398         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
11399         not supported anymore.
11400         (gtk_signal_compat_matched): new internal function to aid
11401         implementation of the compatibility macros, it  provides
11402         functionality to block/unblock/disconnect handlers based
11403         on func/data.
11404
11405         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
11406
11407         * *.c: adaptions to new type registration API signatures.
11408
11409 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
11410
11411         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
11412
11413 2000-10-25  Robert Brady  <robert@suse.co.uk>
11414
11415         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
11416         gdk_property_delete): If window == NULL, assume the root window.
11417         (restoring the behaviour that was in 1.2).
11418         
11419         * gtk/testtext.c (save_buffer): Allow creation of new files when
11420         saving.
11421
11422         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
11423         calls to read().
11424
11425 2000-10-25  Tor Lillqvist  <tml@iki.fi>
11426
11427         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
11428
11429         * gdk/win32/gdkdrawable-win32.c
11430         * gdk/win32/gdkimage-win32.c
11431         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
11432         X11 backend.
11433
11434         * gdk/win32/gdkcc-win32.c
11435         * gdk/win32/gdkcolor-win32.c
11436         * gdk/win32/gdkfont-win32.c
11437         * gdk/win32/gdkinput-win32.c
11438         * gdk/win32/gdkmain-win32.c
11439         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
11440
11441 2000-10-24  Havoc Pennington  <hp@redhat.com>
11442
11443         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
11444         it a static function
11445
11446         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
11447         redraw text when a tag is applied to it.
11448
11449         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
11450         (gtk_text_tag_affects_nonsize_appearance): private functions to
11451         see if a tag requires various kinds of redraw/layout to be queued
11452         up.
11453
11454         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
11455
11456         * gtk/testtext.c (fill_example_buffer): Put the cursor 
11457         at the start of the buffer, so search works by default
11458
11459         * gtk/gtktextiter.c (lines_match): init match_start always
11460
11461         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
11462         function, get iter at a line + a byte index
11463
11464         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
11465         to set byte position within a line
11466         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
11467
11468 2000-10-23  Havoc Pennington  <hp@redhat.com>
11469
11470         * gtk/testtext.c: Re-enable the "find" dialog
11471
11472         * gtk/testgtk.c: Add test for gdk_drawable_get_image
11473         
11474         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
11475         the arguments to gdk_draw_drawable were in the wrong order
11476         (gdk_window_paint_init_bg): This function was ignoring the
11477         init_region, instead of clipping to it, so the entire backing
11478         pixmap was cleared on every begin_paint()
11479         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
11480         was in here again, the loop kept using the same GtkWindowPaint
11481         over and over.
11482         (gdk_window_begin_paint_region): Fix a bug where we had two
11483         x_offset instead of x_offset and y_offset
11484
11485         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
11486         before we get the image.
11487         (gdk_draw_drawable): get the composite before we draw the drawable.
11488         (gdk_drawable_real_get_composite_drawable): default
11489         get_composite_drawable implementation that returns the drawable 
11490         itself
11491
11492         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
11493         get_composite_drawable virtual function
11494
11495         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
11496         list-walking bug
11497
11498         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
11499         make this work if the source drawable is a GdkDrawableImplX11
11500         instead of a public drawable type. This is really broken; the
11501         problem is that GdkDrawable needs a virtual method get_xid(), but
11502         of course that doesn't work in practice. Enter RTTI.
11503
11504         Also, improve mismatched depth message.
11505
11506         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
11507         GdkPixmap
11508
11509         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
11510         install _gdk_x11_get_image as our implementation of get_image
11511         
11512         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
11513         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
11514
11515         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
11516         gdk_drawable_get_image
11517
11518         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
11519
11520         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
11521         get_image
11522
11523         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
11524         trailing semicolon after for loop
11525
11526 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
11527
11528         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
11529         where font_desc for widget's context lagged widget's font_desc by
11530         one step.
11531
11532 2000-10-22  Tor Lillqvist  <tml@iki.fi>
11533
11534         * gdk/win32/gdkgc-win32.c
11535         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
11536
11537         * gtk/makefile.mingw.in
11538         * gtk/gtk.def: Updates.
11539
11540         * gtk/testgtk.c: sleep() is called _sleep in MS's C
11541         library.
11542
11543         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
11544
11545         * gtk/makefile.msc: Remove
11546
11547         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
11548
11549         * gtk/Makefile.am: Add it.
11550
11551         * configure.in: Generate it.
11552
11553         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
11554         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
11555         something even if not implemented, to satisfy picky MSVC.
11556
11557         Patches by Hans Breuer:
11558         
11559         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
11560         SetBkMode() and SetTextAlign() before calling
11561         pango_win32_render().
11562
11563         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
11564         Set hcliprgn to NULL after destroying it.
11565         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
11566
11567         * gdk/win32/gdkgeometry-win32.c
11568         (_gdk_windowing_window_queue_antiexpose): More effective
11569         implementation.
11570
11571         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
11572         depth as default, not the visual's.
11573
11574         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
11575         against empty title.
11576
11577         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
11578         IMAGE_PRIVATE_DATA.
11579
11580         * gdk/win32/gdkimage-win32.c: Use it.
11581
11582 2000-10-22  Robert Brady  <robert@suse.co.uk>
11583
11584         * configure.in: Check for bind_textdomain_codeset
11585
11586         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
11587         present, make use of it.
11588
11589         Add a translatable string "default:LTR" which, if translated
11590         to "default:RTL", will cause the default direction to be
11591         Right-to-Left.
11592
11593         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
11594         direction if marked as flippable.
11595
11596         * gtk/gtkhscale.c: Mark widget as flippable.
11597         
11598 2000-10-04  Havoc Pennington  <hp@redhat.com>
11599
11600         * gtk/testgtk.c (create_buttons): create some stock buttons
11601         with the default accel group
11602         (create_image): test some new GtkImage features
11603         (make_message_dialog): test GtkMessageDialog
11604         (create_modal_window): fix someone's bizzarro indentation
11605
11606         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
11607         GTK_WIN_POS_CENTER_ON_PARENT. 
11608         Add "destroy with parent" setting, which means the window goes
11609         away with its transient parent.
11610         (gtk_window_get_default_accel_group): get the default accel group
11611         for the window.
11612         (gtk_window_set_destroy_with_parent): set/unset destroy with
11613         parent flag
11614         (gtk_window_read_rcfiles): invalidate icon set caches
11615         after reloading rcfiles 
11616
11617         * gtk/gtkenums.h (GtkWindowPosition): add
11618         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
11619         on its parent window when the dialog is mapped for the first time.
11620
11621         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
11622         a simple message dialog class
11623         
11624         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
11625         handler to emit response signal, and maybe later it would
11626         honor a hide_on_delete flag - though that isn't there yet.
11627         Set border width on the vbox to 2, so we get some padding.      
11628         Use a button box for the action area.
11629         (gtk_dialog_key_press): synthesize a delete event if Esc
11630         is pressed and the GtkWidget key press handler didn't 
11631         handle the escape key.
11632         (gtk_dialog_new_with_buttons): new function creates a dialog
11633         with some default buttons in it.
11634         (gtk_dialog_add_action_widget): add an activatable widget
11635         as a button in the dialog - you can also add a non-activatable
11636         widget by accessing the action area directly.
11637         (gtk_dialog_add_button): add a simple button - stock ID or 
11638         label - to the action area
11639         (gtk_dialog_response): emit response signal
11640         (gtk_dialog_run): block waiting for the dialog, return 
11641         the response. Override normal delete_event behavior, so that 
11642         delete_event does nothing inside gtk_dialog_run().
11643
11644         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
11645         emitted when an action widget is clicked or the dialog gets
11646         delete_event
11647
11648         * gtk/gtk.h: add gtkmessagedialog.h
11649
11650         * gtk/Makefile.am: add gtkmessagedialog.[hc]
11651
11652 2000-10-18  Havoc Pennington  <hp@redhat.com>
11653
11654         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
11655         where any number of empty lines would get skipped
11656
11657         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
11658         edge.
11659
11660         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
11661         warning about invalid iterators (explain more thoroughly)
11662         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
11663
11664         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
11665         big
11666
11667         * demos/*.c: Add error handling
11668
11669         * gtk/gtktextbuffer.c: don't modify const iterators
11670
11671         * gtk/gdk-pixbuf-loader.c: Add full error handling here
11672
11673         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
11674         on file load
11675
11676         * gtk/gtkiconfactory.c: Update to reflect addition of error
11677         handling to gdk-pixbuf loaders
11678
11679 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
11680
11681         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
11682         move to new modularized testgtk.
11683
11684 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
11685
11686         * gtk/gtktreeview.c: Draw the arrows correctly.
11687
11688         * gtk/gtktreemodel.c: Added user docs.
11689
11690         * gtk/gtk.h: remove gtktreedatalist.h.
11691
11692         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
11693         parent when generating my type.
11694
11695         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
11696         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
11697
11698 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
11699
11700         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
11701         GtkTreeModel from object to interface.
11702
11703 2000-10-16  Havoc Pennington  <hp@redhat.com>
11704
11705         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
11706         compilation
11707
11708 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
11709
11710         * gtk/gtktreeselection.c: Add API documentation to all public
11711         functions.
11712
11713         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
11714         functions.
11715
11716 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
11717
11718         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
11719         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
11720         docs to all public functions.
11721
11722         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
11723         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
11724         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
11725         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
11726         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
11727         issue.
11728
11729 2000-10-14  Robert Brady  <robert@suse.co.uk>
11730
11731         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
11732
11733 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
11734
11735         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
11736         values other then G_TYPE_STRING.
11737         * gtk/gtktreeselection.c: Minor commenting updates.
11738         * gtk/gtktreeview.c: Format updates.
11739
11740 2000-10-09  Tor Lillqvist  <tml@iki.fi>
11741
11742         * README.win32: Update.
11743
11744         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
11745         lines that had been deleted by mistake (?).
11746
11747         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
11748         also the case fg==white and bg==black (but still not randomly
11749         coloured cursors). Thanks to Wolfgang Sourdeau.
11750
11751         * gdk/win32/*.c: Silence gcc -Wall.
11752
11753         * gtk/gtk.def: Add missing entry points.
11754
11755         Fixes by Hans Breuer:
11756
11757         * gdk/makefile.msc
11758         * gdk/win32/makefile.msc: Update.
11759
11760         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
11761         some MSVC thing, presumably), cause breakpoint on failures. Add
11762         GDK_NOR case. Call g_log_set_always_fatal.
11763
11764         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
11765         should be pased by reference.
11766         
11767         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
11768         
11769         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
11770
11771         * gdk/win32/gdkevents-win32.c
11772         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
11773
11774         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
11775         implementation object.
11776
11777         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
11778         not just windows.
11779         
11780         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
11781         Use the wrapper object.
11782         
11783 2000-10-06  Havoc Pennington  <hp@redhat.com>
11784
11785         * Makefile.am (SRC_SUBDIRS): contrib subdir
11786
11787         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
11788         so it can be used in Xlib version
11789
11790         * demos/testpixbuf.c (update_timeout): error checking from 1.0
11791         tree
11792
11793         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
11794         change from 1.0 tree that returns first frame of animation
11795         if the loaded file is an animation.
11796
11797         * contrib: add new directory to hold stuff that comes with GTK+
11798         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
11799         
11800         * configure.in: add contrib/*
11801
11802 2000-10-05  Havoc Pennington  <hp@redhat.com>
11803
11804         * demos/testpixbuf-save.c: add pixbuf save test
11805
11806         * demos/Makefile.am: add testpixbuf-save.c
11807
11808 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
11809
11810         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
11811         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
11812         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
11813         * gtk/gtktreeselection.[ch]: Replaced
11814         "node_selected"/"node_unselected" signal with "selection_changed"
11815         signal.
11816
11817 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
11818
11819         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
11820         tree widget.
11821
11822 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
11823
11824         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
11825         drawing.
11826
11827 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
11828
11829         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
11830         Move list pointer forwards before removing item from
11831         list. (Crash reported by Salmaso Raffaele)
11832
11833         * gdk/gdkwindow.h: Remove spurious trailing ,
11834
11835         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
11836         dependencies on uninstalled libraries, sorry folks.
11837
11838 2000-10-04  Havoc Pennington  <hp@redhat.com>
11839
11840         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
11841         gtk/gtkiconfactory.c: Fix copyrights    
11842
11843         * demos/testpixbuf.c: add inline pixbuf test
11844         
11845 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
11846
11847         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
11848         Add gdk_window_iconify.
11849
11850         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
11851         (gdk_window_set_geometry_hints): Add win_gravity
11852         to geometry structure.
11853
11854         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
11855         Implement _NET_WM_PING.
11856
11857         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
11858         Set _NET_WM_PID on the client leader.
11859
11860         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
11861         Handle UTF-8 better.
11862
11863         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
11864         UTF-8 better, set _NET_WM_NAME as well. Only set
11865         icon name if it hasn't previously been explicitely 
11866         set.
11867
11868 2000-10-03  Havoc Pennington  <hp@redhat.com>
11869
11870         * gtk/testtextbuffer.c: clean up trailing whitespace,
11871         add extensive tests for tag toggle iteration.
11872         
11873         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
11874         distance
11875
11876         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
11877         optimize case where the tag root is on level 1
11878         (gtk_text_line_previous_could_contain_tag): attempt to implement
11879         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
11880         functionality
11881
11882         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
11883         Implement this, though not very efficiently.
11884
11885         * gtk/gtktextiterprivate.h: reformat
11886
11887         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
11888         iterator
11889
11890         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
11891         this to properly revalidate the iterators.
11892
11893         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
11894         properly at the end of the line (and therefore on empty lines)
11895
11896         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
11897         maybe we should return a value...
11898
11899 2000-10-03  Tor Lillqvist  <tml@iki.fi>
11900
11901         * config.h.win32: Guard definition of alloca(). glib.h now handles
11902         that.
11903
11904         * gdk/gdk.def
11905         * gtk/gtk.def: Add new entry points.
11906
11907         Changes just to make GTK+ build without errors on Win32. No hope
11908         of it working in its current state, though...:
11909         
11910         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
11911         some functions from the X11 backend, just to make GTK+ build.
11912
11913         * gdk/makefile.mingw.in
11914         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
11915         number. Add new object files.
11916
11917         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
11918         GetMessageTime to get timestamp (where on X11 uses
11919         gdk_x11_get_server_time()).
11920
11921 2000-10-02  Havoc Pennington  <hp@pobox.com>
11922
11923         * gtk/gtktextview.c: text_window_* weren't static and should have
11924         been.
11925         Start work on child widgets; not yet complete, syncing to 
11926         office computer.
11927
11928         * gtk/gtktextchild.h: change this to contain a public interface,
11929         starting work on child interfaces.
11930         * gtk/gtktextchildprivate.h: move private interfaces here
11931
11932         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
11933
11934         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
11935         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
11936         gtk/gtktextmark.c: copyright notices
11937
11938         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
11939         internal functions      
11940
11941         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
11942         internal function
11943
11944         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
11945         Reformatting    
11946
11947 2000-09-30  Havoc Pennington  <hp@pobox.com>
11948
11949         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
11950         NULL start/end pointers
11951
11952         * gtk/gtktextbuffer.c: Write some docs
11953         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
11954         NULL, so you can just check whether there's a selection.        
11955
11956         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
11957         cleanup_line or segments_changed ourselves, it gets done 
11958         in unlink_segment
11959
11960         * gtk/gtktextmark.h:
11961         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
11962         
11963         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
11964
11965         * gtk/gtktextmark.c: delete some more old Tk cruft
11966
11967         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
11968         mark before removing it, so we can emit MARK_DELETED with a valid
11969         pointer.
11970         (gtk_text_buffer_mark_set): hold ref across signal emission
11971
11972         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
11973         whining about attempts to delete special marks
11974
11975         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
11976         underscore, since it's internal.
11977
11978         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
11979         now implemented in terms of iterators in gtktextiter.h
11980
11981         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
11982         New function, destructively sets contents of buffer. Also 
11983         a convenient way to clear the buffer by setting text to ""
11984
11985         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
11986         multiline string literal
11987
11988         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
11989         text changes.
11990
11991         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
11992         is not dereferenceable
11993         (gtk_text_iter_forward_lines): fix return value
11994
11995 2000-09-29  Havoc Pennington  <hp@redhat.com>
11996
11997         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
11998
11999         * gtk/gtktextview.c: Implement drag thresholding; change functions 
12000         that set border window size to have nicer name
12001         (gtk_text_view_mark_set_handler):  Fix this to have the 
12002         right signature.
12003
12004         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
12005
12006         * gtk/testtext.c: Update with API changes, put line numbers on 
12007         both sides.
12008         
12009         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
12010         with this
12011
12012         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
12013         pixbuf; delete a big block of #if 0 Tk code
12014
12015         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
12016         insert_pixmap with insert_pixbuf
12017
12018 2000-09-29  Martin Baulig  <baulig@suse.de>
12019
12020         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
12021         confusion with the GdkPixbuf of the GNOME 1.x platform.
12022
12023 2000-09-29  Havoc Pennington  <hp@pobox.com>
12024
12025         * gtk/gtktextview.c: Implement the side windows.
12026
12027         * gtk/testtext.c: Implement simple line numbering in the 
12028         left side window; seems to make scrolling sloooow. Oops.
12029         Also, cursor blink is for some reason causing redraws
12030         of the line numbers. Should investigate...
12031
12032 2000-09-28  Havoc Pennington  <hp@redhat.com>
12033
12034         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
12035         scrolling child windows, and draw focus rectangle properly.
12036         
12037         (gtk_text_view_buffer_to_window_coords):
12038         Coordinate transformation to deal with all these freaking windows
12039         and offsets
12040         (gtk_text_view_window_to_buffer_coords): transform the other way
12041
12042         * gtk/testtext.c (create_buffer): Update to match Pango API change
12043
12044         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
12045         anonymous tags
12046         (foreach_unref): don't emit remove signal from finalize, just
12047         set tag's parent to NULL
12048
12049 2000-09-26  Havoc Pennington  <hp@redhat.com>
12050
12051         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
12052         Fix some warnings       
12053
12054 2000-09-26  Havoc Pennington  <hp@redhat.com>
12055
12056         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
12057         headers into the private header list
12058
12059         * Makefile.am (pkgconfig_DATA): install pkg-config files
12060
12061         * configure.in: add pkg-config files
12062
12063         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
12064
12065         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
12066         outstanding icon caches on theme change.
12067
12068         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
12069         important types:
12070
12071         (GtkIconSource): Specification for creating a pixbuf 
12072         appropriate for a direction/state/size triplet from 
12073         a source pixbuf or filename
12074
12075         (GtkIconSet): List of GtkIconSource objects that are used to
12076         create the "same" icon (e.g. an OK button icon), and cache for
12077         rendered icons
12078
12079         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
12080         up the icon set for a given stock ID.  GTK maintains a stack of
12081         GtkIconFactory to search, and applications or libraries can add
12082         additional icon factories on top of the stack
12083         
12084         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
12085         the set of GtkIconSource specified for a given stock ID into 
12086         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
12087         RcStyle, under the specified stock ID.
12088
12089         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
12090         render_icon used to derive a GdkPixbuf from a GtkIconSource.
12091         This allows people to theme how prelight, insensitive, etc. are
12092         done.
12093
12094         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
12095         icon factories for a style, and return the resulting 
12096         icon set if any.
12097
12098         (gtk_style_render_icon): Render an icon using the render_icon 
12099         method in the GtkStyleClass.
12100
12101         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
12102         Use the style for a given widget to look up a stock ID, get the
12103         icon set, and render an icon using the render_icon method 
12104         of the style
12105
12106         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
12107         (contains information about a stock item), the built-in stock item
12108         IDs, and functions to add/lookup stock items.
12109
12110         * gtk/stock-icons/*: Stock icons that come with GTK
12111
12112         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
12113         a button based on a GtkStockItem
12114         (gtk_button_new_accel): Takes a uline string and accel group, and
12115         installs the accelerator.
12116
12117         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
12118         image-display widget.
12119
12120 2000-09-25  Havoc Pennington  <hp@redhat.com>
12121
12122         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
12123
12124         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
12125         Fix a bug when removing node data, we didn't properly 
12126         re-splice the linked list after removing the data.
12127
12128         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
12129         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
12130
12131         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
12132
12133         * gtk/gtktextlayout.c (set_para_values): Set tab array 
12134         for the layout from the GtkTextTag.
12135
12136         * gtk/gtktexttypes.h: delete tab and search cruft, 
12137         remove g_convert() in favor of GLib version
12138
12139         * gtk/gtktexttypes.c: remove tab implementation from here,
12140         move to Pango
12141
12142         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
12143         tab stuff using new PangoTabArray from Pango
12144
12145         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
12146         unused border_width stuff
12147
12148 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
12149
12150         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
12151         glib) and now useless utf_to_latin1() latin1_to_utf()
12152
12153         * gtk/gtktextview.[ch]: Change ::move_insert and
12154         ::delete_text action signals to ::move and ::delete;
12155         create the signals with the right enumeration type,
12156         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
12157         C-v bindings, change Home, End to move to beginning/end
12158         of line, Add C-Home C-End to move to beginning/end
12159         of buffer. Change ::cut_text to ::cut_clipboard, etc;
12160         combine ::scroll_text into ::move; use new GtkSelectionData
12161         functions to simplify DND text handling.
12162         
12163         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
12164         deletion enumerations here, rename enumeration values to 
12165         be consistently plural.
12166
12167         * gtk/gtktextbuffer.c: Use new clipboard interfaces
12168         for cut/copy/paste and primary selection.
12169
12170         * gtk/gtktextbuffer.[ch]: Remove excess time and
12171         'interactive' arguments from cut/copy/paste;
12172         rename cut to cut_clipboard, etc; remove
12173         gtk_text_buffer_get_clipboard_contents().
12174
12175         * gtk/gtktextlayout.[ch]: Add 
12176         gtk_text_layout_move_iter_to_line_end() to move the iter to 
12177         line ends.
12178
12179         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
12180         Functions to set or get a UTF-8 string on the selection
12181         data.
12182
12183         * gtk/gtkclipboard.[ch]: New, simplified selection handling
12184         interfaces.
12185
12186         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
12187         created widgets - one of these is useless if we don't.
12188
12189         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
12190         a public function clear all targets registered for the
12191         widget.
12192
12193         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
12194         Never call gtk_widget_realize() - that was just asking
12195         for bizarre side-effects.
12196
12197         * gtk/gtkselection.c (gtk_selection_owner_set): Call
12198         gdk_selection_owner_set even if the widget is the
12199         same so that we reliably update the timestamp on
12200         the server.
12201
12202         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
12203         gdk_x11_get_server_time() function.
12204         
12205         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
12206         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
12207         Add some tricky filtering on serial numbers for
12208         selection clear events to fix up long-standard
12209         race condition FIXME's in gtkselection.c.
12210
12211         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
12212         routines to convert from utf8 to compound text or
12213         STRING and from a text property to UTF-8.
12214
12215         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
12216         a convenience function gdk_get_current_event_time().
12217
12218         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
12219         and free selection_data->data properly
12220
12221 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
12222
12223         * gtk/gtkthemes.c: Remove some unecessary includes.
12224
12225 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
12226
12227         * gtk/gtktextdisplay.c
12228         * gtk/gtktextlayout.c
12229         * gtk/gtktexttag.c
12230         * gtk/gtktexttag.h
12231         * gtk/testtext.c: Change the overstrike property to strikethrough,
12232         to closer match pango.
12233
12234 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
12235
12236         * gtk/gtktextview.c: Fix up visibility so that focus,
12237         cursor_visible and blink interact properly.  Reenable cursor blink
12238         which had been roughly disabled. Make blink and focus
12239         properly per-view.
12240
12241         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
12242         Add a flag for whether to display insertion cursor and
12243         a function to set the flag.
12244
12245         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
12246         get_line_y() to get_line_yrange(), to be a bit more generally
12247         useful.
12248
12249 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
12250
12251         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
12252           do stop_navigating_submenu, to clear last timeout properly.
12253           Also in gtk_menu_motion_notify move ignore_enter above
12254           the conditional to make it always happen as suggested by Owen
12255
12256 2000-09-07  Tor Lillqvist  <tml@iki.fi>
12257
12258         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
12259
12260         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
12261         w32api headers.
12262
12263         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
12264         declarations.
12265
12266         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
12267         (gdk_win32_get_colormap): A line had been deleted by mistake.
12268
12269         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
12270         (gdk_event_translate): Handle more virtual keycodes to be able to
12271         generate GDK events for Control-comma, Control-period, etc.
12272
12273         * gtk/gtk.def: Add some missing entry points.
12274
12275 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
12276
12277         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
12278         Doc comment fixing. (Mostly non-matching parameter names.)
12279
12280         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
12281         comments a little to avoid looking like a doc comment.
12282
12283         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
12284         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
12285         conversions be changed to GError?)
12286
12287         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
12288         Move private #defines into .c file.
12289
12290         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
12291         order of argument addition, remove duplicates.
12292
12293         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
12294         parent class is FrameClass, not BinClass.
12295
12296         * gtk/gtk.h: Add gtkinvisible, which was missing.
12297         (It's occasionalyl useful for client apps, if seldom.)
12298
12299         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
12300         #define.
12301
12302 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
12303
12304         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
12305         coordinates when creating window, instead of GDK-space
12306         coordinates. (Avoid BadValue on too large windows.)
12307
12308 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
12309
12310         * configure.in (use_mmx_asm): Remove conftest* after use along the
12311         lines of AC_TRY_COMPILE.        
12312         
12313         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
12314         of g_dirname, which is deprecated.
12315         (gtk_rc_parse_any): Removed calls to
12316         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
12317
12318         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
12319         Removed calls to g_hash_table_{freeze,thaw}, as they are
12320         deprecated now.
12321
12322         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
12323         instead of g_basename.
12324         
12325 2000-09-04 Elliot Lee <sopwith@redhat.com>
12326         
12327         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
12328         ANSI warning.
12329
12330 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
12331
12332         * gtk/gtkwidget.h:  Add some documenting comments about 
12333           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
12334           just as owen said on irc.
12335
12336         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
12337           set HAS_DEFAULT.  Only set it if there isn't another window
12338           holding it (a focus window which RECEIVES_DEFAULT) and only unset
12339           it if the widget is not the focused window with RECEIVES_DEFAULT.
12340           This fixes weird double default bugs in dialogs which has things
12341           call gtk_window_set_default at times.
12342
12343 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
12344
12345         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
12346         Nils Barth and David Santiago to improve submenu
12347         navigation. The patch does this by creating a triangular
12348         region from the point where the pointer leaves the
12349         menu to the submenu.  While the pointer is in
12350         that region and a timeout has not expired, events 
12351         that would cause the active submenu to change are
12352         ignored.
12353
12354 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
12355
12356         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
12357         moving a toplevel window immediately after sizing it would
12358         result in it being sized back to the old size since 
12359         impl->width, impl->height aren't updated until we hear
12360         back from the server. There is still a (longstanding) bug
12361         here that gdk_window_get_size() will give the wrong size
12362         until we do hear back.
12363
12364 2000-08-31  Havoc Pennington  <hp@redhat.com>
12365
12366         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
12367         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
12368         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
12369         Rename GtkTextStyleValues to GtkTextAttributes
12370
12371 2000-08-31  Havoc Pennington  <hp@pobox.com>
12372
12373         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
12374         for rapid testing whether an iterator is the end iterator
12375         (gtk_text_btree_new): init end line cache
12376         (gtk_text_line_is_last): use fast cached line to 
12377         see if we're the last line.
12378         (get_last_line): use cached line here too, should 
12379         speed up some random unrelated code.
12380         
12381 2000-08-30  Havoc Pennington  <hp@pobox.com>
12382
12383         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
12384         signals.
12385
12386         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
12387         delete_text signals. This allows the signals to be used for
12388         implementing undo.
12389
12390         * gtk/gtktextbuffer.c: Change signal handler signatures; 
12391         provide "interactive" argument when emitting insert_text or
12392         delete_text signal.
12393         
12394 2000-08-30  Havoc Pennington  <hp@pobox.com>
12395
12396         * gtk/gtktextbuffer.c: Docs
12397
12398 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
12399
12400         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
12401         from switch statements, since Tor removed the enumeration
12402         value.
12403         
12404         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
12405         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
12406
12407 2000-08-29 Elliot Lee <sopwith@redhat.com>
12408         * */*.h: Use G_GNUC_CONST.
12409
12410 2000-08-27  Havoc Pennington  <hp@pobox.com>
12411
12412         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
12413         minor indentation fixes, inserted some FIXME about stuff I
12414         realized was broken while documenting it.
12415         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
12416         GTK convention  
12417
12418 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
12419
12420         * gtk/testgtk.c (create_styles): Fix double free of
12421         font desc.
12422
12423 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
12424
12425         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
12426         
12427         * gtk/testgtk.c (create_styles): Add a test for modifying
12428         the style through gtk_widget_modify_*.
12429
12430         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
12431         a function to get the current modifier style.
12432
12433         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
12434         of the passed in GtkRcStyle instead of ref'ing it.
12435
12436         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
12437
12438 2000-08-20  Tor Lillqvist  <tml@iki.fi>
12439
12440         * gdk/gdkimage.h
12441         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
12442         shared memory image+pixmap GdkImage type, or
12443         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
12444         I am dropping that.
12445
12446         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
12447         actually call gtk_init_abi_check(), passing also
12448         sizeof(GtkWindow). Ditto for gtk_init_check(). 
12449
12450         * gtk/gtk.def
12451         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
12452         New functions, used to check that the GTK+-using code has been
12453         compiled using the correct compiler and switches. In particular,
12454         with gcc one has to use the -fnative-struct switch as GTK+ is
12455         compiled with that.
12456
12457 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
12458
12459         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
12460         ->prev fields when merging lists. (Found simultaneously
12461         by Pawel Salek and Jakub Jelinek)
12462
12463 2000-08-12  Tor Lillqvist  <tml@iki.fi>
12464
12465         * gdk/gdk.def
12466         * gtk/gtk.def: Add missing entries.
12467
12468         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
12469         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
12470
12471         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
12472         function. Dummy implementation at this point.
12473
12474         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
12475         rules. Undefine GTK_COMPILATION when compiling the test programs.
12476         
12477         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
12478
12479 2000-08-11  Tor Lillqvist  <tml@iki.fi>
12480
12481         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
12482         to convert back and forth from UTF-8 and the "system" (or "current
12483         locale") charset when necessary. Indentation/spacing cleanup.
12484
12485 2000-08-10  Havoc Pennington  <hp@redhat.com>
12486
12487         * Makefile.am (snapshot): Change the format of the snapshot
12488         version to match glib
12489
12490         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
12491         from EXTRA_DIST since it doesn't seem to exist
12492
12493 2000-08-10  Tor Lillqvist  <tml@iki.fi>
12494
12495         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
12496         version of the directory name (not the UTF-8 one) when building
12497         the path name to stat().
12498
12499 2000-08-03  Elliot Lee  <sopwith@redhat.com>
12500
12501         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
12502         PANGO_ATTR_SHAPE set.
12503
12504 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
12505
12506         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
12507         Peter Osterlund to simplify the code while keeping the
12508         functionality the same.
12509
12510 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
12511
12512         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
12513         is_viewable() test further inside the function, since removing the 
12514         window from the redraw list without clearing ->update_area
12515         was also very broken.
12516
12517 2000-08-02  Tor Lillqvist  <tml@iki.fi>
12518
12519         * configure.in: Check for <unistd.h>.
12520
12521 2000-08-01  Martin Baulig  <baulig@suse.de>
12522
12523         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
12524         to display the message that this is a development version of GTK+.
12525
12526 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
12527
12528         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
12529         was depending on widget->allocation instead of the width of text_area,
12530         which was incorrect for subclasses like GtkSpinButton.
12531
12532         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
12533         with width == 1 tests that should be width == -1.
12534
12535 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
12536
12537         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
12538         (broken, Elliot, every single window blank on X) custom code with call
12539         to gdk_window_is_viewable() which a) prevents code duplicate and
12540         b) works. 
12541
12542 2000-07-31  Elliot Lee  <sopwith@redhat.com>
12543
12544         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
12545         to get the GDK_PARENT_ROOT() macro to work.
12546         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
12547         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
12548         of, windows that aren't shown.
12549         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
12550         pointer grab stuff.
12551
12552 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
12553
12554         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
12555           s/gtk_main_iteration/g_main_iteration/
12556
12557           Did this already in change:
12558                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
12559           don't know how it got reverted.
12560
12561 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
12562
12563         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
12564         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
12565
12566         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
12567         not gdk_pixbuf.
12568
12569 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
12570
12571         * configure.in,po/{sp,sr}.po: Added Serbian files
12572
12573 2000-07-30  Tor Lillqvist  <tml@iki.fi>
12574
12575         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
12576
12577         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
12578         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
12579         GIOChannel implementation.
12580
12581         * gdk/win32/gdkinput.c
12582         * gdk/win32/gdkpango-win32.c: Update license name here, too.
12583
12584         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
12585         definition to match prototype.
12586
12587         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
12588
12589 2000-07-27  Elliot Lee  <sopwith@redhat.com>
12590
12591         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
12592         function, to allow handling image formats that cannot be detected
12593         by looking at content alone.
12594
12595 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
12596
12597         * docs/tutorial/*.gif *.jpg *.eps
12598           Update these to the same look-n-feel.
12599           Why does including images in DocBook suck so badly?
12600
12601 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
12602
12603         * gtk/gtktable.c: applied patch from Phil Thompson
12604         <phil@river-bank.demon.co.uk> that enables space settings for
12605         the last row/columns as well.
12606
12607 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
12608
12609         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
12610         updates the license headers to the GNU Lesser General Public License,
12611         as well as updating the copyright year to 2000.
12612
12613 2000-07-26  Robert Brady  <rwb197@zepler.org>
12614
12615         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
12616           and po/Makefile, was installing and looking for them under gtk20
12617           and gtk2 respectively.
12618
12619 2000-07-25  Havoc Pennington  <hp@redhat.com>
12620
12621         * gtk/testtext.c: Comment out some stuff that depends on the rest
12622         of my patches.
12623
12624 2000-07-25  Havoc Pennington  <hp@redhat.com>
12625
12626         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
12627         buffer
12628
12629 2000-07-25  Havoc Pennington  <hp@redhat.com>
12630
12631         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
12632         widget changes.
12633
12634         * gtk/gtktextview.h: To be consistent with usage of "line"
12635         throughout the API to mean "newline-terminated thingy", change
12636         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
12637         to MOVEMENT_LINE.
12638
12639         (GtkTextView): Add flags for default editability, and whether to
12640         show the cursor. Add functions to get/set that. Add 
12641
12642         (gtk_text_view_get_iter_location): new function
12643
12644         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
12645         gtktextlayout.h
12646         (g_convert): Add g_convert temporarily, will go in glib in a bit
12647         
12648         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
12649         GtkTextTagTableForeach instead of brokenly using GHFunc.
12650         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
12651
12652         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
12653         moved to public header.
12654
12655         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
12656         "invisible", since "elide" was a bad name.
12657         (gtk_text_tag_get_priority): Added
12658
12659         (GtkTextStyleValues): put this in public header, along with
12660         functions to use it.
12661
12662         * gtk/gtktextmarkprivate.h: Include more headers, since we no
12663         longer include gtktextbtree.h.
12664
12665         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
12666         gtk_text_mark_deleted
12667
12668         * gtk/gtktextlayout.h: Don't include the "really private" headers,
12669         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
12670         to make this possible. Now we only need to install
12671         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
12672         (However the Makefile.am isn't changed yet because of the
12673         logistics of merging gtk-hp-patches piecemeal)
12674
12675         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
12676         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
12677         gtk_text_iter_get_line is now used in the public API for a
12678         different purpose.
12679
12680         * gtk/gtktextiter.h: Clean up function names to be more
12681         consistent. Always call char offset "offset" and byte index
12682         "index". A "line" is always a line number. 
12683
12684         (gtk_text_iter_is_last): new function, more efficient than 
12685         the existing way to check
12686         (gtk_text_iter_is_first): new function, also more efficient
12687
12688         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
12689
12690         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
12691         gtk_text_iter_forward_char, etc.
12692
12693         (gtk_text_iter_forward_to_tag_toggle): Renamed from
12694         forward_find_tag_toggle, since this isn't a linear search
12695
12696         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
12697
12698         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
12699         New functions, search for a buffer substring.
12700
12701         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
12702         interactive and default editable (since we need to store that info
12703         until we receive the selection data).
12704
12705         Remove all the _at_char and at_line etc. versions of functions;
12706         only have iterator versions.
12707
12708         Add _interactive() versions of functions, that consider the
12709         editability of text. (FIXME add interactive flag to the 
12710         insert/delete signals per Darin's suggestion)
12711
12712         (gtk_text_buffer_get_tag_table): new function, demand-creates the
12713         tag table if necessary
12714
12715         Remove declaration of gtk_text_buffer_get_iter_from_string
12716
12717         (_gtk_text_buffer_get_btree): private/internal function, added.
12718         
12719
12720         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
12721         (gtk_text_line_is_last): new function
12722
12723 2000-07-25  Havoc Pennington  <hp@redhat.com>
12724
12725         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
12726         using GtkProgressBar. See Changes-2.0.txt for details.
12727
12728         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
12729         "pulse_step" which are the equivalent of
12730         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
12731         Implement new API.
12732         
12733         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
12734         (use_text_format) to mark whether text set on the progress bar is
12735         a format string. Deprecate entire GtkProgress interface.
12736
12737         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
12738         (gtk_progress_build_string): make this a no-op if use_text_format
12739         is FALSE
12740
12741         * docs/Changes-2.0.txt: Describe progress bar changes.
12742
12743 2000-07-25  Tor Lillqvist  <tml@iki.fi>
12744
12745         * Makefile.am: Include the build directory.
12746
12747         * configure.in: Generate build/Makefile, build/win32/Makefile,
12748         gdk/, gdk/win32/, and gtk/makefile.mingw.
12749
12750         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
12751         Add GETTEXT_PACKAGE.
12752         
12753         * gdk/gdk.def
12754         * gtk/gtk.def: Updates.
12755
12756         * gdk/gdkfont.h
12757         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
12758         need them any longer.
12759
12760         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
12761
12762         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
12763         PANGOWIN32_LIBS and gdk_pixbuf.
12764
12765         * gdk/win32: Compiles, but no doubt doesn't work at all.
12766
12767         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
12768
12769         * gdk/win32/gdkinput.c: New file, temporarily.
12770         
12771         * gdk/win32/gdkinput-win32.h: New file
12772
12773         * gdk/win32/gdkinputprivate.h: Remove.
12774
12775         * gdk/win32/gdkpango-win32.c: New file.
12776
12777         * gtk/makefile.mingw.in: New file
12778
12779         * gtk/makefile.cygwin: Removed
12780         
12781         * gtk/Makefile.am: Update accordingly.
12782
12783         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
12784         made externally visible.
12785
12786         * gtk/gtkmain.c: Use it.
12787         
12788         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
12789         is enough.
12790
12791         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
12792
12793 2000-07-24 Elliot Lee <sopwith@redhat.com>
12794         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
12795         individual backends already.
12796         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
12797         again. Yes, there really is a good reason for this, if you are using the gdkregion
12798         internals, and if you're not, why do you care?
12799         * gdk/gdkwindow.c: Fix inverted condition
12800         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
12801         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
12802         * gtk/gtkrange.c: Redraw trough when moving.
12803         * gtk/gtktypeutils.c: Fix warning by adding const cast.
12804         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
12805
12806 2000-07-23  Tor Lillqvist  <tml@iki.fi>
12807
12808         * configure.in: Check for mkstemp and sigsetjmp. Output
12809         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
12810
12811         More work on GDK for Win32. Still in an intermediate state.
12812
12813         * gdk/makefile.cygwin
12814         * gdk/win32/makefile.cygwin: Removed.
12815         
12816         * gdk/makefile.mingw.in
12817         * gdk/win32/makefile.mingw.in: New files.
12818
12819         * gdk/Makefile.am
12820         * gdk/win32/Makefile.am: Generate and distribute them.
12821
12822         * gdk/win32/gdkwindow-win32.h
12823         * gdk/win32/gdkdrawable-win32.h
12824         * gdk/win32/gdkpixmap-win32.h: New files.
12825
12826         * gdk/win32/gdkcolor-win32.c
12827         * gdk/win32/gdkcursor-win32.c
12828         * gdk/win32/gdkdrawable-win32.c
12829         * gdk/win32/gdkgc-win32.c
12830         * gdk/win32/gdkimage-win32.c
12831         * gdk/win32/gdkprivate-win32.h
12832         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
12833         Rename fields and variables called xcursor, xid, etc (these names
12834         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
12835
12836 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
12837
12838         * gtk/gtkentry.[ch]: Fix some problems with vertical
12839         alignment.
12840
12841         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
12842         char/byte confusion.
12843
12844 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
12845
12846         * gtk/gtktextview.c (changed_handler): Fix bug where
12847         redraw wasn't being done properly when height of
12848         dirty region changed.
12849
12850         * demos/Makefile.am: Remove various references to
12851         -lgmodule
12852
12853 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
12854
12855         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
12856         PangoAttrShape to reserve space for pixmaps, add 
12857         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
12858         in the display functions.
12859         
12860         * gtk/testgtk.c (create_layout): Set some more exotic
12861         scrolled window options
12862
12863         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
12864         Add function to set the shadow type of a window, to allow
12865         putting a shadow around widgets such as GtkLayout or GnomeCanvas
12866         which don't draw their own frame.
12867
12868 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
12869
12870         * docs/tutorial/package-db-tutorial.sh: New file for
12871           packaging DocBook format tutorial
12872
12873 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
12874
12875         * docs/tutorial/gtk-tut.sgml: Minor updates
12876
12877         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
12878
12879 2000-07-19  Tor Lillqvist  <tml@iki.fi>
12880
12881         * gtk/gtksignal.c: Fix C++ comment.
12882
12883         * gtk/gtkimmulticontext.c
12884         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
12885         don't return value from void functions.
12886
12887         * gtk/gtk.def: Add gtk_rc_style_unref.
12888
12889 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
12890
12891         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
12892         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
12893         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
12894         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
12895         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
12896         gtk/gtktypeutils.h: Include files outside of the extern "C"
12897         block. Makes some C++ compiler happy. Reported by Denis Vakatov
12898         <vakatov@peony.nlm.nih.gov>.
12899
12900 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
12901
12902         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
12903           Completes first pass. Hurrah!
12904
12905 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
12906
12907         * docs/tutorial/gtk-tut.sgml: More clean ups.
12908
12909 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
12910
12911         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
12912         paint the background of the text area which was accidentally
12913         removed at some point.
12914
12915         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
12916           
12917          - Move most of the functionality from the theme vtable
12918            into GtkRcStyleClass and GtkStyleClass. The moved
12919            vtable functions were changed a bit in the move to
12920            work better in their new home.
12921
12922          - Get rid of the engine and engine_data fields from
12923            GtkRcStyle and GtkStyle; instead the theme
12924            engine derives theme-specific subclasses of GtkRcStyle
12925            and GtkStyle
12926
12927          - Add extra dlsym() found entry point to themes,
12928            theme_create_rc_style().
12929
12930         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
12931         in gtk_style_real_copy.
12932
12933         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
12934         to register a type associated with an engine. (The engine
12935         won't be unloaded as there is an instance of the type.)
12936
12937
12938 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
12939
12940         * docs/tutorial/gtk-tut.sgml: Clean ups.
12941
12942 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
12943
12944         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
12945           of cleaning up to do.
12946
12947 2000-07-15  Tor Lillqvist  <tml@iki.fi>
12948
12949         * gdk/testgdk.c: New file, quick hack to test backends for
12950         pixel-by-pixel correctness of the most simple graphic operations.
12951
12952 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
12953
12954         * Really release 1.3.1
12955         
12956         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
12957         include structure.
12958
12959 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
12960
12961         * Released 1.3.1
12962
12963 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
12964
12965         * gtk/gtktextlayout.c: use FALSE for size_only most
12966         of the time when calling gtk_text_layout_get_line_display()
12967         to avoid causing double reshapes when a redraw follows
12968         immediately after.
12969
12970 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
12971
12972         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
12973         appropriate region and gdk_window_process_updates() so trough
12974         updating doesn't lag behind the window being scrolled.
12975
12976         * gdk/gdkgc.c: Make parent_class pointer static.
12977          
12978 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
12979
12980         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
12981         include <string.h>.
12982          
12983         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
12984         cut-and-paste error in computing memory offset for 4 channels.
12985
12986 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
12987
12988         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
12989         gtk_rc_append_default_pixmap_path(), since it wasn't
12990         adding an interesting path and we don't have a meaningful
12991         default for this value.
12992
12993 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
12994
12995         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
12996         gtk-config to gtk-config-2.0 move gtk_.m4 to
12997         gtk-2.0.m4
12998
12999         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13000         gdk/Makefile.am demos/Makefile.am: Change 
13001         library names to libgtk-1.3.la, etc, so that we
13002         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
13003
13004         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13005         gdk/Makefile.am gdk/x11/Makfile.am
13006         Move include files into /usr/include/gtk-2.0, 
13007         /usr/lib/gtk-2.0/include/
13008          
13009         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
13010         gtk/gtkintl.h: Change package for gettext from 
13011         gtk+ to gtk20. Put hack in autogen.sh to modify
13012         po/Makefile.in.in after gettextize to make this
13013         possible.
13014
13015         * gtk+.spec: Some updates, not tested.
13016
13017         * gdk-pixbuf/Makefile.am: Move loaders into
13018         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
13019
13020         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
13021         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
13022         to THEMENAME/gtk-2.0/. Move engine directory  to
13023         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
13024         
13025 2000-07-12  Tor Lillqvist  <tml@iki.fi>
13026
13027         Win32 changes, still doesn't build though.
13028
13029         * gdk/makefile.cygwin
13030         * gdk/win32/makefile.cygwin
13031         * gtk/makefile.cygwin: Updates.
13032
13033         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
13034         default values for fg and bg pixel as X11 does (0 and 1), not
13035         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
13036         Use 0 for pen width by default (treated as 1 anyway later, but for
13037         apps that might check the value in the GdkGC).
13038         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
13039         interface to gdk_gc_predraw and _postdraw.
13040
13041         * gdk/win32/gdkwin32.h
13042         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
13043
13044         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
13045         extraneous semicolon.
13046
13047         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
13048
13049         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
13050         not the Win32 bitspixel value.
13051
13052         * gdk/win32/gdkcc-win32.c:
13053         * gdk/win32/gdkcolor-win32.c 
13054         * gdk/win32/gdkprivate-win32.h
13055         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
13056         GDK object structure.
13057
13058 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
13059
13060         * docs/tutorial/gtk_tut_12.es.sgml (name): 
13061         * docs/tutorial/gtk_tut_it.sgml (name): 
13062         * docs/tutorial/gtk_tut_fr.sgml (name): 
13063         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
13064         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
13065
13066 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
13067
13068         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
13069           small changes.
13070
13071 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
13072
13073         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
13074         a bug here, never been here and never fixed anything ;(
13075         (don't segfault if tree->root_tree is NULL, which happens prior
13076         to widget realization, but puke instead).
13077
13078 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
13079
13080         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
13081         add the necessary tokens.
13082
13083         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
13084         (gtk_rc_style_to_style): copy thicknesses.
13085         (gtk_rc_init_style): apply thicknesses.
13086         (gtk_rc_parse_style): parse xthickness and ythickness.
13087
13088         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
13089
13090         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
13091         (gdk_window_new): 
13092         (_gdk_windowing_window_init): 
13093         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
13094         (gdk_pixmap_create_from_data): 
13095         (gdk_bitmap_create_from_data): 
13096         (gdk_pixmap_new): 
13097         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
13098         (gdk_image_new): 
13099         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
13100         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
13101         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
13102         (gdk_colormap_get_system): 
13103         (gdk_colormap_new): 
13104         * gdk/gdkwindow.c (gdk_window_init): 
13105         * gtk/gtkstyle.c (gtk_style_new):
13106         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
13107         * gdk/gdkpixmap.c (gdk_pixmap_init): 
13108         * gtk/gtkrc.c (gtk_rc_style_new):
13109         use g_object_new() instead of g_type_create_instance() which
13110         is a private function for fundamental type implementations.
13111
13112 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
13113
13114         * configure.in: Add check for db2html
13115
13116 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
13117
13118         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
13119         hack to set glib_debug_objects based on gtk_debug_flags.
13120
13121 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
13122
13123         * INSTALL.in: Update the Prerequisites section.
13124
13125         * Makefile.am demos/Makefile.am docs/Makefile.am
13126         docs/tutorial/Makefile.am gdk/x11/Makefile.am
13127         gdk/linux-fb/Makefile.am: Dist fixes
13128
13129 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
13130
13131         * NEWS: 10,000 foot view of 1.3.1 changes.
13132
13133 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
13134
13135         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
13136         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
13137         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
13138         gdk/x11/gdkmain-x11.c: 
13139
13140         Patch from George Lebl to add a GdkGrabStatus enumeration to use
13141         as a return value of gdk_*_grab(). Previously, we just
13142         returned the X11 values directly.
13143
13144 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
13145
13146         * gdk/x11/Makefile.am: Patch from George Lebl to 
13147         install all the headers in the right place.
13148
13149 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
13150
13151         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
13152           initial conversion to DocBook.
13153
13154 2000-07-04  Tor Lillqvist  <tml@iki.fi>
13155
13156         * README.win32: Improve a bit.
13157
13158         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
13159         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
13160         Alt+0nnn on the numpad (used to enter characters by numeric code
13161         from current DOS or ANSI codepage) working correctly, as in other
13162         Windows apps.
13163
13164         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
13165         same argument validity tests as in X11 version.
13166         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
13167
13168         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
13169         definitions in case missing from headers.
13170
13171         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
13172         destroy the window-specific cursor.
13173         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
13174         calling GetModuleHandle(NULL).
13175         (gdk_window_set_cursor): Reworked to always copy the passed cursor
13176         with CopyCursor before setting it as the window-specific
13177         cursor. It is OK for the caller to destroy the GdkCursor (and thus
13178         also its Windows cursor) after calling this function. Destroy any
13179         previous window-specific cursor.
13180
13181 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
13182
13183         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
13184         font charset is iso8859-1, not iso-8859-1.
13185
13186 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
13187
13188         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
13189         Use g_get_charset() instead of g_get_codeset().
13190
13191         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
13192         Comment out some strdup'ing functions to keep timj
13193         happy until we finish fighting this out.
13194
13195 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
13196
13197         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
13198         <= width or height.
13199
13200         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
13201         from 1.2 for parent/child states.
13202
13203         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
13204         of typos.
13205
13206         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
13207         event structures, replace with a generic axes field. Replace 
13208         deviceid/sourec with GdkDevice *device.
13209
13210         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
13211         to extract particular axis use value from event. (Also
13212         can be used for normal X/Y.)
13213
13214         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
13215         allow for arbitrary number of axes, namespace everything
13216         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
13217         everywhere.
13218
13219         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
13220         Get rid of the gdk_input_vtable setup if favor of simply
13221         defining the functions in gdkinput-none/gxi/xfree.c in
13222         a similar fashion to the way that the port structure is 
13223         done.
13224
13225         * gtk/gtkdnd.c: Fix fields of synthesized button press event
13226         for new event structures. 
13227
13228         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
13229         new device interfaces.
13230
13231 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
13232
13233         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
13234         set the initial text.
13235
13236         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
13237         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
13238         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
13239         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
13240
13241         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13242         pango_layout_set_font_description to simplify.
13243
13244 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
13245
13246         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13247         pango_layout_set_font_description to simplify.
13248
13249 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
13250
13251         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
13252         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
13253         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
13254
13255         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
13256         PANGO_PIXELS() macro.
13257
13258 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
13259
13260         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
13261         that returns a PangoContext owned by the widget and updated to
13262         match future changes in the widget. Also, make 
13263         gtk_widget_create_pango_layout() use this context. If we ever
13264         add a ::changed signal to PangoContext, this will make things
13265         much more convenient. 
13266
13267         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
13268         in the appropriate places instead of destroying the layouts and
13269         creating new ones.
13270
13271         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
13272         in a few strategic places.
13273
13274 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
13275
13276         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
13277         gtk_widget_size_request() on reparented child, if one. Otherwise,
13278         queue_resize() on the child never results in it getting size-requested
13279         at all.
13280
13281         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
13282         in option menus, so that (with luck) people won't copy it into
13283         their apps in the future.
13284
13285         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
13286         to gtk_option_menu_calc_size. This isn't perfect, but should fix
13287         a lot of problems with changing the size of the menu's menu
13288         items after adding it to the option menu.
13289
13290         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
13291
13292         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
13293         the text direction for a widget changes.
13294
13295         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
13296         ::direction_changed to get rid of various hacks.
13297
13298 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
13299
13300         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
13301         name.
13302
13303 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
13304
13305         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
13306         flag to the structure. Do not call XFreePixmap on pixmaps created
13307         by gdk_pixmap_foreign_new().
13308
13309 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
13310
13311         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
13312         value using GdkRGB functionality given GdkColormap and GdkColor.
13313         (name not final, waiting for inspiration.)
13314         
13315         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
13316         set the foreground/background of a GC using the GC's colormap
13317         and GdkRGB. (name not final, waiting for inspiration.)
13318
13319         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
13320         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
13321
13322         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
13323         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
13324         purely a function of the corresponding colormap. Make
13325         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
13326
13327         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
13328         gdk_pixbuf_*create_from_xpm_* in terms of
13329         gdk_pixbuf_new_from_xpm_data(), move into platform independent
13330         code.
13331
13332         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
13333         advantage of the new draw_rgb_32_image_dithalign.
13334
13335         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
13336
13337         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
13338         on each created GC.
13339
13340         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
13341
13342         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
13343         which we initialize from the drawable when the GC is created,
13344         if the drawable has a colormap.
13345
13346         * gdk/x11/gdkgc-x11.c: include string.h for memset.
13347
13348         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
13349
13350         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
13351
13352 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
13353
13354         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
13355         actually returning expose events, make sure to set
13356         the count field properly.
13357
13358         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
13359         accidentally reintroced bug which always cleared
13360         the graphics_exposures value. 
13361
13362 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
13363
13364         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
13365
13366 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
13367
13368         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
13369
13370 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
13371
13372         * docs/faq/gtk-faq.sgml: Start of Section 6.
13373
13374 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
13375
13376         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
13377         
13378         (Fixes problem with drawing childless frames. Pointed out
13379         by and a first patch from Anders)
13380         
13381         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
13382         compute a child_allocation, even if we don't have a child.
13383
13384         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
13385         Always chain to the parent's impl, even if we don't have a child.
13386
13387 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
13388
13389         * gdk/gdkrgb.c: If possible, create only a single shm segment and
13390         use multiple parts of it instead of creating a bunch of separate
13391         segments, since the maximum number of segments per system is not
13392         large. (This might be worth backporting to GTK+-1.2.x if we make a
13393         new release )
13394
13395         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
13396         structure in preparation for per-colormap GdkRGB.
13397
13398         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
13399         to False when we get EINVAL from shmget so that the caller of
13400         gdk_image_new can retry with a smaller segment size.
13401
13402 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
13403
13404         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
13405
13406 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
13407
13408         * configure.in: make the current version number 1.3.1 (binary age 0,
13409         interface age 0).
13410         
13411         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
13412         gtkcompat.h is all we want.
13413
13414         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
13415         GLib primitive types. fixed g_type_register_fundamental() argument
13416         ordering.
13417
13418         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
13419         compiles.
13420
13421         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
13422         object code cleanup, comment trigraph fixes, etc...
13423
13424 2000-06-23  Havoc Pennington  <hp@redhat.com>
13425
13426         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
13427         instead of making up a bogus name for first_para_mark
13428
13429         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
13430         0 as a context ID
13431
13432 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
13433
13434         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
13435
13436 2000-06-21  Havoc Pennington  <hp@pobox.com>
13437
13438         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
13439         we didn't check window->bg_pixmap != GDK_NO_BG.
13440
13441         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
13442         gdk-pixbuf
13443
13444 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
13445
13446         * docs/faq/gtk-faq.sgm: Move file to here.
13447           TODO: Update Makfile.am 
13448
13449 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
13450
13451         * docs/gtk-faq.sgm: Add Section 2
13452
13453 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
13454
13455         * docs/gtk-faq.sgm: New file. Start of DocBook
13456           version of the FAQ.
13457
13458 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
13459
13460         * configure.in (GDK_PIXBUF_MAJOR): Define version
13461         numbers for GDK_PIXBUF_*, as they get substituted
13462         into a header file. Need to consider versioning
13463         for gdk-pixbuf more carefully later.
13464
13465 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
13466
13467         Work with srcdir != builddir.   
13468         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
13469         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
13470         * demos/testpixbuf.c: Likewise.
13471         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
13472         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
13473         <gdk/x11/gdkx.h>.
13474         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
13475         "gdk-pixbuf.h".
13476         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
13477
13478 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
13479
13480         * TODO.xml: Change 1.4 version numbers to 2.0.
13481
13482 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
13483
13484         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
13485         fixups to GTK+ standard.
13486
13487 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
13488
13489         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
13490         gdk-pixbuf.
13491
13492         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
13493         fixups for GObject.
13494
13495         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
13496         gdk-pixbuf with GDK dependencies moved into GDK.
13497         
13498         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
13499         move gdk-pixbuf-loader here until GObject has signals.
13500
13501         * demos/: New directory of demos. Move demos from
13502         gdk-pixbuf here.
13503
13504         * demos/pixbuf-init.c: Small bit of code to check for
13505         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
13506         set GDK_PIXBUF_MODULEDIR appropriately.
13507
13508         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
13509         define which no longer makes sense.
13510
13511 2000-06-21  Havoc Pennington  <hp@redhat.com>
13512
13513         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
13514         gtk_get_default_language
13515
13516         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
13517         new function to get the default language
13518
13519         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
13520         s/gtk_text_view_style_values/gtk_text_style_values/
13521
13522         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
13523         Add a "language" field to tags.
13524
13525         (gtk_text_tag_set_arg): Fix bug in setting
13526         "bg_full_height_set" tag.
13527
13528 2000-06-21  Havoc Pennington  <hp@redhat.com>
13529
13530         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
13531         in the interfaces
13532
13533         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
13534         stuff instead when possible.
13535
13536         * gtk/gtktexttypes.h: Delete some unused constants
13537
13538         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
13539         testtextbuffer.c: use glib instead of custom unicode routines
13540
13541 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
13542
13543         * docs/es/: Removed mistakenly added generated sgml
13544
13545         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
13546         Remove outdated info files.
13547
13548         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
13549         Moved tutorial files into subdir
13550
13551         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
13552         subdir.
13553
13554         * docs/man/gtk_button.pod: Remove. (contents will be
13555         integrated into gtk-reference button page.)
13556
13557         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
13558         docs/faq/Makefile.am: Adjust for new organization
13559
13560 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
13561
13562         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
13563         not $(MKINSTALLDIRS)
13564
13565 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
13566
13567         * gtk/testgtk.c (create_text): Finish the job Elliot started
13568         of removing font setting test for text widget. (Since text widget
13569         and GdkFont are not deprecated, and cause portability problems.)
13570
13571 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
13572
13573         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
13574         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
13575         Remove use of libunicode in favor of new GLib functions.
13576
13577         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
13578         nano-x, framebuffer. The X11 include is just a hack until we get
13579         the necessary functions in gdkcolor.h, so there is no reason to
13580         add other includes of platforms.
13581
13582         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
13583         window bigger than the screen change.
13584
13585         * gtk/testgtk.c: Revert some random changes from Elliot
13586         that had no particular point and were causing testgtkrc
13587         not to function correctly.
13588         
13589         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
13590         because GdkSegment and GdkRegionBox have the same fields,
13591         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
13592         results in clearer code.
13593
13594         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
13595         gdk_input_translate_coordinates): Fix missed GdkObjectification
13596
13597 2000-06-18  Elliot Lee  <sopwith@redhat.com>
13598
13599         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
13600         * gtk/gtk{plug,socket}.h: Missed commits from previous.
13601
13602 2000-06-20  Havoc Pennington  <hp@redhat.com>
13603
13604         * modules/linux-fb/Makefile.am: Make this compile
13605         without framebuffer enabled
13606
13607         * gdk/linux-fb/Makefile.am: Add conditional to not build
13608         framebuffer unless specified in configure
13609
13610         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
13611         the size of the target instead of source if -1 was passed for
13612         width/height
13613
13614         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
13615         width/height confusion.
13616
13617 2000-06-19  Havoc Pennington  <hp@redhat.com>
13618
13619         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
13620         GDK_DRAWABLE_XID. In the future, we probably want to make it
13621         faster with G_DISABLE_CHECKS turned on.
13622
13623 2000-06-14  Havoc Pennington  <hp@redhat.com>
13624
13625         * gdk/Makefile.am: add gdkpixmap.c
13626
13627         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
13628         s/gdk_image_init/_gdk_windowing_image_init
13629
13630         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
13631         ref/unref
13632
13633         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
13634
13635         * gdk/gdkcompat.h: remove GdkWindowType compat, since
13636         GdkWindowType is now non-deprecated; 
13637         change gdk_window_get_type() compat to be
13638         gdk_window_get_window_type().
13639
13640         * gdk/gdkdnd.h: make GdkDragContext a GObject.
13641
13642         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
13643         virtual GObject. Make all functions call into the vtable.
13644         Move gdk_image_put() guts in here. Remove GdkDrawableType
13645         and gdk_drawable_get_type(), these are now GdkWindow-specific.
13646         draw_image, get_depth, get_size, set_colormap, get_colormap,
13647         get_visual added to the vtable.
13648         
13649         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
13650         GObject. Virtualize everything. 
13651         (gdk_gc_new_with_values): remove check for destroyed window,
13652         because now GdkWindow::create_gc will check this.
13653         (gdk_gc_set_values): New function to set GC values, this 
13654         was already implemented but wasn't in the header
13655
13656         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
13657
13658         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
13659         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
13660         remove _gdk_window_class; add _gdk_window_impl_get_type() and
13661         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
13662         _gdk_windowing_window_init, rename gdk_image_init to
13663         _gdk_windowing_image_init.
13664         
13665         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
13666         (gdk_draw_layout): Remove check for destroyed window, 
13667         because all the drawable methods already check it.
13668         
13669         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
13670         Add gdkpixmap.c which contains implementation of GdkDrawable
13671         virtual table (by chaining to a platform-specific implementation
13672         object).
13673         
13674         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
13675         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
13676         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
13677         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
13678         GdkColormapPrivate. 
13679
13680         * gdk/gdktypes.h: #include <glib-object.h>
13681
13682         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
13683         Move most functionality to platform-specific implementation
13684         object. GdkWindow itself now handles the backing store, then
13685         chains to the platform-specific implementation.
13686         (gdk_window_get_window_type): return GdkWindowType of the window.
13687         (gdk_window_peek_children): New routine, returns the children of 
13688         a GdkWindow
13689         (gdk_window_get_children): Was in X11-specific code and did 
13690         XQueryTree. Changed to simply return a copy of window->children; 
13691         so it can go in cross-platform code.
13692         
13693         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
13694
13695         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
13696         GdkColormap; just changed to use the new private data instead
13697         of casting to GdkColormapPrivate.
13698
13699         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
13700         gdk_cursor_new().
13701
13702         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
13703         (private data member in the GObject). 
13704         (xdnd_manager_source_filter): Function had broken 
13705         error handling, fix it (use gdk_error_trap_push).
13706
13707         * gdk/x11/gdkdrawable-x11.c: This file now implements
13708         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
13709         base class is purely for the convenience of the X port,
13710         and not part of the interface to cross-platform GDK.
13711
13712         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
13713         
13714         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
13715         specific to X, and returned by the create_gc virtual method
13716         of GdkDrawableImplX11. 
13717         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
13718         rather than gchar, this was also changed in the GdkGC vtable.
13719         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
13720         mask is 0, return immediately, instead of checking every flag.
13721         This is faster, and keeps us from segfaulting if values is NULL
13722         and the mask contains some nonzero flags.
13723
13724         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
13725         GdkWindow.
13726
13727         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
13728         GdkWindowPrivate is gone.
13729
13730         * gdk/x11/gdkim-x11.c: rename things that got renamed.
13731
13732         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
13733         remove the image_put stuff that got transferred to GdkDrawable.
13734         
13735         * gdk/x11/gdkinput.c: renamings
13736
13737         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
13738
13739         * gdk/x11/gdkpixmap-x11.c: GObject conversion
13740
13741         * gdk/x11/gdkprivate-x11.h: indentation fixes
13742
13743         * gdk/x11/gdkproperty-x11.c: renamings
13744
13745         * gdk/x11/gdkselection-x11.c: renamings
13746
13747         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
13748         implements the platform-specific "impl" object.
13749         Moved gdk_window_get_children to gdk/gdkwindow.c
13750
13751         * gdk/x11/gdkx.h: Remove all the private structs and private datas
13752         that no longer exist. Add declaration of GdkGCX11 object here.
13753         Fix all the macros to still work. 
13754
13755         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
13756         GdkDragContext from the boxed types since they are now GObjects.
13757
13758         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
13759         moved xthickness/ythickness into the instance. GtkStyleClass
13760         functions are now in the standard vtable for GtkStyle, so you have
13761         to create a GObject subclass to write a theme engine.
13762         (gtk_style_copy): fixed a leaked PangoFontDescription
13763         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
13764         can be the standard GObject function.
13765         
13766         * Throughout GTK:
13767         s/style->klass->[xy]thickness/style->[xy]thickness
13768         s/pango_layout_unref/g_object_unref/
13769
13770         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
13771         
13772         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
13773         accessing GDK internals.
13774
13775         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
13776         accessing GDK internals.
13777
13778 2000-06-18  Elliot Lee  <sopwith@redhat.com>
13779
13780         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
13781
13782         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
13783         problem by calculating event position relative to the trough
13784         rather than the slider.
13785         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
13786
13787         * gdk/gdkgc.h: Add GDK_NOR.
13788
13789         * configure.in, Makefile.am: Add modules top level dir
13790         * configure.in: Only use pangox library if building x11 target.
13791         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
13792
13793 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
13794
13795         * gtk/gtkcolorsel.c: Change private class member to be named
13796         private_data throughout the file.
13797
13798         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
13799         private_data to avoid clashing with keyword.
13800
13801 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
13802
13803         * gdk/gdkdnd.h: Add comment to remove warning.
13804
13805 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
13806
13807         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
13808         Byelorussian language; changed the Makefile and file names 
13809         to reflect that.
13810
13811 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
13812
13813         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
13814         rather than gdk_window_hide; this makes things work
13815         correctly if the window is programmatically hidden while
13816         iconified.
13817
13818 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
13819
13820         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
13821         cut and paste typo where wrong pixmap was being
13822         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
13823
13824 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
13825
13826         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
13827         Add helper function to compute format / bytes 
13828         relationship. Use in a couple places to fix up
13829         errors which assume 8 * format.
13830
13831         * gtk/gtkselection.c (gtk_selection_request): Use 32
13832         rather than 8 * sizeof (GdkAtom), to work correctly
13833         on Alpha.
13834
13835 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
13836
13837         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
13838         libgtk.la
13839         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
13840         versions
13841
13842         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
13843         checking macros return NULL since the function has a return value.
13844
13845 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
13846
13847         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
13848         GTK+ from building at all.
13849
13850         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
13851
13852 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
13853
13854         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
13855         gtk/Makefile.am: make it possible to configure gtk for different
13856         targets on the same platform. The library name is now 
13857         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
13858         flag. Only the x11 target compiles right now.
13859         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
13860         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
13861         * gdk/nanox/gdk*generic*: delete generic region code.
13862         * gdk/linux-fb/gdk*generic*: delete generic region code.
13863         * README.nanox: update information.
13864         
13865 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
13866
13867         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
13868         prepend not append. (Pointed out by Brett Hall.)
13869
13870 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
13871
13872         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
13873
13874 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
13875
13876         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
13877         need this later, and this makes sure that the atexit for
13878         glib gets called after that for GDK, so atexits are
13879         properly ordered for object leak checking.
13880
13881         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
13882
13883         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
13884         pango_x_shutdown_display()
13885
13886         * gtk/simple.c (main): Close window on destroy.
13887
13888 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
13889
13890         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
13891         to treat initial creation different from setting with 
13892         regards to the graphics-exposures parameter, so add a parameter
13893         indicating whether this is initial or not.
13894
13895 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
13896
13897         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
13898         to sort of work by adding an extra return_exposes arg
13899         to gdk_event_translate() - it might be better to simply
13900         deprecate the function altogether and force people to rewrite
13901         without it. gdk_window_scroll() handles most of it, and where
13902         gdk_window_scroll() doesn't work, simply redrawing more does.
13903
13904         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
13905         assertion.
13906
13907         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
13908
13909         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
13910         bunch of pretty much useless /* Print debugging info */ comments 
13911         which had drifted away from the code they were commenting.
13912
13913 2000-06-02  Havoc Pennington  <hp@pobox.com>
13914
13915         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
13916         is in working order.
13917         
13918         * gtk/testtext.c: Change to reflect anonymous mark API
13919
13920         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
13921
13922         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
13923         field, which was unused.
13924
13925         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
13926         saves some typing.
13927
13928         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
13929
13930         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
13931         flag on the insertion point and selection bound
13932
13933         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
13934         make mark-manipulation functions take a GtkTextMark* instead of a
13935         mark name.
13936         
13937         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
13938         GtkTextMarkBody; will be used to detect attempts to delete
13939         the permanent marks (insert and selection bound)
13940
13941         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
13942
13943 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
13944
13945         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
13946         flag to on.
13947
13948         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
13949         Honor DOUBLE_BUFFRED_FLAG
13950
13951         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
13952         function to set the DOUBLE_BUFFERED flag.
13953
13954         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
13955         or not exposes done on the widget should be double-buffered.
13956
13957         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
13958         to be what would be expected. (Fixes problem with a
13959         g_return_if_fail() validating a TextDirection enumeration)
13960
13961 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
13962
13963         * gtk/gtkwidget.c: Remove all references to 
13964         offscreen flag which was no longer used.
13965
13966         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
13967
13968         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
13969         for non-null label_widget->parent.
13970
13971         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
13972         which no longer was used.
13973
13974         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
13975
13976         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
13977         for null arguments.
13978
13979         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
13980         check for destroyed windows.
13981
13982 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
13983
13984         * gtk/gtkimmulticontext.c: Add a finalize method and unref
13985         the slave context there.
13986
13987         * gtk/gtkinvisible.[ch]: Make reference counting behavior
13988         identical to GtkWindow.
13989
13990 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
13991
13992         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
13993         pangox to here, so we can write them independent of rendering
13994         system, using GDK primitives.
13995
13996         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
13997         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
13998         since we have a rendering-system independent implementation in
13999         terms of draw_glyphs().
14000         
14001         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
14002         function to render a single line.
14003
14004         * gdk/x11/gdkpango.c: Move the guts of this file mostly
14005         into ../gdkpango.c, which simplifies things, since we
14006         don't have to deal with raw X gc's.
14007
14008 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
14009
14010         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
14011         get the logical attributes for a given GtkTextLine.
14012
14013 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
14014
14015         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
14016         g_locale_get_codeset() to g_get_codeset() change.
14017
14018 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
14019
14020         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
14021         descriptions.
14022
14023         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
14024         the entry.
14025
14026         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
14027         redoing (vastly simplifying) for Pango. Still needs quite
14028         a bit of work. (Size selection is currently poor. List of 
14029         predefined sizes is not a good idea, since all of these
14030         sizes won't necessarily be distinct.)
14031
14032 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
14033
14034         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
14035         CODESET results for LANG=C.
14036
14037 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
14038
14039         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
14040         which takes a stringized pango font description;
14041         ignore the older 'font' and 'fontset' declarations.
14042
14043         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
14044         field with a GdkFont derived via gdk_font_from_description(),
14045         for compatibility. (Should we just remove it entirely?
14046         Probably too much compatibility breakage, but people
14047         should be migrating to the new Pango stuff as quickly
14048         as possible.)
14049
14050 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
14051
14052         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
14053
14054 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
14055
14056         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
14057         redoing; there are some bugs in size allocation right
14058         now, the semi-existant distinction between header / day
14059         fonts was removed, but, with Pango, could actually
14060         be made functional in a nice way.
14061         
14062         * gtk/testcalender: Move calender from examples into this
14063         directory as a test program. (We really need to restrcture
14064         testgtk into a whole directory full of tests for every
14065         widget or functionality group, separated into multiple .c
14066         files.)
14067
14068 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
14069
14070         * gtk/testgtk.c (file_exists): Fix stupid typo that
14071         was keeping RC file from being loaded.
14072
14073         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
14074         RC file font code.
14075
14076 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
14077
14078         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
14079         Add function to load a GdkFont from a PangoFontDescription.
14080
14081 2000-05-29  Tor Lillqvist  <tml@iki.fi>
14082
14083         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
14084         variable should be of type GdkEventPrivate.
14085
14086 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
14087
14088         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
14089         to have any widget for the label, use a GtkLabel widget
14090         to display the text. (Based partially on a patch from
14091         Anders Carlson.)
14092
14093         (Quite a bit of code reorganization - strip 90% of the
14094         guts out of gtkaspectframe and add a single virtual
14095         func to GtkFrameClass - compute_child_allocation.)
14096
14097 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
14098
14099         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
14100         (Removed clist->row_center_offset field because caching
14101         it wasn't saving time or code, added private function
14102         _gtk_clist_create_cell_layout()).
14103
14104 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
14105
14106         * gtk/gtkaccellabel.c: Pangoized.
14107
14108         * gtk/[hv]ruler.c: Pangoized
14109
14110 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
14111
14112         * gtk/gtkfilesel.c (gtk_file_selection_init):
14113         Use gtk_clist_set_column_auto_resize() to remove need
14114         need for manual column width computations.
14115
14116 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
14117
14118         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
14119         ensuring Pango correctness, and considerably simplifying the
14120         code.
14121         
14122         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
14123
14124         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
14125         getting of numbers of lines.
14126
14127         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
14128         to the actual requested width of the lable, not to the wrap
14129         width we set.
14130
14131         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
14132
14133         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
14134           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
14135
14136         * gtk/gtktextview.c: Fix structure inheritance.
14137
14138         * gtk/gtkprogressbar.c: Pangoize.
14139
14140 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
14141
14142         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
14143         in a function.
14144
14145         * gtk/gtktextlayout.c (find_display_line_above): Fixed
14146         bug with computing line tops.
14147
14148         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
14149
14150 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14151
14152         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
14153         and y_offset coordinates to do what we need now. (The offset between
14154         buffer and layout coordinates has been reintroduced, but is a 
14155         bit different than before.)
14156
14157         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
14158         handle the adjustments ourselves, and scroll as necessary using
14159         the new gdk_window_scroll().
14160         
14161         The advantage of this is that when we are incrementally revalidating,
14162         we are essentially rearranging things around the visible portion
14163         of the screen. With the old setup, the visible portion of the
14164         screen was moved around in the layout, so scrolling and redrawing
14165         to track that caused jumping of the display. Since we now
14166         control the scrolling ourselves, we can suppress this and
14167         only redraw when things actually change.
14168
14169 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
14170
14171         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
14172         the region not just redisplay it after-all, since we store the
14173         cursors in the LineDisplay. (Ugly interactions here between
14174         GtkLayout and GtkTextBTree here.)
14175         
14176         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
14177
14178 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
14179
14180         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
14181         Added function to scroll contents of a window while keeping the
14182         window constant. Works by XCopyArea or guffaw-scrolling depending
14183         on the details of how the window is set up. (guffaw-scrolling
14184         still needs to be filled in.)
14185
14186 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
14187
14188         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
14189         move the debugging that was tied to a global variable
14190         to that.
14191
14192         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
14193
14194         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
14195         validated flag, in line data instead of setting height/width to
14196         -1. This allows us to perform operations with partially invalid
14197         buffer (using the old size for invalid lines) and thus to do
14198         incremental vaidation. Keep height/width aggregates up to date
14199         when deleting text and rebalancing the tree.
14200
14201         * gtk/gtktextbtree.[ch]: Add functions validate a line
14202         (gtk_text_btree_validate_line), and to validate up
14203         to a number of pixels (gtk_text_btree_validate).
14204
14205         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
14206         that indicates that something is changed and a revalidation
14207         pass is needed. Change ::need_repaint to ::changed, and
14208         make it take old and new yranges instead of a rectangle.
14209
14210         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
14211         the line_data_destroy() function from 
14212         gtk_text_btree_add_view() to a virtual function in 
14213         GtkTextLayout
14214
14215         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
14216         since we are handling partial repaints in a different fashion
14217         now.
14218
14219         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
14220         of the selection instead of queueing a repaint on the
14221         entire widget.
14222
14223         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
14224         get_selection_bounds() down to btree, make the function
14225         in buffer a wrapper around the btree function.
14226
14227         * gtk/gtktextlayout.[ch]: Add functions to check if the
14228         layout is valid and to recompute either a range of pixels
14229         aroudn a line or a certain total number of pixels.
14230
14231         * gtk/gtktextlayout.[ch]: Cache a single line display;
14232         now that we only redraw the needed portions, the hit rate
14233         for this cache is quite high.
14234         
14235         * gtk/gtktextview.[ch]: Keep track of the first paragraph
14236         on the screen so that when re-laying-out the buffer, we can
14237         keep the same place. This requires connecting to ::value_changed
14238         on the adjustments
14239
14240         * gtk/gtktextview.[ch]: Add idle functions to revalidate
14241         the buffer after we receive an ::invalidated signal.
14242         
14243 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
14244
14245         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
14246         to max of allocation and layout size, not just to the
14247         layout size.
14248
14249         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
14250         Invalidate window so it gets redrawn properly.
14251
14252         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
14253         to mean the entire window.
14254
14255         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
14256         into public header.
14257
14258 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14259
14260         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
14261         to get the name of a mark.
14262
14263         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
14264         to find the paragraph from a y position.
14265
14266 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
14267
14268         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
14269         nodes have width/height >= 0, not > 0.
14270
14271 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
14272
14273         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
14274         Add a size_only flag, so when we only need the size, we don't create
14275         useless appearance attributes.
14276
14277         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
14278         duplicate setting of font description.
14279
14280         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
14281
14282 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
14283
14284         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
14285         EXTRA_DIST. It does not work well when the file that
14286         everything depends on is not in the tarball.
14287
14288 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
14289
14290         * gtk/testgtk.c: Some hacks and fixes so that it basically
14291         works when not sitting in the GTK+ build tree.
14292
14293 2000-05-03  Havoc Pennington  <hp@redhat.com>
14294
14295         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
14296         Properly determine the ordering of the tag root and the current
14297         line within the tree. Previous algorithm only worked if the tag
14298         root's immediate parent was the common root of both the current
14299         line and the tag root.
14300
14301 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
14302
14303         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
14304         alignment.
14305
14306         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
14307         the widget text directional dynamically.
14308
14309         * gtk/gtktextview.[ch]: Added functions to get and set default
14310         wrap mode.
14311
14312 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
14313
14314         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
14315         in cursor location computation.
14316
14317 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
14318
14319         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
14320         vadjusment values properly when layout gets smaller.
14321
14322         * gtk/gtktextview.c (need_repaint_handler): Areas being
14323         passed in are far completely inaccurate, and sometimes
14324         too small, so, for now, just queue a redraw on the
14325         whole visible region.
14326
14327 2000-04-25  Havoc Pennington  <hp@redhat.com>
14328
14329         * gtk/gtktextbtree.c (summary_destroy): new function to 
14330         destroy tag summary nodes
14331         (gtk_text_line_next_could_contain_tag): this function was 
14332         totally broken if the line passed in wasn't below the tag
14333         root. Fix it.
14334         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
14335         "wildcard" case, we have to do a linear scan. Blah.
14336         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
14337         we have to do the linear scan
14338         (tag_removed_cb): When a tag is removed from the tag table, 
14339         remove the GtkTextTagInfo node from the btree.
14340         (gtk_text_btree_spew): Implement the spew function, for 
14341         our debugging pleasure.
14342
14343 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
14344
14345         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
14346         a problem with referring to the wrong buffer.
14347
14348         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
14349
14350         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
14351         font description to gtk_style_new() - otherwise things
14352         don't work without a .gtkrc file.
14353
14354         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
14355         tags table if we create it ourself, too.
14356
14357         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
14358         it was conflicting with XKB modifiers.
14359
14360         * gtk/gtktextview.[ch]: Add simple support for 
14361         GtkIMContext.
14362
14363 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
14364
14365         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
14366         with deletion from last commit.
14367
14368 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
14369
14370         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
14371         in the context from the current locale.
14372         
14373         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
14374         context, not hardcoded value.
14375
14376         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
14377         not logical.
14378
14379 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
14380
14381         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
14382         attributes - that doesn't handle partial-glyph selection
14383         properly. Instead use new pango_layout_line_get_x_ranges()
14384         functionality to draw the selection.
14385
14386         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
14387         now properly handles out-of-range coordinates.
14388
14389         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
14390
14391         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
14392         public.
14393
14394         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
14395         for paragraphs opposite to the base direction of the widget.
14396
14397         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
14398
14399         * gtk/gtktextlayout.c: Don't split segments on marks, since that
14400         causes Arabic words to reshape as you cursor through.
14401
14402         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
14403         cursor position when moving vertically with the arrow keys and
14404         scrolling with page-up/page-down. (Arrow keys save only the X,
14405         scrolling saves both X and Y.)
14406
14407         This means you can line-up / line-down or page-up / page-down
14408         without losing your place, and also that moving vertically
14409         with the cursor keys keeps the same X position, not the same
14410         character count:
14411
14412         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
14413         arrow keys move by display lines, not paragraphs.
14414
14415 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
14416
14417         * gtk/gtklayout.c: Make sure that the bin window is at least
14418         as big as the allocation. (Should we also make sure that the
14419         bin window is big enough to completely cover widget->window?)
14420
14421         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
14422         function to get the onscreen rectangle.
14423
14424         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
14425         for offsets in window coordinates.
14426
14427 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
14428
14429         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
14430         confusion.
14431
14432         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
14433         from the widget direction.
14434
14435         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
14436         Add a "direction" attribute.
14437
14438         * gtk/gtktextview.c: global s/tkxt/text_view/.
14439
14440         * gtk/testtext.c: Added long block of text in Arabic, to test out
14441         the direction attributes. (Some problems with the shaping system
14442         for arabic become obvious - like the fact the cursor splits words
14443         into unjoined pieces.)
14444
14445 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
14446
14447         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
14448
14449         * gtk/gtktextlayout.c: Fix up alignment.
14450
14451         * gtk/testtext.c: Add some tests for centering, wrapping.
14452
14453 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
14454
14455         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
14456         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
14457         If we wrote GTK+-specific layout-render function this could just replace
14458         the draw_layout() operation in the vtable.
14459
14460         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
14461         pango_layout_get_cursor_pos() and use that function.
14462
14463         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
14464         is a non-static symbol.
14465
14466         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
14467         with gtk_text_btree_find_line_by_y()
14468
14469         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
14470         renderer that handles GtkTextAppearance attributes.
14471
14472         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
14473
14474           - Move the values in the style that don't affect geometry into a
14475             GtkTextAppearance structure.
14476           - Change underline to take a PangoUnderline and "font" a string
14477             representation of a font description
14478           - Add a "font_desc" attribute which takes a FontDescription structure.
14479
14480         * gtk/gtktextlayout.[ch]:
14481
14482           - Get rid of the display-line list per each line. Instead, we
14483             generate, on demand, a GtkTextLineDisplay structure which]
14484             contains a PangoLayout * and other necesary information
14485             (offsets, cursor locations) for displaying a paragraph.
14486           - Get rid of the code to wrap lines, create display chunks,
14487             etc. Instead, we just go through a paragraph and convert
14488             it into the necessary inputs to a PangoLayout.
14489           - Implement a new attribute type, GtkTextAttrAppearance. This
14490             holds a GtkTextAppearance, and is used to pass colors, 
14491             stipple, etc, through from the layout to the display without
14492             having to use lots and lots of individual attributes.
14493           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
14494             in terms of PangoLayout functions.
14495         
14496         * gtk/gtktextview.c: 
14497          
14498           - Handle passing the necessary PangoContext to the layout
14499           - Some fixups in painting to deal with the automatic backing store
14500             and offsetting of GTK+-1.4
14501           - Add a style_set handler so that the default style reacts
14502             properly to theme changes.
14503         
14504         * gtk/gtktext?*.[ch]: Random code-style fixes.
14505
14506         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
14507
14508 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
14509
14510         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
14511         in original form preparatory to Pango-ization and gdkimcontext-ization.
14512
14513 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
14514
14515         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
14516         so that we can derive from gtkimcontext in language bindings properly.
14517
14518 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
14519
14520         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
14521         Add a compose table including (almost) all the compose combinations
14522         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
14523         data in the XIM implementation.
14524
14525         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
14526         Moved functions to convert keyvalues from and to unicode here from
14527         the win32 port and made them public.
14528
14529 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
14530
14531         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
14532
14533 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
14534
14535         * gtk/gtkimcontext.[ch]: Base class for new input context system
14536
14537         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
14538         the real input context implementation to be loaded from modules
14539         and switched on the fly.
14540
14541         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
14542         context that just does direct keysymbol => unicode translation.
14543
14544         * gtk/gtkentry.[ch]: Start switching editing over to using
14545         GtkInputContext. (No handling of preedit yet.)
14546
14547 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
14548
14549         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
14550         many substitutions. (klass should not be subsituted.)
14551
14552 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
14553
14554         * configure.in: Add checks for Pango
14555
14556         * configure.in docs/Makefile.am: Add test for sgml2html
14557         and allow 'make dist' without building html, but print out
14558         warnings in that case. (For making snapshots)
14559
14560         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
14561         Add Pango libraries and C flags
14562
14563         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
14564         Add function (gdk_draw_layout) to draw a pango layout.
14565
14566         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
14567         for getting Pango contexts for GDK.
14568
14569         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
14570
14571         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
14572         editing.
14573
14574         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
14575         keysym => unicode translations. More languages can be added
14576         here, but real input-method support is needed.
14577
14578         * docs/Changes-1.4.txt: Added note about entry behavior.
14579         
14580         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
14581         to set the reading direction for a widget and the global direction.
14582         Add test which allows toggling the global direction. Two private
14583         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
14584
14585         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
14586           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
14587
14588         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
14589
14590         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
14591         underlining now handled by Pango.
14592
14593         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
14594         to RCStyle and Style. (Having both this and the old font name and GdkFont 
14595         is temporary.)
14596
14597         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
14598         convenience functions for creating contexts and layouts for widgets.
14599
14600         * gtk/testgtk.c: Enhance label tests with multilingual labels.
14601
14602 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
14603
14604         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
14605         titles to be active, even if they aren't visible.
14606         (gtk_clist_column_titles_passive):  Ditto.
14607
14608 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
14609
14610         * gtkmenu.c:
14611         * gtkmenu.h:
14612         * gtktypeutils.h: Spelling/grammar fixes in comments.
14613
14614 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
14615
14616         * gdk/nanox/*.h: add missing header files.
14617
14618 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
14619
14620         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
14621         send_event to TRUE.
14622         (gtk_drawing_area_size): queue a resize.
14623
14624 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
14625
14626         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
14627         the handlers, also invalidate them. bug nailed down by Karl Nelson
14628         <kenelson@ece.ucdavis.edu>.
14629
14630 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
14631
14632         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
14633         "(nil)" foundries, patch from Grigorios Magklis.
14634
14635         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
14636         on non-available fonts, based on a patch by Grigorios Magklis
14637         <maglis@cs.rochester.edu>.
14638
14639 2000-05-18  Elliot Lee  <sopwith@redhat.com>
14640
14641         * gdk/x11/gdkregion-generic.c: If a region does not have any
14642         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
14643         instead of GDK_OVERLAP_RECTANGLE_IN.
14644
14645 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
14646
14647         * gtk/gtklayout.c (gtk_layout_map): Remove references to
14648         OFFSCREEN, as it is no longer necessary.
14649
14650 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
14651
14652         * gtk/gtkcolorsel.c: Patch from David Santiago
14653         <mrcooger@cyberverse.com> to change things so that the 
14654         indicator of the active palette entry is done independently,
14655         not via the focus, since it should always be visible.
14656
14657 2000-05-17  Tor Lillqvist  <tml@iki.fi>
14658
14659         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
14660         refcount leaks as in the X11 backend.
14661
14662         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
14663         cosmetics.
14664
14665         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
14666         backend. Add _gdk_windowing_window_destroy().
14667
14668         * gtk/gtkcolorsel.c: Include correct backend-specific header.
14669         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
14670         either, but these probably do exist on nanox?)
14671         
14672         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
14673         which isn't necessarily defined by <math.h>.
14674
14675         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
14676         ancestry past GtkObject.
14677
14678         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
14679         from DLL on Win32.
14680
14681         * gtk/gtk.def: Update corresponding to recent changes.
14682
14683         * gtk/makefile.{cygwin,msc}: Updates.
14684
14685 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
14686
14687         * docs/Changes-1.4.txt: A bit of editing.
14688
14689         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
14690         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
14691         to clear the update area for the window, and clear it
14692         when hiding a window.
14693
14694         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
14695         if window destroyed.
14696
14697         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
14698
14699         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
14700         gdk_window_destroy() to the generic code, since there was a lot of 
14701         window-system-independent logic it in. Add a function:
14702         
14703          _gdk_window_destroy() 
14704
14705         to the internal API to destroy a window without unreferencing it.
14706         Add a function:
14707
14708          _gdk_windowing_window_destroy()
14709
14710         That does the windowing-system-dependent part of destroying 
14711         the window.
14712
14713 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
14714
14715         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
14716
14717 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
14718
14719         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
14720         Make gtk_widget_shape_combine_mask() keep a reference count on
14721         the pixmap since it keeps it around.
14722
14723 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
14724
14725         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
14726         leak.
14727
14728         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
14729         leak with event filters.
14730
14731 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
14732
14733         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
14734         signal handlers with the right data arguments. (Fixes
14735         some warnings when a widget was repeatedly set as a drag
14736         destination.)
14737
14738         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
14739         window so we can avoid avoid setting the DND properties on the
14740         toplevel window repeatedly.
14741
14742 2000-05-13  Tor Lillqvist  <tml@iki.fi>
14743
14744         * gdk/win32/gdkwin32.h: Define more message types missing from
14745         mingw headers.
14746
14747         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
14748         call gdk_window_destroy_notify(). It was never called. This
14749         probably meant that the GdkWindow was never freed. Thanks Owen for
14750         noticing (!).
14751
14752         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
14753         window as destroyed before calling DestroyWindow(). DestroyWindow()
14754         causes a call to the window procedure (gdk_WindowProc), which
14755         calls gdk_event_translate(), which calls
14756         gdk_window_destroy_notify(), which gets confused unless the window
14757         is set as destroyed.
14758
14759         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
14760         this function to indicate it's win32 only. Put inside #ifdef
14761         G_ENABLE_DEBUG.
14762
14763         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
14764         debugging function. (gdk_event_translate:) Add a default branch
14765         that uses the above function to print debug messages with all
14766         Windows messages symbolically.
14767
14768         * gdk/win32/gdkprivate-win32.h: Declare it, and
14769         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
14770
14771 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
14772
14773         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
14774         public header file.
14775
14776 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
14777
14778         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
14779
14780         * gtk/gtktext.c: made the adjustments no-construct args, simply
14781         provide default adjustments.
14782         (gtk_text_destroy): release adjustments.
14783
14784         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
14785         adjustment argument non-construct.
14786
14787         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
14788         instead of in finalize.
14789         (gtk_progress_get_text_from_value): 
14790         (gtk_progress_get_current_text): 
14791         (gtk_progress_set_value): 
14792         (gtk_progress_get_percentage_from_value): 
14793         (gtk_progress_get_current_percentage): 
14794         (gtk_progress_set_percentage): 
14795         (gtk_progress_configure): ensure an adjustment is present.
14796
14797 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
14798
14799         * gtk/gtkcolorsel.[hc]:
14800         * gtk/gtkcolorseldialog.[hc]:
14801         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
14802         their parent implementation, use bit fields for boolean values, don't
14803         create unused widgets, usage of glib types, braces go on their own
14804         lines, function argument alignment, #include directives etc. etc. etc..
14805
14806         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
14807
14808 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
14809
14810         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
14811
14812         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
14813         of NULL.
14814
14815         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
14816         to freed data.
14817         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
14818
14819         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
14820         to NULL when the toplevel is getting destroyed.
14821         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
14822         (gtk_menu_destroy): 
14823         (gtk_menu_init): store the information of whether we have to
14824         readd the initial child ref_count during destruction in a new
14825         GtkMenu field needs_destruction_ref_count.
14826
14827         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
14828         here, those reading: learn from my mistake! ;)
14829         in order for set_?adjustment to support a default adjustemnt if
14830         invoked with an adjustment pointer of NULL, the code read (pseudo):
14831         if (v->adjustment) unref (v->adjustment);
14832         if (!adjustment) adjustment = adjustment_new ();
14833         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
14834         now imagine the first unref to actually free the old adjustment and
14835         adjustment_new() creating a new adjustment from the very same memory
14836         portion. here, the latter comparision will unintendedly fail, and
14837         all hell breaks loose.
14838         (gtk_viewport_set_hadjustment):
14839         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
14840         after unreferencing it.
14841
14842         * gtk/gtkcontainer.[hc]: removed toplevel registration
14843         functions: gtk_container_register_toplevel(),
14844         gtk_container_unregister_toplevel() and
14845         gtk_container_get_toplevels() which had wrong semantics
14846         anyways: it didn't reference and copy the list.
14847
14848         * gtk/gtkwindow.c: we take over the container toplevel registration
14849         bussiness now. windows are registered across multiple destructions,
14850         untill they are finalized. the initial implicit reference count
14851         users are holding on windows is removed with the first destruction
14852         though.
14853         (gtk_window_init): ref & sink and set has_user_ref_count, got
14854         rid of gtk_container_register_toplevel() call. add window to
14855         toplevel_list.
14856         (gtk_window_destroy): unref the window if has_user_ref_count
14857         is still set, got rid of call to
14858         gtk_container_unregister_toplevel().
14859         (gtk_window_finalize): remove window from toplevel list.
14860         (gtk_window_list_toplevels): new function to return a newly
14861         created list with referenced toplevels.
14862         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
14863
14864         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
14865         adjustment a non-construct arg.
14866         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
14867         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
14868         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
14869
14870         * gtk/gtkrange.c: added some realized checks.
14871         (gtk_range_destroy): get rid of the h/v adjustments in the
14872         destroy handler instead of finalize. remove timer.
14873         (gtk_range_get_adjustment): demand create adjustment.
14874
14875         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
14876         we simply create them on demand now and get rid of them in
14877         the destroy handler.
14878         (gtk_viewport_destroy): get rid of the h/v adjustments in the
14879         destroy handler instead of finalize.
14880         (gtk_viewport_get_hadjustment): 
14881         (gtk_viewport_get_vadjustment): 
14882         (gtk_viewport_size_allocate): demand create h/v adjustment
14883         if required.
14884
14885         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
14886         gtk_widget_real_destroy () functionality.
14887         (gtk_widget_real_destroy): reinitialize with a new style, instead
14888         of setting widget->style to NULL.
14889
14890 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
14891
14892         * gtk/gtkcalendar.c:
14893         * gtk/gtkbutton.c: ported _get_type() implementation over to
14894         GType, either to preserve memchunks allocation facilities,
14895         or because Gtk+ 1.0 GtkTypeInfo was still being used.
14896
14897         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
14898         over. prepare for ::destroy to be emitted multiple times.
14899         removed reference tracer magic. chain into GObjectClass.shutdown()
14900         to emit ::destroy signal.
14901
14902         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
14903         fundamental.
14904
14905         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
14906         cludge.
14907
14908         * gtk/gtksocket.c:
14909         * gtk/gtkplug.c:
14910         * gtk/gtklayout.c:
14911         * gtk/gtklabel.c:
14912         * gtk/gtkargcollector.c:
14913         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
14914         not being a fundamental anymore, and to work with the new
14915         type system (nuked fundamental type varargs clutter).
14916
14917         * gtk/*.c: install finalize handlers in the GObjectClass
14918         part of the class structure.
14919         changed direct GTK_OBJECT()->klass accesses to
14920         GTK_*_GET_CLASS().
14921         changed direct object_class->type accesses to GTK_CLASS_TYPE().
14922
14923         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
14924         GType. made most of the GTK_*() type macros and Gtk* typedefs
14925         simple wrappers around macros and types provided by GType.
14926         most notably, a significant portion of the old API vanished:
14927         GTK_TYPE_MAKE(),
14928         GTK_TYPE_SEQNO(),
14929         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
14930         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
14931         GTK_TYPE_ARGS,
14932         GTK_TYPE_CALLBACK,
14933         GTK_TYPE_C_CALLBACK,
14934         GTK_TYPE_FOREIGN,
14935         GtkTypeQuery,
14936         gtk_type_query(),
14937         gtk_type_set_varargs_type(),
14938         gtk_type_get_varargs_type(),
14939         gtk_type_check_object_cast(),
14940         gtk_type_check_class_cast(),
14941         gtk_type_describe_tree(),
14942         gtk_type_describe_heritage(),
14943         gtk_type_free(),
14944         gtk_type_children_types(),
14945         gtk_type_set_chunk_alloc(),
14946         gtk_type_register_enum(),
14947         gtk_type_register_flags(),
14948         gtk_type_parent_class().
14949         replacements, where available are described in ../docs/Changes-1.4.txt.
14950         implemented compatibility functions for the remaining API.
14951
14952         * configure.in: depend on glib 1.3.1, use gobject module.
14953
14954 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
14955
14956         * TODO.xml: Various updates to current status.
14957
14958 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
14959
14960         * gtk.m4: Print out version when test succeeds.
14961
14962 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
14963
14964         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
14965         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
14966         
14967         (Original triangle color selector from Simon Budig
14968         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
14969         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
14970         Santiago <mrcooger@cyberverse.com>)
14971
14972         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
14973         out into a separate widget.
14974
14975         * gtk/testgtk.c: Add some checkbuttons for toggling palette
14976         and opacity controls.
14977
14978 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
14979
14980         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
14981         snuck in prematurely.
14982
14983 2000-05-07  Tor Lillqvist  <tml@iki.fi>
14984
14985         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
14986         had deleted a ! operator by mistake, which caused
14987         GDK_SELECTION_CLEAR events never to be generated, which caused
14988         only the first copy to the clipboard from an gtkeditable to
14989         actually cause a copy to the Windows clipboard.
14990
14991 2000-05-06  Tor Lillqvist  <tml@iki.fi>
14992
14993         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
14994         compilation, too. Current mingw gcc distributions include the
14995         necessary headers. Also the necessary IIDs are now in mingw
14996         headers/libraries, and own definitions unnecessary.
14997
14998         More hacking on OLE2 DND, still doesn't work though, and thus
14999         ifdeffed out.
15000
15001         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
15002         here, too.
15003
15004 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
15005
15006         * gdk/nanox/*: nano-X port work in progress.
15007         * gdk/simple.c: simple test for Gdk.
15008         * README.nanox: notes about the port: read this first!
15009         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
15010         with nano-X.
15011
15012 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
15013
15014         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
15015         gdk_window_clear() into common code, implement in terms of
15016         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
15017         not redirected to the backing rectangle.
15018
15019 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
15020
15021         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
15022         EXTRA_DIST. It does not work well when the file that
15023         everything depends on is not in the tarball.
15024
15025 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
15026
15027         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
15028         with recursion where process_updates() is called from
15029         an expose handler. (GtkTextView is highly broken in
15030         doing this, but it should work, so it is a nice test
15031         case.)
15032
15033 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15034
15035         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
15036         handle the case where updates are queued during processing of
15037         updates.
15038
15039 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15040
15041         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
15042         window is on gdk_display - use that instead of segfaulting.
15043
15044 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
15045
15046         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
15047         broken and require an empty arg, give it to them.
15048
15049 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
15050
15051         * gtk/gtklabel.h: indentation fixes.
15052
15053 2000-05-02  Tor Lillqvist  <tml@iki.fi>
15054
15055         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
15056         draw too narrow or too low arcs, they seem to fail, at least with
15057         some display drivers.
15058
15059         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
15060
15061         Large changes to the Win32 backend, partially made necessary by
15062         the changes to the backend-independent internal
15063         structures. Attempts to implement similar backing store stuff as
15064         on X11. The current (CVS) version of the Win32 backend is *not* as
15065         stable as it was before the no-flicker branch was merged. A
15066         zipfile with that version is available from
15067         http://www.gimp.org/win32/. That should be use by "production"
15068         code until this CVS version is usable. (But note, the Win32
15069         backend has never been claimed to be "production quality".)
15070
15071         * README.win32: Add the above comment about versions.
15072
15073         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
15074
15075         * gdk/gdk.def: Update.
15076
15077         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
15078         presumably be replaced by some more better mechanism as 1.4 gets
15079         closer to release shape.
15080
15081         * gdk/makefile.{cygwin,msc}: Update.
15082
15083         * gdk/win32/*.c: Correct inclusions of the backend-specific and
15084         internal headers. Change code according to changes in these. Use
15085         gdk_drawable_*, not gdk_window_* where necessary.
15086
15087         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
15088         our old DND.
15089
15090         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
15091         to interpret single characters as UTF-8. Thanks to Hans Breuer.
15092         Use correct function name in warning messages.
15093
15094         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
15095         GSourceFuncs gdk_event_prepare and gdk_event_check.
15096         (gdk_event_get_graphics_expose): Do implement, use
15097         PeekMessage. Thanks to Hans Breuer.
15098         (event_mask_string): Debugging function to print an GdkEventMask.
15099         (gdk_pointer_grab): Use it.
15100
15101         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
15102         (old) book I used claimed was Hangul actually is CJK Unified
15103         Ideographs Extension A. Also, Hangul Syllables were missing.
15104         Improve logging.
15105
15106         * gdk/win32/gdkgc-win32.c: Largish changes.
15107
15108         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
15109         g_win32_getlocale() from GLib, and not setlocale() to get current
15110         locale name.
15111
15112         * gdk/win32/gdkprivate-win32.h
15113         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
15114         gdkwin32.h, similarily as in the X11 backend.
15115
15116         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
15117         assignment was used instead of equals in if test. Thanks to Hans
15118         Breuer.
15119
15120         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
15121         the X11 version.
15122
15123         * gdk/win32/makefile.{cygwin,msc}
15124         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
15125         path to the Win32 headers that works also with the mingw compiler.
15126
15127         * gtk/gtkstyle.c: Include <string.h>.
15128
15129 2000-04-26  Havoc Pennington  <hp@redhat.com>
15130
15131         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
15132         replacing the broken gtk_label_get ()
15133
15134 2000-04-15  Havoc Pennington  <hp@pobox.com>
15135
15136         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
15137         this keeps scanner scripts from getting confused.
15138
15139         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
15140         data, rather than void
15141
15142 2000-04-15  Tor Lillqvist  <tml@iki.fi>
15143
15144         * gtk/gtkclist.c (gtk_clist_motion)
15145         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
15146         with is_hint FALSE, get x and y from the event. They used to be
15147         used uninitialised. The Win32 backend never sends motion events
15148         marked as hints. This for instance fixes the annoying file and
15149         font selector behaviour in the Win32 version.
15150
15151 2000-04-14  Tor Lillqvist  <tml@iki.fi>
15152
15153         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
15154         gtk_private_n_signals variables, they are used by some software,
15155         sigh.
15156
15157         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
15158         installation directory from the Registry, where the installer
15159         should have put it.
15160
15161 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
15162
15163         * gdk/x11/Makefile.am: Fix problem with installation directory for
15164         gdkx.h
15165
15166         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
15167         <mrcooger@cyberverse.com> so that when selecting menus with the
15168         mouse, the first item will not be selected, but when selecting
15169         with an accelerator, or navigating left-right on a menubar with
15170         the menus popped up, the first item will be selected.
15171
15172 2000-04-05  Dan Damian  <dand@dnttm.ro>
15173
15174         * configure.in: Added "ro" to ALL_LINGUAS.
15175
15176 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
15177
15178         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
15179         indentation.
15180
15181         * Makefile.am (EXTRA_DIST): Fix typo.
15182
15183         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
15184         to catch gdkconfig.h
15185
15186         * gtk/gtkitemfactory.c: Added FIXME.
15187
15188 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
15189
15190         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
15191         s/return_if_fail/return_val_if_fail/g and add a return value.
15192
15193 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
15194
15195         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
15196         merge slipup.
15197
15198         * gdk/gdkinput.h: Fix missing line from merge.
15199
15200 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
15201
15202         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
15203         instead of gdkprivate.h.
15204
15205 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
15206
15207         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
15208         parent class to correctly be GtkDialogClass.
15209
15210 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
15211
15212         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
15213         toplevel windows and their immediate children by their parents,
15214         since the size of toplevel windows is out of our immediate
15215         control and we don't get any real benefit from trying to track
15216         this size for clipping.
15217
15218         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
15219         for input_only windows.
15220
15221         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
15222         to fix some hacks and make sure that we don't try to set the
15223         background of input only windows.
15224
15225 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
15226
15227         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
15228         the _really_ internal stuff, and leave gdkprivate.h for the fake private
15229         stuff that we've traditionally exposed.
15230
15231         * gdk/**.c: Use gdkinternals.h where appropriate.
15232
15233         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
15234         not include gdkprivate-x11.h, move all stuff of conceivable public
15235         interest into gdkx.h; keep all really private stuff in
15236         uninstalled header gdkprivate-x11.h.
15237
15238         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
15239         image->image_put on windows through a new function _gdk_window_draw_image()
15240         to allow us to do backing store for images. (Sort of ugly)
15241
15242         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
15243         contexts locally so that we can offset them properly when drawing 
15244         onto backing pixmaps.
15245
15246         * gdk/gdkinput.h: Reindented
15247
15248         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
15249         pixmap or color for the window, so we can properly initialize
15250         our double-buffer pixmaps, and also so that we temporarily set
15251         a background of None while scrolling.
15252
15253         * gdk/gdkregion.h: Revise region boolean operators to have an
15254         interface that is actually convenient - switch from creating new
15255         regions on every op, to "methods" that modify existing regions
15256         (A = A OP B). 3 argument forms which allow dest == src, would also
15257         be possible, but the current interfaces seem to map nicely
15258         onto what needs to be done. (There is quite a lot of region
15259         code in GDK now.)
15260
15261         * gdk/gdkregion.h: Add constructor from rectangle and a copy
15262         operator.
15263
15264         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
15265         gdkpoly-generic.h: Copy region code from Xlib, switch it over
15266         to 32 bit coordinates, modify it to be mostly GTK+ style
15267         and to have interfaces that match gdkregion.h.
15268
15269         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
15270         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
15271         create a backing pixmap and redirect all drawing to
15272         that backing pixmap until a matching gdk_window_end_paint().
15273
15274         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
15275         Create a special drawable class for GtkWindow's that 
15276         redirects the drawing to the backing pixmap as necessary
15277         and then calls the real operations in _gdk_windowing_window_class.
15278
15279         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
15280         Store invalid region for each window. Generate expose events for invalid
15281         region in an idle. This replaces both the expose compression
15282         and the redrawing queuing in GTK+. It is both more efficient and
15283         simpler than either one individually and far more so then the
15284         combination.
15285
15286         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
15287         Emulate 32 bit coordinates for windows with 16 bit coordinates
15288         by offsetting drawing, guffaw scrolling techniques and
15289         mapping/unmapping child windows as necessary.
15290
15291         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
15292         where, when invalid regions are processed, the region is stored,
15293         and if expose events come in that are detectably duplicate
15294         the processed exposes (by comparison of event serial numbers),
15295         the stored region is subtracted out of those exposes.
15296
15297         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
15298         regions newly exposed when scrolling or resizing windows.
15299         This, combined with forcing processesing of queued invalidated
15300         regions, gives nice flicker-free scrolling.
15301
15302         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
15303         invalidated regions after every scroll.
15304
15305         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
15306         emulation in GDK. Its, for all practical purposes just a
15307         GtkViewport/GtkFixed hybrid now.
15308
15309         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
15310         (16-bit) structures as necessary instead of just casting.
15311
15312         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
15313         in terms of the structures from gdkregion-generic.c, using appropriate
15314         offsets from GDK to X11 coordinates. Cache clip mask and
15315         origin and ts origin locally and only flush to the server
15316         when drawing, to avoid constantly setting and resetting these
15317         values when offsetting GC's for scrolling and backing pixmaps.
15318
15319         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
15320
15321         * gtk/gtkcontainer.c: Call process_all_updates at end
15322         of resizing to reduce flicker. (Avoids having redraw
15323         lag arbitrarily behind resize under some circumstances)
15324
15325         * gtk/gtkentry.c: Remove old backing store code, and simply take
15326         advantage of the new backing store capabilities of GDK.
15327
15328         * gtk/gtkmain.c: Simple implementation of widget backing
15329         store - simply push a paint while handling each expose.
15330         (Should really be configurable widget for widget.)
15331         
15332         * gtk/gtkwidget.c: Remove all the old complicated redraw
15333         code, and simply invalidate the GDK windows from
15334         gdk_window_queue_clear(), etc. (Sigh, so much carefully
15335         debugged complexity ... gone to the winds.)
15336
15337         Remove all the code for suppressing expose events while
15338         resizes are pending; this isn't needed since the invalid
15339         areas won't be processed until after the resizes are
15340         processed, since they are in a lower priority idle.
15341
15342 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
15343
15344         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
15345         and height of dest rectangle for non-intersecting rectangles.
15346
15347 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
15348
15349         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
15350         for GdkRectangle.
15351
15352 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
15353
15354         * gdk/gdk{events,image,private,types,window}.h
15355          gdk/x11/gdkinputprivate.h: Change all coordinates
15356          from int16 to int. Also, Change width and height from
15357          unsigned to signed to avoid all the stupid C 
15358          signedness bugs.
15359
15360 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
15361
15362         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
15363         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
15364         Add some more detailed checking.
15365
15366         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
15367         New function to retrieve the depth of a drawable.
15368
15369         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
15370         field, reorder fields to save memory. 
15371
15372 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
15373
15374         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
15375         of the background image instead of scaling the background down to
15376         a line.
15377
15378         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
15379         which temporarily set slider to wrong size.
15380
15381         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
15382         queue_clear().
15383
15384 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
15385
15386 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
15387
15388         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
15389
15390 2000-03-17  Tor Lillqvist  <tml@iki.fi>
15391
15392         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
15393         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
15394
15395         * gdk/win32/gdkfont-win32.c
15396         * gdk/win32/gdkproperty-win32.c
15397         * gdk/win32/gdkselection-win32.c
15398         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
15399         now declared such.
15400
15401 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
15402
15403         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
15404
15405 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
15406
15407         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
15408         is called without trapping X errors.
15409
15410 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
15411
15412         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
15413         way into the fontset lists.
15414
15415 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
15416
15417         * gtk/gtkthemes.h: add extern "C" scope.
15418
15419 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
15420
15421         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
15422         to make appends to the list constant. (gtk-guy-990901-0.patch)
15423
15424 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
15425
15426         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
15427         for the typename hash table.
15428
15429 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
15430
15431         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
15432         to make sure we never divide by zero. 
15433         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
15434
15435 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
15436
15437         * gtk/gtkfontsel.c: Apply patch from
15438         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
15439         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
15440
15441         Also, some cleanups in atom handling.
15442
15443 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
15444
15445         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
15446         not GtkWidget.
15447
15448 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
15449
15450         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
15451         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
15452         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
15453         more guint wrap-around bugs before going to bed.
15454
15455 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
15456
15457         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
15458         guint wrap arounds in allocation.width.
15459
15460         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
15461         process untill we fit the allocation given.
15462
15463 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
15464
15465         * gtk/gtkwidget.c:
15466         (gtk_widget_unrealize): guard widget access with ref/unref
15467         around signal emission.
15468         (gtk_widget_hide): same here, but also check its destroyed
15469         state before queueing a resize.
15470
15471 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
15472
15473         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
15474         of gtk_default_insensitive_bg as insensitive base color.
15475
15476         * gtk/gtktext.c (gtk_text_style_set): set the background color according
15477         to the widget's state.
15478         (gtk_text_realize): same here.
15479         (gtk_text_state_changed): same here.
15480         (draw_bg_rect): compare background color against base[] from
15481         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
15482
15483 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
15484
15485         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
15486         grabs are active, unless a delete event is send to the toplevel
15487         of the currently grab holding widget.
15488
15489 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
15490
15491         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
15492         debugging g_print's.
15493
15494 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
15495
15496         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
15497         ever make the scrolled-window requisition ever depend on the 
15498         visibility state of the scrollbars for the AUTOMATIC policy. 
15499         This breaks the GTK+ requisition model, and causes loops.
15500
15501 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
15502
15503         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
15504         the default font to avoid problems with XFree86-4.0 where the
15505         default charset is iso10646-1, not iso8859-1.
15506
15507 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
15508
15509         * acinclude.m4
15510         * config.guess
15511         * config.sub
15512         * ltconfig
15513         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
15514
15515         * gtk/Makefile.am: minor cosmetic consistency tweak
15516
15517 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
15518
15519         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
15520         the activate_time to 0, so that we handle a quick
15521         press/release press/release properly and don't suppress
15522         the second release. (Red Hat bug #7545)
15523
15524 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
15525
15526         * gtk/gtkctree.c (row_delete):
15527         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
15528         bugs with destruction notifier, *always* update internal
15529         structures *before* calling user code.
15530
15531 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
15532
15533         A few more fixes for bug #5487, #2051, #2677.
15534         * gtk/gtkclist.c : 
15535         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
15536         not GDK_BUTTON_PRESS.
15537         (resync_selection): resync only if selection_mode is
15538         GTK_SELECTION_EXTENDED
15539         * gtk/gtkctree.c (resync_selection): same here
15540
15541 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
15542
15543         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
15544         gdk_drag_get_selection() and gtk_menu_detach().
15545
15546         [ From Jeroen Ruigrok/Asmodai ]
15547
15548 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
15549
15550         * gtk/gtknotebook.c (gtk_notebook_size_request): 
15551         page->tab_label can be NULL.
15552
15553 2000-01-25  Havoc Pennington  <hp@pobox.com>
15554         
15555         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
15556         arg is boolean
15557
15558         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
15559
15560         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
15561
15562         * gdk/gdkproperty.c (gdk_property_get): return boolean
15563
15564         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
15565
15566         * gdk/gdkim.c (gdk_im_ready): return boolean
15567
15568         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
15569
15570         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
15571         glib clash, should fix glib)
15572
15573         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
15574         (gdk_get_show_events): return gboolean, and canonicalize 
15575         to TRUE/FALSE
15576
15577         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
15578         colormap is private
15579         (gdk_colors_alloc): gboolean whether to be contiguous
15580         (gdk_color_equal): return gboolean since we are a predicate
15581         and not a qsort() (this looks semi-wrong due to glib breakage,
15582         IMO glib should be fixed)
15583         
15584         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
15585         (gdk_get_use_xshm): return gboolean
15586         (gdk_pointer_is_grabbed): return gboolean
15587
15588         * gdk/gdk.h: Change prototypes to match all the above changes,
15589         and re-run egtk-format-protos as required.
15590
15591 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
15592
15593         * gtk/gtkctree.c (resync_selection): 
15594         * gtk/gtkclist.c (resync_selection):
15595
15596         Return immediately if clist->drag_pos < 0. This is a workaround
15597         for the corrupt state that the clist gets into when a
15598         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
15599
15600         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
15601         
15602         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
15603         variable from recent commit.
15604
15605 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
15606
15607         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
15608
15609 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
15610
15611         * gtk/Makefile.am: prefix all autogenerated source that get build in
15612         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
15613         in builddir. since we subsequently cd into srcdir for autogeneration,
15614         the paths have to be stripped from the target file names, thusly we
15615         use $(@F) as target names now.
15616         put a comment about configure.in's --disable-rebuilds option,
15617         which can be used for non-writable source directories, for development
15618         setups though, srcdir has to be *writable*.
15619
15620 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
15621
15622         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
15623           Finish the job of allowing event to be NULL.
15624           (Fixes bug #4283, reported by Chris Blizzard)
15625
15626         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
15627           things so that the cursor appears on screen, properly
15628           take into account INNER_BORDER.
15629           (Fixes bug #4754, reported by Antonio Campos)
15630
15631 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
15632
15633         * gtk/gtknotebook.c (gtk_notebook_map): Don't
15634           show the tab_label unless it itself is visible.
15635
15636           gtk/gtknotebook.c (gtk_notebook_size_request):
15637           Do a better job of making sure that the visibility
15638           of the tab label corresponds to whether it should
15639           be mapped or not.
15640
15641 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
15642
15643         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
15644           Use the requisition, not the allocation, since the
15645           allocation has not necessarily been computed yet.
15646           (Pointed out by Eugene Osintsev)
15647
15648 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
15649
15650         * gtk/gtkstyle.c (gtk_style_new): Dont' set
15651           style/base[GTK_STATE_INSENSITIVE] both to
15652           gtk_default_insensitive_bg!
15653           (Bug #2187, reported by Jonathan Blandford)
15654
15655         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
15656           Add Alt_L, Alt_R to list of invalid accelerators.
15657           (Bug #3736, reported by Vlad Harchev)
15658
15659 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
15660
15661         * gtk/gtkfilesel.c (open_ref_dir): Fix several
15662         bugs which occured after an attempt to open 
15663         invalid home directory left cmpl_state->reference_dir == NULL.
15664
15665          - completion on files in home directory didn't work
15666          - completion on an empty string caused  segfault
15667
15668          (Bug #3678, reported by Steve Ratcliffe)
15669
15670         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
15671         cut and paste error that was causing scales to
15672         be incorrectly positioned.
15673         (Bug #2956,
15674          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
15675
15676 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
15677
15678         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
15679         when checking for dcgettext, if we've found we needed
15680         it for dgettext.
15681 +
15682 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
15683
15684         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
15685         queue_clear on NO_WINDOW widgets during a reparent,
15686         since at that point the window and widget heirarchies
15687         are out of sync. This stops crashing in some cases
15688         (the scrolled window reparent test, for instance), and
15689         _probably_ won't cause drawing errors.
15690
15691         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
15692         test do what it was supposed to do and be robust against
15693         window closings, etc. (Bug #2443)
15694
15695 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
15696
15697         * gtk/gtkentry.c: Fix return values on mouse events.
15698         (Bug #2686, Sky <seb_sky@yahoo.com>)
15699
15700         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
15701         (pointed out by George Lebl)
15702
15703         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
15704         (From Ettore Perazzoli  <ettore@helixcode.com>)
15705  
15706 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
15707
15708         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
15709         clicks between rows or outside calender area correctly.
15710         (Patch from Damon Chaplin)
15711
15712         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
15713         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
15714           Call destroy function when overwriting existing data. 
15715           (Pointed out by Damon Chaplin)
15716
15717 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
15718
15719         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
15720           which was causing problems on various systems with Xmu.
15721           This hasn't been needed for a very long time.
15722           (Fixes #1185 3167)
15723
15724 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
15725
15726         * gdk/gdki18n.h: Include <ctype.h> when defining
15727           gdk_isw* in terms of is* as a fallback.
15728           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
15729
15730 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
15731
15732         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
15733           realize the widget when it is size allocated!
15734           (old, old bug)
15735
15736         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
15737           Removed unused call to gdk_window_get_size() that
15738           showed up when the above was fixed.
15739
15740 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
15741
15742         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
15743           fix up widget->window when the widget is a
15744           NO_WINDOW container widget.
15745
15746 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
15747
15748         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
15749           to account for the fact that feof() does _not_ 
15750           return TRUE on errors, and thus avoid infinite loops
15751           when trying to use gdk_pixmap_create_from_xpm()
15752           on unreadable values.
15753
15754 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
15755
15756         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
15757
15758 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
15759
15760         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
15761           gdk_gc_set_dashes to take gint8 instead of gchar to
15762           make it clearer that it is _not_ a NULL terminated string.
15763
15764         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
15765           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
15766           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
15767           arguments.
15768
15769 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
15770
15771         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
15772         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
15773         background size relative to our allocation, guard against small
15774         allocations, we may have not yet been size allocated.
15775
15776 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
15777
15778         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
15779         not just version == 3. We implement all 3 + most of 4 - 
15780         (we don't support matching text/plain;charset=iso-8859-1
15781         to a dest that expects text/plain). We'll still advertise
15782         3 to be safe, but any client implementing version >= 3
15783         must interoperate with 3.
15784         
15785 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
15786
15787         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
15788         background and gc members, add a warning in gtk_tooltips_set_color()
15789         indicating that this function is deprecated.
15790
15791 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
15792
15793         * docs/gtkfaq.sgml: FAQ Update:
15794           - Minor cleanups (Emmanuel, me)
15795           - New questions:
15796                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
15797                 How can I retrieve the text from a GtkMenuItem? (timj)
15798                 How do I validate/limit/filter the input to a GtkEntry? (me)
15799                 Memory does not seem to be released when I free the list
15800                         nodes I've allocated (timj)
15801
15802 2000-03-07  Tor Lillqvist  <tml@iki.fi>
15803
15804         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
15805         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
15806         for which it is no use to call GetLastError onWin9x.
15807         (gdk_other_api_failed) New function, for general error
15808         reporting without calling GetLastError.
15809         (gdk_win32_api_failed) OTOH, this function always calls
15810         GetLastError. (gdk_win32_last_error_string) Remove this function,
15811         GLib has the equivalent now.
15812
15813         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
15814         call them with function name, file name and line number in the
15815         arguments.
15816
15817         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
15818         functions.
15819         
15820         * gtk/gtk.def: Add some missing entry points.
15821
15822         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
15823         gtk_paned_set_gutter_size, which don't exist any longer, as void.
15824         
15825         Fixes by Hans Breuer:
15826
15827         * gdk/makefile.msc: Update for debugging.
15828
15829         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
15830         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
15831         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
15832         in the dash_list.
15833
15834         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
15835         the x11 backend.
15836
15837         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
15838
15839         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
15840
15841 2000-03-04  Tor Lillqvist  <tml@iki.fi>
15842
15843         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
15844         just pixel value of background colour.
15845
15846         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
15847         containing code snippet previously duplicated in a couple of
15848         places.
15849         
15850         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
15851         gdk_colormap_color.
15852
15853         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
15854         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
15855         events for autorepeated Shift, Control and Alt keys. Use
15856         gdk_colormap_color.
15857
15858         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
15859         pointer is inside the window the cursor of which we are setting,
15860         call SetCursor immediately.
15861
15862         * gdk/win32/makefile.cygwin
15863         * gtk/makefile.cygwin: If we don't have the build number stamp
15864         file, use zero.
15865
15866         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
15867         gtk_paned_set_gutter_size as empty.
15868
15869         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
15870         
15871 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
15872
15873         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
15874           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
15875           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
15876           docs/gtk_tut.sgml docs/gtk.texi TODO:
15877
15878           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
15879
15880 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
15881
15882         * gtk/gtkcalendar.c: Implement num_marked_dates,
15883           and don't emit mutiple day_selected signals on
15884           month_prev.
15885
15886 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
15887
15888         * docs/make-todo (lineno): let title and logo be configurable so
15889         that GNOME can use this script too.
15890
15891         * TODO.xml: added logourl and a title
15892
15893 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
15894
15895         * TODO.xml: Added some UI items, and an explanatory
15896         comment at the top of the file.
15897
15898 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
15899
15900         * TODO.xml: some updates, added abunch of new entries.
15901         a note for those fiddeling with this file, when done
15902         with it, invoke:
15903         $ ./docs/make-todo TODO.xml >/dev/null
15904         and correct output errors before comitting changes.
15905
15906 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
15907
15908         * TODO.xml: Added XML-structured TODO file.
15909         * docs/make-todo: python script to turn TODO.xml into
15910           pretty XML output. 
15911
15912 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
15913
15914         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
15915         the function to let it draw the seven dots, instead of the old,
15916         much maligned, method.
15917         (draw_dot): New function to draw a dot.
15918
15919         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
15920         to draw the handle inside the border width as opposed to outside.
15921         Use paint function instead of gdk_draw_point.
15922
15923         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
15924         to draw the handle inside the border width as opposed to outside.
15925         Use paint function instead of gdk_draw_point.
15926
15927         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
15928         Change indenting to be more GTK like.
15929
15930 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
15931
15932         * docs/gtk_tut.sgml: New section on GtkCalendar
15933         * examples/calendar: Update example code
15934
15935 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
15936
15937         * docs/gtkfaq.sgml: FAQ Update
15938
15939 2000-02-19  Anders Carlsson  <andersca@gnu.org>
15940
15941         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
15942         to prevent the scroll event to be propagated upwards.
15943
15944 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
15945
15946         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
15947         OwnerGrabButtonMask from button entries for
15948         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
15949
15950         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
15951         to the event mask (which will result in button/press release
15952         being added to the event mask on Unix) so scrolling works
15953         for layouts in scroll windows.
15954
15955         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
15956
15957         Patch from Anders Carlsson  <andersca@gnu.org> to add
15958         a scroll event.
15959
15960         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
15961         scrolling to the "Test Scrolling" part of testgtk.
15962  
15963         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
15964  
15965         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
15966         it against GDK_SCROLL.
15967  
15968         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
15969         way of mouse wheel scrolling.
15970  
15971         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
15972  
15973         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
15974  
15975         * gtk/gtkmain.c: Removed previous mouse wheel hack.
15976  
15977         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
15978         gdk_event_mask_table.
15979  
15980         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
15981         GdkEventScroll handler.
15982  
15983         * gdk/gdkevents.h: Added GdkEventScroll structure.
15984  
15985 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
15986
15987         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
15988         and Anders Carlsson to change the Paned widgets so that they
15989         can be dragged from anywhere along the length. Also change
15990         the way that this is drawn to make this apparent.
15991
15992         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
15993         from George Lebl to check that option_menu->menu is present
15994         before getting history.
15995
15996 2000-02-14  Tor Lillqvist  <tml@iki.fi>
15997
15998         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
15999         before the assertion for non-NULL segment list.
16000
16001         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
16002         Seems that pattern brushes *must* be 8x8 pixels! At least on my
16003         machine, but it might be display driver dependent. Sigh, so make
16004         sure the stipple is that size. Does Windows suck or what?
16005
16006         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
16007         places.
16008
16009 2000-02-13  Havoc Pennington  <hp@pobox.com>
16010
16011         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
16012         refcount to 1
16013         (gdk_cursor_new): init refcount to 1
16014
16015         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
16016
16017 2000-02-13  Tor Lillqvist  <tml@iki.fi>
16018
16019         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
16020         so that we don't have to do unnecessary settings to the HDC.
16021
16022         * gdk/win32/gdkdrawable-win32.c
16023         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
16024         gdk_gc_predraw.
16025
16026         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
16027         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
16028         GDI paths, call WidenPath to get the outline of the stroken path,
16029         and then fill the outline (with the brush that was built from the
16030         stipple).
16031
16032         * gdk/win32/gdkgc-win32.c: Factor out common code from
16033         _gdk_win32_gc_new and gdk_win32_gc_set_values into
16034         gdk_win32_gc_values_to_win32values. Use correct colour for
16035         SetBkColor() (Until now the code actually used a random colour in
16036         the call to SetBkColor()... but that didn't show up as not many
16037         GDI APIs use the background colour. Pattern (opaque stippled)
16038         brushes do.)
16039
16040         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
16041         gdk_win32_api_failed): New functions for error logging.
16042
16043         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
16044         WIN32_API_FAILED to call them, passing function or file name and
16045         line number.
16046
16047         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
16048
16049         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
16050         GdkColor for foreground and background in GdkGCWin32Data.
16051
16052         * gdk/makefile.cygwin: Link in the resource object separately.
16053
16054         * gdk/win32/rc/gdk.rc
16055         * gtk/gtk.rc (New file)
16056         * gdk/win32/makefile.cygwin
16057         * gtk/makefile.cygwin: Update build number in DLLs automatically,
16058         as in GLib.
16059
16060 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
16061
16062         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
16063         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
16064         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
16065         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
16066         parameters given and cursor->ref_count. coding style fixups.
16067
16068         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16069         not GtkWidget.
16070         
16071         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
16072         fix up widget macros and add _GET_CLASS() variant.
16073         
16074         * gtk/*.c: some GtkType fixups.
16075
16076 2000-02-09  Tor Lillqvist  <tml@iki.fi>
16077
16078         * gdk/win32/gdkproperty-win32.c
16079         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
16080         were reversed.
16081
16082 2000-02-04  Tor Lillqvist  <tml@iki.fi>
16083
16084         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
16085         g_filename_to_utf8 to convert the font names Windows gives us from
16086         whatever is the default codepage to UTF-8.
16087         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
16088         in the other direction.
16089
16090         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
16091         error in debugging output.
16092
16093 2000-02-02  Tor Lillqvist  <tml@iki.fi>
16094
16095         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
16096         and height parameters to gdk_window_clear_area(). Not minus one.
16097
16098 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
16099
16100         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
16101         checks if the widget passed to gtk_drag_get_data() was not the
16102         dest widget.
16103
16104 2000-02-01  Tor Lillqvist  <tml@iki.fi>
16105
16106         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
16107         g_filename_from_utf8 functions (which were added a moment ago to
16108         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
16109         size buffers.
16110
16111         gtk_file_selection_get_filename returns the filename in the C
16112         runtime encoding. It calls g_filename_from_utf8, but copies the
16113         returned string to a static buffer, which is returned. I think
16114         this is better than returning the result from g_filename_from_utf8
16115         directly, which would mean all apps that use it would have to free
16116         the return value. Or should this function care about this issue at
16117         all? Maybe a new function with clearly defined semantics.
16118
16119         * gtk/gtkfilesel.h: Add comment about
16120         gtk_file_selection_get_filename returning the filename in the C
16121         runtime's encoding.
16122
16123         * README.win32
16124         * gdk/gdk.def
16125         * gdk/makefile.{cygwin,msc}
16126         * gtk/gtk.def: Updates.
16127
16128         * gdk/gdkcursor-win32.c: Initialise refcount.
16129
16130 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
16131
16132         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
16133
16134 2000-01-30  Havoc Pennington  <hp@pobox.com>
16135
16136         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
16137         destroy
16138
16139         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
16140
16141         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
16142         implemented in platform-specific code
16143
16144         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
16145
16146         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
16147         underscore in front
16148
16149         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
16150         put an underscore in front
16151
16152         * gdk/gdkcursor.c: new file, implements
16153         gdk_cursor_ref/gdk_cursor_unref
16154
16155         * gdk/gdkcursor.h: Refcount GdkCursor
16156
16157         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
16158
16159 2000-01-29  Tor Lillqvist  <tml@iki.fi>
16160
16161         * gdk/gdkwindow.h
16162         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
16163
16164 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
16165
16166         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
16167         structures to properly inherit from GtkWidget not GtkBin.
16168
16169 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
16170
16171         * gtk+.spec.in: Added lib/gtk+/include/* to %files
16172         (bug #5178 - Peter Wainright)
16173         
16174         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
16175         so that it will be installed.
16176         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
16177
16178 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
16179
16180         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
16181         for the GtkStyleClass vtable const.
16182
16183         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
16184         take a const string argument like GtkTranslateFunc. This will
16185         require changes in use code.
16186
16187 2000-01-19  Tor Lillqvist  <tml@iki.fi>
16188
16189         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
16190         semantics (to mimic the X11 backend, which just calls XClearArea)
16191         is to check for zero width (and height), and in that case use the
16192         window's width minus x (height minus y). This fixes for instance
16193         some redraw problems with gtkclist, which were easily noticeable
16194         in the gtk file selection widget.
16195
16196         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
16197         windows.
16198
16199 2000-01-13  Tor Lillqvist  <tml@iki.fi>
16200
16201         * configure.in
16202         * gdk/Makefile.am
16203         * gdk/x11/Makefile.am
16204         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
16205         (bug #5177).
16206         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
16207         out later.
16208
16209 2000-01-09  Tor Lillqvist  <tml@iki.fi>
16210
16211         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
16212         WM_MOVE for iconified or invisible windows. This fixes various
16213         problems when minimising windows. Thanks to Bernd Herd.
16214
16215 2000-01-05  Tor Lillqvist  <tml@iki.fi>
16216
16217         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
16218         backend's draw_lines method, not draw_points.
16219
16220 2000-01-02  Tor Lillqvist  <tml@iki.fi>
16221
16222         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
16223         before Owen's reorganisation: Don't have queued_events and
16224         queued_tail statics in this file, but use gdk_queued_events and
16225         gdk_queued_tail. This makes exposure event compression work again.
16226
16227         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
16228         seem to be needed?
16229
16230 1999-12-30  Tor Lillqvist  <tml@iki.fi>
16231
16232         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
16233         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
16234         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
16235         doesn't do anything.
16236
16237         * gdk/gdk.def: Add gdk_xid_table_insert.
16238
16239         * gdk/win32/gdkprivate-win32.h
16240         * gdk/win32/gdkevents-win32.c
16241         * gdk/win32/gdkinput-win32.c
16242         
16243         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
16244         extension_events field in the GdkWindowWin32Data struct. Use only
16245         the extension_events field in GdkWindowPrivate. Previously one was
16246         set, and the other one tested, which broke tablet
16247         functionality. Thanks to Keishi Suenaga for pointing this out.
16248
16249 1999-12-18  Tor Lillqvist  <tml@iki.fi>
16250
16251         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
16252         When handling a single character (text length == 1), don't handle
16253         it as if it was UTF-8.
16254
16255 1999-12-11  Tor Lillqvist  <tml@iki.fi>
16256
16257         * Makefile.am: Distribute README.win32.
16258         
16259         * gdk/Makefile.am
16260         * gdk/win32/Makefile.am: Distribute Win32 files.
16261
16262         * gdk/makefile.msc: New file.
16263
16264         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
16265         after label).
16266
16267         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
16268         gdk_error_code as GDKVAR, as they are referred outside GDK.
16269
16270         * gdk/win32/makefile.msc: Update.
16271
16272         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
16273         tweaks. Check only if at least one of those Unicode subrange bits
16274         we care for is set. If no code page bits are set, guess (wildly)
16275         based on the charset.
16276
16277         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
16278
16279         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
16280         non-NULL.
16281
16282         * gtk/gtkdnd.c
16283         * gtk/gtklayout.c
16284         * gtk/gtkplug.c
16285         * gtk/gtkselection.c
16286         * gtk/gtksocket.c
16287         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
16288         appropriate. There must be a cleaner way to handle this?
16289
16290         * gtk/gtkrc.c: Must include windows.h on Win32.
16291
16292         * gtk/testgtk.c: No need to include gdkx.h.
16293
16294         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
16295
16296 1999-12-07  Tor Lillqvist  <tml@iki.fi>
16297
16298         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
16299         the rbearing is set to the same as the width, but this should be
16300         fixed.
16301
16302 1999-12-06  Tor Lillqvist  <tml@iki.fi>
16303
16304         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
16305         function. If Windows doesn't tell us what Unicode subranges a font
16306         covers, guesstimate based on the codepages it covers. This will
16307         hopefully help those Windows versions or fonts that don't give us
16308         any useful Unicode subrange information with GetTextCharsetInfo.
16309         Call this function in gdk_font_load_internal.
16310
16311         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
16312         minor changes.
16313
16314 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
16315
16316         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
16317         New function, long needed.
16318
16319 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
16320
16321         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
16322         only_if_exists argument of gdk_atom_intern to
16323         bool.
16324
16325 1999-11-25  Tor Lillqvist  <tml@iki.fi>
16326
16327         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
16328         Fix two copy&paste errors.
16329
16330         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
16331         win32 has changed.
16332
16333         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
16334         GdkWin32SingleFont struct.
16335
16336         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
16337         subranges of loaded fonts. Clear font signature first, in case
16338         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
16339         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
16340
16341         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
16342         Unoffset clip region.
16343
16344 1999-11-23  Tor Lillqvist  <tml@iki.fi>
16345
16346         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
16347         event->any.window before calling filter functions.
16348
16349 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
16350
16351         * gtk/gtkgamma.h: Adapt cast macros to standard.
16352
16353 [ Merges from 1.2 ]
16354
16355 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
16356
16357         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
16358         If translation does not include a '/', use entire
16359         translation instead of crashing.
16360
16361 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
16362
16363         * docs/gtk_tut.sgml:
16364         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
16365
16366 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
16367
16368         * gtk/gtkselection.c (gtk_target_list_remove): Use
16369         g_list_remove_link, not g_list_remove.
16370
16371         [ From Geert Bevin <gbevin@thunderstorms.org> ]
16372         
16373 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
16374
16375         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
16376         statement upon unselection (how the heck did that slip in?).
16377
16378 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
16379
16380         * gtk/gtktext.c (gtk_text_freeze): 
16381         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
16382         in frozen state (and aparently crashes). patch provided by Anders
16383         Melchiorsen <and@kampsax.dtu.dk>.
16384
16385 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
16386
16387         * fix insensitive default/focus widget activation,
16388         reported by Matt Goodall <mgg@isotek.co.uk>.
16389
16390         * gtk/gtkwindow.c (gtk_window_key_press_event): 
16391         (gtk_window_activate_default):
16392         (gtk_window_activate_focus):
16393         return handled=FALSE for actiavtion of insensitive default
16394         widgets. return handled=TRUE for activation of insensitive
16395         focus widgets. don't activate in either case.
16396
16397 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
16398
16399         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
16400         and $glib_cflags to match library order and in the
16401         theory that an old version of GLib is more likely to
16402         be in the include directory for X then vice-versa.
16403         (Bug #2776)
16404
16405 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
16406
16407         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
16408         to determine the locale for fontsets, not LC_MESSAGES;
16409         the user may want English messages with a handling
16410         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
16411         will still be broken) (Bug #2891)
16412
16413 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
16414
16415         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
16416
16417 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
16418
16419         * gtk/gtkrc.ko: Changed the Korean default fontset.
16420
16421 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
16422
16423         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
16424         where when scrolling to the left or top double exposes
16425         were done, causing major slowdowns.
16426
16427 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
16428
16429         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
16430         names to lowercase and alphanumeric, before looking
16431         them up.
16432
16433         * gtk/Makefile.am: Install codeset variant gtkrc files
16434         with normalized names.
16435
16436 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
16437
16438         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
16439         popup menus when the menu is already visible, but its parent
16440         is still hidden, (happens after tornoff window got hidden).
16441
16442 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
16443
16444         * gtk/Makefile.am (install-data-local): Fix
16445         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
16446         deleted, causing error messages on install.
16447
16448 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
16449
16450         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
16451         the handle as well, since we now sometimes ignore
16452         exposes on the handle while resizing.
16453
16454 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
16455
16456         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
16457         extra g_free introduced in one of the last one or two 
16458         commits.
16459
16460 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
16461
16462         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
16463         consistent, put each style that a gtkrc.* file creates
16464         in a unique namespace, remove old files before installing.
16465
16466 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
16467
16468         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
16469         gtk_rc_init is called multiple times. (Yes, people who
16470         do that have bugs in their code.)
16471
16472 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
16473
16474         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
16475         Remove it since it's generated by the Makefile anyway
16476
16477 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
16478
16479         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
16480         device->info.axes for core pointer.
16481
16482 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
16483
16484         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
16485         idle_id, to deal with obsolete, broken C libraries.
16486
16487 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
16488
16489         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
16490         allocation->x/y twice!
16491
16492         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
16493         consistent with gtk_vscale_pos_trough().
16494
16495 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
16496
16497         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
16498         be queueing a resize on a toplevel container between
16499         the time we show it and when we map it. So, we need
16500         to test GTK_WIDGET_VISIBLE() for toplevels, and only
16501         use GTK_WIDGET_DRAWABLE() for child windows.
16502
16503 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
16504
16505         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
16506         (fixes bug #2144)
16507
16508 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
16509
16510         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
16511         container DRAWABLE (instead of VISIBLE), so we don't queue
16512         resizes on non-toplevel containers.
16513
16514 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
16515
16516         * gtk/gtkselection.[ch]: Make the data argument
16517         const guchar *.
16518
16519 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
16520
16521         * gtk/gtkwindow.c: Try to behave sensibly if 
16522         the focus widget is the window itself. (Should
16523         we allow this at all?)
16524
16525 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
16526
16527         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
16528         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
16529         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
16530         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
16531         in prototypes and implementations consistent (Tomas Ogren).
16532
16533         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
16534         before the widget is unparented (reported by damon).
16535
16536         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
16537         since we provide unsigned data anyways.
16538
16539 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
16540
16541         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
16542         the call to gtk_tooltips_layout_text() until later.
16543
16544         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
16545         Call gtk_widget_ensure_style() before using the style.
16546
16547 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
16548
16549         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
16550         for old widgets that don't propagate draws to all
16551         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
16552
16553 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
16554
16555         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
16556         for a redraw but just the widget that requested the resize.
16557
16558 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
16559
16560         * gtk/gtkcontainer.c: added new widget level method
16561         gtk_container_set_reallocate_redraws() and a GtkContainer flag
16562         reallocate_redraws : 1 to reflect the setting, exported this through
16563         the argument system as a boolean ::reallocate_redraws.
16564
16565         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
16566         on the widget because the allocation changes, do so as well for
16567         widget->parent if the parent has reallocate_redraws set to TRUE.
16568         with that containers requesting reallocation redraws get automatically
16569         redrawn if their children changed allocation (this unfortunately
16570         affects also other children that didn't change allocation, but we
16571         cannot work around that before 1.3).
16572
16573 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
16574
16575         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
16576         _and_ height are >0 (not _or_).
16577
16578         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
16579         instead of gtk_container_queue_resize(), which is a core gtk internal
16580         function (must have been on crack when i queued that).
16581
16582         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
16583         we can check more reliably if we want to discard expose events.
16584         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
16585         flag.
16586         
16587         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
16588         we simply trust these events. for deciding whether to discard exposes,
16589         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
16590         
16591 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
16592
16593         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
16594         queues of areas that are completely off screen.
16595
16596         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
16597         logic for handleboxes.
16598
16599         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
16600         check on width/height.
16601
16602 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
16603
16604         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
16605         we are fine with using $@ the way we do (if we actually encounter
16606         brokeness with $@ in VPATH builds because of additional path prefixes,
16607         we need to use $(@F) actually).
16608
16609 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
16610
16611         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
16612         short lived bugs, that would allow language bindings to do surgeries
16613         to our guts.
16614
16615 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
16616
16617         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
16618         where comparison was being done against an uninitialized
16619         value causing intermittant results depending on
16620         compiler flags. Also make it clearer that we aren't
16621         ever initializing the child as 0x0 (though this will
16622         be caught in gtk_widget_size_allocate())
16623
16624 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
16625
16626         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
16627         gtk_window_unset_transient_for() call after we do checks
16628         involving the old transient parent.
16629         [ From Lance Capser <lmc@cyberhighway.net> ]
16630
16631 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
16632
16633         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
16634         an empty file.
16635
16636 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
16637
16638         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
16639         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
16640
16641 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
16642
16643         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
16644         `$@' is valid only in the build dir, not after we've done 
16645         `cd $srcdir'.  Also use `test -f' instead of less portable
16646         `test -e'.
16647
16648 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
16649
16650         * gtk/gtktext.c (correct_cache_insert): Rewrite
16651          for simplicity, and hopefully correctness.
16652          (Fixes bug #1322, which was a segfault when
16653           on some insertions with the properties around
16654           the insertion set up just wrong.)
16655
16656         * gtk/gtktext.c (gtk_text_adjustment): When we receive
16657          a "changed" signal, clamp the new value to the adjustment
16658          bounds to avoid segfaulting if someone tries to change
16659          the adjustment to a bogus value. (Bug #1795)
16660
16661 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
16662
16663         * gtk/gtkmain.c: Ignore unexpected destroy notifies
16664         for children, for toplevel windows handle them
16665         like delete_event.
16666
16667         * gtk/gtkplug.c: Add an unrealize handler so that
16668         we unref plug->socket_window when we are done
16669         with it.
16670
16671 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
16672
16673         * gtk/gtktext.c (clear_area): Fix stupid signedness
16674          problem that was causing background to sometimes
16675          be misaligned.
16676
16677 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
16678
16679         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
16680         
16681         * gtk/gtkmenu.c (gtk_menu_position): Make
16682          sure we never position menus with negative x, y,
16683          since gtk_widget_set_uposition() can't handle that.
16684
16685         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
16686          Modify the positioning code a bit so that we always
16687          put the top-left corner onscreen. (This is for
16688          UI reasons, gtk_menu_position() now takes care of
16689          gtk_widet_set_uposition() brokeness.)
16690
16691 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
16692
16693         * gtk/Makefile.am: fixed up things for -jx, x > 1.
16694
16695 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
16696
16697         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
16698           RC style that is passed in. The lack of the ref
16699           before was a bug. If people worked around this
16700           bug, this will introduce a slight memory leak
16701           in their code. The code should typically look like:
16702
16703             rc_style = gtk_rc_style_new ();
16704             [...]
16705             gtk_widget_modify_style (widget, rc_style);
16706             gtk_rc_style_unref (rc_style);
16707
16708         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
16709           the style if it was already set.
16710
16711         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
16712           style if it was set before.
16713
16714 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
16715
16716         * gtk/testgtk.c (main): Add a check to see if we
16717           are being run from the correct directory and
16718           to quit nicely if we are not.
16719
16720         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
16721           static.
16722
16723 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
16724
16725         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
16726
16727         * gtk/gtkwindow.c:
16728         queue resizes unconditionally (gtk_widget_queue_resize will figure
16729         what to do if the window is not realized).
16730         (gtk_window_move_resize): only recenter the window
16731         for GTK_WIN_POS_CENTER_ALWAYS.
16732         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
16733         the same way as GTK_WIN_POS_CENTER.
16734
16735 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
16736
16737         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
16738         with (!(info->last_flags & GDK_HINT_POS)) instead of
16739         (!info->last_flags & GDK_HINT_POS).
16740
16741         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
16742         new_height unconditionally, because we use these values even if
16743         !default_size_changed && !hints_changed.
16744         comented the (default_size_changed || hints_changed) case with
16745         respect to resize rejects from the window manager.
16746
16747         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
16748         in the zvt condition hack, since this includes the window hints, set
16749         the hints after the handling_resize case.
16750
16751         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
16752         window is initially shown with to the geometry.
16753
16754 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
16755
16756         * gtk/gtkwindow.c (gtk_window_move_resize):
16757         s/size_changed/default_size_changed/g so i know what's
16758         really going on (frying brain on smaller flame now).
16759
16760 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
16761
16762         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
16763         we have size_changed upon handling_resize. this is a gross
16764         workaround for the broken zvt widget and should be removed in
16765         1.3 again (search for FIXME).
16766         Owen provided an accurate comment for this:
16767
16768         /* We could be here for two reasons
16769          *  1) We coincidentally got a resize while handling
16770          *     another resize.
16771          *  2) Our computation of size_changed was completely
16772          *     screwed up, probably because one of our children
16773          *     is broken. It's probably a zvt widget.
16774          *
16775          * For 1), we could just go ahead and ask for the
16776          * new size right now, but doing that for 2)
16777          * might well be fighting the user (and can even
16778          * trigger a loop). Since we really don't want to
16779          * do that, we requeue a resize in hopes that
16780          * by the time it gets handled, the child has seen
16781          * the light and is willing to go along with the
16782          * new size. (this happens for the zvt widget, since
16783          * the size_allocate() above will have stored the
16784          * requisition corresponding to the new size in the
16785          * zvt widget)
16786          *
16787          * This doesn't buy us anything for 1), but it shouldn't
16788          * hurt us too badly, since it is what would have
16789          * happened if we had gotten the configure event before
16790          * the new size had been set.
16791          */
16792
16793 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
16794
16795         * gtk/gtkrc.c: deal properly with the fact that RC
16796           style lists may include rc styles more than once.
16797
16798         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
16799           unused static function.
16800
16801         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
16802           stack of directories of RC files currently being
16803           parsed and implicitely add them to pixmap path.
16804           
16805           This fixes a bug where the directory would get
16806           appended then overwritten by pixmap_path declarations.
16807
16808           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
16809
16810         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
16811           theme's exit function. (Patch from Peter Wainwright,
16812           bug #1454)
16813
16814         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
16815           Add a destroy() handler to take care of removing
16816           group for menu item. (Fixes bug #1197)
16817
16818         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
16819           in warning message.
16820
16821 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
16822
16823         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
16824         roundtrip to figure window's width and height, since we know that
16825         anyways from widget->allocation.
16826
16827 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
16828
16829         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
16830           the hints after we request the new size.
16831
16832 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
16833
16834         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
16835           GTK_WIDGET_REALIZED() assertion - we can compute the
16836           hints before we are realized.
16837
16838         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
16839           hint changing so that we have a value of hints_changed
16840           when we decide whether to constrain the window size.
16841
16842         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
16843
16844         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
16845         change back to G_MAXINT.
16846
16847 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
16848
16849         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
16850         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
16851         contain uncluttered values.
16852         (gtk_window_compute_hints): simply assert that window is realized
16853         and that geometry_info is valid, since we rely on this anyways.
16854         (gtk_window_constrain_size): major cleanups to the code.
16855         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
16856         for the base size, instead of the minimums. use 32767 as max width
16857         and height (like in gtkwindow.c) instead of G_MAXINT.
16858
16859 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
16860
16861         * cleaned up the GtkContainer.need_resize flag handling mess, we
16862         only need to force resize requests when we were prematurely
16863         realized, or our widget tree was modified when we were temporarily
16864         hidden. handling these cases directly upon showing the window (i.e.
16865         while the GdkWindow is still unmapped) avoids the need to wait for
16866         a configure event response and therefore makes the GUI more snappier
16867         and avoids blank windows during the roundtrip.
16868
16869         * gtk/gtkwidget.c:
16870         (gtk_widget_hide): 
16871         (gtk_widget_show): don't queue resizes on toplevels, they know how
16872         to deal with matters.
16873
16874         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
16875         flag directly for not visible resize containers and spare us unecessary
16876         signal emissions.
16877
16878         * gtk/gtkwindow.c:
16879         (gtk_window_realize): if we need to enforce premature size allocation,
16880         queue a container resize so we are correctly resized later on.
16881         (gtk_window_init):
16882         (gtk_window_size_request):
16883         don't freak around with the ->need_resize flag,
16884         gtk_container_queue_resize() will care about that.
16885         (gtk_window_show):
16886         handle initial resizing issues here, we can handle matters better in
16887         this place, especially since we know that our GdkWindow is still
16888         unmapped.
16889         (gtk_window_move_resize):
16890         don't care about ->need_resize at all.
16891         handle size changes properly that occoured while we waited for a
16892         configure event.
16893
16894 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
16895
16896         * gtk/gtkwidget.c (gtk_widget_set_uposition):
16897         * gtk/gtkwindow.[hc] (gtk_window_reposition):
16898         Move the hint setting code from gtk_widget_set_uposition
16899         to here; set the hints so that we respect any previously
16900         set geometry hints.
16901
16902         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
16903         change the window hints here or move the window here,
16904         let that happen in gtk_window_move_resize().
16905
16906 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
16907
16908         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
16909         to already queued resizes (and therefore redraws) on a widget, check
16910         its anchestry as well.
16911
16912         * gtk/gtkcontainer.c:
16913         (gtk_container_queue_resize): clear resize widgets for resize
16914         containers before aborting prematurely. this is especially important
16915         for toplevels which may need imemdiate processing or their resize
16916         handler to be queued.
16917         (gtk_container_dequeue_resize_handler): added new internal function for
16918         gtkwindow.c.
16919
16920         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
16921         configure event, take possible changes in window position into account
16922         as well.
16923         if we request a new window size, queue up a resize handler that will
16924         last until the configure event response arrives.
16925         combined the ->need_resize case (initial show) with the general size
16926         (hints) changed case and added even more comments.
16927         if !auto_shrink, only revert to the old allocation if the new size
16928         is smaller than the current allocation.
16929
16930 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
16931
16932         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
16933                            gtk_window_set_geometry_hints
16934                            gtk_window_set_default_size):
16935         When hints are set, queue a resize so that the hints will
16936         be eventually reset on the toplevel.
16937
16938         * gtk/gtkwindow.c (gtk_window_show): Use
16939         gtk_window_compute_default_size(). Clear the need_resize flag
16940         on the initail map so that we don't unnecessarily trigger the
16941         resize code.
16942
16943         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
16944         into separate functions. Compare the hints we are setting
16945         with what we set last time so that we can accurately
16946         tell when we need to reset the hints.
16947
16948         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
16949         function to figure out the size from requisition
16950         and default_size.
16951
16952         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
16953         from fvwm to constrain a size to the geometry hints.
16954
16955         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
16956         to compare two sets of geometry hints.
16957
16958         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
16959         from gtk_window_set_hints(), just compute the hints,
16960         don't set them.
16961
16962         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
16963         code from gtk_window_move_resize() to separate function,
16964         rationalize a bit.
16965
16966 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
16967
16968         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
16969         structure into a new private structure.
16970
16971         * gtkrc.c: Split GtkRcStyle into public/private.
16972         In the private part, add a list of pointers to the
16973         RcStyle lists this RcStyle participates in.
16974
16975         * gtkrc.c: When a RcStyle is free, remove all
16976         lists referencing it from the 
16977         realized_style_ht hash, and free those lists.
16978         
16979         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
16980         gtk_rc_init(), since that adds the default styles
16981         to the list of parsed RC files again.
16982
16983         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
16984         
16985 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
16986
16987         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
16988         checks that ensure that a widget's allocation is at least 1 in width
16989         and height. (GNOME note: this doesn't affect old panel code anymore,
16990         because GtkSocket will request width and height of at least 1 since
16991         Fri Jul 23).
16992
16993         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
16994         allocated yet (happens if the user realizes the window prematurely),
16995         size request and allocate it.
16996         (gtk_window_size_allocate): guard against guint underflows.
16997
16998 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
16999
17000         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
17001         in gtk_built_sources, so gtk.defs gets built prior to all other
17002         sources.
17003
17004 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
17005
17006         * gtk/Makefile.am:
17007         invoke indent on gtkmarshal.*. 
17008         rewrote source generation rules, use COPYING as oldest source tag for
17009         a piggyback rule to generate all sources from (don't touch it ;).
17010         major cleanups, strip spaces on build rules for GNU Make.
17011
17012         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
17013         source and target files from commandline arguments. don't invoke indent.
17014
17015 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17016
17017         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17018         notebook after switch to avoid drawing problems.
17019         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17020         
17021         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17022         show them instead. 
17023         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17024
17025 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17026
17027         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17028         notebook after switch to avoid drawing problems.
17029         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17030         
17031         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17032         show them instead. 
17033         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17034
17035 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
17036
17037         * gtk/gtkwindow.c:
17038         we use window->need_resize from configure_event now, to indicate that
17039         the gtkwindow should keep its allocation (e.g. because the user resized
17040         the window through window manager handles). resize_count is now reliably
17041         used to figure whether we got the allocation we requested from the
17042         window manager.
17043         configure events get queued as resizes now, the real stuff (size
17044         computation and allocation) now only goes on in gtk_window_move_resize().
17045         GtkWindow's requisition now contains its *real* requisition (like all
17046         other widgets), *not* taking usize into account.
17047         geometry_info->last_{width|height} is now updated from set_hints() only
17048         so it always contains the last hints we set for the window manager.
17049         made some event handlers return TRUE instead of FALSE.
17050         the overall code should be much more straight forward now, and the
17051         significant code portions are accompanied by comments now.
17052         (gtk_window_set_hints):
17053         removed requisition argument and made it
17054         fetch the requisition through gtk_widget_get_child_requisition.
17055         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
17056         does that now.
17057         (gtk_window_show):
17058         ensure that the widget is realized before calling 
17059         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
17060         ensure that we got properly size requested and allocated before
17061         realization.
17062         (gtk_window_configure_event):
17063         ignore plain window moves, or reallocate the widget tree through the
17064         resize queue otherwise.
17065         (gtk_window_move_resize):
17066         mostly rewrote this function to figure window manager hints more
17067         reliably, coalesce window moves and resizes to reduce configure events
17068         and do actuall size allocations.
17069
17070 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
17071
17072         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
17073         that have a resize pending, because a redraw is already queued for them.
17074
17075         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
17076         hack to clear resize_widgets.
17077
17078         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
17079         for resize containers prior to size allocation. (this is also a bit
17080         ugly, but avoids side effects for stopped emissions and is thus more
17081         reliable).
17082         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
17083
17084         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
17085         function from gtk_tooltips_expose, as we connect to ::expose_event
17086         *and* ::draw now.
17087
17088 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
17089
17090         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
17091         checks.
17092         (gtk_target_list_unref): Likewise.
17093
17094         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
17095
17096 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
17097
17098         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
17099         guard against division by zero. (Fixes bug #1339)
17100
17101 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
17102
17103         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
17104         Prevent the trivial leak of information of allowing
17105         word motion when the entry is not visible.
17106
17107 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
17108
17109         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
17110         modality to error dialog as well as confirmation dialogs.
17111         (Bug #1803, reported by Rosanna Wing Sze Yuen)
17112
17113 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
17114
17115         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
17116         tree->view_lines.
17117         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
17118
17119         * gtk/Makefile.am (install-data-local): Solaris apparently
17120         has various troubles with ln -f; use rm first instead.
17121         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
17122
17123 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
17124
17125         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
17126         use `cp' followed by `rm' (the `rm' was already there).
17127
17128 July 30, 1999 Elliot Lee <sopwith@redhat.com>
17129         
17130         * configure.in: Fix autoconf warnings about cross compilation by
17131         trying to provide sane defaults for AC_TRY_RUN.
17132         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
17133         put them into $(srcdir) when generated. Also add a dependency of
17134         gtksignal.h on gtkmarshal.h for -j builds. 
17135         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
17136
17137 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
17138
17139         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
17140         GDK_THREADS_{LEAVE,ENTER} pair.
17141         (From Paul Fisher <pnfisher@redhat.com>)
17142
17143 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
17144
17145         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
17146         width and height are always >0 (owen).
17147
17148 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
17149
17150         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
17151         change that assured that a widget's allocated with and height are
17152         always >1, since this breaks *buggy* panel code. unfortunately this
17153         back-breaks the gimp's color selector.
17154
17155         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
17156         allocation is always >0 in width and height, before sending the
17157         configure event; this is a *gross* hack to get the gimp back to work.
17158         
17159         * marked both cases with TODO-1.3
17160
17161 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
17162
17163         * gtk/gtktext.c: Don't display wrap indicators when
17164         text is not editable and word wrap is on.
17165
17166 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
17167
17168         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
17169         option menus here as they are not derived from menu shell, assure that
17170         the option menu has a menu we can add items to.
17171
17172 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
17173
17174         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
17175         width/height to (gint) before calculations and check against < 0 to
17176         avoid guint wraparounds.
17177
17178 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
17179
17180         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
17181         width and height is never zero. sanity check both dimensions against
17182         32767 and issue a warning if the allocation is greater than that.
17183
17184 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
17185
17186         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
17187         to g_main_pending() as well.
17188
17189 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
17190
17191         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
17192         call to g_main_iteration() - since that will regrab
17193         GTK+ lock to process events.
17194
17195 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
17196
17197         * gtk/gtkwindow.c
17198         - Regularize with the rest of GTK+ by making widget->requisition
17199           not reflect the set_usize()
17200         - Always recompute geometry hints, then check if they
17201           changed before sending them to the X server. The
17202           previous checks for changes would fail in a number
17203           of circumstances. 
17204
17205 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
17206
17207         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
17208
17209 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
17210
17211         * gtk/gtkdnd.c:
17212         - Code cleanups
17213         - Instantaneously update on modifier key presses
17214         - Allow cancellation of the drag with Escape.
17215
17216 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
17217
17218         * gtk/testgtk.c (create_handle_box): Set the policy
17219         to auto_shrink - otherwise the appearance is rather
17220         strange when flipping between horizontal and vertical.
17221
17222 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
17223
17224         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
17225         (gtk_window_set_default_size): don't change a value if it's < 0.
17226         queue a resize.
17227
17228 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
17229
17230         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
17231
17232 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
17233
17234         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
17235         add an extra "/" when concating "/" + filename.
17236         (From Matt Grossman <mattg@oz.net>)
17237
17238 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
17239
17240         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
17241         for fg_gc if we set it for drawing pixmap.
17242
17243 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
17244
17245         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
17246         
17247         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
17248         already set, call old engine's destroy function and
17249         unref the old engine.
17250
17251 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
17252
17253         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
17254
17255 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
17256
17257         * gtk/gtkaccelgroup.h: mark certain functions as internal.
17258
17259 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
17260
17261         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
17262         expand behaviour changed.
17263
17264         * gtk/gtklabel.c (gtk_label_set_pattern):
17265         (gtk_label_set_justify):
17266         (gtk_label_set_line_wrap):
17267         don't bother invoking queue_clear, the reallocation does
17268         that for us, always free_words so the upcoming resize will
17269         relayout the label's contents.
17270
17271 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
17272
17273         * applied argument implementation patches from Elena Devdariani
17274         <elena@cogent.ca>.
17275
17276         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
17277         ::space_style, ::relief
17278         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
17279         * gtk/gtkpreview.c: ::expand
17280         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
17281         * gtk/gtknotebook.c: ::homogeneous
17282         * gtk/gtklabel.c: ::wrap
17283         * gtk/gtklist.c: ::selection_mode
17284         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
17285         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
17286         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
17287         * gtk/gtkclist.c: ::sort_type
17288         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
17289         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
17290
17291 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
17292
17293         * gtk/gtkstyle.c: Removed ill-thought-out part of last
17294         comment.
17295
17296 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
17297
17298         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
17299         counting right when we have to attach a new style
17300         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
17301
17302         * gtk/gtkstyle.c: Documented the refcounting
17303         peculularities of gtk_style_attach.
17304
17305 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17306
17307         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
17308         window types.
17309
17310         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
17311         of GTK_TOPLEVEL for creating the window.
17312
17313 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17314
17315         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
17316         the last argument (reported by Per Winkvist).
17317         
17318 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
17319
17320         Fixes for invisible XOR lines (Frank Loemker
17321         <floemker@TechFak.Uni-Bielefeld.DE>)
17322         
17323         * gtk/gtkclist.c (gtk_clist_realize): Always use
17324         a non-zero pixel for GDK_XOR.
17325
17326         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
17327         Use GDK_INVERT instead of GDK_XOR.
17328
17329 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
17330
17331         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
17332         signals if h/voffsets differ from adjustment values.
17333         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
17334
17335 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
17336
17337         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
17338         ::selection-done emissions up to the topmost menu shell.
17339
17340 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
17341
17342         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
17343         the user data on the window before destroying it.
17344
17345         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
17346         unrealize handler to take care of destroying 
17347         notebook->panel properly. 
17348         (Bug #1198 - Morten Welinder <terra@diku.dk>)
17349
17350         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
17351         of g_new and g_realloc to stop memory leak. (Actually,
17352         we could just use g_realloc(), but I'm not 100% sure
17353         that is portable).
17354         (Bug #1196 - Morten Welinder <terra@diku.dk>)
17355
17356 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
17357
17358         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
17359
17360         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
17361         for fontsets.
17362
17363         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
17364         with bin/button confusion.
17365
17366 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
17367
17368         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
17369         and show how preselection of radio items is done.
17370
17371 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
17372
17373         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
17374         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
17375         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
17376         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
17377         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
17378         * gtk/gtktable.c (gtk_table_attach): 
17379         * gtk/gtklist.c (gtk_list_insert_items): 
17380         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
17381         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
17382         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
17383         * gtk/gtkbin.c (gtk_bin_add): 
17384         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
17385         * gtk/gtkfixed.c (gtk_fixed_put): 
17386         * gtk/gtklayout.c (gtk_layout_put):
17387         general fixups to container_add logic. always realize child if
17388         child->parent is realized, only map the child and queue a resize
17389         if child and child->parent are both visible.
17390
17391 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
17392
17393         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
17394         instead of gtk_container_foreach to walk and unrealize children, so
17395         composite children get also unrealized.
17396         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
17397         (gtk_widget_map): assert that the widget is visible (basic constrain).
17398         (gtk_widget_real_map): assert that the widget is realized (basic
17399         constrain).
17400
17401 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
17402
17403         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
17404
17405 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
17406
17407         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
17408         file for iso-8859-2 locales.
17409
17410         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
17411
17412 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
17413
17414         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
17415          (Pointed out by andy@rz.uni-karlsruhe.de and others).
17416          Remove some suspicious and useless lines. 
17417
17418 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
17419
17420         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
17421         width,height = 0, 0 to mean - here to edge of window,
17422         instead of -1, -1, since the former is all we support.
17423
17424 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
17425
17426         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
17427         when removing from quit_functions list.
17428
17429 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
17430
17431         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
17432
17433 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
17434
17435         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
17436          When redrawing characters on non-visible entry, use appropriate
17437          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
17438
17439 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
17440
17441         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
17442         from drag coordinates.
17443         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
17444         use drag_dest_cell.
17445
17446         * gtk/gtktree (drag_dest_cell)
17447         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
17448         (Bug #1129)
17449
17450 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
17451
17452         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
17453         translate_* fields.
17454         (gtk_item_factory_finalize): invoke translate_notify independant from
17455         translate_data.
17456         (gtk_item_factory_set_translate_func): likewise.
17457         (gtk_item_factory_destroy): only remove ifactory pointer from those
17458         widgets that belong to us (stupid me).
17459
17460 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
17461
17462         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
17463         rc_style list when lookup succeeeds.
17464
17465 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
17466
17467         * gtk/gtkctree.c (resync_selection): 
17468         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
17469         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
17470         bug.
17471
17472 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
17473
17474         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
17475         Add some missing GDK_THREADS_ENTER()/LEAVE around
17476         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
17477
17478 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
17479
17480         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
17481         rather than emit_by_name.
17482
17483         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
17484         on the widget across multiple signal emissions.
17485         (gtk_editable_delete_text): same here.
17486         (gtk_editable_class_init): set widget_class->activate_signal after
17487         editable_signals[ACTIVATE] has been created.
17488
17489 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
17490
17491         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
17492         position here prematurely -- we might not have the
17493         right ->min_position and ->max_position yet.
17494
17495 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
17496
17497         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
17498         Add error traps so if the other end of the connection
17499         dies, we survive.
17500
17501         * gtk/gtkselection.c (gtk_selection_notify): Clean
17502         up properly when selection property retrieval fails.
17503         
17504         * gtk/gtkselection.c (gtk_selection_request): Correctly
17505         reject SelectionRequest notifies where the handler
17506         returns no data.
17507
17508 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
17509
17510         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
17511         when we've previously highlighted.
17512
17513         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
17514         emit two "drag_leave" signals for Motif drops.
17515
17516         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
17517         back the correct status messages when dropping from
17518         Motif onto a proxy window that is rejecting the
17519         drop.
17520
17521 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
17522
17523         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
17524         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
17525         to compare two argument values. added gtk_arg_to_valueloc() to set a
17526         variable from an arg through its location (pointer).
17527
17528         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
17529         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
17530         as gfloat*, uchars are collected as guchar*, ints are collected as
17531         gint*, etc...
17532
17533 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
17534
17535         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
17536         Include <string.h> instead of <strings.h>.
17537
17538         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
17539         (actually, a lot more duplicate includes occur if
17540          you trace through the sequence of #include's)
17541         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
17542         
17543 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
17544
17545         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
17546         gtk-a-higuti-990322-[0-3]
17547
17548         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
17549         that was causing -DX_LOCALE not to work.
17550
17551         * gtk/gtkrc.c (gtk_rc_init):
17552         X_LOCALE will never have LC_MESSAGES defined
17553
17554 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
17555
17556         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
17557         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
17558
17559         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
17560         left/right as well (gtk-michael-980726-0.patch.gz).
17561
17562         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
17563         for pointer values, use gchar instead of char. fixed uline allocation
17564         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
17565         chunks instead of G_ALLOC_ONLY.
17566         (gtk_label_size_request): always alter requisition as passed and leave
17567         widget->requisition alone.
17568         (gtk_label_set_text): allow NULL strings.
17569         (gtk_label_new): likewise.
17570
17571 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
17572
17573         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
17574
17575 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
17576
17577         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
17578         *and* mapped (i.e. drawable).
17579         (gtk_bin_expose): only send exposes to drawable children.
17580
17581         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
17582         (gtk_box_expose): only send exposes to drawable children.
17583
17584         * gtk/gtkhscale.c (gtk_hscale_draw): 
17585         * gtk/gtkvscale.c (gtk_vscale_draw):
17586         hm, this is an ugly one. we first compute the size of our trough area
17587         here (window relative) and then check intersection with the draw_area
17588         which is parent relative because we're a NO_WINDOW widget, so we need
17589         to offset the trough area by allocation.x and allocation.y before the
17590         check. (this must not be done for the background area though, since
17591         that's already computed parent relative).
17592
17593 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
17594
17595         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
17596         unrealize title buttons.
17597
17598 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
17599
17600         * gtk/gtkclist.c (gtk_clist_column_title_passive)
17601         (gtk_clist_column_title_active): 
17602         only connect/disconnect to GtkWidgetClass::event to block mouse events.
17603
17604         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
17605         zero initialize event, removed superfluous gdk_window_get_pointer call
17606
17607         * gtk/gtklist.c (gtk_list_vertical_timeout)
17608         (gtk_list_horizontal_timeout): removed superfluous
17609         gdk_window_get_pointer call
17610
17611 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
17612
17613         * plugging problems reported by "Bruce Mitchener, Jr."
17614         <bruce@puremagic.com> due to a purify session.
17615
17616         * gtk/gtkstyle.c:
17617         (gtk_style_ref): 
17618         (gtk_style_unref): assert ref_count to be > 0.
17619
17620         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
17621         the requisition.
17622         (gtk_clist_set_shift): likewise.
17623
17624         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
17625         adjustments.
17626
17627         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
17628         event before sending it and set send_event to TRUE (which needs to
17629         be done for *all* synthesized events).
17630         (gtk_list_vertical_timeout): likewise.
17631
17632         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
17633         leaks.
17634
17635         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
17636         to TRUE when synthesizing events.
17637
17638 [ *** end of merges from 1.2 *** ]      
17639         
17640 1999-11-21  Tor Lillqvist  <tml@iki.fi>
17641
17642         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
17643         (or copied from gdkconfig.h.win32 on Win32, sigh).
17644
17645         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
17646
17647         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
17648
17649         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
17650
17651         * gdk/gdkconfig.h.win32: New file.
17652
17653         * gdk/win32/makefile.cygwin: Build just a static archive here.
17654
17655         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
17656         for the DLL from the static archive built above.
17657
17658         * gdk/gdk.def: Moved here from the win32 subdirectory.
17659
17660         * gdk/win32/*: Adapt for the changed private struct organisation.
17661
17662         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
17663
17664 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
17665
17666         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
17667         for wheel mice (buttons 4 and 5).
17668
17669 1999-11-18  Tor Lillqvist  <tml@iki.fi>
17670
17671         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
17672         drawables use just the pixel field in the foreground and
17673         background GdkColor of the GdkGC.
17674
17675         gdk_gc_set_{fore,back}ground() are called in the GIMP with
17676         GdkColors containing uninitialized (red,green,blue) fields, and
17677         just the pixel field filled in, and furthermore in the
17678         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
17679         It thus turns out that we really don't need to have the full
17680         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
17681         it later to have just the pixel values.
17682
17683 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
17684
17685         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
17686
17687 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
17688
17689         * docs/gtkfaq.sgml: threads example from Erik Mouw.
17690         New question on GtkLabel background colors.
17691
17692         * docs/gtk_tut.sgml:
17693           - Correct the example code callback
17694             function definitions.
17695           - Update the gtkdial example code, from Frans van Schaik.
17696           - Update setselection.c to current API.
17697
17698         * examples/Makefile examples/*/*.c: Update to code
17699         listed in tutorial.
17700
17701 1999-11-10  Tor Lillqvist  <tml@iki.fi>
17702
17703         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
17704         subrange table (from the "Developing International Software for
17705         WIndows 95 and Windows NT" book) was missing the Hangul syllable
17706         block... Get the loaded font's charset correctly.
17707
17708         (Note that this, and the other *-win32.c files, still really are
17709         the old ones, the win32 subdirectory is not ready for compilation
17710         yet after the reorg.)
17711
17712 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
17713
17714         * gtk/gtkclist.c: Fix off-by-one bug in parameter
17715         check.
17716
17717 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
17718
17719         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
17720         on results of XQueryDeviceState().
17721
17722 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
17723
17724         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
17725         we need to accesss only ->children. We need an accessor
17726         for the children.
17727
17728         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
17729         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
17730         to get rid of gdkx.h include.
17731         
17732         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
17733         and random references to 'None'.
17734
17735         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
17736         Get rid of unused #include <gdk/gdkx.h>
17737
17738         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
17739         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
17740         gdkconfig.h.
17741
17742 1999-11-08  Tor Lillqvist  <tml@iki.fi>
17743
17744         * gdk/win32/gdkdraw.c
17745         * gdk/win32/gdkfont.c
17746         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
17747         following yesterday's changes. (Unrelated to Owen's reorg.)
17748
17749 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
17750
17751         * gdk/x11/gdkinput-gxi.c: Add missing include,
17752           fix GdkWindowPrivate => GdkDrawablePrivate.
17753
17754         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
17755
17756         * gdk/x11/Makefile.am (xinput_sources): Add missing
17757         backslash to fix building with --with-xinput=none
17758
17759 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
17760
17761         Move all X specific code into the x11/ directory.
17762         Aside from shuffling things around, did the following:
17763
17764        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
17765          gdk_arg_context_* - a simple argument parsing system
17766          in the style of popt.
17767
17768        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
17769          gdk/x11/gdkprivate-x11.h:
17770          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
17771          add ->klass and ->klass_data fields. The klass_data
17772          field points to an auxilliary structure that is
17773          windowing system dependent.
17774
17775        * gdk/gdkfont.c: Make most of the measurement functions
17776          simply wrappers around gdk_text_extents().
17777
17778        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
17779          _gdk_font_strlen() function that hides the weird
17780          behavior in gtk+-1.[02] where a string is interpreted
17781          differently for 8-bit and 16-bit fonts.
17782
17783        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
17784          to store common code for synthesizing double/triple
17785          press events.
17786         
17787        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
17788          Make all the function that modify an existing GC
17789          simply wrappers around gdk_gc_set_values().
17790          
17791        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
17792          for throwing out later.
17793
17794        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
17795          GdkImagePrivate and GdkColormapPrivate to have a
17796          windowing system dependent part (GdkFontPrivateX etc.)
17797          that "derives" from the system-independent part.
17798
17799        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
17800          Got rid of the included-source-files for XInput in
17801          favor of automake conditionals. (Which didn't exist
17802          when XInput support was originally added.)
17803
17804        * gdk/gdkrgb.c: Remove the visual id from the debugging
17805          statements since that is X11 specific; print out
17806          type/depth info instead.
17807          
17808
17809 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
17810
17811         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
17812         loading duplicates of hashed fonts.
17813
17814         * gdk/gdk.c (gdk_keysym_convert_case): rename
17815         gdk_XConvertCase to gdk_keysym_convert_case, allow
17816         results to be NULL in the GTK+ style.
17817
17818         * gdk/gdkcompat.h: Started compatibility header
17819         for renames.
17820
17821 1999-11-07  Tor Lillqvist  <tml@iki.fi>
17822
17823         * gdk/win32/gdkprivate.h: New font private structures, related to
17824         fontsets.
17825
17826         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
17827         gdk_font_list_free(). On X11, will just be wrappers to
17828         XListFonts() and XFreeFontNames(). On Win32, the code previously
17829         in gtkfontsel.c is now here.
17830
17831         New function gdk_font_xlfd_create(). On X11 will get the FONT
17832         property of the font (for GDK_FONT_FONTs), or call
17833         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
17834         builds a XLFD style name from the font information in the LOGFONT
17835         struct(s).
17836
17837         New function gdk_font_xlfd_free(), which correspondingly frees the
17838         string returned by gdk_font_xlfd_create().
17839
17840         Implement fontsets on Win32. Add a function that iterates over a
17841         wide char string and calls a callback function for each substring
17842         of wide chars from the same Unicode subrange (and thus probably
17843         available in the same real font).
17844
17845         Improve the XLFD emulation a bit.
17846
17847         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
17848
17849         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
17850         Beta3, WM_IME_CHAR messages don't seem to contain the composed
17851         multi-byte char as with the Active IMM on Win9x. Oh well, handle
17852         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
17853         ImmGetCompositionStringW() to get the composed Unicode chars.
17854
17855         * gdk/win32/gdkgc.c
17856         * gdk/win32/gdkdraw.c: Changes needed because of the font private
17857         struct changes.
17858
17859         * gdk/win32/gdk.def: Add the new functions.
17860
17861 1999-11-04  Tor Lillqvist  <tml@iki.fi>
17862
17863         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
17864         get the Platform SDK to get <dimm.h>.
17865
17866         * gdk/win32/gdkevents.c: More event handling fixes and
17867         simplification. Never generate motion events with is_hint true. We
17868         used to do that on bogus grounds earlier. Windows sends
17869         WM_MOUSEMOVE messages on button events even if the mouse hasn't
17870         moved, ignore these.
17871
17872         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
17873
17874         * gdk/win32/gdkglobals.c
17875         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
17876         the TrackMouseEvent function, and use it.
17877
17878         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
17879         char before calling WideCharToMultiByte in order to get a string
17880         for the window title.
17881
17882         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
17883
17884         * gdk/win32/gdk.def: Remove obsolete functions.
17885
17886         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
17887         /nodefaultlib and /defaultlib switches.
17888
17889         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
17890
17891 1999-10-31  Tor Lillqvist  <tml@iki.fi>
17892
17893         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
17894         EuroSign).
17895
17896         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
17897         same type as GdkWChar, especially on Win32.
17898
17899         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
17900
17901         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
17902         before passing to Windows GDI for drawing etc. Convert to the
17903         system default codepage before passing to Windows as window
17904         titles.
17905
17906         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
17907         support changing input locale on the fly.
17908
17909         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
17910         on-the-fly changes. Convert incoming characters from the current
17911         codepage to Unicode (and then to a UTF-8 multi-byte string) based
17912         on the current input language. Use keysym<->Unicode mapping tables
17913         and functions borrowed from xterm sources.
17914
17915         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
17916         editions of Win9x, use the ActiveX-based Active IMM (Input Method
17917         Manager) if available. IMEs and the Active IMM are available under
17918         the disguise of Chinese, Korean and Japanese support for IE and
17919         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
17920         support is present in all editions (as long as you install it).
17921
17922         Call DispatchMessage from gdk_events_queue() (and thus
17923         gdk_WindowProc()), instead of duplicating the code in
17924         gdk_WindowProc().
17925
17926         Reworked the grab handling and propagation code, factored out
17927         duplicated code snippets into separate functions. Other cleanups,
17928         too.
17929
17930         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
17931         the <dimm.h> header describing the Active IMM.
17932
17933         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
17934         just do the same as for "single" fonts.
17935
17936         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
17937         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
17938         the new keysyms from gdkkeysyms.h.
17939
17940         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
17941         fontset, so that gtkentry uses wide characters.
17942
17943         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
17944         GTk+'s system directory "gtk+", not "gtk".
17945
17946 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
17947
17948         * docs/gtkfaq.sgml: FAQ update
17949
17950 1999-10-21  Tor Lillqvist  <tml@iki.fi>
17951
17952         * gdk/win32/gdkprivate.h: Add more font private data.
17953
17954         * gdk/win32/gdkfont.c
17955         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
17956         fonts and strings. Now works much better. You still have to
17957         have a correct font selected, though. No fontset emulation yet.
17958
17959 1999-10-19  Tor Lillqvist  <tml@iki.fi>
17960
17961         * gtk/maketypes.awk: Use G_OS_WIN32.
17962
17963         * gtk/gtk.def: Add some missing entry points. Also some non-public
17964         ones, but PyGTK porter claims to need them.
17965
17966         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
17967         built-in type generation.
17968
17969 1999-10-14  Tor Lillqvist  <tml@iki.fi>
17970
17971         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
17972         GDK_FONT_FONT fonts (which is all we have for now, we don't
17973         emulate fontsets). The X11 version uses plain XDrawString in that
17974         case, too. The string passed to gdk_draw_text_wc seems to be in
17975         fact (at least, when used by gtkentry and gtktext) either in a
17976         single-byte charset, or a DBCS. Not Unicode.
17977
17978         This fixes the problem in gtkfontsel, where even if you had
17979         selected a font with a non-Latin1 charset (windows-greek, for
17980         instance), the preview still used Latin-1 glyphs.
17981
17982         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
17983         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
17984         (gdk_font_load): Recognize the demibold etc weights, even if we
17985         don't have the corresponding constants in the headers.
17986         (gdk_font_hash_insert): Use same hash mechanism as in the X11
17987         version. Should save font resources a bit, when we don't have
17988         multiple HFONTs for the same font.
17989
17990         * gdk/win32/gdkprivate.h: Add the names field as in the X11
17991         version.
17992
17993 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
17994
17995         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
17996         X values
17997
17998 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
17999
18000         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
18001         layout support (as mentioned on
18002         http://www.jcinteractive.com/gnome-ui/software/widgets/)
18003
18004 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
18005
18006         * gtk/fnmatch.c
18007         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
18008
18009 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
18010
18011         * configure.in (ALL_LINGUAS): Added Galician (gl)
18012
18013 1999-10-05  Tor Lillqvist  <tml@iki.fi>
18014
18015         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
18016
18017         * gdk/win32/gdkcompat.c: New file, actually provide an
18018         implementation for the deprecated functions. (Just temporarily.)
18019
18020         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
18021
18022         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
18023
18024         * gdk/win32/gdk.def gtk/gtk.def: Updates.
18025
18026 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
18027
18028         * configure.in: Added "uk" to ALL_LINGUAS.
18029         
18030 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
18031
18032         * configure.in: correct checking for BeOS check
18033
18034         * gdk/gdktypes.h
18035         * gtk/fnmatch.c
18036         * gtk/gtkfilesel.c
18037         * gtk/gtkitemfactory.c
18038         * gtk/gtkmain.[ch]
18039         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
18040
18041 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
18042
18043         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
18044         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
18045         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
18046         by Bulgarian). 
18047
18048 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
18049
18050         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
18051         Fix a reference to window_private->destroyed.   
18052
18053         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
18054         (ugly) setting of an internal GdkWindow member to use
18055         a _slightly_ cleaner macro.
18056
18057         * gdk/gdkprivate.h: Split GdkWindowPrivate into
18058         GdkDrawablePrivate and GdkWindowPrivate.
18059         Add extra macros for accessing GDK_DRAWABLE_ components.
18060
18061         * *.[ch]: Massive adjustments for the above, use the
18062         new macros in a lot of places.
18063
18064 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
18065
18066         * gdk/gdktypes.h: Make GdkDrawable the base type,
18067         not GdkWindow.
18068
18069 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
18070
18071         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
18072
18073 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
18074
18075         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
18076
18077 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
18078
18079         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
18080         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
18081
18082         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
18083
18084         * docs/gtk-config.1: Now autogenerated.
18085         * docs/Changes-1.4.txt: started
18086         
18087 1999-10-03  Tor Lillqvist  <tml@iki.fi>
18088
18089         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
18090         to #ifdef also here.
18091
18092         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
18093         Owen did to the X11 backend.
18094
18095         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
18096         ScrollWindowEx when blitting inside a window, it can't be correct
18097         in the general case.
18098
18099         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
18100         WM_GETMINMAXINFO is easier.
18101
18102         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
18103         depth equal to the bitspixel value, not the visual's depth.
18104
18105         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
18106         to 24 even if the bitspixel value is 32.
18107
18108         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
18109         need to check for depth==32 when bpp==32, depth will always be 24.
18110
18111 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
18112
18113         * docs/Changes-1.4.txt: Started
18114         
18115         * gtk/Makefile.am (gdk_headers): Include all the new headers.
18116
18117         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
18118         
18119         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
18120         into C file.
18121         
18122         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
18123         header to gdkinputprivate.h.
18124
18125         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
18126         unused since before 1.2.
18127
18128 1999-09-30  Tor Lillqvist  <tml@iki.fi>
18129
18130         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
18131         expand possible hex escapes in the font family (put there by
18132         logfont_to_xlfd if the font name isn't a legal XLFD font family,
18133         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
18134         On Win32, add hex escapes here, too.
18135
18136 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
18137
18138         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
18139         to #ifdef GDK_WINDOWING_X11.
18140
18141 [ Merges from gtk-1-2 ]
18142
18143 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
18144
18145         * configure.in: fixed "GNU Make" check to pass with new make version
18146         3.77.95.
18147
18148 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
18149
18150         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
18151         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
18152         AM_PATH_GTK() macros don't get confused by the -pre1.
18153
18154 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18155
18156         * configure.in (REBUILD): Change check for perl5
18157           to check explicitely for v >= 5.002. (5.001
18158           does not work with our scripts.)
18159
18160 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
18161
18162         * configure.in: evaluate $PERL for the perl version check. added
18163         --disable-rebuilds to give the user an option to completely disable
18164         any source autogeneration rules.
18165
18166 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
18167
18168         * configure.in: evaluate $ac_make when checking for GNU Make.
18169
18170 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18171
18172         * docs/Makefile.am: added generation.txt.
18173
18174         * Makefile.am: require automake 1.4, build README from README.in and
18175         INSTALL from INSTALL.in in dist-hook.
18176         
18177         * README.in:
18178         * INSTALL.in: new files to autogenerate README and INSTALL from.
18179
18180         * configure.in: figure whether we have GNU Make
18181
18182         * docs/generation.txt: minor additions/corrections.
18183
18184 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
18185
18186         * docs/gtkfaq.sgml: FAQ Update
18187
18188 July 30, 1999 Elliot Lee <sopwith@redhat.com>
18189         
18190         * configure.in: Fix autoconf warnings about cross compilation by
18191         trying to provide sane defaults for AC_TRY_RUN.
18192
18193 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
18194
18195         * ltconfig
18196         * ltmain.sh: upgrade to libtool 1.3.3
18197
18198 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
18199
18200         * INSTALL: Indicate that the --with-glib= configure
18201         time flag is unsupported.
18202
18203 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
18204
18205         * docs/generation.txt: Added a file that gives
18206         documenation about the autogeneration process for
18207         various autogenerated files.
18208         
18209 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18210
18211         * configure.in (LIBS): Look for libgmodule in the
18212         right location.
18213
18214 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
18215
18216         * docs/gtk_tut.sgml: Removed references to
18217         code examples in my directory on gtk.org as
18218         they should all be in the tutorial now.
18219
18220         * docs/gtk_tut.sgml: Added sources for dial-test
18221         and scribble-xinput programs that were previously
18222         missing.
18223
18224 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
18225
18226         * TODO: Added entry about menu keyboard navigation, removed
18227         some finished items.
18228
18229 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
18230
18231         * acinclude.m4: Standardize on func_dgettext
18232         not func_gettext, so that the checks for dgettext
18233         actually are paid attention to.
18234
18235 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
18236
18237         * configure.in (LIBS): Add $INTLLIBS into $LIBS
18238         directly, rather than repeating the checks for
18239         gettext.
18240
18241         * INSTALL: Added information about gettext and
18242         NLS support.
18243
18244         * acinclude.m4 (LIBM): Check for dgettext, not
18245         just gettext. This should hopefully fix things wrt
18246         systems with old versions of GNU gettext installed.
18247
18248 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18249
18250         * configure.in (LIBS): Look for libgmodule in the
18251         right location.
18252
18253 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
18254
18255         * autogen.sh: add --enable-maintainer-mode
18256
18257         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
18258
18259 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
18260
18261         * docs/gtk-config.1.in:
18262           docs/Makefile.am:
18263           configure.in: gtk-config is now generated.
18264
18265         * docs/gtk-config.1: Removed, now generated.
18266
18267 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
18268
18269         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
18270         handle CreateNotify itself, still put out a debuging message for
18271         --gdk-debug=events. made the ReparentNotify debugging message more
18272         verbose.
18273         wrap xcoords translation for ConfigureEvents into an error trap,
18274         a destroy event may already be pending, and in that case, the
18275         actuall coordinate values are not at all critical.
18276
18277 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
18278
18279         * gdk/gdkcc.c: Stop leaking the color_hash all over
18280         the place. Simplify and improve the logic.
18281
18282 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
18283
18284         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
18285         for prototypes and function implementations consistent (reported
18286         by Tomas Ogren).
18287
18288 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
18289
18290         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
18291         send_event set in debugging output.
18292         (gdk_compress_exposures): default initialize the event so we don't
18293         operate on bogus values (namely send_event).
18294
18295 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
18296
18297         * gdk/gdkwindow.c: When we receive an unexpected
18298         destroy notify on one of our windows, don't just
18299         warn about it, also mark our windows as destroyed.
18300
18301 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
18302
18303         * gdk/gdkfont.c (gdk_font_hash_insert): Add
18304           name => font and name => fontset hashes. The 
18305           name => fontset hash is a _big_ win since we
18306           weren't previously caching fontsets at all and loading
18307           fontsets is expensive. The name => font hash
18308           is less of a win, but it does save us from doing
18309           repeated XQueryFont calls on the same font.
18310
18311         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
18312           list so we can remove font/fontset from hash.
18313
18314 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18315
18316         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
18317           and slightly confusing test. [ XInternAtom (,,TRUE)
18318           will never return None ].
18319
18320 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
18321
18322         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
18323           gdk/gdkwindow.c (gdk_window_set_hints):
18324
18325         Don't omit setting the properties if flags == 0 -
18326         there may be an existing set of properties there
18327         already. (Very old bug. Would it be better to
18328         delete the property instead?)
18329
18330         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
18331           spelling error in comment.
18332
18333 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
18334
18335         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
18336           to avoid stomping over gdk_error_warnings.
18337
18338         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
18339           as (bits_per_pixel + 7) / 8. This gives the same
18340           result as before for multiples of 8, but actually
18341           a "reasonable" value for 1bit or 4bit displays.
18342
18343 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18344
18345         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
18346         GNU Make.
18347
18348 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
18349
18350         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
18351         discarding configure events.
18352
18353 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
18354
18355         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
18356         refcount is greater than zero.
18357
18358         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
18359
18360         * gdk/gdkfont.c (gdk_font_unref): Likewise.
18361
18362         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
18363
18364         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
18365
18366 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
18367
18368         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
18369         that format 32 => sizeof(item) == 4. It really is
18370         sizeof(long).
18371
18372 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
18373
18374         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
18375         core dump at all on X IO errors, only core dump
18376         if --enable-debug for X errors.
18377
18378 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
18379
18380         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
18381         unknown window:" message. disabled ConfigureNotify discarding code,
18382         because it led to events being processed out of order.
18383
18384 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
18385
18386         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
18387
18388         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
18389         we export this function, supress error warnings and don't reset the
18390         error code in the first half of this function.
18391
18392         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
18393         code (instead of just -1) so gdk_error_trap_pop() reveals something
18394         actually informative about the error that happened.
18395
18396         * gdk/*.c:
18397         don't rely on gdk_error_code being -1 if an error occoured, but just
18398         gdk_error_code != 0.
18399
18400 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
18401
18402         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
18403         pointer *before* invoking the filter function, so we at least don't
18404         crash if a filter is removed that is currently executed. window filters
18405         *really* need to be made truely reentrant at some point.
18406
18407 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
18408
18409         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
18410         PropertyNotify debug messages.
18411
18412 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
18413         
18414         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
18415         
18416         * gdk/gdkim.c: Fix cut-and-paste errors for 
18417         x/y and PreeditAttributes/StatusAttributes.
18418
18419 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18420
18421         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
18422         G_MAXINT to 2^16 to alleviate overflow problems in
18423         various window managers.
18424
18425 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
18426
18427         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
18428         for fontsets.
18429
18430 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
18431
18432         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
18433         Initialize size_hints.x and size_hints.y because kwm
18434         brokenly pays attention to them.
18435         (Bug #1181 -  Lars Heete <hel@admin.de>)
18436
18437 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
18438
18439         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
18440         return value of gdk_list_visuals(). 
18441         (Bug #1193 - Morten Welinder <terra@diku.dk>)
18442
18443 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
18444
18445         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
18446         XSetIMValues to (void *) when comparing to NULL, to workaround
18447         the problem of some compilers barfing since older X headers don't
18448         have the prototype for it.
18449
18450 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
18451
18452         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
18453         for pseudocolor where colormap->colors was double
18454         allocated.
18455
18456         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
18457         color value in the hash table with the pixel filled
18458         in so when we do later hash table lookups, the color
18459         value is correct.
18460         
18461 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
18462
18463         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
18464         making the call
18465
18466 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
18467
18468         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
18469         pointed out by Morten Welinder <terra@diku.dk>.
18470
18471 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
18472
18473         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
18474           default filter from the list
18475
18476 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
18477
18478         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
18479           default filter from the list
18480
18481 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
18482
18483         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
18484
18485         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
18486         g_strdup_printf instead of calcing the length separately
18487
18488 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
18489
18490         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
18491         that we don't do in many other places. (Fixing duplicate 
18492         #include of config.h)
18493
18494         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
18495         Otherwise, #ifndef XINPUT_NONE check in the latter
18496         doesn't work. (Bug #546)
18497
18498 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
18499
18500         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
18501         "None" case insensitive.
18502
18503 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
18504
18505         * gdk/gdkselection.c: 
18506         Add error traps so if the other end of the connection
18507         dies, we survive.
18508
18509 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18510
18511         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
18512         dest_xid field into two fields - one for the window
18513         to send in messages, one to indicate the last looked
18514         up window for caching purposes. This is needed, so
18515         that Leave messages get the correct window.
18516
18517 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
18518
18519         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
18520         Fix warning created by people mucking around
18521         with the gsource API.
18522
18523         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
18524         Change mapping between GIOCondition and GdkInputCondition
18525         to match the way the Linux kernel does it. This should
18526         fix problems where closed pipes were no longer signalling
18527         GDK_INPUT_READ on systems with a native poll().
18528
18529 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
18530
18531         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
18532         explicitly for the string "None" - it is in the XPM
18533         spec and some servers treat unknown colors in odd ways
18534         (like asking the user!)
18535
18536 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
18537
18538         * gdk/gdkevents.c: made "->" into a "." of previous change so
18539         it compiles
18540
18541 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
18542
18543         * gdk/gdkevents.c (gdk_compress_exposures): Set the
18544         window field of the event structure before calling
18545         user filters.
18546
18547 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
18548
18549         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
18550         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
18551
18552 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
18553
18554         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
18555         intermediate text property - prevents major memory
18556         leak when gdk_use_mb.
18557         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
18558
18559 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
18560
18561         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
18562         gtk-a-higuti-990322-[0-3]
18563
18564         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
18565         sizeof(wchar_t) != sizeof (GdkWChar)
18566
18567         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
18568         that was causing -DX_LOCALE not to work.
18569
18570         * gtk/gtkrc.c (gtk_rc_init):
18571         X_LOCALE will never have LC_MESSAGES defined
18572
18573         * gdk/gdk.c (gdk_init_check):
18574         Remove --xim-preedit and --xim-status from argv properly.
18575
18576         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
18577         that the client window is present on the X server
18578         before we pass it to the input method.
18579
18580 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
18581
18582         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
18583         if --display is specified on the command line, than
18584         the drag window will not be created on that display.
18585         
18586 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
18587
18588         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
18589         lookups with only_if_exists == TRUE were inserting
18590         bogus values into the atom cache.
18591
18592 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
18593
18594         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
18595         then reset it to NULL.
18596
18597         * gdk/gdkcolor.c:
18598         (gdk_colors_free): 
18599         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
18600         key for g_hash_table_remove() in both functions, this prevents us
18601         from accessing possibly uninitialized portions of a GdkColor structure
18602         where we are only interested in its pixel value.
18603
18604 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
18605
18606         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
18607         font hash table, if we have a GdkFontPrivate entry for this font
18608         already, simply increment its reference count, provided by Olaf Dietsche
18609         <olaf.dietsche+list.gtk@netcologne.de>.
18610
18611 1999-09-21  Tor Lillqvist  <tml@iki.fi>
18612
18613         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
18614         just to be sure.
18615
18616         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
18617         unused variables, leftovers from the X11 version.
18618
18619         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
18620
18621         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
18622         downcase fields on X11.
18623
18624 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
18625         
18626         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
18627         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
18628
18629 1999-09-17  Tor Lillqvist  <tml@iki.fi>
18630
18631         * gdk/win32/gdk.def: Add gdk_threads_mutex.
18632
18633         * gtk/makefile.msc: Correct path to libintl.
18634
18635         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
18636         use of gint vs. int, and gint vs. gboolean in headers and
18637         definitions. Use GtkType for the *_get_type functions. Note that
18638         these changes preserve binary compatibility.
18639
18640         * gdk/gdk.c
18641         * gdk/win32/gdk.c
18642         * gdk/gdk.h: Fix inconsistencies: gint vs int.
18643
18644         * gtk/gtkmain.c
18645         * gtk/gtkclist.c
18646         * gtk/gtkmenufactory.c
18647         * gtk/gtknotebook.c
18648         * gtk/gtkwidget.c: Fix inconsistencies, also gint
18649         vs. gboolean.
18650
18651         * gtk/gtkcolorsel.[ch]
18652         * gtk/gtkcombo.[ch]
18653         * gtk/gtkdrawingarea.[ch]
18654         * gtk/gtkgamma.[ch]
18655         * gtk/gtkhandlebox.[ch]
18656         * gtk/gtkhpaned.[ch]
18657         * gtk/gtkhruler.[ch]
18658         * gtk/gtkplug.[ch]
18659         * gtk/gtkpreview.[ch]
18660         * gtk/gtkruler.[ch]
18661         * gtk/gtksocket.[ch]
18662         * gtk/gtkstatusbar.[ch]
18663         * gtk/gtktoolbar.[ch]
18664         * gtk/gtkvbbox.[ch]
18665         * gtk/gtkvpaned.[ch]
18666         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
18667         functions.
18668
18669         * gtk/gtkgamma.h: Fix bug, missing () in call of
18670         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
18671
18672 1999-09-14  Tor Lillqvist  <tml@iki.fi>
18673
18674         * gdk/gdkcolor.c (gdk_colormap_new)
18675         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
18676         colormap->colors was allocated twice.
18677
18678         * gdk/win32/gdk.c: Remove some unused stuff.
18679
18680         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
18681         colormap.
18682
18683         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
18684         * gtk/gtklabel.h (gtk_label_get_type)
18685         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
18686         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
18687         in a couple of places, not guint.
18688
18689 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
18690
18691         * configure.in,po/et.po: added Estonian language file
18692
18693 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
18694
18695         * configure.in,po/da.po: added Danish file
18696
18697 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
18698
18699         * docs/gtkfaq.sgml: Minor FAQ Update
18700
18701 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
18702
18703         * docs/gtkfaq.sgml: FAQ update
18704
18705 1999-08-27  Tor Lillqvist  <tml@iki.fi>
18706
18707         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
18708         way to get window contents continually refreshed while resizing. I
18709         didn't like the effects myself, so it's not on by default.
18710
18711         * gdk/win32/gdkprivate.h: New flag variable
18712         gdk_event_func_from_window_proc, FALSE by default.
18713
18714         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
18715         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
18716         are passed --gdk-event-func-from-window-proc.
18717
18718         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
18719         and we have am event_func, call it instead of enqueing the event.
18720
18721 1999-08-23  Tor Lillqvist  <tml@iki.fi>
18722
18723         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
18724         Kelley: Set expose_count in GdkEventExposes correctly.
18725
18726         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
18727         MULTIPLE_WINDOW_CLASSES).
18728
18729         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
18730         for bug in NT, apparently NT *does* draw the end pixel, too, in
18731         LineTo with a one-pixel pen, so we don't have to do it ourselves.
18732
18733 1999-08-21  Tor Lillqvist  <tml@iki.fi>
18734
18735         Improvements by Hans Breuer: 
18736
18737         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
18738
18739         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
18740         CS_?REDRAW flags as they cause lots of (late) redraws when "show
18741         window contents while dragging" is turned on. Allocate at least
18742         one unique class for every GdkWindowType. If support for single
18743         window-specific icons is ever needed (eg. Dialog specific), every
18744         such window should get its own class.
18745
18746 1999-08-19  Tor Lillqvist  <tml@iki.fi>
18747
18748         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
18749         error that caused crashes.
18750
18751 1999-08-17  Tor Lillqvist  <tml@iki.fi>
18752
18753         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
18754         window, use ScrollWindowEx, and call UpdateWindow. This prevents
18755         bugs when for instance part of the window was outside the
18756         display. Thanks to Philippe Colantoni for finding and fixing this.
18757
18758 1999-08-16  Tor Lillqvist  <tml@iki.fi>
18759
18760         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
18761         endpoint calculations which were totally wrong. (A little RTFMing
18762         helps a lot ;-)
18763
18764         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
18765         from a separate directory, not from gettext, because of licensing
18766         issues (we want to use the LGPL version).
18767
18768         * README.win32: Mention the intl from glibc vs from gettext issue.
18769
18770 1999-08-13  Tor Lillqvist  <tml@iki.fi>
18771
18772         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
18773         in the key event handling: Now AltGr chars work again. Also,
18774         now Alt-digits are passed up as well as Control-digits.
18775         Pass keypad plus and minus as normal plus and minus.
18776
18777 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
18778
18779         * docs/gtkfaq.sgml: FAQ Update
18780
18781 1999-07-25  Tor Lillqvist  <tml@iki.fi>
18782
18783         * README.win32
18784         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
18785         the Wintab SDK.
18786
18787         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
18788         OK, but getting closer. Guard against bogus tilt data from Wacom
18789         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
18790         enable easier building without Wintab.
18791
18792         * gdk/win32/gdkinput.h
18793         * gdk/win32/gdkevents.c 
18794         * gdk/win32/gdkwindow.c: Minor changes related related to above.
18795         
18796         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
18797         code. As we have just one visual on Win32, no sense to have it in a
18798         table, and no need for the hash table.
18799
18800         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
18801         better on white background.
18802
18803 1999-07-21  Tor Lillqvist  <tml@iki.fi>
18804
18805         * README.win32: Update gcc build instructions. Mention gettext is
18806         GPL.
18807
18808         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
18809         supported cursor size with GetSystemMetrics.
18810
18811         * gdk/win32/gdkfont.c
18812         * gtk/gtkfontsel.c: Guard against some font weight and charset
18813         symbols being undefined (in mingw32 headers).
18814
18815         * gdk/win32/makefile.cygwin
18816         * gtk/makefile.cygwin
18817         * gtk/gtkthemes.c: No longer need to have differently named
18818         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
18819
18820 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
18821
18822         * docs/gtkfaq.sgml: Long awaited FAQ update.
18823
18824 1999-07-15  Tor Lillqvist  <tml@iki.fi>
18825
18826         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
18827         it. Obscure bit manipulation needed.
18828
18829         * gdk/win32/gdkevents.c: Logging.
18830         
18831         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
18832         style (file name include compiler name) for theme engines.
18833
18834 1999-07-13  Tor Lillqvist  <tml@iki.fi>
18835
18836         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
18837
18838         * gdk/win32/gdkevents.c: Fix long-standing bug in key
18839         events. The key.string wasn't zero-terminated, still we strdup'ed
18840         it in gdk_event_copy(). Synthesize crossing events for button
18841         events before possible propagation.
18842
18843         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
18844
18845         * gdk/win32/makefile.cygwin
18846         * gtk/makefile.cygwin: Use new DLL naming style for the
18847         GCC-compiled ones.
18848
18849         * gdk/win32/makefile.msc
18850         * gtk/makefile.msc: Cosmetics mostly.
18851
18852         * gtk/gtk.def: Add missing entry points.
18853
18854         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
18855
18856 1999-07-09  Tor Lillqvist  <tml@iki.fi>
18857
18858         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
18859         or height is zero. Don't print a warning if Pie or Arc fails, they
18860         always fail (?) for very narrow ellipses.
18861
18862         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
18863         the part or the destination window corresponding to source area
18864         outside of the source drawable's boundary.
18865
18866         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
18867         anything if less than two points.
18868
18869         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
18870         return NULL. Gtk cut-and-paste inside a single program works
18871         better this way. (It always gets the clipboard contents from
18872         Windows, not from its own copy, which is cleared anyway. I can't
18873         say I fully understand what happens... Emulating the X selection
18874         and property stuff is a bit of a mess.)
18875
18876         * gdk/win32/gdkevents.c
18877         * gdk/win32/gdkproperty.c: A bit more verbose logging.
18878
18879         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
18880         that never got deleted). Revamp gdk_region_shrink.
18881
18882         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
18883         after use.
18884
18885         * gtk/gtk.def: Add some missing entry points.
18886
18887         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
18888         component.
18889
18890 1999-07-04  Tor Lillqvist  <tml@iki.fi>
18891
18892         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
18893         Control-digits specially.
18894
18895 1999-07-03  Tor Lillqvist  <tml@iki.fi>
18896
18897         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
18898
18899 1999-06-28  Tor Lillqvist  <tml@iki.fi>
18900
18901         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
18902         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
18903         finding this.)
18904
18905 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
18906
18907         * gtk+.spec.in: Corrected some typos in files section.
18908         
18909 1999-06-15  Tor Lillqvist  <tml@iki.fi>
18910
18911         * README.win32: Mention using GNU gettext.
18912         * config.h.win32: Enable NLS stuff.
18913         * gtk/makefile.msc: Use GNU gettext.
18914         * gdk/win32/gdkdnd.c: Minor header reorg.
18915         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
18916         cosmetics.
18917         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
18918         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
18919
18920 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
18921
18922         * acinclude.m4
18923         * config.guess
18924         * config.status
18925         * ltconfig
18926         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
18927
18928 1999-05-30  Tor Lillqvist  <tml@iki.fi>
18929
18930         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
18931         SafeAdjustWindowRectEx. Don't override all calls to
18932         AdjustWindowRectEx by it, but use it only in two places: When
18933         creating a new top-level window and when moving a top-level
18934         window.
18935
18936         Use screen coordinate rectangle, not client rectangle, in
18937         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
18938         when we try to place a window so that the decoration (mainly,
18939         title bar) isn't visible.
18940
18941         These changes fix the bug that showed up for instance as the
18942         GIMP's saved top-level windows moving right and down (by an amount
18943         equal to the window decoration) for each session. This bug showed
18944         up also in testgtk's "Saved Position".
18945
18946         gdk_window_resize also redone a bit.
18947
18948 1999-05-25  Tor Lillqvist  <tml@iki.fi>
18949
18950         * gtk/testgtkrc: Add (commented out) Windows-style theme
18951         include line.
18952
18953         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
18954
18955 1999-05-18  Tor Lillqvist  <tml@iki.fi>
18956
18957         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
18958         gdkx.h to a gdk subdirectory, so that applications can include
18959         these with <gdk/*.h> without trouble.
18960
18961         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
18962         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
18963         have their bitmap destroyed.
18964
18965         * gdk/win32/gdk.def: Add gdk_root_parent.
18966
18967 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
18968
18969         * configure.in
18970           gtk-config.in
18971           ltconfig
18972           ltmain.sh     
18973           gtk/Makefile.am: changes to compile nicely (with xlib) 
18974           on BeOS
18975
18976 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
18977
18978         * acinclude.m4
18979         * config.guess
18980         * config.sub
18981         * ltconfig
18982         * ltmain.sh: upgrade to libtool 1.3
18983
18984 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
18985
18986         * gtk/gtkclist.c:
18987         * gtk/gtkctree.c: merges from gtk-1-2
18988
18989 1999-04-25  Tor Lillqvist  <tml@iki.fi>
18990
18991         Support added for building using a GNU toolchain on Win32,
18992         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
18993
18994         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
18995         * config.h.win32: Changes for gcc.
18996         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
18997         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
18998         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
18999         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
19000         Protect shl stuff unavaiilable with mingw32 headers.
19001         * gdk/win32/gdkevents.c: Fix typo.
19002         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
19003         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
19004         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
19005         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
19006         the mingw32 headers.
19007         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
19008         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
19009         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
19010         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
19011         Test for NATIVE_WIN32, not _MSC_VER.
19012         * gtk/gtkmain.c: No use warning about developer version on Win32,
19013         there aren't any non-developer versions anyhow.
19014         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
19015         * gtk/makefile.msc: Use pthread from another directory. Minor other
19016         changes. 
19017
19018 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19019
19020         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19021           default filter from the list
19022
19023 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
19024
19025         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
19026          when gtk_widget_grab_default() is called for a widget that
19027          is not within a GtkWindow.
19028
19029 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
19030
19031         * docs/gtk_tut.sgml, examples/clist.c: use a
19032           scrolled window in the clist example. Minor
19033           tutorial fixes.
19034
19035 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
19036
19037         * docs/gtk_tut.sgml: Style check from David King
19038           <dking@youvegotmail.net>
19039
19040 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
19041
19042         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
19043         compile with unknown value of GDK_WINDOWING
19044
19045 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
19046
19047         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
19048         after the rule is fired.
19049         (install-exec-local): Install gdkconfig.h only if the contents are
19050         different from the currently installed gdkconfig.h.
19051
19052 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
19053
19054         * gdk/Makefile.am (configexecincludedir): Rename from 
19055         configincludedir so that gdkconfig.h will be installed 
19056         as part of `make install-exec'. 
19057
19058 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
19059
19060         * acinclude.m4
19061         * config.guess
19062         * config.sub
19063         * ltconfig
19064         * ltmain.sh: upgrade to libtool 1.2f
19065
19066         * autogen.sh: libtool is not required to autogen gtk+
19067
19068         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
19069         needed)
19070
19071 1999-03-18  Tor Lillqvist  <tml@iki.fi>
19072
19073         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
19074         declaring gdk variables exported/imported from the DLL. New image
19075         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
19076         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
19077         GDK_DRAG_PROTO_OLE2.
19078
19079         * gdk/gdk.h: Merge in Win32 version: Two new functions,
19080         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
19081         declared only for the Win32 version, but could be in the X11
19082         version as well. (Needed for a Xlib-less gdk_imlib.)
19083         gdk_color_hash should have only one parameter. Declare
19084         gdk_threads_mutex with GDKVAR.
19085         
19086         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
19087         just one parameter.
19088
19089         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
19090         per pixel, not bits.
19091
19092         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
19093         Fetch bpp (which means bits-per-pixel here) from another place on
19094         Win32. Accept also depth==32 (which we might get on Win32) with
19095         bpp==32.
19096
19097         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
19098         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
19099         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
19100         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
19101         in the backend-dependent directory, not in the common gdk
19102         directory.
19103
19104         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
19105         headers.
19106
19107 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
19108
19109         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
19110         want to use the Gtk+ devel version (which is true, and yes - even i am
19111         currently working with the 1.2.x branch). so everyone reading this, you
19112         probably want to issue
19113         cvs checkout -r glib-1-2 glib
19114         and
19115         cvs checkout -r gtk-1-2 gtk+
19116         as your next two comands.
19117
19118 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
19119
19120         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
19121         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
19122
19123         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
19124         file. strongly deprecated the GTK_HAVE_* macros, we provide
19125         GTK_CHECK_VERSION() for people that need to check for certain
19126         Gtk+ versions.
19127
19128         * gtk/gtkcompat.h: removed this from CVS.
19129         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
19130         idea right from the start, it just didn't seem like that back then.
19131
19132 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
19133
19134         * merges from gtk-1-2:
19135
19136 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
19137
19138         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
19139         item factory class has been created.
19140         (gtk_item_factory_parse_rc): likewise.
19141
19142         * gtk/gtkmenu.c:
19143         keep proper references for old_active_menu_item.
19144         (gtk_menu_reparent): unset the usize of the new parent,
19145         so the menu can sanely be size requested and we don't get nasty screen
19146         artefacts upon next reparentation.
19147         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
19148         enter notify. only synthesize enter notifies if the pointer really is
19149         inside the event window.
19150         (gtk_menu_popdown): use gtk_menu_shell_deselect().
19151         (gtk_menu_popup): move the background setting stuff into
19152         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
19153
19154         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
19155         gtk_menu_shell_select_item() to select the new item.
19156         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
19157         do the right thing for deselection as well.
19158
19159 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
19160
19161         * gtk/gtkwidget.[hc]:
19162         (gtk_widget_accelerators_locked): return whether a widget's accelerators
19163         are locked.
19164
19165         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
19166         existing accelerators if the widget's accelerators are locked.
19167
19168 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
19169
19170         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
19171
19172         * gtk/gtkmenu.c: truely forward key press and key release events to
19173         the menu widget from the toplevel or tearoff window. we can't simply
19174         connect to that, we need to stop further processing of the events as
19175         well.
19176
19177 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
19178
19179         * gtk/gtkmenu.c:
19180         (gtk_menu_key_press): pass event->keyval, event->state to
19181         gtk_accelerator_valid, instead of event->keyval twice.
19182         refuse to install single letter accelerators for menus that use
19183         single letter shortcuts.
19184
19185         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
19186         gtk_menu_ensure_uline_accel_group().
19187
19188         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
19189         which will always return an uline accel group, made
19190         gtk_menu_get_uline_accel_group() return NULL if the group isn't
19191         yet created.
19192
19193 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
19194
19195         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
19196
19197         * gtk/gtkclist.c (gtk_clist_column_title_passive):
19198         Leave button sensitive, trap  button_press, button_release,
19199         motion_notify, enter_notify and leave_notify events instead.
19200         (gtk_clist_column_title_active): disconnect event handler.
19201         (gtk_clist_drag_data_get): fixed memory leak. Reported by
19202         Guillaume Laurent <glaurent@worldnet.fr>
19203
19204 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
19205
19206         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
19207         width/height mixups.
19208
19209         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
19210         if needed.
19211
19212 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
19213
19214         * gtk/testgtk.c (create_item_factory): unref the item factory after
19215         window's destruction.
19216
19217         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
19218         count on the menu shell around the menu item's activation, since the
19219         signal emission may cause menu shell destruction.
19220
19221         * gtk/gtkitemfactory.c:
19222         the previous code leaked one accel group per menu. we use
19223         gtk_menu_get_uline_accel_group() now to fix that, and with that
19224         also create the underline accelerator group of the menus only if
19225         required (i.e. an underline accelerator has been specified).
19226         (gtk_item_factory_construct):
19227         (gtk_item_factory_create_item): removed code that would create an
19228         extra accel group for the menu (and leak references).
19229         (gtk_item_factory_create_item): adapted the underline accelerator
19230         installation code to properly feature gtk_menu_get_uline_accel_group().
19231
19232         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
19233         menu->accel_group, this may return NULL if the accelerator group
19234         hasn't been set yet.
19235         added gtk_menu_get_uline_accel_group() to retrive the underline
19236         accelerator group of the menu, this will be created on demand
19237         and proper care is taken about its reference count.
19238
19239         * gtk/gtkitemfactory.h:
19240         * gtk/gtkitemfactory.c:
19241         dumped the approach of keeping a widgets by action list on the
19242         factory since the factory<->widget destroy negotiation didn't work
19243         and would be hard to get going at all. instead we keep a list of
19244         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
19245         persistant throughout a program's life time).
19246         also, i removed the static const gchar *key_* variables, and made
19247         them inline strings (they weren't actually used anyways).
19248         (gtk_item_factory_add_item): update ifactory->items.
19249         (gtk_item_factory_destroy): destroy ifactory->items (and remove
19250         the item factory pointer from the remaining ifactory widgets).
19251         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
19252         list to find the widget.
19253         (gtk_item_factory_get_item): new function that works around
19254         gtk_item_factory_get_widget() limitations, this function will only
19255         return menu items, even for <Branch> entries.
19256
19257 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19258
19259         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19260         font hash table, if we have a GdkFontPrivate entry for this font
19261         already, simply increment its reference count, provided by Olaf Dietsche
19262         <olaf.dietsche+list.gtk@netcologne.de>.
19263
19264         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
19265         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
19266
19267 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
19268
19269         * gtk/gtkcontainer.c:
19270         (gtk_container_add_with_args):
19271         (gtk_container_addv):
19272         (gtk_container_add): before adding a child to a conatiner, make sure
19273         it is (default) constructed, this is neccessary because under certain
19274         circumstances the child will get relized and mapped immediatedly, in
19275         which case it has to be constructed already.
19276
19277 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
19278
19279         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
19280         values > 1 as TRUE also.
19281
19282 1999-03-16  Tor Lillqvist  <tml@iki.fi>
19283
19284         * README.win32: New file.
19285                 
19286         * configure.in: Check for lstat.
19287
19288         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
19289         completeness.
19290
19291         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
19292
19293         * gtk/gtk.def: Removed CRs.
19294
19295         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
19296         ..\gdk\win32).
19297
19298         * gdk/win32/makefile.msc: Correct upwards relative paths.
19299         
19300 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
19301
19302         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
19303           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
19304           it was connecting a void function to expose_event and the int
19305           returning function to the draw signal
19306
19307 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
19308
19309         * configure.in:
19310         Use correct path to libgmodule.la when ref'ing uninstalled copy
19311         of glib.  (Already in stable branch, Bug #417)
19312
19313 1999-03-15  Tor Lillqvist  <tml@iki.fi>
19314
19315         Win32 merge and general portability stuff:
19316                 
19317         * acconfig.h,configure.in: Check for <sys/time.h>.
19318
19319         * gdk/win32: New directory (actually, been there for a while).
19320         
19321         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
19322         NATIVE_WIN32, and use these. Always case fold on Win32. No
19323         backslashed escapes on native Win32.
19324
19325         * gtk/{gtk.def,makefile.msc}: New files.
19326
19327         * gtk/Makefile.am: Add above new files.
19328         
19329         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
19330         instead of <strings.h>.
19331
19332         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
19333         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
19334         <unistd.h> appropriately.
19335
19336         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
19337         Use ABS() (from <glib.h>) instead of abs().
19338         
19339         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
19340         of gtk (and thus glib) headers, so that WIN32 will be
19341         defined. With MS C, include <direct.h> for mkdir prototype.
19342
19343         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
19344         some casts, needed by MS C.
19345
19346         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
19347         implemented).
19348
19349         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
19350         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
19351         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
19352
19353         * gtk/gtkmain.h: Mark variables for export/import on Win32.
19354                 
19355         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
19356         the event is not a hint, or its window is not the slider. Needed
19357         on Win32, at least.
19358
19359         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
19360         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
19361         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
19362         a subdirectory of the Windows directory as gtk system
19363         configuration directory.
19364
19365         * gtk/gtkselection.c: No chunks on Win32.
19366
19367         * gtk/gtksocket.c: Not implemented on Win32.
19368
19369         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
19370
19371         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
19372
19373         * gtk/maketypes.awk: Declare variables with a macro that expands to
19374         necessary export/import magic in the case of Win32.
19375                 
19376         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
19377
19378 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
19379
19380         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
19381         since those were meant only for gdki18n.h.  
19382         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
19383         for widechar tests.
19384         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
19385
19386 1999-03-13  Tor Lillqvist  <tml@iki.fi>
19387
19388         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
19389         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
19390
19391         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
19392         installed) to CFLAGS.
19393
19394         * gdk/Makefile.am: Add rules for gdkconfig.h.
19395
19396         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
19397         APIs.
19398
19399         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
19400         gdkx.h anyway when compiling for X11.
19401         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
19402         general): Merge in Win32 version.
19403         
19404         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
19405         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
19406         expansion (if we don't have HAVE_PWD_H), allow for drive
19407         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
19408         included code from Craig Setera's port to Win32 (the one that uses
19409         X11, and the cygwin dll), even if it probably will be abandoned.
19410
19411         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
19412         the user entered one herself.  This way one can complete *.h and
19413         don't get matches on any .help files, for instance.
19414         
19415 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19416
19417         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19418         font hash table, if we have a GdkFontPrivate entry for this font
19419         already, simply increment its reference count, provided by Olaf Dietsche
19420         <olaf.dietsche+list.gtk@netcologne.de>.
19421
19422         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
19423         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
19424
19425 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
19426
19427         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
19428         the number of calls to gdk_draw_point() (and thus to X) by
19429         clipping the points by hand.
19430
19431         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
19432         the clip parameter.
19433         (gtk_handle_box_paint): Only paint the handle if the expose area
19434         intersects it.
19435
19436 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
19437
19438         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
19439
19440 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
19441
19442         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
19443         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
19444
19445 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
19446
19447         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
19448          textmode (O_TEXT) for OS/2 version.
19449
19450 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
19451
19452         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
19453         GtkSpinButton, "input" and "output", to make the output more flexible.
19454         The user has to provide a mapping between adjustment->value and the
19455         output string (and vice versa, if the spin button is editable). 
19456         See testgtk for examples.
19457
19458 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
19459
19460         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
19461         new one.
19462         
19463         * configure.in: set gtk+ version to 1.3.0.