]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
fix default value for ::digits property, leave as 1 as per havoc's
[~andy/gtk] / ChangeLog.pre-2-4
1 Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>
2
3         * gtk/gtkscale.[hc]: fix default value for ::digits property,
4         leave as 1 as per havoc's request.
5         don't apply the draw_digits value to range->round_digits,
6         so we don't perform gross quantization by default.
7
8 2002-01-25  Havoc Pennington  <hp@redhat.com>
9
10         * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
11         failure by creating the line data, but not validating it at this
12         stage. Also, remove old code related to the "bogus newline" mess
13         that removed all tags from the last char in the buffer if you
14         tried to delete it.
15         (_gtk_text_line_data_new): put this here and prepend underscore,
16         remove from gtktextlayout.c
17
18 Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>
19
20         * modules/input/imhangul.c modules/input/imhangul-defs.h
21         po/POTFILES.in. Add port of Emacs korean-hangul input
22         method from Yusuke Tabata (#67665)
23
24 Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>
25
26         * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
27         before focus to give theme engines a bit morea
28         flexibility. (#69857)
29
30 Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>
31
32         * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
33         g_assert.
34
35 2002-01-28  Jon Trowbridge  <trow@gnu.org>
36
37         * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
38         GtkTreeView's model, set prelight_node, prelight_tree,
39         button_pressed_node and button_pressed_tree to NULL. (#69603)
40
41 2002-01-28 Bill Haneman <bill.haneman@sun.com>
42
43         * gtk/gtkstyle.c:
44         Make sure that the default expanders are drawn with
45         an outline thickness appropriate to the size of the
46         expanders (RINT expander_size/7).
47         Added static gtk_style_draw_polygon_with_gc(), to
48         reduce code duplication.
49
50         * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
51         Use focus_line_thickness when drawing focus lines.
52
53         * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
54         Adjust requested width to include focus line thickness.
55         (gtk_tree_view_column_cell_render_or_focus):
56         Calculate a focus line rectangle which gets larger as the focus
57         line thickness increases, to avoid overwriting cell content.
58         Render left-aligned content at x+focus_line_width.
59         (gtk_tree_view_column_cell_draw_focus):
60         Don't draw a focus line around an editable text cell, since the
61         text caret already indicates keyboard focus.
62         Pass a GtkStateType appropriate to the focussed cell's state
63         to gtk_paint_focus.
64
65 Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>
66
67         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
68         activate/edit the row if shift is not pressed, #69248
69
70 2002-01-28  Anders Carlsson  <andersca@gnu.org>
71
72         * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
73
74 2002-01-28  Matthias Clasen  <matthiasc@poet.de>
75
76         * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
77         gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
78         gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
79         gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
80         gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
81         gtkviewport.c,gtkwidget.c}: General property notification 
82         cleanup. (#69066)
83
84 2002-01-28  Anders Carlsson  <andersca@gnu.org>
85
86         * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
87         default mod mask so accels work when numlock is on.
88
89 Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
90
91         * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
92         commit already needed this ...)
93
94 Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
95
96         Fix for bug #69586
97
98         * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
99         expander_size
100
101         * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
102         expander_size caching (from style), fix CELL_HEIGHT macro,
103         use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
104         row height calculation, added style_set callback
105
106 2002-01-27  Anders Carlsson  <andersca@gnu.org>
107
108         * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
109         GDK_XTERM.
110
111         * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
112
113         * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
114
115         * gtk/gtktextview.c (set_invisible_cursor): New function.
116         (gtk_text_view_obscure_mouse_cursor): Likewise.
117         (gtk_text_view_key_press_event): Call obscure_cursor if text 
118         has been inserted.
119         (gtk_text_view_motion_event): Restore the mouse cursor.
120
121         * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
122         (set_invisible_cursor): New function.
123         (gtk_entry_obscure_mouse_cursor): Likewise.
124         (gtk_entry_key_press): call obscure_cursor if text has been inserted.
125         (gtk_entry_motion_notify): Restore the mouse cursor.
126
127 2002-01-27  Sven Neumann  <sven@gimp.org>
128
129         * gtk/gtkstyle.c (sanitize_size): removed unused return value.
130
131 Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>
132
133         * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
134         send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
135
136 Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>
137
138         * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
139         in the grab_widget == NULL case. (Bug reported by 
140         Padraig O'Briain, #69735)
141
142         * gtk/gtkplug.c (handle_modality_on): Realize the modality
143         window so gtk_widget_event() doesn't complain :-((((.
144
145 2002-01-25  Federico Mena Quintero  <federico@ximian.com>
146
147         Merge from gdk-pixbuf stable.
148
149         * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
150         conversion --- swap the individual 16 bit values instead of taking
151         everying as a 32 bit value.
152         (rgb565lsb): Likewise.
153         (rgb555lsb): Likewise.
154         (rgb555msb): Likewise.
155
156 2002-01-25  Alex Larsson  <alexl@redhat.com>
157
158         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
159         Implement copy_to_image instead of get_image
160         
161         * gdk/linux-fb/gdkimage-fb.c:
162         Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
163         _gdk_fb_copy_to_image.
164         Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
165
166         * gdk/linux-fb/gdkmain-fb.c:
167         Make ENABLE_FB_MANAGER region larger.
168
169         * gdk/linux-fb/gdkprivate-fb.h:
170         Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
171
172 2002-01-25  Sven Neumann  <sven@gimp.org>
173
174         * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
175         that gtk-doc doesn't get confused.
176
177 Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>
178
179         * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
180         that the passed in arrow is always _UP or _DOWN, this catches
181         false invocations which lead to drawing artefacts.
182         (start_spinning): likewise, i.e. sanity check the passed in arrow.
183         (gtk_spin_button_button_release): fix arrow redrawing.
184         (gtk_spin_button_button_press): must set click_child for
185         button3 even if we don't take spinning action right away.
186
187         * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
188         valid values for click_child.
189
190 Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>
191
192         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
193         return current FALSE if x is smaller than the current visible area,
194         not than the requested area, don't correct y coordinate,
195         TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
196
197 Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>
198
199         * gtk/gtktreeview.c
200          (gtk_tree_view_motion_draw_column_motion_arrow): fix column
201          reordering fully.
202          (gtk_tree_view_size_allocate): fix evil bug.
203
204 Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>
205
206         * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
207         the model until we clean up all the other objects
208         that might refer to the object.
209
210 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
211
212         * gtk/gtkaccessible.h: include gtk/gtkwidget.h
213
214 Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>
215
216         * gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
217         Use insensitive state for insensitive arrows, not
218         just an "etched state". (#67172, Adrian Custer)
219
220 2002-01-23  Manish Singh  <yosh@gimp.org>
221
222         * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
223         been declared.
224
225 2002-01-23  Damon Chaplin  <damon@ximian.com>
226
227         * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
228         0.9, since we need to use the new --type-init-func argument for
229         gtkdoc-scangobj.
230
231 2002-01-23  Matthias Clasen  <matthiasc@poet.de>
232
233         * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
234         g_return_if_fail() calls. (#57615)
235
236         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
237         it work for paths with underline accelerators. (#69247)
238
239 Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>
240
241         * gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
242         Stop spinning if widget becomes insensitive. (#56248)
243
244 Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>
245
246         * gtk/gtkspinbutton.c (EPSILON): Decreate value since
247         we now use doubles.
248
249 Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>
250
251         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
252         I introduced accidentally, #69358
253
254 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
255
256         * gtk/gtktreestore.c (gtk_tree_store_iter_children):
257         Update last change to prevent core dump
258
259 Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
260
261         * gtk/gtktreestore.c: add some more stamp checks (pointed out
262         by Anders Carlsson)
263
264         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
265         assume _row_changed will insert sort (because _row_changed doesn't
266         need to follow this signal), so apply insert sort here
267         (gtk_tree_model_sort_level_find_insert): header doesn't need to be
268         set here, so use a return instead of g_return_val_if_fail.
269
270 Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>
271
272         * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
273         top_row.  Remove extraneous print statements.
274
275 2002-01-21  Matthias Clasen  <matthiasc@poet.de>
276
277         * gtk/gtkitemfactory.c (gtk_item_factory_popup, 
278         gtk_item_factory_popup_with_data): Document allowed values
279         for ifactory.
280
281         * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
282         it work for paths with underline accelerators.
283
284 Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>
285
286         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
287         window.
288
289 Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
290
291         * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
292         case where there is no default widget and the entry
293         is the focus widget, since this also causes infinite
294         recursion. (#69158)
295
296 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
297
298         * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
299         rather than lazilygdk_get_program_class(), since we don't want
300         -name to override it. (#69123, Ryan Lovett)
301
302 Mon Jan 21 10:29:45 2002  Owen Taylor  <otaylor@redhat.com>
303
304         * gdk/gdk.c: Fix wrong types for command line arguments 
305         (#69124, Ryan Lovett)
306
307         * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
308         parsing '--arg VALUE'.
309
310         * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
311
312 2002-01-21  Havoc Pennington  <hp@pobox.com>
313
314         * gdk/gdkwindow.c (gdk_window_add_filter): mention that window 
315         arg can be NULL
316
317 Sat Jan 19 20:49:41 2002  Kristian Rietveld  <kris@gtk.org>
318
319         * demos/gtk-demo/editable_cells.c: fix a load of open line ends
320         (cell_edited): modified patch from German Poo Caaman~o
321         to fix up old_text declaration and free the memory
322         (do_editable_cells): unref the model after creating the treeview
323
324         * demos/gtk-demo/list_store.c: fix a load of open line ends,
325         (add_columns): set the sort column id, so we can sort
326
327         * demos/gtk-demo/tree_store.c: fix a load of open line ends,
328         (do_tree_store): unref the model after creating the treeview
329
330 2002-01-19  Havoc Pennington  <hp@pobox.com>
331
332         * gtk/gtkwindow.c: link to new X11 section in a lot of places when
333         mentioning the window manager.
334
335         * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
336         window manager since we're portable.
337
338 Sat Jan 19 08:47:41 2002  Jeff Garzik  <jgarzik@mandrakesoft.com>
339
340         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
341         Wrap case values in GPOINTER_TO_UINT().  Fixes build with gcc 3.x.
342
343         * gtk/gtkmain.c:  Include sys/types.h if G_OS_UNIX.
344         Fixes build with gcc 3.x and -ansi.
345
346 Fri Jan 18 23:01:37 2002  Owen Taylor  <otaylor@redhat.com>
347
348         * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
349         an engine declaration occurs in a reopened style, and
350         g_free() of objects when errors occur.
351
352 2002-01-18  Matthias Clasen  <matthiasc@poet.de>
353
354         * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
355         Clarify documentation. (#69026)
356
357         * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix 
358         missing initialization of adjustment. (#69025)
359
360 2002-01-17  Raja R Harinath  <harinath@cs.umn.edu>
361
362         Simplify Makefiles. 
363         <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
364         * gdk/Makefile.am: Remove use of automake conditionals to pick
365         library to build.
366         * gtk/Makefile.am: Likewise.
367         
368         * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
369         * gtk/Makefile.am (LDFLAGS): Likewise.
370
371 Thu Jan 17 20:13:14 2002  Owen Taylor  <otaylor@redhat.com>
372
373         * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
374         missing allocation.x/y offsets. (#68962, Jacob
375         Berkman)
376
377         * gtk/gtknotebook.c (gtk_notebook_size_allocate):
378         Queue a redraw on the entire widget if we hide
379         the last page or show the first. (Also #68962)
380         
381 2002-01-17  Havoc Pennington  <hp@redhat.com>
382
383         * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
384         GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
385         starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
386         as in the keynav spec, though it makes the interpretation of
387         GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
388         of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
389         any sense anyhow.
390
391 Thu Jan 17 16:34:55 2002  Jonathan Blandford  <jrb@redhat.com>
392
393         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
394         some reason, I was activating a row while just selecting it.
395         Reported by andersca.
396         (gtk_tree_view_size_request): add a
397         validate_rows_handler to give us a rough width of the widget.
398
399         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
400         Queue a resize here just in case.  It's needed in over half the
401         cases, and I don't want to do a diff to figure out exactly when
402         it's needed.
403
404 2002-01-17  Matthias Clasen  <matthiasc@poet.de>
405
406         * gtk/gtkinputdialog.c,
407         gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
408         Mark children as composite. (#66360)
409
410         * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
411         composite children some more. (#66360)
412
413 2002-01-17  Havoc Pennington  <hp@redhat.com>
414
415         * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
416         function (which I then decided not to use but I think it's needed
417         to fix #68963
418
419         * gtk/gtktextview.c: add page_horizontally action signal and
420         implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig, 
421         hackily modified to avoid adding GTK_MOVEMENT_ API. Part of 
422         #53934
423
424         * gtk/gtkmarshalers.list: add NONE:INT,BOOL
425
426 Thu Jan 17 17:02:38 2002  Owen Taylor  <otaylor@redhat.com>
427
428         * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
429         gtk_selection_remove_all() here, not in destroy/
430         finalize. (#66636, Sergey Vlasov)
431
432         * gtk/gtkselection.c (gtk_selection_request): Fix
433         reentrancy problem with multiple conversions.
434
435         * gtk/gtkselection.c (gtk_selection_remove_all): 
436         Don't remove incrs, we don't need the widget for
437         maintain the incr.
438
439         * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
440         the widget field from here, we don't need it.
441
442 Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>
443
444         * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
445         here, and save/restore the X error handler to allow
446         people using GTK+ to set the X error handler to something
447         custom without disturbing the operation of GDK.
448
449         * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push) 
450         * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
451         dummy implementations.
452
453         * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c 
454         gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
455         for all error trapping.
456
457         * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
458
459         * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
460         problem where we would add the results anyways,
461         and then add it again if no error occurred, and problem
462         where we could leave _gdk_error_warnings() unset.
463
464 Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>
465
466         * gtk/gtkfilesel.c: Fix "deleting" filename by adding
467         another boolean parameter to file_selection_populate() -
468         whether to clear the entry. Also, never fill in the
469         entry when the user clicks on something in the 
470         directory list. (#6791, Reported by Jos Dehaes and many,
471         many, many others.)
472
473 2002-01-16  Havoc Pennington  <hp@redhat.com>
474
475         * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
476         cursor_y_pos with clamped delta rather than theoretical delta
477         (#68788). Also, if we can't page up/down further then jump 
478         to top/bottom of the document.
479
480 Wed Jan 16 19:33:41 2002  Owen Taylor  <otaylor@redhat.com>
481
482         * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
483         the dialog on map. (#52877, inspired by request from
484         Murray Cumming)
485
486 Wed Jan 16 19:23:04 2002  Owen Taylor  <otaylor@redhat.com>
487
488         * gtk/gtkbindings.c (gtk_binding_entry_activate): 
489         Support "optional" bindings. If a binding signal
490         has a boolean return value, and returns FALSE it
491         is as if it didn't exist all.
492
493         * gtk/gtkbindings.c (binding_compose_params): Switch
494         over to GValue.
495
496         * gtk/gtknotebook.[ch]: Make the select_page() and
497         change_current_page() signals only take effect when
498         the focus is on the tab area so that key presses
499         in children pass up to the toplevel correctly.
500
501 Wed Jan 16 12:16:37 2002  Owen Taylor  <otaylor@redhat.com>
502
503         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix 
504         calculation error in the (shouldn't happen) case where
505         option_menu->height < child_requisition.height. (Patch
506         from Jacob Berkman, #66969)
507
508 2002-01-15  Matthias Clasen  <matthiasc@poet.de>
509
510         * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
511
512         * gtk/gtkscale.h (gtk_scale_value_width): Remove useless 
513         compatibility macro. (#67730) 
514
515 Wed Jan 16 10:54:38 2002  Owen Taylor  <otaylor@redhat.com>
516
517         * configure.in: Fix typo in --help output.
518         (Arnaud Charlet).
519
520 Wed Jan 16 10:18:42 2002  Owen Taylor  <otaylor@redhat.com>
521
522         * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add 
523         gtkstockpixbufs.h.
524
525         * configure.in: Make TIFF, JPEG, PNG loaders mandatory
526         unless you configure with --without-libtiff, etc.
527         (#54045, Brian Cameron)
528
529 2002-01-16  Padraig O'Briain <padraig.obriain@sun.com>
530
531         * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
532         Avoid unexpected warning message when navigating menu (#68517)
533
534 2002-01-15  Jody Goldberg <jody@gnome.org>
535
536         * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
537         GtkLayout may have been scrolled _before_ it was realized.
538
539 Tue Jan 15 18:10:24 2002  Owen Taylor  <otaylor@redhat.com>
540
541         * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
542         the timer on destroy, or when we are notified that we are
543         shadowed by a modal dialog.
544
545         * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
546         not needed any more.
547
548         * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
549         weren't sent out for the default grab group.
550
551         * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
552         were getting events because they were part of the previous grab.
553
554 Tue Jan 15 12:23:33 2002  Owen Taylor  <otaylor@redhat.com>
555
556         * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page): 
557         focus the activated tab, not the page. (#53612)
558
559         * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
560         the last focus descendant of the page.
561
562         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
563         was on the previous page, move it to the last focused widget /
564         first element on the new page, if possible, or if not, to the 
565         notebook itself. (#68224, reported by Jonathan Blandford)
566
567         * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
568         tabs aren't visible. (#65462, Damon Chaplin, fixed based 
569         on patch from Anders Carlsson)
570
571 2002-01-15            Vitaly Tishkov       <tvv@sparc.spb.su>
572
573         * gtk/gtkstyle.c
574         a misprint in documentation for gtk_style_render_icon () is fixed
575
576 Mon Jan 14 23:21:47 2002  Tim Janik  <timj@gtk.org>
577
578         * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
579         mapping child, so we don't loose events.
580
581 2002-01-15  Sven Neumann  <sven@gimp.org>
582
583         * gtk/gtkaccellabel.h
584         * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
585         names used in headers and code.
586
587 2002-01-14  jacob berkman  <jacob@ximian.com>
588
589         * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
590
591 Tue Jan 15 01:13:51 2002  Kristian Rietveld  <kris@gtk.org>
592
593         * gtk/gtktreemodelsort.c: fix a load of open line ends,
594         (gtk_tree_model_sort_set_model): only free root level if it's
595         !NULL
596
597 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
598
599         * gtk/gtkoldeditable.c, gtk/gtkrc.c, 
600         gtk/gtkstyle.c: Documentation additions.
601
602         * gtk/gtkmenu.c (gtk_menu_set_accel_path),
603         gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path), 
604         gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
605
606         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
607
608         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
609
610 Mon Jan 14 17:14:13 2002  Owen Taylor  <otaylor@redhat.com>
611
612         * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
613         mangle sequences of consecutive \n or \r.
614
615 Mon Jan 14 17:42:28 2002  Jonathan Blandford  <jrb@redhat.com>
616
617         * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
618         happen.
619
620         * gtk/gtktreeview.c (install_presize_handler): only install the
621         handler if we're realized, #68056
622
623 Mon Jan 14 16:35:58 2002  Owen Taylor  <otaylor@redhat.com>
624
625         * gtk/gtkwindow.c (gtk_window_move_resize): Unset 
626         initial_pos_set after the first configure request.
627
628 2002-01-13  Jody Goldberg <jody@gnome.org>
629
630         * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
631           and will use a mem_chunk to do it.  Avoid an unnecessary copy, a
632           leak, and confusion.
633
634 Sun Jan 13 23:23:22 2002  Owen Taylor  <otaylor@redhat.com>
635
636         * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
637         widget->requisition was being used instead of
638         gtk_widget_get_child_requisition (), causing geometry widgets
639         with usizes to misbehave.
640
641 2002-01-14  Sven Neumann  <sven@gimp.org>
642
643         * gtk/gtkrc.c: g_getenv() returns a const string.
644
645 2002-01-14  Hasbullah Bin Pit  <sebol@ikhlas.com>
646
647         * configure.in: Added ms at ALL_LINGUAS.
648         * po/ms.po: Added Malay Translation.
649
650 2002-01-14  Matthias Clasen  <matthiasc@poet.de>
651
652         * gtk/gtkitemfactory.c: Documentation.
653
654 2002-01-13  Sven Neumann  <sven@gimp.org>
655
656         * gdk/gdkwindow.c: documentation cleanups.
657
658 Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
659
660         * gtk/gtktreemodelsort.c: various cleanups,
661         (get_child_iter_from_elt): removed,
662         (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
663         and especially faster,
664         (gtk_tree_model_convert_iter_to_child_iter): use
665         gtk_tree_model_sort_elt_get_path
666
667 Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
668
669         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
670         revert Owen's change (using a strdupped string as object data), so
671         the interactive search works again
672
673 2002-01-11  Havoc Pennington  <hp@pobox.com>
674
675         * gtk/gtklabel.c: put in more links to Pango markup format docs
676         (gtk_label_set_justify): mention gtk_misc_set_alignment
677
678 2002-01-12  Tor Lillqvist  <tml@iki.fi>
679
680         Fixes contributed by Archaeopteryx Software: This is a first small
681         part of their changes. Will commit more later.
682         
683         * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
684         call fails, don't use bogus values.
685
686          gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
687         memory leak: g_free() the AND and XOR bitmaps after use.
688         (_gdk_cursor_destroy): If we are destroying the current Windows
689         cursor, set the Windows cursor to none first.
690
691         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
692         brush that was in the DC, like the win32-procution branch does. I
693         guess this plugs a resource leak? With the HDC cache, the old
694         brush might be something we created ourselves, and not a stock
695         brush. And it doesn't do any harm to call DeleteObject on stock
696         brushes.
697
698         * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
699         the window has a cursor which is the current Windows cursor,
700         before destroying it set the current Windows cursor to none.
701         (gdk_window_set_cursor): Also here, if destroying the current
702         Windows cursor, set the current Windows cursor to none first.
703         (gdk_window_get_pointer): Revamp logic.
704         
705 2002-01-10  jacob berkman  <jacob@ximian.com>
706
707         * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
708         through the list rather than infinitely loop
709
710 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
711
712         * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
713         reset_rc_styles_recurse(). (#68084)
714
715 2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
716         * gtk/gtkimage.c
717         * gtk/gtkimcontext.c
718         * gtk/gtktreemodel.c
719         * gtk/gtktreemodelsort.c
720         * gtk/gtkwindow.c
721         fix docs        
722
723 Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
724
725         * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
726         symbols because we need them in MyEnhancedXkbTranslateKeyCode.
727
728 2002-01-10  Tor Lillqvist  <tml@iki.fi>
729
730         Apply the same fixes and improvements as to the
731         gtk-1-3-win32-production branch: Bug fixes and cleanup of
732         selection and DND functionality. Still doesn't work as well as the
733         win32-production branch, though, but getting closer.
734
735         After this, need to add Archaeopteryx Software's OLE2 DND support.
736
737         * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
738         gdk_selection_send_notify, generate_selection_notify): Don't use
739         SendMessage() to generate events for the same app, instead use
740         gdk_event_put().
741
742         * gdk/win32/gdkprivate-win32.h
743         * gdk/win32/gdkglobals-win32.c
744         * gdk/win32/gdkmain-win32.c
745         * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
746         initialisation and handling of gdk_selection_notify_msg,
747         gdk_selection_request_msg and gdk_selection_clear_msg. 
748
749         * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
750         gdk_free_text_list, gdk_string_to_compound_text,
751         gdk_free_compound_text): Implement trivially, witrh a text_list
752         always having a single element, and a compound text always
753         consisting of just a single (UTF-8!) string. Let's see how well
754         this works.
755
756         * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
757         non-ASCII paste from the clipboard: Try getting the same formats
758         from the Windows clipboard that gdk_property_change() puts there:
759         CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
760
761         * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
762         storing text on the clipboard, handle non-ASCII text
763         correctly. The logic is as follows:
764
765         If we have only ASCII characters, use CF_TEXT.
766
767         Else, if we are on NT, use CF_UNICODETEXT.
768
769         Else (we are on Win9x), if all the characters are present in the
770         code page of some installed locale, use CF_TEXT and also set
771         CF_LOCALE to that locale.
772
773         Else (still on Win9x) store as RTF. We use a very simple RTF
774         string, just the text, no fonts or other crap, with the non-ASCII
775         characters as Unicode \uN keywords. Additionally, also store the
776         UTF-8 string as such, under the format "UTF8_STRING", so that GDK
777         can also paste from the Clipboard what it has copied there. (Thus
778         no need to implement any RTF parser.)
779         
780         (find_common_locale): New function, implements the search for a
781         locale for case 3 above.
782
783         * gdk/win32/gdkglobals-win32.c: New global variables
784         compound_text, text_uri_list, utf8_string, cf_rtf and
785         cf_utf8_string.
786
787         * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
788         converts from a wchar_t string to UTF-8.
789         (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
790         (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
791
792         * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
793         _gdk_ucs2_to_utf8().
794
795         * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
796
797         * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
798         gdk_drag_context_ref() was called unnecessarily in a couple of
799         places, meaning drag contexts were never freed. The same memory
800         leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
801
802         (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
803         stored file list.
804
805         * gdk/win32/gdkselection-win32.c: Clarify the use of the
806         sel_prop_table. Now it is used only for storing the GDK_SELECTION
807         "properties".
808
809         The file names dropped with WM_DROPFILES -style DND is stored
810         temporarily (between the drop and the target picking them up) in a
811         separate place.
812
813         Have a separate hash table to map selection atoms to owner
814         windows. This used to be quite mixed up.
815
816         (_gdk_dropfiles_store): New function, to store the dropped file
817         list for the drop target to possibly fetch, and clear it
818         afterwards, from gdk_drop_reply().
819
820         (gdk_selection_owner_get): Much simplified now.
821
822 2002-01-09  jacob berkman  <jacob@ximian.com>
823
824         * gtk/gtklayout.c (gtk_layout_style_set): set the background of
825         our bin window also (fixes #58957)
826
827 Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
828
829         * gtk/gtktreeselection.c
830         (_gtk_tree_selection_internal_select_node): Now we test we can
831         unselect nodes before selecting new ones.
832         (gtk_tree_selection_real_select_node): be careful comparing booleans.
833
834 Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
835
836         * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
837         gtk_tree_model_rows_reordered and not an iter with user_data
838         set to NULL (which is an invalid liststore iter, so
839         iter_n_children failed, etc)
840
841 2002-01-09  Sven Neumann  <sven@gimp.org>
842
843         * tests/prop-editor.c: declared internal functions static.
844         
845 Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
846
847         * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path): 
848         Fix problem with menus without accel groups, such as the
849         menus for option menus.
850
851         * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
852         drawing of handle on whether both children are visible,
853         not the drawing of the other child!. (#68325, Diego Gonzalez)
854
855 Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
856
857         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
858         RENDER before trying to use it... XRenderFindFormat() prints
859         warnings if called when extension isn't present.
860
861 Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
862
863         * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
864         path upon parent changes.
865
866 Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
867
868         * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
869         fix to force vadjustments at size_alocate time from Xavier Ordoquy
870         <mcarkan@users.sourceforge.net>.
871
872 Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
873
874         * gtk/gtklayout.c (gtk_layout_get_property): 
875         * gtk/gtkspinbutton.c (gtk_spin_button_get_property): 
876         * gtk/gtktreeview.c (gtk_tree_view_get_property): 
877         * gtk/gtkwidget.c (gtk_widget_get_property): 
878         * gtk/gtkfontsel.c (gtk_font_selection_get_property): 
879         * gtk/gtkrange.c (gtk_range_get_property):
880         * gtk/gtkviewport.c (gtk_viewport_get_property):
881         * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
882         possible NULL pointer.
883
884 2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
885
886         * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
887         * gtk/gtktreednd.h : ditto.
888         * gtk/gtktreemodel.h : ditto.
889         * gtk/gtktreesortable.h : ditto.
890         * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
891
892 2002-01-08  Matthias Clasen  <matthiasc@poet.de>
893
894         * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather 
895         than XIDs in the docs.
896
897         * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
898
899 Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
900
901         * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
902         Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
903
904 Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
905
906         * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
907         Handle TOGGLE/RADIOBUTTON as well. (#68201,
908         Damon Chaplin.)
909
910         * gtk/gtktoolbar.c (get_first_child): Fix stupid 
911         bug, just introduced.
912
913 Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
914
915         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
916         translations, once and for all.
917
918         * gtk/gtktextbuffer.c (paste_from_buffer): Free
919         the ClipboardRequest structure. (#66198, HideToshi
920         Tajima)
921
922 2002-01-08  jacob berkman  <jacob@ximian.com>
923
924         * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
925         the child rather than the layout. see bug #68263
926
927 Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
928
929         * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
930         the handle if we aren't showing both children.
931         (#68135, Diego Gonzalez)
932
933 Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
934
935         * gtk/gtkwidget.c (gtk_widget_add_events): Fix
936         leak of result of gtk_container_get_children().
937
938 Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
939
940         * gtk/gtktoolbar.c: Fix leaks of results of
941         gtk_container_get_children(). (#68199, Damon Chaplin)
942
943 Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
944
945         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): 
946         Fix problem where child->requisition was accessed
947         directly instead of calling get_child_requisition()
948         (#68199, Damon Chaplin)
949
950 2001-01-08  James Henstridge  <james@daa.com.au>
951
952         * gtk/gtkstyle.c: add trailing */ on doc comment.
953
954 Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
955
956         * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
957         problem where were the offset into the image was passed
958         into convert_to_format() wrong.
959
960         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
961         gdk_x11_drawable_update_picture_clip () before using
962         the picture; allow update_picture_clip() to take a NULL gc
963         to mean no clipping.
964
965 2002-01-07  Matthias Clasen  <matthiasc@poet.de>
966
967         * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
968
969         * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
970
971         * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
972
973         * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
974
975         * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
976         gtk/gtkwidget.c (gtk_widget_get_toplevel, 
977         gtk_widget_push_composite_child), gtk/gtkdialog.c 
978         (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
979         from messing up the indentation of inline examples.     
980
981         * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() 
982         instead of getenv().
983
984         * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
985         gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
986         gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
987
988         * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
989         gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
990         Document.
991
992 2002-01-07  Anders Carlsson  <andersca@gnu.org>
993
994         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
995         unused pixels and rowstride variables.
996         (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
997
998 Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
999
1000         * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
1001         the pointer by x/y_offset into the new window when we found
1002         the drag destination.
1003
1004         * gtk/gtkaccelmap.c (internal_change_entry): fix return code
1005         for simulation when the entry already contains the required
1006         accel key and mod.
1007
1008 2002-01-06  Matthias Clasen  <matthiasc@poet.de>
1009  
1010         * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by 
1011         G_DISABLE_CAST_CHECKS.
1012
1013         * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
1014         gtk_accel_group_query, gtk_accel_group_find,
1015         gtk_accel_groups_from_object): Document.
1016
1017         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
1018
1019 2002-01-04  Hans Breuer  <hans@breuer.org>
1020
1021         * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c : 
1022         need to cast image->mem away from void* to avoid 
1023         'error C2036: 'void *' : unknown size'. Doing pointer 
1024         arithmetics on void pointers is a GCCism afaik.
1025
1026         * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
1027         _gdk_draw_pixbuf ()
1028
1029         * gdk/makefile.msc gdk/win32/makefile.msc 
1030         gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
1031
1032         * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
1033         and take care of image->visual possibly NULL.
1034
1035         * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
1036         _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
1037         Again take care of image->visual possibly NULL.
1038
1039         * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
1040
1041         * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
1042         instead of private field access
1043
1044         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
1045         colormap setting to the gdk-X behaviour
1046
1047 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
1048
1049         * gtk/gtkwidget.c: Documentation additions.
1050
1051 2001-01-04  Matthias Clasen  <matthiasc@poet.de>
1052
1053         * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
1054
1055         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
1056
1057 2002-01-04  Havoc Pennington  <hp@pobox.com>
1058
1059         * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
1060         
1061 Fri Jan  4 13:05:15 2002  Owen Taylor  <otaylor@redhat.com>
1062
1063         * gtk/gtkdnd.c (gtk_drag_find_widget): At least
1064         don't infinite loop if the widget and window heirarchies
1065         don't correspond.
1066
1067         * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
1068         in heirarchy in ::drag_motion, ::drag_drop callbacks
1069         by referencing child widget lists. (Patch from Tim)
1070
1071         * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
1072         with widgets where window.x != widget->allocation.x
1073
1074 Fri Jan  4 01:36:48 2002  Owen Taylor  <otaylor@redhat.com>
1075
1076         * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
1077         a little bit. (More for consistency than because it
1078         makes much of a difference.)
1079
1080 Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>
1081
1082         * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
1083         (_gdk_x11_have_render): Private function to tell if we have RENDER
1084         extension.
1085
1086         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
1087         None if we don't have RENDER extension.
1088
1089         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
1090         use Xft unless we have render extension.
1091
1092         * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1093         Handle missing render extension.
1094
1095         * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
1096         gdk/gdkinternals.h: Add a private copy_to_image() virtual function
1097         to the GdkDrawable vtable that extends get_image() to allow
1098         copying onto existing images.  Make the default implementation of
1099         get_image() use this so that backends don't have to implement
1100         both. Add private wrapper _gdk_drawable_copy_to_image().
1101
1102         * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
1103         gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
1104         copy_to_image() semantics, speed up by using ShmPixmaps and
1105         XCopyArea when possible, XFlush() after ungrabbing the server,
1106         generally redo the logic once again.
1107
1108         * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
1109         _gdk_windowing_bits_per_depth(): Function to convert from depth to
1110         bits-per-pixel. (We assume only one bpp per depth - X requires
1111         this.)
1112
1113         * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
1114         scratch image code into a generic _gdk_image_get_scratch() chunk
1115         of code that we can use other places we need scratch images.
1116
1117         * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
1118         Add _gdk_image_new_for_depth() as the backend 
1119         to _gdk_image_new() to allowing creating images with
1120         a depth and no visual.
1121
1122         * gdk/gdkpixbuf-drawable.c: Fix so that getting 
1123         parts of images not at 0,0 actually works.
1124
1125         * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
1126         gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c: 
1127          - Add a new GdkDrawableClass vfunc _draw_pixbuf, and 
1128           _gdk_draw_pixbuf() [ will be made public later ], to allow 
1129           backends to accelerate drawing pixbufs. 
1130          - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
1131            to be the default implementation. 
1132          - Update docs for gdk_pixbuf_render_to_drawable_alpha(). 
1133          - Optimize the default implementation by using 
1134            _gdk_image_copy_to_pixmap() and scratch shared images, and
1135            special casing the compositing.
1136
1137         * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
1138         with alpha using the RENDER extension.
1139
1140         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
1141         Optimize by _gdk_image_copy_to_pixmap() and scratch images.
1142
1143         * tests/testrgb.c: Add test for speed of alpha composition,
1144         reduce the number of iterations since alpha composition
1145         can be a bit slow.
1146
1147         * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap): 
1148         Private function to get a ShmPixmap for an image, if possible.
1149
1150 2002-01-04  Anders Carlsson  <andersca@gnu.org>
1151
1152         * tests/testtreesort.c: Add my cool list of integers.
1153
1154 Thu Dec 27 18:12:55 2001  Owen Taylor  <otaylor@redhat.com>
1155
1156         * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
1157         problem where retrieved atoms weren't properly returned.
1158
1159 2002-01-03  Anders Carlsson  <andersca@gnu.org>
1160
1161         * gtk/gtktextview.c (gtk_text_view_key_press_event): When
1162         tab is pressed and the text view isn't editable, 
1163         move the focus instead.
1164
1165         * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
1166         necessary.
1167
1168         * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
1169
1170         * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
1171
1172         * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
1173         if it's NULL.
1174
1175         * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
1176         _gtk_tree_view_queue_draw_node.
1177         (gtk_tree_view_row_has_child_toggled): Only redraw one node.
1178
1179         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): 
1180         sort_column_id can be 0.
1181
1182         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1183         Only redraw one the node being selected.
1184
1185         * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
1186         
1187 Wed Jan  2 23:09:06 2002  Tim Janik  <timj@gtk.org>
1188
1189         * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
1190         realized but visible && !mapped resize containers (which is
1191         possible with unset CHILD_VISIBLE now).
1192
1193 2002-01-02  jacob berkman  <jacob@ximian.com>
1194
1195         * gtk/Makefile.am (LDFLAGS): automake still doesn't support
1196         libsomething_la_LDFLAGS, so fix the build again
1197
1198 2002-01-01  Havoc Pennington  <hp@pobox.com>
1199
1200         * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
1201         exposes to no window children not in the buffer window.
1202         (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
1203         - is this the right way to do it?
1204         (gtk_text_view_focus): add focus method, just chains up for now, 
1205         I'm not sure why the GtkContainer implementation doesn't work
1206
1207         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
1208         in the text line for the child anchor segment
1209
1210         * tests/testtext.c (do_add_focus_children): add another test
1211         example (to put focusable buttons into the widget)
1212
1213 2002-01-01  Havoc Pennington  <hp@pobox.com>
1214
1215         * docs/README.linux-fb: note that this file is obsolete
1216
1217         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
1218         files that they should not be edited and look in the reference 
1219         manual instead. Probably these files should just be replaced by 
1220         the note, and their main contents deleted.
1221
1222         * gtk/gtktextview.c: docs
1223
1224         * gtk/gtktextmark.c: docs
1225
1226         * gtk/gtktextchild.c: docs
1227
1228         * gtk/gtktextbuffer.c: docs stuff
1229
1230         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
1231         give people more leads in sorting out PRIMARY vs. CLIPBOARD
1232
1233 2002-01-01  Tor Lillqvist  <tml@iki.fi>
1234
1235         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
1236         ../gdk-pixbuf/gdk-pixbuf-csource.
1237
1238 2001-12-31  Tor Lillqvist  <tml@iki.fi>
1239
1240         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
1241         handling.
1242         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
1243
1244         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
1245         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
1246         one more place.
1247
1248         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
1249         -Wall.
1250
1251         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
1252
1253 2002-01-01  Havoc Pennington  <hp@pobox.com>
1254
1255         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
1256         fix
1257         
1258 2002-01-01  Havoc Pennington  <hp@pobox.com>
1259
1260         * gtk/gtktextview.c (changed_handler): Replace call to
1261         gtk_widget_size_request() that expected to actually compute the
1262         request with a direct use of widget_class->size_request, so we get
1263         our size request right; fixes remaining part of #63065 reported by
1264         Matthias Clasen
1265
1266 2001-12-31  Havoc Pennington  <hp@pobox.com>
1267
1268         * tests/testtext.c (do_insert_and_scroll): remove backward_char
1269         since we no longer have bogus newline
1270         (dialog_response_callback): remove another backward_char horkage, 
1271         reported by Matthias Clasen #63065
1272
1273 2001-12-31  Havoc Pennington  <hp@pobox.com>
1274
1275         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
1276         fix an incorrect assertion that the "valid" flag is always correct
1277         in a node and add explanatory comment. This keeps me from 
1278         reproducing #59101, but I'm remembering that 59101 was actually 
1279         about incorrect pixel totals, so I'm not sure 59101 is actually 
1280         fixed. May just have stopped happening due to some change in 
1281         how C-k works.
1282
1283 2001-12-31  Havoc Pennington  <hp@pobox.com>
1284
1285         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
1286         selection if shift is down, bug #50939
1287         (gtk_text_view_button_press_event): add double/triple click
1288         selection to the current selection if shift is down
1289
1290 2001-12-31  Havoc Pennington  <hp@pobox.com>
1291
1292         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
1293         to use ensure_byte_offsets not ensure_char_offsets, patch 
1294         from Padraig O'Briain bug #67356
1295         
1296 2001-12-30  Havoc Pennington  <hp@pobox.com>
1297
1298         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
1299         the right values, reported by Jeff Franks
1300
1301 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
1302
1303         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
1304
1305 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
1306
1307         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
1308         Minor documentation tweaks.
1309
1310 2001-12-28  Tor Lillqvist  <tml@iki.fi>
1311
1312         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
1313         (unicode_classify): Don't return -1 on encountering an
1314         unclassified character, but play it safe and return U_BASIC_LATIN.
1315
1316 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
1317
1318         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
1319         of misc->xpad/ypad consistent with GtkLabel. Do 
1320         directional flipping when interpreting misc->xalign/yalign.
1321         Fix off-by-one error for negative x,y. (#67472, reported
1322         by Mathieu Lacage)
1323
1324 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
1325
1326         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
1327         Remove optimization that was causing problems because
1328         we called gtk_widget_size_request() before we called
1329         gtk_widget_queue_resize() so RESIZE_NEEDED was not
1330         set. Optimization shouldn't mattter now that we
1331         are smart about needlessly size requesting or allocating
1332         widgets. (#67598, reported by Jacob Berkman)
1333
1334 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
1335
1336         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
1337         Call gdk_window_get_pointer() on menu->bin_window not
1338         menu->window, so we get the correct window for the
1339         menu item. (#65213, Guillermo S. Romero)
1340
1341 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
1342
1343         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
1344         the title by setting to NULL. Move docs inline. 
1345         Update the title if the tearoff window already
1346         exists. Code cleanup. (Fixes #65190, reported by
1347         Vitaly Tishkov.)
1348
1349 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
1350
1351         * gtk/gtksocket.c (gtk_socket_key_press_event): 
1352         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
1353         special handling of key presses unless we are doing 
1354         iter-app embedding. (Fixes #67590, Anders Carlsson)
1355
1356 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
1357
1358         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
1359         (gtk_tree_model_sort_sort_level),
1360         (gtk_tree_model_sort_insert_value): fix a few places where
1361         I was confused between modelsort iters and other iters. This was
1362         really going to happen someday ;)
1363
1364 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
1365
1366         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
1367         we are unprelighted before reordering
1368
1369         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
1370         need to break out of the for loop, not return (this fixed
1371         the 'selection freeze' bug).
1372
1373         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
1374         be pretty stable now, though it still needs some more code
1375         cleanups.
1376
1377 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
1378
1379         * docs/Changes-2.0.txt: Document the fact that
1380         gtk_paned_set_handle_size() has been removed.
1381
1382         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
1383         since it pointed to gtk_paned_set_handle_size(), which
1384         was removed. (#66760, Matt Wilson)
1385
1386 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
1387
1388         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
1389         gtk_drag_hightlight_expose _after_, so it works with
1390         widgets that paint there entire background. (#66735)
1391
1392 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
1393
1394         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
1395         allocation to widget->allocation. (Fixes #67290,
1396         Chris Phelps.)
1397
1398 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
1399
1400         (#67542, reported by Anders Carlsson)
1401         
1402         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
1403         rc_style->font_desc with defaul style instead of replacing
1404         it.
1405
1406         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
1407         font descriptions in RC styles by calling
1408         pango_font_description_merge(). 
1409
1410 2001-12-24  James Henstridge  <james@daa.com.au>
1411
1412         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
1413         valid with both SGML and XML.
1414
1415 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
1416
1417         * configure.in: 1.3.12, interface, binary age 0.
1418
1419         * configure.in: Require new versions of Glib, Pango, ATK.
1420
1421         * NEWS: Updated.
1422
1423         * configure.in: Make explicit what libtool we are executing.
1424         (Tomas Ogren)
1425
1426         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
1427
1428         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
1429         parameter names for docs.
1430
1431 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
1432
1433         * gtk/gtkwindow.c (gtk_window_realize) 
1434           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
1435
1436         * gtk/gtkentry.c (gtk_entry_key_release)
1437           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
1438         key release events to the input method.
1439
1440         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
1441         Handle release of Control/Shift to end hex sequence.
1442
1443         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
1444         Handle key releases as well as presses.
1445
1446 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
1447
1448         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
1449
1450         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
1451         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
1452         documentation about underscores and mnemonics. (#66380)
1453
1454         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
1455         cyclic reference in docs.
1456
1457         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
1458         of default value. (#65402)
1459
1460         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
1461         Markup fixes.
1462
1463 2001-12-20  Anders Carlsson  <andersca@gnu.org>
1464
1465         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
1466         map here.
1467
1468 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
1469
1470         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
1471         (reported by Jeff Franks.)
1472
1473 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
1474
1475         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
1476         prototype for direction_changed. (Reported by
1477         Jeff Franks.)
1478
1479 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
1480
1481         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
1482         Fix typo (list->data becomes list->next)
1483
1484 2001-12-06  Havoc Pennington  <hp@redhat.com>
1485
1486         Add Unicode control char menu, based on patch from Dov.
1487         Bug #63495
1488         
1489         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
1490         gtk_entry_enter_text
1491         (gtk_entry_enter_text): function to do "typing in text"
1492         (popup_targets_received): add the Unicode menu items
1493
1494         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
1495         on Input Methods item, and add the unicode menu items.
1496
1497         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
1498         used in GtkEntry and GtkTextView - may become public later.     
1499
1500 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
1501
1502         * gtk/gtkprogressbar.c: Fix a typo.
1503         * gtk/gtkpaned.c: Fix a typo.
1504         
1505 2001-12-15  Darin Adler  <darin@bentspoon.com>
1506
1507         Fix some warnings.
1508
1509         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
1510         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
1511         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
1512         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
1513         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
1514         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
1515         Restructure loop to get rid of uninitialized variable warning. Also
1516         gives a tiny efficiency gain.
1517
1518 2001-12-15  Murray Cumming  <murrayc@usa.net>
1519
1520         * Fixed first arg type of GtkScale's "format_value" signal's
1521         function pointer.
1522
1523 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
1524         docs/reference/gtk/tmpl/gtkcelleditable.sgml
1525                 gtkcelleditable -> GtkCellEditable
1526         docs/reference/gtk/tmpl/gtktreesortable.sgml
1527                 gtktreesortable -> GtkTreeSortable
1528
1529 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1530
1531         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
1532         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
1533         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
1534         resp.
1535
1536 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
1537
1538         * gtk/gtktreeview.c (validate_visible_area): free path
1539         at the end
1540
1541 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
1542
1543         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
1544
1545 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
1546
1547         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
1548         to find the clicked node in the tree when tree == NULL
1549
1550 2001-12-13  Anders Carlsson  <andersca@gnu.org>
1551
1552         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
1553         event->state with the default mod mask. 
1554
1555 2001-12-12  jacob berkman  <jacob@ximian.com>
1556
1557         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
1558
1559 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
1560
1561         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
1562         Reset the existing slave before removing it to give
1563         it a chance to commit and emit "preedit_changed" 
1564         in case there was still a preedit string.
1565
1566 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
1567         
1568         * gtk/gtktextlayout.c: Typo fixes
1569         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
1570
1571         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
1572         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
1573
1574         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
1575
1576 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
1577
1578         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
1579         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
1580
1581 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
1582
1583         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
1584         "prepainting" the menu before realizing other than
1585         via gtk_style_set_background() - this was broken when
1586         we added menu scroll support.
1587
1588         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1589         window in the expose event -- fixes problem with border
1590         flashing during scrolling.
1591
1592 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
1593
1594         * gtk/gtksettings.c (gtk_settings_get_property): Support
1595         using names/nicks for the gdk_settings values for enum valued
1596         types. (#57678, reported by Anders Carlsson)
1597
1598 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
1599
1600         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
1601         with insert_page_menu.  Code duplication is bad.
1602
1603         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
1604         wrong fix yesterday.
1605
1606 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
1607
1608         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
1609         modifiers.
1610
1611 2001-12-12  James Henstridge  <james@daa.com.au>
1612
1613         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
1614         (menu_item)->accel_path first when looking up the accel path.
1615
1616 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
1617
1618         * tests/testgtk.c (layout_expose_handler): Only draw
1619         for events on the bin window.
1620
1621 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
1622
1623         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
1624         mnemonics work with notebooks.
1625
1626 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
1627
1628         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
1629         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
1630         Makes some flicker while scrolling go away.
1631
1632 2001-12-11  Michael Natterer  <mitch@gimp.org>
1633
1634         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
1635         adds alpha to the pixbuf; re-load the saved pixbuf and
1636         pixel-by-pixel compare it with the original one.
1637
1638 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
1639
1640         * ChangeLog: Fix wrong ChangeLog entry
1641         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
1642         right corner
1643
1644 2001-12-10  jacob berkman  <jacob@ximian.com>
1645
1646         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
1647         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
1648         (gdk_keyboard_grab): do not grab things if the nograb debug flag
1649         is set
1650
1651         * gdk/gdkinternals.h: 
1652         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1653         keyboard / mouse
1654
1655 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
1656
1657         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1658         didn't reset the timer.
1659
1660 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
1661
1662         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1663
1664 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1665
1666         * gtk/gtkviewport.c: Add docs.
1667
1668 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
1669
1670         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1671         RBTree corruption bug--
1672
1673 2001-12-10  Anders Carlsson  <andersca@gnu.org>
1674
1675         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1676         if edited_column is NULL, also grab focus before removing
1677         the cell_editable.
1678
1679 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
1680
1681         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1682           denominator in the horizontal case just like we do in the vertical
1683           case (why I didn't notice that there were two cases the first time
1684           around is beyond me:).  Also fix indentation in the vertical case.
1685
1686 2001-12-09  Anders Carlsson  <andersca@gnu.org>
1687
1688         * gdk/x11/gdkevents-x11.c: Update xsettings name.
1689
1690         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1691         gtk-dnd-drag-threshold GtkSetting.
1692
1693         * gtk/gtksettings.c (gtk_settings_class_init): Add 
1694         setting for dnd drag threshold.
1695
1696 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
1697
1698         * gtk/gtkcontainer.c: Add docs.
1699
1700 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
1701
1702         * gtk/gtkwidget.c: Doc markup fix. 
1703
1704         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1705
1706         * gtk/gtktreestore.c: Typo fixes. (#66445)
1707
1708         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
1709
1710         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1711         to gtk_clipboard_set_with_owner(). (#66424)
1712  
1713 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
1714
1715         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1716         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
1717         Fabrice Bellet <fabrice@gnu.org>, #54127).
1718
1719 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
1720
1721         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1722         of places, so that people with crashy trees can just run their
1723         program with GTK_DEBUG=TREE.
1724
1725 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
1726
1727         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1728         per jrb's request
1729
1730 2001-12-08  Anders Carlsson  <andersca@gnu.org>
1731
1732         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1733         since then the default GtkLayout expose handler won't be called.
1734
1735 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
1736
1737         * gtk/gtktreeview.c (validate_rows_handler): remove
1738         g_return_if_fail.
1739
1740         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1741         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1742         empty model.
1743
1744 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
1745
1746         * gtk/gtktreeview.c (validate_visible_area): get logic right,
1747         #66249
1748
1749         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1750         removing a node ended up with a corrupt tree.  Really really nasty
1751         bug.
1752         (_gtk_rbtree_debug_spew): new debug helper function
1753         (_fixup_validation): new inline function to clean up code
1754         readability a lot. 
1755
1756 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
1757
1758         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1759         Close comment.
1760
1761 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
1762
1763         * gtk/gtkstyle.h: Typo fixes.
1764
1765         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1766
1767         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1768
1769 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
1770
1771         * modules/input/gtkimcontextxim.c: Display the XIM
1772         status callbacks with a popup window. (Patch from
1773         HideToshi Tajima, #50628, somewhat modified.)
1774
1775 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
1776
1777         * gtk/Makefile.am: each source generation rule needs to use its own
1778         temporary file, to avoid clashes for parallel builds. fixed rules
1779         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1780
1781 2001-12-07  Havoc Pennington  <hp@pobox.com>
1782
1783         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1784         "cursors that are actually useful" in gdk_cursor_new() docs
1785
1786 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
1787
1788         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1789         in computing the size of the second child.
1790
1791 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
1792
1793         * gtk/gtkrange.c: Make button 1 clicks on the trough
1794         do pages, button 3 steps. (Patch from Hans Breuer
1795         #63735)
1796
1797 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
1798
1799         * gtk/gtklabel.c: Fix docs. (#66383)
1800
1801         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
1802         (#66278, #66280)
1803         
1804         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1805         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1806
1807         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1808         Don't emit a g_warning() about being deprecated. (#66208)       
1809
1810         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1811
1812         * gtk/gtkcontainer.c: Doc fixes.
1813         
1814         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1815
1816         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1817
1818 2001-12-05  Sven Neumann  <sven@gimp.org>
1819
1820         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1821
1822         * gtk/queryimmodules.c: g_dir_read_name() returns const.
1823
1824 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1825
1826         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1827         #66225
1828         
1829 2001-12-04  Manish Singh  <yosh@gimp.org>
1830
1831         * gtk/gtkmain.c
1832         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1833         a gpointer.
1834
1835         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1836         correction to docs.
1837
1838         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1839
1840 2001-12-04  Havoc Pennington  <hp@redhat.com>
1841
1842         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1843         g_assert_not_reached() that was bogus, since we demand-create the
1844         tag info. reported by Chris Phelps
1845
1846         Jump through assorted hoops to fix bug from Chris Phelps where 
1847         removing tags from the table resulted in btree trying to 
1848         access tag->table
1849         
1850         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
1851         ourselves to the tag table
1852
1853         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
1854         (_gtk_text_tag_table_remove_buffer): private cruft to 
1855         let us notify buffer of disappearing tags
1856
1857         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1858         header, put it in tagprivate    
1859
1860         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1861         tag_removed; it's emitted too late.
1862         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1863         this
1864
1865         Padding for ABI-compat expansion
1866         
1867         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1868         (struct _GtkTextAppearance): one pad in here too
1869
1870         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1871
1872         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1873         since action signals etc. seem pretty likely
1874
1875         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1876
1877         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1878
1879         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1880
1881 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
1882
1883         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1884
1885         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1886
1887         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1888
1889 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
1890
1891         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1892         #62084.
1893
1894 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
1895
1896         * demos/gtk-demo/main.c: (create_tree): Minor fix.
1897
1898         * docs/tree-column-sizing.txt: Update
1899
1900         * gtk/gtkrbtree.[ch]: Massive work to support validation.
1901
1902         * gtk/gtktreemodel.c: Doc fixes.
1903
1904         * gtk/gtktreeview.c: Incremental reflow added.
1905         * gtk/gtktreeviewcolumn.c: ditto
1906         * gtk/gtktreeviewcolumn.h: ditto
1907
1908 2001-12-04  Havoc Pennington  <hp@redhat.com>
1909         
1910         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1911         "invisible" property, #65999
1912
1913 2001-12-04  Matt Wilson  <msw@redhat.com>
1914
1915         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1916
1917 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
1918
1919         * gtk/gtksettings.c (gtk_settings_set_property_value):
1920         Simplify, make more efficient and fix memory leak
1921         when turning quark into a string. (#66103, HideToshi
1922         Tajima)
1923
1924         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1925         init() and unref priv->tooltips in destroy rather
1926         than calling gtk_object_destroy() which has no
1927         effect on memory management. (#66104, HideToshi
1928         Tajima)
1929
1930         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1931         so we free the when the object is freed. (Fixes memory
1932         leak, #66096, HideToshi Tajima)
1933
1934         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
1935         a full GdkEvent structure to avoid reads of uninitialized/
1936         invalid memory in gdk_event_put() (#65877, patch
1937         from Hidetoshi Tajima)
1938
1939 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
1940
1941         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
1942         toggle-size-request doesn't take a requisition.
1943
1944         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1945         reference to marshaler that no longer exists.
1946
1947 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
1948
1949         Patch from Bill Haneman (with many modifications) to make
1950         the focus color work on dark themes and to make the
1951         focus line width configurable. (#61079, #63074)
1952
1953         * gtk/gtkwidget.c: Add style properties, 
1954         ::focus-widget, ::focus-line-width, and ::focus-padding.
1955
1956         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
1957         state argument as well so we can use fg[STATE] to
1958         draw instead of always drawing with black. 
1959         Cange paint_focus() to respect GtkWidget::focus-width
1960         and GtkWidget::focus-line-pattern. Fix continuity
1961         problem where the default 1-1 stipple had a blob
1962         in one corner and a gap in the other. Change the
1963         interpretation of x/y/width/height to be the bounding
1964         box of the focus rect instead of the rectangle
1965         passed to gdk_draw_rectangle.
1966
1967         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
1968         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
1969         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
1970         and ::focus-line-padding.
1971
1972         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1973         and remove duplicated code; fix drawing of focus rectangle
1974         when interior-focus = FALSE. (#63072, #63073)
1975
1976         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1977         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1978         Range and TreeViewColumn will need more extensive fixing.
1979
1980         * gtk/gtkcolorsel.c: Honor focus line attributes when
1981         drawing the focus on the color swatches. (#63071)
1982
1983         * gtk/gtkhsv.c: Honor focus line attributes when
1984         drawing the focus for the ring and triangle.
1985
1986         * docs/widget_geometry.txt: Start at documenting how 
1987         various widgets are drawn.
1988
1989         * gtk/gtkbutton.c (_gtk_button_paint): Export 
1990         _gtk_button_paint() librarywide, so we don't have 
1991         duplicate a bunch of code in gtktogglebutton.c.
1992
1993         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1994
1995 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
1996
1997         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
1998         NONE:POINTER.
1999
2000 2001-12-03  Alex Larsson  <alexl@redhat.com>
2001
2002         * gtk/gtkaccellabel.c:
2003         * gtk/gtkarrow.c:
2004         * gtk/gtkcolorsel.c:
2005         * gtk/gtkcontainer.c:
2006         * gtk/gtklabel.c:
2007         * gtk/gtktextview.c:
2008         * gtk/gtktogglebutton.c:
2009         * gtk/gtktreeview.c:
2010         * gtk/gtkwindow.c:
2011         Return FALSE from expose handlers.
2012
2013 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
2014
2015         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
2016         we use pointers, we should free the previous pointer first (if
2017         it exists), before we set a new pointer. (#64726)
2018
2019         * gtk/gtktreeprivate.h: get rid of cursor_drag
2020
2021         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
2022         for cursor_drag
2023         (gtk_tree_view_bin_expose): don't directly return in the while
2024         loop
2025         (gtk_tree_view_class_init): indentend expanders by default
2026         (gtk_tree_view_header_focus): only give the button focus
2027         if it's clickable, visible and the column is reorderable
2028         (#65539)
2029
2030         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2031         create and free cursor
2032
2033 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
2034
2035         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
2036         some bugs with size requisition. (From Bill Haneman)
2037
2038         * gtk/gtkcalendar.c: Draw headers and selection in 
2039         base/text[SELECTED] instead of fg/bg[SELECTED].
2040
2041         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
2042         code and formatting.
2043
2044 2001-12-03  Havoc Pennington  <hp@pobox.com>
2045
2046         * gtk/gtktextview.c (set_window_height): 
2047         (set_window_width): Hmm, setter functions normally assign the new
2048         value to the object field. Reported by Chris Phelps.
2049
2050 2001-11-30  jacob berkman  <jacob@ximian.com>
2051
2052         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
2053         signal id to 0 after we disconnect from it
2054
2055 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
2056
2057         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
2058         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
2059         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
2060         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
2061
2062         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
2063         GTK_DISABLE_DEPRECATED.
2064
2065         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
2066         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
2067
2068 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
2069
2070         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
2071         move/resize code, removing various bad, non-functional
2072         hacks. (Fixes #65048, reported by Damon Chaplin.)
2073
2074 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
2075
2076         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
2077         bad match error when target drawable is not the 
2078         same depth as the root window. (#65841)
2079
2080         * HACKING: Update.
2081
2082 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
2083
2084         * gdk/gdkwindow.c: Typo fix.
2085
2086 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
2087
2088         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
2089         empty menu items to behave like insensitive items (#59456)
2090
2091         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
2092         next item if the first item in the menu is a tear off item
2093         (#59456-2, suggestion by Matthias Clasen)
2094
2095         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
2096         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
2097         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
2098         (gtk_real_menu_shell_activate_current): add check, so empty
2099         menu items behave like insensitive items (#59456)
2100         
2101         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
2102         the checks more readable ...
2103         
2104         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
2105         (gtk_menu_shell_button_release): causes the menu to dropdown if the
2106         caption is clicked again (#64977)
2107
2108 2001-11-29  Havoc Pennington  <hp@redhat.com>
2109
2110         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
2111         assertion here that we were at the end iterator was not correct;
2112         change code to move us to the end iterator. bug #65731
2113
2114 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
2115
2116         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
2117         improper use of g_locale_to_utf8() to convert from
2118         latin-1, and do it the easy way by building the string
2119         correctly in the first place.
2120
2121 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
2122
2123         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
2124         Convert atoms to and from atoms for properties of type XA_ATOM.
2125         (#65555, patch from Hidetoshi Tajima)
2126
2127 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
2128
2129         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
2130         to avoid problems with Objective C.
2131
2132 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
2133         
2134         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
2135
2136         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
2137         Fix docs. (#65505)
2138
2139         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
2140
2141 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
2142
2143         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
2144         accounting of menu->tearoff_scrollbar width to here
2145         and make sure we have the correct requisition.
2146
2147         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
2148         by using gtk_window_move().
2149
2150         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
2151         the requisition to be updated by calling
2152         gtk_widget_size_request() (#65440)
2153
2154         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
2155         queue resize before calling gtk_menu_set_tearoff_state().
2156
2157 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
2158
2159         * demos/gtk-demo/editable_cells.c: fix typo
2160
2161         * demos/gtk-demo/list_store.c (add_columns): remove call to
2162         gtk_tree_view_column_set_clickable which didn't make sense
2163
2164 2001-11-28  Havoc Pennington  <hp@redhat.com>
2165
2166         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
2167         explaining the validation error in front of the G_BREAKPOINT
2168
2169         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
2170         process updates with include_children = FALSE instead of TRUE, so
2171         we redraw the range only, not the whole darn window.  Making
2172         GtkRange a NO_WINDOW widget had weirdly caused the text widget
2173         Trace/breakpoint trap bug to become much easier to trigger.
2174
2175 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
2176
2177         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
2178         to gdkcursors.h.
2179
2180 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
2181
2182         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
2183
2184         * gdk/gdkcursor.h: Directly include the contents
2185         of gdkcursors.h in the GdkCursorType enum.
2186
2187         * gdk/gdkcursors.h: Deleted.
2188
2189         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
2190         header boilerplate.
2191
2192         * gdk/Makefile.am: Remove the X-derived-headers rule.
2193
2194 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
2195
2196         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
2197         Notify on the ::active property _here_, not in
2198         gtk_check_menu_item_set_active.
2199
2200 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
2201
2202         * gtk/gtkcellrendererpixbuf.c
2203         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
2204         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
2205
2206 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
2207
2208         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
2209         comment about what is going on in this file.
2210
2211         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
2212         x/y problem.
2213
2214 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
2215
2216         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
2217         Calculate size based on the _child_ of the menu item,
2218         not the menuitem. (#65005, Damon Chaplin)
2219
2220         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
2221         some extra vertical padding to the label widget ... restores
2222         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
2223
2224 2001-11-26  Tor Lillqvist  <tml@iki.fi>
2225
2226         * demos/pixbuf-demo.c
2227         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
2228
2229         * demos/gtk-demo/main.c (read_line): No flockfile() or
2230         getc_unlocked() on Win32.
2231
2232 2001-11-25  Tor Lillqvist  <tml@iki.fi>
2233
2234         * configure.in
2235         * acconfig.h: As we now use GDir, no need to check for dirent.h.
2236
2237 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
2238
2239         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
2240         when finished (#65266)
2241
2242 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
2243
2244         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
2245         data after we set the property. (#65264)
2246
2247 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
2248
2249         * gtk/gtkbutton.c: add destroy method so label_text gets freed
2250         if it has been allocated (#65268)
2251
2252 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
2253
2254         * gdk/linux-fb/gdkdrawable-fb2.c
2255         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
2256
2257         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
2258
2259         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
2260         set_family
2261         
2262         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
2263
2264 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
2265
2266         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
2267         deactivate menu when menu_item isn't sensitive (#61389)
2268
2269 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
2270
2271         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
2272         we return (in case of a failure here)
2273
2274 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
2275
2276         * gtk/gtknotebook.c: Handle events in windows other
2277         than widget->event_window properly. (#65079, reported
2278         by Damon Chaplin)
2279
2280         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
2281
2282 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
2283
2284         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
2285         the image at the top. (#65020, request from Seth Nickell)
2286
2287 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
2288
2289         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
2290         arithmetic that was resulting in rows being drawn too low.
2291         (#65001, reported by Damon Chaplin)
2292
2293 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
2294
2295         * gtk/gtkrange.c (gtk_range_button_press): Offset 
2296         invalidated range correctly.
2297
2298         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
2299         of title window. (#65001, reported by Damon Chaplin)
2300
2301         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
2302         horrible hack with use of ::event_after.
2303
2304 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
2305
2306         * Version 1.3.11
2307
2308         * configure.in (ATK_REQUIRED_VERSION): Require
2309         GLib-1.3.11, Pango-0.22, ATK-0.7.
2310
2311         * tests/prop-editor.c (property_widget): Restore
2312         to working as well as it did before.
2313
2314         * gtk/gtklistitem.h: Mark deprecated since it is
2315         an integral part of GtkList.
2316
2317         * demos/gtk-demo/demo-common.h: New header file,
2318         for a common functions not important to the meat
2319         of the demos.
2320         
2321         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
2322         function to search for a file used by the demo.
2323
2324         * demos/*.c: Use demo_find_file.
2325
2326 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
2327
2328         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
2329         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
2330         fixes already mentioned in ChangeLog entry on 2001-11-14.
2331
2332         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
2333
2334 2001-11-23  Hans Breuer  <hans@breuer.org>
2335
2336         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
2337         reflect Pango API change
2338
2339         * gtk/gtk.def : updated externals
2340
2341         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
2342         g_return_val_if_fail() to avoid 'function must return a value'
2343
2344         * gtk/gtkrc.c : added spaces to fix small coding style issues
2345         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
2346         'static correctness'
2347
2348         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
2349         because they only can be build on win32 after applying my patch
2350
2351 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
2352
2353         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
2354         children, in order for the input pnly window to stay *above*
2355         children.
2356
2357 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
2358
2359         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
2360         type walks againts G_TYPE_FUNDAMENTAL_MAX.
2361         
2362         * tests/prop-editor.c: disable type hackery.
2363
2364 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
2365
2366         * gdk/gdkimage.c (gdk_image_get): Fix problem with
2367         lost parameter.
2368
2369 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
2370
2371         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
2372         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
2373         trailing commas in enum declarations.
2374
2375 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
2376
2377         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
2378         interface, binary age 0.
2379
2380         * NEWS: Updates
2381
2382         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
2383         fixes in docs.
2384
2385         * gtk/gtkmain.h: Remove unused and misnamespaced
2386         get_gtk_win32_directory() prototype.
2387
2388         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
2389         to match header.
2390
2391         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
2392         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
2393         to match docs.
2394
2395         * gdk/gdkevents.c (gdk_event_get_coords)
2396           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
2397           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
2398         Fix parameter names in docs.
2399         
2400         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
2401         (#64961, Akira Tagoh)
2402
2403 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
2404
2405         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
2406
2407         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
2408
2409         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
2410
2411         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
2412         back to gtk_accel_groups_from_object(), change @acceleratable
2413         parameter to gtk_accel_groups_activate() accordingly.
2414
2415         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
2416         left-over comment about quark return.
2417
2418         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
2419
2420         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
2421         (Patch from Matt Wilson)
2422
2423         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
2424         object is finalized.
2425
2426 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
2427
2428         * applied patch from owen to get rid of accel map notifiers.
2429         changed things to fix reentrancy and API as discussed on gtk-devel.
2430
2431         * gtk/gtkaccelgroup.[hc]:
2432         (gtk_accel_group_finalize): unregister this accel group from all
2433         accel map paths.
2434         (accel_closure_invalidate): handle invalidation of closures by
2435         disconnecting their accelerators.
2436         (quick_accel_add): move closure connection and changed notification
2437         into this function to reduce code duplication. don't emit change
2438         notification on closurers without accelerators.
2439         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
2440         for a GtkAccelGroupEntry.
2441         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
2442         (gtk_accel_group_connect_by_path): new function to add accelerators
2443         with an accel path.
2444         (gtk_accel_group_disconnect_closure): new function, disconnect a
2445         closure from of an accel group.
2446         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
2447         accel_mods pair and remove them.
2448         (_gtk_accel_group_reconnect): new function that basically does
2449         gtk_accel_group_disconnect_closure() and
2450         gtk_accel_group_connect_by_path() once an accel path changed.
2451         (gtk_accel_groups_disconnect_closure): remove this, there's
2452         gtk_accel_group_disconnect_closure().
2453         
2454         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
2455         nuke notifiers.
2456         (_gtk_accel_path_is_valid): make this non-static for
2457         gtkwidget.c and gtkaccelgroup.c assertions.
2458         (gtk_accel_map_add_notifer): removed this function.
2459         (gtk_accel_map_remove_notifer): same.
2460         (_gtk_accel_map_add_group):
2461         (_gtk_accel_map_remove_group): (un-)register accel groups, with
2462         accel paths for correct propagation.
2463         (gtk_accel_map_add_entry): return void.
2464         (gtk_accel_map_lookup): return gboolean instead of GQuark.
2465         
2466         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
2467         set accel_path on widgets.
2468         
2469         * gtk/gtkwidget.[hc]:
2470         (accel_path_changed): got rid of this, changes are handled by
2471         accel maps internally now.
2472         (_gtk_widget_set_accel_path): get things to work without notifiers.
2473         (gtk_widget_list_accel_closures): list accel closures of a widget.
2474         
2475         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
2476
2477 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
2478
2479         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
2480
2481 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
2482
2483         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
2484         replace gboolean free_last in the function parameters with
2485         gint depth. Changes to reflect new situation.
2486
2487         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2488         replace gboolean free_last, with gint depth, add gint current_depth.
2489         Changes to reflect new situation.
2490
2491         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
2492         to reflect new situation
2493
2494         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
2495
2496 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
2497
2498         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
2499         where notebook gap was double shifted by allocation.x/y
2500
2501         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
2502         to unmap children.
2503
2504 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
2505
2506         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
2507         allocation to be relative to paned->allocation, now
2508         that this is a NO_WINDOW widget.
2509         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
2510
2511         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
2512         needs to be a boxed property.
2513
2514 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
2515
2516         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
2517         Use the widget's state when drawing the indicator, as
2518         in GtkCheckButton. This gives us color changes for
2519         un-prelighted checkbuttons. (#63308, Matt Wilson)
2520
2521 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
2522
2523         (Fixes related to #64428, Michael Meeks)
2524
2525         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
2526         widget, so it gets mapped again properly when we
2527         add to a parent.
2528
2529         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2530         plug->socket_window. 
2531
2532         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
2533         socket_window to NULL, not FALSE.
2534
2535         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2536         socket->same_app to TRUE. (#64612)
2537
2538 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
2539
2540         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
2541         gtk_fixed_set/get_has_window() to remove criticism
2542         about GTK_WIDGET_SET_FLAGS() hacks.
2543
2544 2001-11-19  Michael Natterer  <mitch@gimp.org>
2545
2546         * gtk/gtknotebook.c: show notebook->event_window with
2547         gdk_window_show_unraised(), so it doesn't catch the events which
2548         should go to the tab widgets first.
2549
2550 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
2551
2552         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
2553         "resizable" property, to get rid of the
2554         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
2555         (gtk_tree_view_column_set_resizable): New function to set resizable.
2556         (gtk_tree_view_column_set_resizable): getter.
2557
2558         * tests/testtreecolumns.c (add_clicked): modify for above change.
2559
2560         * Makefile.am (install-data-hook): remove old .pc files before
2561         installing the new one.  We used to symlink this, and it will
2562         break old installs.
2563
2564 2001-11-19  Havoc Pennington  <hp@pobox.com>
2565
2566         * tests/testtext.c (fill_example_buffer): put in a test for
2567         negative indentation values
2568
2569 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
2570
2571         * gtk/gtklabel.c (gtk_label_init): Change default for
2572         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
2573         labels are most often wrapped labels, this gives better
2574         compatibility with GTK+-1.2, where justification was
2575         ignored for wrapped labesl and is a more sensible
2576         default in any case. (#64489)
2577
2578         * gtk/gtklabel.c (gtk_label_class_init): Fix default
2579         for wrap property to FALSE.
2580
2581 2001-11-19  jacob berkman  <jacob@ximian.com>
2582
2583         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
2584
2585 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
2586
2587         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
2588         RevertToParent, not RevertToNone. (#64613, 
2589         Matthias Clasen)
2590
2591 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
2592
2593         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
2594         and label_yalign need to be float properties to
2595         correspond to GTK+-1.2, to gtk_frame_set_label_align,
2596         and to the types of the xalign and yalign properties of GtkMisc.
2597         (#63484, Vitaly Tishkov)
2598
2599 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
2600
2601         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
2602         of plug_added vfunc. (#64408, Jeff Franks)
2603
2604 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
2605
2606         * configure.in (deps): Undef HAVE_STDLIB_H before
2607         checking for jpeg, because jconfig.h has this
2608         in it too (%#$@!). Fix from Matthias Clasen, #64500.
2609
2610 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
2611
2612         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
2613         memory leak when retrieving atom names. (Michael Meeks,
2614         #64508)
2615
2616 2001-11-18  Alex Larsson  <alexl@redhat.com>
2617
2618         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
2619         Update to new Pango API.
2620         
2621 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
2622
2623         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
2624         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
2625         GTK_OBJECT_DESTROYED() check macro.
2626
2627         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
2628         instances of GTK_OBJECT_DESTROYED() that weren't
2629         needed any more.
2630
2631         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
2632         for a connection to ::destroy.
2633
2634 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
2635
2636         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
2637         have been since the beginning, but as special hack,
2638         allow clearing the NO_WINDOW flag to get a window widget.
2639
2640 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
2641
2642         * gtk/gtktreestore.c: return TRUE when value changed, so
2643         row_changed is being emitted
2644
2645 2001-11-18  Hans Breuer  <hans@breuer.org>
2646
2647         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
2648         no label without op, even if it's a no-op.
2649
2650         * gtk/gtk.def :
2651         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
2652
2653         * config.h.win32.in : remove definition of HAVE_DIRENT_H
2654         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2655         required anymore, replace it.
2656         * gtk/queryimmodules.c : DIR -> GDir replacement, also
2657         getcwd() -> g_get_current_dir()
2658
2659         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2660         Even 'noisy laugh' scolling appears to work, though I still can't
2661         claim to have fully understood what it is supposed to do ...
2662
2663 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
2664
2665         * gtk/gtkenums.h: Include glib-object.h instead of
2666         gobject/gsignal.h
2667
2668         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2669           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2670         argument to the window_at_pointer() field of
2671         GdkPointerHooks. (Patch from Erwann Chenede)
2672
2673         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2674         to 6 pointers.
2675
2676 2001-11-17  Matt Wilson  <msw@redhat.com>
2677
2678         * gtk/gtkenums.h: must include glib-object.h only
2679
2680 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
2681
2682         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2683         key bindings in order of visibility - mnemonics, then 
2684         accelerators, then send key to the focus widget, then
2685         bindings on the GtkWindow.
2686
2687         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
2688         Removed the xoffset, yoffset fields of GtkLayout which were
2689         identically zero for compat with 1.2, but were no longer 
2690         compatible with all uses of these fields in 1.2.
2691
2692         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
2693         unused variable.
2694
2695 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
2696
2697         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
2698         We no longer need to create the signals here ... they
2699         come from the interface.
2700
2701         * gtk/maketypes.awk: Use GType, not GtkType in output.
2702
2703         * gtk/gtktypeutils.h: Mark virtually all of this
2704         file deprecated.
2705
2706         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2707         the only use of this function is the GtkArg using
2708         GtkCallbackMarshal, since destroy notification is
2709         silly here.
2710
2711 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
2712
2713         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2714         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2715         only for compatibility with GTK+-1.2; and deprecate it; 
2716         put all marshalers we actually use into gtkmarshalers.list 
2717         and use the _gtk_marshal_ prefix for these marshalers.
2718
2719 2001-11-17  Murray Cumming  <murrayc@usa.net>
2720
2721         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2722         The first parameters of the signals are now registered as
2723         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2724         
2725 2001-11-17  Tor Lillqvist  <tml@iki.fi>
2726
2727         * gtk-zip.sh.in: Build separate runtime and developer
2728         packages.
2729
2730         * gtk/gtk.def: Reflect recent accelerator-related changes.
2731
2732 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
2733
2734         * gtk/gtkwindow.c (gtk_window_set_default): Move 
2735         notification of "has_default" to here, so it
2736         is safe to call gtk_window_set_default() instead
2737         of gtk_widget_grab_default().
2738
2739         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2740         gtk_widget_grab_focus(), which then calls 
2741         _gtk_widget_internal_set_focus(). This makes 
2742         gtk_window_set_focus() a safe way of both setting
2743         and unsetting the focus widget.
2744
2745         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2746         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2747         to find the toplevel.
2748
2749         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2750         from the "internal functions" section.
2751
2752 2001-11-16  jacob berkman  <jacob@ximian.com>
2753
2754         * tests/testgtk.c (create_radio_buttons): add some no-indicator
2755         radio buttons
2756
2757         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2758         initially active, also initially be depressed
2759         (gtk_radio_button_clicked): also update our depressed state
2760
2761 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
2762
2763         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2764         key press events not just to focus/window but also to
2765         intermediate widgets.
2766
2767         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2768         to switch pages. (Needs some work on handling focus
2769         when switching pages.)
2770
2771 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
2772
2773         * gtk/gtknotebook.c: Fix child allocations to be relative to 
2774         widget position and some drawing bugs.
2775
2776         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2777         with reading uninitialized variable.
2778
2779 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
2780
2781         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2782         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2783         NO_WINDOW widgets.
2784
2785         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2786         cleanup.
2787
2788         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2789         we are drawing in a window when drawing the paned handle.
2790
2791 2001-11-16  Sven Neumann  <sven@gimp.org>
2792
2793         * demos/gtk-demo/appwindow.c
2794         * demos/gtk-demo/menus.c: reduce compiler warnings
2795
2796 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
2797
2798         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
2799         unused callback to make things compile with 
2800         gtk_tree_view_path_at_pos_change().
2801
2802 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
2803
2804         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2805
2806 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
2807
2808         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2809  
2810 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
2811
2812         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2813         to get a GdkWindow to compare event->window to.
2814
2815         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2816         the signal for lateral motion too, #64361
2817
2818         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2819         arg as it is useless, #64137
2820
2821 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
2822
2823         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2824
2825 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
2826  
2827         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2828         gdk_window_invalidate_maybe_recurse() for recursion.
2829         (Soeren Sandmann)
2830
2831         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2832  
2833         * gtk/gtkcontainer.c (gtk_container_expose): Call
2834         gtk_container_forall() not _foreach() to propagate,
2835         since we need to propagate exposes to internal children
2836         as well.
2837
2838         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
2839         Remove the restriction of only being able to call these
2840         on window widgets, since we have lots of NO_WINDOW widgets
2841         with windows now; for add events, recurse over the children
2842         of widget->window to find one owned by the widget.
2843
2844         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2845         window to catch events.
2846
2847         * gtk/gtktogglebutton.[ch]: Remove the code for switching
2848         between NO_WINDOW and WINDOW widgets based on the mode.
2849
2850         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2851         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2852
2853         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2854
2855         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2856         change for range.
2857
2858         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2859  
2860         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2861
2862 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
2863
2864         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2865         "message_type" and "buttons" CONSTRUCT properties. (#64069)
2866
2867         * tests/testsocket.c: Expand tests to add a "local passive
2868         child" (Test case for #64428)
2869
2870 2001-11-14  jacob berkman  <jacob@ximian.com>
2871
2872         * gtk/gtkgamma.c (button_clicked_callback): create the label with
2873         a mnemonic
2874
2875 2001-11-15  Sven Neumann  <sven@gimp.org>
2876
2877         * tests/testgtk.c: make it compile without warnings.
2878
2879 2001-11-14  Alex Larsson  <alexl@redhat.com>
2880
2881         * gtk/gtklabel.c:
2882         Don't recalculate the layout on each gkt_label_ensure_layout () for
2883         wrapped labels.
2884
2885 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
2886
2887         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2888         the currently selected column when we get the column, #64380
2889
2890         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2891         to cancel CellRendererText editting, #63613
2892
2893         * gtk/gtkcellrenderertext.c: ditto
2894
2895         * gtk/gtkcellrenderertext.h: formatting changes
2896
2897 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
2898
2899         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2900
2901         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2902
2903         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2904
2905         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2906
2907         * gtk/gtklabel.c: Documentation fixes (#64452)
2908
2909 2001-11-14  Daniel Egger  <degger@fhm.edu>
2910
2911         * gdk-pixbuf/io-xpm.c: 
2912         (xpm_skip_whitespaces): Remove unused static function.
2913         (xpm_skip_string): Dito.        
2914         (xpm_extract_color): Declare const variable const to avoid warnings. 
2915
2916         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2917         
2918         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2919         
2920         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
2921         a long.
2922
2923 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
2924
2925         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2926         out accidental commit of debugging timing code.
2927
2928 2001-11-14  Havoc Pennington  <hp@redhat.com>
2929
2930         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2931         it doesn't move to a new line each time you press it
2932
2933         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2934         return value, #62987
2935
2936 2001-11-14  Havoc Pennington  <hp@redhat.com>
2937
2938         * tests/testtextbuffer.c (main): bulk of the tests were commented
2939         out, oops.
2940
2941         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
2942         function work, should resolve #63426
2943         (gtk_text_iter_ends_line): return TRUE for the end iterator
2944
2945         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2946         a couple things that might get cached in here.
2947
2948 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
2949
2950         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2951         "model" construct property for language bindings.
2952
2953         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2954         function to let you set the column types of a GtkTreeStore for
2955         language bindings.
2956
2957         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2958
2959 2001-11-13  Havoc Pennington  <hp@redhat.com>
2960
2961         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2962         including reference to bugzilla bug about how we should have 
2963         a better way of positioning children
2964
2965         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2966
2967         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2968         size to side rects if they don't exist, #63438
2969
2970 2001-11-13  Havoc Pennington  <hp@redhat.com>
2971
2972         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2973         properly replace selection with Return or Tab
2974
2975         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2976         that didn't locate the end of the line correctly, should fix #63800
2977
2978 2001-11-13  Havoc Pennington  <hp@redhat.com>
2979
2980         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2981         to requisition, request non-anchored children
2982         (gtk_text_view_size_allocate): handle border width, allocate
2983         non-anchored children
2984         (text_view_child_new_window): set the child as object data
2985         (gtk_text_view_move_child): allow children at negative
2986         coordinates, no reason why not
2987         (gtk_text_view_forall): make it copy the list of children before
2988         walking it, to avoid reentrancy issues  
2989         (gtk_text_view_move_child): short-circuit if position is unchanged
2990         (changed_handler): only queue_resize if requisition has changed
2991         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
2992         a better job of invalidation ourselves
2993
2994         * tests/testtext.c: add tests for the fixed-position children
2995
2996 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
2997
2998         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2999         with gdk threads macro.
3000
3001 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
3002
3003         * gtk/maketypes.awk: fix type utils generation on unix.
3004
3005         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
3006         registry.
3007
3008         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
3009         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
3010         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
3011         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
3012         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
3013         introduced ::accel_changed signal for change notification, and
3014         gtk_accel_group_connect/disconnect to connect closures to accel groups.
3015         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
3016         functions.
3017         deprecated gtk_accel_group_ref/unref.
3018
3019         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
3020         to accel group changed notification and basically operate on closures.
3021         removed gtk_accel_label_get_accel_object and
3022         gtk_accel_label_set_accel_object.
3023         introduced gtk_accel_label_set_accel_closure, and for convenience,
3024         gtk_accel_label_set_accel_widget.
3025
3026         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
3027         which mostly moved into gtkaccelmap.[hc].
3028         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
3029         and gtk_item_factory_print_func.
3030
3031         * gtk/gtkmain.c: call _gtk_accel_map_init().
3032
3033         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
3034         that associates an accelerator path with menu items, through which
3035         persistent accelerator settings on menu items are enabled.
3036
3037         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
3038         paths of menu item can be default constructed to allow installation
3039         of accelerators on menu items that don't come with an accelerator
3040         binding by default.
3041
3042         * gtk/gtksettings.c: fix STRING type rc settings by special casing
3043         them appropriately in the parser.
3044
3045         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
3046         gtk_signal_newv().
3047
3048         * gtk/gtkwidget.[hc]: accelerator API revamp.
3049         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
3050         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
3051         gtk_widget_(un)lock_accelerators.
3052         accelerators maintained through gtk_widget_add/remove_accelerator()
3053         are not runtime changable now, the correct sequence to setup a
3054         widget for runtime changable accelerators is now:
3055           gtk_accel_map_add_entry(accel_path, key, mods);
3056           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
3057
3058         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
3059         group changes (as well as mnemonic changes) through the new signal
3060         ::accels_changed.
3061
3062 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
3063
3064         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
3065         GString->string conversions.
3066
3067 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
3068
3069         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
3070         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
3071
3072 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
3073
3074         * gtk/gtktreeview.c: Documentation fixes. (#64377)
3075         
3076         * gtk/gtktreestore.c: Documentation fixes. (#64376)
3077
3078 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
3079
3080         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
3081         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
3082         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
3083         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
3084
3085 2001-11-10  Hans Breuer  <hans@breuer.org>
3086
3087         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
3088         we know what we are talking about when asked for MINMAXINFO.
3089         Also some cleaning for !HAVE_DIMM_H etc.
3090
3091 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
3092
3093         * gtk/gtktreeviewcolumn.c: Fix docs for 
3094         gtk_tree_view_column_set_sort_order. (#62647)
3095         
3096         * gtk/gtkcontainer.c: Fix docs for 
3097         gtk_container_set_border_width. (#64139)
3098
3099         * gtk/gtkcolorsel.c: Documentation fixes.
3100
3101 2001-11-10  Hans Breuer  <hans@breuer.org>
3102
3103         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
3104         don't have strcasecmp()
3105
3106         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
3107         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
3108         code duplication wrap it in its own function and use it in 
3109         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
3110
3111         * gdk/win32/gdkdrawable-win32.c : implement the finalize
3112         method like the X11 version does, allow to set_colormap NULL
3113         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
3114         set_colormap, also some adaption to X11 version :
3115         (gdk_window_hide) call _gdk_window_clear_update_area
3116         (gdk_window_reparent) call _gdk_window_init_position
3117
3118         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
3119         call gdk_window_resize() after all hints are set, because the
3120         window resizing process (WM_GETMINMAXINFO) takes all of them into 
3121         account
3122
3123         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
3124
3125         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
3126         sizeof (GdkVisualPrivate)
3127
3128         * gdk/gdk.def gtk/gtk.def : upated externals
3129
3130         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
3131           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
3132         from now on use make.msc from $(TOP)/glib/build/win32
3133
3134         * gtk/stock-icons/makefile.msc : add stock_missing_image
3135
3136 2001-11-08  Tor Lillqvist  <tml@iki.fi>
3137
3138         * README.win32: Add headers. Add section about ActiveIMM.
3139
3140         * configure.in: Add --with-ie55 flag to specify the location of
3141         the "IE55 libs and headers" package downloadable from Microsoft,
3142         which contains, among other things, the Active IMM header dimm.h
3143         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
3144         Require GLib 1.3.10.
3145         
3146         * config.h.win32.in: New version, produced by merging two
3147         configure-generated ones (for gcc and MSVC). Hopefully #defines
3148         the same flags that the previous, hand-written one, did.
3149
3150         * gdk/Makefile.am
3151         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
3152
3153         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
3154         stuff. Remove unused GdkIOClosure.
3155
3156         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
3157         available).
3158
3159         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
3160         for uuid.lib. (Does it really have to be this hard to use an
3161         existing library with libtool? Probably I am missing something.)
3162
3163 2001-11-08  Darin Adler  <darin@bentspoon.com>
3164
3165         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
3166         typo where it says LEFT instead of CENTER.
3167
3168 2001-11-07  Darin Adler  <darin@bentspoon.com>
3169
3170         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
3171         (gtk_dialog_set_default_response): Add g_return_if_fail.
3172
3173 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
3174
3175         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
3176         Add row_draggable() vfunc, and wrapper function.
3177
3178         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
3179         row_drop_possible take a GtkSelectionData, rather than
3180         model/row pair.
3181
3182         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
3183         new DND interfaces.
3184
3185         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
3186         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
3187         and rename them to enable_model_drag_source/dest.
3188
3189         * gtk/treeviewcolumn.c: Add DND of columns between rows.
3190         Still can't drop _to_ the left tree, but other places
3191         work.
3192
3193         * gtk/gtktreeview.c (unset_reorderable): Unset the
3194         reorderable property if unset/enable_model_drag_source/dest
3195         are called manually.
3196
3197         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
3198         Correct for change in depth count handling.
3199
3200         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
3201         Pass in a expose area to gtk_tree_view_column_cell_render()
3202
3203 2001-11-06  Havoc Pennington  <hp@redhat.com>
3204
3205         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
3206
3207 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
3208
3209         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
3210
3211 2001-11-05  Havoc Pennington  <hp@redhat.com>
3212
3213         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
3214         widgets in here
3215         (gtk_text_view_realize): set parent window of child widgets
3216         (gtk_text_view_size_request): use child req to decide whether
3217         to invalidate layout, not widget->requisition
3218
3219         * gtk/gtktextdisplay.c (render_layout_line): set
3220         shaped_width_pixels for NULL shape objects, so that we properly
3221         draw the "missing pixbuf/widget" thing
3222         (render_layout_line): don't draw the widget here
3223         (gtk_text_layout_draw): pass out a list of widgets that need exposing
3224
3225         * demos/gtk-demo/textview.c (insert_text): add demo of child
3226         widgets
3227
3228         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
3229
3230         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
3231
3232         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
3233         scroll offsets
3234         (gtk_text_view_value_changed): poke new X and Y into child allocations
3235
3236 2001-11-06  Tor Lillqvist  <tml@iki.fi>
3237
3238         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
3239         -specific directory on Windows, too (#63759).
3240
3241 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
3242
3243         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
3244         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
3245         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
3246         directly to Picture objects instead of using XftDraw.
3247         This fixes the problem where we weren't able to 
3248         properly destroy XftDraw objects before destroying
3249         the accompanying windows, and probably improves
3250         efficiency a bit too. (#50214)
3251
3252 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
3253
3254         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
3255         Clamp max window width/height to 32767, not 32768 since
3256         we have to be able to deal with a dx/y of -32768 without
3257         getting a width of 65536 when guffaw scrolling.
3258
3259         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
3260         for the guffaw scrolling case, fixing some problems with
3261         copy-area case as well. Fix BadValue bug with moving windows
3262         by large amounts.
3263
3264         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
3265         clip in window structue before calling gdk_window_invalidate_region
3266         since that trims new invalidations to the window's visible
3267         region.
3268
3269         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
3270         Really set the static window gravity on the children, not
3271         repeatedly on the window.
3272
3273         * gtk/testgtk.c: Add a torture test for big windows and 
3274         gdk_window_scroll().
3275
3276 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
3277
3278         * acconfig.h configure.in: sigsetjmp is macroized in some places,
3279         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
3280
3281 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
3282
3283         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
3284         in terms of pango_color_parse().
3285
3286         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
3287         gdk_color_parse() implementations.
3288
3289 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
3290
3291         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
3292         queue_resize_on_group with both the old and new mode, not
3293         just the new mode. (#60171, Nicolas Setton). Also, notify
3294         the "mode" property.
3295         
3296 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
3297
3298         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
3299         for use in "shallow invalidation" of a widget. (Windows belonging
3300         to the widget, but not to the widget's children)
3301
3302         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
3303         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
3304         up on ancestors up to the resize container on queue_resize. Size
3305         requests only actually take place if GTK_REQUEST_NEEDED, size
3306         allocations only take place if GTK_ALLOC_NEEDED or the size
3307         changed.
3308
3309         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
3310         container->resize_widgets and the RESIZE_NEEDED flag since the
3311         above flags are sufficient to figure out what needs to be
3312         resized/reallocated. Remove code manipulating
3313         container->resize_widget.
3314
3315         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
3316         allows widgets to turn off being automatically invalidated is when
3317         they are resized.
3318
3319         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
3320         a widget is resized or moved is "shallow" as described above -
3321         only the windows that need to be invalidated are invalidated.
3322
3323         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
3324         Make these widget's init functions call 
3325         gtk_widget_set_redraw_on_allocate(widget,FALSE).
3326
3327         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
3328         _gtk_container_queue_resize(), since we don't want
3329         redrawing. (Probably could be done for other 
3330         calls to gtk_widget_queue_resize() in gtkwindow.c,
3331         but this is the most important one.)
3332
3333         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
3334         gtk_widget_queue_draw() - size_allocate() handles
3335         that as appropriate.
3336
3337         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
3338         of queue_clear() to avoid invalidating children.
3339
3340 2001-11-04  jacob berkman  <jacob@ximian.com>
3341
3342         * gtk/gtkmain.c (find_module): don't free the module name until
3343         after we load the module
3344
3345 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
3346  
3347         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
3348         derivation instead of boxed derivation.
3349  
3350         * gtk/gtkmarshal.list: Remove some now unused marshallers.
3351  
3352 2001-11-04  Tor Lillqvist  <tml@iki.fi>
3353
3354         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
3355         include yesterday, without really thinking), as that defeats the
3356         working of correct_libdir_prefix() (it becomes a no-op.). Add
3357         comment mentioning that. Thanks to Hans Breuer for noticing.
3358         
3359 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
3360
3361         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
3362         signal argument (was GtkWidget*).
3363
3364         * gtk/gtkwindow.c (gtk_window_frame_event),
3365           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
3366         Fixed argument types as above, removed GTK_WINDOW casts and
3367         added some GTK_WIDGET casts instead.
3368
3369 2001-11-03  Hans Breuer  <hans@breuer.org>
3370
3371         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
3372         finalize to parent class to get removed from the toplevel_list.
3373         Should fix 'random' crashes of #63474.
3374
3375         * gtk/gtktreemodelsort.c : chain finalize() to parent class
3376
3377 2001-11-03  Tor Lillqvist  <tml@iki.fi>
3378
3379         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
3380         for .dll or .so as appropriate as module suffix.
3381
3382         * gtk-zip.sh.in: Use correct import library names.
3383
3384         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
3385
3386         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
3387         Windows to turn build-time paths from a gtk.immodules distributed
3388         as part of a binary package into runtime ones in the
3389         end-user-chosen installation directory.
3390         (gtk_im_module_init): Use it for module path and domain
3391         directory.
3392
3393 2001-11-02  Tor Lillqvist  <tml@iki.fi>
3394
3395         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
3396         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
3397         Windows.
3398
3399 2001-10-30  Tor Lillqvist  <tml@iki.fi>
3400
3401         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
3402         files. Configure on Win32 (running on Cygwin) thinks symlinks
3403         exist, but pkg-config is not necesarily a Cygwin program, and
3404         doesn't understand them.
3405
3406 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
3407
3408         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
3409         a bit.  I don't think it's completely correct yet, but it's
3410         getting there.
3411
3412 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
3413
3414         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
3415         random + 5 for width and height. If people want padding,
3416         they should add padding. (Note the +5 isn't padding
3417         that will always appear - it just appears in the case
3418         where the widget is allocated it's requisition.)
3419         (#51018, Janet Davis)
3420
3421 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
3422
3423         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
3424         the structure for future expansion.
3425
3426 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
3427
3428         Patch from HideToshi Tajima (#51922)
3429         
3430         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
3431
3432         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
3433         set_use_preedit().
3434         
3435         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
3436         to destroy the input context because we change the
3437         client window or use_preedit, make sure we empty
3438         the preedit string.
3439
3440 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
3441
3442         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
3443         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
3444         proposed ordering of buttons with [OK] in the lower
3445         right hand corner. Patch from Gregory Merchan,
3446         #56331.
3447
3448 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
3449
3450         * gtk/gtklabel.c (gtk_label_select_region_index): remove
3451         extraneous gtk_label_clear_layout (label)
3452
3453 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3454
3455         * tests/makefile.msc, gtk/makefile.msc.in: Removed
3456         -DGTK_DISABLE_COMPAT_H.
3457
3458         * docs/Changes-2.0.txt:
3459         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
3460
3461         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
3462
3463 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
3464
3465         * examples/**/Makefile.am: Convert to use pkg-config
3466         rather than gtk-config. (#53375, Skip Montanaro)
3467
3468 2001-11-02  Matt Wilson  <msw@redhat.com>
3469
3470         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
3471         broken unused, non-compiling, static function.
3472
3473 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
3474
3475         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
3476         Iterate through children of the action area, not of
3477         the vbox. (#58278, Sergey Kuzminov)
3478
3479 2001-11-01  Havoc Pennington  <hp@pobox.com>
3480
3481         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
3482         order to remove a workaround in Nautilus that forced
3483         GTK_ENABLE_BROKEN
3484
3485         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
3486
3487 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
3488
3489         * gtk/gtkrange.c: Patch from George Lebl to 
3490         fix division by zero for full scroll bars. (#62114)
3491
3492 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
3493
3494         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
3495         around gtk_widget_event() if we are going to
3496         set a flag afterwards. (#63464)
3497
3498 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
3499
3500         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
3501         Actually add the missing/broken image icon as the
3502         image for the "missing image" stock icon.
3503
3504 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
3505
3506         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
3507         Set a reasonable default height for the window.
3508
3509         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
3510         bug where subsequent '-' weren't converted to '_'.
3511         (#59550, Matthias Clasen)
3512
3513         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
3514         justify the Help menu - just include a comment on
3515         how to do it. (#63539,  Marius Andreiana)
3516
3517         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
3518         list GTK_ICON_SIZE_INVALID.
3519
3520         * demos/gtk-demo/stock_browser.c: Show the biggest available
3521         size, not a fixed size. (Often reported, including #63539, 
3522         Marius Andreiana)
3523
3524 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
3525
3526         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
3527         #59583
3528
3529         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
3530         warning.
3531
3532 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
3533
3534         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
3535         (Daniel Elstner).
3536
3537 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
3538
3539         * gtk/gtkimcontext.[ch]: Add:
3540           - A ::retrieve_surrounding signal that asks the widget for
3541             context around the insertion point.
3542           - A ::delete_surrounding signal that asks the widget to 
3543             delete context aroudn the insertion point.
3544           - gtk_im_context_set_context() for widgets to set context
3545             around the insertion point in response to ::retrieve_context.
3546           - gtk_im_context_get_context() for context to get context
3547             around the insertion point
3548
3549         * gtkmarshal.list: Add BOOL:INT,INT
3550
3551         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
3552         set_surrounding() methods, and the ::retrieve_surrounding /
3553         ::delete_surrounding signals.
3554
3555         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
3556         GtkIMContext::retrieve_surrounding / ::delete_surrounding
3557         signals.
3558
3559 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
3560
3561         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3562         it's amazing how well things work sometimes, even when they're
3563         completely wrong.
3564
3565         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3566         where you could try to collapse a node w/o it having children.
3567
3568         (gtk_tree_view_class_init): remove Shift L<->R as they already
3569         existed for expand/collapse.
3570
3571 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
3572
3573         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
3574         found by Matt Wilson.
3575
3576 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
3577
3578         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
3579         Control, and Shift|Control L<->R, #63475
3580
3581 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
3582
3583         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
3584         infinite loop noticed by yosh.
3585
3586 2001-11-01  Michael Meeks  <michael@ximian.com>
3587
3588         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
3589         GTK_REALIZED flag so we don't re-enter when we are
3590         destroyed from the plug side.
3591
3592 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
3593
3594         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
3595         Add a "menu" property and notify on it. (#62798,
3596         Padraig O'Briain)
3597
3598         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
3599         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
3600         Fix set_text to take a gchar, not a guchar, and to have 
3601         a len argument.
3602
3603 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
3604
3605         * gtk/gtkstock.c: fix typo to make it compile
3606
3607 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
3608
3609         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
3610         the widget is insensitive, draw the text insensitively, #63306
3611
3612 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
3613
3614         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
3615
3616 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
3617
3618         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
3619         gtk_selection_data_set_tree_row, #60218
3620         (gtk_tree_get_row_drag_data): rename
3621         gtk_selection_data_get_tree_row, #60218
3622
3623         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
3624         get this right, after the third try, #63122.
3625
3626 2001-10-31  jacob berkman  <jacob@ximian.com>
3627
3628         * gdk/gdkselection.h (GDK_TARGET_STRING): 
3629         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
3630         for Xatoms (and not using the XA_* macros)!
3631
3632 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
3633
3634         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
3635         gtk_window_get_focus() getter to determine the currently
3636         focused widget within the window. (#63145, request
3637         from Damian Ivereigh)
3638
3639 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
3640
3641         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
3642
3643         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
3644         GTK_SELECTION_NONE enum.
3645         (_gtk_tree_selection_internal_select_node): ditto
3646
3647         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
3648         constness.
3649
3650         * gtk/gtkcellrenderertoggle.c: more yummy constness.
3651
3652         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3653         if mode == GTK_SELECTION_NONE
3654
3655 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
3656
3657         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3658         "cursor_changed" signal, #62850.
3659
3660 2001-10-31  Matt Wilson  <msw@redhat.com>
3661
3662         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3663         allocating the treedatalist, zero it to make sure the values are
3664         cleared from any garbage that was in this chunk.
3665
3666 2001-10-31  Murray Cumming  <murrayc@usa.net>
3667
3668         * gtk/cellrenderertext.h: "edited" default signal handler
3669         gchar* args are now const.
3670         gtk/cellrenderertoggle.h: "toggled" default signal handler
3671         gchar* arg is now const.
3672         Also changed other signal handlers for "edited" and "toggled" to
3673         have the same signature.
3674
3675 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
3676
3677         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3678         rewrite.  Static models now totally work.  I'm not 100% sure about
3679         row_inserted and row_changed, but I'll get those later.
3680
3681 2001-10-30  Sven Neumann  <sven@gimp.org>
3682
3683         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3684         output for configure --help.
3685
3686 2001-10-30  Havoc Pennington  <hp@pobox.com>
3687
3688         * gtk/gtktextview.c (changed_handler): Update the IM spot location
3689         here, if text was invalidated in the visible area, because the
3690         scroll offset doesn't normally change in that case, and the mark
3691         isn't set, just implicitly moved over as text is added/removed
3692         
3693 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
3694
3695         * gtk/gtkseparatormenuitem.c: Code cleanup.
3696         (gtk_separator_menu_item_class_init): Fix bugs in this code.
3697
3698 2001-10-29  jacob berkman  <jacob@ximian.com>
3699
3700         * gdk/Makefile.am (LDFLAGS): 
3701         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3702         LDFLAGS, so put win32 flags in here
3703
3704 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
3705
3706         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3707         I can't believe this took this long to fix.
3708
3709 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
3710
3711         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3712         reordered signal.
3713
3714 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
3715
3716         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3717         the focus to the fileop entry for create dir / rename
3718         file. (#62838)
3719
3720 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
3721
3722         * configure.in: Don't use AC_CHECK_FILE to check for a 
3723         file since it always spits warnings about cross compilation,
3724         use -f instead. It's not like we cross compile properly
3725         anyways.
3726
3727         * configure.in (gtktargetlib): Move call to AC_PROG_CC
3728         to suppress autoconf warning.
3729
3730         * acconfig.h: Add some missing #undefs from recent
3731         Win32 additions.
3732
3733 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
3734
3735         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3736         when we didn't find it. (#62944, Eric Lemings)
3737
3738         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3739         sign in assignment. (#63209, Arkadiusz Miskiewicz)
3740
3741 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3742
3743         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3744         the buttons size request before using it. Fixes #61696.
3745
3746 2001-10-29  Tor Lillqvist  <tml@iki.fi>
3747
3748         * README.win32: Updates.
3749
3750         * gtk-zip.sh.in: New file, used to build distribution package for
3751         Windows.
3752
3753         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3754         applicable with GDKVAR.
3755
3756         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3757         Wintab library.
3758
3759         * gdk/win32/gdkwin32.h
3760         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3761         X11 headers better, and to enable gdkwin32.h to be installed and
3762         included from applications, but not the *-win32.h headers.
3763
3764         * gdk/win32/*.c: Corresponding small changes, simplifications of
3765         #includes.
3766         
3767         * gdk/win32/gdkregion-win32.c: Remove.
3768
3769         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3770
3771         * gdk/win32/gdkfont-win32.c
3772         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3773
3774         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3775         GDK_NONE values into hash table.
3776
3777         * gtk/gtk.def: Update.
3778
3779         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3780         gethostname().
3781
3782         * gtk/gtkmain.c 
3783         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3784         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3785         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3786         g_win32_get_package_installation_subdirectory() with the actual
3787         DLL name saved above. Redefine above directory name macros to call
3788         these functions. Remove some ifdefs.
3789
3790         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3791         variable for export on Win32) also to the _vars file.
3792
3793         Changes for autoconfiscated build on Win32, and addition of Win32
3794         backend to the related files:
3795         
3796         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3797         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3798         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3799         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3800         win32 target, using pangowin32. Don't use the
3801         -export-symbols-regex option on Win32, we use .def files to list
3802         exported symbols. Check <winsock.h> (for gethostname() in
3803         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3804         prevent premature m4 expansion.
3805
3806         * acconfig.h: Add HAVE_WINTAB.
3807
3808         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3809         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3810         MS_LIB_AVAILABLE, build MS import library. Install the import
3811         libraries. If HAVE_WINTAB, link with the Wintab library.
3812
3813         * gdk/win32/Makefile.am: Actually enable building the win32
3814         objects here, not just list all files in EXTRA_DIST. Link in the
3815         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3816         copy the Wintab library into the .libs directory. 
3817
3818         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3819         name of the GDK DLL when fetching the icon. Use the HMODULE saved
3820         in gdk_dll_hinstance by DllMain.
3821
3822         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3823         build/win32/lt-compile-resource script.
3824
3825         * gdk/win32/rc/gdk.rc.in
3826         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3827
3828         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3829         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3830         file. Install import libraries.
3831
3832 2001-10-29  Anders Carlsson  <andersca@gnu.org>
3833
3834         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3835
3836 2001-10-28  Hans Breuer  <hans@breuer.org>
3837
3838         * gdk/gdk.c gdk/gdkevents.c
3839           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3840           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3841           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3842           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3843           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3844           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3845           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3846         static correct-ness, underscore prefixing of library internal 
3847         functions
3848         (applied the undisputed and the win32 part. Of the latter 
3849          I'm probably the one who will change it back again, if Owen
3850          decides that the Gdk*Impl types should not be private to Gdk)
3851
3852         * gdk/gdk.def : added the remaining exported functions
3853
3854 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
3855
3856         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3857         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3858         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3859
3860 2001-10-28  jacob berkman  <jacob@ximian.com>
3861
3862         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3863         gtk_settings_get_default() here as that requires an X connection
3864         (which breaks doc building with no X connection) and is not
3865         multihead safe
3866         (gtk_color_selection_init): delay palette loading until realize
3867         time
3868         (gtk_color_selection_realize): load the palette, and initialize
3869         the global palette if it hasn't been already
3870
3871         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3872         visual/cmap fields of klass->info since they are gone
3873         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3874         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3875         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3876
3877         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3878         cmap fields
3879         (gtk_preview_get_visual):
3880         (gtk_preview_get_cmap): mark as deprecated
3881
3882         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3883         changes
3884
3885 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3886
3887         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3888         structure to have GObject not GtkObject as
3889         parent_instance. (Jeff Franks.)
3890
3891 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
3892
3893         * gdk/x11/gdkinput.c: Typo fix.
3894
3895 2001-10-26  Havoc Pennington  <hp@pobox.com>
3896
3897         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3898         update_im_spot_location here explicitly
3899         (gtk_text_view_reset_im_context): don't update the spot location
3900         here
3901
3902 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3903
3904         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3905         This fixes #62942.
3906
3907         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
3908         Clarify that we're returning a spin button in the _new function.
3909         This fixes #54097.
3910         
3911 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
3912
3913         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
3914         Unfortunately, people apparently erroneously connect
3915         to ::clicked for GtkToggleButton and expect
3916         they know what happened in the default signal handler
3917         instead of appropriately connecting to notification
3918         signal ::toggled. When the revolution comes, such
3919         people will be first against the wall.
3920
3921         We'll just have to go back to the old less-reliable
3922         set-it-back hacks for handling model-view check
3923         buttons and radio buttons. :-(. 
3924
3925 2001-10-27  Hans Breuer  <hans@breuer.org>
3926
3927         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3928           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3929           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3930           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3931           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3932           gtk/gtktreestore.c gtk/gtkvbbox.c : 
3933         to simplify parsing for exported functions:
3934         - made implementation signature static, when the local 
3935           prototype already was
3936         - put the functions return value on it's own line
3937         - added as space between the function name and the 
3938           opening bracket
3939
3940         * gtk/gtk.def : added the remaining exported functions
3941
3942 2001-10-27  Anders Carlsson  <andersca@gnu.org>
3943
3944         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
3945         Add note about width having to be greater than 0. This fixes
3946         #55574. 
3947
3948         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
3949         Fix docs to say previous instead of next.
3950         (gtk_text_iter_backward_word_start): Likewise.
3951         This fixes bug #62980.
3952
3953         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3954         that the valid width is in range 0-65535 pixels. Fixes bug 
3955         #56754.
3956
3957         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3958         a dot in the documentation. Fixes bug #62632.
3959
3960         * gdk/x11/gdkmain-x11.c: Replace int and guint with
3961         long and gulong in some places to make the code 64-bit
3962         clean.
3963         (_gdk_windowing_init_check): Replace gint with gulong.
3964         This patch was made by George Lebl and fixes bug #62113.
3965
3966         * tests/testgtk.c (create_range_controls): Don't set a 
3967         fixed height on the hscale widget. This fixes "bug" 
3968         #55840.
3969         (create_window_states): Set up destroy signals so that
3970         all windows will be destroyed when one is. This fixes 
3971         bug #58133.
3972
3973 2001-10-26  Anders Carlsson  <andersca@gnu.org>
3974
3975         * gtk/gtktreeview.c: 
3976         (gtk_tree_view_class_init): Create new "indent_expander"
3977         style property.
3978
3979         (gtk_tree_view_get_arrow_xrange): Add a tree argument
3980         to the function since the xrange can change depending
3981         on where in the tree we are. 
3982         
3983         (coords_are_over_arrow): Update function call to
3984         gtk_tree_view_get_arrow_xrange.
3985         (gtk_tree_view_draw_arrow): Likewise.
3986         
3987         (gtk_tree_view_real_expand_collapse_cursor_row):
3988         Call real_{expand|collapse}_row, so that we'll have an
3989         animation.
3990
3991 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
3992
3993         * tests/Makefile.am: fixed a small typo
3994
3995 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
3996
3997         * demos/gtk-demo/list_store.c (create_model): Anders
3998         Carlsson suggested to use G_N_ELEMENTS here
3999
4000 2001-10-26  Sven Neumann  <sven@gimp.org>
4001
4002         * gtk/gtkbutton.[ch]
4003         * gtk/gtkdnd.c: fixed inline comments
4004         
4005         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
4006
4007 2001-10-26  Hans Breuer  <hans@breuer.org>
4008
4009         * gdk-pixbuf/gdk_pixbuf.def : 
4010         * gdk/gdk.def : 
4011         * gtk/gtk.def : updated externals
4012
4013         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
4014         gdk_window_lookup implementation. It already was in
4015         gdk/win32/gdkwindow-win32.c
4016
4017         * gdk/win32/gdkproperty-win32.c : made it compile again
4018         after GdkAtom API change
4019
4020         * gtk/gtk/makefile.msc.in : updated
4021
4022 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
4023
4024         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
4025         require GLib 1.3.10.
4026
4027         * NEWS: updates.
4028
4029 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
4030
4031         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
4032         invalid nodes.
4033          (_gtk_rbnode_rotate_right): Ditto.
4034          (_gtk_rbtree_node_mark_invalid): New function.
4035          (_gtk_rbtree_node_mark_valid): New function.
4036
4037         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
4038         GObject, not a GtkObject.
4039         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
4040         correct.
4041         (gtk_tree_model_sort_row_deleted): ditto.
4042         (gtk_tree_model_sort_{un,}ref_node): Fix.
4043
4044         * gtk/gtktreeview.c: Protean incremental reflow support (commented
4045         out)
4046
4047         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
4048         to const char *key.
4049
4050         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
4051         Important 1 line fix to fix a lot of refcounting woes.
4052
4053 2001-10-25  Matt Wilson  <msw@redhat.com>
4054
4055         * gtk/gtktextview.c (gtk_text_view_destroy): call
4056         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
4057         now invalidates) so that we remove our idle functions.
4058         (gtk_text_view_destroy_layout): remove the first_validate_idle as
4059         well.
4060
4061         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
4062         the 'indent' property is G_MININT to G_MAXINT.  Don't use
4063         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
4064         instead.
4065
4066 2001-10-24  Anders Carlsson  <andersca@gnu.org>
4067
4068         * gtk/gtktreeview.c: 
4069         (gtk_tree_view_real_expand_row): add an animate argument
4070         (gtk_tree_view_real_collapse_row): likewise
4071         
4072         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
4073         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
4074         (gtk_tree_view_collapse_row): update functions that call
4075         real_{expand|collapse}_row to set the animate argument 
4076         accordingly.
4077         
4078 2001-10-24  Alex Larsson  <alexl@redhat.com>
4079
4080         * gdk/linux-fb/gdkfont-fb.c:
4081         Update to new Pango APIs
4082
4083         * gdk/linux-fb/gdkproperty-fb.c:
4084         Update to new GdkAtom APIs
4085
4086         * gdk/linux-fb/gdkwindow-fb.c:
4087         Remove warnings
4088
4089 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
4090
4091         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
4092
4093 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
4094
4095         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
4096         s_path as a child path
4097
4098 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
4099
4100         * gtk/gtktreemodelsort.c: more changes in an attempt to get
4101         it right. It's not yet ready for general consumption.
4102
4103         * tests/treestoretest.c: add a button and entry for the new
4104         iter_change function
4105         (iter_change): new function, to test
4106         the row_changed signal implementation of the GtkTreeModelSort
4107
4108         * tests/testtreesort.c: cleanups, changes to test more features
4109         of the GtkTreeModelSort at once
4110
4111 2001-10-24  Havoc Pennington  <hp@redhat.com>
4112
4113         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
4114         remove hack to strip off the bogus newline, since we killed the
4115         bogus newline; fixes #61779
4116
4117 2001-10-24  Havoc Pennington  <hp@redhat.com>
4118
4119         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
4120         create layout if we didn't have one
4121         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
4122         as appropriate, avoids blanking the screen 
4123         (gtk_text_view_invalidate): new function to do invalidation,
4124         containing old guts of invalidated_handler
4125
4126 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
4127
4128         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
4129         dreadful tooltips.
4130
4131 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
4132
4133         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
4134         set window->parent (except or the root window itself); if 
4135         the window's parent is not a GdkWindow, or is a window of 
4136         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
4137
4138         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
4139         windows of type GDK_WINDOW_FOREIGN.
4140
4141 2001-10-24  Havoc Pennington  <hp@pobox.com>
4142
4143         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
4144         the front of a segment, use the "slow" technique for moving
4145         backward, so we don't mess up the any_segment field in the iter. 
4146         Fixes #57707
4147
4148         * tests/testtextbuffer.c: add code to detect #57707, to avoid
4149         regression
4150
4151 2001-10-23  Havoc Pennington  <hp@redhat.com>
4152
4153         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
4154         if selection contains some editable text, #60975
4155         (gtk_text_view_scroll_to_iter): remove warning about scrolling
4156         prior to map; it should actually be OK to do so in many cases, 
4157         it would be nice to warn about scrolling when many lines have
4158         height 0, but I don't know what to do about that. Perhaps 
4159         move part of flush_scroll into this function? comment added 
4160         to consider this.
4161
4162 2001-10-23  Havoc Pennington  <hp@redhat.com>
4163
4164         * gtk/gtktextview.c (changed_handler): Correctly keep the same
4165         text on the top of the screen, considering that the changed region
4166         may have overlapped the first paragraph. Should fix msw's "text
4167         widget scrolled to wrong place on map" bug, and probably some
4168         other scrolling cases as well.
4169         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
4170         instead of some random value
4171
4172         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
4173         grab_focus, so #59708 is really fixed
4174
4175 2001-10-24  Anders Carlsson  <andersca@gnu.org>
4176
4177         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
4178         (popup_targets_received): Call append_action_signal with stock items
4179         
4180         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
4181         (gtk_label_do_popup): Call append_action_signal with stock items
4182         
4183         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
4184         (popup_targets_received): Call append_action_signal with stock items
4185
4186 2001-10-23  Havoc Pennington  <hp@redhat.com>
4187
4188         * gtk/gtktextview.c (changed_handler): queue a resize here; will
4189         temporarily slow down the widget a lot, until we figure out how to
4190         optimize to avoid full redraw everytime we queue a resize.
4191
4192 2001-10-23  Havoc Pennington  <hp@redhat.com>
4193
4194         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
4195         0 and char_len == 0, bug #61729
4196
4197 2001-10-23  Havoc Pennington  <hp@redhat.com>
4198
4199         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
4200         return value, #61714 (Vitaly Tishkov)
4201         (gtk_text_iter_backward_sentence_starts): ditto
4202         (gtk_text_iter_backward_word_starts): ditto
4203         (gtk_text_iter_forward_word_ends): ditto
4204         (gtk_text_iter_forward_sentence_ends): ditto
4205         (gtk_text_iter_backward_cursor_positions): ditto
4206
4207 2001-10-23  Havoc Pennington  <hp@redhat.com>
4208
4209         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
4210         fix from Dov Grobgeld, #61858
4211
4212 2001-10-23  Havoc Pennington  <hp@redhat.com>
4213
4214         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
4215         Update IM spot location at appropriate times, #50626
4216         (Hidetoshi Tajima)
4217
4218 2001-10-23  Havoc Pennington  <hp@redhat.com>
4219
4220         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
4221         on grab focus, unless it's caused by button click, #59708
4222
4223 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
4224
4225         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
4226
4227         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
4228         G_CONST_RETURN. (Murray Cumming)        
4229
4230         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
4231         Make G_CONST_RETURN.
4232
4233         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
4234         results of g_get_home_dir().
4235
4236         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
4237         copy. Storing the return from gtk_entry_get_text() is evil.
4238
4239         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
4240         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
4241         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
4242         gtk/gtksignal.c: Add const.
4243
4244         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
4245
4246         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
4247         if we are setting them on private widgets.
4248
4249         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
4250         Duplicate entry->text before setting it as object data.
4251
4252 2001-10-22  Havoc Pennington  <hp@redhat.com>
4253
4254         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
4255         up a char from the end iterator, fixes #61859 ("can't put cursor
4256         at the end of the buffer")
4257
4258         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
4259         to work with delimiters other than newline.
4260
4261         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
4262         get_bytes_in_line
4263
4264         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
4265         last line, since the newline is no longer counted.
4266         (gtk_text_iter_get_bytes_in_line): ditto
4267
4268 2001-10-22  Havoc Pennington  <hp@redhat.com>
4269
4270         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
4271         #58290 would trigger if it reappeared, I think
4272
4273 2001-10-22  Havoc Pennington  <hp@redhat.com>
4274
4275         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
4276         add temporary code to dump btree contents on assertion failure
4277         described in #62656
4278         
4279         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
4280         assertions that we're getting the right end iter segment
4281
4282         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
4283         verify that we aren't on the end iterator after moving 
4284         forward one segment - fixes return value in an obscure case. 
4285         Also, some trivial code cleanup/rearranging.
4286         
4287 2001-10-22  Havoc Pennington  <hp@redhat.com>
4288
4289         * gtk/gtktextlayout.h: add a #error unless you define
4290         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
4291
4292         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
4293         
4294 2001-10-22  Havoc Pennington  <hp@redhat.com>
4295
4296         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
4297         #62365
4298
4299 2001-10-22  Havoc Pennington  <hp@redhat.com>
4300
4301         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
4302         #62436
4303
4304 2001-10-22  Havoc Pennington  <hp@redhat.com>
4305
4306         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
4307         #62366
4308
4309 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
4310
4311         * gtk/gtklabel.c: Add cursor-position, selection-bound 
4312         properties. (#62148, reported by Padraig O'Briain)
4313
4314         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
4315         to cursor_position. (1.3.x addition, text_position is an awful
4316         name.) Make cursor_position read-only to avoid sticky questions
4317         of interaction with selection_bound. (#62636, reported by
4318         Padraig O'Briain)
4319
4320 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
4321
4322         Fixing popup menus to have "Paste" sensitized correctly. Original
4323         patches from Damian Ivereigh, much mangled.
4324
4325         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
4326         gtk_selection_data_targets_include_text(). (#60854)
4327
4328         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
4329         the clipboard has text" function gtk_clipboard_wait_is_text_available.
4330         (#60854)
4331
4332         * gtk/gtkentry.c: Only enable the paste item if the clipboard
4333         contains text. (#60973)
4334
4335         * gtk/gtktextview.c: Only enable the paste item if the clipboard
4336         contains text. (#60975)
4337
4338 2001-10-22  Havoc Pennington  <hp@redhat.com>
4339
4340         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
4341         "height_lines" and "width_columns" properties, it doesn't make
4342         sense to set the size request on a text view really. #62103
4343
4344 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
4345
4346         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
4347         g_node_depth is broken, and that it's not worth being consistent
4348         with it.
4349
4350 2001-10-22  Havoc Pennington  <hp@redhat.com>
4351
4352         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
4353         docs, #61777
4354         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
4355         change the two boolean args to a flags field, so we can extend 
4356         to add case insensitive, regexp searches later. #61852
4357
4358 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
4359
4360         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
4361         reflect reality, #62810
4362
4363 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
4364
4365         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
4366
4367         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
4368         system.  Instead of having a window the size of the tree, we have
4369         a window the size of widget->allocation, and simply draw with the
4370         offset.
4371         (coords_are_over_arrow): ditto.  Move to window coordinates.
4372         (do_prelight): ditto
4373         (do_unprelight): ditto
4374
4375         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4376         Minor fix from Kristian Rietveld to fix unsorted case.
4377
4378 2001-10-22  jacob berkman  <jacob@ximian.com>
4379
4380         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
4381         a PIXMAP cell (fixes crash when using PIXTEXT cells)
4382
4383 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
4384
4385         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
4386         (#58768, Vitaly Tishkov)
4387         
4388         * gtk/gtkobject.h: Deprecate with abandon. 
4389         (#61942, Vitaly Tishkov, Matthias Clasen)
4390
4391         * gtk/gtksignal.h: Deprecate everything.
4392
4393         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
4394         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
4395         (#61942, Matthias Clasen)
4396
4397         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
4398         Havoc Pennington)
4399
4400         * gtk/gtkitemfactory.h: Deprecate compat functions
4401         for GtkMenuFactory code. (#62071)
4402
4403         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
4404         gdk_draw_text,gdk_draw_text_wc. (#62071)
4405
4406 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
4407
4408         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
4409         g_thread_init(), we don't want to link to -lgthread if we don't
4410         have to.
4411
4412 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
4413
4414         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
4415         Add a function, gdk_threads_init() that must be explicitely 
4416         called to enable the GDK thread mutex.
4417
4418 2001-10-22  Jakub Steiner <jimmac@ximian.com>
4419
4420         * gtk/stock-icons/stock_stop.png: no body parts
4421         
4422 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
4423
4424         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
4425         problem with g_return_if_fail return value.
4426
4427         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
4428         virtual atom code from the gdk-multihead branch, removing the per-display
4429         part. Virtualizing atoms needs to be done now to prevent compat
4430         breakage in direct Xlib accessing code in the future. (#62208)
4431  
4432         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
4433         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
4434  
4435         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
4436         an opaque pointer type so the compiler catches attempts
4437         to mingle it with X atoms.
4438
4439         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
4440           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
4441           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
4442           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
4443           tests/testdnd.c,tests/testselection.c: 
4444         Fix up for above atom changes.
4445
4446         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
4447         now have the ability to add custom predefines.
4448
4449         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
4450         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
4451         to gtk_clipboard_get().
4452
4453         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
4454         for GdkAtom => pointer change.
4455
4456         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
4457         atoms, fix for GdkAtom => pointer change.
4458
4459 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
4460
4461         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
4462         new function spin_button_get_arrow_size() instead.
4463
4464         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
4465         arrow was hardcoded, it's now variable.
4466
4467         Fixes bug #50200
4468
4469 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
4470
4471         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
4472         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
4473         for those
4474
4475 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
4476
4477         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
4478         in favor of g_signal_*, gtk_object_* in favor of 
4479         g_object_*.
4480
4481 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
4482
4483         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
4484         from GObject now, we have to use the g_object_* functions, not
4485         gtk_object_*.
4486
4487 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
4488
4489         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
4490         nailed down now (this code is not yet ready for general consumption)
4491
4492 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
4493
4494         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
4495         for use_align
4496
4497 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
4498
4499         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
4500
4501 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
4502
4503         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
4504         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
4505         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
4506         GObject, not GtkObject. (#62621)
4507
4508 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
4509
4510         * tests/testsocket.c: Remove now useless include of unistd.h,
4511         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
4512         
4513 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
4514
4515         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
4516         Pango font API. #61933. (Untested, even for compilation.)
4517
4518 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
4519
4520         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
4521         export gtk_disable_setlocale(). (Caught by Sven Neumann)
4522
4523 2001-10-18  Havoc Pennington  <hp@redhat.com>
4524
4525         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
4526
4527 2001-10-18  Havoc Pennington  <hp@redhat.com>
4528
4529         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
4530         to GTK_RUN_LAST, #50239
4531
4532 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
4533
4534         * gtk/gtkimmodule.c (match_locale):
4535         Support "*" for all locales with least priority
4536         when to select default im module, #58201
4537
4538 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
4539
4540         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
4541         Fix docs. (#61976)
4542  
4543         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
4544
4545         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
4546
4547         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
4548         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
4549         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
4550         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
4551         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
4552         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
4553         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
4554
4555         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
4556
4557         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
4558         Don't restrict the width of the spinbutton entry field 
4559         to 10 digits. (#58681)
4560
4561 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
4562
4563         * tests/testtreeflow.c: new test program for the tree.
4564
4565 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
4566
4567         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
4568         reported by (Oleg Maiboroda), #62600
4569
4570 2001-10-18  Michael Meeks  <michael@ximian.com>
4571
4572         * gtk/gtkentry.c (gtk_entry_set_property),
4573         (gtk_entry_get_property): impl 'text'
4574         (gtk_entry_class_init): add the 'text' prop.
4575         (gtk_entry_insert_text): notify 'text' changed.
4576         (gtk_entry_delete_text): ditto.
4577
4578 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
4579
4580         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
4581         Documentation updates.
4582
4583 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
4584
4585         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
4586         in truncating length of text to MAX_SIZE. (Found by 
4587         Padraig O'Briain, #62055)
4588
4589 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
4590
4591         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
4592         MNEMONIC_ACTIVATE; signal was changed a long time
4593         ago.
4594
4595         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
4596         Fix wrong return statement. (Reported by HideToshi
4597         Tajima and others.)
4598
4599         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
4600         left over select_all vfunc.
4601
4602 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
4603
4604         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
4605         a utility function to translate coordinates relative to
4606         one widget's allocation to coordinates relative to another
4607         widget's allocation.
4608
4609         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
4610         that:
4611          - only accepts external focus if there is no active
4612            member of the group or the button is active.
4613          - makes arrow keys move the active button as well
4614            as the focus
4615          - make tab tab out directly.
4616         This makes a radio button group act as a single focus location.
4617         (#53577).
4618         
4619         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
4620         it was only a small optimization that didn't matter and made
4621         things more complicated.
4622
4623         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
4624         sorter for FOCUS_TAB as we did for the other focus directions,
4625         sort by center of widgets, not upper-left corner. (Shouldn't
4626         matter in general.)
4627
4628         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
4629         from the different types of focusing: encapsulate sorting the
4630         widgets for the focus direction into one routine
4631         (gtk_container_focus_sort()) and then share the work of moving the
4632         focus between the different focus directions.
4633
4634         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
4635         work correctly with focus chains containing non-immediate
4636         children. Sorting was being done using allocation coordinates for
4637         each widget in the focus chain, and if there were intermediate
4638         window-widgets, these allocations would not be in the same
4639         coordinate system.
4640
4641 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
4642
4643         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
4644         mnemonic_activate function to option menu.
4645
4646 2001-10-15  Murray Cumming <murrayc@usa.net>
4647
4648         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
4649           Corrected the type names used in some calls to g_signal_new().
4650         
4651 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
4652
4653         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4654         specs, use g_pattern_spec_equal() instead of direct field accesses.
4655         upon compressing two equal paths of the same type, the resulting
4656         priority has to be the maximum.
4657         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4658         GtkPathPriorityType enum and make it a macro.
4659
4660 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
4661
4662         * gtk/gtkwidget.c: Fix some doc comments.
4663
4664 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
4665
4666         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4667         on empty models.
4668
4669 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
4670
4671         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4672         Remove stale gdk backend includes.
4673  
4674 2001-10-10  Michael Meeks  <michael@ximian.com>
4675
4676         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4677         and value_in_list properties.
4678         (gtk_combo_set_value_in_list): notify change.
4679         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4680
4681 2001-10-11  James Henstridge  <james@daa.com.au>
4682
4683         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4684         that gtk+ can be built with automake 1.5 while not breaking
4685         things for automake 1.4.
4686
4687 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
4688
4689         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4690         (#60606)
4691
4692         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4693         to disable calling setlocale (LC_ALL, "").
4694
4695         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
4696         docs that this function is not typically useful.
4697
4698         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
4699         Automatically initialize GDK for the current locale
4700         on gdk_init(). Don't reset locale to C when
4701         XSupportsLocale() fails.
4702
4703         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4704         useless checks for UTF-8 locale breakage that mattered
4705         only for X.
4706
4707         * examples/calendar/calendar.c
4708         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
4709         gtk_set_locale().
4710
4711         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4712         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4713
4714 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
4715
4716         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4717
4718         Fixes bug #61904
4719
4720 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
4721
4722         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4723         new function, #61923
4724         (gtk_tree_selection_path_is_selected): Ditto
4725
4726 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
4727
4728         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4729         not a GtkObject.  Thanks andersca.
4730
4731         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4732
4733 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4734
4735         * gtk/gtktreeviewcolumn.c
4736         (gtk_tree_view_model_sort_column_changed): fix broken code.
4737
4738 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
4739
4740         * gtk/gtkselection.c: s/succesfully/successfully/g
4741
4742 2001-10-08  Havoc Pennington  <hp@pobox.com>
4743
4744         * demos/gtk-demo/stock_browser.c: remove unused enum
4745
4746         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4747         pass the current selection state of the node in to the user
4748         selection func
4749
4750 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
4751
4752         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
4753         non-existent function gdk_x11_cursor_get_xid 
4754         by gdk_x11_cursor_get_xcursor.
4755
4756 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
4757
4758         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4759         warning.
4760
4761         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4762         unref nodes, #okay61676
4763
4764         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4765         to the property; no need to clear the other columns.  Also, we go
4766         to 'unsorted' if the model supports it.
4767
4768 2001-10-05  Sven Neumann  <sven@gimp.org>
4769
4770         * demos/testpixbuf-save.c
4771         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
4772         feature.
4773
4774 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
4775
4776         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4777         destroy the search dialog
4778
4779         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4780         added check to prevent creation of a search dialog if there's
4781         already one around
4782
4783         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4784         it instead of "search-dialog" (when getting/setting the search dialog
4785         widget).
4786
4787 2001-10-05  Jakub Steiner <jimmac@ximian.com>
4788
4789         * gtk/stock-icons/stock_broken_image.png: broken images icon
4790
4791 2001-10-04  Havoc Pennington  <hp@pobox.com>
4792
4793         Fix #56586
4794         
4795         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4796         accelerator setting here...
4797
4798         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4799         because we try to use it when a menu bar hasn't necessarily been 
4800         initialized.
4801
4802 2001-10-03  Havoc Pennington  <hp@redhat.com>
4803
4804         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
4805         it previously verified incorrect behavior
4806
4807         Fixes for #61565
4808         
4809         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4810         off the end
4811         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4812         the end
4813         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4814         the end
4815         (gtk_text_iter_forward_lines): if on the last line, move to end of
4816         it
4817
4818         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4819         don't return a line off the end
4820
4821 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
4822
4823         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4824         functions to do_insert_text and do_delete_text, add signals
4825         insert_text, delete_text and changed
4826
4827         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4828         and changed. Updates to match new situation.
4829
4830         * gtk/gtkspinbutton.c: updates to match new situation
4831
4832         * gtk/gtkoldeditable.h: remove signals changed, insert_text
4833         and delete_text
4834
4835         * gtk/gtkoldeditable.c: updates to match new situation
4836
4837         * gtk/gtktext.c: updates to match new situation
4838
4839         Fixes bug #59803
4840
4841 2001-10-03  Havoc Pennington  <hp@redhat.com>
4842
4843         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
4844         position
4845
4846         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4847         changes
4848
4849         * tests/testtextbuffer.c (logical_motion_tests): updates
4850
4851 2001-10-03  jacob berkman  <jacob@ximian.com>
4852
4853         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
4854         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
4855         * gtk/gtksettings.c (apply_queued_setting): 
4856         * gtk/gtkmain.c (gtk_init_check): 
4857         * gtk/gtkcontainer.c (gtk_container_child_get_property):
4858         s/retrive/retrieve/
4859
4860 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
4861
4862         * gtk/gtktreemodelsort.[ch]: preparation for surgery
4863         * tests/testtreesort.c: ditto
4864
4865 2001-10-02  Havoc Pennington  <hp@redhat.com>
4866
4867         Throughout: assorted docs
4868         
4869         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4870         gdk_window_set_geometry_hints() should be used instead.
4871
4872         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4873         document them
4874
4875         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4876         seem to exist in any .c files
4877
4878         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
4879         g_return_if_fail (pixel < colormap->size).
4880
4881 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
4882
4883         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4884         NULL for @target_list to mean, use
4885         gtk_drag_dest_get_target_list (widget).
4886
4887         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4888         drop could hang when calling gtk_drag_finish with 
4889         success == FALSE and del == TRUE.
4890
4891         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4892         drops without a matching target found would propagate
4893         to the parent widget rather than being rejected.
4894
4895         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
4896         Use text_view->dnd_mark instead of mark name to be
4897         consistent with the rest of the code.
4898
4899         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4900         pendantically correct for a drop-only-in-some-places
4901         widget. (Check whether you can insert in drag_drop,
4902         not just in drag_motion ... matters in theory, and
4903         for Motif drag and drop in practice.)
4904
4905         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
4906         Damian Ivereigh to not allow drops on non-editable
4907         entries. (#61124)
4908
4909         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4910         text to be moved from a non-editable entry.
4911         
4912 2001-10-03  James Henstridge  <james@daa.com.au>
4913
4914         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4915         s/width/fixed_width/ in order to get things to compile.
4916
4917 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
4918
4919         * gtk/gtkcelleditable.c: docs
4920
4921         * gtk/gtktreemodel.h: more docs.
4922
4923 2001-10-02  Havoc Pennington  <hp@redhat.com>
4924
4925         * gdk/x11/gdkwindow-x11.c: docs
4926
4927         * tests/testtextbuffer.c (logical_motion_tests): add sentence
4928         boundary tests
4929
4930 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
4931
4932         * demos/gtk-demo/Makefile.am: add editable_cells.c,
4933         list_store.c and tree_store.c
4934
4935         * demos/gtk-demo/appwindow.c: remove tearoff item from
4936         File menu, put menubar and toolbar in handle boxes.
4937
4938         * demos/gtk-demo/genincude.pl: various changes to support trees
4939
4940         * demos/gtk-demo/main.c: various changes to support trees
4941
4942         * demos/gtk-demo/stock_browser.c: changed name of demo
4943         to Stock Item and Icon Browser, so geninclude.pl doesn't see
4944         it as child
4945
4946         * demos/gtk-demo/editable_cells.c: new file/demo
4947         * demos/gtk-demo/list_store.c: new file/demo
4948         * demos/gtk-demo/tree_store.c: new file/demo
4949
4950 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
4951
4952         * gtk/gtkrc.c gtk/gtksettings.c: 
4953         g_string_printfa => g_string_append_printf.
4954
4955 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
4956
4957         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4958         and destroy handler.
4959
4960         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4961
4962         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4963         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
4964         Singh <yosh@gimp.org>.
4965
4966 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
4967
4968         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4969         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4970
4971         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4972
4973 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
4974
4975         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4976         scroll_to_cell delayed code to happen in size_allocate.
4977
4978         * gtk/gtkstyle.c (gtk_default_draw_expander): change
4979         prelight/normal arrow drawing.
4980
4981         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4982
4983         * gtk/gtktreestore.c: refactor.
4984
4985 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
4986
4987         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4988         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4989         centers the child in relation to the to indicator height.
4990
4991 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
4992
4993         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4994         correct
4995
4996 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
4997
4998         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4999         property code using g_param_spec_int and changed from
5000         g_value_get_enum to g_value_get_int instead. Probably a better way
5001         to fix the problem :-)
5002
5003 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
5004
5005     * gtk/gtkcellrenderertext.c changed "weight" property type from 
5006       g_param_spec_int to g_param_spec_enum.
5007
5008 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
5009
5010         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
5011         fix: s/Wether/Whether/ in reorderable property description
5012
5013 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
5014
5015         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
5016         start editing when you select with a keyboard.
5017
5018         (gtk_tree_view_button_press_event): much more graceful now.
5019
5020         * gtk/gtkstyle.c: Draw togglebutton better.
5021
5022 2001-09-26  Havoc Pennington  <hp@redhat.com>
5023
5024         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
5025         of passing non-stock label in to gtk_dialog_new_with_buttons
5026
5027         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
5028         debugging updates
5029
5030         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
5031         are private
5032
5033         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
5034         exist, fall back to mnemonic label, not plain label, bug #61184
5035         
5036 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
5037
5038         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
5039         stupid and emitting the signal every time.
5040
5041         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
5042
5043 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
5044
5045        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
5046
5047        * contrib/gdk-pixbuf-xlib/Makefile.am: install
5048        gdk-pixbuf-xlib-2.0.pc.
5049
5050 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
5051
5052         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
5053         problem where menmonic wasn't removed properly when
5054         setting a label when there already is a label.
5055         Also, handle setting the tab label back to the same
5056         value. (#61160, #61161)
5057
5058         * gtk/gtkentry.c (paste_received): Patch from 
5059         Damian Ivereigh to replace selection if there is 
5060         one. (#61121)
5061
5062 2001-09-25  Darin Adler  <darin@bentspoon.com>
5063
5064         * tests/.cvsignore: Ignore new test program.
5065
5066 2001-09-25  Havoc Pennington  <hp@redhat.com>
5067
5068         * gtk/gtktextview.c: fix for #50317
5069         
5070 2001-09-25  Havoc Pennington  <hp@redhat.com>
5071
5072         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
5073         gtk_text_iter_can_insert
5074         
5075         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
5076
5077         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
5078          (gtk_text_iter_can_insert): new function to fix #60282, should
5079         also fix msw's "can paste into empty buffer" bug.
5080
5081         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
5082         "event object,"  #59091
5083
5084         * gtk/gtktextbtree.c: indentation fixes
5085
5086         * gtk/gtktextiter.c (find_by_log_attrs): fixes
5087
5088 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
5089
5090         * configure.in: Version 1.3.9, interface age 0, binary age 0.
5091
5092         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
5093
5094         * NEWS: Updates.
5095
5096 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
5097
5098         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
5099         function for drawing cursors between gtkentry/gtklabel/gtktextview.
5100         Should this be public? It has a bit of an odd interface, but
5101         custom editing widgets probably should be using it.
5102         Function will draw with wider width for taller cursors, and
5103         draws a little indicator arrow to indicate directoin for split 
5104         cursors.
5105
5106         * gtk/gtktextview.c: Add a "cursor_color" property.
5107
5108         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
5109         gtk_text_layout_draw().
5110
5111         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
5112         _gtk_draw_insertion_cursor().
5113
5114 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
5115
5116         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
5117         the behavior where you could turn family_set (etc) back on
5118         and get back the values you had before.
5119
5120         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
5121         g_string_ascii_up() rather than looping through the
5122         string ourself.
5123
5124 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
5125
5126         * gtk/gtktreeviewcolumn.c
5127         (gtk_tree_view_column_set_cell_renderer): Removed
5128         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
5129
5130         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
5131         Patch from Detlef Reichl
5132
5133 2001-09-25  Havoc Pennington  <hp@redhat.com>
5134
5135         * tests/testtextbuffer.c (line_separator_tests): Add tests for
5136         line separators, addresses bug #57428
5137
5138 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
5139
5140         * gtk/gtkentry.c: Make a GtkCellEditable
5141         (get_widget_window_size): Change to let it honor size_allocate
5142         when a CellEditable.
5143
5144         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
5145         editable changes.
5146         (gtk_tree_view_set_cursor): Now you can set the cursor
5147         horizontally, as well as start editing.
5148
5149         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
5150         code to look more like the other check buttons.
5151
5152         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
5153         Change the way we calculate cell size.
5154
5155         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
5156
5157         * demos/gtk-demo/sizegroup.c: Add mnemonics.
5158
5159         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
5160         Fix logic.
5161
5162         * gtk/gtkcellrenderertext.c: Change to be editable.
5163
5164         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
5165
5166         * test/testtreesort.c: Fix misspelling
5167
5168         * test/testreecolumns.c: Add mnemonics.
5169
5170         * test/testreeedit.c: New test program.
5171
5172 2001-09-25  Havoc Pennington  <hp@pobox.com>
5173
5174         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
5175         etc. docs about how these are not going to do what you want for 
5176         the X/win32 ports. Futile attempt to avoid a FAQ...
5177
5178 2001-09-24  James Henstridge  <james@daa.com.au>
5179
5180         * gtk/gtkmarshal.list (VOID): add marshal function types.
5181
5182         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
5183         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
5184         GTK_TYPE_POINTER.
5185         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
5186         with no-op copy/free functions.
5187
5188         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
5189         GtkCTreeNode get_type function.
5190
5191 2001-09-24  Havoc Pennington  <hp@redhat.com>
5192
5193         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
5194         gtktextlayout.c:
5195         Get rid of the newline-that-could-not-be-deleted; buffers may 
5196         now be zero-length. Much easier to fix than expected, once 
5197         I figured out the right way to do it. However, there are 
5198         various subtle bugs introduced by this that will have to get 
5199         sorted out. Please use bugzilla.
5200
5201 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
5202
5203         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
5204         response back from the window manager if our size hasn't changed 
5205         since we won't get a response back from the window manager;
5206         there was code in there to do this, but it was in the wrong
5207         place so if the hints change and the size didn't we'd expect
5208         a response.
5209
5210         Also, optimize the position-only-changed case by running
5211         the resize queue immediately, and clean up some comments
5212         for the changes.
5213
5214 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
5215
5216         * gtk/gtknotebook.h: Add a compat macro that got lost.
5217
5218         * gtk/gtktreestore.c: Doc fixes.
5219
5220         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
5221         leak for windows that receive events after being destroyed.
5222         (#60863, Joshua N. Pritikin)
5223
5224         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
5225         rather than gtk_container_queue_resize().
5226
5227         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
5228         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
5229         gtk_container_child_composite_name. (#60217.)
5230
5231 2001-09-22  Hans Breuer  <hans@breuer.org>
5232
5233         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
5234
5235 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
5236
5237         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
5238         weight value should be an int
5239
5240 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
5241
5242         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
5243         to gtk_menu_scroll_item_visible(). Only call
5244         gtk_menu_scroll_item_visible() if the menu widget has been
5245         realized. Fixes bug #55310.
5246
5247 2001-09-21  Havoc Pennington  <hp@redhat.com>
5248
5249         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
5250         key press to IM context if cursor isn't in an editable location;
5251         bug #58425, patch from Hidetoshi Tajima
5252
5253 2001-09-21  Havoc Pennington  <hp@redhat.com>
5254
5255         Bug #60862
5256         
5257         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
5258         (_gtk_text_btree_unref): fix up mark memory management
5259
5260         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
5261
5262 2001-09-20  Havoc Pennington  <hp@redhat.com>
5263
5264         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
5265         try to handle alignment here, because it's done by PangoLayout
5266         after we set the layout width. Fix from Dov.
5267
5268 2001-09-21  Hans Breuer  <hans@breuer.org>
5269
5270         * gdk/gdk.def :
5271         * gtk/gtk.def : updated externals
5272
5273         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
5274         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
5275         Also handle that Win32 pathes cann't be hard-coded      
5276
5277         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
5278         module, themes etc directory calculations
5279
5280         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
5281         >16 bit right. The size limit within Win9x appears _not_ to be 32767
5282         but slightly smaller ...
5283
5284         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
5285         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
5286
5287         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
5288
5289         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5290         handling. I'm not sure if it is better now, but at least not worse
5291
5292         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
5293
5294         * gdk/win32/gdkwin32.h : reflect recent API restrictions
5295
5296 2001-09-21  Matt Wilson  <msw@redhat.com>
5297
5298         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
5299         radio_menu_item->group to NULL after removing it from the list, as
5300         it is no longer in the group. (#60869)
5301
5302         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
5303
5304 2001-09-20  Havoc Pennington  <hp@pobox.com>
5305
5306         * configure.in (PANGO_REQUIRED_VERSION)
5307         (ATK_REQUIRED_VERSION): add variables and checks for specific 
5308         versions of dependencies. Previously we didn't verify the 
5309         Pango or ATk versions.
5310
5311 2001-09-09  Havoc Pennington  <hp@pobox.com>
5312
5313         * gtk/gtktextiter.c: fool with indentation
5314         (gtk_text_iter_in_range): add g_return_if_fail
5315
5316 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
5317
5318         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
5319         ref count on new tag to be 1.  Update doc.  (#60836)
5320
5321 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
5322
5323         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
5324         call to gdk_image_new_bitmap(). (#59094, reported by
5325         by Sven Neumann)
5326
5327 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
5328
5329         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
5330         day, as well as the current month and year.
5331         (#59047, reported by Vitaly Tishkov)
5332
5333 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
5334
5335         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
5336         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
5337         
5338 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
5339
5340         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
5341
5342         (build_option_menu): add func argument, connect ::changed
5343         signal to option menu instead of connecting the ::activate
5344         signal to the menu items,
5345
5346         (toplevel): get rid of RADIOMENUTOGGLED macro,
5347
5348         (list_toggle_sel_mode), (clist_toggle_sel_mode),
5349         (ctree_toggle_line_style), (ctree_toggle_expander_style),
5350         (ctree_toggle_justify), (ctree_toggle_sel_mode),
5351         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
5352         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
5353
5354         (notebook_type_changed): merged standard_notebook(),
5355         notabs_notebook(), scrollable_notebook() and borderless_notebook()
5356         into notebook_type_changed()
5357
5358         (create_list), (create_ctree), (create_notebook),
5359         (create_progress_bar): changed OptionMenuItem arrays into
5360         gchar * arrays. Removed "Extended" item where used.
5361
5362         Fixes bug #59885
5363
5364 2001-09-20  Sven Neumann  <sven@gimp.org>
5365
5366         * configure.in
5367         * gdk/Makefile.am
5368         * gtk/Makefile.am
5369         * gtk/gtkselection.c
5370         * gtk/gtktreeview.c
5371         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
5372
5373 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
5374
5375         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
5376         a missing pango_layout_iter_free ().
5377
5378 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
5379
5380         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
5381         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
5382
5383         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
5384         the function definition so we don't accidentally rely on
5385         the compat #define from gtk_radio_menu_item_group.
5386         (#60782, Jeff Franks)
5387
5388 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
5389
5390         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
5391         incorrect values for top, right and bottom due to cut-and-paste
5392         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
5393
5394 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
5395
5396         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
5397         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
5398         window, not just on the client leader. (#58463)
5399
5400 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
5401
5402         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
5403
5404         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
5405         non-public _gtk_menu_item_set_placement.
5406
5407         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
5408
5409 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
5410
5411         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
5412           gdk/linux-fb/gdkcolor-fb.c:
5413         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
5414         (#59723)
5415
5416 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
5417
5418         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
5419         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
5420         #59723)
5421
5422 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
5423
5424         Patch from Frank Belew #59037 for Solaris compilation.
5425
5426         * gtk/maketypes.awk: Change syntax slightly for a call
5427         to sub(), apparently making awk on Solaris happier.
5428
5429         * gtk/gtktreeview.c: Remove C++ comments.
5430
5431 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
5432
5433         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
5434         to handle '99% of the time. (#60473, reported by Christian Rose)
5435
5436         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
5437         which no longer exists. (#60379, reported by Vitaly Tishkov)
5438
5439 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
5440
5441         * Released 1.3.8.
5442
5443         * gdk/Makefile.am: kill EXTRA_DIST clearing.
5444         
5445 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
5446
5447         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
5448         as its broken in automake 1.4, add explicit object rule to
5449         generate this.
5450         
5451         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
5452         get rid of uneccessary stamps, group stuff more logically, and build
5453         sources due to object rules. fix srcdir!=builddir.
5454
5455 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
5456
5457         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
5458         incorrect parameter to compute_double_length
5459         (#58680, patch from Matthias Clasen)
5460
5461         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
5462
5463         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
5464
5465         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
5466         for GDK_RELEASE_MASK to avoid warnings with Forte.
5467
5468         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
5469         break; statements.
5470
5471 2001-09-18  Alex Larsson  <alexl@redhat.com>
5472
5473         * gtk/gtkcheckbutton.c:
5474         * gtk/gtkradiobutton.c:
5475         Don't draw with GTK_STATE_ACTIVE.
5476
5477         * gtk/gtkclist.c:
5478         * gtk/gtkctree.c:
5479         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
5480
5481         * gtk/gtktextdisplay.c:
5482         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5483         unfocused with base_gc [GTK_STATE_ACTIVE].
5484         
5485         * gtk/gtkentry.c:
5486         Add select all menu-item.
5487         Default cursor color is red.
5488         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5489         unfocused with base_gc [GTK_STATE_ACTIVE].
5490
5491         * gtk/gtklabel.[ch]:
5492         Add keynav + menu to selectable lables.
5493         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5494         unfocused with base_gc [GTK_STATE_ACTIVE].
5495
5496         * gtk/gtkfilesel.c:
5497         Add drag and drop support.
5498
5499         * gtk/gtkstyle.c:
5500         (This was checked in earlier)
5501         New default values for text/base SELECTED and ACTIVE
5502         
5503 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
5504
5505         * configure.in: up version to 1.3.8, interface age 0,
5506         binary age 0, depend on glib 1.3.8.
5507
5508         * NEWS: 1.3.8 updates.
5509
5510 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
5511
5512         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
5513         the editing code
5514
5515         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
5516         reason to call it beyond emiting the two signals.
5517
5518         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
5519         to GtkEntry.
5520
5521 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
5522
5523         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
5524           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
5525         PangoFontDescription.
5526
5527         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
5528         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
5529         structure.
5530   
5531         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
5532
5533         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
5534         direct access to style->font. Deprecate gtk_style_ref/unref.
5535   
5536         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
5537         Remove gtk_style_ref/unref with g_object_ref/unref.
5538   
5539         * gtk/gtkcalendar.c: Remove leftover macros accessing
5540         style->font.
5541   
5542         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
5543         variable.
5544   
5545         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
5546         style->font.
5547
5548 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
5549
5550         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
5551         "can_activate" properties in favor of
5552         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
5553         and GTK_CELL_RENDERER_MODE_EDITABLE
5554
5555 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
5556
5557         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
5558         editable widgets.  This function is private, and should only be
5559         used by GtkTreeView.
5560
5561 2001-09-18  Matt Wilson  <msw@redhat.com>
5562
5563         * docs/Makefile.am (EXTRA_DIST): don't use += before =
5564
5565         * docs/faq/Makefile.am (EXTRA_DIST): likewise
5566
5567         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
5568         
5569         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
5570         (EXTRA_HEADERS): likewise
5571
5572         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
5573         (EXTRA_HEADERS): likewise
5574         (EXTRA_DIST): likewise
5575         (CLEANFILES): likewise
5576
5577         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
5578
5579         * tests/Makefile.am (EXTRA_DIST): likewise
5580         
5581         * Makefile.am (install-data-local): changed to use
5582         install-data-hook, which runs after install-pkgconfigDATA, so that
5583         the pkgconfigdir will have been created and populated first.
5584
5585 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
5586
5587         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
5588         be the last big GtkTreeView API change.
5589
5590         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
5591         replace with "activate" and "start_editing".  Also, added a
5592         "can_activate" and "can_edit" property.
5593
5594         * gtk/gtktreeviewcolumn.c: modify to use above.
5595
5596 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
5597
5598         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
5599
5600 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
5601
5602         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
5603         icon instead of one with ugly white background.
5604
5605 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
5606
5607         * demos/gtk-demo/stock_browser.c (id_to_macro): make
5608         the uppercasing work. (#59550)
5609
5610 2001-09-14  Jakub Steiner <jimmac@ximian.com>
5611
5612         * gtk/stock-icons/dialog_error.png:
5613         * gtk/stock-icons/dialog_question.png: more road signs
5614
5615 2001-09-13  Jakub Steiner <jimmac@ximian.com>
5616
5617         * gtk/stock-icons/dialog_question.png:
5618         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
5619           like a road sign.
5620
5621 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
5622
5623         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
5624         signals to make them more clear.  Also, change ::range_changed to
5625         ::row_changed.
5626         * gtk/gtktreemodel.c: Adjust to interface change
5627         * gtk/gtktreemodel.h: ditto
5628         * gtk/gtktreemodelsort.c: ditto
5629         * gtk/gtktreestore.c: ditto
5630         * gtk/gtkliststore.c: ditto
5631         * gtk/gtktreeview.c: ditto
5632         * tests/testtreecolumns.c: ditto
5633         * gtk/gtkmarshal.list: Actually remove a marshaller!
5634
5635 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
5636
5637         * gtk/gtktextview.c
5638         Add support for Ctrl+Up/Down arrow to move cursor to beginning
5639         of previous/next paragraph. If within a paragraph cursor moves to
5640         beginning of that paragraph.
5641
5642 2001-09-12  Jakub Steiner <jimmac@ximian.com>
5643
5644         * gtk/stock-icons/dialog_question.png: replacing the shaky
5645           question mark with a sans-serif one.
5646         * gtk/stock-icons/stock_top.png, stock_bottom.png,
5647      stock_first.png, stock_last.png: using the new style arrows
5648         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5649      colors.
5650         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5651      color.
5652         * gtk/stock-icons/stock_zoom*: anti-aliased
5653         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5654      '-' with a '_', removed the wrong files
5655
5656 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
5657  
5658         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5659  
5660         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5661         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5662         than in gtk-2.0/major.minor.micro/<type>/. This
5663         works better for a search path for modules.
5664  
5665         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5666         gtk_binary_version variable holding major.minor.(micro-binary_age).
5667  
5668         * modules/input/Makefile.am (moduledir): Fix installation
5669         directory to match change in lookup location.
5670  
5671         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
5672         suffixes. Needs to be handled in g_module_build_path().
5673
5674         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5675         appropriate.
5676  
5677 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
5678
5679         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5680         causing RC properties not to work.
5681
5682 2001-09-11  Jakub Steiner <jimmac@ximian.com>
5683
5684         * gtk/stock-icons/dialog-error.png: less drastic
5685         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5686           "STOP" is international enough.
5687         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5688         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5689
5690 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
5691
5692         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5693         (add|remove)_selection_clipboard symmetric. (bug #59836)
5694
5695         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
5696         Avoid SEGV for empty tree. (bug #60243)
5697
5698 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
5699
5700         * tests/testgtk.c (create_idle_test): slight fix for
5701         g_object_set() not usable for nesting anymore.
5702
5703         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
5704         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5705         properties, supply ::shadow_type properties instead as most
5706         other widgets do.
5707
5708 2001-09-10  Alex Larsson  <alexl@redhat.com>
5709
5710         * demos/gtk-demo/stock_browser.c:
5711         * gdk/gdkcolor.c:
5712         * gdk/gdkfont.c:
5713         * gdk/gdkcursor.c:
5714         * gdk/gdkevents.c:
5715         * gdk/gdkrectangle.c:
5716         * gtk/gtktypeutils.c:
5717         Update to use the new g_boxed_type_register_static API.
5718
5719 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5720
5721         * gtk/gtktreestore.c:
5722         Fix looping in gtk_tree_store_init() waiting for zero random int.
5723
5724 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
5725
5726         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5727         behaviour which havoc broke. they have to default to 1.0 for
5728         expand behaviour.
5729
5730         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5731
5732 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
5733
5734         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5735         Amend previous change to avoid runtime error in g_param_spec_ref()
5736
5737 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
5738
5739         * gtk/gtkrc.c (insert_rc_property): Fix blank line
5740         in the wrong place.
5741
5742 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
5743
5744         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5745         do a lookup immediately after creating style->property_cache,
5746         since bsearch crashes on zero length for Solaris.
5747         (Found by Padraig O'Briain.)
5748
5749 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5750
5751         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5752         Really return NULL if not set.
5753         (gtk_widget_init): Remove unused varaible.
5754         
5755 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
5756
5757         * configure.in:
5758         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5759         in cvs.
5760
5761 2001-09-08  Havoc Pennington  <hp@pobox.com>
5762
5763         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
5764         people might want to use
5765
5766 2001-09-08  Havoc Pennington  <hp@pobox.com>
5767
5768         * gtk/gtkalignment.c (gtk_alignment_class_init): default
5769         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5770
5771         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5772
5773         * gtk/gtktextiter.c: fix docs
5774         (gtk_text_iter_spew): get rid of this
5775
5776         * gtk/gtklayout.c: docs
5777
5778         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5779         to center image and label together, instead of having image on
5780         left and label centered, patch/suggestion from Jacob
5781
5782         * gtk/gtkdialog.c: docs
5783
5784 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
5785
5786         * gtk/gtkliststore.c: Write documentation
5787         * gtk/gtktreestore.c: Write documentation
5788
5789 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
5790
5791         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5792         with GArray and bsearch(), to remove dependency on a still
5793         evolving interface that we want to keep private to glib/gobject. 
5794
5795 2001-09-08  Havoc Pennington  <hp@pobox.com>
5796
5797         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5798         docs fixes
5799
5800         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5801
5802         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5803
5804         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5805
5806         * gtk/gtkscrolledwindow.h: docs fixes
5807
5808         * gtk/gtkimage.c (gtk_image_new): docs fixes
5809
5810 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
5811
5812         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
5813         false alarm  constness warning with a cast.
5814
5815         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5816         for the inside-gdk case.
5817
5818 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
5819
5820         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5821         remove g_print.
5822
5823         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5824         change models, #59899
5825
5826 2001-09-07  Havoc Pennington  <hp@pobox.com>
5827
5828         * gtk/gtkmain.c: move some docs inline
5829
5830 2001-09-07  Havoc Pennington  <hp@pobox.com>
5831
5832         * gtk/gtk.h: tsk tsk, jrb broke the build
5833
5834 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
5835
5836         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5837         Removed 'fill' attribute.  It was silly b/c that was a property of
5838         the cell renderer, anyway.
5839         (gtk_tree_view_column_render): Actually render the packed
5840         renderers.
5841         * doc/tree-column-sizing.txt: initial devel documentation.
5842         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5843         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5844
5845         * tests/testtreefocus.c: fix up to reflect above changes.
5846         * tests/testtreeview.c: ditto
5847         * demos/gtk-demo/stock_browser.c: ditto
5848
5849 2001-09-07  Alex Larsson  <alexl@redhat.com>
5850
5851         * gdk/linux-fb/gdkcolor-fb.c:
5852         Removed unused function.
5853         
5854         * gdk/linux-fb/gdkdrawable-fb2.c
5855         * gdk/linux-fb/gdkfont-fb.c:
5856         Use PangoLanguage functions.
5857
5858         * gdk/linux-fb/gdkinput.c:
5859         * gdk/linux-fb/gdkselection-fb.c:
5860         Fix const warnings.
5861         
5862         * gdk/linux-fb/gdkwindow-fb.c:
5863         Fix warning. Implement gdk_window_set_icon_list() and
5864         gdk_window_get_frame_extents(). (No icon support yet though.)
5865
5866         * gtk/gtkwindow.c (gtk_window_get_position):
5867         If window->frame is set get the extents of it instead.
5868         
5869 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
5870
5871         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
5872         Make the default default colormap the GdkRGB colormap,
5873         not the system colormap.
5874
5875         * gtk/gtkinvisible.c (gtk_invisible_init) 
5876           gtk/gtkwindow.c (gtk_window_init): Set the current
5877         colormap, as returned by _gtk_widget_peek_colormap()
5878         on the widget.
5879
5880         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5881         to GTK+. Make it return %NULL instead of the default
5882         colormap if no colormap has explicitely been pushed.
5883
5884         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5885         colormaps on ancestral widgets before defaulting the
5886         the system default colormap.
5887
5888         * docs/Changes-2.0.txt: explain colormap changes.
5889
5890 2001-09-07  Havoc Pennington  <hp@redhat.com>
5891
5892         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
5893         #57424
5894
5895 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
5896
5897         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
5898         make gdk_set_use_xshm a noop. Remove --no-xshm command line
5899         option. If we aren't autodetecting properly, we need
5900         to fix the problem, or at least make it an environment
5901         variable setting, to avoid problems with propagating
5902         to embedded children, plugins, etc.
5903
5904         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5905
5906         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5907         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5908         New function to render a pixmap and mask for a particular colormap.
5909
5910         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5911         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5912         of internal implementation of the same.
5913
5914 2001-09-07  Havoc Pennington  <hp@redhat.com>
5915
5916         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5917         debug code that seems to have caused a breakpoint in valid cases
5918         
5919         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5920         pointer on the first view when adding the second view, fixes
5921         crash when closing gtk-demo text test with active selection
5922
5923         * gtk/gtktextbuffer.c
5924         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5925         clipboards in the list of clipboards - probably fixes #59836
5926
5927 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
5928
5929       Make gdkx.h the only installed header from gdk/x11.
5930       All structures in gdk/x11 are opaque.
5931
5932         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5933         Don't install gdk{drawable,pixmap,window}-x11.h.
5934
5935         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
5936         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
5937         GdkVisualClass into C files.
5938
5939         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5940
5941         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5942         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5943         Add public functions to replace previously exported direct
5944         structure access.
5945         gdk_x11_colormap_get_{xdisplay,xcolormap} 
5946         gdk_x11_cursor_get_{xdisplay,xcursor},
5947         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
5948         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5949         gdk_x11_gc_get_{xdisplay,ximage}
5950         
5951         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5952         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5953
5954       Fix a number of variables and functions that were exported
5955       "accidentally" from GDK.
5956
5957         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5958         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
5959         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5960         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5961         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5962         gdk_event_queue_find_first, gdk_event_queue_remove_link,
5963         gdk_event_queue_append, gdk_event_button_generate,
5964         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5965
5966         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
5967            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5968         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
5969         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5970         gdk_use_xshm, gdk_input_ignore_core.
5971
5972         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5973         #defines to namespace functions into the private _gdk_ 
5974         namespace.
5975
5976         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5977         to replace gdk_parent_root exported variable. Adjust and
5978         deprecate GDK_ROOT_PARENT().
5979
5980         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5981         GDK_ROOT_PARENT usage, remove includes of port-specific
5982         headers.
5983
5984         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
5985         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
5986         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5987
5988         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5989         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
5990         gdk_wm_delete_window functions, gdk_wm_take_focus, 
5991         use gdk_atom_intern() instead.
5992
5993         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5994           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
5995           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5996           gtk/gtkselection.c 
5997         Unexport gdk_selection_property, just use 
5998         gdk_atom_intern ("GDK_SELECTION").
5999
6000         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
6001         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
6002         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
6003         GdkVisualprivate, gdk_x11_gc_flush.
6004
6005       Make a number of public exports of variables into functions
6006       to increase encapsulation.
6007
6008         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
6009         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
6010         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
6011
6012         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
6013         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
6014         gdk_error_warnings.
6015
6016         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
6017           docs/Changes-2.0.txt: 
6018         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
6019         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
6020         Add gdk_x11_get_default_xdisplay().
6021
6022         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
6023         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
6024         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
6025         Don't export gdk_progclass, move --class command line
6026         option and handling to common portion of GDK.
6027
6028       Miscellaneous fixes:
6029
6030         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
6031         g_return_val_if_fail that should have been g_return_if_fail.
6032
6033         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
6034         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
6035
6036         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
6037         X11 dependency.
6038
6039         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
6040         Remove unused gdk_key_repeat_disable/restore.
6041
6042         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
6043         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
6044         Remove unused gdk_null_window_warnings variable.
6045
6046         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
6047         it can be retrieved from the repository; it is too far
6048         from functional to be worth having people check out;
6049         it would be easier to start from scratch, I suspect.
6050
6051         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
6052
6053         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
6054         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
6055         Fix some accidentally global variables and unused global variables.
6056
6057         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
6058         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
6059         Fix some accidentally global variables and unused global variables.
6060
6061       Add some space for future expansion to multihead.
6062
6063         * gdk/gdkdrawable.h: Add four reserved function pointers
6064         for future expansion of GdkDrawableClass.
6065
6066         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
6067         where we can put a GdkScreen * later.
6068
6069 2001-09-07  Havoc Pennington  <hp@redhat.com>
6070
6071         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
6072         adjustments after validating destination yrange; fixes #53918
6073         (This may cause other issues, but I hope it won't)
6074         
6075 2001-09-05  Havoc Pennington  <hp@redhat.com>
6076
6077         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
6078         line into start line, update the character counts in parent nodes; 
6079         caused a bug when end and start line had different parent nodes.
6080
6081 2001-08-30  Havoc Pennington  <hp@redhat.com>
6082         
6083         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
6084         assertion that tag is in a table
6085
6086 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
6087
6088         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
6089         g_strcasecmp on NULL strings. (#59058)
6090
6091 2001-09-06  Alex Larsson  <alexl@redhat.com>
6092
6093         * gtk/gtkbin.c:
6094         * gtk/gtkfontsel.c:
6095         * gtk/gtkspinbutton.c:
6096         * gtk/gtktipsquery.c:
6097         Use GtkType/GType instead of uint.
6098
6099 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
6100
6101         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
6102         sort column.
6103
6104         * gtk/gtktreestore.c (gtk_list_store_init): ditto
6105
6106         * gtk/gtktreesortable.c: add docs.
6107
6108 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
6109
6110         * Version 1.3.7
6111
6112         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
6113         docs for gtk-config
6114
6115         * modules/input/Makefile.am (install-data-local): Don't
6116         run gtk-query-immodules if DESTDIR is set.
6117
6118         * NEWS: Various additions.
6119
6120 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
6121
6122         * NEWS: updates for 1.3.7 release.
6123
6124 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
6125
6126         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
6127         handle default sort feature
6128
6129         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
6130         new function to handle default sort.
6131         (gtk_tree_sortable_has_default_sort_func): check if default sort
6132         is set.
6133
6134         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
6135         handle default sort feature
6136
6137 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
6138
6139         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
6140         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
6141         #59731
6142
6143 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
6144
6145         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
6146         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
6147         time, #59727
6148
6149         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
6150         correctly.
6151
6152 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
6153
6154         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
6155         so that we don't eternally update the keymap after we
6156         get a change notification.
6157
6158         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
6159         incorrect cast.
6160
6161 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
6162
6163         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
6164         it working. It mostly works now, although there're still a few issues
6165         to be worked out.
6166
6167         * tests/testtreesort.c (main): changes to have a better test
6168         application for the GtkTreeModelSort.
6169
6170 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
6171
6172         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
6173         fix for bug #59222.
6174
6175         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
6176         gpointer search_data argument to function definition and
6177         prototype, to match GtkTreeViewSearchEqualFunc typedef.
6178
6179 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
6180
6181         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
6182         per jrb's request.
6183
6184 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
6185
6186         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
6187
6188         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
6189
6190 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
6191
6192         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
6193         Instead of always mirroring the selection to a single PRIMARY
6194         selection, allow it to be mirrored to any number of clipboards.
6195
6196         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
6197         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
6198
6199         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
6200         GtkClipboard argument, and for paste_clipboard, the
6201         @override_location argument from @paste_primary.
6202
6203         * gtk/gtktextview.c: Adapt to above change.
6204         
6205 2001-08-30  Havoc Pennington  <hp@redhat.com>
6206
6207         * gtk/gtktextview.c (invalidated_handler): put validate idle at
6208         resize - 2 just for flexibility
6209
6210 2001-08-30  Havoc Pennington  <hp@redhat.com>
6211
6212         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
6213         object from the empty-child-anchor case by drawing a little box.
6214         
6215         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
6216         if the child anchor has no anchored widgets - fixes #59328.
6217
6218         Also, remove bizarre deletion of preedit string that seems to have
6219         gotten in here somehow.
6220
6221 2001-08-30  Havoc Pennington  <hp@redhat.com>
6222
6223         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
6224         to #58420 from Hidetoshi Tajima and Matthias Clasen
6225
6226 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
6227
6228         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
6229         change color when the GtkTreeView loses focus.
6230
6231         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
6232         ditto.
6233         
6234         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
6235
6236 2001-08-28  Havoc Pennington  <hp@pobox.com>
6237
6238         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
6239
6240 2001-08-28  Havoc Pennington  <hp@pobox.com>
6241
6242         * demos/gtk-demo/main.c (setup_default_icon): add default icon
6243
6244         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
6245         warning fix
6246         (gtk_radio_button_new_with_label): warning fix
6247
6248         * gtk/gtkdnd.c: used some random GtkImage private structs, 
6249         update to reflect GtkImage changes
6250
6251         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
6252         whether the hint is supported, just always set the icon. A task
6253         list might want to use it even if the WM doesn't, and the WM may
6254         change over time. Also, XDeleteProperty() if list == NULL.
6255
6256         * gtk/gtkwindow.c (gtk_window_set_icon_list)
6257         (gtk_window_get_icon_list)
6258         (gtk_window_set_icon)
6259         (gtk_window_get_icon)
6260         (gtk_window_set_default_icon_list)
6261         (gtk_window_get_default_icon_list):
6262         new functions
6263
6264         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
6265
6266         * gtk/gtkimage.c: Implement property support, bug #59408
6267
6268         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
6269         on reparent-without-removing-first a bit more helpful.
6270         Let's just destroy this FAQ.
6271
6272 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
6273
6274         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
6275         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
6276
6277 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
6278
6279         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
6280         of use_text_format to the end of the function. (#56447)
6281
6282 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
6283
6284         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
6285         only in response to an area_prepared signal.
6286
6287 2001-08-28  Alex Larsson  <alexl@redhat.com>
6288
6289         * gtk/gtkwidget.c (gtk_widget_class_init):
6290         Make unrealize GTK_RUN_LAST.
6291
6292 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
6293
6294         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
6295         with_label and with_mnemonic should create radio buttons, not
6296         check buttons
6297
6298 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
6299
6300         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
6301         * tests/treestoretest.c (make_window): ditto
6302         * demos/gtk-demo/main.c (create_tree): ditto
6303         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
6304
6305 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
6306
6307         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
6308         GTK selection types rather than GtkTreeSelectionMode.
6309
6310         * docs/Changes-2.0: Add comment about selection change.
6311
6312 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
6313
6314         * gtk/gtkenums.h (GtkSelectionMode): deprecate
6315         GTK_SELECTION_EXTENDED.
6316
6317         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
6318         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
6319
6320         * gtk/gtkctree.c: ditto
6321
6322         * gtk/gtklist.c: ditto
6323
6324         * gtk/gtktree.c: ditto
6325
6326 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
6327
6328         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
6329         of typos in compat macros. (#59624, Skip Montaro)
6330
6331 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
6332
6333         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
6334         macro.
6335
6336          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
6337  
6338         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
6339         interface to be a standard setter from gtk_menu_item_right_justify.
6340         (gtk_menu_item_get_right_justified): a getter to go with the setter
6341
6342         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
6343         gtk_menu_item_right_justify.
6344
6345         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
6346         gtk_menu_item_set_right_justified.
6347  
6348 2001-08-27  Jens Finke <jens@gnome.org>
6349
6350         * gtk+.spec.in: Updated to match gpp requirements, reworked the
6351         files section to make it work with 1.3.x releases.
6352
6353 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
6354
6355         * gtk/gtkbutton.[ch]:
6356         Add properties for labels, mnemonics and stock items.
6357         Added C accessor functions for the properties.
6358         Removed deprecated button->child.
6359
6360         * gtk/gtkradiobutton.c:
6361         * gtk/gtktogglebutton.c:
6362         Update to use the functions in GtkButton.
6363
6364         * gtk/gtkcheckbutton.c:
6365         Update to use the functions in GtkButton.
6366         Changed size allocation of child. Now only gets as much
6367         space as it requests.
6368
6369         * gtk/gtkclist.c:
6370         Don't use GtkButton->child
6371
6372         * gtk/gtklabel.c:
6373         Fixed typo in docs
6374         
6375 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
6376
6377         * tests/testgtk.c:
6378         * tests/Makefile.am:
6379         Ressurect the properties test.
6380         I don't care if it is inferior, I just want to test my property code.
6381
6382 2001-08-25  Chema Celorio  <chema@celorio.com>
6383
6384         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
6385         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
6386         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
6387
6388 2001-08-24  Havoc Pennington  <hp@pobox.com>
6389
6390         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
6391         these are already in gtkmenu.h, and the copies
6392         here were broken.
6393
6394         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
6395
6396         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
6397         special-case bitmaps to allow no colormap
6398         (bitmap1): implement no-colormap bitmap-getting
6399         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
6400         alpha
6401         (rgb8): indentation
6402         (rgb1a, rgb1): change the way we read the data out of the image, 
6403         old way didn't seem to work quite right.
6404
6405         I'm pretty sure a lot of the rgbconvert code is still broken.
6406         
6407         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
6408         above position constraint (I really intended to do this before,
6409         don't know what's up with that)
6410         (gtk_XParseGeometry): shut up gcc
6411
6412         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
6413         and "0" should have been. remove the attempted 4-bytes-at-once
6414         optimization, it was totally broken.
6415
6416 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
6417
6418         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
6419         on push to buttons (based on patch from Soeren Sandmann, #54720)
6420
6421           - Add child_displacement_x/y style properties to control how far the
6422             child moves when the button is depressed.
6423
6424           - Add non-exported function _gtk_button_set_depressed to clean
6425             up the handling of the in/out shadow and separate it frmo
6426             widget->state.
6427
6428           - Lots of code cleanup and simplification of state handling
6429             for GtkButton/GtkToggleButton.
6430  
6431         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
6432         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
6433
6434 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
6435
6436         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
6437         and make gtk_image_new() take no arguments. The compiler will
6438         catch it, and it is vastly more useful than having
6439         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
6440
6441         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
6442         to add tearoff-title property (#51319, Lee Mallabone)
6443
6444 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
6445
6446         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
6447         gtk_menu_item_configure(). (#58925)
6448
6449 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
6450
6451         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
6452         "use_align" to give people the option to just make a cell visible.
6453
6454         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
6455         we were scrolling past the end of the tree.
6456
6457         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
6458         rename gtk_tree_view_column_pack_start_cell_renderer to
6459         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
6460
6461 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
6462
6463         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
6464         a stray g_object_ref() left over from gtk_object_ref/sink.
6465         (Pointed out by Josh Pritikin.)
6466
6467 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
6468
6469         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
6470         to gtk_container_get_children. Added deprecated compatibility
6471         macro. (Suggested by Vitaly Tishkov, #59051)
6472
6473         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
6474         calls.
6475
6476 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
6477
6478         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
6479         gtk_menu_bar_append/prepend/insert, forgot to do this
6480         when we deprecated gtk_menu_append/prepend/insert.
6481
6482         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
6483         compat macros.
6484
6485         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
6486         renamed by compat macro.
6487
6488         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
6489         gtk_font_selection_dialog_get_font(). (Suggested by
6490         Vitaly Tishkov, #59383)
6491
6492 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
6493
6494         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
6495         Rename from gtk_text_tag_table_size(). (#59366)
6496
6497 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
6498
6499         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
6500         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
6501         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
6502         (#59173).
6503
6504 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
6505
6506         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
6507         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
6508         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
6509
6510 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
6511
6512         [ Patch from Sebastian Wilhelmi, 52790 ]
6513
6514         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
6515
6516         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
6517         Move compatibility macros from g[dt]kcompat.h to within 
6518         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
6519
6520         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
6521
6522         * demos/Makefile.am demos/gtk-demo/Makefile.am 
6523           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
6524           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
6525
6526         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
6527                  testpixbuf.c}: Fix usages of deprecated functions.
6528
6529 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
6530
6531         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
6532         when changing models.
6533
6534 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
6535
6536         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
6537         We check the current event for modifiers rather than try to trap
6538         all presses.
6539
6540 2001-08-22  Anders Carlsson  <andersca@gnu.org>
6541
6542         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
6543         It's LIST_STORE, not LISTSTORE.
6544
6545 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
6546
6547         * gtk/gtk.h: Remove commented out gtkpacker reference.
6548
6549 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6550
6551         * configure.in (all_loaders): Add tga loader, 
6552         patch by Nicola Girardi. (#56067)
6553
6554 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
6555
6556         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
6557         a little.  More needs to be done tomorrow.
6558
6559 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
6560
6561         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
6562
6563 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
6564
6565         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
6566         reported by Kristian Rietveld <kristian@planet.nl> to handle row
6567         == NULL.
6568         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
6569         <kristian@planet.nl> to change destroy order.
6570
6571 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
6572
6573         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
6574         correct marshaller.
6575
6576 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
6577
6578         * gtk/gtkliststore.c: Fix up warnings, #58928.
6579
6580         * gtk/gtktreeselection.h: Change signal prototype, #58647
6581
6582         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
6583         #59221.
6584
6585         * gtk/gtkstyle.c: Actually prelight arrow, #50981
6586         
6587 2001-08-18  Hans Breuer  <hans@breuer.org>
6588
6589         * gdk/gdk.def : updated externals
6590
6591         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
6592         is required to get (at least) visible in entry fields. Some selections
6593         are really handled now - even on win32 - but copying via middle
6594         mouse button into a different app needs to wait ... 
6595
6596         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
6597         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
6598
6599         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6600         handling. I'm not sure if it is better now, but at least not worse
6601
6602         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
6603         with SetWindowPos () which allows more fine-tuning backing-store wise
6604
6605         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
6606         Also changed move/resize to be more like the X version.
6607
6608         * gtk/gtk.def : updated externals
6609
6610 2001-08-19  Sven Neumann  <sven@gimp.org>
6611
6612         * gtk/gtktooltips.c
6613         * tests/testtreesort.c
6614         * tests/treestoretest.c: inserted some casts to get rid of compiler
6615         warnings.
6616
6617 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
6618
6619         * gtk/gtktreeviewcolumn.c
6620         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
6621
6622         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
6623         (_gtk_tree_view_find_node): If *node is NULL,
6624         *tree should be NULL too.
6625
6626         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
6627         column/renderers.
6628         * tests/testtreecolumns.c: ditto
6629         * tests/testtreefocus.c: ditto
6630         * tests/testtreesort.c: ditto
6631         * tests/testtreeview.c: ditto
6632         * tests/treestoretest.c: ditto
6633
6634 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
6635
6636         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
6637         signals; is_expander/is_expanded.
6638
6639         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
6640         pixbufs.
6641
6642         * gtk/gtktreeview.c: set above properties.
6643
6644 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
6645
6646         * gtk/gtkwidget.h: Really remove set_default_style().
6647
6648         * docs/Changes-2.0.txt: added a note about
6649         gtk_widget_push/pop/set_default_style.
6650
6651 2001-08-18  Havoc Pennington  <hp@pobox.com>
6652
6653         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6654         hints_changed in addition to the other cases.
6655         (gtk_window_move_resize): include last position from configure
6656         notify in debug spew
6657
6658 2001-08-18  James Henstridge  <james@daa.com.au>
6659
6660         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6661         second argument to the weak ref notify, cleaning up some uglyness.
6662         (gtk_accel_group_attach): remove and add the weak notifier when
6663         changing the accel groups slist.
6664         (gtk_accel_group_detach): same here.
6665
6666 2001-08-17  Darin Adler  <darin@bentspoon.com>
6667
6668         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6669         missing parameters to utf8 functions to make it compile.
6670
6671 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
6672
6673         * gtk/gtktreeprivate.h:
6674         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6675         (gtk_tree_view_init), (gtk_tree_view_set_property),
6676         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6677         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6678         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6679         (gtk_tree_view_set_destroy_count_func),
6680         (gtk_tree_view_set_enable_search),
6681         (gtk_tree_view_get_enable_search),
6682         (gtk_tree_view_get_search_column),
6683         (gtk_tree_view_set_search_column),
6684         (gtk_tree_view_get_search_equal_func),
6685         (gtk_tree_view_set_search_equal_func),
6686         (gtk_tree_view_search_dialog_destroy),
6687         (gtk_tree_view_search_position_func),
6688         (gtk_tree_view_interactive_search),
6689         (gtk_tree_view_search_delete_event),
6690         (gtk_tree_view_search_button_press_event),
6691         (gtk_tree_view_search_key_press_event),
6692         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6693         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6694         * gtk/gtktreeview.h:
6695         Add heavily modified patch from Kristian Rietveld to handle
6696         interactive searching.
6697
6698 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
6699
6700         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6701         string parameter.
6702
6703         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6704         GtkMenuShell::selection_done, now that we have it, instead of 
6705         ::deactivate so we're not tearing the menu apart and notify
6706         the user prematurely.
6707
6708 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
6709
6710         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6711         window, clear window->need_default_position to avoid infinite loops.
6712         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6713
6714 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
6715
6716         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6717         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6718         (gtk_tree_view_set_property): don't cast possible NULL objects.
6719         (gtk_tree_view_destroy): reset the model to NULL.
6720
6721         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6722         parent_class handler.
6723
6724 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6725
6726         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6727
6728 2001-08-17  Anders Carlsson  <andersca@gnu.org>
6729
6730         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6731         point numbers so that the result will be floating point.
6732
6733 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6734
6735         * tests/testgtk.c (create_handle_box): 
6736         (create_toolbar): Replace gtk_window_set_policy calls by
6737         gtk_window_set_resizable.
6738
6739 2001-08-16  Jakub Steiner <jimmac@ximian.com>
6740
6741         * gtk/stock-icons/dialog_info.png: new style bulb
6742         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6743         * gtk/stock-icons/dialog_warning.png: need a hand?
6744         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
6745           the aa border gets chopped off ok
6746         * gtk/stock-icons/stock_colorselector.png: using the new hand
6747         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
6748           this one is for, but the old icon was butt ugly.
6749         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6750         * gtk/stock-icons/stock*_insert_object.png: "
6751         * gtk/stock-icons/stock_index.png: using new hand icon
6752         * gtk/stock-icons/stock*_new.png: the document template being used 
6753           elsewhere too
6754         * gtk/stock-icons/stock*_print*.png: new print and print preview 
6755           icons (panel/menu)  
6756         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
6757           icons based on Tuomas' floppy image.
6758         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6759         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6760         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6761         * gtk/stock-icons/stock*_undelete.png: "
6762         * gtk/stock-icons/stock_preferences.png: I have a version with a 
6763           document base if the sliders are no good.
6764         * gtk/stock-icons/stock_properties.png: properties 
6765         
6766
6767         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
6768           (tigert@ximian.com) clipboard icons
6769         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6770         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6771         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6772           little bigger IMHO
6773
6774 2001-08-16  Sven Neumann  <sven@gimp.org>
6775
6776         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6777
6778 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
6779
6780         * gtk/gtkcellrenderertext.c:
6781         Avoid warning when specifying NULL for "attributes" property
6782
6783 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6784
6785         * docs/debugging.txt: Add a warning about --enable-debug=no,
6786         some editorial changes.
6787
6788 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6789
6790         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
6791         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
6792         debugging info, remove unused debug flags. (#58330)
6793
6794 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
6795
6796         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
6797         (gtk_tree_selection_select_all): Remove strict checking for rows.
6798
6799 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6800         
6801         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
6802         Don't remove the tooltip window when the tip text changes. (#15891)
6803
6804 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
6805
6806         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6807         $(srcdir).
6808
6809 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
6810
6811         * Makefile.am (EXTRA_DIST): Fix problem with trying to
6812         dist files from intl/, which is no longer there.
6813
6814 2001-08-11  Hans Breuer  <hans@breuer.org>
6815
6816         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6817           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
6818           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
6819           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
6820           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6821           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6822
6823         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6824           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6825         GDK_TYPE_EVENT signals
6826
6827         * gtk/gtkalignment.c : removed 'direct allocation bug',
6828         which Tim discovered while reading the patch
6829
6830 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
6831
6832         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6833         compat macros for push/pop/set_visual that were supposed
6834         to be added a long time ago, but got dropped. 
6835
6836 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
6837
6838         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6839         property notifies.
6840
6841 2001-08-07  Havoc Pennington  <hp@pobox.com>
6842
6843         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6844
6845         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6846         some fixage is needed here, but nothing simple. Owen understands
6847         it. ;-)
6848
6849         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6850         sizing and positioning.  Also, fix bug in compute_geometry_hints
6851         (width/height confusion for setting min size). 
6852         (gtk_window_move): new function
6853         (gtk_window_resize): new function
6854         (gtk_window_get_size): new function
6855         (gtk_window_get_position): new function
6856         (gtk_window_parse_geometry): new function
6857         
6858         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6859         (gtk_widget_get_size_request): new function
6860         (gtk_widget_get_usize): delete, that was a short-lived function
6861         ;-)
6862         (gtk_widget_set_usize): deprecate
6863         (gtk_widget_set_uposition): deprecate, make it a trivial 
6864         gtk_window_move() wrapper
6865         (gtk_widget_class_init): remove x/y/width/height properties,
6866         add width_request height_request
6867         
6868         * demos/*: update to avoid deprecated functions
6869         
6870         * gtk/gtklayout.c: add x/y child properties
6871
6872         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
6873         uses of "gint16"
6874
6875         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6876         sizing test
6877
6878         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6879         configure events on toplevel windows are always in root window
6880         coordinates, following ICCCM spec that all synthetic events 
6881         are in root window coords already, while real events are 
6882         in parent window coords. Previously the code assumed that 
6883         coords of 0,0 were parent window coords, which was 
6884         really broken.
6885   
6886         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6887         warning
6888  
6889         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
6890         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
6891         hints in gtk_window_parse_geometry()
6892  
6893         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6894         new USER_POS USER_SIZE hints    
6895
6896 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6897
6898         * tests/prop-editor.c (properties_from_type): Use 
6899         g_object_class_list_properties to get the param specs 
6900         for a given type. (#58609)
6901
6902 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6903
6904         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6905         free the text_aa parts. (#57549)
6906
6907 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6908
6909         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6910         not the foreground color. (#57621)
6911
6912 2001-08-09  Alexander Larsson <alexl@redhat.com>
6913
6914         * gdk/win32/gdkfont-win32.c:
6915         Update to the new pango win32 api.
6916
6917 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
6918
6919         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6920         COMPOUND_TEXT instead of TEXT
6921         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6922         interpret the return value of g_string_to_compound_text()
6923         (#55152)
6924
6925 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6926
6927         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6928         fail if iter is NULL. (#58347)
6929
6930 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6931
6932         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6933         some off-by-one issues, fixing selection of line-ends. (#50323)
6934
6935 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
6936
6937         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6938         functions in order to make mouse operation work again in the
6939         color wheel. (#58604)
6940
6941 2001-08-07  James Henstridge  <james@daa.com.au>
6942
6943         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6944         the accelerator when the accel object is changed.  Fixes bug
6945         #58628.
6946
6947 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
6948
6949         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6950         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6951         (gnome bugzilla #58202)
6952
6953 2001-08-06  Havoc Pennington  <hp@pobox.com>
6954  
6955         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
6956         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
6957         it was expecting a GdkWindow, not a GdkWindowImplX11.
6958  
6959         Also, we were getting the window rect in screen coords 
6960         and the screen rect in window coords then intersecting 
6961         them; instead, get window rect in window coords.
6962  
6963         Finally, there were codepaths that resulted in a stuck server grab
6964         (when the window was fully onscreen, or on gdk_image_new()
6965         failure); make the server ungrab thing a bit more
6966         robust/consistent.
6967
6968 2001-08-06  Sven Neumann  <sven@gimp.org>
6969
6970         * gdk/gdkpango.c (gdk_pango_context_destroy): 
6971         check if info->colormap != NULL before unref'ing it. It might have
6972         been set to NULL using gdk_pango_context_set_colormap().
6973
6974 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
6975
6976         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
6977         Fix conversion from float to int so that we don't get
6978         skew in the int => float => int roundtrip. 
6979         (#58120, reported by Vitaly Tishkov). Also fix problem
6980         where if no alpha was set, the returned alpha
6981         from (say) set_current_alpha() was returned as 1, not 65535.
6982
6983 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
6984
6985         * gtk/gtklist.c (gtk_list_clear_items): Fix
6986         problem with selecting a new focus child.
6987
6988         * gtk/gtklist.c (gtk_list_clear_items): Clear 
6989         list->undo/list_focus_child after unparenting
6990         child, since unparenting the child can result
6991         in list->last_focus_child being set. (#58024)
6992
6993         * Makefile.am (SUBDIRS): Add target specific pc
6994         files to DISTCLEANFILES.
6995
6996         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6997         (58327, Matthias Clasen)
6998
6999 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
7000
7001         * tests/testgtk.c: Patch from Hans (with various modifications),
7002         to add the ability to use testgtk as a rough-and-ready
7003         benchmark. Try, 'testgtk --bench all:5' (if you want decent
7004         numbers, run without a window manager)
7005
7006 2001-08-04 Alexander Larsson <alexl@redhat.com>
7007
7008         * gdk/win32/gdkinput.c:
7009         Add #ifdef HAVE_WINTAB around wintab.h include.
7010
7011         * gtk/gtk.def:
7012         Removed marshals that have been moved to glib.
7013         Commented out plug and socket. They didn't compile for me 
7014         on win32.
7015
7016 2001-08-04  Hans Breuer  <hans@breuer.org>
7017
7018         * gtk/stocks-icons/makefile.msc : new file
7019         * gtk/makefile.msc.in : use it
7020
7021         * gtk/gtkstyle.c : not all platforms do provide M_PI and
7022         friends, but luckily there is G_PI
7023
7024         * gtk/gtk.def : updated
7025
7026         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
7027         windows WS_POPUP, but only those without a parent. This fixes the 
7028         mis-alignment between the selectable (temp, input only) window and 
7029         the window text of GtkLabel.
7030
7031         (gdk_window_show) : respect private->state when actually showing
7032         the window.
7033
7034         (gdk_window_set_transient_for) : Implementation from Wolfgang 
7035         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
7036         error handling. Should fix #50586.
7037
7038         * gdk/win32/gdkevents-win32.c : beautify log output
7039
7040 2001-08-04  Michael Natterer  <mitch@gimp.org>
7041
7042         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
7043         Need to show the image after adding it to the GtkImageMenuItem.
7044         This used to work without in testgtk because of the
7045         gtk_widget_show_all() at the end of the function.
7046         (Closes #54978).
7047
7048 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
7049
7050         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
7051         (gtk_notebook_set_child_property): fix finding of child's page,
7052         since we have to validly deal with labels and menus here as well.
7053         (gtk_notebook_get_child_property): fix warning.
7054         (gtk_notebook_class_init): property tab_pack is of type
7055         GTK_TYPE_PACK_TYPE (enum) not boolean.
7056         (gtk_notebook_find_child): don't always warn, we might be looking
7057         for a label or menu child.
7058         (gtk_notebook_map): fix mapping of panel.
7059
7060         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
7061         widget's mapped state, regardless of the value being set equals
7062         old settings, since things like REALIZED(parent) or MAPPED(parent)
7063         may have changed since the old value was set. make it an error to
7064         invoke this function on a toplevel widget.
7065
7066 2001-07-31  Darin Adler  <darin@bentspoon.com>
7067
7068         * gdk/gdkprivate.h:
7069         * gdk/x11/gdkx.h:
7070         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
7071
7072         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
7073         GTK_OBJECT.
7074
7075 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
7076
7077         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
7078         scoping error pointed out by matthiasc@poet.de.
7079
7080 2001-07-31  Sven Neumann  <sven@gimp.org>
7081
7082         * demos/gtk-demo/appwindow.c
7083         * demos/gtk-demo/item_factory.c
7084         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
7085
7086 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
7087
7088         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
7089         argument order for g_signal_has_handler_pending.
7090
7091 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
7092
7093         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
7094         instead of long deprecated g_scanner_stat_mode().
7095
7096 2001-07-29  Hans Breuer  <hans@breuer.org>
7097
7098         * gdk/makefile.msc : build in the backend dir after
7099         auto-generating files
7100
7101         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
7102         with code from win32-production-branch.
7103
7104         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
7105         before calling DestroyWindow, which indirectly calls 
7106         gdk_window_destroy_notify ()
7107
7108         (performance patch merged from win32-production-branch)
7109         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
7110         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
7111         R2_COPYPEN rop). It is claimed to be much faster.
7112
7113 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
7114
7115         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
7116         add an "attributes" property to the text renderer for ATK.
7117
7118 2001-07-26  Alex Larsson  <alexl@redhat.com>
7119
7120         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
7121         Initialize image->bits_per_pixel from the drawable, not from
7122         the root window.
7123
7124         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
7125         Fix cast. argument is an IMPL already.
7126
7127 2001-07-15  James Henstridge  <james@daa.com.au>
7128
7129         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
7130         (gtk_window_remove_accel_group): same here.
7131         (gtk_window_key_press_event): same here.
7132
7133         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
7134         (gtk_widget_remove_accelerator): same here.
7135         (gtk_widget_remove_accelerators): same here.
7136
7137         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
7138
7139         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
7140         instead of GtkObject.
7141
7142         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
7143         now takes GObjects.
7144
7145         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
7146         pass a GObject to gtk_accel_group_entries_from_object.
7147         (gtk_item_factory_create_item): s/accel_widget/accel_object/
7148
7149         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
7150
7151         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
7152
7153         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
7154         GObjects can have accelerators set now.  Add compatibility
7155         defines.
7156
7157         * gtk/gtkmarshal.list: add missing marshallers.
7158
7159         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
7160         accelerators on plain GObjects.  gtk_accel_group_object_destroy
7161         has been converted into a weak reference, and
7162         gtk_accel_group_delete_entries is now a destroy notify for that
7163         piece of data.
7164
7165 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
7166
7167         * gdk/gdkdraw.c: Added a check on the colormap depth to
7168         gdk_drawable_set_colormap()
7169         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
7170         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
7171         for pixmaps without visuals (more specifically, bitmaps)
7172         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
7173         doesn't set a colormap with the wrong depth
7174
7175
7176 2001-07-22  Anders Carlsson  <andersca@gnome.org>
7177
7178         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
7179         expander_height and expander_width properties with a single
7180         property, expander_size.
7181         (gtk_tree_view_init): Set the tab_offset to expander_size
7182         plus some padding.
7183         (gtk_tree_view_unrealize): Remove the expand/collapse
7184         timeout if it exists.
7185         (coords_are_over_arrow): Fix a small bug.
7186         (gtk_tree_view_motion_draw_column_motion_arrow): Use
7187         expander_size.
7188         (gtk_tree_view_draw_focus): Use "treeview" instead of
7189         "add-mode" as detail when drawing the focus.
7190         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
7191         instead of "add-mode" as detail when drawing the focus.
7192         (gtk_tree_view_deleted): If we have a node currently being
7193         expanded or collapsed, remove the timeout and set the node 
7194         to NULL.
7195         (gtk_tree_view_queue_draw_arrow): New function that just
7196         redraws the arrow of a node.
7197         (gtk_tree_view_draw_arrow): Use expander_size instead of
7198         expander_width/expander_height, also pass a different
7199         expander_style to gtk_paint_expander depending on the 
7200         state of the node being drawn.
7201         (expand_collapse_timeout): New function for expanding 
7202         or collapsing a node depending on the previous state.
7203         (gtk_tree_view_real_expand_row): Add timeout and set 
7204         correct state for node being expanded.
7205         (gtk_tree_view_real_collapse_row): Add timeout and set
7206         correct state for node being collapsed.
7207
7208         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
7209         information about the node currently being expanded or
7210         collapsed, and also a timeout id.
7211
7212         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
7213         with expander_style for draw_expander.
7214
7215         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
7216         expander_style.
7217         (create_expander_affine): New function for creating an 
7218         expander affine.
7219         (apply_affine_on_point): New function for applying an 
7220         affine to a point.
7221         (gtk_default_draw_expander): Modified to take expander_style
7222         instead of is_open, and to draw the rectangle rotated differently
7223         depending on the expander style.
7224         (gtk_paint_expander): Replace is_open with expander_style.
7225
7226         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
7227
7228         * gtk/gtkenums.h: Add expander style enum.
7229
7230 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
7231
7232         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
7233         value from gtk_tree_model_get_iter, the model might be empty.
7234
7235 2001-07-20  Hans Breuer  <hans@breuer.org>
7236
7237         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
7238         gdk/gdkinput.c like the other backends
7239
7240         * gdk/win32/gdkinput-win32.h :
7241         * gdk/win32/gdkinput.c :
7242         * gdk/win32/gdkvisual-win32.c :
7243         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
7244         GdkVisual GObjectification. UNTESTED for pen-devices because
7245         I simply have none.
7246
7247         * gdk/gdk.def :
7248         * gtk/gtk.def : updated externals
7249
7250         * gtk/gtkiconfactory.c :
7251         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
7252         before passing &error to functions to avoid strange crashes
7253         
7254         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
7255
7256         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
7257
7258         * gtk/makefile.msc.in : updated
7259
7260 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
7261
7262         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
7263         Add property support. (#51858)
7264
7265 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
7266
7267         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
7268         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
7269         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
7270
7271 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
7272
7273         * gtk/gtkcolorsel.c: Add propery support (roughly
7274         based on patch from Lee Mallabone, #51014)
7275
7276         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
7277         deprecated, since we already g_warning() on it.
7278
7279 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
7280
7281         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
7282         typo that sometimes caused selection not to work properly.
7283
7284         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
7285         entry when tabbing in. (#57743)
7286         
7287         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
7288         user drags up above or down below the entry, move
7289         to the end or the beginning of the entry. (Suggestion
7290         from Jay Cox, #50940)
7291
7292         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
7293         a current selection, then when moving by chars or
7294         words, move to the end of the selection rather than
7295         from entry->current_pos. (Suggestion from Jay Cox,
7296         #50942)
7297         
7298 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
7299
7300         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
7301         set window->decorated. (Patch from Hidetoshi Tajima,
7302         #55846)
7303
7304 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
7305
7306         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
7307         the widget/child realization/mapping invariants.
7308
7309         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
7310         gtk_widget_[get/set]_child_visible() to control
7311         whether visible children of a mapped window are
7312         mapped.
7313
7314         * docs/widget_system.txt: Updated for changes in
7315         container contract, and addition of GTK_CHILD_VISIBLE.
7316
7317         * gtk/gtkcontainer.c: Add generic map()/unmap()
7318         functions that work for almost all containers.
7319
7320         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
7321         gtk_widget_set_child_visible() where necessary.
7322
7323         * gtk/*.c: Remove excess map(), unmap(), and 
7324         realization/mapping invariant enforcing code
7325         from many containers.
7326
7327 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
7328
7329         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
7330         Get the foreground color from 'text', nor 'fg'. (#57568)
7331
7332 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
7333
7334         * gtk/*.c: Patch from Matthias Clasen to remove remove
7335         all instances of g_return_if_fail (foo != NULL); that are
7336         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
7337         since the second check catches the NULL anyways.
7338
7339 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
7340
7341         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
7342         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
7343         GDK_THREADS_ENTER()/LEAVE() pairs.
7344
7345         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
7346         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
7347         pairs. (Problem found by M. Meeks)
7348
7349 2001-07-18  Darin Adler  <darin@bentspoon.com>
7350
7351         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
7352         that we don't get a g_warning message every time we register a new
7353         icon size.
7354
7355         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
7356         using pixel variable of the correct type.
7357         
7358 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
7359
7360         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
7361         so that using X functions on a GdkWindow is possible, if
7362         a little hairy.
7363
7364         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
7365         and ts_origin of a GC, so that external parties can offset/restore
7366         a GC, when using gdk_window_get_internal_paint_info().
7367
7368 2001-07-17  Darin Adler  <darin@bentspoon.com>
7369
7370         * .cvsignore: Ignore the sgml directory made by gtkdoc.
7371         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
7372         instead of the deprecated gtk_window_set_policy.
7373         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
7374         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
7375         function to get rid of warning and some code too.
7376         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
7377         missing const.
7378         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
7379         unused local.
7380         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
7381         const.
7382         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
7383         (gdk_utf8_to_compound_text): Add missing const.
7384         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
7385         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
7386         cast and get rid of an unnecessary one.
7387         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
7388         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
7389         local.
7390         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
7391         Remove unused local.
7392         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
7393         missing const.
7394         * tests/testsocket.c: (add_child): Add cast so the printf format
7395         doesn't make us implicitly depend on what integer type
7396         gtk_socket_get_id returns.
7397         * tests/testtextbuffer.c: Add missing const.
7398         * tests/testtreefocus.c: (main): Remove unused local.
7399         * tests/treestoretest.c: (iter_remove): Remove unused local.
7400         (uppercase_value): Remove unused function.
7401         (make_window): Add statement to quiet the compiler's uninitialized
7402         variable warning.
7403
7404 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
7405
7406         * gtk/gtkrange.c:
7407         (second_timeout): 
7408         (initial_timeout): 
7409         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
7410         (gtk_range_calc_layout): compute the new layout based on an
7411         adjustment->value being passed in as argument.
7412         (gtk_range_button_press): for button2 slider warps, first recalc
7413         the layout, then adjust the value. also, use update_slider_position()
7414         for adjusting the value, so we keep pixel quantisation at which we
7415         usually operate (upon motion or button releases). the reason for this
7416         is that, we can't change the adjustment upon button2 presses to a non
7417         quantised value and upon button2 release re-quantise the value since
7418         that'd alter the value even if we didn't get any motion events (causing
7419         unexpected scroll area warps upon release and/or slider pixel-jitter).
7420         (gtk_range_motion_notify): update the slider position from queried
7421         coordinates, not event coordinates.
7422
7423 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
7424
7425         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
7426         the default gc values are: width=0, CapBut, JoinMiter.
7427
7428 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
7429
7430         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
7431         into account the xpad and ypad when calculating the width and the
7432         height of the pixbuf cel.
7433
7434 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
7435
7436         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
7437         Rename to gtk_radio_menu_item_get_group(), add deprecated
7438         alias. (#57044)
7439
7440         * gtk/gtkfilesel.c: Indentation fix.
7441
7442 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
7443
7444         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
7445         Hasselmann to fix warnings in compat macros. 
7446         (#56773)
7447
7448         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
7449         stupid wrong cast added in last patch.
7450
7451 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
7452
7453         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
7454         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
7455
7456 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
7457
7458         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
7459         missing cast.
7460
7461         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
7462         NULL/FALSE return value confusion.
7463
7464         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
7465         problem when scrollbar completely fills range. (Patch
7466         from  Matthias Clasen, #57047)
7467
7468 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
7469
7470         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
7471         clean up when handling events for move-resize emulation.
7472         (Problem traced down by Matthias Clasen, #57271)
7473
7474 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
7475
7476         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
7477           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
7478           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
7479           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
7480           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
7481           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
7482           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
7483         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
7484
7485 2001-07-09  Peter Williams  <peterw@ximian.com>
7486
7487         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
7488         for when srcdir != builddir
7489
7490 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
7491
7492         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
7493         gtk_tree_model_get_iter_root.
7494
7495         * gtk/gtkliststore.c: Add a bunch of g_return statements.
7496         (gtk_list_store_iter_n_children): Fix up.
7497
7498         * gtk/gtktreestore.c: Add a bunch of g_return statements.
7499
7500 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
7501
7502         * gtk/gtkwidget.c (gtk_widget_class_init):
7503         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
7504         restore some workingness.
7505
7506         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
7507         handle of window type for input-only windows.
7508
7509 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
7510
7511         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
7512         Patch from Gregory Merchan to add 
7513         gtk_button_box_set_secondary(), which separates
7514         the child into a separate group from the normal
7515         buttons. (#56331)
7516
7517         * gtk/gtkdialog.c: Make help buttons secondary by
7518         default.
7519
7520         * gtk/gtkbbox.c: Added a child property "secondary".
7521
7522         * gtk/testgtk.c: Turn on the help button for the 
7523         color selector to check that it properly appears
7524         as secondary.
7525
7526 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
7527  
7528         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
7529         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
7530         Add gdk_set_pointer_hooks() to allow pointer-querying to
7531         be hooked by an event record/playback system like GERD.
7532         (#56914)
7533         
7534 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
7535
7536         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
7537         in the right value of initial_emission to
7538         gtk_widget_set_style_internal (#57091)
7539
7540 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
7541
7542         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
7543         Make compile.
7544
7545         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
7546         with calling gtk_widget_set_style_internal() with
7547         the old style, not the new style. (#56989)
7548
7549 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
7550
7551         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
7552           gtk/gtkwidget.c:
7553         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
7554         not GTK_WIDGET_GET_ANCESTOR ... see 
7555         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
7556         Indicate the best practice in the docs for gtk_widget_get_toplevel().
7557
7558         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
7559         so GtkPlug can give the correct signals when transforming
7560         from a child to a toplevel.
7561         
7562         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
7563         reparentation correctly.
7564
7565         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
7566         Propagate the previous_toplevel argument down properly.
7567
7568         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
7569         of wrong atr list.
7570
7571         * gtk/gtkplug.[ch]: Add an "embedded" signal.
7572
7573         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
7574         signals.
7575
7576         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
7577         functions gtk_plug_get_id(), gtk_socket_get_id(),
7578         to avoid the user having to worry about realization,
7579         and gdkx.h.
7580
7581         * tests/testsocket.c: Extend to try out the new signals
7582         and gtk_plug/socket_get_id().
7583
7584         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
7585         setting of underline attributes.
7586
7587         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7588         DestroyNotify events from SubstructureNotifyMask
7589
7590         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
7591         Switch GDK_WINDOW_TYPE (window) as needed.
7592
7593         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
7594         allow creation of toplevel windows as children of
7595         foreign windows.
7596
7597         * gtk/gtkplug.c: Remove hacks involving changing private
7598         fields of GdkWindow.
7599
7600         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
7601         exactly the same signals and notification
7602         be emitted for local embedding as for inter-process
7603         embedding.
7604
7605 2001-07-04  James Henstridge  <james@daa.com.au>
7606
7607         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
7608
7609 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
7610
7611         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
7612         XEMBED embedding add a _XEMBED_INFO property to the
7613         client with version number and a "mapped" flags.
7614         Use the mapped flag instead of the racy MapRequestEvent
7615
7616         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
7617         code to reliably set things (when the child is a passive
7618         embedder participating in the XEMBED protocol) intead
7619         of just being a hack for embedding non-participating
7620         programs. Fix various bugs and race conditions.
7621         
7622         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
7623         work by simply making the GtkSocket the gtk parent
7624         of the GtkPlug. Set a flag in this case and make
7625         the GtkPlug work like a normal container by overriding
7626         methods such as check_resize and "chaining past" GtkWindow
7627         to GtkBin.
7628
7629         * gtk/gtkentry.c (gtk_entry_real_activate)
7630           gtk/gtkmain.c (gtk_propagate_event): 
7631         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
7632         
7633         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
7634         gtk_widget_get_ancestor):
7635         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
7636         might not give the expected result and recommend
7637         an alternative.
7638
7639         * tests/testsocket.c tests/testsocket_child.c
7640         tests/testsocket_common.c tests/Makefile.am: Extended
7641         to test different type of adding plugs to sockets
7642         (local,active,passive), and to test mapping/unmapping
7643         the plug.
7644
7645         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
7646         mark the window as destroyed until after we
7647         called _gdk_windowing_window_destroy().
7648         (_gdk_windowing_window_destroy() may use GDK functions
7649         on the window.)
7650
7651         * gdk/x11/gdkinput.c: Remove the check for finalization - 
7652         devices can be finalized under some circumnstances.
7653  
7654         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
7655         small problem with GDK_TYPE_DEVICE.
7656  
7657 2001-07-02  Havoc Pennington  <hp@pobox.com>
7658
7659         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
7660         use constants not atoms.
7661
7662 2001-07-02  James Henstridge  <james@daa.com.au>
7663
7664         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7665         PANGO_TYPE_TAB_ARRAY.
7666
7667         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7668         for PANGO_TYPE_TAB_ARRAY.
7669
7670         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7671         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7672
7673         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7674         the file.  Remove Pango types from defs -- they are now defined in
7675         libpango.
7676
7677 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
7678
7679         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7680
7681         * gtk/gtkobject.c (gtk_object_destroy): invoke
7682         g_object_run_dispose().
7683
7684         * gtk/gtkwindow.c: 
7685         * gtk/gtkwidget.c: 
7686         * gtk/gtkobject.c:
7687         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7688         method.
7689
7690 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
7691
7692         * gtk/gtktypeutils.c (gtk_type_class): Remove
7693         change check for GTK_TYPE_OBJECT derivation to
7694         G_TYPE_OBJECTS - it's Tim-approved to use this 
7695         for arbitary objects.
7696
7697         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7698         prefix gtk_container_dequeue_resize_handler().
7699
7700         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7701         to the hierarachy_changed signal, since you otherwise
7702         have to always keep that around.
7703
7704         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7705         for extra argument to hierarchy_changed.
7706
7707 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
7708
7709         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7710         for style to mean "revert to default style"
7711
7712         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7713           gtk_widget_restore_default_style): Make this functions
7714         deprecated aliases for gtk_widget_set_style (widget, NULL).
7715
7716         * gtk/gtkwidget.[ch]: Remove:
7717            gtk_widget_set_default_style ()
7718            gtk_widget_push_style ()
7719            gtk_widget_pop_style ()
7720         These functions interact are overriden by RC files, and
7721         thus virtually useless, and complicated.
7722
7723 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
7724
7725         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
7726         most of the previous global variables in gtkrc.c. This is
7727         in preparation for multi-head, since each screen can
7728         have different GtkSettings and RC information.
7729
7730         * gtk/gtkrc.[ch]: 
7731
7732         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7733         GtkSettings parameter to GtkRcStyle::parse.
7734
7735         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
7736         Add two new settings gtk-theme-name, gtk-key-theme-name,
7737         for RC files that are loaded by name after reading
7738         the default RC files.
7739         
7740         * gtk/gtkrc.c: Allow priorities for styles, as wll as
7741         bindings.
7742
7743         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7744         and use it by default for RC files loaded via 
7745         gtk-theme-name, gtk-key-theme-name.
7746
7747         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7748         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
7749         tests/testgtkrc: Require pathnames to be absolute.
7750
7751         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7752         the source when parsing, since the operation of looking up a
7753         pixmap from an RC file depends on the parsing context.
7754
7755         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7756         reset RC styles on all widgets when files are reparsed.
7757
7758         * tests/testgtk.c (create_rc_file) 
7759           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
7760         Simplify, now that gtk_rc_reparse_all() resets styles on
7761         all widgets itself.
7762
7763         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7764         return value.
7765
7766         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7767         GtkSettings argument.
7768
7769         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7770         gtk_settings_get_global().
7771
7772         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7773         to get the appropriate GtkSettings for a widget. (For now,
7774         just gets the default GtkSetttings.) 
7775
7776         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7777           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7778         changes.
7779
7780         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7781         getting a style for a path without actually having a widget.
7782         (Allows using a style for a subpart of a widget, for
7783         example.)
7784
7785         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7786         the RC files to be reloaded for just one GtkSettings
7787         (not sure how useful this really is.)
7788
7789         * gtk/gtkrc.h: Deprecate
7790         gtk_rc_add_widget_name/widget_class/class_style
7791
7792 2001-06-30  Alex Larsson  <alexl@redhat.com>
7793
7794         * gdk/linux-fb/gdkinput-none.c:
7795         * gdk/linux-fb/gdkinput.c:
7796         * gdk/linux-fb/gdkinputprivate.h:
7797         Convert GdkDevice to a GObject.
7798
7799         * linux-fb/gdkprivate-fb.h:
7800         * linux-fb/gdkvisual-fb.c:
7801         Convert GdkVisual to a GObject.
7802
7803 2001-06-29  Alex Larsson  <alexl@redhat.com>
7804
7805         * gdk/gdkvisual.h:
7806         * gdk/gdkcolor.c:
7807         * gdk/x11/gdkx.h:
7808         * gdk/x11/gdkvisual-x11.c:
7809         Convert GdkVisual to a GObject.
7810
7811         * gdk/gdkinput.h:
7812         * gdk/gdkevents.c:
7813         * gdk/x11/gdkinputprivate.h:
7814         * gdk/x11/gdkinput-gxi.c:
7815         * gdk/x11/gdkinput-none.c:
7816         * gdk/x11/gdkinput-x11.c:
7817         * gdk/x11/gdkinput-xfree.c:
7818         * gdk/x11/gdkinput.c:
7819         Convert GdkDevice to a GObject.
7820
7821 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
7822
7823         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7824         to just plain new, fixing the number of columns, and column types
7825         at creation time.
7826
7827         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7828
7829         * gtk/gtkcellrenderertext.c
7830         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7831         height to a specific font.
7832
7833         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7834
7835         * tests/*c: change to work with new store models.
7836
7837 2001-06-29  Havoc Pennington  <hp@redhat.com>
7838
7839        * Throughout: fixes to compile with G_DISABLE_COMPAT
7840         (s/g_signal_connectc/g_signal_connect/,
7841         s/g_signal_newc/g_signal_new/,
7842         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7843
7844 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
7845
7846         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7847         add path argument to selection callbacks.
7848
7849 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
7850
7851         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7852         walk through a model in a depth first manner, with the option to
7853         break out.
7854
7855 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
7856
7857         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7858         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7859         column and follow it when draged, rather than a location in the
7860         view. "expander_column" property and drawing functions changed
7861         accordingly.  Fixes bug #55942.
7862
7863         (gtk_tree_view_{set,get}_expander_column): Now works with a
7864         GtkTreeViewColumn* instead of int.
7865
7866 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
7867
7868         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
7869
7870 2001-06-28  Havoc Pennington  <hp@pobox.com>
7871
7872         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7873         image data to the screen, using a server grab to avoid race
7874         conditions.
7875
7876         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
7877         check for NULL return from gtk_image_new_from_stock(), it never
7878         returns NULL.
7879         (gtk_item_factory_create_item): fix bug where we parsed the stock
7880         ID as an inline pixbuf
7881
7882         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7883
7884         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7885         support (should be using binding set here)
7886
7887         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7888         support (should be using binding set here)
7889
7890         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
7891         support
7892
7893         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7894
7895         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7896
7897         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7898
7899         * gtk/gtkimcontextsimple.c
7900         (gtk_im_context_simple_filter_keypress): keypad
7901
7902         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
7903
7904         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7905
7906         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7907
7908         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7909         should be binding-setted)
7910
7911         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7912
7913         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7914
7915         * gtk/gtkcalendar.c: numeric keypad fixes
7916
7917         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7918         support
7919
7920         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7921         screwup
7922
7923         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
7924         clip the render area to the drawable's clip region in advance,
7925         so we don't get data from the server that we don't need.
7926
7927         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7928         check return value of gdk_pixbuf_get_from_drawable(), fall back 
7929         to bilevel alpha if we can't get the pixbuf to composite against.
7930
7931         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7932
7933         * gdk/gdkimage.c (gdk_image_get_colormap): add
7934         gdk_image_set_colormap, gdk_image_get_colormap
7935
7936         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7937         take a region of the image, instead of converting the entire
7938         image.
7939
7940         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7941         keybinding signal. Add default bindings for it. Add default
7942         handler for show_help that shows the tooltip for the widget.
7943
7944         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7945         "close" keybinding signal, remove key press handler.
7946
7947         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7948         it's not our usual practice to leave a deprecated function around
7949         with a runtime warning, plus we don't want it to appear in docs,
7950         plus if we make them yellow no one will want to change them
7951         anyhow.
7952
7953 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
7954
7955         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7956         GTK_WIDGET_REALIZE() for resize queueing.
7957
7958         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7959         GTK_WIDGET_REALIZE() for post event delivery destruction upon
7960         GDK_DESTROY.
7961         
7962         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7963         sompensate for former (pre-2.0) connect_after() facility.
7964         (gtk_widget_send_expose): 
7965         (gtk_widget_event): assert the widget is realized, since event delivery
7966         to non-realized widgets is essentially a bug. event handlers should
7967         be able to unconditionally rely on widget->window (unless they
7968         emit events on their own which can trigger widget destruction).
7969         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7970         logic. event delivery happens as follows:
7971         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7972         b) if !was_handled in (a) and the widget is still realized, emit event-
7973            specific signal (RUN_LAST handler). returns was_handled.
7974         c) emission of GtkWidget::event-after for notification if the widget is
7975            still realized (regardless of was_handled from previous stages, no
7976            class handler). no return value.
7977         d) was_handled gets passed on to caller, to determine further
7978            propagation. if the widget got unrealized meanwhile, was_handled
7979            is returned as TRUE.
7980
7981         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7982         gdk_event_get_coords().
7983
7984 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
7985
7986         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7987         age 0, binary age 0. depend on glib 1.3.7.
7988
7989         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7990
7991         * gtk/gtkmenubar.c: same here.
7992         
7993         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7994
7995         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7996
7997         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7998         
7999         * gtk/gtkmenubar.c (add_to_window): likewise.
8000         
8001         * gtk/gtktextbtree.c: and here...
8002         
8003         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
8004         
8005         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
8006         
8007         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
8008         
8009         * gtk/gtktreeviewcolumn.c:
8010         (_gtk_tree_view_column_set_tree_view): yet again.
8011
8012         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
8013         signal connections without g_signal_connect_data().
8014         
8015         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
8016         demo of the matter.
8017         
8018         * demos/testpixbuf.c (main): running out of equality phrases for the
8019         ChangeLog, but had to adapt connections here as well.
8020         
8021         * demos/testanimation.c (progressive_timeout): and for the fun of it,
8022         tackled this the same way.
8023         
8024         * tests/testtext.c (create_view): ok, it's becoming a pain at this
8025         point, but had enough enery for one more fix.
8026
8027         * tests/testtreecolumns.c (main): stand up man, do your work!
8028
8029         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
8030         fix, either that's been all of it or CVS gtk is broken yet again.
8031         
8032 2001-06-29  James Henstridge  <james@daa.com.au>
8033
8034         The following changes correspond to bug #56812
8035
8036         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
8037         code for GdkDevice.
8038
8039         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
8040         GdkCursor.
8041
8042 2001-06-19  Havoc Pennington  <hp@pobox.com>
8043
8044         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
8045         for mapping a window without fooling with stacking order, but
8046         updating the "withdrawn" flag
8047
8048         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
8049         filtering as soon as possible, moving move resize and wmspec_check
8050         handling after the event filter.  Make default filter apply to all
8051         events, not just those with no GdkWindow wrapped around the X
8052         window. Fix a FIXME about how the window could be a pixmap using 
8053         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
8054
8055         Also, be robust against events not on a known GdkWindow.
8056
8057         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
8058         gdk_x11_ungrab_server): export reference-counted server grabs, so
8059         other people can grab server over a GDK function that also does
8060         so.
8061
8062 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
8063
8064         * gtk/gtktreeviewcolumn.c
8065         (gtk_tree_view_column_pack_start_cell_renderer): New function to
8066         reflect that you can (hypothetically) pack cell renderers into a
8067         column.
8068         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
8069         (gtk_tree_view_column_cell_is_visible): Move more functionality to
8070         the column.
8071         (gtk_tree_view_column_cell_can_focus): Move more functionality to
8072         the column.
8073
8074         * gtk/gtktreeview.c: Move to use new column-packing code.
8075         (gtk_tree_view_real_expand_row): remove totally braindead code.
8076         (gtk_tree_view_real_collapse_row): ditto.
8077
8078 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
8079
8080         * gtk/gtktreeviewcolumn.c: Fix a typo.
8081         
8082 2001-06-26  Joel Becker  <jlbec@evilplan.org>
8083
8084         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
8085           at the end of the file
8086
8087 2001-06-26  Havoc Pennington  <hp@redhat.com>
8088
8089         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
8090
8091 2001-06-26  Havoc Pennington  <hp@redhat.com>
8092
8093         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
8094         property
8095
8096 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
8097
8098         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
8099         stupid missing statement
8100
8101         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
8102         private function for ATK.  It notifies you of how many _visible_
8103         children are deleted when a node is deleted.  Should be used by
8104         atk only.
8105
8106 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
8107
8108         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
8109         Use new pango_context_get_metrics() to fix problems
8110         with font lists in descriptions. (#56184, reported by
8111         Jonas Borgström)
8112
8113 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
8114
8115         * gtk/gtkiconfactory.c:
8116         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
8117         item factory so inlined pixbufs actually work.
8118
8119 2001-06-25  Havoc Pennington  <hp@redhat.com>
8120
8121         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
8122         s/RESIZEABLE/RESIZABLE/
8123
8124         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
8125
8126 2001-06-25  Alexander Larsson  <alexl@redhat.com>
8127
8128         * configure.in:
8129         Added --enable-fbmanager. This is some experimental code
8130         that lets several GtkFB apps coordinate their access to the
8131         framebuffer.
8132         
8133         * acconfig.h:
8134         Added ENABLE_FB_MANAGER.
8135
8136         * gdk/linux-fb/Makefile.am:
8137         Added gdkfbmanager and gdkfbswitch.
8138
8139         * gdk/linux-fb/gdkkeyboard-fb.c:
8140         * gdk/linux-fb/gdkmouse-fb.c:
8141         * gdk/linux-fb/gdkprivate-fb.h:
8142         Split device init and open so that
8143         they can be opened and closed while switched
8144         away.
8145
8146         * gdk/linux-fb/gdkmain-fb.c:
8147         Add the basic manager communication.
8148
8149         * gdk/linux-fb/gdkrender-fb.c:
8150         Don't update to the shadow fb if we're
8151         blocked by the fb manager.
8152
8153 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
8154
8155         * docs/Changes-2.0.txt: Add note about child property
8156         changes.
8157
8158 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
8159
8160         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
8161         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
8162
8163         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
8164         with un'reffing wrong list reported by Jeff Franks.
8165
8166         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
8167
8168         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
8169         for the default icon. Remove inline XPM.
8170
8171         * gtk/gtkstock.h gtk/gtkiconfactory.c:
8172         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
8173         is used for GTK_STOCK_DND, but it is a bit too small.)
8174
8175         * gtk/stock-icons/stock_dnd_multiple.png
8176         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
8177
8178         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
8179         TRUE when starting a drag. In other cases, we are
8180         just observing. (#52995)
8181
8182         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
8183         function to set the icon for a drag from a GdkPixbuf
8184         or stock ID.
8185
8186         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
8187         Likewise, for drag sources.
8188
8189         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
8190         (Now should be done using the stock system.)
8191
8192 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
8193
8194         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
8195         Removed - didn't work and not particularly useful anyways
8196         if it did. 
8197
8198 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
8199
8200         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
8201         introduced last night that was making things decidedly not work.
8202
8203         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
8204         so that we have getter/setter pairing everywhere it makes
8205         sense. (#55767)
8206
8207         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
8208         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
8209         deprecated compat macro. (#55516)
8210
8211         * gtk/gtklabel.[ch]: Add functions
8212         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
8213         gtk_label_set_label(), which mirror the property API for GtkLabel.
8214         Make gtk_label_get_attributes() only reflect the attributes
8215         set by gtk_label_set_attributes.
8216
8217         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
8218         from gtk_notebook_set_page().
8219
8220 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
8221
8222         * configure.in: Fix tests for XShm.h.
8223
8224         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
8225         gdk_image_new() by use of goto, properly use g_object_unref().
8226
8227 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
8228
8229         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
8230         calls, as GdkImage is an object. these should be g_obejct_unref()
8231         instead but that won't work because of the g_error() statement
8232         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
8233         to spot these places.
8234
8235 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
8236
8237         * modules/input/gtkimcontextxim.c: Fixup some problems with 
8238         text length handling in error cases.
8239
8240         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
8241         a bit to make test actually warn on attempt to allocation
8242         a negative size. (#56101, Matthias Clasen)
8243
8244 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
8245
8246         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8247         noticed by Brian Cameron.
8248         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
8249         Cameron.
8250
8251 2001-06-22  Hans Breuer  <hans@breuer.org>
8252
8253         * gdk/gdk.def : updated externals
8254
8255         * gdk/win32/gdkdrawable-win32.c : corrected some casts
8256         in GDK_NOTEs
8257
8258         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
8259         to translate coordinates to the internal > 16 bit system
8260         Try to handle WM_WINDOWPOSCHANGED to get better performance for
8261         when moving/resizing
8262
8263         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
8264         and gdk_keymap_get_direction (). The latter is untested for
8265         the RTL case
8266
8267         * gtk/gtk.def : updated externals
8268
8269         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
8270         from pango_language_from_string (), not an already freed pointer
8271
8272         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
8273         binary (-kb) to be useable on windoze
8274  
8275 2001-06-21  Alexander Larsson  <alexl@redhat.com>
8276
8277         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
8278         Update to new PangoLanguage changes.
8279         
8280         * gtk/gtkwindow-decorate.c:
8281         * gtk/gtkwindow.[ch]:
8282         Added setting argument to gtk_window_set_has_frame ()
8283         
8284 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
8285
8286         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
8287         the case without XKB properly.
8288
8289         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
8290         unused gtk_rc_auto_parse variable.
8291
8292         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
8293         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
8294         longer needed with GdkPixbuf.
8295
8296         * gtk/gtkrc.c (_gtk_rc_init): Make private.
8297
8298 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
8299
8300         * gtk/gtkentry.h: Mark deprecated functions with
8301         GTK_DISABLE_DEPRECATED.
8302
8303 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
8304
8305         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
8306
8307         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
8308
8309         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
8310           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
8311           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
8312           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
8313           to recent changes in Pango.
8314
8315         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
8316           to test whether the basic engine honors them.
8317
8318 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
8319
8320         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
8321         gtk_container_child_get_property().
8322
8323 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
8324
8325         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
8326         (gtk_tree_view_move_cursor_page_up_down): implement.
8327
8328 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
8329
8330         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
8331         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
8332         don't use automatic fixed size buffer for printf-ing floats, doubles
8333         can expand to really _huge_ strings, use g_strdup_printf() instead.
8334
8335 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
8336
8337         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
8338         construct property in 1.2 and still needs to be.
8339
8340         * gtk/gtkwidget.c: "composite_child" is not a settable property.
8341
8342 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
8343
8344         * gtk/gtkliststore.c (gtk_list_store_clear): 
8345         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
8346         clear a model.
8347
8348 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
8349
8350         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
8351
8352         * gtk/Makefile.am:
8353         * gtk/gtk.h: disabled GtkPacker compilation.
8354
8355         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
8356
8357         * gtk/gtknotebook.c:
8358         * gtk/gtktable.c:
8359         * gtk/gtkbox.c: ported this over to child properties.
8360
8361         * gtk/gtksettings.c: fetch class properties via
8362         g_object_class_list_properties().
8363
8364         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
8365         child arg interface. use gobjectnotifyqueue.c for child property
8366         notification.
8367
8368         * gtk/gtkwidget.[hc]: provide necessary means for container child
8369         properties, i.e. ::child_notify signal,
8370         gtk_widget_freeze_child_notify(),
8371         gtk_widget_child_notify(),
8372         gtk_widget_thaw_child_notify().
8373
8374         * tests/testgtk.c: removed inferior property handling code, for
8375         property editing, a generic module should be used, and GLE
8376         coincidentally fullfills that purpose.
8377
8378         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
8379         needs to be adapted to g_object_class_list_properties() before this
8380         builds again.
8381
8382 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
8383
8384         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
8385         test if a node is expanded.
8386
8387 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
8388
8389         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8390         where collapsing a selected row would result in the cursor/anchor
8391         getting screwed up.
8392
8393 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
8394
8395         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
8396         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
8397         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
8398         Now I can really reorder/sort all Store widgets.  treesorttest
8399         seems to just work now.
8400         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
8401         testtreesort worked through a big coincidence all this time.
8402         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
8403         code.
8404         * tests/testtreecolumns.c: Big 'ol warning at the top letting
8405         people know that this code should never ever ever be copied.
8406
8407 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
8408
8409         * gtk/gtkwindow.h: Fixed a small typo, it should be
8410         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
8411         on line 134.
8412
8413 2001-06-14  Havoc Pennington  <hp@redhat.com>
8414
8415         Docs fixups, and:
8416         
8417         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
8418         GTK_DISABLE_DEPRECATED
8419
8420 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
8421
8422         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
8423         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
8424         finish it off tonight, though it basically works now when it's a
8425         list.  Also, I have a sinking feeling neither GtkTreeStore or
8426         GtkListStore actually resort when adding a new item.  I'll look
8427         into it.
8428
8429 2001-06-14  Havoc Pennington  <hp@redhat.com>
8430
8431         * demos/gtk-demo/main.c (load_file): fix bug identified by
8432         warnings I just added to gtktextbuffer
8433
8434 2001-06-14  Havoc Pennington  <hp@redhat.com>
8435
8436         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
8437
8438         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
8439
8440         * gtk/gtktextbtree.c: don't leak node data all over the place.
8441
8442         * demos/gtk-demo/main.c (main): create fontify tags for the right
8443         buffer
8444
8445         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
8446         to mention tags in the same table can't have the same name,
8447         suggested by Skip Montanaro
8448
8449 2001-06-11  Havoc Pennington  <hp@redhat.com>
8450
8451         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
8452         for trying to add two tags with same name to the tag table
8453
8454         * demos/gtk-demo/main.c (main): fix colors ;-)
8455
8456 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
8457
8458         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
8459         that allows grouping together multiple windows so that grabs
8460         within that set of windows only affect those windows.
8461
8462         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
8463         signal for notification when a widget becomes shadowed
8464         by a grab or is no longer shadowed by a grab.
8465
8466         * gtk/gtkwidget.c (gtk_widget_propagate_state)
8467           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
8468         insenstive widgets to maintain a grab.
8469
8470 2001-06-14  Alexander Larsson  <alexl@redhat.com>
8471
8472         * docs/README.linux-fb:
8473         Add some example config files that can be used with the URW fonts.
8474         
8475         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
8476         Set up the color ramps for DirectColor mode.
8477
8478 2001-06-11  Havoc Pennington  <hp@redhat.com>
8479
8480         * Release 1.3.6
8481          
8482 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
8483
8484         * gdk/linux-fb/gdkwindow-fb.c:
8485         Unify shaped window code and make it repaint the area that used
8486         to be part of the shape, but isn't anymore.
8487
8488 2001-06-11  Havoc Pennington  <hp@redhat.com>
8489
8490         * NEWS: Updates
8491
8492         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
8493
8494         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
8495         
8496 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
8497
8498         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
8499         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
8500         passes zero instead, so do we.
8501         
8502 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
8503
8504         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
8505         Deep copy dash_list too.
8506         (_gdk_fb_gc_new): Set default cap_style before
8507         setting values.
8508
8509 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
8510
8511         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
8512         gdk_keymap_get_direction): New functions.
8513
8514 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
8515
8516         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
8517         gtk_tree_model_get_flags by adding a second flag for atk.
8518
8519         * gtk/gtktreemodel.c: make cursor behavior interact better with
8520         mouse presses.
8521
8522 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
8523
8524         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
8525         expand_row/collapse_row to be 2 signals each -- test_expand_row
8526         and row_expanded as well as test_collapse_row and row_collapsed.
8527
8528 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
8529
8530         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
8531         signal name to be changed instead of selection_changed.
8532
8533 2001-06-08  Havoc Pennington  <hp@redhat.com>
8534
8535         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
8536         "scroll_offset" property for notification when the layout offsets
8537         may have changed
8538         (gtk_entry_adjust_scroll): add notify for scroll_offset
8539         (gtk_entry_layout_index_to_text_index): function to compensate for
8540         preedit string when doing coordinate stuff on the entry's layout
8541         (gtk_entry_text_index_to_layout_index): inverse function
8542         (gtk_entry_get_layout_offsets): hook to get current position of
8543         the layout      
8544         (gtk_entry_get_layout): hook to get the layout itself.
8545
8546         * gtk/gtklabel.c (gtk_label_get_layout): new function
8547
8548 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
8549
8550         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
8551         keybinding.
8552         (gtk_tree_view_focus): Fix merge conflict.
8553
8554 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
8555
8556         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
8557         clean up cursor handling.
8558
8559 2001-06-08  Havoc Pennington  <hp@redhat.com>
8560
8561         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
8562         function
8563
8564         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
8565         this function
8566
8567 2001-06-08  Alex Larsson  <alexl@redhat.com>
8568
8569         * gtk/gtkcompat.h.in:
8570         Added compat macros for all old GTK_TYPE_GDK_xxx types.
8571         Fixes bug #52892
8572
8573 2001-06-08  Havoc Pennington  <hp@redhat.com>
8574         
8575         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
8576         parent still
8577
8578 2001-06-08  Havoc Pennington  <hp@redhat.com>
8579
8580         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
8581         don't call g_list funcs on GSList
8582
8583         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
8584         gtk_container_focus(), since some widgets have focusable locations
8585         which are not other widgets. These widgets should not have to be 
8586         containers just to manage the focus. For example, GtkHSV is
8587         currently a container for no good reason. Also, this cleans
8588         up the "if (is_container && is_sensitive && is_drawable)
8589         container_focus ()" mess in widget implementations.
8590
8591         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
8592         function, and have it just call gtk_widget_child_focus().
8593
8594         * gtk/gtkhsv.c: derive from widget not container
8595         
8596         Throughout: fix to reflect GtkContainer::focus change
8597         
8598 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
8599
8600         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
8601         range.  Fix bug #55921
8602
8603         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
8604         (#55920).
8605
8606 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
8607
8608         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
8609         and gdk_keymap_get_current_direction().
8610
8611         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
8612           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
8613         the current locked group, use it to set the keymap
8614         direction.
8615
8616         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
8617         to determine whether we draw a split cursor or use
8618         a jumping cursor based on the current direction.
8619
8620         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
8621         Obey the split cursor setting. 
8622
8623 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
8624
8625         * gtk/gtkimmulticontext.c (activate_cb): Only activate
8626         when toggling on, not when toggling off... (#55906)
8627
8628 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
8629
8630         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
8631         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
8632         in docs. (#55812, Vitaly Tishkov)
8633
8634 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
8635
8636         * demos/gtk-demo/main.c (create_tree): Changed signal name from
8637         selection_changed to changed in signal connection to GtkTreeSelection,
8638         also used g_signal_connectc since GtkTreeSelection is now a GObject.
8639
8640 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
8641
8642         * gtk/gtktreeselection.c: Now it's a GObject instead of a
8643         GtkObject.  The GtkTreeSelection::selection_changed signal is now
8644         the GtkTreeSelection::changed signal.
8645
8646         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
8647         object.
8648
8649         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8650         object.
8651
8652 2001-06-07  Havoc Pennington  <hp@redhat.com>
8653
8654         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8655
8656 2001-06-07  Havoc Pennington  <hp@redhat.com>
8657         
8658         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8659         (not tested yet because with absolute path to srcdir I can't build
8660         atk, but it was broken anyway so this may help) 
8661
8662 2001-06-07  Havoc Pennington  <hp@redhat.com>
8663
8664         * configure.in: output m4macros/Makefile
8665         
8666 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
8667
8668         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8669         buttons.  Fixes #55460 reported by matthiasc@poet.de.
8670
8671 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
8672
8673         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8674         expansion/collapsing so it only happens in one place.
8675         (gtk_tree_view_real_expand_row): ditto.
8676
8677 2001-06-07  Havoc Pennington  <hp@redhat.com>
8678
8679         * tests/Makefile.am: add missing -I flag
8680
8681         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8682
8683         * configure.in: use pkg-config to see if GModule is
8684         supported; fix to properly turn on included loaders 
8685         when GModule isn't supported; don't use AC_CHECK_LIB 
8686         when libs are not installed yet
8687
8688         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8689
8690         * Makefile.am (SUBDIRS): add m4macros subdir
8691
8692         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8693         dependencies also.
8694
8695 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
8696
8697         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8698         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8699
8700 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
8701
8702         * gtk/gtktreeview.c
8703         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8704         bindings to expand and collapse rows.
8705         (gtk_tree_view_real_select_cursor_parent): New key binding.
8706         (gtk_tree_view_real_toggle_cursor_row): New key binding.
8707
8708         * gtk/gtkmarshal.list: new
8709         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8710
8711 2001-06-06  Havoc Pennington  <hp@redhat.com>
8712
8713         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8714
8715         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8716         Down to move visually rather than logically, since it confuses 
8717         people. Add -/+ and Ctrl--/+ bindings for logical movement.
8718
8719 2001-06-06  Alex Larsson  <alexl@redhat.com>
8720
8721         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8722         Fix up error messages.
8723
8724 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
8725
8726         * gtk/gtktooltips.h: Include gtkwidget.h 
8727         (#55798, Karl Nelson)
8728
8729         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8730         a valid latin-1 character. (Marc Lehmann, #35467)
8731
8732         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
8733         (Marc Lehmann, #35467)
8734         
8735 2001-06-05  Alex Larsson  <alexl@redhat.com>
8736
8737         * demos/gtk-demo/appwindow.c (do_appwindow):
8738         Don't swap the order of the args to gtk_widget_destroyed.
8739
8740         * tests/testgtk.c (destroy_properties):
8741         Don't crash when the properties window is destroyed.
8742
8743         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8744         Use with_mnemonics to handle the case of stock items with
8745         underscores in them.
8746
8747 2001-06-05  Havoc Pennington  <hp@redhat.com>
8748
8749         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
8750         gtk_text_iter_reorder
8751
8752 2001-06-05  Havoc Pennington  <hp@redhat.com>
8753
8754         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8755
8756 2001-06-05  Havoc Pennington  <hp@redhat.com>
8757
8758         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
8759         to the range that was set
8760
8761         * gtk/gtkrange.c: add value_changed signal, primarily 
8762         intended for use with GtkScale
8763         (gtk_range_set_increments): new function
8764         (gtk_range_set_range): new function with weird name
8765         (gtk_range_set_value): new function
8766         (gtk_range_get_value): new function
8767
8768         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
8769         from gtk_spin_button_get_value_as_float(). Compat #define
8770         added for get_value_as_float.
8771
8772         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8773
8774         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8775
8776 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
8777
8778         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8779
8780 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
8781
8782         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8783
8784         * tests/testgtk.c (create_tooltips): Remove usage of
8785         gtk_widget_set().
8786
8787 2001-06-05  Havoc Pennington  <hp@redhat.com>
8788
8789         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8790
8791         Applying patch from Jeff Franks, with function docs added.
8792         
8793         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8794         remove call to set_mnemonic_widget, change docs a bit.  
8795
8796         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8797         new function
8798
8799         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8800         new function
8801
8802         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8803
8804         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8805         function
8806         (gtk_radio_button_new_with_mnemonic_from_widget): new function
8807
8808         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8809         new function
8810
8811         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8812         function        
8813
8814         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
8815         auto-selection of mnemonic widget.
8816
8817 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
8818
8819         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8820         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8821         (gtk_tree_view_column_set_min_width): ditto.
8822
8823 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
8824
8825         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
8826         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8827
8828 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
8829
8830         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8831         gtk_clist_thaw().
8832
8833 2001-06-04  Havoc Pennington  <hp@pobox.com>
8834
8835         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
8836 r       eleases for buttons 6, 7
8837
8838 2001-06-04  Havoc Pennington  <hp@redhat.com>
8839
8840         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8841         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8842         #55562
8843
8844 2001-06-04  Havoc Pennington  <hp@redhat.com>
8845
8846         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8847         where text_view->layout == NULL by assuming its size is 0, 
8848         i.e. same as if we haven't done any reflow. Reported by 
8849         Hidetoshi Tajima #55448 
8850
8851 2001-06-04  Havoc Pennington  <hp@redhat.com>
8852
8853         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8854         and 7 for scroll left/right, from Thomas Broyer
8855
8856 2001-05-10  Havoc Pennington  <hp@redhat.com>
8857
8858         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8859         we need to parse the xsetting as if it were an RC file string.
8860
8861         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8862         value of palette from settings, not from static variable
8863
8864         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8865         xsettings translation table
8866
8867         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
8868         hardcoding the toolbar style conflicts with new customizable 
8869         toolbar style philosophy
8870         (gtk_toolbar_class_init): add settings for default toolbar style;
8871         these are used unless the app specifically forces a toolbar style
8872
8873         * gtk/gtksettings.c (settings_install_property_parser): only
8874         return at the start if we warn and parser == NULL
8875
8876         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8877         palette changed handler so we don't notify dead color selections
8878
8879         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8880         xthickness/ythickness of 0 or 1 properly 
8881         (gtk_default_draw_resize_grip): clear the background behind the
8882         resize grips, and align to bottom right if we square the 
8883         area to be drawn.
8884
8885         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
8886         statusbar label to 1, so it doesn't make toplevels resize oddly
8887         (gtk_statusbar_size_request): add grip size to request
8888         (gtk_statusbar_size_allocate): hack so the hbox still works with 
8889         the grip size in the request
8890
8891         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
8892         bug where showing all on a toplevel makes the toolbar 
8893         button text appear despite the toolbar mode
8894
8895         * gtk/gtkmenubar.c: add internal padding style property
8896
8897         * gtk/gtktoolbar.c: Add internal padding style property; add
8898         shadow type style property
8899
8900         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8901         state; and put Container::border_width outside the frame
8902
8903         * gtk/gtktextview.c: don't draw focus rectangle if we're in
8904         interior focus mode, we just use blinking cursor
8905
8906 2001-06-04  Havoc Pennington  <hp@redhat.com>
8907
8908         * configure.in: Make gdk-pixbuf have same version number as GTK
8909
8910 2001-06-04  Havoc Pennington  <hp@redhat.com>
8911
8912         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
8913         digits greater than 6. If there actually are limits (which there
8914         likely aren't), should clamp to them not warn.
8915         (gtk_spin_button_new_with_range): don't take log of 0
8916         (gtk_spin_button_size_request): use digits to compute size
8917         request, rather than step increment.
8918
8919         * tests/testgtk.c (create_spins): test larger values of digits
8920         
8921         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8922         font on map not expose, so we don't get weirdness during scrolling
8923
8924 2001-06-04  Havoc Pennington  <hp@redhat.com>
8925
8926         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8927         Sam Solon, bug #54577, update value even if not drawable.
8928
8929 2001-06-04  Havoc Pennington  <hp@redhat.com>
8930
8931         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8932         SCROLL_LEFT, reported by Thomas Broyer.
8933
8934 2001-06-04  Havoc Pennington  <hp@redhat.com>
8935
8936         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
8937         Process updates immediately, to prevent funny lag effect
8938         when scrolling, at some mild potential efficiency cost.
8939
8940 2001-06-04  Havoc Pennington  <hp@redhat.com>
8941
8942         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8943         slider on the click.
8944
8945 2001-06-03  Havoc Pennington  <hp@pobox.com>
8946
8947         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8948         hscale/vscale details, so we can use it for scrollbar as well.
8949
8950         * tests/testgtk.c (reformat_value): honor digits from GtkScale
8951
8952         * gtk/gtkenums.h (GtkTroughType): Remove this enum
8953         (GtkScrollType): add START and END from GtkTroughType
8954
8955         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8956         its x/y arguments
8957
8958         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8959         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8960         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8961         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8962         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8963
8964         Notable changes in the process:
8965          
8966         - stepper_size style property is the height for vertical 
8967           ranges, width for horizontal; the other dimension matches
8968           the trough size
8969         - add ability to do NeXT-style steppers (and several other styles
8970           that don't make any sense)
8971         - added min_slider_length, fixed_slider_length properties to
8972           GtkScrollbar
8973         - cleaned some private (or at least useless) functions out of
8974           gtkscale.h    
8975         - moved bindings to GtkScale from subclasses, even arrow keys,
8976           since blind users don't know scale orientation.
8977         - change move_slider action signal to use new GtkScrollType,
8978           remove GtkTroughType argument
8979         - digits rounds the values a range will input to the given 
8980           number of decimals, but will not try to force adjustment 
8981           values set by other controllers. That is, we no longer
8982           modify adjustment->value inside a value_changed handler.
8983         - added getters for GtkScale setters
8984         - middle-click begins a slider drag
8985         
8986 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
8987
8988         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8989         getting the focus code to work.
8990         (gtk_tree_view_class_init): Add a bunch of keybindings.
8991
8992         * gtk/gtktreeviewcolumn.c
8993         (gtk_tree_view_column_set_cell_data_func):
8994         s/GtkCellDataFunc/GtkTreeCellDataFunc.
8995         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8996         of "properties_changed" to help justify the death of the latter
8997         signal. (-:
8998
8999         * tests/testtreefocus.c (main): Let some columns be focussable to
9000         test focus better.
9001
9002 2001-06-01  Havoc Pennington  <hp@redhat.com>
9003
9004         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
9005         
9006         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
9007         overwrite in overwrite mode if we already deleted the selection
9008         and replaced it with new text.  
9009
9010         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
9011         selection to an empty range, clear the clipboard if we owned it.
9012         (gtk_label_set_selectable): give up selection if we become
9013         unselectable.
9014         (gtk_label_state_changed): override state changed to unselect text
9015         when insensitive
9016         (get_text_callback): add paranoia check that indexes aren't
9017         outside of label->text
9018         (gtk_label_select_region): make -1 for start_offset mean "end of
9019         label," for consistency with GtkEditable
9020
9021         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
9022         GTK_DIALOG_NO_SEPARATOR flag
9023
9024 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
9025
9026         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
9027         notifications on non-existant "enable_arrow_keys".
9028         (#53753, Skip Montanaro)
9029
9030 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
9031
9032         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
9033         GDK_TYPE_RECTANGLE.
9034
9035         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
9036         of allocation argument be GDK_TYPE_RECTANGLE.
9037
9038 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
9039
9040         * gtk/gtkoptionmenu.c: Account for the fact that the border
9041         width is _outside_ the window. (Fixes #54585, bug found
9042         by Bastien Nocera.)
9043
9044 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
9045
9046         * gtk/gtksettings.c (gtk_settings_get_property): Validate
9047         value from GDK settings against parameter spec.
9048
9049         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
9050         to temporary values and use g_value_transform(), since
9051         thinking that GValue was going to be easy or efficient
9052         to use was, of course, a mistake.
9053
9054         * gtk/gtksettings.c: Add cursor blink setting.
9055         
9056         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
9057
9058         * gtk/gtkentry.c: Add cursor blinking.
9059
9060         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
9061         cursor blink global settings.
9062
9063         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
9064         for :text_position in places where it is missing.
9065
9066 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
9067
9068         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
9069
9070 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
9071
9072         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
9073         not pkg-config. (#51032)
9074
9075         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
9076         (fixes #51952, James Henstridge)
9077         
9078 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
9079
9080         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
9081         Rename to the more correct gtk-go-up.
9082
9083         * gtk/stock-icons/stock_menu_sort_ascending.png:
9084         Added new file.
9085         
9086         * gtk/stock-icons/stock_menu_sort_descending.png:
9087         Changed to show descending instead of ascending.
9088
9089         * gtk/gtkiconfactory.c:
9090         Added menu size icon to sort ascending.
9091
9092         * gtk/stock-icons/Makefile.am:
9093         Added stock_menu_sort_ascending.png.
9094         
9095         * gtk/gtkseparatormenuitem.c:
9096         Use correct typenames.
9097
9098 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
9099
9100         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
9101         gulong as in GSignal.
9102
9103 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
9104
9105         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
9106         instances of GtkCellRenderer in code (all but dnd icon code).
9107         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
9108         there, and I can do multiple Cells per column.
9109
9110         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
9111
9112         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
9113         when model was unreffed prior to removing the row reference.
9114
9115 2001-05-25  Havoc Pennington  <hp@redhat.com>
9116
9117         * gtk/gtkiconfactory.c: fix so that default icons are created if 
9118         you call gtk_stock_list_ids()
9119
9120         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
9121         in list
9122
9123 2001-05-25  Havoc Pennington  <hp@redhat.com>
9124
9125         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
9126         set can render without falling back to missing image icon
9127
9128         * gtk/gtktextview.c (gtk_text_view_size_request): request full
9129         size of text, instead of random values
9130
9131         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
9132         size of tree view, instead of random values
9133
9134         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
9135         image in an appropriate size
9136
9137         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
9138         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
9139
9140         Throughout: fix GTK_STOCK_BUTTON_ instances
9141         
9142         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
9143         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
9144         Add a bunch of new stock items/icons
9145
9146         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
9147         new function, convenience for inserting columns with a data func
9148
9149         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
9150         (_gtk_icon_factory_list_ids): use list of all factories to
9151         generate a list of all known IDs
9152
9153         * gtk/gtkstock.c (gtk_stock_list_ids): replace
9154         gtk_stock_list_items() with a function that returns all IDs known
9155         including those for GtkIconFactory.
9156
9157 2001-05-25  Hans Breuer  <hans@breuer.org>
9158
9159         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
9160         work -> check boxes and radio buttons are drawn now, even on win9x.
9161         Improved line settings a bit, still no clue how to get really dotted
9162         lines on win9x, on NT it's PS_ALTERNATE.
9163
9164         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
9165         GDK_HINT_MIN_SIZE as well
9166
9167         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
9168
9169         * gtk/gtk.def : updated
9170
9171         * gtk/gtktreeprivate.h : change column_drop_func to be a function
9172         pointer not a function pointer pointer
9173
9174         * tests/testdnd.c : include <stdlib.h> for putenv prototype
9175
9176         * tests/testsocket.c : made it compile on win32 again
9177
9178         * tests/makefile.msc : one more test-app uses prop-editor.obj
9179
9180 2001-05-22  Havoc Pennington  <hp@pobox.com>
9181
9182         * gtk/gtkbin.c (gtk_bin_get_child): New function
9183
9184 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
9185
9186         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
9187         to ignore when doing compose processing.
9188
9189 2001-05-22  Joe Shaw  <joe@ximian.com>
9190
9191         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
9192         Simplify as suggested by Havoc. Just get the last iter and work
9193         backward to the tag instead of getting a line and working back from
9194         there. Fixes passing in an invalid offset to
9195         iter_init_from_byte_offset().
9196
9197 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
9198
9199         * gtk/gtktreeview*.h: 
9200         * gtk/gtkcell*.h:
9201         * gtk/gtk*store.h:
9202         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
9203         macros to all objects.
9204
9205 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
9206
9207         * gtk/gtkcellrenderertext.c
9208         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
9209         with very large (TM) amounts of text.  May be moved to
9210         GtkCellRenderer in the future, though I'm not sure it wants to be
9211         this accessible.
9212
9213         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
9214         More sanity brought to this class.  I like it.
9215
9216         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
9217         case.  Kids, don't try this at home.
9218
9219         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
9220         convenience function.
9221
9222         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
9223
9224 2001-05-21  Alexander Larsson  <alexl@redhat.com>
9225
9226         * gtk/gtkfontsel.c:
9227         Added properties. Based on patch by Lee Mallabone.
9228
9229         * gtk/gtkruler.c:
9230         * gtk/gtkhruler.c:
9231         * gtk/gtkvruler.c:
9232         * gtk/gtktext.c:
9233         * gtk/gtktextview.c:
9234         Converted GtkArg to GParam. Based on patches by John Margaglione.
9235
9236         * tests/Makefile.am:
9237         * tests/testtext.c:
9238         Add a property editor to testtext.
9239         
9240 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
9241
9242         * gtk/gtk{h,v,}paned.c: Only show the separator if 
9243
9244         * configure.in: Fixed reversed conditional causing all image
9245         libraries to be linked in.
9246
9247 2001-05-21  Joe Shaw  <joe@ximian.com>
9248
9249         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
9250         that top_y needs to be >= 0.
9251
9252 2001-05-11  Havoc Pennington  <hp@pobox.com>
9253         
9254         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
9255         losing connection to the X server.
9256
9257 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
9258
9259         * configure.in: Start checks for X from pangox/pangoxft
9260         CFLAGS to avoid duplicate libraries.
9261
9262         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
9263
9264         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
9265         to include gobject.
9266         
9267 2001-05-18  Alexander Larsson  <alexl@redhat.com>
9268
9269         * gtk/gtkspinbutton.c:
9270         Convert GtkArgs to GParams. Based on patch by John Margaglione.
9271         Also do size request reasonable for MAXDOUBLE. Previously it printed
9272         the limits to a buffer and overran it. Instead do it using log10() and
9273         limit the width to 10 digits.
9274         
9275         * gtk/gtkwidget.c (gtk_widget_get_property):
9276         Correctly handle setting the parent property to NULL.
9277
9278 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
9279
9280         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
9281         style attributes even if the widget isn't realized.
9282
9283         * demos/gtk-demo/main.c: Use a slightly smaller font.
9284
9285 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
9286
9287         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
9288         This is something that only a widget writer would ever want
9289         to change.
9290
9291         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
9292         gtk_signal_emit_by_name().
9293
9294         * gtk/gtkviewport.c: Fix some warnings.
9295
9296         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
9297         allowing the requisitions of multiple widgets to be grouped
9298         together.
9299
9300         * tests/testgtk.c: Add GtkSizeGroup test
9301
9302         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
9303
9304         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
9305         warnings.
9306
9307         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
9308
9309 2001-04-28  Martin Baulig  <baulig@suse.de>
9310
9311         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
9312         to gtk_image_menu_item_set_icon() and made it work if there's already
9313         an image.
9314         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
9315         (gtk_image_menu_item_new_with_label): New function.
9316
9317 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
9318
9319         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
9320         highlighting code!!!!  The result is okay so long as you don't try
9321         to stress it.  It also highlights a bug in the TextView so it's in
9322         an unproportional font right now until it's fixed.
9323
9324         *demos/gtk-demo/*.c: Clean up code a bit to make it
9325         ugly-parser(TM) friendly. (-:
9326
9327 2001-05-17  Joe Shaw  <joe@ximian.com>
9328
9329         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
9330         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
9331         if it is only partially onscreen.
9332
9333 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
9334
9335         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
9336         not by characters.
9337
9338         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
9339         are not zero or one; that is, when graphemes of multiple characters
9340         are involved.
9341
9342         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
9343         FIXME.
9344
9345 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
9346         
9347         * gtk/gtkbbox.c:
9348         Add properties, based on patch by Lee Mallabone.
9349
9350         * gtk/gtknotebook.c:
9351         * gtk/gtktoolbar.c:
9352         Convert from GtkArg to GParam, based on patch by John Margaglione.
9353         
9354         * gtk/gtkhscale.c:
9355         * gtk/gtkvscale.c:
9356         * gtk/gtkhscrollbar.c:
9357         * gtk/gtkvscrollbar.c:
9358         * gtk/gtkrange.c:
9359         Move adjustment property to GtkRange.
9360
9361         * gtk/gtklabel.c:
9362         Setup mnemonics on property changes
9363
9364         * gtk/gtkwidget.c (gtk_widget_get_property):
9365         GdkExtensionMode is an enum, not a flag. Set it with
9366         g_value_set_enum ().
9367
9368         * tests/prop-editor.c:
9369         Better propery editor.
9370
9371         * tests/testgtk.c:
9372         Add new property test. Pass zero to the property editor to
9373         get properties from all derived types.
9374         
9375 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
9376
9377         * autogen.sh (have_automake): Require libtool-1.4,
9378         automake-1.4p1.
9379
9380         * acinclude.m4: Remove libtool macros.
9381
9382         * gdk-pixbuf/Makefile.am: Add dependencies to loade
9383         modules.
9384
9385         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
9386         for libgdk.
9387
9388         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
9389         libgdk.la for libgtk.
9390
9391         * modules/input/Makefile.am: Make modules have full
9392         dependencies.
9393
9394 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
9395
9396         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
9397         #54699 where paths weren't being checked for correctness.
9398
9399 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
9400
9401         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
9402         in any order you wan, whether or not the column is added to the
9403         tree, or the tree is realized.  Yay!
9404
9405         * gtk/gtktreeviewcolumn.c
9406         (gtk_tree_view_column_setup_sort_column_id_callback): handle
9407         sorting columns a lot saner
9408
9409         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
9410         new function to actually set wether or not a column is
9411         reorderable.
9412
9413         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
9414         if we have 'em.
9415
9416         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
9417         Fix nasty bug where we were showing the button just before
9418         realizing it.  As a result, the parent window was
9419         tree_view->window instead of tree_view->priv->header_window.
9420
9421         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
9422         to let you easily reorder a list or tree.
9423
9424 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
9425
9426         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
9427         from args to properties.
9428
9429 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
9430
9431         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
9432         from args to properties. (#51957)
9433
9434         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
9435         calls to after ->set_property call.
9436
9437 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
9438
9439         * tests/prop-editor.c: Block against redundant changes.
9440
9441         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
9442         properties.
9443
9444 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
9445
9446         * gdk/gdkpixmap.h: Remove creative formatting.
9447
9448 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
9449
9450         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
9451         property API. (#51669)
9452
9453         * gtk/gtkscale.c: Patch from John Margaglione converting to
9454         property API. (#51891)
9455
9456         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
9457         to property API. (#50985)
9458
9459 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
9460
9461         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
9462         buffering state across expose event, so we still call end_paint().
9463
9464 2001-05-11  Alexander Larsson  <alexl@redhat.com>
9465
9466         * gtk/gtkhsv.c (paint_triangle):
9467         Expose the ring in the triangle at the correct place when
9468         exposing just a part of the triangle.
9469
9470         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
9471         Return FALSE, or window focusing will not work.
9472
9473 2001-05-11  Havoc Pennington  <hp@pobox.com>
9474
9475         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
9476         #54144
9477
9478         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
9479         bug #54330
9480
9481 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
9482
9483         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
9484         propagate exposes to NULL child.
9485
9486         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
9487         against not having one of the scrollbars.
9488
9489         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
9490         we don't keep a mnemonic window if we have no mnemonic installed.
9491
9492 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
9493
9494         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
9495         it has the _important_ side effect of initializing a class.
9496
9497 2001-05-10  Alexander Larsson  <alexl@redhat.com>
9498
9499         * gdk/linux-fb/gdkprivate-fb.h:
9500         Make sure you can compile out the implementation/wrapper assert
9501         macros.
9502
9503         * gdk/linux-fb/gdkdrawable-fb2.c:
9504         Check implementation/wrappers, initialize type for pixmap dummys.
9505
9506         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
9507         Hide the cursor if reading from the screen.
9508
9509         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9510         Fix sign bug in tiling code.
9511
9512         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
9513         Handle background pixmaps.
9514
9515 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
9516
9517         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
9518         function to let user control where columns are dragged.
9519
9520         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
9521         Escape is pressed.
9522
9523 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
9524
9525         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
9526         "columns_changed" signal.
9527         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
9528         motion code to draw arrows to the side if indicator is outside the
9529         widget.
9530         (gtk_tree_view_map_expanded_rows): Implement.
9531
9532 2001-05-07  Alexander Larsson  <alexl@redhat.com>
9533
9534         * demos/testpixbuf-save.c: 
9535         * demos/testpixbuf-drawable.c:
9536         Include gdkfb.h on linux-fb.
9537
9538 2001-05-07  Alexander Larsson  <alexl@redhat.com>
9539
9540         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
9541         New function for getting toplevel window at position.
9542         (gdk_drag_find_window): Use get_toplevel_window () instead
9543         of gdk_window_get_pointer(). (gdk_drag_status): Use
9544         correct context for getting window.
9545
9546         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
9547         g_strdup the atom name.
9548
9549         * gdk/linux-fb/gdkwindow-fb.c:
9550         Costmetic fix.
9551
9552         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
9553         Add code for changing cursor on linux-fb backend (same as
9554         win32).
9555
9556 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
9557
9558         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
9559         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
9560         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
9561         report was not for the development branch of GTK+, but it applies
9562         anyways).
9563
9564 2001-05-04  Havoc Pennington  <hp@redhat.com>
9565
9566         * configure.in: fix some shell typos
9567
9568         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
9569
9570         * gtk/gtkimage.c: handle animations
9571
9572         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
9573         border_width * 2, not just border_width
9574
9575         * gtk/gtkscale.c: add "format_value" signal to allow people
9576         to override the way values are drawn.
9577         (gtk_scale_get_value_size): fix width/height mistake,
9578         and compute size from actual displayed text, not 
9579         from made-up text.
9580
9581         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
9582         signal registration
9583
9584         * tests/testtext.c: Add "Remove all tags" menu item for testing
9585
9586         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
9587
9588         * demos/gtk-demo/main.c (main): add hack so we can find modules
9589         without installing gtk
9590
9591         * demos/gtk-demo/textview.c (insert_text): demo font scaling
9592
9593         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
9594         factor)
9595         (gtk_cell_renderer_text_set_property): remove some bogus
9596         g_object_notify
9597
9598         * gtk/gtktexttag.c: add "scale" property which is a font scaling
9599         factor
9600
9601         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
9602         to layout
9603
9604         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
9605         gtk_text_iter_is_first
9606
9607 2001-01-06  Hans Breuer  <hans@breuer.org>
9608
9609         * gdk/gdk.def : updated exports
9610
9611         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
9612         gdk won't compile anymore
9613  
9614         * gdk/win32/gdkevents-win32.c : initialize ret_val when
9615         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
9616         Improved gdk_flush () to not only do pending drawing operations
9617         but also process all currently pending events. This should make
9618         the behaviour more similar to the X11 version.  
9619
9620         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
9621         option needs to be set even if there is no GDK_GC_BACKGROUND.
9622         (gdk_win32_hdc_get) : use predraw_set_background () independent
9623         of value_mask. This allows to draw dashed lines leaving the original
9624         background intact.
9625
9626         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
9627         after processing, because we can't reuse it as the X11 version does.
9628
9629         * gtk/gtk.def : updated exports
9630
9631         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
9632         would like to get rid of this file again, and use straight
9633         makefile.msc again, as the other Gtk+ subdirs do)
9634
9635         * test/makefile.msc (new file) : build the test apps here
9636
9637 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
9638
9639         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
9640         strike-through setting
9641         (gdk_draw_layout_line_with_colors): Render strike-through
9642
9643 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
9644
9645         * Release 1.3.5
9646
9647         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
9648
9649         * NEWS: Updated
9650
9651         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9652         Makefile breakage.
9653
9654 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
9655
9656         * demos/gtk-demo/images.c (progressive_timeout): Fix
9657         typo in filename.
9658
9659         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9660         out FIXME warning; just too annoying.
9661
9662 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
9663
9664         * gdk/linux-fb/gdkcolor-fb.c:
9665         Better error messages.
9666
9667         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9668         Initialize abs_x and abs_y.
9669         
9670         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9671         Correct handling of stipple offset.
9672
9673         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9674         Treat directcolor framebuffers as truecolor.
9675         
9676 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
9677
9678         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9679         dependency on Atk for accessibility support.
9680
9681         * configure.in **/Makefile.am: Major reworking of substituted
9682         variables for CFLAGS/LIBS to make a lot more sane and 
9683         keep the the compile/link lines a bit shorter.
9684
9685         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9686
9687 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
9688
9689         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9690         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9691         use _gtk_boolean_handled_accumulator.
9692
9693 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
9694
9695         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9696         to fix things so clicking inside selection leaves cursor
9697         at point where clicked. (#50324)
9698
9699         * gtk/gtksettings.c (gtk_settings_class_init): Restore
9700         sane value for default double click time.
9701
9702         * tests/testtext.c (test_init): Really path to input modules.
9703
9704 2001-05-03  Sven Neumann  <sven@convergence.de>
9705
9706         * demos/testpixbuf-save.c: include target-specific headers as
9707         done in testpixbuf-drawable.c
9708
9709 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
9710
9711         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9712         new_text_length appropriately when we run into the 
9713         size limit for the entry. (#53445, reported by Jeff Franks)
9714
9715         * tests/testgtk.c (create_entry): Remove most of the
9716         property toggle buttons. Replace with a "Props" button
9717         that brings up a property editor.
9718
9719         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9720         Split the property editor code out for reuse, improve.
9721
9722 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
9723
9724         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9725         trap errors around calls to XSetInputFocus since we have
9726         no way of knowing reliably whether we are viewable or
9727         not. (#53947)
9728
9729 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
9730
9731         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9732         fix bug in dropping columns.  Moving columns now basically works
9733         modula some fine tuning.
9734
9735 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
9736
9737         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9738         autoscroll support.  It mostly works, but could use some fine
9739         tuning.
9740         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9741         Actually move the column.
9742
9743 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
9744
9745         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
9746           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9747           New default theme! A slighly improved version of the 2.0 Raleigh
9748           theme, with Windows-esque focus/drawing default. 
9749           (GtkWidget::interior_focus defaults to TRUE.)
9750
9751         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9752
9753 2001-04-30  Havoc Pennington  <hp@pobox.com>
9754
9755         * tests/testtext.c (line_numbers_expose): fix to work with
9756         gtk_paint_layout change
9757
9758 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9759
9760         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9761           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9762           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9763           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9764
9765         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9766           with GtkWidget::interior_focus = TRUE better.
9767
9768         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9769         ::default_outside_border for more flexibility.
9770
9771         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
9772         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9773         change that had to be made with g_object_get.
9774
9775 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
9776
9777         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9778         (gtk_tree_view_move_column_after): Clean up interface. 
9779
9780 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
9781
9782         * gtk/gtkpacker.h:
9783         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9784          to gtkenum.h.
9785
9786         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9787         handled in switch).
9788
9789         * gtk/Makefile.am:
9790         (gtk.defs): generate enum portions with  glib-mkenums.
9791         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9792         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9793         
9794         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9795         addition.
9796
9797         * docs/Changes-2.0.txt: keep a note on signal handlers now
9798         not getting emitted during the emission they were connected within.
9799
9800 2001-04-28  Havoc Pennington  <hp@pobox.com>
9801
9802         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9803
9804 2001-04-24  Havoc Pennington  <hp@redhat.com>
9805
9806         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
9807         (gtk_text_layout_move_iter_to_next_line): fix these two for
9808         invisible text, lots of other stuff still hosed.
9809
9810         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9811         new function, replaces the get/set palette stuff. This function 
9812         is intended for use by libgnomeui which should set the hook to a
9813         thing which sets the palette in GConf, and we need the
9814         GConf-to-xsettings proxy which will result in the change being
9815         propagated back to the GTK app.
9816
9817         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
9818         about unusable signals that it may be because the signal has 
9819         parameters.
9820
9821         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9822         style, otherwise gtkrc.c won't know to create a new GtkStyle for
9823         it.
9824         (gtk_widget_modify_color_component): call
9825         gtk_widget_modify_style() so the rc style will get copied.
9826         (gtk_widget_modify_font): ditto
9827
9828         * gtk/gtkrc.c: make a couple variables static
9829
9830         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9831         help button by default, since it does nothing
9832
9833         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9834         around with UI
9835
9836         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9837         so we can have tooltips
9838
9839         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9840         can have tooltips
9841
9842         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9843         GDK_ENABLE_BROKEN, because its memory behavior is completely
9844         hosed.
9845
9846         * gtk/gtknotebook.c: remove key press handler, replace with
9847         binding set, add numeric keypad support
9848
9849         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9850
9851         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9852
9853         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9854         addition to plain Delete
9855
9856         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9857         GDK_KP_Enter in addition to GDK_Return
9858
9859         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9860         activate on entry instead of key press
9861         (gtk_font_selection_on_clist_key_press): get
9862         rid of this signal handler, not needed with new font sel.
9863
9864         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9865         no-longer-needed emit_stop_by_name(), just return TRUE
9866
9867         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9868         cruft, this widget is no longer focusable.
9869
9870         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9871         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9872         move_slider action signal, add binding set for vscale/hscale, in
9873         the process support numeric keypad
9874
9875         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
9876         make GDK_Return and GDK_KP_Enter activate the entry via 
9877         binding set, instead of hardcoded.
9878
9879 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
9880
9881         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9882         code.  Some documentation added.
9883
9884 2001-04-27  Havoc Pennington  <hp@redhat.com>
9885
9886         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9887
9888         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9889
9890         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9891         line/para separators
9892         (gtk_entry_create_layout): set single paragraph mode on the layout
9893
9894         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9895         spacing between the image and label; instead, inside a button box 
9896         the button will get extra space that will go there, but if people 
9897         configure button box for 0 chubbiness, then there's no spacing.
9898
9899         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9900         and min/max size style properties, so people can tune their
9901         chubbiness.
9902
9903         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9904         functions
9905
9906         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9907         space_style, and button_relief into style properties, remove
9908         functions for setting them
9909         
9910         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
9911         it back down
9912
9913         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9914         types from gtk_widget_style_get
9915
9916         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9917         with a style property.
9918
9919         * gdk/x11/gdkevents-x11.c: namespace the settings
9920
9921         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9922
9923         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9924         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9925         be used. Also, translate doc strings for settings. Also, namespace
9926         the double-click-time property. Also, remove bell properties crap.
9927
9928 2001-04-27  Sven Neumann  <sven@gimp.org>
9929
9930         * Makefile.am: before creating links, check if pkg-config files
9931         exist for the default target. Otherwise link to the pkg-config files
9932         that got installed with this build.
9933
9934 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
9935
9936         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9937         dragging code.  Revealed some (potential) GdkWindow bugs.
9938
9939         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9940         _gdk_window_init_position to the end of reparent to fix the case
9941         of reparenting when new_x != old_x and new_y != old_y.
9942
9943 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
9944
9945         * gtk/gtkentry.c (strstr_len): Fix optimization that
9946         was correct for the use here, but completely incorrect
9947         in general.
9948
9949 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
9950
9951         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9952         until patch adding gtk_window_set_size() is recommitted. 
9953
9954         * **Makefile.am configure.in gdk/x11/gdkim-11.c
9955           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9956           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9957           (#10784)
9958
9959 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
9960
9961         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
9962         window == NULL in a number of cases.
9963
9964         * tests/testdnd.c: Set module path for gdk-pixbuf.
9965
9966 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
9967
9968         * gtk/Makefile.am xembed.h: File containing #defines
9969         for XEMBED protocol.
9970
9971         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
9972
9973         - Change protocol from old plug/socket specific protocol
9974           to XEMBED draft
9975         - Various fixes to work with GTK+-2.0
9976
9977         Still quite a bit of work to do here to handle initiation
9978         from the socket side (as specified by XEMBED), to handle
9979         the more advanced features of XEMBED, and to figure out
9980         a good way to handle same-app embedding with less overhead
9981         than using full XEMBED.
9982
9983 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
9984
9985         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9986         track of whether the toplevel has the focus; only send
9987         focus-in events to the focus widget when the window
9988         actually has the focus.
9989
9990 2001-04-25  Havoc Pennington  <hp@pobox.com>
9991
9992         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9993         were still in the header
9994
9995 2001-04-24  Alexander Larsson  <alexl@redhat.com>
9996
9997         * gtk/gtkclist.[ch]:
9998         * gtk/gtkctree.c:
9999         When there is a row highlighted for D'n'D it must alse
10000         be painted hightlighted on exposes. Otherwise exposes from
10001         the icon being dragged will mess up the hightlight.
10002
10003         * gtk/gtkfontsel.c:
10004         Don't recenter selected font when exposing the font family
10005         clist. This means you can now actually scroll the font family
10006         list.
10007
10008         * gtk/gtknotebook.c:
10009         Fix focus movement on scrolling tabs that are placed on the left
10010         and right.
10011
10012 2001-04-21  Havoc Pennington  <hp@pobox.com>
10013
10014         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
10015         empty/invisible lines.
10016
10017         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
10018         (gtk_text_iter_set_visible_line_index): new functions to set
10019         indexes excluding invisible text
10020
10021         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
10022         index
10023
10024         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
10025         (gtk_text_iter_get_visible_line_offset): new functions to 
10026         get indexes excluding invisible text
10027
10028         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
10029         bunch of extra padding that served no purpose
10030
10031         * gtk/gtkdialog.c: Make all the spacings configurable via style
10032         properties, for chubbiness configuration in themes
10033
10034         * tests/testtext.c: fix path to the immodules.
10035         
10036 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
10037
10038         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
10039         got munched by #endif.
10040
10041         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
10042
10043         * gtk/gtktreeview.c: Refactored code to clean up a number of
10044         events.
10045
10046         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
10047         values to make consistent with other functions.  Spotted by Jeff
10048         Franks <jcf@tpg.com.au>.
10049
10050         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
10051         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
10052
10053 2001-04-23  Sven Neumann  <sven@gimp.org>
10054
10055         * gtk/Makefile.am
10056         * gtk/gtkplug.c
10057         * gtk/gtksocket.c: on request of Owen, reverted my last change 
10058         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
10059
10060 2001-04-23  Sven Neumann  <sven@gimp.org>
10061
10062         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
10063         compile for non-X11 targets again
10064
10065 2001-04-20  Alexander Larsson  <alexl@redhat.com>
10066
10067         * gtk/gtkcolorsel.[ch]:
10068         API Change. Take GdkColor arguments instead of gdouble *.
10069         Leave the old gtk_color_selection_set_color for compatibility,
10070         but marked deprecated.
10071         Do correct rounding when converting RGB <-> HSV.
10072         
10073         * gtk/gtkcolorseldialog.c:
10074         * tests/testgtk.c:
10075         Use new GtkColorSelection API.
10076
10077         * gtk/gtkhsv.c:
10078         Fix problem selecting colors in triangle when Hue is 330.
10079         Fix some black dots around the HSB triangle.
10080         
10081         * gtk/gtkfilesel.c:
10082         return FALSE from the focus_in_event handler to fix focus problems.
10083
10084 2001-04-18  Havoc Pennington  <hp@redhat.com>
10085
10086         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
10087         set, so keybindings are configurable    
10088         (gtk_window_activate_default): Change to activate the focus widget
10089         instead if there's a focus widget, to be consistent with the
10090         behavior that previously existed in key_press_event
10091
10092 2001-04-18  Havoc Pennington  <hp@redhat.com>
10093
10094         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
10095
10096 2001-04-18  Havoc Pennington  <hp@redhat.com>
10097
10098         Close bug #50615:
10099         
10100         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
10101         the layout
10102
10103         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
10104
10105         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
10106
10107         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
10108         
10109         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
10110         to blue for base, in addition to bg
10111         
10112 2001-04-18  Havoc Pennington  <hp@redhat.com>
10113
10114         * tests/testgtk.c (create_image): allow shrinking the image window
10115         to test that we clip to allocation.
10116
10117         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
10118         #9845
10119
10120         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
10121
10122 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
10123
10124         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
10125         mode on shm segments to 0600. We'll see who complains.
10126
10127         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
10128         _gdk_windowing_window_destroy() AFTER recursing through
10129         children.
10130
10131         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
10132         testsocket_child on X.
10133
10134         * tests/testsocket[_child].c: Fix uses of
10135         gtk_window_get_default_accel_group().
10136
10137         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
10138
10139         * gdk/gdkimage.c: (gdk_image_get):
10140         Deal with the possibility that XGetImage() might return NULL.
10141         Allocate the GdkImagePrivate structure only after XGetImage()
10142         succeeds in order not to dereference a NULL ximage pointer.  This
10143         prevents a core dump when XGetImage() fails - which is unlikely,
10144         but can happen due to race conditions accessing the geometries of
10145         drawables.  An x error will still be triggered, but the gdk image
10146         wrapper at least wont seg fault.
10147         
10148 2001-04-18  Havoc Pennington  <hp@redhat.com>
10149
10150         * gtk/gtkimage.c: fix to properly queue resizes when the image is
10151         set
10152
10153         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
10154         if the insertion point isn't editable
10155
10156         * demos/gtk-demo/images.c: Added a GtkImage demo
10157
10158         * demos/gtk-demo/drawingarea.c: drawing area demo
10159         
10160         * demos/gtk-demo/menus.c (create_menu): cleanups
10161
10162 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
10163
10164         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
10165           gdk/x11/gdkevents-x11.c: Introduce an extra child
10166         of toplevel windows that serves to hold the focus to
10167         avoid events being delivered to embedded windows.
10168
10169         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
10170         some extra variables to clean up code and reduce the
10171         number of casts.
10172
10173         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
10174         guint for 1 bit bit fields, not gboolean.
10175
10176 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
10177
10178         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
10179         not TRUE. (Fixes #52925)
10180
10181 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
10182
10183         * Released 1.3.4
10184
10185         * NEWS: Updated
10186
10187         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
10188         use GTK_TYPE_ENUM.
10189
10190 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
10191
10192         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
10193
10194         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
10195         names to compatibility #defines so docs work.
10196
10197         * gtk/gtkenums.h: Remove GtkMenuFactoryType
10198
10199         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
10200
10201         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
10202
10203         * tests/testgtkrc: No magenta cursors, please.
10204
10205         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
10206
10207         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
10208         
10209 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
10210
10211         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
10212         grabs, since they are no longer necessary.
10213
10214         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
10215         by signal_connect() and call gtk_button_pressed() rather
10216         than signal_connect_after().
10217
10218         * tests/testgtk.c: Restore radio menu items to combos 
10219         since they'll look OK with Raleigh, and it is easier
10220         than finishing the process of removing them that was
10221         started earlier.
10222
10223 2001-04-16  Hans Breuer  <hans@breuer.org>
10224
10225         * gdk/gdk.def :
10226         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
10227
10228         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
10229         we are interested in the functions return value not the function address
10230         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
10231
10232         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
10233
10234 2001-04-14  Hans Breuer  <hans@breuer.org>
10235
10236         * gdk/gdk.def :
10237         * gdk/makefile.msc : updated
10238
10239         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
10240         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
10241         (the testgtk::text backgound pixmap is drawn again)
10242         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
10243         Win32 Pango change
10244         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
10245
10246         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
10247         Not sure if the returned settings have the right unit, because I couldn't
10248         find any docs for the X version ...
10249
10250         * gtk/gtk.def :
10251         * gtk/makefile.msc.in : updated
10252
10253 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
10254
10255         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
10256         wording problems. (Compared to version from Johannes Stezenbach to
10257         check correctness.)
10258
10259 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
10260
10261         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
10262         this to compile.
10263
10264 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
10265
10266         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
10267         not pixbufpos.
10268
10269         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
10270
10271         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
10272         are unsigned insts, therefore use g_value_set_uint.
10273         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
10274
10275 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
10276
10277         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
10278
10279         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
10280         GTK_TYPE_STRING.
10281
10282         * gtk/gtktreeview.c: New functions to allow initial column
10283         dragging work.
10284
10285         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
10286
10287         * tests/testtreefocus.c: give dave some love.
10288
10289         * tests/testtreesort.c: Modify test to check really long samples.
10290
10291 2001-04-11  Alexander Larsson  <alexl@redhat.com>
10292
10293         * gtk-2.0.m4: Pass pkg-config options
10294         before the other args so it works even if
10295         POSIXLY_CORRECT is set.
10296
10297 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
10298
10299         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
10300         0, interface 0).
10301
10302 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
10303
10304         * gtk/gtkcalendar.c (gtk_calendar_button_press):
10305         check for action_func != NULL
10306
10307 2001-04-04  Sven Neumann  <sven@gimp.org>
10308
10309         * tests/testgtk.c (test_init): corrected path to gtk.immodules
10310
10311 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
10312
10313         * Released Gtk+-1.3.3.
10314
10315 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
10316
10317         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
10318
10319 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
10320
10321         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
10322         files to/from source dir. (if we don't stay in builddir, we
10323         can't reach make-inline-pixbuf.
10324
10325         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
10326         deps.
10327
10328         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
10329         ages 0).
10330
10331 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
10332
10333         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
10334         moved to the GtkTreeSortable interface.
10335
10336         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
10337         Make more efficient (fixes #50262).
10338
10339 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
10340
10341         * NEWS: Updated.
10342
10343         * configure.in: Remove support for uninstalled glib.
10344
10345         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
10346         so as not to stop emission.
10347
10348         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
10349         is no longer supported.
10350
10351         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
10352         into tests, change build order to build modules before
10353         gtk/.
10354
10355         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
10356         to here.
10357
10358 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
10359
10360         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
10361         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
10362         GPatternSpec. this is actually unlikely to cause breakage in
10363         third-party apps since except for gle, pretty much ever caller
10364         passes NULL here.
10365
10366         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
10367
10368         * *.c: use g_pattern_*() API.
10369
10370         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
10371
10372         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
10373         directions aren't passed in.
10374
10375         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
10376         functionality to be usable from gtkstyle.c as well, give precedence
10377         for conversion to user-supplied parsers.
10378         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
10379
10380         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
10381         _gtk_settings_parse_convert() for rcporperty value conversion.
10382
10383 2001-04-03  Alexander Larsson  <alexl@redhat.com>
10384
10385         * gdk/linux-fb/gdkevents-fb.c:
10386         Add empty gdk_setting_get().
10387
10388 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
10389
10390         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
10391         variable names.
10392         
10393         * gtk/makeenums.pl: touch this so enum files get remade.
10394
10395 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
10396
10397         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
10398         work again when not sorted.
10399
10400         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
10401         and "expand_row" signal, closing bug 52578.
10402
10403         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
10404         support.
10405
10406         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
10407         support.
10408
10409 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
10410
10411         * gdk/gdkevents.h: Add GdkEventSetting event for notification
10412         of changes to system settings, gdk_setting_get() to retrieve
10413         a single system setting.
10414
10415         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
10416         to the draft XSETTINGS mechanism.
10417
10418         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
10419         XSETTINGS.
10420
10421         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
10422         of GDK settings changes to the GtkSettings object.
10423
10424         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
10425         double-click-timeout property to GDK.
10426
10427         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
10428         Define GDK boxed types here.
10429
10430         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
10431         gdk/gdkenumtypes.[ch] for enum definitions.
10432
10433         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
10434         * gtk/gtk-boxed.defs: Comment out GDK types
10435         * gtk/gtktypeutils.h: Remove GDK types
10436         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
10437
10438 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
10439
10440         * Applied patch from Ron Steinke to add signal accumulators
10441         so that signals with the convention 'TRUE return means
10442         handled' stop emission on a TRUE return.
10443
10444         * gtk/gtkmain.[ch]: Add private accumulator 
10445         _gtk_boolean_handled_accumulator, used throughout GTK+.
10446         
10447         * gtk/gtkspinbutton.c: Add accumulator for ::output.
10448
10449         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
10450         
10451         * gtk/gtkwidget.c: Add accumulators for event signals,
10452         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
10453         for ::mnemonic-activate.
10454
10455         * gtk/gtkwindow.c: Add accumulator for ::frame_event
10456
10457 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
10458
10459         * gtk/gtkwidget.c: Add missing include.
10460
10461 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
10462
10463         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
10464         marshaller.
10465
10466         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
10467         "changed" signal to "range_changed".
10468
10469         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
10470         removing a tree from one model would remove all trees from that
10471         model.
10472         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
10473         changed signal instead.
10474
10475 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
10476
10477         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
10478         chaining up to parent impl, since we have a INPUT_ONLY
10479         window.
10480
10481         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
10482         foreground color for the cursor.
10483
10484 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
10485
10486         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
10487         param spec when caching property values, since we unref it
10488         later when we free the style.
10489
10490         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
10491         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
10492
10493 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
10494
10495         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
10496         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
10497         stupidity.
10498
10499 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
10500
10501         [ First pass at adding style properties. Still needs some definite
10502         fine-tuning. ]
10503
10504         * gtk/gtkbutton.c: Add ::default_spacing style property.
10505          
10506         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
10507         ::indicator_spacing style properties.
10508
10509         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
10510         style properties.
10511
10512         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
10513         rather than a normal property.
10514
10515         * gtk/gtkwidget.c: Add an ::interior_focus style property to
10516         draw focus inside buttons, in the Windows/Java Metal/etc. style.
10517
10518         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
10519         Honor ::interior_focus.
10520         
10521         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
10522         TRUE.
10523
10524         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
10525         Add ::slider_width, ::trough_border, ::stepper_size,
10526         ::stepper_spacing style properties.
10527
10528         * gtk/gtkscale.[ch] Add ::slider-length style property.
10529
10530 2001-04-02 Alexander Larsson   <alexl@redhat.com>
10531
10532         * gdk/linux-fb/gdkwindow-fb.c:
10533         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
10534         warnings that were spewed on startup.
10535
10536         * gtk/gtkwindow-decorate.c:
10537         gtk_window_reposition -> _gtk_window_reposition
10538
10539 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
10540
10541         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10542         Add boxed type for GtkRequistion. Use it for ::size-request.
10543
10544         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10545         Add a new GtkBorder structure useful for geometry properties
10546         for widgets. Add corresponding GTK_TYPE_BORDER.
10547         
10548         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
10549         Support automatic parser selection like
10550         gtk_settings_install_property_parser().
10551
10552         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
10553         functionality for use by gtk_widget_class_install_style_property.
10554         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
10555
10556 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
10557
10558         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
10559         g_param_spec_unichar(). 
10560
10561 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
10562
10563         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
10564         _NET window managers.
10565
10566         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
10567
10568 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
10569
10570         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
10571         bad needs to be nuked, not just deprecated.
10572
10573         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
10574         gtk_widget_popup().
10575
10576         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
10577         
10578         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
10579         widget.
10580         
10581         * docs/Changes-2.0.txt: updates.
10582         
10583 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
10584
10585         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
10586         for (i = 0; i < 100; i ++)
10587           g_print ("I will confirm it compile before committing\n");
10588
10589 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
10590
10591         * gtk/gtktreestore.c: Initial work on implementing the
10592         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
10593
10594 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
10595
10596         * gtk/gtkwidget.c: fixed a bunch of notifications, added
10597         reference counts around emissions where the widget is used afterwards.
10598         added freeze/thaws around multiple properties being notified.
10599         (_gtk_widget_get_aux_info): cleanups.
10600         
10601         * gtk/gtksettings.c (gtk_settings_install_property): provide
10602         default parsing functions for gdkcolor, enums and flags.
10603
10604         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
10605         applied by owen.
10606         backed out gtk_window_get_location(), gtk_window_set_location(),
10607         gtk_window_get_size() and gtk_window_set_size(), these
10608         have to be sorted out wrg x/y/width/height/default_with/default_height
10609         properties.
10610         kept a flag in GtkWindowGeometryInfo to handle user
10611         resetting default sizes.
10612         cleaned up ZVT comments.
10613         bunch of assorted bug fixes, notification fixes.
10614         (_gtk_window_reposition): make this a really internal function.
10615         
10616         * gtk/testgtk.c: fixups.
10617         
10618 2001-03-31  Hans Breuer  <hans@breuer.org>
10619
10620         * config.h.win32.in : disable USE_MMX for msvc build cause
10621         the assembler doesn't fit and is out of my scope. Disable
10622         USE_GMODULE for msvc build as wel. The right way to share
10623         binaries on win32 would be to use libtiff.dll etc. To reduce
10624         installation hassles IMO it's better to include all fileformats
10625         builtin to gdk-pixbuf
10626
10627         * gdk-pixbuf/makefile.msc : new file
10628
10629         * gdk/gdk.def : updated
10630
10631         * gdk/win32/gdkevents-win32.c : don't erase the background if
10632         .no_bg is set. It improves the scrolling (e.g. of testgtk main
10633         buttons
10634         * gdk/win32/gdkgeometry-win32.c : added comment about the above
10635
10636         * gdk/win32/gdkwindow-win32.c : added three new functions like
10637         the X version. Only one is implemented, because the other two
10638         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
10639         be default behaviour on win32 anyway ...
10640
10641         * gtk/gtk.def : updated
10642
10643         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
10644         from where it was built and add an additional rule to automagically
10645         build gtkmarshal.[hc]
10646
10647         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
10648         before array access for the current entry isn't finished
10649
10650         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10651         use g_return_val_if_fail
10652
10653         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10654         for the static array, but let the compiler calculate it. It
10655         makes me wonder if gcc isn't capable to catch bugs like this ...
10656
10657 2001-03-31  James Henstridge  <james@daa.com.au>
10658
10659         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10660         constant "-1" in the aux info structure.
10661
10662 2001-03-30  Alexander Larsson  <alexl@redhat.com>
10663
10664         * gtk/gtkbutton.c (gtk_button_get_property):
10665         * gtk/gtklabel.c:
10666         Remove leaks.
10667         
10668         * gtk/gtkcontainer.c:
10669         * gtk/gtkhscale.c:
10670         * gtk/gtkhscrollbar.c:
10671         * gtk/gtklayout.c:
10672         * gtk/gtkmisc.c:
10673         * gtk/gtkprogress.c:
10674         * gtk/gtkprogressbar.c:
10675         * gtk/gtkrange.c:
10676         * gtk/gtktable.c:
10677         * gtk/gtkviewport.c:
10678         * gtk/gtkvscale.c:
10679         * gtk/gtkvscrollbar.c:
10680         * gtk/gtkwidget.c:
10681         Property patches, based on patches from John Margaglione and Lee Mallabone.
10682
10683 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
10684
10685         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10686         adjustment. Cleaned redundant preconditions (spin != NULL). Added
10687         inline API function docs.
10688         (gtk_spin_button_new_with_range): New convenience constructor.
10689         (gtk_spin_button_set_increments): New adjustment helper.
10690         (gtk_spin_button_set_range): New adjustment helper.
10691
10692         * gtk/testgtk.c : added test of the new convenince constructor and
10693         value_changed signals.
10694
10695 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
10696
10697         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10698         listen to the reorder signal.
10699
10700 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
10701
10702         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10703         to get the aux info structure fo the widget.
10704
10705         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10706         above function.
10707
10708         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
10709
10710         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10711         to get the size of the window manager frame, basically the same
10712         code that gdk_window_get_root_origin() had
10713         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10714
10715         * gtk/gtkwindow.c (gtk_window_set_default_size): use
10716         gdk_window_resize() if the window is realized and resizeable
10717
10718         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10719         typo so that setting gravity works
10720
10721         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10722         allocation if auto_shrink is on, even if the default size
10723         has not changed.
10724
10725         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10726         g_return_if_fail
10727
10728 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
10729
10730         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10731         reordering/sorting work.  Now pretty much works.
10732
10733         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10734         reorder mostly work.  Still need to get the parity correct.
10735
10736         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10737         signal, so I can listen for the sort_column_changed signal so I
10738         can change my "sort_indicator" property.  Cool.
10739
10740 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
10741
10742         [ Patch from Havoc Pennington, hp@redhat.com ]
10743
10744         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10745         Add functions gdk_window_begin_resize_drag/begin_move_drag
10746         to start resizing or moving a toplevel window. This
10747         is done either using the _NET_WM_MOVERESIZE protocol,
10748         or, if that isn't present, by emulation.
10749
10750         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10751         to export the above to GTK+-land.
10752
10753         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10754         
10755         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10756         Move this function into gdkwindow, since we need it
10757         when implementing fallback resizing.
10758
10759         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10760         Fix typo when setting gravity.
10761
10762         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10763         Add an optional (but on by default) resize grip for resizing 
10764         the parent window.
10765
10766 01-03-29  Alexander Larsson  <alexl@redhat.com>
10767
10768         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10769         Don't return TRUE from the event handler, that blocks all
10770         event signals on the tooltip widget. Now you can press buttons
10771         in toolbars again.
10772
10773 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
10774
10775         * gtk/testtext.c (create_buffer): Add missing NULL on
10776         valist.
10777
10778         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10779         c-n-p problem with INCONSISTENT property.
10780
10781         [ Patch from Havoc Pennington  <hp@redhat.com> ]
10782
10783         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10784         hook.
10785
10786         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10787         signal as a hook for extending the default popup menu
10788
10789         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10790         use radio menu items for the input method menuitems
10791
10792         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
10793         inserted unicode from Ctrl-Shift-hex input method
10794
10795         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10796         validatation here, already done at GtkTextBuffer level.
10797
10798         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10799         popup_menu run action signal and Shift+F10 and Menu keybindings.
10800
10801         * gtk/gtkentry.c: implement a default handler for popup_menu
10802
10803         * gtk/gtktextview.c: implement a default handler for popup_menu
10804
10805         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10806         from a key event
10807         
10808         * gtk/gtklabel.c: remove "trailer" cruft
10809
10810 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
10811
10812         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10813         handle reordering of trees.  Seems to mostly work w/ the exception
10814         of the parity flag.
10815
10816         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10817         signal.
10818
10819 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
10820
10821         * gtk/gtkwidget.h: c++ fixes.
10822
10823 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
10824
10825         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10826         memory.
10827
10828 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
10829
10830         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
10831         Nils Barth fixing event return values. (#51041)
10832
10833         * gtk/gtkwidget.c: Fix some return values for default
10834         functions.
10835
10836         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10837         return values for trough_keys functions.
10838
10839         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10840         value for add_accelerator (shoudl have been a void
10841         return.)
10842
10843         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10844         Fix return type of EVENT.
10845
10846         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10847         signal return a boolean.
10848
10849 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
10850
10851         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10852         reordered signal.
10853
10854         * tests/testtreesort.c (main): fix spelling.
10855
10856 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
10857
10858         * gtk/gtkliststore.c: More work on implementing sortable
10859         interface.
10860
10861 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
10862
10863         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10864         reference the widgets in the resulting list. (#11821)
10865         This makes this consistent with gtk_container_children.
10866
10867         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10868         uses of gtk_window_list_toplevels.
10869
10870 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
10871
10872         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10873         a virtual function to set whether the IM context should use 
10874         the preedit string. (#51922)
10875         
10876 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
10877
10878         * gdk/gdkpango.h: Remove stale FIXME comment.
10879
10880 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
10881
10882         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10883         Fixed bug that returned NULL if a filename was selected.
10884
10885 2001-03-24  Havoc Pennington  <hp@pobox.com>
10886
10887         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10888         to contain the word "theme"
10889
10890 2001-03-24  Havoc Pennington  <hp@pobox.com>
10891
10892         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10893         slower but finer-grained
10894         (gtk_hsv_focus): get initial focus on the ring or triangle 
10895         according to tab direction
10896
10897         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10898
10899 2001-03-23  Havoc Pennington  <hp@pobox.com>
10900
10901         * gtk/gtkhsv.c: make this somewhat key-navigable
10902
10903         * gtk/gtkfontsel.c: mnemonics
10904
10905         * gtk/gtkgamma.c: mnemonics
10906
10907         * gtk/gtkcolorsel.c: add mnemonics to labels
10908
10909 2001-03-22  Havoc Pennington  <hp@pobox.com>
10910
10911         Applied big patch from Seth Lytle to fix event handler return
10912         values, slightly modified.
10913
10914         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10915         handled.
10916         (gtk_calendar_key_press): return TRUE for GDK_space triggers
10917         select_day
10918
10919         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10920         (gtk_clist_button_release): return TRUE if handled
10921
10922         * gtk/gtkcolorsel.c (mouse_release):
10923         (palette_activate): 
10924         (palette_press): 
10925         (palette_new): 
10926         (mouse_press): 
10927         (get_screen_color): 
10928         fixed return type (void to gboolean), return TRUE,
10929         added GTK_SIGNAL_FUNC cast
10930
10931         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10932         (void to gboolean), and return TRUE
10933         (gtk_combo_button_release): changed return value to TRUE after
10934         gtk_grab_add on combo->popwin
10935
10936         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10937         collapse or expand
10938
10939         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10940         button/motion
10941
10942         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10943         press/release and motion that trigger act
10944
10945         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10946
10947         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10948         for GDK_Return
10949         
10950         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10951         (gtk_list_button_release): return TRUE if selection
10952
10953         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10954         press
10955
10956         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10957         (gtk_menu_shell_button_release): chain parent_menu_shell retval
10958
10959         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10960         nothing triggered
10961         (gtk_notebook_button_release): return TRUE if we do anything
10962
10963         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
10964         (gtk_spin_button_button_release): return TRUE or chained retval
10965
10966         * gtk/gtktext.c (gtk_text_button_press): 
10967         (gtk_text_button_release): return TRUE
10968         (gtk_text_key_press): remove redundant retval code
10969         
10970         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10971         and sensitive
10972         (gtk_tree_item_subtree_button_click): changed type to gint, and return
10973         TRUE if sensitive
10974
10975         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
10976         return TRUE
10977
10978 2001-03-23  Havoc Pennington  <hp@redhat.com>
10979
10980         * gtk/testgtk.c: fix warnings
10981
10982         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10983
10984         * gtk/gtktextview.c: fix warnings
10985
10986         * gtk/gtktext.c (find_cursor_at_line): fix warning
10987
10988         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
10989
10990         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10991         of this function
10992
10993         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10994         fix warning
10995
10996         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10997
10998         * gtk/gtkfontsel.c: fix warning
10999
11000         * gtk/gtkcolorsel.c: fix warnings
11001
11002 2001-03-23  Havoc Pennington  <hp@redhat.com>
11003
11004         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
11005
11006         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
11007
11008         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
11009         and deprecated gtk_check_menu_item_set_show_toggle().
11010         
11011         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
11012
11013         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
11014
11015         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
11016
11017 2001-03-23  Havoc Pennington  <hp@redhat.com>
11018
11019         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
11020         some docs
11021
11022 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
11023
11024         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
11025         this.
11026
11027         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
11028         set_cell to set_value
11029
11030         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
11031         set_cell to set_value
11032
11033 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
11034
11035         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11036         fix braino.
11037         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
11038         support.
11039
11040         * gtk/gtktreeview.c: Addition of initial sortable support.
11041
11042         * gtk/gtktreestore.c: Addition of initial sortable support.
11043
11044         * gtk/gtkliststore.c: Addition of initial sortable support.
11045
11046         * gtk/gtkmarshal.list: yet another marshaller.
11047
11048         * gtk/gtktreedatallist.[ch]: shared code between the store models
11049         for handling sorting headers.
11050
11051 2001-03-22  Havoc Pennington  <hp@redhat.com>
11052
11053         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
11054         (gtk_container_unset_focus_chain): Add ability to override the 
11055         focus chain for a container explicitly
11056
11057 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
11058
11059         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
11060         added PROP_MNEMONIC_WIDGET.
11061
11062         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
11063         (gtk_window_remove_mnemonic): 
11064         (gtk_window_add_mnemonic): fixed assertions.
11065         (gtk_window_activate_mnemonic): constrain modifier checks to those
11066         permitted by gtk_accelerator_get_default_mod_mask().
11067         got rid of gtk_window_get_default_accel_group().
11068
11069         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
11070         activatable widgets either by focussing or a warning.
11071         added a signal accumulator to ::activate_mnemonic which stops the
11072         emission once a handler returned TRUE.
11073
11074 2001-03-22  Havoc Pennington  <hp@pobox.com>
11075
11076         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
11077         the stock item label
11078
11079         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
11080
11081         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
11082
11083         * demos/gtk-demo/*.c: Add mnemonics all over the place
11084
11085         * gtk/gtklabel.h: mark parse_uline deprecated
11086
11087 2001-03-21  Alexander Larsson  <alexl@redhat.com>
11088
11089         * gtk/gtkitemfactory.[ch]:
11090         Add support for stock and normal imagemenuitems.
11091         
11092         * gtk/testgtk.c:
11093         Add some tests for mnemonics, stock toolbars, stock
11094         and image menuitems in itemfactory and gdk_window_scroll.
11095
11096 2001-03-21  Alexander Larsson  <alexl@redhat.com>
11097
11098         * gtk/gtkbutton.[ch]:
11099         * gtk/gtkdialog.c:
11100         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
11101         removed accel_group argument. Renamed gtk_button_new_accel() to
11102         gtk_button_new_with_mnemonic() and removed accel_group argument.
11103
11104         * gtk/gtkcheckbutton.[ch]:
11105         New function gtk_check_button_new_with_mnemonic().
11106
11107         * gtk/gtkentry.c:
11108         Override activate_mnemonic and just grab focus.
11109
11110         * gtk/gtkitemfactory.c:
11111         Don't add menu uline accel group, instead use mnemonics support.
11112
11113         * gtk/gtklabel.[ch]:
11114         New support for mnemonics.
11115
11116         * gtk/gtkmarshal.list:
11117         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
11118
11119         * gtk/gtkmenu.[c]:
11120         * gtkmenushell.c:
11121         Use mnemonics instead of accel groups for uline
11122         support in menu items.
11123         Removed gtk_menu_get_uline_accel_group() and
11124         gtk_menu_ensure_uline_accel_group().
11125
11126         * gtk/gtkmenuitem.c:
11127         Override activate_mnemonic to handle switching between
11128         menu items if there are collisions.
11129         
11130         * gtk/gtknotebook.c:
11131         Connect to activate_mnemonic on the tab_label, so that
11132         activating it switches to that notebook page.
11133
11134         * gtk/gtkwidget.[ch]:
11135         Add activate_mnemonic signal. New function
11136         gtk_widget_activate_mnemonic() to emit it.
11137         Default implementation does activate/grab_focus.
11138
11139         * gtk/gtkwindow.[ch]:
11140         Add support for mnemonics in windows.
11141         New functions:
11142         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
11143         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
11144
11145         * gtk/testgtk.c:
11146         Update to function name changes.
11147         
11148 2001-03-21  Alexander Larsson  <alexl@redhat.com>
11149
11150         * gtk/gtkimagemenuitem.[c]:
11151         Add gtk_image_menu_item_new_from_stock()
11152
11153 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
11154
11155         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11156         Fix buglet in meeting.
11157
11158 2001-03-19  Havoc Pennington  <hp@redhat.com>
11159
11160         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
11161         add a bunch of accessor functions. This is because we have
11162         reasonable expectations of extending what fields it contains in
11163         the future.
11164
11165         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
11166         changes
11167
11168         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
11169         GtkIconSource   
11170
11171 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
11172
11173         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
11174         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
11175
11176         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
11177           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
11178           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
11179           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
11180         Change float to double everywhere with the exception of 0<->1.0 alignment
11181         and GtkCurve.
11182
11183 2001-03-19  Tor Lillqvist  <tml@iki.fi>
11184
11185         * gdk/win32/gdkdrawable-win32.c
11186         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
11187         output.
11188
11189         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
11190         gdkwin32.h.
11191
11192 2001-03-18  Tor Lillqvist  <tml@iki.fi>
11193
11194         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
11195         print_event_state, print_event): Use preprocessor macro to make
11196         code more compact. Print also GDK_WINDOW_STATE events.
11197         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
11198         
11199         * gtk/gtk.def
11200         * gtk/makefile.mingw.in: Update.
11201
11202         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
11203         to catch also Cygwin.
11204
11205 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
11206
11207         * gtk/gtkspinbutton.[hc]: added rc-style argument
11208         GtkSpinButton::shadow_type.
11209         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
11210         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
11211         rc-style settings.
11212
11213         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
11214
11215         * gtk/gtkwidget.c: quark cleanups.
11216
11217         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
11218         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
11219         to create_rc_style() (we don't do cloning in standard OO sense).
11220         added per rc style properties.
11221         
11222         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
11223         property values and for caching those. some cleanups.
11224         
11225         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
11226         
11227         * gtk/gtksettings.[hc]: new file for global rc-file properties
11228         (at least currently, should get extended to support X properties
11229         and other communication mechanisms).
11230         
11231         * gtk/gtkwidget.[hc]: added style property support:
11232         (gtk_widget_class_install_style_property_parser): install style
11233         property pspec with parser function for rc-file values other
11234         than LONG, DOUBLE or STRING.
11235         (gtk_widget_class_install_style_property): same as above without
11236         parser (parsers are going to be needed quite infrequently).
11237         (gtk_widget_style_get_property): retrive style property value.
11238         (gtk_widget_style_get_valist): same as above with varargs support,
11239         has NOCOPY semantics.
11240         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
11241
11242 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
11243
11244         * demos/gtk-demo/main.c (row_activated_cb): modified to use
11245         "row_activated" signal.
11246
11247         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
11248         stupidity.  Lets actually pass in the row with this signal...
11249
11250 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
11251
11252         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
11253
11254         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
11255
11256         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
11257         everything into the ::destroy function, and freed a lot more.
11258
11259 2001-03-16  Havoc Pennington  <hp@redhat.com>
11260
11261         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
11262         instead of gint16, to avoid overflow issues, since sizes > 16-bit
11263         are now allowed.
11264
11265 2001-03-16  Havoc Pennington  <hp@redhat.com>
11266
11267         * Applied patch from Nils Barth (bug # 51041) to 
11268         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
11269         in various places.
11270
11271 2001-03-15  Havoc Pennington  <hp@redhat.com>
11272         
11273         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
11274         for properties to set on the tag.
11275
11276         * gtk/testtext.c: fixups to reflect create_tag change
11277         
11278         * gtk/gtktexttag.c (gtk_text_tag_set_property):
11279         background/foreground stipple are objects, not boxed.
11280
11281         * demos/gtk-demo/textview.c: intellihancing
11282
11283 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
11284
11285         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
11286         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
11287
11288 2001-03-16  Alexander Larsson  <alexl@redhat.com>
11289
11290         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
11291         Fix sign error with queued region translations.
11292
11293 2001-03-15  HideToshi Tajima  <tajima@happy>
11294
11295         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
11296         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
11297         * gtk/gtkentry.c (update_im_cursor_location): 
11298         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
11299         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
11300         set_cursor_pos to set_cursor_location in GtkInputContext class
11301
11302 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
11303
11304         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
11305         the location of the cell relative to its area.
11306         * gtk/gtkcell*: modified for above change
11307         * gtk/gtktreeview.c: modified for above change.
11308
11309 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
11310
11311         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
11312          (gtk_tree_view_finalize): actually unref the model.  Thanks to
11313         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
11314
11315 2001-03-14  Havoc Pennington  <hp@redhat.com>
11316
11317         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
11318         
11319         * gtk/gtk.h: remove gtkdata.h
11320
11321         * gtk/Makefile.am: remove gtkdata
11322         
11323         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
11324         not "disconnect" on the adjustments.
11325         
11326         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
11327         GtkData
11328
11329         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
11330         not GtkData
11331
11332         * configure.in: handle case where X render exists, but Pango lacks
11333         Xft support.
11334
11335 2001-03-15 Alexander Larsson  <alexl@redhat.com>
11336
11337         * gtk/gtktoolbar.[ch]:
11338         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
11339         to add stock items to toolbars.
11340
11341         * gtk/Makefile.am:
11342         Remove ../gdk/gdkim.h from gdk_headers.
11343
11344 2001-03-15  Sven Neumann  <sven@gimp.org>
11345
11346         * gdk/gdkim.h: removed
11347         
11348         * gdk/gdkprivate.h
11349         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
11350
11351 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
11352
11353         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
11354         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
11355         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
11356         set_cursor_pos() virtual method
11357
11358         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
11359         (gtk_im_context_xim_set_cursor_pos): add implementation for
11360         set_cursor_pos() method
11361
11362         * gtk/gtkentry.c (recompute_idle_func): set current cursor
11363         position to input methods
11364
11365 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
11366
11367         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
11368         code a lot.
11369
11370         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
11371         g_mem_chunk.
11372         (_gtk_tree_data_list_alloc): use g_mem_chunk.
11373         (_gtk_tree_data_list_node_to_value): Fix to switch on
11374         G_TYPE_FUNDAMENTAL.
11375         (_gtk_tree_data_list_value_to_node): Fix to switch on
11376         G_TYPE_FUNDAMENTAL.
11377         (_gtk_tree_data_list_node_copy): Fix to switch on
11378         G_TYPE_FUNDAMENTAL.
11379
11380 2001-03-12  Havoc Pennington  <hp@redhat.com>
11381
11382         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
11383         to convert to new property API. Also, change default_width and
11384         default_height get_property to return 0 as the flag value for
11385         "unset"; -1 is not a valid value for these fields.
11386
11387 2001-03-12  Havoc Pennington  <hp@redhat.com>
11388
11389         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
11390         enum with registration for icon sizes, instead of strings.
11391
11392         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
11393         gtkwidget.c: Fix to reflect GtkIconSize
11394         
11395 2001-03-12  Alexander Larsson  <alexl@redhat.com>
11396
11397         Make GtkFB compile and link.
11398         
11399         * gdk/linux-fb/gdkdrawable-fb2.c:
11400         window->mapped to GDK_WINDOW_IS_MAPPED(). 
11401         
11402         * gdk/linux-fb/gdkwindow-fb.c:
11403         window->mapped to GDK_WINDOW_IS_MAPPED(). 
11404         Added gdk_window_shape_combine_region.
11405         Added assorted placeholders for unimplemented new GdkWindow API calls.
11406
11407 2001-03-12  Alexander Larsson  <alexl@redhat.com>
11408
11409         * gtk/gtkfilesel.c:
11410         Add more test when converting filenames from/to utf-8.
11411         Don't allow entering text in the filename entry which isn't allowed in
11412         a filename. Just beep instead.
11413
11414 2001-03-12  Alexander Larsson  <alexl@redhat.com>
11415
11416         * gtk/gtkclist.c:
11417         Scroll using gdk_window_scroll(). Don't wait for exposes.
11418         Move the column headers in an order that makes them flash less.
11419
11420 2001-03-10  Hans Breuer  <hans@breuer.org>
11421
11422         * gdk/gdk.def : updated
11423
11424         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
11425         to offseting the clip_mask at the right place
11426
11427         * gdk/win32/gdkwindow-win32.c : don't create background brushes
11428         for all the gdkClasses, especially not for the input_only case.
11429         Otherwise flickering wont be avoidable, because we don't get
11430         WM_ERASEBKGND message for these windows.
11431
11432         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
11433         and fixed massive redraw problems apparently triggered by Alexanders 
11434         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
11435         but it seems to work quite well :-)
11436
11437         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
11438         prototype
11439
11440 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
11441
11442         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
11443         (gtk_list_store_set_cell): Fix a stupid typo.
11444
11445 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
11446
11447         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
11448         select_all not work if you're in SINGLE mode (it doesn't make that
11449         much sense, anyway.)
11450
11451         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11452         handle types more sanely.
11453         (_gtk_tree_data_list_value_to_node): handle types more sanely.
11454         (_gtk_tree_data_list_node_copy): handle types more sanely.
11455
11456         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
11457         GValue better. Converts the type as well.
11458
11459         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
11460         GValue better. Converts the type as well.
11461
11462 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
11463
11464         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
11465         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
11466         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
11467         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
11468
11469         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
11470         gdk_im/gdk_ic.
11471
11472 2001-03-09  Hans Breuer  <hans@breuer.org>
11473
11474         * gdk/gdk.def : updated
11475
11476         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
11477         for their palette
11478
11479         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
11480         removing
11481
11482         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
11483         removing and implemented Havoc's GdkWindow state functions; 
11484         stick/unstick only as no-op, cause I don't know how to emulate 
11485         on win32 ...
11486
11487         * gtk/gtk.def : updated
11488
11489         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
11490
11491         * gtk/gtktypeutils.c : #include <string.h>
11492
11493         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
11494
11495 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
11496
11497         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
11498         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
11499         not a boxed.
11500
11501 2001-03-09  Alexander Larsson  <alexl@redhat.com>
11502
11503         * docs/Changes-2.0.txt:
11504         Document expose event->region change and that gtk_widget_event
11505         doesn't allow passing expose events.
11506
11507         * gdk/gdkevents.h:
11508         Add region to expose event.
11509         
11510         * gdk/gdkevents.c:
11511         Handle event->region in gdk_event_copy() and gdk_event_free().
11512
11513         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
11514         Generate expose_event->region when creating expose events.
11515
11516         * gdk/x11/gdkevents-x11.c:
11517         Generate expose events with regions when translating X events.
11518
11519         * gtk/gtkcontainer.[ch]:
11520         Default expose handler that propagates expose events to NO_WINDOW
11521         children. New function gtk_container_propagate_expose()
11522
11523         * gtk/gtkwidget.[ch]:
11524         Moved gtk_widget_event implementation to gtk_widget_event_internal.
11525         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
11526         expose events. New function gtk_widget_send_expose() to send expose
11527         events. New function gtk_widget_region_intersect() to calculate
11528         window/region intersections.
11529         
11530         * gtk/gtkmain.c (gtk_main_do_event):
11531         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
11532         Use gtk_widget_send_expose() to send expose events.
11533         
11534         * gtk/gtkbin.c:
11535         * gtk/gtkbox.c:
11536         * gtk/gtkfixed.c:
11537         * gtk/gtkimagemenuitem.c:
11538         * gtk/gtklist.c:
11539         * gtk/gtkpacker.c:
11540         * gtk/gtktable.c:
11541         * gtk/gtktree.c:
11542         Remove expose handler, using the default container implementation
11543         instead.
11544         
11545         * gtk/gtkbutton.c:
11546         * gtk/gtkcheckbutton.c:
11547         * gtk/gtkeventbox.c:
11548         * gtk/gtkfixed.c:
11549         * gtk/gtkhandlebox.c:
11550         * gtk/gtklayout.c:
11551         * gtk/gtklistitem.c:
11552         * gtk/gtkmenu.c:
11553         * gtk/gtkmenubar.c:
11554         * gtk/gtkmenuitem.c:
11555         * gtk/gtknotebook.c:
11556         * gtk/gtkoptionmenu.c:
11557         * gtk/gtkpaned.c:
11558         * gtk/gtkscrolledwindow.c:
11559         * gtk/gtktogglebutton.c:
11560         * gtk/gtktoolbar.c:
11561         * gtk/gtktreeitem.c:
11562         * gtk/gtkviewport.c:
11563         Chain expose handler to parent class handler. Use
11564         gtk_container_propagate_expose() to propagate exposes.
11565
11566         * gtk/gtkclist.c (check_exposures):
11567         * gtk/gtktext.c (process_exposes):
11568         Use gtk_widget_send_expose instead of gtk_widget_event.
11569
11570 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
11571
11572         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
11573
11574 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
11575
11576         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
11577         unref the nodes.   Fixes bug #50058.
11578
11579         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
11580         "::ref_iter" to "::ref_node".
11581         (gtk_tree_model_unref_node): change "::unref_iter" to
11582         "::unref_node". Fixes bug #50064.
11583
11584 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
11585
11586         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
11587         support for invisible cells.
11588          (gtk_tree_view_bin_expose): ditto
11589
11590 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
11591
11592         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
11593         on gobjects.
11594
11595         * tests/testtreefocus.c (main): New test file.
11596
11597         * tests/testtreeview.c: update to latest glib changes.
11598
11599         * tests/testtreecolumns.c: update to latest glib changes.
11600
11601 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
11602
11603         * gtk/testgtk.c: re-enabled event watcher emission hooks.
11604
11605 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
11606
11607         * *.c: added accumulator data argument to g_signal_newc()
11608         functions.
11609
11610         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
11611         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
11612         * gtk/treestoretest.c (make_window):
11613         s/g_signal_connect/g_signal_connectc/.
11614
11615         * gtk/gtktextbuffer.c: completed signal arg fixups,
11616         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
11617
11618 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
11619
11620         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
11621         G_CONST_RETURN.
11622
11623         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
11624         ::hierarchy-changed signal when a widget changes
11625         from anchored to unanchored or vice versa.
11626         (anchored means 
11627          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
11628         Use a private flag to keep track of this efficiently.
11629
11630 2001-03-07  Havoc Pennington  <hp@redhat.com>
11631
11632         * gtk/testgtk.c (create_spins): uglify so that size request gets
11633         tested.
11634
11635         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
11636         request on values for upper/lower, completes #6152
11637
11638 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
11639
11640         * Makefile.am: Remove gtk-config-2.0 again.
11641         (Grrrr, pkg-config. And stops make loops.)
11642
11643 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
11644
11645         * gtk/gtksignal.[hc]: removed old emission hook API.
11646         
11647         * docs/Changes-2.0.txt: fixed sections.
11648         
11649         * gtk/gtktextbuffer.c: signal arg fixups.
11650
11651 2001-03-07  Havoc Pennington  <hp@redhat.com>
11652
11653         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11654
11655         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11656         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11657         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11658         validation and the redraw which is higher priority than the
11659         validation.
11660
11661 2001-03-07  Havoc Pennington  <hp@redhat.com>
11662
11663         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11664         (gtk_entry_set_property): remove trailer
11665
11666         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
11667         (gtk_entry_get_width_chars): new functions, to set size request to 
11668         a given number of characters
11669
11670         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11671
11672         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11673         (gtk_dialog_get_has_separator): new function
11674         (run_delete_handler): fix to not emit "response" signal
11675         because we already did in the delete event handler installed
11676         at dialog creation time.
11677         
11678         * gtk/gtkdialog.h: add a has_separator property,
11679         add GTK_DIALOG_NO_SEPARATOR flag
11680
11681 2001-03-07  Havoc Pennington  <hp@redhat.com>
11682
11683         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11684         off decorations for a window.
11685
11686         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11687         changes
11688
11689         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
11690         to get location of PangoLayout inside the label, closes #51198
11691
11692         * gtk/testgtk.c (create_bbox): fix up button box usage
11693
11694         * gtk/testcalendar.c (create_calendar): fix up button box usage
11695
11696         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11697
11698         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11699
11700         * gtk/gtkhbbox.h: deprecations
11701
11702         * gtk/gtkvbbox.h: deprecations
11703
11704         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11705         emulate deprecated gtk_button_box_get_spacing
11706
11707         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
11708         the "set global default" functions
11709         (struct _GtkButtonBox): remove "spacing" field, use the one from 
11710         GtkBox base class
11711
11712         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11713
11714         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11715         render the icon, return the missing image icon.
11716
11717         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11718         image icon if the load fails.   
11719
11720         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11721         when no image is found; should be the Netscape "missing image"
11722         icon eventually but for now is a random image
11723
11724         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
11725         role for the session manager
11726
11727         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11728
11729         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11730         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11731
11732         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11733
11734 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
11735
11736         * gtk/*.c: marshaller fixes.
11737         
11738         * gtk/gtkmarshal.list: extreme cleanup.
11739
11740         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11741         param spec for now.
11742
11743         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11744         where appliable.
11745
11746         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11747         special cased autogenerated boxed types from gtktypebuiltins_ids.c
11748         which are not reference counted:
11749         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11750         PangoFontDescription, GtkTreeIter and GtkTreePath.
11751
11752 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
11753
11754         * gtk/gtktreeselection.h: 
11755         * gtk/gtktreemodel.c:
11756         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11757         file should be included directly, and gobject/gmarshal.h
11758         as well as gtk/gtkmarshal.h even can't be included directly.
11759
11760         * Makefile.am: grr, install gtk-config-2.0.
11761
11762         * gtk/testgtk.c:
11763         * gtk/simple.c:
11764         * gtk/gtkmenu.c:
11765         * gtk/gtkitemfactory.c: use g_object_connect() instead of
11766         passing "*signal*::*" args to gtk_widget_set().
11767         
11768         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11769         
11770         * gtk/*.c: removed trailer arg from property setters and getters.
11771         macro fixups.
11772
11773 2001-03-07  Alexander Larsson  <alexl@redhat.com>
11774
11775         * gtk/gtklabel.c (set_markup): Removed warning
11776
11777 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
11778
11779         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11780         field to allow you to hide cell renderers.
11781
11782         * gtk/gtkcellrenderer.c: Add support for invisible cells.
11783
11784         * gtk/gtktreeview.c: Add support for invisible cells.
11785
11786 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
11787
11788         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11789         Add "clicked" signal back to columns.
11790
11791         * ChangeLog: remove conflict markers.
11792
11793 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
11794
11795         * gtk/gtkbutton.c: Add animation of activation by, on 
11796         activate, pressing the button, and adding a timeout that 
11797         releases the button after 250ms or on key release and
11798         emits ::clicked. (#51501)
11799
11800         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11801         action area, we connect to ::clicked instead of ::activate
11802         so the dialog stays up through the animation.
11803
11804 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
11805
11806         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11807         check the ignore_enter flag for the menu shell that
11808         the item is actually a child of, not for attached
11809         submenus. (#51536)
11810
11811 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11812
11813         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11814         special key-press grab handling for widgets within
11815         GtkWindows. Otherwise, fall through to normal case.
11816
11817         This prevents key events being sent twice to GtkInvisible
11818         widgets, which can cause all sorts of mischief.
11819
11820 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11821
11822         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11823         widget is in effect, give the grab widget a first
11824         crack at KEY_PRESS/RELEASE events. (#424)
11825
11826 2001-03-06  James Henstridge  <james@daa.com.au>
11827
11828         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11829         offset for the window_state_event to point at window_state_event
11830         rather than no_expose_event.
11831
11832 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
11833
11834         * gtk/gtkimmodule.h: fix busted /* comment */
11835
11836 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
11837
11838         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11839         object properties.
11840
11841 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
11842
11843         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11844         add object properties.
11845
11846         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11847         to add object properties.
11848
11849         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11850         object properties.
11851
11852         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11853         add object properties.
11854
11855         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11856         object properties.
11857
11858 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
11859
11860         * gtk/gtktreemodel.c: renamed "child_toggled" to
11861         "has_child_toggled".
11862
11863         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
11864         handle new signal name.
11865
11866         * gtk/gtktreestore.c: Updated to handle new signal name.
11867         * gtk/gtklisttore.c: Updated to handle new signal name.
11868         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11869
11870 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11871
11872         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11873         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11874
11875 2001-03-05  Michael Natterer  <mitch@gimp.org>
11876
11877         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11878         pixbuf-engine coincidentially also failed to make one of it's
11879         parent_class pointers static, causing overwriting of GtkLabel's
11880         parent_class pointer in pixbuf_style_class_init().
11881         (Will commit the fix to the pixbuf-engine too).
11882
11883 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11884
11885         * gdk/gdkwindow.h:
11886         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11887         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11888         gdk_window_set_icon_list for net wmspec functionality.
11889
11890         * gdk/x11/gdkwindow-x11.c:
11891         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11892         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11893         gdk_window_set_icon_list.
11894         Added gdk_wmspec_change_state helper function and used it in the code.
11895         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11896
11897         * gtk/gtkdialog.c (gtk_dialog_init):
11898         Set GDK_WINDOW_TYPE_HINT_DIALOG.
11899
11900         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11901         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11902
11903         * gtk/gtkwindow.c:
11904         new function gtk_window_set_type_hint.
11905         On realize, set type hint and modal hint.
11906
11907         * gtk/gtkwindow.h:
11908         Added type_hint field and gtk_window_set_type_hint.
11909
11910 2001-03-05  Alexander Larsson  <alexl@redhat.com>
11911
11912         * gtk/gtklabel.[ch]:
11913         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11914         New function gtk_label_get_accel_keyval () to get the underline accelerator
11915         of the label. Setting the label pattern overrides other attributes.
11916
11917 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
11918
11919         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11920         Added missing initializers to gtk_rc_style_init().
11921
11922 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11923
11924         * gtk/gtktextview.c: fixed bug #51097 about setting 
11925         gtk_text_view_set_border_window_size() if the widget is 
11926         already realized.
11927
11928 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
11929
11930         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11931
11932         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11933         comment. Won't do to have duplicated doc comments between
11934         the platform subdirs.
11935
11936 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
11937
11938         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
11939           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11940
11941         Detectable auto-repeat - make a repeating key generate
11942         press/press/press/release instead of press/release pairs.
11943
11944         If we have Xkb and XkbSetDectableAutoRepeat supports
11945         that, we do it that way. Otherwise, when we get
11946         a release event, we check ahead with XPending to see
11947         if the next key is a KeyPress with the same keycode
11948         and timestamp. (Not 100% reliable, but pretty close.)
11949           
11950 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
11951         
11952         * gtk/gtkmain.c (gtk_propagate_event): Only do special
11953         special key-press grab handling for widgets within
11954         GtkWindows. Otherwise, fall through to normal case.
11955  
11956         This prevents key events being sent twice to GtkInvisible
11957         widgets, which can cause all sorts of mischief.
11958  
11959 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
11960  
11961         * gtk/gtkmain.c (gtk_propagate_event): When a grab
11962         widget is in effect, give the grab widget a first
11963         crack at KEY_PRESS/RELEASE events. (#424)
11964  
11965 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
11966
11967         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11968         to extend the selection. (Roughly based on patch
11969         from Jay Cox, #50939)
11970
11971         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11972         to properly handle previous GDK_BUTTON_PRESS. 
11973         (Patch from Jay Cox, #50938)
11974
11975         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11976         '\0' back along with the deleted text. (#51148)
11977
11978 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
11979
11980         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11981         the group when extracting it from the X keyboard event.
11982
11983         * modules/input/Makefile.am modules/input/imipa.c: 
11984         Simple module for entering IPA. (Do we need a 
11985         gtk-stupid-input-tricks CVS module?)
11986
11987 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
11988
11989         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11990         const.
11991
11992         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11993
11994         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11995         is no focus widget for the dialog currently, grab the focus as well
11996         as the default.
11997
11998         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11999         the action area's children to iterate through, not the
12000         dialog's children.
12001
12002 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
12003
12004         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
12005         Add plug-socket tests. (Won't work worth a darn until I commit
12006         the rest of the plug-socket changes, but no reason these
12007         can't go into CVS now.)
12008
12009 2001-03-02  Havoc Pennington  <hp@redhat.com>
12010
12011         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
12012         _gdk_region_get_xrectangles()
12013
12014         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
12015
12016         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
12017
12018         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
12019         function, contributed by Ron Steinke    
12020
12021         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
12022         gdk_net_wm_supports
12023
12024         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
12025         New function, contributed by Ron Steinke
12026
12027         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
12028         used to line up the text in the entry when using the entry for
12029         editable sheet cell hacks
12030
12031         * gtk/testgtk.c (create_entry): test the activate_default setting
12032         on GtkEntry
12033
12034         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
12035         cause the entry to activate the default button for a dialog when 
12036         activated
12037         (gtk_entry_get_activates_default): new function
12038
12039 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
12040
12041         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
12042         Hwang to move call to sync_selection() up a few lines
12043         to before the row list is modified, to fix crash when
12044         removing rows in the undo_selection list.
12045
12046         (Test case provided by Daniel Elstner:
12047
12048         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
12049
12050 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
12051
12052         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
12053         of tree->root_tree in parent_set rather than _map(), 
12054         fixing #50892 in a bit better manner.
12055
12056 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
12057
12058         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
12059
12060 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
12061
12062         * gtk/gtkstyle.c : Remove duplicate fwd decl for
12063         gtk_default_draw_shadow.
12064
12065 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
12066
12067         * gdk/gdkimage.c (gdk_image_new): Remove excess 
12068         warning, make warnings more verbose, treat a error
12069         in shmat as permanent, and don't try again.
12070         (#51163, Ed Randall.)
12071
12072 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
12073
12074         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
12075         delay for the first click before starting to scroll.
12076         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
12077
12078         * gtk/gtktext.c: GtkText should have I-beam cursor. 
12079         (based on gtk-enf-990513-1.patch, Eric Fisher.)
12080
12081 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
12082
12083         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
12084         cleanup to remove some references to unused
12085         ->xoffset, ->yoffset.
12086
12087 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
12088
12089         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
12090         mask. (#51039, fix from Martin Maierhofer)
12091
12092 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
12093
12094         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
12095         for unshifted + and shifted = for non-us keyboards.
12096         Make <Control>+ and <Control>- work as well as 
12097         <Control>KP_Plus, <Control>KP_Minus for recursive
12098         open/close.  (#2682, René Seindal)
12099
12100 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
12101
12102         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
12103         the active menu item before deactivating the menu,
12104         so gtk_menu_popdown doesn't change the history. (#50964)
12105         
12106 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
12107
12108         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
12109         draw lines with text_gc rather than black_gc.
12110         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
12111
12112 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
12113
12114         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
12115         Move handling of buttons fully in gtktreeviewcolumn.  This code is
12116         less interrelated then it was, but it still requires the
12117         GtkTreeView to map it.
12118
12119         * test/testtreecolumn.c: Now I can add a column to one view,
12120         remove it, add it to the another view, remove it, then re-add it
12121         to the first.  Nifty.
12122
12123 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
12124
12125         * docs/tutorial/gtk-tut.sgml: Minor corrections
12126
12127 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
12128
12129         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
12130         GtkRowReference.
12131
12132 2001-02-28  Havoc Pennington  <hp@redhat.com>
12133
12134         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
12135         draw_default
12136         (gtk_widget_draw_focus): remove this function; we could instead
12137         make it just gtk_widget_draw(), but in most cases I think the
12138         result would be broken user code, so think it's better to have
12139         that code not compile and get fixed
12140         (gtk_widget_draw_default): ditto
12141
12142         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
12143         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
12144         
12145         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
12146         widgets lose/get the default, instead of calling draw_default
12147         
12148         * docs/Changes-2.0.txt: note about all this
12149
12150         Then fixed every widget in GTK, I won't list all the filenames.
12151
12152 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
12153
12154         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
12155         _gtk_tree_row_reference_deleted.
12156         (inserted_callback): Proxy out to
12157         _gtk_tree_row_reference_inserted.
12158         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
12159         get around signal emission ordering problem.
12160
12161         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12162         fix to work with SINGLE 
12163         (_gtk_tree_selection_internal_select_node): Major sanitization on
12164         selections.  SINGLE now seems to work.
12165
12166         * tests/Makefile.am: add testtreecolumn.c:
12167
12168         * tests/testtreecolumn.c: New test.  Mostly points out selection
12169         bugs currently, but will test columns later.
12170
12171         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
12172         selection bug.  I hate touching this code -- it's scary.
12173
12174 2001-02-26  Havoc Pennington  <hp@redhat.com>
12175
12176         * gtk/testgtk.c: test the window state stuff
12177
12178         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
12179         window come to the user's attention as if it were just created
12180         (gtk_window_iconify): new function
12181         (gtk_window_deiconify): new function
12182         (gtk_window_stick): new function
12183         (gtk_window_unstick): new function
12184         (gtk_window_maximize): new function
12185         (gtk_window_unmaximize): new function
12186
12187         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
12188
12189         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
12190
12191         * gdk/x11/gdkevents-x11.c: create window state events when
12192         appropriate
12193         (gdk_wmspec_supported): new function
12194
12195         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
12196         iconification before showing the window
12197         (gdk_window_deiconify): new function
12198         (gdk_window_stick): new function
12199         (gdk_window_unstick): new function
12200         (gdk_window_maximize): new function
12201         (gdk_window_unmaximize): new function
12202
12203         * gdk/gdkwindow.c: store the window state in the window; 
12204         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
12205         window->mapped.
12206         (gdk_window_get_state): return the current window state
12207
12208         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
12209         (gdk_event_get_state): handle GDK_WINDOW_STATE
12210         (gdk_synthesize_window_state): function to create the window state
12211         events
12212
12213         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
12214         event, for changes to "window state" such as maximized, sticky, 
12215         etc.
12216         
12217         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
12218         focuses a window
12219
12220         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
12221         finds out if we support a given WM spec hint
12222
12223 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
12224
12225         * docs/faq/gtk-faq.sgml: New question re memory leaks.
12226
12227 2001-02-25  Hans Breuer  <hans@breuer.org>
12228
12229         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
12230         cause we want to loose those prototypes only in the latter case
12231
12232         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
12233         GdkPixmapImplWin32 because it itsn't derived from it. Use the
12234         impl member variable instead
12235
12236         * gtk/gtk.def : updated
12237
12238         * gtk/gtklist.c : 
12239         * gtk/gtkmenus.c : include <string.h> for memset ()
12240
12241         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
12242         for everthing built here, but for gtk-x.x.dll only. This solves
12243         problem of indifferent gtk type definitions
12244
12245 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
12246
12247         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
12248
12249 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
12250
12251         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
12252         column that is exposed.
12253
12254         (_gtk_tree_view_update_size): Changed name from set_size, and
12255         changed function to do more work, and not force people calling it
12256         to figure out the size.  Simplifies a lot of code elsewhere.
12257
12258 2001-02-23  Alexander Larsson  <alexl@redhat.com>
12259
12260         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
12261         return solid masks for xpms that have no transparent color.
12262         This makes the ..._create_from_xpm... API backwards
12263         compatible.
12264
12265 2001-02-23  Tor Lillqvist  <tml@iki.fi>
12266
12267         * README.win32: Update. Mention the gtk-1-3-win32-production
12268         branch.
12269
12270         * gdk/win32/bdfcursor.c: New file. A program that generates
12271         xcursors.h. Thanks to Stefan Ondrejicka.
12272
12273         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
12274         compact format.
12275
12276         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
12277
12278         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
12279         function, uses xcursors.h.
12280         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
12281         cursor from inline data instead of using LoadCursor() to generate
12282         it from a resource.
12283
12284         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
12285         event, must check the Windows message for mouse button state, as
12286         the GDK event state might not have been built if it is
12287         undelivered. Remove one goto.
12288
12289         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
12290         SetCursor() if the current cursor as returned by GetCursor() is
12291         the window's previous cursor. The ChildWindowFromPoint() test
12292         apparently didn't work correctly.
12293
12294         * gdk/win32/rc/*.cur: Remove.
12295
12296         * gdk/win32/rc/gdk.rc.in: Remove cursors.
12297
12298         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
12299
12300         * gtk/makefile.{mingw,msc}.in: Updates.
12301
12302 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
12303
12304         * gtk/gtktreemodel.h: add functions for signal emission.
12305
12306         * gtk/gtktreestore.c: move to use above functions instead of
12307         g_signal_emit.
12308
12309         * gtk/gtkliststore.c: ditto
12310
12311 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
12312
12313         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
12314         GObject instead of GtkObject.
12315
12316         * gtk/gtkliststore.c: ditto.
12317
12318         * gtk/gtktreemodelsort.c: ditto.
12319
12320         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
12321         GtkTreeModelIface, instead of in each model.
12322
12323 2001-02-21  Havoc Pennington  <hp@redhat.com>
12324
12325         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
12326         unbreak this function
12327
12328         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
12329         properties
12330
12331         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
12332         properties
12333
12334         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
12335         properties
12336
12337         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
12338         mean unset the max length
12339
12340 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
12341
12342         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
12343         Changed name to be set_cell_data_func to make it clear what
12344         the functino does.  Close bug #51069.
12345
12346 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
12347
12348         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
12349         have memory actually freed.  Keeps box running longer.
12350
12351 2001-02-21  Alexander Larsson  <alexl@redhat.com>
12352         
12353         * gtk/gtkseparatormenuitem.[ch]:
12354         Added new menu separator item. The drawing and size handling
12355         is still done in GtkMenuItem, but the API is a bit more sane.
12356         
12357         * gtk/Makefile.am:
12358         Add gtkseparatormenuitem.[ch].
12359
12360         * gtk/gtk.h:
12361         Add gtkseparatormenuitem.h.
12362         
12363         * gtk/gtkentry.c:
12364         * gtk/gtkmenufactory.c:
12365         * gtk/gtktextview.c:
12366         Use the new API for menu separators.
12367         
12368         * demos/gtk-demo/menus.c (create_menu):
12369         Add some GtkSeparatorMenuItem demo code.
12370
12371 2001-02-20  Havoc Pennington  <hp@redhat.com>
12372
12373         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
12374         Lee Mallabone
12375
12376         * gtk/gtkarrow.c: Convert to new property API, patch from 
12377         Lee Mallabone
12378
12379 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
12380
12381         * tests/testtreeview.c (toggled_callback): fix to reflect change
12382         in GtkTreeModelStore.
12383
12384 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
12385
12386         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
12387         function to create an icon set from a pixbuf.
12388
12389 2001-02-20  Alexander Larsson  <alexl@redhat.com>
12390
12391         * gtk/gtkcellrenderertext.[ch]:
12392         Add a "markup" property.
12393
12394         * gtk/treestoretest.c:
12395         Use the markup property, remove some leftover stuff from
12396         GtkTreeModelMapping.
12397
12398 2001-02-20  Alexander Larsson  <alexl@redhat.com>
12399
12400         * gtk/gtklabel.c (gtk_label_set_selectable):
12401         Queue a redraw if the selectable setting was changed.
12402
12403 2001-02-20  Alexander Larsson  <alexl@redhat.com>
12404
12405         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
12406         Actually copy the whole gc, not just the public parts.
12407         
12408         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12409         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
12410         labels.
12411
12412 2001-02-19  Havoc Pennington  <hp@pobox.com>
12413
12414         * gdk/gdkwindow.c: docs
12415
12416         * gdk/gdkrgb.c: docs
12417
12418         * gdk/gdkregion-generic.c: docs
12419
12420         * gdk/gdkgc.c (gdk_gc_set_values): docs
12421
12422         * gdk/gdkdraw.c: docs
12423
12424         * gdk/gdkdrawable.h: deprecate drawable get/set data
12425
12426 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
12427
12428         * demos/gtk-demo/dialog.c: Add simple new demo.
12429
12430 2001-02-19  Havoc Pennington  <hp@redhat.com>
12431
12432         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
12433         insert_child_anchor signal, bug #50245
12434
12435         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
12436         from create_child_anchor, so the anchor is passed in
12437
12438         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
12439         (_gtk_widget_segment_new): have the child anchor object passed in, 
12440         instead of creating it.
12441
12442         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
12443         to gtk_text_buffer_get_modified
12444
12445 2001-02-19  Havoc Pennington  <hp@redhat.com>
12446
12447         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
12448         changed GLib without fixing GTK
12449
12450         * gtk/gtkrange.h: Rename all the stupid implementation detail 
12451         functions to have an underscore in front. Most of them should 
12452         probably just go away, but for starters don't export them.
12453         Bug #50482
12454
12455 2001-02-19  Havoc Pennington  <hp@redhat.com>
12456
12457         * gdk/gdkcolor.h: test was backward, so deprecated functions were
12458         excluded by default
12459
12460         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
12461         clean up the old code a bit
12462
12463         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
12464         inconsistent state
12465
12466         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
12467         draw inconsistent state
12468
12469         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
12470         (create_menu): add inconsistent test
12471
12472         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
12473         new function
12474         (gtk_check_menu_item_get_inconsistent): new function
12475         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
12476         state (using etched in for now)
12477
12478         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
12479         draw inconsistent state
12480
12481         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
12482         function, used when the user has selected a range of stuff in
12483         different states
12484         (gtk_toggle_button_get_inconsistent): accessor for that
12485         (gtk_toggle_button_paint): draw inconsistent state (etched in?
12486         don't know what else to do)
12487
12488 2001-02-19  Hans Breuer <hans@breuer.org>
12489
12490         * gtk/gtk.def : updated exported symbols
12491
12492         * gtk/makefile.msc.in : updated
12493
12494         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
12495         a colormap, when invoked from testgtk::entry. I'm not sure where
12496         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
12497         avoids immediate crashing ...
12498
12499         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
12500         any objections ?
12501
12502         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
12503         0 parameter. At least msvc doesn't like macros with var args. 
12504         I simply removed the extra 0, was it a feature or a typo ?
12505
12506         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
12507         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
12508         because the value assignment to the internal struct wasn't working.
12509         I'm not absolutely sure. The problem could have been resolved by
12510         changing the "func" declartion in the struct, but was the pointer
12511         to the function pointer intended ?
12512
12513         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
12514
12515         * gdk/gdk.def : updated exported symbols
12516
12517         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
12518         only use SetDIBitsToDevice if there is a palette at the drawable
12519         and the image is GDK_VISUAL_PSEUDO_COLOR
12520
12521         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
12522
12523         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
12524
12525         * gdk/*/makefile.msc : updated
12526
12527 2001-02-19  Havoc Pennington  <hp@redhat.com>
12528
12529         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
12530         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
12531
12532         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
12533         (gdk_key_repeat_restore): nuke
12534
12535         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
12536         (gdk_init_check): no atexit func
12537
12538         * gdk/gdkrgb.h: mark some stuff deprecated
12539
12540         * gdk/gdkcolor.h: mark some stuff deprecated
12541         
12542         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
12543
12544         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
12545
12546 2001-02-16  Havoc Pennington  <hp@redhat.com>
12547
12548         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
12549         scroll steps.
12550
12551         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
12552         steps, and add Ctrl-arrow shortcuts for paging visually as with
12553         HScale, since Page Up and Page Down move logically.
12554
12555         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
12556         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
12557         
12558         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
12559         steps
12560         (gtk_range_scroll): handle the visual steps
12561
12562         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
12563         scroll steps
12564
12565         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
12566         steps, not the logical ones.
12567
12568         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
12569         (scroll_vertical): handle up/down steps
12570
12571 2001-02-19 Alexander Larsson  <alexl@redhat.com>
12572
12573         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
12574         Copy data and free data with free().
12575
12576         * gdk-pixbuf/gdk-pixbuf.c:
12577         * gdk-pixbuf/io-jpeg.c:
12578         * gdk-pixbuf/io-png.c:
12579         Use g_try_malloc/g_free instead malloc/free.
12580         
12581         * gdk-pixbuf/test-gdk-pixbuf.c:
12582         Must... initialize... gobject...
12583         
12584         * gdk-pixbuf/pixops/timescale.c:
12585         * gtk/gtkcalendar.c:
12586         Use g_malloc instead of malloc.
12587         
12588 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
12589
12590         * gtk/testgtkrc:
12591         Comment out property assignments, these don't work yet.
12592
12593 2001-02-17  Havoc Pennington  <hp@pobox.com>
12594
12595         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
12596         bit.
12597
12598 2001-02-17  Havoc Pennington  <hp@pobox.com>
12599
12600         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
12601         shadowed variables that had broken size request in some cases,
12602         leading to bogus tooltips (#50996)
12603
12604 2001-02-06  Jon K Hellan  <hellan@acm.org>
12605
12606         Implement fast browsing of tooltips, bug #50619
12607         
12608         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
12609         and last_popdown
12610         
12611         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
12612         use_sticky_delay and last_popdown.
12613         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
12614         time of popdown.
12615         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
12616         is NULL.
12617         (gtk_tooltips_recently_shown): New static function.  Return true
12618         if < sticky_delay has elapsed since last popdown.
12619         (gtk_tooltips_event_handler): Display window after sticky_delay
12620         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
12621         since last popdown.
12622         
12623 2001-02-17  Havoc Pennington  <hp@pobox.com>
12624
12625         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
12626         instead of (). #6394
12627
12628         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
12629         G_CONST_RETURN, make it return by reference, #50473
12630         
12631 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
12632
12633         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
12634         generated ENTER_NOTIFY event with 0, otherwise not explicitely
12635         setup fields contain garbage (e.g. subwindow, breaking
12636         gdk_drawable_ref() upon event copy).
12637         (gtk_menu_stop_navigating_submenu_cb): same here.
12638
12639         * gtk/gtklist.c (gtk_list_vertical_timeout): 
12640         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
12641         * gtk/gtkclist.c (vertical_timeout): 
12642         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
12643         default-zero-intialization for unions to memset(,0,), as unions are
12644         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
12645         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
12646
12647         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
12648         g_closure_sink() warning.
12649
12650         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
12651         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
12652         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
12653         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12654         
12655 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
12656
12657         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12658         gtk_*_store_get, and moved to GtkTreeModel.
12659
12660         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12661
12662         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12663
12664         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12665
12666         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12667         set the func.
12668
12669         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12670         freeze/thaw notify between setting all the properties for a cell.
12671
12672         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12673
12674 2001-02-15  Havoc Pennington  <hp@redhat.com>
12675
12676         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12677         the X coordinates so they're with respect to the line, rather than 
12678         with respect to the layout.
12679
12680         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12681         Mallabone
12682
12683         * gtk/testgtk.c (create_range_controls): add vscale tests, 
12684         and inverted test
12685
12686         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
12687         #50806
12688
12689         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12690
12691         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
12692         gtk_text_iter_is_end
12693
12694         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12695         rename gtk_text_buffer_get_end_iter
12696
12697         * gtk/testgtk.c (create_labels): Add test for selectable
12698
12699         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12700         the selection stuff. This code is kind of broken since it doesn't 
12701         use the theme engine.
12702
12703         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
12704         fix infinite loop and y offset problem
12705         (gdk_draw_layout_line_with_colors): fix foreground color handling
12706
12707         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
12708         that makes the label selectable.
12709         
12710         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12711         layout when the style is set, since fonts etc. could have changed.      
12712
12713 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
12714
12715         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12716
12717         * gtk/gtktreemodelsimple.[ch]: removed.
12718
12719 2001-02-16  Alexander Larsson  <alexl@redhat.com>
12720
12721         * gtk/gtktreemodelmapping.[ch]:
12722         New files. Implement GtkTreeModelMapping.
12723         
12724         * gtk/Makefile.am:
12725         Add gtktreemodelmapping.[ch].
12726         
12727         * gtk/gtk.h:
12728         Add gtktreemodelmapping.h
12729
12730         * gtk/treestoretest.c:
12731         Test the GtkTreeModelMapping
12732
12733 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
12734
12735         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12736         have a demo, we might as well pass in real values.  Thanks to
12737         clahey for pointing this out.
12738
12739 2001-02-14  Havoc Pennington  <hp@pobox.com>
12740
12741         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12742         "static" to a private function
12743         (gtk_image_menu_item_class_init): remove destroy handler,
12744         add "image" object property
12745
12746 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
12747
12748         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12749         Add a shortcut if the window and the current clip_region doesn't
12750         overlap. This is needed when there are a lot of windows in a
12751         window. The layout test in testgtk is a good test.
12752
12753         * gdk/linux-fb/gdkwindow-fb.c:
12754         Whitespace fix.
12755
12756 2001-02-13  Sven Neumann  <sven@convergence.de>
12757
12758         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12759
12760 2001-02-13  Alexander Larsson  <alexl@redhat.com>
12761
12762         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12763         Don't reference last_cursor if it is null. Fixes crash when rotating
12764         the screen before having moved the mouse.
12765
12766         * gdk/linux-fb/gdkcc-fb.c: Zapp!
12767
12768         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12769
12770         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
12771         when using 90 or 270 degrees rotation.
12772
12773 2001-02-12  Havoc Pennington  <hp@pobox.com>
12774
12775         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
12776         it always set the foreground, even if we were only using
12777         a stipple.
12778         (gdk_draw_layout_line_with_colors): new function, allow
12779         override colors
12780         (gdk_draw_layout_with_colors): new function, allow override
12781         colors
12782         (gdk_pango_layout_line_get_clip_region): function to get the clip
12783         region for a logical text range
12784         (gdk_pango_layout_get_clip_region): get the clip region for a
12785         logical text range
12786
12787         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12788         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
12789         the right number of arguments.
12790
12791         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12792         enhance the function to check that node data corresponds to a 
12793         view still belonging to the tree.
12794
12795         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
12796         GtkTreePath
12797         (gtk_tree_view_inserted): ditto
12798         (gtk_tree_view_child_toggled): ditto
12799
12800         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12801         simplify this code.
12802
12803         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
12804         a PangoAttrList
12805
12806         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12807
12808         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12809
12810         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12811         size in the size request 
12812         (gtk_menu_bar_size_allocate): consider toggle size here
12813
12814         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12815         that displays a widget in the toggle slot
12816
12817         * gtk/testgtk.c: test GtkImageMenuItem
12818
12819         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12820         
12821         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12822         request and allocation
12823
12824         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12825
12826         * gtk/gtkcheckmenuitem.c
12827         (gtk_check_menu_item_toggle_size_request): ditto
12828         
12829 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
12830
12831         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
12832         reference.
12833
12834         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12835         and refuse to initialize GTK+ if they fail.
12836
12837 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
12838
12839         * configure.in: Add check for gtk-doc version.
12840
12841 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
12842
12843         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12844         where the xpad/ypad was only being used on one side!
12845
12846 2001-02-11  Tor Lillqvist  <tml@iki.fi>
12847
12848         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12849         function, copied from X11 version.
12850
12851         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12852         DestroyCursor failures. The reason for the problem (despite the
12853         inconsistent messages from GetLastError()) was that
12854         DestroyCursor() cannot be called while a cursor is set in a
12855         window. Set the new cursor first and then destroy the old one.
12856         Thanks to jpe@archaeopteryx.com.
12857
12858         * gdk/win32/gdkcc-win32.c: Remove.
12859
12860         * gdk/win32/Makefile.am: Remove from here, too.
12861         
12862         * gdk/gdk.def
12863         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12864
12865         * gtk/gtk.def
12866         * gtk/makefile.mingw.in: Updates.
12867
12868 2001-02-08  Havoc Pennington  <hp@redhat.com>
12869
12870         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12871         add a widget to a bin that already has a child.
12872
12873         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12874
12875         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12876         
12877         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12878
12879         * gdk/gdk.h: remove gdkcc.h
12880
12881         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12882
12883         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12884         GdkPixbuf, since the previous implementation was GdkColorContext
12885         dependent.
12886
12887         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12888         
12889 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
12890
12891         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12892         a sane value!
12893
12894 2001-02-08  Havoc Pennington  <hp@redhat.com>
12895
12896         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12897         lighten them.
12898
12899 2001-02-08  Havoc Pennington  <hp@redhat.com>
12900
12901         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12902         validation idle
12903
12904         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12905         cell renderer
12906
12907         * demos/pixbuf-demo.c (timeout): remove deprecated
12908         gtk_widget_draw
12909
12910         * demos/testpixbuf-save.c (main): remove deprecated
12911         gtk_drawing_area_size
12912
12913         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12914         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12915         at the start of the allocation.
12916         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12917         unsetup or NULL model.
12918
12919         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
12920         even/odd/sorted cells in the tree view.
12921
12922         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12923         bugfixes
12924
12925         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12926         backgrounds with draw_flat_box using different detail for even/odd
12927         rows.
12928
12929         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12930         row, so we can draw the alternating colors thing
12931
12932         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12933         property from a synonym property, notify for the synonym.
12934         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12935         (gtk_text_tag_get_property): Always return the font, even if
12936         all its fields aren't set
12937
12938         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12939         store the attr list; it leaves us with no way to change attributes
12940         in _render according to the render flags, and no way to implement
12941         get_property. Instead store all the specific text attributes. 
12942         Separate whether an attribute is enabled from its value. Sync all
12943         properties with GtkTextTag, make them all consistent, etc.
12944
12945         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12946         renderers can highlight the sort row/column     
12947
12948         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12949         accessor functions to get values; this has the side effect of
12950         showing up which accessor functions were missing. Added those.
12951
12952         * gtk/gtktreeviewcolumn.h: Replace set_justification with
12953         set_alignment, to be consistent with GtkLabel, GtkMisc
12954
12955         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12956         arrow.
12957
12958         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12959
12960         * gtk/gtktreesortable.h: updates in here
12961
12962 2001-02-07  Sven Neumann  <sven@convergence.de>
12963
12964         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
12965         pango dimensions after painting the background. We used to draw
12966         gigantic flat boxes here.
12967
12968 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
12969
12970         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12971         error introduced with earlier commit) (pointed out by
12972         Ollie Lho)
12973
12974 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
12975
12976         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12977         which are no longer necessary.
12978
12979 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
12980
12981         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12982
12983 2001-02-04  Tor Lillqvist  <tml@iki.fi>
12984
12985         * gdk/gdk.def
12986         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12987         Provide dummy implementations.
12988
12989 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
12990
12991         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12992
12993         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12994         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12995         deprecated this function.
12996
12997         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
12998         argument.
12999
13000 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
13001
13002         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
13003
13004 2001-02-03  Havoc Pennington  <hp@pobox.com>
13005
13006         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
13007         Mikael Hermansson with patch from Mikael (if there was a toggle
13008         start one after the first character in the range, this function
13009         was broken). Bug #50380
13010
13011 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
13012
13013         * configure.in: Remove confusing comment about X11.
13014
13015 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
13016
13017         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
13018         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
13019         
13020 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
13021
13022         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
13023         it breaks things on BSD. If you want to compile GTK+ with
13024         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
13025         when configuring, since GTK+ simply can't be "pure ANSI" 
13026         in the header files it uses. (#8170, Greg Hudson)
13027
13028 2001-02-02  Havoc Pennington  <hp@redhat.com>
13029
13030         * gtk/gtkwindow.c: docs
13031
13032         * gtk/gtkwidget.c: docs
13033         (gtk_widget_set_colormap): add a reference to the colormap
13034         (gtk_widget_get_default_colormap): add a reference to the colormap
13035
13036         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
13037
13038         * gtk/gtktextiter.c: docs
13039
13040         * gtk/gtkmain.c (gtk_propagate_event): docs
13041
13042         * gtk/gtkpaned.c (gtk_paned_get_position): docs
13043         (gtk_paned_set_position): docs
13044
13045         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
13046         sort interface, no implementation yet.
13047
13048         * demos/testpixbuf.c (new_testrgb_window): replace
13049         gtk_drawing_area_size() with gtk_widget_set_usize()
13050
13051         * demos/testpixbuf-drawable.c (main): ditto
13052         
13053         * gtk/testgtk.c: remove use of GtkStatusbarMsg
13054
13055         * gtk/gtktextbuffer.c: docs
13056
13057         * gtk/gtkstock.c: docs
13058
13059         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
13060
13061         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
13062
13063         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
13064         
13065         * gtk/gtkimage.c: add some docs in here
13066         (gtk_image_size_request): change name of
13067         gtk_widget_render_stock_icon
13068         (gtk_image_get_icon_set): don't dup returned string
13069         (gtk_image_get_icon_set): don't dup returned string
13070
13071         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
13072         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
13073         and gtkiconfactory.h functions
13074
13075         * gtk/gtkiconfactory.c: add some docs in here
13076
13077         * gtk/gtkmain.c (gtk_get_default_language): document
13078         (gtk_get_current_event): document
13079         (gtk_get_current_event_state): document
13080         (gtk_get_event_widget): document
13081
13082         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
13083
13084         * gtk/gtkcontainer.c: Add some documentation
13085         (gtk_container_add): give a more explanatory warning on adding an
13086         already-parented widget, this is kind of a FAQ and also a common
13087         typo that's easier to debug with a nice warning 
13088
13089         * gtk/gtkcellrenderertoggle.c
13090         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
13091         adding this, it's useless
13092         (gtk_cell_renderer_toggle_set_active): remove
13093         (gtk_cell_renderer_toggle_get_radio): add
13094
13095         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
13096         the NULL cell renderer, that doesn't make any sense to me. 
13097
13098         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
13099         demo code should never use deprecated features.
13100
13101         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
13102         code should never use deprecated features.
13103
13104         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
13105         gtk_widget_queue_clear_area deprecated
13106
13107         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
13108         deprecated
13109
13110         * gtk/gtklabel.h: mark gtk_label_get() deprecated
13111
13112         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
13113         a GdkImage deprecated, replaced by new consistently-named
13114         functions       
13115
13116         * gtk/gtkmain.h: Mark gtk_exit() deprecated
13117
13118         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
13119
13120         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
13121         deprecated
13122
13123         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
13124         so it won't appear in docs and confuse people.
13125
13126         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
13127
13128         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
13129         macros deprecated. (can't mark the type itself deprecated, since
13130         GtkProgressBar is not deprecated and we need the type decl to use
13131         GtkProgressBar)
13132
13133         * gtk/gtkpixmap.h: Mark deprecated
13134
13135         * gtk/gtkoldeditable.h: Mark deprecated
13136
13137         * gtk/gtklist.h: Mark deprecated
13138
13139         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
13140         for anything anymore.
13141
13142         * gtk/gtkctree.h: Mark deprecated
13143
13144         * gtk/gtkclist.h: Mark deprecated
13145
13146         * gtk/gtkpreview.h: Mark deprecated
13147
13148         * gtk/gtkpacker.h: Mark deprecated
13149
13150         * gtk/gtktipsquery.h: Mark deprecated
13151
13152         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
13153
13154         * gtk/gtkvruler.h: Add comment that it will move out of GTK
13155
13156         * gtk/gtkhruler.h: Add comment that it will move out of GTK
13157
13158         * gtk/gtkruler.h: Add comment that it will move out of GTK
13159
13160         * gtk/gtkgamma.h: Add comment that it will move out of GTK
13161
13162         * gtk/gtkcurve.h: Add comment that it will move out of GTK
13163
13164 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
13165
13166         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
13167         gdk_colormap_sync private since it was never exported
13168         in a header file.
13169
13170         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
13171         colormap->colors[] for StaticGray, StaticColor colormaps.
13172
13173         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
13174         was being used as if it was image->bits_per_pixel.
13175
13176         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
13177         for the image in the GdkImage structure since it isn't
13178         reconstructable, and we need it to handle packed types
13179
13180         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
13181         the assumption that on Win32 image->bits_per_pixel == image->depth,
13182         always.
13183
13184         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
13185
13186         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
13187         warning message if no converter can be found. 
13188
13189 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
13190
13191         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
13192         chars to isupper() / tolower(). (#567)
13193
13194         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
13195         to clear up 64-bit warnings. (#567)
13196
13197 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
13198
13199         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
13200         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
13201
13202         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
13203         since some people set $(libdir) separately. (#1290, David Kaelbling)
13204
13205 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
13206
13207         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
13208         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
13209         MAXPATHLEN, but the code here depends on a fixed value.)
13210         (#4524)
13211
13212 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
13213
13214         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
13215         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
13216
13217 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
13218
13219         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
13220         viewable there is no way that moving the node will cause the 
13221         focus row to become not viewable, so omit check on the visibility
13222         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
13223
13224 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
13225
13226         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
13227         selection before inserting new text.
13228
13229 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
13230
13231         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
13232         Make the sensitivity of the reparented child track that of
13233         the original parent menu item. (#34218, David Hodson)
13234
13235         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
13236         the case where the current item is destroyed properly.
13237
13238         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
13239         some edge cases with child-less menuitems.
13240         
13241 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
13242
13243         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
13244         key pop down window. (#12074, Jon K Hellan)
13245
13246 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
13247
13248         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
13249         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
13250         The solution here isn't perfect - you get an extraneous
13251         emission of "toggle", which could conceivably confuse an app,
13252         but better than the current situation. LXR search seems to
13253         indicate that no apps in GNOME CVS connect to "toggle".
13254
13255 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
13256
13257         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
13258         gtk_public_h_sources to directly here to avoid warning when
13259         building srcdir != builddir. (#9656)
13260
13261 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
13262
13263         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
13264         handlers in gtkrange.c return the proper values (TRUE == handled)
13265         (#10316).
13266
13267         This is just the tip of the iceberg, but gtkrange.c is the
13268         most common place where the propagation is problematical,
13269         and also a place where it is almost certainly safe to change
13270         this in the stable branch.
13271
13272         (You don't want right click popups on a range control or anything...)
13273
13274 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
13275
13276         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
13277         area on focus out, even if a background pixmap isn't set.
13278         (#13941)
13279         
13280 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
13281
13282         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
13283         to deal with setting the shape properly when scrolling arrows are
13284         turned on, but not visible because there is sufficient space.
13285         (#13432)
13286
13287 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
13288
13289         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
13290         items with submenus, destroy the item along with the submenu.
13291         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
13292         properly.
13293
13294         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
13295         later.
13296
13297 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
13298
13299         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
13300         the focus widget sometimes wasn't drawn with the default if there
13301         was no default widget.
13302
13303         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
13304         unreference pixmaps. 
13305
13306         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
13307         for some extra safety.
13308
13309 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
13310
13311         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
13312         the text of a cell to the old pointer value better, by
13313         copying the new text before freeing the old text. Some code
13314         cleanup. (#8079, Karl Nelson)
13315
13316 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
13317
13318         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
13319         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
13320
13321 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
13322
13323         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
13324         item from a menu, check to see if it matches 
13325         menu->old_active_menu_item, and if so, unref and clear
13326         old_active_menu_item (Patch from Pavel Cisler)
13327
13328         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
13329         menu_shell->active_menu_item, if it is the child being
13330         removed. (Patch based on that of Gene Ragan, #50337)
13331
13332 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
13333
13334         * gdk/linux-fb/gdkselection-fb.c: 
13335         * gdk/linux-fb/gdkcolor-fb.c: 
13336         * gdk/linux-fb/gdkdrawable-fb2.c: 
13337         * gdk/linux-fb/gdkfont-fb.c: 
13338         * gdk/linux-fb/gdkim-fb.c: 
13339         * gdk/linux-fb/gdkinput.c: 
13340         * gdk/linux-fb/gdkkeyboard-fb.c: 
13341         * gdk/linux-fb/gdkmain-fb.c: 
13342         * gdk/linux-fb/gdkrender-fb.c: 
13343         A bunch of whitespace cleanup.
13344         
13345 2001-01-30  Havoc Pennington  <hp@pobox.com>
13346
13347         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
13348         #ifdef GTK_ENABLE_BROKEN.
13349
13350         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
13351         GTK_ENABLE_BROKEN just before including the broken headers.
13352         
13353         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
13354         deprecated types registered.
13355
13356         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
13357         we have to test the broken stuff.
13358
13359         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
13360         
13361 2001-01-30  Havoc Pennington  <hp@redhat.com>
13362
13363         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
13364         here where prev pointer was set to the wrong thing
13365
13366         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
13367         (gtk_tree_path_is_descendant): new function
13368
13369         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
13370         cached length
13371         (gtk_list_store_get_iter): don't modify iter if we can't get the
13372         path.
13373
13374         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
13375         
13376         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
13377         GtkTreeDragDest
13378
13379         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
13380         was causing segfault
13381
13382         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
13383         pointer to NULL
13384
13385         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
13386
13387         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
13388         on returning FALSE
13389         (gtk_list_store_iter_children): ditto
13390         (gtk_list_store_iter_nth_child): ditto
13391         (gtk_list_store_iter_nth_child): ditto
13392         (gtk_list_store_iter_parent): ditto
13393
13394         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
13395         on iter->user_data != NULL instead of silently accepting it.
13396         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
13397         we are returning TRUE.
13398         (gtk_tree_store_iter_children): ditto
13399         (gtk_tree_store_iter_nth_child): ditto
13400         (gtk_tree_store_iter_parent): ditto
13401         (gtk_tree_store_insert): remove handling of parent->user_data ==
13402         NULL, replace with parent == NULL       
13403
13404         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
13405         and a comment explaining things
13406
13407         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
13408         interface support to GtkTreeStore.
13409
13410         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
13411         FALSE if no prev, fix
13412
13413         * gtk/gtktreeview.c (set_source_row): use a row reference
13414         (set_dest_row): use a row reference
13415
13416 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
13417
13418         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
13419         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
13420         (gtk_tree_selection_select_iter): The same as above.
13421
13422 2001-01-26  Havoc Pennington  <hp@redhat.com>
13423
13424         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
13425         which holds a handle to a specific row (particular set of values
13426         in the model, i.e. pointer-identity row).
13427
13428         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
13429         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
13430         Still need to use it for the src/dest row saved on the drag context.
13431
13432 2001-01-26  Havoc Pennington  <hp@redhat.com>
13433
13434         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
13435
13436         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
13437         not offset by TREE_VIEW_HEADER_HEIGHT
13438         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
13439         TREE_VIEW_HEADER_HEIGHT
13440
13441         * configure.in (included_loaders): for me, --with-included-loaders
13442         generates the error "the specified loader yes does not exist",
13443         i.e. the arg defaults to "yes", so change test for value ""
13444         to test for value "yes", and include all loaders in that case.
13445
13446         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
13447
13448         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
13449         handle TREE_VIEW_VERTICAL_SEPARATOR
13450         (gtk_tree_view_bin_expose): fix to consider the row offset as
13451         pointing halfway into vertical separator.       
13452         (gtk_tree_view_draw_node_focus_rect): ditto
13453
13454         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
13455         --gtk-debug=updates, which causes gdk_window_set_debug_updates
13456         (TRUE) to be called.
13457
13458         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
13459         debug mode where the invalid region is colored in on invalidate,
13460         so you can see the flicker and know whether your redraw code is 
13461         doing a good job.
13462
13463         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
13464         tree window coordinates (clip rect is in tree window coords)
13465
13466         * gtk/Makefile.am: add gtktreednd.[hc]
13467
13468         * gtk/gtkliststore.c: implement gtktreednd interfaces.
13469
13470         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
13471         drag-and-drop data operations on a model (so we can set up tree
13472         drag-and-drop automatically)
13473
13474         * gtk/testgtk.c: Add a window to change sensitivity in the
13475         GtkLabel test; add a way to change the entry frame in GtkEntry
13476         test
13477
13478         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
13479         (gtk_entry_get_has_frame): new functions to remove the frame
13480         around an entry
13481         (gtk_entry_size_request): shrink requisition if no frame
13482         (gtk_entry_draw_focus): don't draw frame if no frame
13483
13484         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
13485         checks inside a cell renderer
13486         (gtk_default_draw_option): ditto for options
13487
13488         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
13489         children from the alignment, not the button
13490         (gtk_tree_view_column_init): ref/sink the column, to emulate
13491         GObject refcounting.
13492
13493         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
13494         
13495         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
13496         Use theme functions to draw the toggles 
13497
13498         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
13499
13500         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
13501         GdkPangoAttrEmbossed to use in rendering insensitive text
13502
13503         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
13504
13505         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
13506         using new GDK features
13507         
13508 2001-01-24  Alexander Larsson  <alexl@redhat.com>
13509
13510         * gtk/gtkimage.c:
13511         Splitted gtk_image_clear into gtk_image_clear() and
13512         gtk_image_reset(). Call gtk_image_clear() in ::destroy
13513         to avoid leaks.
13514
13515         * gtk/gtklabel.c (set_markup):
13516         Don't leak text.
13517
13518         * gtk/gtktextlayout.c:
13519         Always free display->shaped_objects.
13520
13521         * gtk/testgtk.c (create_clist):
13522         Don't leak custom style.
13523
13524 2001-01-23  Alexander Larsson  <alexl@redhat.com>
13525
13526         * gtk/gtkcolorsel.c (grab_color_at_mouse):
13527         Don't leak image. Simplify using gdk_colormap_query_color().
13528         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
13529
13530         * linux-fb/gdkcolor-fb.c:
13531         Implemented gdk_colormap_query_color.
13532
13533 2001-01-23  Alexander Larsson  <alexl@redhat.com>
13534
13535         * linux-fb/gdkcursor-fb.c:
13536         Don't leak built-in cursors.
13537
13538         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
13539         Don't leak tmp_points.
13540
13541         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
13542         Don't modify desc. Don't leak font if the PangoFont
13543         isn't found.
13544         
13545         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
13546         Free dash_list.
13547
13548         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
13549         Don't leak string.
13550         
13551 2001-01-20  Havoc Pennington  <hp@pobox.com>
13552
13553         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
13554         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
13555         me, matches Pango
13556
13557 2001-01-22  Havoc Pennington  <hp@redhat.com>
13558
13559         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
13560
13561         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
13562
13563         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
13564         Remove, move back to gdk-pixbuf
13565
13566         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
13567         to all the word functions
13568
13569         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
13570         before doing anything on NULL layout or if we don't have the focus
13571
13572         * gtk/testtext.c (fill_example_buffer): "justification"
13573
13574         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
13575         to be called "justification" not "justify"
13576
13577         * demos/gtk-demo/textview.c (create_tags): "justification"
13578         
13579         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
13580
13581 2001-01-22  Alexander Larsson  <alexl@redhat.com>
13582
13583         * gdk/gdkwindow.c (gdk_window_invalidate_region):
13584         Don't leak visible_region. Use visible_region instead of region.
13585         
13586         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13587         Don't do extra gdk_drawable_ref(). This is not X.
13588         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
13589         gdk_fb_focused_window is ref:ed.
13590         (gdk_fb_window_send_crossing_events): Watch out for destroyed
13591         windows.
13592
13593 2001-01-22  Alexander Larsson  <alexl@redhat.com>
13594
13595         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
13596         Don't leak the PangoFontDescriptor.
13597
13598 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
13599
13600         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
13601         when not realized.
13602         (gtk_tree_view_scroll_to_cell): Make work when not realized.
13603         (gtk_tree_view_realize): add scroll_to support
13604         (gtk_tree_view_finalize): add a finalize method.  Populate.
13605         (gtk_tree_view_insert_column): ref and sink the column.
13606         (gtk_tree_view_append_column): ref and sink the column.
13607         (gtk_tree_view_queue_draw_node): New function to handle redrawing
13608         individual nodes.  Should make the code much more efficient, if
13609         actually used.
13610
13611 2001-01-19  Havoc Pennington  <hp@redhat.com>
13612
13613         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13614         byte_offset variable was being used to mean both "offset into
13615         layout" and "offset into buffer line" which was no longer true
13616         with addition of preedit string; fix
13617
13618 2001-01-19  Havoc Pennington  <hp@redhat.com>
13619
13620         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
13621
13622         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
13623         function
13624
13625         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
13626         implement
13627
13628         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
13629         scroll_to_cell, matches TextView scroll functions better
13630         (gtk_tree_view_tree_to_widget_coords): new function
13631         (gtk_tree_view_widget_to_tree_coords): new function
13632         (gtk_tree_view_get_visible_rect): new function
13633         (gtk_tree_view_get_path_at_pos): accept negative coordinates
13634         (gtk_tree_view_draw_node_focus_rect): new function moved from
13635         draw_focus, also, use width of bin_window as width of the focus
13636         rect
13637         (gtk_tree_view_expand_row): fix bug where it didn't recognize
13638         already-expanded rows
13639         (gtk_tree_view_get_cell_rect): new function
13640         (gtk_tree_view_get_path_at_pos): return the click position
13641         relative to the passed-in cell
13642         (gtk_tree_view_set_expander_column): new function
13643
13644         * configure.in: remove gtk-config-2.0 chmod
13645
13646         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
13647         and properly handle drags with targets we don't understand
13648         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13649         scrolling anyway
13650         (gtk_text_view_drag_drop): stop scrolling here though, and set the
13651         mark invisible
13652
13653         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13654         function
13655         (gtk_drag_dest_get_target_list): new function
13656         (gtk_drag_dest_set_target_list): new function
13657         
13658         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13659
13660         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13661         related to drag-and-drop
13662
13663 2001-01-19  Alexander Larsson  <alexl@redhat.com>
13664
13665         * gdk/linux-fb/gdkprivate-fb.h:
13666         Define EMULATE_GDKFONT.
13667         Add extra pango_font stuff to GfkFontPrivate.
13668         
13669         * gdk/linux-fb/gdkdrawable-fb2.c:
13670         * gdk/linux-fb/gdkfont-fb.c:
13671         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13672         emulation using PangoFont.
13673
13674 2001-01-17  Havoc Pennington  <hp@pobox.com>
13675
13676         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13677         all the non-deprecated set_foo functions. Added missing object
13678         properties, and added g_object_notify() to setters. 
13679         Wrote docs.
13680         
13681 2001-01-18  Tor Lillqvist  <tml@iki.fi>
13682
13683         * gtk/gtkmain.c
13684         * gtk/gtkrc.c: (Win32) Use the new
13685         g_win32_get_package_installation_(sub)directory() functions.
13686
13687         * config.h.win32.in: New file.
13688         
13689         * config.h.win32: Removed.
13690
13691         * configure.in: Output config.h.win32.
13692
13693         * Makefile.am: Add it to EXTRA_DIST.
13694
13695         * gtk/gtk.def: Update.
13696
13697 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
13698
13699         * gtk/gtklabel.c (gtk_label_size_request): Set the
13700         attributes onto the PangoLayout even if they are newly
13701         created from label->pattern.
13702
13703 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
13704
13705         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13706
13707         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13708         structures in functions. Fixes bug where gtk_dataset_*
13709         was accidentally still being used in one place, causing
13710         every dest side event to be treated independently.
13711
13712         * gtk/gtkdnd.c: Remove last vestages of handling
13713         ::draw (fixes warning)
13714         
13715         * gtk/gtkentry.[ch]: Add drag and drop support.
13716
13717         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13718         new function gtk_check_drag_threshhold() for checking
13719         to check if (dx,dy) has exceeded the threshhold for starting
13720         a drag and use it everywhere.
13721
13722 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
13723
13724         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13725         add -I{includedir}/gtk-2.0.
13726
13727         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13728         gdk/gdk-pixbuf.h: Doc fixups.
13729         
13730         * gtk/gtkobject.h: Remove trailing , from enum
13731
13732 2001-01-17 Alexander Larsson <alexl@redhat.com> 
13733
13734         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13735         Doh! Mixed up x and y.
13736
13737         * gdk/linux-fb/gdkglobals-fb.c:
13738         Removed gdk_fb_pointer_grab_window_events,
13739         added _gdk_fb_pointer_grab_owner_events and
13740         _gdk_fb_keyboard_grab_owner_events.
13741
13742         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13743         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13744         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13745         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13746         Send crossing events after ungrab finished.
13747         (gdk_keyboard_grab): Set ..._owner_events
13748         (type_masks): Move out of function.
13749         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13750         gdk_fb_keyboard_event_window): New functions, return the
13751         window an event should be targeted at. Handles grabs and
13752         event propagation. Can return NULL.
13753         (gdk_event_make): Remove event_mask checking. Now always
13754         returns an event.
13755                 
13756         * gdk/linux-fb/gdkkeyboard-fb.c:
13757         * gdk/linux-fb/gdkproperty-fb.c:
13758         * gdk/linux-fb/gdkselection-fb.c:
13759         Use new event_window/gdk_event_make() behaviour.
13760         
13761         * gdk/linux-fb/gdkmouse-fb.c:
13762         Use new event_window/gdk_event_make() behaviour.
13763         Only send motion events if in the same window.
13764         If grabbed, use cursor from window if sibling of grabbed
13765         window, and cursor from grabbed window otherwise.
13766
13767         * gdk/linux-fb/gdkprivate-fb.h:
13768         Update gdk_fb_window_send_crossing_events, gdk_event_make
13769         and grab varaible declarations. Add gdk_fb_*_event_window().
13770
13771         * gdk/linux-fb/gdkwindow-fb.c:
13772         Use new event_window/gdk_event_make() behaviour.
13773         Keep correct track of focus window.
13774         (gdk_window_set_events): Set all specific button motion masks
13775         if GDK_BUTTON_MOTION_MASK set.
13776
13777         * gtk/gtkdnd.c (gtk_drag_update):
13778         Free info->last_event if gdk_drag_motion returned FALSE.
13779
13780 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13781
13782         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13783         Eliminate redraws when input-only windows are shown or
13784         hidden. Thanks to jpe@archaeopteryx.com.
13785
13786 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
13787
13788         * docs/faq/gtk-faq.sgml: FAQ update:
13789           - Update to bugzilla
13790           - Add GTK+ and security/SUID/SGID
13791           - Add DnD question
13792
13793 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
13794
13795         * gdk/linux-fb/gdkdnd-fb.c:
13796         Some cleanups.
13797         
13798 2001-01-15  Havoc Pennington  <hp@pobox.com>
13799
13800         * tests/testtreeview.c: add test stuff for CellRendererToggle
13801
13802         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13803         accessor
13804
13805         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13806         only toggle on button press (would do release like GtkButton, but
13807         we'd need implicit grab code for treeview cells)
13808
13809 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13810
13811         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13812
13813         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13814         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13815
13816         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13817         to g_{locale,filename}_{to,from}_utf8 to match current API.
13818
13819         * gtk/makefile.msc.in (gtk_OBJECTS)
13820         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13821
13822         * gtk/gtk.def: Update.
13823
13824 2001-01-15  Tor Lillqvist  <tml@iki.fi>
13825
13826         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13827         implementaion that more closely mimics the events that an X server
13828         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13829         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13830         with nested preview widgets, for instance, more responsive when
13831         you move the mouse quickly into them.
13832         (find_window_for_pointer_event): Make it actually compile.
13833         (gdk_event_translate): Set send_event to the value of
13834         InSendMessage (). This doesn't really mean the same as X11's
13835         send_event flag, but is close enough, says jpe@archaeopteryx.com
13836
13837 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13838
13839         * gdk/linux-fb/gdkdnd-fb.c:
13840         Implemented drag and drop.
13841         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13842         when it tries to free and then copy the same event (info->last_event).
13843         I am not sure about why this happens, but will continue looking.
13844
13845 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13846
13847         * gdk/linux-fb/gdkwindow-fb.c:
13848         Use gdk_window_invalidate_rect instead of
13849         gdk_window_invalidate_rect_clear to minimise flashing.
13850         When hiding windows you need to clear the root window though.
13851
13852 2001-01-15  Alexander Larsson  <alexl@redhat.com>
13853
13854         * gdk/linux-fb/gdkdrawable-fb2.c:
13855         For optization, add an full_shapes argument to gdk_fb_clip_region.
13856         If this is false, only the cliprects of the shapes are used.
13857
13858         * gdk/linux-fb/gdkprivate-fb.h:
13859         Export gdk_fb_window_peek_shape.
13860         Add full_shapes to gdk_fb_clip_region.
13861
13862         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13863         When moving a window, don't clear everything under the it, just the
13864         root window. Makes stuff faster and flash less.
13865         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13866         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13867         offset of the shape.
13868         
13869
13870 2001-01-12  Havoc Pennington  <hp@redhat.com>
13871
13872         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
13873         current invalid region, fixes redraw bug while scrolling the 
13874         text widget
13875
13876         * gtk/gtktextview.c, gtk/gtktextview.h:
13877         Rearrange the scrolling/validation/etc. code in a major way, 
13878         so it seems to make sense to me. Probably isn't genuinely that
13879         much better, but...
13880
13881         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13882         notifies
13883
13884         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13885
13886 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
13887
13888         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13889         Hide mouse pointer while rotation. Show it afterwards.
13890
13891 2001-01-12  Alexander Larsson  <alexl@redhat.com>
13892
13893         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13894         windows in consideration when generating clip region.
13895
13896         * gdk/linux-fb/gdkfb.h:
13897         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13898
13899         * gdk/linux-fb/gdkprivate-fb.h:
13900         Add shape to GdkWindowFBDatat.
13901         exported gdk_fb_window_get_abs_shape().
13902         removed gdk_fb_draw_lines declaration.
13903
13904         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13905         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13906         send focus changes when there is a grabbed window.
13907         (gdk_window_get_pointer): Handle shaped windows.
13908         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13909         (gdk_fb_window_peek_shape): Returns the shape for a window,
13910         handles GDK_FB_USE_CHILD_SHAPE.
13911         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13912         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13913         (gdk_window_shape_combine_mask): Implement.
13914
13915         * gtk/gtkwindow-decorate.c:
13916         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13917         setting the shape of a window makes the window transparent.
13918
13919 2001-01-11  Havoc Pennington  <hp@redhat.com>
13920
13921         * gtk/gtktreemodelsimple.h: Oops, broke some macros
13922
13923 2001-01-10  Havoc Pennington  <hp@redhat.com>
13924
13925         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13926         add this function, bug 40251
13927
13928         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13929         of type macro   
13930
13931 2001-01-11  Alexander Larsson  <alexl@redhat.com>
13932
13933         * acconfig.h:
13934         Added ENABLE_SHADOW_FB
13935
13936         * configure.in:
13937         Added --disable-shadowfb
13938
13939         * gdk/linux-fb/gdkcursor-fb.c:
13940         Update shadowfb when updating cursor
13941
13942         * gdk/linux-fb/gdkdrawable-fb2.c:
13943         Added wrappers for shadowfb that calls  the normal drawable
13944         methods, but calls gdk_shadow_fb_update(bounding box) when
13945         GdkWindows are drawed to.
13946         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13947         which also returns the bounding box.
13948
13949         * gdk/linux-fb/gdkfb.h:
13950         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13951
13952         * gdk/linux-fb/gdkgeometry-fb.c:
13953         Update shadowfb when scrolling window.
13954
13955         * gdk/linux-fb/gdkglobals-fb.c:
13956         Add _gdk_fb_screen_angle.
13957         
13958         * gdk/linux-fb/gdkkeyboard-fb.c:
13959         Test code for screen rotation. Shift-F2 in the xlate driver
13960         rotates the screen.
13961
13962         * gdk/linux-fb/gdkmain-fb.c:
13963         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13964
13965         * gdk/linux-fb/gdkmouse-fb.c:
13966         Use fb_width/height instead of modeinfo.xres/yres.
13967
13968         * gdk/linux-fb/gdkprivate-fb.h:
13969         Added fb_men, fb_width, fb_height & fb_stride. When using
13970         shadow fb these can differ from the framebuffer stuff.
13971         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13972         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13973         _gdk_fb_screen_angle. Removed CM, RP.
13974
13975         * gdk/linux-fb/gdkrender-fb.c:
13976         Added code for shadowfb handling and screen rotation using
13977         shadowfb.
13978
13979         * gdk/linux-fb/gdkwindow-fb.c:
13980         Use fb_mem, fb_stride, fb_width, fb_height.
13981         Added recompute_rowstride to reset the rowstride of all windows.
13982         Added gdk_fb_recompute_all() which recomputes rootwindow size,
13983         window abs positions and window rowstrides. Usefull when the
13984         rotation has changed.
13985
13986 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
13987
13988         * docs/faq/gtk-faq.sgml: update to make web site updating easier
13989
13990 2001-01-10  Havoc Pennington  <hp@redhat.com>
13991
13992         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13993         where sibling == iter
13994         (gtk_tree_store_insert_after): handle sibling == iter
13995         (gtk_tree_store_prepend): remove stamp checks
13996         (gtk_tree_store_insert_before): ditto
13997         (gtk_tree_store_append): ditto
13998         (gtk_tree_store_get_path): ditto
13999         (gtk_tree_store_get_value): ditto
14000         (gtk_tree_store_iter_has_child): ditto
14001         (gtk_tree_store_iter_n_children): ditto
14002         (gtk_tree_store_iter_nth_child): ditto
14003         (gtk_tree_store_insert_after): ditto
14004         (gtk_tree_store_is_ancestor): ditto
14005         (gtk_tree_store_iter_depth): ditto
14006         (gtk_tree_store_insert_before): assert that sibling's parent is
14007         the same as the passed-in parent
14008         (gtk_tree_store_insert_after): assert that sibling's parent is
14009         the same as the passed-in parent
14010
14011         
14012         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
14013         function to get the first iterator in a model
14014         
14015         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
14016         conventionally the "root" in this sense is just NULL afaict.
14017
14018         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
14019         where sibling == iter
14020         (gtk_list_store_insert_after): handle case where sibling == iter
14021
14022         * tests/testtreeview.c (run_automated_tests): fairly lame basic
14023         automated tests for ListStore, TreeStore
14024
14025         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
14026         (gtk_list_store_insert): update tail pointer, and fix it to work
14027         (gtk_list_store_insert_before): update tail pointer, and fix it to work
14028         (gtk_list_store_append): use tail to be faster
14029         (gtk_list_store_prepend): fix it, update tail pointer
14030         (gtk_list_store_insert_after): fix it, update tail pointer
14031
14032         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
14033         the list
14034
14035 2001-01-09  Havoc Pennington  <hp@redhat.com>
14036
14037         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
14038         is NULL due to a pending resize
14039
14040         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
14041         column width to values less than 1
14042
14043         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
14044         width to be between min/max width, and still set the width 
14045         even if autosize is turned on, so the tree view can use this 
14046         function in order to autosize.
14047         (gtk_tree_view_column_init): set initial width to 1 not 0
14048
14049         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
14050         setter function to modify column width, so we get notification
14051         (gtk_tree_view_insert_iter_height): ditto
14052         (gtk_tree_view_calc_size): ditto
14053         (gtk_tree_view_check_dirty): ditto
14054
14055         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
14056         properties to change all the interesting attributes of the tree
14057         view column.
14058         (gtk_tree_view_column_set_header_clickable): rename set_clickable
14059         (gtk_tree_view_column_get_clickable): add
14060         (gtk_tree_view_column_set_cell_renderer): don't unset the current
14061         attributes; assume a cell renderer with equivalent object
14062         properties has been swapped in. Do g_object_notify().
14063         (gtk_tree_view_column_set_visible): g_object_notify
14064         (gtk_tree_view_column_get_sizing): rename from get_col_type
14065         (gtk_tree_view_column_set_sizing): g_object_notify
14066         (gtk_tree_view_column_set_width): add g_object_notify
14067         (gtk_tree_view_column_set_min_width): ditto
14068         (gtk_tree_view_column_set_max_width): ditto
14069         (gtk_tree_view_column_set_title): ditto
14070         (gtk_tree_view_column_set_clickable): ditto
14071         (gtk_tree_view_column_set_widget): ditto
14072         (gtk_tree_view_column_set_justification): ditto
14073
14074 2001-01-09  Havoc Pennington  <hp@redhat.com>
14075
14076         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
14077         there are no rows in the model
14078
14079         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
14080         NULL, then return the start of the list
14081
14082         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
14083         if we can't get any rows from an empty model 
14084
14085         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
14086         extraneous * after function pointer typedef usage
14087
14088         * Makefile.am: don't specify full path to cp and rm
14089
14090         * gtk/gtkcellrenderertextpixbuf.c
14091         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
14092         NULL before dereferencing, fixes a segfault that happened from
14093         time to time
14094
14095         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
14096         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
14097         and reindent the function
14098         (gtk_cell_renderer_pixbuf_get_size): indentation
14099
14100         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
14101         we quit it
14102         (gtk_dialog_add_buttons_valist): add g_return_if_fail
14103         (gtk_dialog_set_default_response): New function, to set default
14104         button
14105         (gtk_dialog_set_response_sensitive): New function, to set 
14106         sensitivity of buttons
14107
14108         * gtk/gtkcellrendererpixbuf.c
14109         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
14110         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
14111
14112         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
14113         handle any G_TYPE_OBJECT subclass, not just the base class, and 
14114         also boxed types.
14115         (_gtk_tree_data_list_value_to_node): ditto
14116
14117         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
14118         --gtk-debug=tree
14119
14120         * gtk/gtkmain.c: add GTK_DEBUG_TREE
14121
14122         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
14123
14124 2001-01-09  Tor Lillqvist  <tml@iki.fi>
14125
14126         * gdk/win32/gdkevents-win32.c: Implement better mouse
14127         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
14128         (find_window_for_pointer_event): New function.
14129         (gdk_event_translate): Use it when handling mouse events.
14130
14131 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
14132
14133         * configure.in:
14134         Added --with-included-loaders option
14135
14136         * gdk-pixbuf/Makefile.am:
14137         * gdk-pixbuf/gdk-pixbuf-io.c:
14138         Add support for including selected gdk-pixbuf loaders only.
14139
14140         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
14141         gtk_window_set_has_frame):
14142         Added inline documentation.
14143
14144         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
14145         * docs/reference/gdk/tmpl/windows.sgml:
14146         Added inline documentation.
14147
14148 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
14149
14150         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
14151         realizing buttons that have already been realized.
14152
14153 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
14154
14155         * tests/testtreeview.c (main): Show menu items before adding to
14156         option menu.
14157
14158         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
14159         around if we kill them.
14160
14161         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
14162         Return if we pass in a NULL model.
14163
14164 2001-01-08  Havoc Pennington  <hp@redhat.com>
14165
14166         * tests/testtreeview.c: hack on this some
14167
14168         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
14169         gtk_tree_store_set_valist, v is for arrays, valist for varargs
14170         list
14171         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
14172
14173         * gtk/gtkliststore.h: Add varargs set() and get() convenience
14174         functions
14175
14176 2001-01-08  Alexander Larsson  <alexl@redhat.com>
14177
14178         * gtk/gtkwindow-decorate.[hc]:
14179         * gtk/Makefile.am:
14180         New files. Contains an implementation of a minimal WM for
14181         linux-fb.
14182
14183         * gtk/gtkwindow.h:
14184         Add the possibility for GtkWindows to specify a frame. This
14185         is used for the window decoration code, but could concievably
14186         be used for X programs too (xmms style windows).
14187         GtkWindow->frame is the toplevel window if the window is framed.
14188         The signal frame_event gets all events that are targeted to
14189         GtkWindow->frame.
14190         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
14191         
14192         * gtk/gtkwindow.c:
14193         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
14194         Call out to gtkwindow-decorate.c for WM support in linx-fb.
14195
14196 2001-01-08  Alexander Larsson  <alexl@redhat.com>
14197
14198         * docs/README.linux-fb:
14199         Correct filename ~/.pangoft2_aliases
14200
14201         * gdk/gdkwindow.h:
14202         Added new function gdk_window_get_decorations.
14203
14204         * gdk/linux-fb/gdkfb.h:
14205         Removed _gdk_window_get_decorations declaration.
14206         Renamed _gdk_window_set_child_handler to
14207         gdk_fb_window_set_child_handler.
14208
14209         * gdk/linux-fb/gdkwindow-fb.c:
14210         Renamed _gdk_window_set_child_handler to
14211         gdk_fb_window_set_child_handler.
14212
14213         * gdk/x11/gdkwindow-x11.c:
14214         New function gdk_window_get_mwm_hints().
14215         Implemented gdk_window_get_decorations.
14216
14217         * docs/reference/gdk/tmpl/windows.sgml:
14218         * docs/reference/gdk/gdk-sections.txt:
14219         Added gdk_window_get_decorations docs.
14220         
14221 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
14222
14223         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
14224         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
14225         gdk_fb_window_send_crossing_events):
14226         Possibly send focus events when the mouse moves from one
14227         window to another.
14228
14229 2001-01-07  Tor Lillqvist  <tml@iki.fi>
14230
14231         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
14232         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
14233         to match current API.
14234
14235         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
14236         environment variable is set, don't call g_error when on a
14237         palettized (PseudoColor) display. Some people want to use GTK+ 
14238         in 256-colour mode even though works only partially.
14239
14240         * gdk/gdk.def
14241         * gtk/gtk.def
14242         * gtk/makefile.mingw.in: Update.
14243
14244 2001-01-05  Havoc Pennington  <hp@redhat.com>
14245
14246         * tests/testtreeview.c: hack on this a bit
14247
14248         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
14249         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
14250
14251         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
14252         was spelled incorrectly
14253         (GTK_IS_TREE_MODEL_SIMPLE): ditto
14254
14255         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
14256         from gtk_tree_view_set_headers_active   
14257
14258         * gtk/gtktexttag.c:
14259         (gtk_text_tag_get_property): handle PROP_DIRECTION
14260         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
14261         properties, bug 40235
14262
14263         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
14264         forward_to_line_end
14265
14266 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
14267
14268         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
14269         modules/input/gtkimcontextxim.c: Adapt to new prototypes
14270         for unicode,locale,filename conversion functions.
14271
14272 2001-01-05  Havoc Pennington  <hp@redhat.com>
14273
14274         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
14275         broken if called on the first position in the buffer.
14276
14277         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
14278         forward_to_delimiters to be called only if we aren't already at
14279         the delimiters.
14280
14281 2001-01-05  Havoc Pennington  <hp@redhat.com>
14282
14283         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
14284
14285 2001-01-05  Alexander Larsson  <alexl@redhat.com>
14286
14287         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
14288         colormap in here. Sync from X port.
14289         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
14290         Sync from X port.
14291         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
14292         This happens now and then, and i don't think it is a bug.
14293         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
14294         != endpoint.
14295         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
14296         GDK_LINE_SOLID.
14297
14298         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
14299         some of the fields filled in at least.
14300
14301         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
14302         miLineArcD is no more, remove it from the function definition.
14303
14304 2001-01-04  Havoc Pennington  <hp@redhat.com>
14305
14306         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
14307         this
14308
14309         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
14310         user_data instead of tree_node
14311
14312         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
14313         TREE_VIEW_COLUMN_SIZE
14314
14315         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
14316         "size" field to "width" finishes bug 40061
14317
14318         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
14319         for bitfields, bug 40268
14320
14321 2001-01-04  Havoc Pennington  <hp@redhat.com>
14322
14323         Rename some stuff:
14324         
14325         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
14326
14327         s/GtkModelSimple/GtkTreeModelSimple/g;
14328         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
14329         s/gtk_model_simple/gtk_tree_model_simple/g;
14330         s/gtkmodelsimple/gtktreemodelsimple/g;
14331
14332         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
14333
14334         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
14335         s/column_set_col_type/column_set_sizing/g;
14336
14337         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
14338         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
14339
14340         s/GtkCellRendererType/GtkCellRendererState/g;
14341         
14342         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
14343         (gtk_cell_renderer_toggle_class_init): change "state" property to
14344         "active", to match GtkToggleButton
14345         (gtk_cell_renderer_toggle_get_active): new function, bug
14346         40269
14347         (gtk_cell_renderer_toggle_set_active): new function
14348         (gtk_cell_renderer_toggle_set_property): route changes to toggle
14349         state through gtk_cell_renderer_set_active
14350
14351 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
14352
14353         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
14354         temporarily until they work again.  Brought up to date with
14355         changes in the model.
14356         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
14357         model.
14358
14359 2001-01-04  Havoc Pennington  <hp@redhat.com>
14360
14361         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
14362         equal to the line length, then position iterator before paragraph 
14363         separators. Fixes crash reported by Mikael Hermansson when
14364         pressing left arrow from the start of a line.   
14365
14366         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
14367         about byte indexes off the end
14368         (iter_set_from_char_offset): add g_error about char offsets
14369         off the end
14370
14371 2001-01-03  Havoc Pennington  <hp@redhat.com>
14372
14373         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
14374
14375         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
14376         of private functions; remove inclusion of private headers.
14377
14378         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
14379         function, so we don't need private functions in gtktextdisplay.c
14380
14381         * gtk/gtktextiterprivate.h: underscore-ification
14382
14383         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
14384         to instead say "only useful to implement widgets"
14385
14386         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
14387         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
14388         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
14389
14390         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
14391         This function was completely broken
14392
14393         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
14394
14395         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
14396
14397         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
14398
14399         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
14400
14401         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
14402
14403         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
14404
14405         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
14406         gtk_paint_layout
14407
14408         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
14409         gtk_paint_layout
14410
14411         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
14412         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
14413         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
14414         which were not implemented.     
14415
14416         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
14417         insert_pixbuf signal. Rename delete_text to delete_range since it
14418         also deletes pixbufs and child anchors. This almost closes bug
14419         40245 (still need to deal with child anchors)
14420
14421         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
14422         insert_pixbuf, change signal names as appropriate, change types of
14423         signals taking marks/tags to have the specific type, not just
14424         G_TYPE_OBJECT
14425         
14426         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
14427         closes bug 40051
14428
14429         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
14430         unnecessary remove_contents() call
14431         (gtk_option_menu_class_init): add a "changed" signal, closes
14432         bug 40039
14433         (gtk_option_menu_update_contents): emit "changed" if the 
14434         active menu item changes
14435
14436         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
14437         cast to GtkObject, reported by Jonas Borgstrom
14438         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
14439         we can't do stuff with side effects in finalize. Instead, spew a
14440         warning if the loader isn't closed.
14441
14442         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
14443         colormap in here, non-X ports probably need to sync to this change
14444
14445         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
14446         assertion that colormap != NULL, you can set the colormap to NULL
14447         if you like.
14448         
14449         * Makefile.am: remove gtk-config-2.0
14450
14451         * configure.in: Use pkg-config to locate GLib. Remove
14452         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
14453         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
14454         Use pkg-config to locate Pango. Output correct Pango libs to
14455         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
14456
14457         * Makefile.am (pkgconfig_DATA): install only target-specific pc
14458         files
14459         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
14460         X11 pc files
14461
14462         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
14463         unref from here
14464
14465 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
14466
14467         * configure.in:
14468         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
14469
14470 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
14471
14472         * gtk/gtktextlayout.c
14473         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
14474         variable when moving back onto a single line.
14475
14476 2001-01-01  Havoc Pennington  <hp@redhat.com>
14477
14478         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14479
14480         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14481
14482         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
14483         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
14484
14485 2001-01-01  Havoc Pennington  <hp@redhat.com>
14486
14487         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
14488
14489         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
14490         GtkTextAttributes
14491
14492         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
14493         #40246
14494         (gtk_text_attributes_copy_values): rename from 
14495         gtk_text_attributes_copy
14496         (gtk_text_attributes_copy): a more standard GTK copy function, 
14497         which returns a new object
14498
14499 2001-01-01  Havoc Pennington  <hp@redhat.com>
14500
14501         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
14502         
14503         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
14504         don't fill in tree_view->priv->selection, kind of an unexpected
14505         side effect
14506
14507         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
14508         gtkintl.h
14509         
14510         * gtk/gtkcellrenderer.c: Remove definition of _ and include
14511         gtkintl.h
14512         (gtk_cell_renderer_get_property): remove calls to g_value_init
14513
14514         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
14515         gtkintl.h
14516
14517         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
14518         and include gtkintl.h
14519         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
14520         property names
14521
14522         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
14523         GtkTreeSelection
14524         (_gtk_tree_selection_new_from_with_view): rename, return
14525         GtkTreeSelection
14526         (_gtk_tree_selection_set_tree_view): rename with uscore
14527         (gtk_tree_selection_get_selected): fill in the "model" out param
14528         first, so it gets filled in even if we return at the top of the 
14529         function
14530         (gtk_tree_selection_real_select_all): add a comment and an else{}
14531         to clarify this a bit
14532         (gtk_tree_selection_real_unselect_all): add the same else{}
14533
14534         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
14535         set_tree_view to have underscore prefixes, move them to the
14536         private header, fix return type of new_with_tree_view
14537         (struct _GtkTreeSelection): mark struct
14538         fields private  
14539
14540         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
14541         GtkTreeModelFlags, not a guint
14542         (gtk_tree_path_prev): return gboolean not gint
14543         (gtk_tree_path_up): return gboolean not gint
14544
14545         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
14546         return GtkTreeModelFlags, not a guint
14547
14548         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
14549         that child model is non-null before unrefing it
14550         (g_value_int_compare_func): make this a qsort compare func, not 
14551         a boolean predicate
14552
14553         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
14554         (add -umn to the end), and mark it unimplemented
14555         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
14556         I don't see what it's for - doesn't the model always sort itself?
14557         (gtk_tree_model_sort_set_compare): this had the wrong signature
14558
14559         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
14560         Fix the docs to say that it destructively replaces existing
14561         attributes (previously said that it added attributes).
14562         (gtk_tree_view_column_set_visible): canonicalize bool before
14563         equality testing. Also, check for realization before
14564         hiding/showing the tree_column->window; if this window could exist
14565         before realization, then it's busted and needs fixing, we can't 
14566         create GDK resources pre-realization. Also, remove
14567         superfluous queue_resize(), since set_size() does that for us.
14568         (gtk_tree_view_column_set_col_type): check realization before 
14569         using tree_column->window
14570
14571         * gtk/gtktreedatalist.c: fix filename in copyright notice
14572
14573 2000-12-31  Havoc Pennington  <hp@pobox.com>
14574
14575         * gtk/gtktextview.c: Rearrange all the
14576         scroll-while-dragging-or-selecting code to be different, not
14577         necessarily better. ;-)
14578         (gtk_text_view_scroll_to_mark): Change this
14579         function to take within_margin as a fraction instead of a pixel
14580         value, and to take alignment arguments (indicating where to align 
14581         the mark inside the visible area)
14582         
14583         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
14584         to GtkObject
14585
14586         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
14587         behavior so that offsets past the end of the line are not 
14588         allowed, and an offset equal to the line length moves the iterator
14589         to the next line
14590         (gtk_text_iter_set_line_index): make parallel change
14591         (gtk_text_iter_get_bytes_in_line): add this function
14592         
14593         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
14594         of byte indexes off the end of the line; byte index at the end of
14595         the line now returns FALSE and doesn't fill in the requested
14596         values, byte index past the end of the line is an error.  Also,
14597         don't allow -1 offset anymore, since its meaning is unclear.
14598
14599         This change exposes some bug in visual cursor motion, where we
14600         end up with a huge invalid byte index; needs fixing. Symptom of 
14601         bug is a crash when you hit up arrow.
14602         
14603         (_gtk_text_line_char_locate): match the change to byte_locate
14604
14605         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
14606         from start of line properly. fixes bug reported by Mikael
14607         Hermansson where backspace would delete all text before the
14608         cursor.
14609
14610 2000-12-30  Tor Lillqvist  <tml@iki.fi>
14611
14612         * gdk/win32/gdkwindow-win32.c
14613         (gdk_window_impl_win32_get_visible_region): New function, as in
14614         the X11 backend.
14615         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
14616         instead of duplicating the same code here.
14617
14618         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
14619         GDK_COLORMAP macro.
14620
14621         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
14622         destroy function.
14623         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
14624         access that.
14625
14626         * gtk/gtk.def: Update.
14627
14628         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
14629
14630 2000-12-30  Havoc Pennington  <hp@pobox.com>
14631
14632         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
14633         colormap on input only windows, to avoid special cases all over
14634         the code for these windows.
14635
14636 2000-12-26  Tor Lillqvist  <tml@iki.fi>
14637
14638         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
14639         we are on a palettized display ("PseudoColor" in X11), as the code
14640         for that doesn't work anyway, and never has.
14641
14642 2000-12-22  Alexander Larsson  <alexl@redhat.com>
14643
14644         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
14645         Don't use isprint() for chars > 255.
14646
14647 2000-12-21  Havoc Pennington  <hp@redhat.com>
14648
14649         * tests/testtreeview.c: more work
14650
14651 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14652
14653         * docs/README.linux-fb:
14654         Update the docs to the new pangoft2 way.
14655
14656 2000-12-21  Alexander Larsson  <alexl@redhat.com>
14657
14658         * configure.in:
14659         For linux-fb get the pangoft2 cflags and libs. This needs a recent
14660         pango version.
14661         Remove modules/linux-fb/Makefile.
14662
14663         * gdk/linux-fb/gdkdrawable-fb2.c:
14664         Render glyphs using freetype.
14665
14666         * gdk/linux-fb/gdkfb.h:
14667         Add new fb-specific functions needed for managing windows.
14668
14669         * gdk/linux-fb/gdkmain-fb.c:
14670         Remove gdk_font_init/fini() calls.
14671
14672         * gdk/linux-fb/gdkpango-fb.c:
14673         Remove old implementation. Use pangoft2 instead.
14674
14675         * gdk/linux-fb/gdkprivate-fb.h:
14676         Remove PangoFBFont and related stuff.
14677
14678         * gdk/linux-fb/gdkwindow-fb.c:
14679         Implement drawable->get_visible_region.
14680         Implement support for _gdk_window_set_child_handler () and
14681         _gdk_window_get_decorations().
14682
14683         * modules/Makefile.am:
14684         Remove linux-fb subdir.
14685
14686         * modules/linux-fb/*:
14687         Removed all.
14688         
14689 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
14690
14691         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14692         calls, as they are no longer needed.
14693
14694         * gtk/gtktreemodelsort.c: Fix up the comparison code.
14695         
14696         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
14697         figure out how to emit a signal on an interface.
14698
14699 2000-12-20  Havoc Pennington  <hp@redhat.com>
14700
14701         * tests: new directory to contain tests, gtk/test* should move
14702         here sometime (with appropriate on-cvs-server hackery)
14703
14704         * tests/testtreeview.c, tests/Makefile.am: a test
14705         
14706         * configure.in (AC_OUTPUT): add tests/Makefile
14707
14708         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14709         and "invisible_set" which were missing
14710
14711         * gtk/gtkrbtree.h: some cheesy indentation fix
14712         
14713 2000-12-20  Alexander Larsson  <alexl@redhat.com>
14714
14715         * gtk/gtkinvisible.c (gtk_invisible_realize):
14716         Attach the style to the window so that the style it is not
14717         leaked when unrealizing the window.
14718
14719 2000-12-18  Havoc Pennington  <hp@redhat.com>
14720
14721         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14722         begin/end user action where appropriate
14723         (gtk_text_view_commit_handler): add begin/end user action
14724
14725         * gtk/gtktextbuffer.c: add begin/end user action signals, and
14726         bracket interactive operations with begin/end user action pair.
14727         
14728         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14729         "interactive" arg from insert_text and delete_text signals.
14730         Add begin_user_action, end_user_action signals
14731         (gtk_text_buffer_begin_user_action): 
14732         (gtk_text_buffer_end_user_action): New functions to delimit 
14733         a user-visible action
14734
14735         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14736         signals.
14737         
14738 2000-12-18  Havoc Pennington  <hp@redhat.com>
14739
14740         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14741         was pretty non-working.
14742
14743         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14744         by passing the length to g_utf8_validate().
14745
14746 2000-12-16  Havoc Pennington  <hp@pobox.com>
14747
14748         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
14749         Port to GObject, can go back in gdk-pixbuf after setting up 
14750         a gdk-pixbuf-marshal.h header over there.
14751
14752         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14753         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14754         args
14755         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14756         set
14757         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14758         here, do it when we create the buttons later
14759         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
14760         (gtk_tree_view_map): paranoia checks that column->button is shown 
14761         and unmapped
14762         (gtk_tree_view_size_request): only request visible children.
14763         Move header size calculation in here, for cleanliness, and 
14764         to maintain invariants for child widgets if we eventually 
14765         let users set different children inside the buttons
14766         (gtk_tree_view_map_buttons): factor out code to map buttons,
14767         since it was being called several times
14768         (gtk_tree_view_size_allocate_buttons): move_resize the drag
14769         windows instead of just moving them; their height may change 
14770         if we allow random widgets in there, or the theme changes.
14771         (gtk_tree_view_size_allocate): move button size allocation 
14772         above emitting the scroll signals, to ensure a sane state when we
14773         hit user code
14774         (gtk_tree_view_button_release): remove queue_resize after
14775         tree_view_set_size(), set_size() will handle any resize queuing
14776         that's needed
14777         (gtk_tree_view_focus_in): just queue a draw, don't fool with
14778         draw_focus goo
14779         (gtk_tree_view_focus): use gtk_get_current_event() and
14780         gdk_event_get_state()
14781         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14782         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14783         semicolon
14784         (gtk_tree_view_create_button): show the button here
14785         (gtk_tree_view_button_clicked): actually emit the clicked signal
14786         on the column
14787         (_gtk_tree_view_set_size): return right away if the size is
14788         unchanged, as a cheesy optimization
14789         (gtk_tree_view_setup_model): rename set_model_realized to 
14790         setup_model to match the flag that indicates whether we've 
14791         called it
14792         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14793         exist, because set_scroll_adjustment does that and it shouldn't
14794         matter what order you call these in
14795         (gtk_tree_view_get_vadjustment): ditto
14796         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
14797         for paranoia
14798         (gtk_tree_view_set_headers_visible): call
14799         gtk_tree_view_map_buttons() instead of using cut-and-paste code
14800         (gtk_tree_view_append_column): clarify whether the return value
14801         is the count of columns before or after, and do the increment 
14802         separately from the return statement so you can tell from the code.
14803         (gtk_tree_view_remove_column): ditto
14804         (gtk_tree_view_insert_column): ditto
14805         (gtk_tree_view_get_column): remove g_return_if_fail for columns
14806         outside the existing range, the docs say that outside-range
14807         columns are allowed, so we handle them as documented. (Presumably
14808         this allows a nice loop with column != NULL as test.)
14809         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
14810         mean (left/right/center etc.).
14811         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14812         (gtk_tree_view_expand_row): add docs
14813         (gtk_tree_view_collapse_row): add docs
14814
14815         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14816         function to emit the clicked signal on a column
14817         
14818         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14819         state of an event
14820         (gdk_event_get_time): don't treat GDK_SCROLL 
14821         as a button event, remove default case from switch so gcc 
14822         will whine if we don't explicitly handle all event types
14823
14824         * gtk/gtktreeselection.h: added some FIXME 
14825         
14826         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14827         "columns" to "n_columns" and "column" to "columns" for clarity
14828
14829 2000-12-16  Havoc Pennington  <hp@pobox.com>
14830         
14831         * gtk/gtktextiter.c: General cleanup of the log attr iteration
14832         stuff. This should make e.g. the delete key work again in the
14833         text widget...
14834         (gtk_text_iter_forward_cursor_positions): handle negative count
14835         (gtk_text_iter_backward_cursor_positions): handle negative count
14836         (gtk_text_iter_forward_word_ends): handle negative count
14837         (gtk_text_iter_backward_word_starts): handle negative count
14838
14839         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14840         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
14841         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
14842         GObject. No doubt will cause breakage.
14843
14844         * demos/gtk-demo/textview.c: remove hacks around
14845         non-GObject-ification of the text objects
14846
14847         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
14848         the text tag
14849         
14850 2000-12-14  Havoc Pennington  <hp@pobox.com>
14851
14852         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14853         that we have Xrender
14854
14855 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
14856
14857         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14858         Add two virtualized functions gdk_drawable_get_clip_region - to
14859         get the clip region when drawing.
14860         
14861         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14862         use invalidate_region.
14863
14864         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14865         region.
14866
14867         * acconfig.h configure.in: Check for Xft. For now, assume
14868         that if Xft is found, Pango was compiled with Xft support
14869         as well.
14870
14871         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
14872         gdk_colormap_query_color().
14873         
14874         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14875         with Xft if appropriate.
14876
14877         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14878         a pangoxft context if we have XFT and the environment
14879         variable GD_USE_XFT is set.
14880         
14881         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14882         and also possibly an XftDraw structure.
14883
14884         * gtk/gtkfontsel.c: Handle the case where the font from the
14885         style doesn't match any of the fonts a bit better.
14886         
14887         * gtk/testgtk.c: Add tabs between directional segments for
14888         hebrew/arabic test. (Not really necessary, just a little
14889         prettier.)
14890
14891 2000-12-14  Havoc Pennington  <hp@redhat.com>
14892
14893         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14894         reading a file
14895
14896 2000-12-14  Havoc Pennington  <hp@redhat.com>
14897
14898         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14899         unused call to get_last_line()
14900
14901         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14902         here until boxed is working (and maybe after that - we should
14903         really not gratuitously break old code)
14904
14905         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14906         specific types for font_desc and tabs args, move them to
14907         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
14908         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14909
14910         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14911         use GTK_TYPE_POINTER for signal signatures as a hack-around
14912
14913         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14914         PangoTabArray
14915
14916         * gtk/gtktextlayout.c (line_display_iter_to_index): 
14917         make static
14918         (line_display_index_to_iter): make static
14919
14920         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14921         to marshal a string not a boxed
14922
14923         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14924
14925         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14926         since the UTF-8 isn't validated yet
14927
14928         * gtk/gtktextsegment.c (char_segment_check_func): don't require
14929         lines to end in '\n'
14930         
14931         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14932         forward_to_delimiters, and grapheme boundaries
14933         (gtk_text_view_delete_from_cursor): properly handle non-newline
14934         delimiters, and grapheme boundaries
14935
14936         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14937         to gtk_text_iter_forward_to_delimiters, and make it work properly
14938         if empty lines end with a character other than '\n'
14939
14940         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14941         position
14942
14943 2000-12-15  Tor Lillqvist  <tml@iki.fi>
14944
14945         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14946
14947         * gtk/gtk.def
14948         * gdk/gdk.def: Update.
14949
14950         * gdk/win32/gdkmain-win32.c
14951         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14952         gdkmain-win32.c here.
14953
14954         * gdk/win32/makefile.mingw.in (all): No need to make
14955         gdk-win32res.o here, the makefile one step up will call us to make
14956         it.
14957
14958         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14959         gdkkeys-win32.
14960
14961         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14962
14963         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14964         call to g_source_add().
14965
14966         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14967         leak. Thanks to Andreas Kemnade.
14968
14969 2000-12-13  Havoc Pennington  <hp@pobox.com>
14970
14971         * gtk/gtktextbtree.h: Remove double _ in front of some functions
14972
14973         * gtk/gtktext*.[hc]: update accordingly
14974         
14975 2000-12-13  Havoc Pennington  <hp@pobox.com>
14976
14977         * gtk/gtktextbtree.h: Put _ in front of every function in this 
14978         header file
14979
14980         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14981
14982 2000-12-13  Alex Larsson  <alexl@redhat.com>
14983
14984         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14985         Add support for ps2 intellimouse.
14986
14987         * gdkkeyboard-fb.c:
14988         Move shift-F1 repaint handling to xlate handler only.
14989         
14990         * docs/README.linux-fb:
14991         Add imps2 to docs.
14992         Document the new refresh keys.
14993         
14994 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
14995
14996         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14997
14998         * gtk/gtkbox.c: change property types from (u)long to (u)int for
14999         ::position and ::padding.
15000
15001         * gtk/gtkcontainer.c: make ::border_width an INT property.
15002
15003         * gtk/gtkpacker.c: make ::position an INT property.
15004
15005         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
15006         guard against NULL h/v scrollbars, since this is used at construction
15007         time.
15008
15009         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
15010         internal gtk_clist_constructor().
15011
15012         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
15013         gtk_ctree_constructor().
15014
15015         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
15016         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
15017
15018         * docs/reference/Makefile.am: fun stuff, disabled docs generation
15019         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
15020
15021         * gtk/gtkwidget.[hc]:
15022         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
15023         and gtk_widget_get().
15024         (gtk_widget_new): use g_object_new_valist().
15025         (gtk_widget_set): use g_object_set_valist().
15026
15027         * gtk/gtkobject.[hc]:
15028         removed gtk_object_arg_get_info(), gtk_object_getv(),
15029         gtk_object_query_args(), gtk_object_newv(),
15030         gtk_object_class_add_signals(),
15031         gtk_object_class_user_signal_new(),
15032         gtk_object_class_user_signal_newv(),
15033         gtk_object_arg_set(), gtk_object_arg_get(),
15034         gtk_object_args_collect(),
15035         gtk_object_default_construct(),
15036         gtk_object_constructed(),
15037         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
15038         removed nsignals, signals and n_args members from GtkObjectClass.
15039         (gtk_object_new): use g_object_new_valist().
15040         (gtk_object_set): use g_object_set_valist().
15041         (gtk_object_get): use g_object_get_valist().
15042         
15043         * gtk/gtkcompat.h: define gtk_object_default_construct().
15044         
15045         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
15046         g_object_new().
15047
15048         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
15049         fucntions, cleaned up method assignments (make sure your structures
15050         are setup properly before calling out). removed all GTK_CONSTRUCTED
15051         hacks ;)
15052
15053 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
15054
15055         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
15056         off-by-one error in checks. (Dave Lambert)
15057
15058 2000-12-12  Alexander Larsson  <alexl@redhat.com>
15059
15060         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
15061         Don't free gdk_fb_keyboard twice.
15062
15063 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
15064
15065         * gtk/testgtk.c:
15066         (create_tooltips): 
15067         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
15068         use GObject swapped_signal:: properties instead.
15069
15070         * gtk/gtkcellrenderertoggle.c: 
15071         * gtk/gtkcellrenderertextpixbuf.c: 
15072         * gtk/gtkcellrenderertext.c: 
15073         * gtk/gtkcellrendererpixbuf.c: 
15074         * gtk/gtkcellrenderer.c:
15075         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
15076         missing warnings for invalid property ids, install properties
15077         with g_object_class_install_property() now.
15078         
15079         * gtk/gtksignal.c:
15080         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
15081         
15082 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
15083         
15084         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
15085         to determine if a window is the focus widget within
15086         its toplevel.
15087
15088         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
15089         to be boolean.
15090
15091         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
15092         of the case where the container CAN_FOCUS to here instead
15093         of having it in each individual move-the-focus place.
15094
15095         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
15096         focusing to be geometric in a much more obvious sense. Arrowing
15097         around is still non-intuitive because it isn't perfect and
15098         because entries, etc, grab the arrow keys, but it at least
15099         usually will do what you expect now.
15100         
15101         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
15102         file.
15103
15104         * gtk/gtknotebook.c: Change tabs to be a single item in
15105         the focus chain. Make movement of focus on tabs with arrow
15106         keys wrap around.
15107         
15108         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
15109         CHECK_FIND_CHILD macro to give informative error messages
15110         instead of silent returns.
15111
15112         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
15113         flag since we handle GdkReturn on the tabs.
15114
15115         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
15116         windows rather than sending expose events directly.
15117
15118         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
15119         definition for GtkNotebookPage into .c file, since it is private.
15120
15121         * gtk/testgtk.c (create_notebook): Add option for 
15122         testing borderless notebook.
15123
15124         * gtk/testgtk.c (page_switch): Removed egregious poking
15125         around in GTK+ internals.
15126
15127         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
15128
15129         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
15130         properly through gtk_clist_focus. Make the title headers a
15131         single item in the tab-focus chain, and make left-right wrap
15132         around.
15133
15134         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
15135         focus method so that wrapping around works properly.
15136
15137         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
15138         that is handled for the widget now. 
15139
15140 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
15141
15142         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
15143         widgets as TOPLEVEL.
15144
15145         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
15146         TOPLEVEL widgets are containers.
15147
15148         * gtk/gtkinvisible.h: Remove useless include.
15149
15150 2000-12-11  Havoc Pennington  <hp@redhat.com>
15151
15152         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
15153         Handle chopping off \r\n and 0x2029 in addition to \n before
15154         passing to PangoLayout
15155
15156         * gtk/gtkimcontextsimple.c
15157         (gtk_im_context_simple_get_preedit_string): 
15158         return an empty string if no match is pending
15159
15160         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
15161         assertion that the returned preedit string was sane
15162
15163         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
15164         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
15165         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
15166
15167 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
15168
15169         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
15170         Fix up finalizer to chain to its parent.
15171
15172 2000-12-11  Alexander Larsson  <alexl@redhat.com>
15173
15174         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
15175         Clearified the difference between the keyboard types. Wrote a note
15176         about the magic sysrq key to get out of raw mode.
15177
15178 2000-12-09  James Henstridge  <james@daa.com.au>
15179
15180         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
15181         member to hold masks for detecting the start of a protocol packet.
15182         (mouse_devs): add packet start masks for ps2 and ms device types.
15183         Left the mask for fidmour blank, as I have no idea what it should
15184         be.
15185         (handle_mouse_io): skip bytes until we get to the start of a
15186         packet.  My Logitech mouse seems to be passing an extra NULL pad
15187         byte, and GPM does a similar thing here.
15188         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
15189         this is the ms mouse driver.
15190         (gdk_fb_mouse_ms_packet): fix up button handling, which was
15191         completely broken except for button1.  It was checking the wrong
15192         bit in the packet for the status of the right mouse button, and
15193         wrongly assuming right == button2 rather than 3.  I fixed that and
15194         also added support for middle button (button2).
15195
15196 2000-12-08  Havoc Pennington  <hp@redhat.com>
15197
15198         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
15199         that cause a segfault on text insertion
15200
15201         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
15202         warning
15203
15204         * gtk/gtktextiter.c (test_log_attrs): use
15205         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
15206
15207         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
15208         Get log attrs for a line, using a cache stored on the buffer
15209         
15210         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
15211         reported by Jeff Franks
15212
15213 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
15214
15215         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
15216         /dev/ttyS0 -> /dev/mouse
15217
15218 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
15219
15220         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
15221         Added dummy gdk_fontset_load.
15222
15223 2000-12-08  Alexander Larsson  <alexl@redhat.com>
15224
15225         * docs/README.linux-fb:
15226         * docs/Makefile.am:
15227         Initial GtkFB docs.
15228         
15229         * gdk/linux-fb/Makefile.am:
15230         Define GDK_DATA_PREFIX.
15231
15232         * gdk/linux-fb/gdkmain-fb.c:
15233         Fix typo.
15234         Change default display to /dev/fb0.
15235
15236         * gdk/linux-fb/gdkpango-fb.c:
15237         Add $(prefix)/share/fonts/ to font path.
15238         
15239 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
15240
15241         * gdk/linux-fb/gdkkeyboard-fb.c:
15242         New file containing the abstracted keyboard driver. Most code
15243         taken from gdkinput-ps2.c
15244
15245         * gdk/linux-fb/gdkinput-ps2.c:
15246         Removed file.
15247         
15248         * gdk/linux-fb/Makefile.am:
15249         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
15250
15251         * gdk/linux-fb/gdkcolor-fb.c:
15252         display->fb was renamed to display->fb_fd.
15253
15254         * gdk/linux-fb/gdkcursor-fb.c:
15255         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15256
15257         * gdk/linux-fb/gdkinput.c:
15258         Moved gdk_input_init here from gdkinput-ps2.c
15259
15260         * gdk/linux-fb/gdkmain-fb.c:
15261         display->fb was renamed to display->fb_fd.
15262         Now the tty and the console is opened here instead
15263         of in the keyboard driver. Also check GDK_VT to see what
15264         tty to open.
15265         Move gdk_beep () here from gdkinput-ps2.c
15266         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15267
15268         * gdk/linux-fb/gdkmouse-fb.c:
15269         Add header.
15270         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15271         Return correct keyboard modifiers.
15272         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
15273
15274         * gdk/linux-fb/gdkprivate-fb.h:
15275         Add tty and vt info to display.
15276         Add orignal modeinfo storage to display
15277         Update global functions
15278
15279         * gdk/linux-fb/gdkwindow-fb.c:
15280         Added gdk_fb_window_find_focus().
15281         gdk_mouse_get_info -> gdk_fb_mouse_get_info
15282
15283 2000-12-07  Havoc Pennington  <hp@pobox.com>
15284
15285         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
15286         function, noticed by Alex
15287
15288 2000-12-06  Elliot Lee  <sopwith@redhat.com>
15289
15290         * configure.in: Detect freetype properly
15291
15292         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
15293         above.
15294
15295 2000-12-06  Alexander Larsson  <alexl@redhat.com>
15296
15297         * gdk/linux-fb/Makefile.am:
15298         Add gdkmouse-fb.c
15299         
15300         * gdk/linux-fb/gdkmouse-fb.c:
15301         New file. Abstracted the mouse drivers a bit.
15302
15303         * gdk/linux-fb/gdkcursor-fb.c:
15304         The cursor hide/show functions was moved here from gdkinput-ps2.c.
15305
15306         * gdk/linux-fb/gdkinput-ps2.c:
15307         Removed old mouse handling code. Moved cursor handling code
15308         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
15309         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
15310         gdk_mouse_get_info.
15311
15312         * gdk/linux-fb/gdkmain-fb.c:
15313         Pass NULL pointers for x,y in gdk_mouse_get_info call.
15314
15315         * gdk/linux-fb/gdkprivate-fb.h:
15316         Removed public gdk_fb_find_common_ancestor, added and renamed
15317         functions for the new mouse handling code.
15318
15319         * gdk/linux-fb/gdkwindow-fb.c:
15320         Moved gdk_fb_window_send_crossing_events here. added global
15321         variable gdk_fb_window_containing_pointer. made
15322         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
15323         renamed to gdk_mouse_get_info.
15324
15325 2000-12-06  Alexander Larsson  <alexl@redhat.com>
15326
15327         * gdk/linux-fb/gdkevents-fb.c:
15328         Update to match latest gmain/gsource changes.
15329
15330         * gdk/linux-fb/gdkinput-ps2.c:
15331         Bogus gdk_keymap_get_entries_for_keycode implementation so that
15332         it links. Will be implemented later.
15333
15334 2000-12-03  Havoc Pennington  <hp@pobox.com>
15335
15336         * gdk/Makefile.am: add gdkkeys.[hc]
15337
15338         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
15339         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
15340
15341         * acconfig.h, configure.in: add checks and command line options
15342         for XKB
15343
15344         * gdk/x11/gdkkeys-x11.c: Implement the above functions
15345         
15346         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
15347         and group in the key event
15348
15349         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
15350         field with the low-level hardware key code, and a group
15351         field with the keyboard group
15352
15353         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
15354         and declare a couple globals used for keymap handling
15355         
15356         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
15357         hold down Shift-Control and type a hex number to get a Unicode 
15358         character corresponding to the hex number
15359         (gtk_im_context_simple_get_preedit_string): Fix cursor position
15360         (return bytes not chars)
15361
15362 2000-12-05  Elliot Lee  <sopwith@redhat.com>
15363
15364         * gdk/gdkcolor.h: Make GdkColor specify element sizes
15365         to avoid waste on 64-bit platforms.
15366
15367 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
15368
15369         * INSTALL: Fix link to PNG home, remove reference
15370         to fribidi.
15371
15372         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
15373         
15374         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
15375         tested.)
15376
15377         * gtk/gtkcheckmenuitem.c: Permanently turn on
15378         always_show_toggle.
15379
15380         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
15381         be NULL. (Vladimir Klebanov, #26545)
15382
15383         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
15384         some signed/unsigned comparison problems. (#6510,
15385         David Kaelbling)
15386
15387         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
15388         return type to boolean (Oskar Liljeblad, #18648)
15389
15390 2000-12-05  Alexander Larsson  <alexl@redhat.com>
15391
15392         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
15393         Remove bogus colormap setting.
15394
15395 2000-12-05  Alexander Larsson  <alexl@redhat.com>
15396
15397         * gdk/linux-fb/gdkcolor-fb.c:
15398         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
15399
15400         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
15401         Must set colormap.
15402         
15403 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
15404
15405         * docs/tutorial/gtk-tut.sgml: DND updates
15406
15407 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
15408
15409         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15410         Remove old debug g_warning().
15411         (gdk_fb_draw_drawable): The src argument can be either a wrapper
15412         or an implementation, just pass the implementation to draw_drawable_2.
15413         
15414         * gdk/linux-fb/gdkprivate-fb.h:
15415         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
15416
15417         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15418         clear and invalidate area when window is destroyed.
15419         (send_map_events): Remove old commented out code.
15420
15421 2000-12-05  Alexander Larsson  <alexl@redhat.com>
15422
15423         * gdk/linux-fb/gdkpango-fb.c:
15424         Use italic instead of oblique in font aliases.
15425         
15426         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
15427         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
15428         other unsupported functions.
15429
15430 2000-12-04  Havoc Pennington  <hp@redhat.com>
15431
15432         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
15433
15434         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
15435
15436         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
15437
15438         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
15439         hack to avoid infinite loops (synthetic expose event) - 
15440         Owen has more appropriate fixes in a branch he'll check in later.
15441
15442         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
15443         separator, CR, and CRLF as line ends
15444
15445         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
15446         into lines using pango_find_paragraph_boundary(); other bits of
15447         the widget are still going to be broken if the boundary isn't '\n'
15448         though
15449
15450 2000-12-04  Alexander Larsson  <alexl@redhat.com>
15451
15452         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
15453         multiply.
15454
15455         * gdk/linux-fb/gdkpango-fb.c:
15456         Copied some 26.6 scaling macros from pango to clean up the rounding.
15457         (pango_fb_font_get_glyph_info): Correct sign on x value.
15458
15459         * gdk/linux-fb/gdkprivate-fb.h:
15460         Removed unreferenced external functions.
15461
15462         * modules/linux-fb/Makefile.am: Use ` instead of '.
15463
15464         * modules/linux-fb/basic.c:
15465         Remove dead code. In particular the dummy lang engine which broke all
15466         pango layouts in GtkFB. Don't include tables-big.i anymore.
15467
15468         * modules/linux-fb/tables-big.i:
15469         Upgrade to latest version from pango. Left for reference, basic_ranges
15470         moved to basic.c.
15471         
15472 2000-12-04  Havoc Pennington  <hp@redhat.com>
15473
15474         Fix bugs Alex found:
15475         
15476         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
15477         to "draw"
15478
15479         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
15480
15481         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
15482
15483         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
15484         implementation in here, apparently the expose() implementation was
15485         dead code.
15486
15487 2000-12-04  Alexander Larsson  <alexl@redhat.com>
15488
15489         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15490         Return positive descent.
15491
15492 2000-12-02  Havoc Pennington  <hp@pobox.com>
15493
15494         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
15495         method and signal
15496         
15497         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
15498         calls gdk_window_process_updates() to push the exposes through
15499         (gtk_widget_class_init): No more draw signal, no
15500         gtk_widget_real_draw()  
15501         
15502         * gtk/gtkbin.c (gtk_bin_draw): remove
15503
15504         * gtk/gtkbox.c (gtk_box_draw): remove
15505
15506         * gtk/gtkbutton.c (gtk_button_draw): remove
15507
15508         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
15509
15510         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
15511
15512         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
15513
15514         * gtk/gtkclist.c (gtk_clist_draw): remove
15515
15516         * gtk/gtkentry.c (gtk_entry_draw): remove
15517
15518         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
15519
15520         * gtk/gtkfixed.c (gtk_fixed_draw): remove
15521
15522         * gtk/gtkframe.c (gtk_frame_draw): remove
15523
15524         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
15525
15526         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
15527
15528         * gtk/gtklayout.c (gtk_layout_draw): remove
15529
15530         * gtk/gtklist.c (gtk_list_draw): remove
15531
15532         * gtk/gtklistitem.c (gtk_list_item_draw): remove
15533
15534         * gtk/gtkmenu.c (gtk_menu_draw): remove
15535
15536         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
15537
15538         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
15539
15540         * gtk/gtknotebook.c (gtk_notebook_draw): remove
15541
15542         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
15543
15544         * gtk/gtkpacker.c (gtk_packer_draw): remove
15545
15546         * gtk/gtkrange.c (gtk_range_draw): remove
15547
15548         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
15549
15550         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
15551
15552         * gtk/gtktable.c (gtk_table_draw): remove
15553
15554         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
15555
15556         * gtk/gtktext.c (gtk_text_draw): remove
15557
15558         * gtk/gtktextview.c (gtk_text_view_draw): remove
15559
15560         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
15561
15562         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
15563
15564         * gtk/gtktree.c (gtk_tree_draw): remove
15565
15566         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
15567
15568         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
15569
15570         * gtk/gtkviewport.c (gtk_viewport_draw): remove
15571
15572         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
15573
15574         * gtk/gtkvscale.c (gtk_vscale_draw): remove
15575
15576         * gtk/gtkwindow.c (gtk_window_draw): remove
15577
15578 2000-20-01  Anders Carlsson  <andersca@gnu.org>
15579
15580         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
15581         a GtkToggleButton is both insensitive and active, it was being
15582         drawn by the GtkButton draw handler which doesn't check the
15583         state. Now it's calling gtk_toggle_button_paint instead.
15584         
15585 2000-12-01  Havoc Pennington  <hp@redhat.com>
15586
15587         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
15588         dangling pointers to the appearance attributes from the 
15589         line display
15590
15591         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
15592         width/height to mean "full width/height of drawable"
15593
15594         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
15595         click to select word/line
15596         
15597         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
15598         when getting log attrs. Get a slice, so that pixmaps and stuff
15599         are properly handled.
15600
15601         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
15602         paste into the selection (replaces selection now, previously
15603         crashed or added to selection). Reveals longstanding btree bug -
15604         select multiple lines, middle-click on the selection, boom. This
15605         isn't related to my changes though.
15606
15607         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
15608         PangoLogAttrs changes
15609         (gtk_entry_move_backward_word): ditto
15610
15611         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
15612         functions return bool whether the iter moved onto a
15613         dereferenceable position.
15614  
15615         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
15616         functions for motion in terms of display lines.
15617
15618         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
15619         get the buffer a mark is inside
15620         
15621 2000-12-01  Alexander Larsson  <alexl@redhat.com>
15622
15623         * gdk/linux-fb/Makefile.am:
15624         * modules/linux-fb/Makefile.am:
15625         Freetype 2 final uses freetype-config
15626
15627         * gdk/linux-fb/gdkpango-fb.c:
15628         Upgrade to use Freetype 2 final.
15629         More flexible support for font aliases, this also fixes a bug with
15630         GtkFontSelector, as the aliases must be visible in the font/family list,
15631         or GtkFontSelector reads uninitialized memory.
15632
15633 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
15634
15635         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
15636         XGetIMValues to properly terminate variable argument list, and do
15637         NULL return check for ic_values and xim_styles.
15638
15639         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
15640         Restore preedit state after XmbResetIC().
15641         
15642         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
15643         XvaCreateNestedList() should take XvaNestedList, but not
15644         XvaNestedList*.
15645
15646         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
15647         preedit_draw_callback, preedit_caret_callback): Match
15648         "preedit-changed" signal name to "preedit_changed" to be
15649         consistent to the spec.
15650
15651         * gtk/gtkimcontextsimple.c (check_table):
15652         Match "preedit-changed" to "preedit_changed" to be consistent
15653         to the spec.
15654
15655 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
15656
15657         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15658         gc->clip_region == NULL>
15659
15660 2000-11-30  Tor Lillqvist  <tml@iki.fi>
15661
15662         Changes by Hans Breuer:
15663         
15664         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15665         Dont't use negative width and height as max_hints. This fixes
15666         Owen's recent testgtk changes for win32.
15667
15668         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15669         gdk_win32_hdc_release): These are exported and may be called with
15670         other drawable types than our GdkDrawableImplWin32 (?).
15671
15672         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15673         so always #define USE_BACKING_STORE.
15674
15675         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15676         of printf for debugging output.
15677
15678         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15679         
15680         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15681
15682         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15683         declaration.
15684
15685         * gtk/gtktexttypes.h: Ditto.
15686
15687         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15688         (GDK_VoidSymbol) also if in case of arg check failure.
15689
15690         * gtk/gtkimcontextsimple.c
15691         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15692         position to the pointer, but to the variable it points to.
15693
15694         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15695
15696         * gtk/gtk.def: Updates.
15697
15698 2000-11-29  Elliot Lee  <sopwith@redhat.com>
15699
15700         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15701         GTK_TYPE_TREE_MODEL.
15702
15703 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15704
15705         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15706         Set the size of the font from the description.
15707         (gdk_text_width): Gross hack that calculates the width
15708         of text by text_length * size/2. This is necessary because
15709         GtkLabel does some ugly gtk_string_width call to calculate
15710         an good size.
15711         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15712
15713 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
15714
15715         * docs/tutorial/gtk-tut.sgml: DND updates
15716
15717 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15718
15719         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15720         If you pass width or height == 0 to gdk_window_clear_area they
15721         should be calculated from the window size.
15722
15723 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15724
15725         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15726         a grab, but no grab-cursor, use the cursor from the grabbed
15727         window. (gdk_fb_window_send_crossing_events): Send normal
15728         enter/leave notifications if grab and owner_events == TRUE.
15729
15730 2000-11-29  Alexander Larsson  <alexl@redhat.com>
15731
15732         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15733         Do implicit button grabs, even if the window doesn't
15734         want the event.
15735         (gdk_fb_window_send_crossing_events): If there is a
15736         grab, only the grabbed window gets normal enter/leave
15737         notifications. On ungrab go from grabbed window to current.
15738         Don't send any notification to b when propagating from c -> b.
15739         If setting a grab on window, don't set prev_window.
15740         (handle_mouse_input): Send enter/leave events to the window the
15741         mouse is over, not the grabbed one.
15742         
15743 2000-11-28  Elliot Lee  <sopwith@redhat.com>
15744
15745         * gdk/gdkregion-generic.c: Zap warning.
15746         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15747         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15748
15749 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
15750
15751         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15752         The cursor should be hidden if it is part of either the
15753         source or destination region. Not only if it is in both.
15754         (gdk_window_set_transient_for): Silence warnings.
15755
15756 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15757
15758         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15759         The default mode in X is Pie Arcs, therefore that is
15760         what Gtk+ uses.
15761
15762 2000-11-28  Alexander Larsson  <alexl@redhat.com>
15763
15764         * gdk/linux-fb/gdkinput-ps2.c:
15765         Implement correct EnterNotify/LeaveNotify:
15766         (gdk_fb_window_send_crossing_events): New function that sends
15767         all GdkCrossingEvents from the last mouse-window to the specified
15768         destination.
15769         (gdk_fb_window_visibility_crossing): Removed function.
15770         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15771         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15772         instead of gdk_window_get_pointer() for better readability.
15773
15774         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15775         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15776
15777         * gdk/linux-fb/gdkprivate-fb.h:
15778         removed gdk_fb_window_visibility_crossing, added
15779         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15780
15781         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15782         New function that finds the least common ancestor of two windows.
15783         (gdk_window_show, gdk_window_hide):
15784         Use gdk_fb_window_send_crossing_events.
15785         (gdk_fb_window_move_resize): Send configure events to toplevel
15786         windows. Use gdk_fb_window_send_crossing_events.
15787
15788 2000-11-27  Havoc Pennington  <hp@redhat.com>
15789
15790         * gtk/gtkprivate.h (enum): Remove a trailing comma
15791
15792 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
15793
15794         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15795         the "changed" callback of the adjustment.  We need to redraw the
15796         spin button's arrows when the adjustment's range changes.
15797         (adjustment_changed_cb): Draw the arrows.
15798         (gtk_spin_button_value_changed): Draw the arrows.
15799
15800 2000-11-23  Alexander Larsson  <alexl@redhat.com>
15801
15802         * gdk/linux-fb/gdkselection-fb.c:
15803         Initial selection implementation.
15804
15805         * gtk/gtkselection.c:
15806         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15807         requestor in gtk_selection_request.
15808         
15809         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15810         Added gdk_selection_property atom.
15811
15812         * gdk/linux-fb/gdkprivate-fb.h:
15813         Export _gdk_selection_window_destroyed.
15814         Removed mask_off_x/y from GdkCursorPrivateFB.
15815         Removed hbearing, added top, left to PangoFBGlyphInfo.
15816
15817         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15818         Call _gdk_selection_window_destroyed
15819         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15820         the root window has been created.
15821         (static_dx_hack, static_dy_hack, compare_draw_rects,
15822         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15823         in region. They are already sorted. Instead just traverse them in
15824         reverse if draw_direction < 0.
15825         
15826         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15827         Double-clicks must be sent after the normal button_press.
15828         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15829         
15830         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15831         Pass _gdk_fb_screen_gc instead of NULL.
15832
15833         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15834         Initialize gdk_selection_property.
15835         (gdk_event_make): Remove unused code.
15836
15837         * gdk/linux-fb/gdkcursor-fb.c:
15838         Make the pixmap for the cursor the same size as the mask. Also remove
15839         the mask_off_x/y fields in GdkCursorPrivateFB and combine
15840         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15841         Now the whole cursor is visible.
15842
15843         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15844         Fix bug where xdest+height instead of ydest+height was used
15845         to calculate if the source and dest overlapped. This fixes the
15846         redraw bug when the main window in testgtk was scrolled when
15847         partially covered by a tall window.
15848         Copy rectangles in region in order depending on draw_direction.
15849         Also moved the draw_direction flipping of start_y and end_y into
15850         the gc functions, as this might not be what all of them want.
15851         (gdk_fb_draw_lines): Support dashed lines.
15852         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15853         so that the text is positioned correctly (was 1 pixel high).
15854
15855         gdk/linux-fb/gdkgc-fb.c:
15856         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15857         all lines were drawn a pixel to short. Also checked the default of
15858         the rest of the values, and they're the same as X now.
15859
15860         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15861         Clean up pixel positioning of the glyphs. Just use bgy->top and
15862         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15863         to all divisions to get correct rounding behaviour.
15864
15865         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15866         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15867         Moved start_y/end_y flip into draw_drawable implementations.
15868         Flip also x rendering when draw_direction < 0.
15869         Remove unneccesary multiply with draw_direction.
15870
15871 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
15872
15873         * docs/tutorial/gtk-tut.sgml:
15874           - get rid of gtk_toggle_button_toggled FUD
15875           - start DND section - needs work - based on:
15876                 http://wolfpack.twu.net/docs/gtkdnd/
15877
15878 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15879
15880         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15881         Correct calculation of font metrics. Now GtkEntrys have sane
15882         size.
15883
15884 2000-11-22  Alexander Larsson  <alexl@redhat.com>
15885
15886         * gdk/gdktypes.h:
15887         Add new type GdkSpan
15888         
15889         * docs/reference/gdk/gdk-sections.txt,
15890         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15891         gdk/gdkregion.h:
15892         Implement and document gdk_region_spans_intersect_foreach.
15893
15894         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15895         Add new file gdkrender-fb.c which contains all core
15896         rendering code.
15897         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15898         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15899         (optimized rectangle fillers).
15900
15901         * gdk/linux-fb/gdkdrawable-fb2.c:
15902         Move all rendering code to gdkrender-fb.c.
15903         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15904         Use the new span intersection functions in gdk_fb_fill_spans.
15905         gdk_fb_draw_rectangle() clips filled rectangles and calls
15906         gc->fill_rectangle with the result.
15907         gdk_fb_fill_spans() gets extra argument "sorted".
15908
15909         * gdk/linux-fb/gdkevents-fb.c:
15910         Remove unused includes and defines.
15911         New function gdk_fb_get_time() to get correct time for events.
15912
15913         * gdk/linux-fb/gdkinput-ps2.c:
15914         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15915         Make sure to set the time of all events.
15916
15917         * gdk/linux-fb/gdkmain-fb.c:
15918         Use gdk_fb_get_time ().
15919
15920         * gdk/linux-fb/gdkprivate-fb.h:
15921         New virtual GC calls: fill_span & fill_rectangle.
15922         Export gdk_fb_get_time().
15923         gdk_fb_fill_spans() gets extra argument "sorted".
15924
15925         * gdk/linux-fb/mi*.c:
15926         Use GdkSpan instead of GdkRectangle.
15927         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15928         from XFree 4 source)
15929         
15930 2000-11-22    <jrb@redhat.com>
15931
15932         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15933         reversing the order in an if statement will do.  Doing so managed
15934         to make the treemodelsort half work.  Other half will follow after
15935         I get the insert function fully fixed.
15936
15937 2000-11-21  Elliot Lee  <sopwith@redhat.com>
15938         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15939         more than 2 bits. Besides, I need to implement an evil hack. :)
15940
15941 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
15942
15943         * docs/tutorial/gtk-tut.sgml: minor corrections
15944
15945 2000-11-20  Jonathan Blandford <jrb@redhat.com>
15946         * gtk/gtktreemodelsort.h: Add convertion functions to let you
15947           convert to and from relative path's and iters.
15948
15949         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
15950           testing sorting functions a bit better.  Currently broken -- will
15951           fix in morning.
15952
15953 2000-11-20  Havoc Pennington  <hp@redhat.com>
15954
15955         * gtk/gtkwidget.c: Documented a bunch of functions in here
15956         (gtk_widget_realize): Warn if you try to realize
15957         a widget with no parent that isn't a toplevel
15958         (gtk_widget_intersect): return a gboolean
15959
15960 2000-11-20  Havoc Pennington  <hp@redhat.com>
15961
15962         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15963         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15964         scrolling to be implemented in GDK to finish. Also, right now
15965         we just size_allocate all children on every layout change,
15966         which is pretty lame. Test commented out of testtext.c, 
15967         until it works better.
15968
15969 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
15970
15971         * gdk/linux-fb/gdkdrawable-fb2.c:
15972         Removed unused arguments from gdk_fb_drawable_get_pixel().
15973
15974         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15975         Renamed fidur specific mouse packet data in MouseDevice to
15976         generic. Used it in ps2 mouse handling code to avoid blocking
15977         reads.
15978
15979 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
15980
15981         * demos/gtk-demo/main.c: Changed to have the list become
15982         non-italic when the demo window is destroyed through an external
15983         event (like a close button).  Doing so found three bugs in the
15984         widget.
15985
15986         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15987
15988         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15989         we actually set the cell.
15990
15991         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15992
15993         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15994         free a leaked path.  Thanks memprof.
15995
15996 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
15997
15998         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
15999         off-by-one error when destroying allocated segments
16000         on failure. (Elliot)
16001
16002 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
16003
16004         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
16005         memleaks found by Evan Martin.
16006
16007 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
16008
16009         * Released 1.3.2
16010         
16011         * NEWS: Updates for 1.3.2
16012
16013 2000-11-17  Tor Lillqvist  <tml@iki.fi>
16014
16015         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
16016         but in general for window system specific events.
16017
16018         * gtk/gtk.def
16019         * gtk/makefile.mingw.in
16020         * gtk/makefile.msc.in: Update.
16021         
16022         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
16023
16024 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
16025
16026         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
16027         distribute gtk.immodules.
16028
16029         * gtk/Makefile.am (install-data-local): Don't install the
16030         gtk.immodules file created for the uninstalled modules;
16031         instead run gtk-query-immodules after install
16032
16033 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
16034
16035         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
16036         -rpath to the right install location.
16037
16038         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
16039         -export-dynamic.
16040
16041         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
16042         properly.
16043
16044 2000-11-15  Havoc Pennington  <hp@pobox.com>
16045
16046         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
16047         patch from Mikael Hermansson to temporarily stop blinking while
16048         the user is using the keyboard to type or navigate. 
16049
16050         Also, when blinking, stay on for longer than we stay off. Also,
16051         return from start_cursor_blink if !cursor_visible, to save
16052         checking that flag all over the place before we call
16053         start_cursor_blink.
16054
16055 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
16056
16057         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
16058         only contain a "fontset" line, which is now ignored.
16059
16060         * gtk/gtkentry.c (gtk_entry_button_release): Make 
16061         double-click-to-select-word work.
16062         
16063 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
16064
16065         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
16066         Don't move back one char when we are actually at the end of the 
16067         paragraph.
16068
16069 2000-11-15  Robert Brady  <robert@suse.co.uk>
16070
16071         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
16072         'o' < 'p'.
16073         
16074         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
16075         bind_textdomain_codeset.
16076
16077         (gtk_init_check): Make the warning about translating default:LTR
16078         sterner.
16079         
16080 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
16081
16082         * **/Makefile.am : remove unecessary rules for win32-specific
16083         config-substituted targets. If you want these rules, use
16084         --enable-maintainer-mode (called automatically by autogen.sh).
16085         Stops a lot of unneccessary make-time warnings.
16086
16087         * gtk/gtktext{layout,display}.c: Factor in total width as
16088         well as screen when figuring alignment for word-wrap as well as
16089         no wrap; this is necessary to handle lines that cannot be wrapped
16090         at all.
16091
16092 2000-11-15  Havoc Pennington  <hp@redhat.com>
16093
16094         * gtk/testtext.c: Implement essential color cycling feature
16095
16096 2000-11-15  Havoc Pennington  <hp@redhat.com>
16097
16098         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
16099         when we invalidate the main window.
16100
16101         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
16102         GtkTextView will now invalidate the side windows for us when text
16103         changes.
16104
16105 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
16106
16107         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
16108         unconditionally, since we may need to update the horizontal
16109         scrollbars even if the height didn't change.
16110
16111         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
16112         the extra attrs, since some of them affect size.
16113
16114         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
16115         x_offset correctly.
16116
16117 2000-11-15  Havoc Pennington  <hp@redhat.com>
16118
16119         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
16120         don't move the first line out into the margin, instead move the
16121         whole paragraph in order to make space for the first line within 
16122         the margin
16123
16124 2000-11-15  Havoc Pennington  <hp@redhat.com>
16125
16126         * gtk/gtktextview.c (changed_handler): offset redraw rect by
16127         xoffset in addition to yoffset, so horizontal scrolling doesn't
16128         break redraws
16129
16130 2000-11-15  Havoc Pennington  <hp@redhat.com>
16131
16132         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
16133         from the cursor
16134         (render_layout_line): fix reversed test that caused weird
16135         underlines to get drawn
16136
16137 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
16138
16139         * gdk/linux-fb/gdkprivate-fb.h:
16140         Fix debug macros.
16141         
16142 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
16143
16144         * gdk/linux-fb/gdkprivate-fb.h:
16145         Added virtual functions set_pixel, get_color,
16146         fill_span and draw_drawable to the GC.
16147         Added global _gdk_fb_screen_gc to use instead of
16148         NULL when drawing to the screen.
16149         Added _gdk_fb_gc_calc_state() prototype.
16150
16151         * gdk/linux-fb/gdkgc-fb.c:
16152         Call _gdk_fb_gc_calc_state() on any gc state change.
16153
16154         * gdk/linux-fb/gdkglobals-fb.c:
16155         Add _gdk_fb_screen_gc
16156                 
16157         * gdk/linux-fb/gdkdrawable-fb2.c:
16158         _gdk_fb_gc_calc_state() calculates best functions
16159         for the GC state and depth.
16160         Moved bpp specialized code to separate functions.
16161         Added optimized 24 bpp AA draw_drawable.
16162
16163         * gdk/linux-fb/gdkevents-fb.c:
16164         Silence gcc warning.
16165
16166         * gdk/linux-fb/gdkimage-fb.c:
16167         Use _gdk_fb_screen_gc
16168
16169         * gdk/linux-fb/gdkwindow-fb.c:
16170         Init and use _gdk_fb_screen_gc
16171
16172         * gdk/linux-fb/mitypes.h:
16173         Remove unused types.
16174
16175 2000-11-14  Havoc Pennington  <hp@pobox.com>
16176
16177         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
16178         to pixels
16179
16180 2000-11-14  Havoc Pennington  <hp@pobox.com>
16181
16182         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
16183
16184         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
16185         unknown char, no real reason we were using a variable. 
16186         Remove gtk_text_unknown_char variable. Fix all the text widget
16187         files accordingly.
16188
16189         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
16190         since the Unicode spec seems to prefer that character for our
16191         purposes.
16192
16193 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
16194
16195         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
16196         value of g_getenv() isn't freeable, so g_strdup it.
16197
16198         * modules/input/inuktitut.c: Inuktitut input method.
16199
16200         * modules/input/Makefile.am: Build this.
16201         
16202 2000-11-14  Elliot Lee  <sopwith@redhat.com>
16203
16204         * gtk/Makefile.am: Install gtk.immodules, needed for operation
16205         of gtk programs.
16206
16207 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
16208
16209         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
16210         reversed > that was causing Home to go to end of previous line.
16211
16212         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
16213         modified-keypresses (leave for bindings.)
16214
16215         * modules/input/Makefile.am: Remove useless -export-dynamic
16216         from module LDFLAGS.
16217
16218 2000-11-14  Havoc Pennington  <hp@redhat.com>
16219
16220         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
16221         higher.
16222
16223         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
16224         account. Also, render rise, underline, background, etc. for
16225         pixbufs as well as text. Also, draw underlines one pixel higher.
16226
16227         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
16228         PangoAttribute for the rise, so it gets drawn properly. Also,
16229         add the GtkTextAppearance attribute for pixbuf/widget segments
16230         as well; we should go ahead and have rise, underline, background,
16231         stipple work for those
16232
16233         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
16234         Pango
16235
16236 2000-11-15  Tor Lillqvist  <tml@iki.fi>
16237
16238         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
16239
16240         * gtk/gtk.def: Update.
16241
16242         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
16243         included.
16244         (gtk_rc_get_im_module_file): Use run-time installation directory
16245         on Win32.
16246
16247         * gdk/win32/rc/gdk.rc: Remove.
16248         * gdk/win32/rc/gdk.rc.in: New file.
16249         * gdk/win32/rc/Makefile.am: New file
16250         * gdk/win32/Makefile.am: Corresponding changes.
16251
16252         * gtk/gtk.rc: Remove.
16253         * gtk/gtk-win32.rc.in: New file.
16254         * gtk/Makefile.am: Corresponding changes.
16255
16256         * configure.in: Corresponding changes.
16257
16258         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
16259         has a built gtkcompat.h. Developers using CVS code on Win32 can
16260         hand-edit it from gtkcompat.h.in.
16261
16262         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
16263         gtkcompat.h from gtkcompat.h.win32.
16264
16265 2000-11-14  Havoc Pennington  <hp@redhat.com>
16266
16267         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
16268         to default to GDK_ACTION_MOVE if the drag is within a single
16269         widget. Defaults to GDK_ACTION_COPY between widgets.
16270
16271 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
16272
16273         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
16274
16275         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
16276
16277         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
16278         srcdir != builddir
16279
16280         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
16281
16282         * configure.in (GTK_VERSION): Up to 1.3.2
16283
16284         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
16285         gtkimcontextxim.h
16286
16287         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
16288         missing doc comment.
16289
16290 2000-11-14  Alexander Larsson  <alexl@redhat.com>
16291
16292         * modules/linux-fb/basic.c:
16293         Use the glib iconv wrappers.
16294
16295 2000-11-13  Havoc Pennington  <hp@pobox.com>
16296
16297         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
16298         still more bugs.
16299
16300         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
16301         scroll the GdkWindows before realization.
16302
16303 2000-11-13  Havoc Pennington  <hp@redhat.com>
16304
16305         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
16306         where GC didn't always get updated properly
16307
16308         * demos/gtk-demo/textview.c (create_tags): Use subattributes
16309         of fonts instead of setting the entire font
16310
16311         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
16312         setting entire font
16313
16314         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
16315
16316         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
16317         a bunch of individually-settable font attributes. You can still 
16318         use the "font" and "font_desc" args, they just set all the font
16319         attributes at once.
16320
16321 2000-11-13 Elliot Lee <sopwith@redhat.com>
16322
16323         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
16324
16325 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
16326
16327         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
16328         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
16329
16330         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
16331         work better.
16332
16333 2000-11-13  Havoc Pennington  <hp@redhat.com>
16334
16335         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
16336         the module file.
16337
16338         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
16339         dest->language
16340
16341         * gtk/testtext.c: Test pixels above/below/inside paragraphs
16342         settings
16343
16344         * gtk/gtktextview.c: Implement object args and setters/getters for
16345         all the aspects of the GtkTextAttributes that are not set from
16346         GtkWidget attributes. This is spacing, justification, margins,
16347         etc.
16348
16349         (gtk_text_view_set_arg)
16350         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
16351         args
16352         (gtk_text_view_class_init): Add args for justify, left_margin,
16353         right_margin, indent, and tabs
16354         
16355
16356         * gtk/gtktextlayout.c (set_para_values): fix to display indent
16357         attribute properly
16358
16359         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
16360         replace with indent attribute
16361
16362         * gtk/gtktextlayout.c (set_para_values): multiply indent by
16363         PANGO_SCALE
16364
16365         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
16366         rearranging code to do that
16367         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
16368         i.e. don't subtract the top_margin first, just to keep
16369         all margin-futzing in one place.
16370
16371         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
16372
16373         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
16374         special case of last line, Pango now handles this itself.
16375         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
16376         Y coordinate
16377         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
16378         (find_display_line_above): wasn't moving the byte index as it
16379         iterated over lines, so always returned byte 0. Also, port to use
16380         PangoLayoutIter.
16381         (find_display_line_below): same problem as
16382         find_display_line_above. Also, port to use PangoLayoutIter.
16383
16384 2000-11-13  Alexander Larsson  <alexl@redhat.com>
16385
16386         * gdk/linux-fb/*.[ch]:
16387         Massive reindent to gtk+ standard. My hands hurt.
16388
16389         * gdk/linux-fb/gdkcolor-fb.c:
16390         Move GdkColorPrivateFB from inherited to windowing_data
16391
16392         * gdk/linux-fb/gdkcursor-fb.c:
16393         _gdk_cursor_new_from_pixmap made static
16394
16395         * gdk/linux-fb/gdkdnd-fb.c:
16396         GdkDragContextPrivate moved to windowing_data
16397
16398         * gdk/linux-fb/gdkdrawable-fb2.c:
16399         Removed endian.h, use glib endianness macros instead
16400         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
16401         and GDK_DRAWABLE_IMPL_FBDATA
16402
16403         * gdk/linux-fb/gdkfont-fb.c:
16404         Add empty gdk_font_load(). Needed for linking of Gtk+.
16405
16406         * gdk/linux-fb/gdkimage-fb.c:
16407         Removed endian.h, use glib endianness macros instead
16408         Moved GdkImagePrivateFB to windowing_data
16409         gdk_image_new_bitmap didn't always allocate enough
16410         memory.
16411
16412         * gdk/linux-fb/gdkinput-ps2.c:
16413         Added semi-working support for MS serial mice.
16414
16415         * gdk/linux-fb/gdkprivate-fb.h:
16416         s/GdkWindowPrivate/GdkWindowObject/
16417         Removed GdkWindowPrivate typedef
16418         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
16419         Removed GDK_DRAWABLE_P
16420         Move GdkColorPrivateFB from inherited to windowing_data
16421         Moved GdkImagePrivateFB to windowing_data
16422
16423         * gdk/linux-fb/gdkvisual-fb.c:
16424         Removed some unused debug code.
16425
16426         * gdk/linux-fb/gdkwindow-fb.c:
16427         Use stock cursors instead of including X headers.
16428         s/GdkWindowPrivate/GdkWindowObject/
16429
16430         * gdk/linux-fb/mitypes.h:
16431         Removed unused types.
16432
16433         * modules/linux-fb/basic.c:
16434         Use the pango fribidi wrappers.
16435
16436 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
16437
16438         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
16439         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
16440         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
16441         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
16442         GEqualFunc where applicable.
16443         
16444         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
16445         pango_font_description_equal as changed in pango.
16446         
16447         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
16448
16449         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
16450
16451         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
16452
16453         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
16454
16455         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
16456
16457         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
16458
16459         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
16460         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
16461
16462         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
16463         gtk_rc_styles_compare -> gtk_rc_styles_equal.
16464
16465 2000-11-12  Havoc Pennington  <hp@pobox.com>
16466
16467         * demos/gtk-demo/Makefile.am (democodedir): change demo install
16468         dir to datadir/gtk+-2.0/demo
16469
16470         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
16471         sorts of text widget and Pango font bugs. Urgh.
16472
16473         * demos/gtk-demo/Makefile.am (demos): Add textview.c
16474
16475         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
16476         tree that you should double click to see the demo. Fix 
16477         types of variables to reflect changed return values from 
16478         GtkTreeStore and GtkTreeViewColumn constructors.
16479
16480         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
16481         newly-created buffer to prepare for GObject semantics
16482
16483         * gtk/testtext.c: don't leak the buffer with GObject semantics
16484
16485         * gtk/testtextbuffer.c: ditto
16486         
16487 2000-11-12  Havoc Pennington  <hp@pobox.com>
16488
16489         Rename this testgtk to gtk-demo to avoid confusion, and 
16490         install it so people can use it as a supplement to 
16491         the documentation.
16492         
16493         * demos/gtk-demo: Moved from demos/testgtk
16494
16495         * demos/testgtk: Removed
16496
16497         * configure.in: make Makefile in gtk-demo
16498         
16499         * demos/gtk-demo/Makefile.am: Install sample source to 
16500         datadir/gtk-demo (maybe there's a better place?), and 
16501         rename the binary to gtk-demo
16502         
16503         * demos/gtk-demo/main.c (load_file): Load installed sample
16504         source if source isn't found in pwd.
16505
16506 2000-11-09  Havoc Pennington  <hp@pobox.com>
16507
16508         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
16509         argument to set the char displayed when visibility == FALSE
16510         (gtk_entry_create_layout): If !entry->visible, replace 
16511         all chars with the "invisible char"
16512
16513         * gtk/testgtk.c: Test the invisible_char deal
16514         
16515 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
16516
16517         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
16518         can't get a native font in the right encoding.
16519
16520 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
16521
16522         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
16523         respectively.
16524
16525 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
16526
16527         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
16528         Fix warning when moving between paragraphs.
16529
16530         * gtk/gtkentry.[ch]: Change move => move_cursor, 
16531         delete => delete_from_cursor, insert => insert_at_cursor
16532
16533 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
16534
16535         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
16536
16537         * modules/input/imthai-broken.c: A Thai input method for use if
16538         Thai keys are really generating Latin1 keysyms.
16539
16540         * modules/input/Makefile.am: Build these.
16541
16542 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
16543
16544         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
16545         g_filename_{to,from}_utf8 now takes an extra parameter.
16546
16547         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
16548         strftime into UTF-8.
16549
16550         (column_from_x, gtk_calendar_paint_day_names): Support RTL
16551         calendars.
16552
16553         (gtk_calendar_paint_day_names): Draw day names in the right 
16554         place.
16555         
16556 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
16557
16558         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
16559         problem with using result of g_get_charset() backwards -
16560         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
16561
16562         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
16563         negative min_width/height and max_width/height to
16564         mean "requisition"; this allows setting a window
16565         to be user-resizable in only one direction easily.
16566
16567         * gtk/testgtk.c (create_main_window): Remove hard-coded
16568         usize - set a default size in the vertical direction.
16569
16570 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
16571
16572         * gtk/gtkrange.c: Add some missing casts. Support 
16573         2 and 3 button clicks on the arrows to mean 
16574         "move by pages" and "jump to end". (Like gtkspinbutton)
16575
16576 2000-11-12 Hans Breuer <Hans@Breuer.Org>
16577
16578         * gdk/win32/makefile.msc : reflect build module changes
16579
16580         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
16581         from GdkPixmap*, cast implementation member instead.
16582
16583         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
16584         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
16585         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
16586         more Gdi functions return value checking. 
16587         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
16588         GdkImagePrivateWin32 *.
16589
16590         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
16591         menus useable again. Add #pragma message to keep reminded on this issue.
16592         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
16593         windows. This allows to enable backing store on Win32!
16594
16595         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
16596         in drawable is of impl type. Correct specific type checks appropriate.
16597  
16598         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
16599         GDK_WINDOW_DESTROYED before allocating new resources.
16600
16601         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
16602
16603         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
16604         (gdk_window_foreign_new) initialize parent handle.
16605         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
16606
16607         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
16608         Let the GDI invalidate the window on MoveWindow call to fix scrolling
16609         problems (e.g. main buttons in testgtk). 
16610
16611 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
16612
16613         * gtk/gtkentry.c (gtk_entry_key_press): Call 
16614         gtk_widget_activate for GDK_Return.
16615
16616         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
16617         of preedit cursor position.
16618
16619 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
16620
16621         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
16622         static.
16623
16624 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
16625
16626         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
16627         out support for multiple locales; that simple doesn't
16628         work reliably with current Xlib
16629
16630         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
16631         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
16632         Add support for positioning the cursor within the preedit string.
16633
16634 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
16635
16636         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
16637         at XIM input method module.
16638
16639         * gtk/gtktextview.c: Check for bindings after passing
16640         events to im context filter.
16641
16642 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
16643
16644         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
16645         empty attribute lists properly.
16646
16647 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
16648
16649         * gtk/queryimmodules.c (main): Return non-zero exit
16650         status if errors were encountered querying any
16651         modules.
16652
16653         * modules/input/Makefile.am (moduledir): remove
16654         leftover bin program target.
16655
16656         * docs/make-todo: Fix typo in error message.
16657
16658 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
16659
16660         * configure.in: Add modules/input/Makefile
16661
16662 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
16663
16664         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16665         don't include gtkthemes.h.
16666
16667         * gtk/testgtk.c gtk/testtext.c: Set environment variables
16668         to point
16669
16670         * gtk/Makefile.am: Add new .c and .h files, build 
16671         gtk-query-immodules and use it to create a gtk.immodules
16672         file for use of test programs.
16673
16674         * gtk/gtkpreview.c: remove extra blank line.
16675
16676 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
16677
16678         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
16679         Add the ability to add extra tables beyond the default
16680         one, and also the ability to have compose sequences 
16681         that are prefixes of other compose sequences. 
16682
16683         * gtk/gtkimcontextsimple.c: Export a preedit string which
16684         consists of possible candidates for keystrokes that have
16685         been entered but not yet committed.
16686
16687         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16688         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16689
16690         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
16691         Add a function to add input-method switching menu items
16692         to a menu.
16693
16694         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16695         when switching input methods.
16696
16697         * gtk/gtkimcontextsimple.[ch]: Change the format of
16698         the compose table to allow compose tables of different
16699         lengths / sequence.
16700
16701 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
16702
16703         * gtk/gtkimmodule.[ch]: Support routines for loading
16704         GtkIMContext implementations dynamically at runtime.
16705
16706         * modules/input/imcyrillic-translit.c: A sample input
16707         method (based on GtkIMContextSimple with an extra table),
16708         which demonstrates preedit strings and the module
16709         system for input modules
16710
16711         * gtk/queryimmodules.c: Program to query the available
16712         input modules and write the results into a file.
16713          
16714         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16715         extra config options "im_module_file" (cache file for
16716         input method modules), and "im_module_path" - path
16717         to look for modules when generating cache file.
16718
16719         This doesn't scale.
16720
16721 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
16722
16723         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
16724         generic code from gtkthemes into a new abstraction
16725         GtkModule which has the logic for implementing
16726         a loadable module which implements a number of 
16727         GObject types.
16728
16729 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
16730
16731         * gtk/gtkeditable.[ch]: Convert GtkEditable from
16732         a class into an interface  
16733         
16734         * gtk/gtkoldeditable.[ch]: Move the old editable
16735         implementation into here, so legacy widgets can
16736         still rely on the implemenation. GtkOldEditable
16737         exports GtkEditable. Make selection handling
16738         code use new text conversion functions (and
16739         handle UTF-8 as a side-effect). Use GtkClipboard
16740         for CLIPBOARD.
16741
16742         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16743         Adopt to match above changes.
16744
16745         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16746         avoid GtkOldEditable implementation. Restructure
16747         to reduce number of places that modify state directly.
16748         Move to GtkBindingSet. Display the preedit string.
16749         Queue recomputation of PangoLayout and scroll position
16750         to improve effiency of doing complex changes naively.
16751         Add a menu with cut/copy/paste and input method selection.
16752
16753 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
16754
16755         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16756         to set preedit string and attributes; display preedit string by
16757         inserting string and attributes at cursor when creating the
16758         GtkTextLineDisplay.
16759
16760         * gtk/gtktextlayout.c: Move all conversions between byte
16761         positions in PangoLayout and GtkTextIter into new functions
16762         line_display_iter_to_index/index_to_iter that properly
16763         handle the preedit string.
16764
16765         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16766         it to return const char * (eventually will end up
16767         as GCONST char *, most likely.)
16768
16769         * gtk/gtktextview.[ch]: Handle the preedit string, call
16770         gtk_im_context_reset() as necessary, add a menu to switch
16771         input methods.
16772         
16773         * gtk/gtktextlayout.[ch]: Remove useless
16774         gtk_text_layout_get_log_attrs() function.
16775
16776 2000-11-11  Tor Lillqvist  <tml@iki.fi>
16777
16778         * gdk/gdk.def
16779         * gtk/gtk.def: Update.
16780
16781         * gdk/win32/*.c: Add last argument to g_type_register_static()
16782         calls.
16783
16784         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16785
16786         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16787         generated by older wheel mouse drivers. Get the correct y
16788         coordinate from WM_MOUSEWHEEL messages.
16789
16790         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16791         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16792         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16793         Debugging functions.
16794
16795         * gdk/win32/gdkprivate-win32.h: Declare them.
16796
16797         * gdk/win32/gdkinput-win32.h: Add declaration for
16798         gdk_input_window_destroy().
16799
16800         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16801
16802 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
16803
16804         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16805         function to help handle keeping things in sync.
16806
16807 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
16808
16809         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16810         BOXED marshallers.
16811
16812         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16813         (gtk_list_store_class_init): use the new BOXED marshallers.
16814
16815         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16816         new_with_values to new_with_types.
16817         (gtk_tree_store_get_column_type): add this.
16818         (gtk_tree_store_class_init): use the new BOXED marshallers.
16819
16820         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16821         mirror some POINTER marshallers.
16822
16823 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
16824
16825         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16826         allow more interesting iterators.  Also, made the lifecycle of
16827         iterators more explicit.
16828
16829         * gtk/gtktreemodelsort.[ch]: New model for sorting.
16830
16831         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16832         types.
16833
16834 2000-11-09  Alexander Larsson  <alexl@redhat.com>
16835
16836         * demos/testgtk/menus.c:
16837         Changes to make the new testgtk compile after
16838         gtk_menu_append was removed.
16839
16840         * gdk/linux-fb/gdkdrawable-fb2.c
16841         (gdk_fb_get_depth, gdk_fb_get_visual,
16842         gdk_drawable_impl_fb_class_init): Implement
16843         these drawable functions. Now GtkImages work again.
16844
16845         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16846
16847         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16848         
16849         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16850         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16851         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16852         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16853
16854 2000-11-08  Havoc Pennington  <hp@pobox.com>
16855
16856         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16857         visible_set args, don't know where these had gone, I thought they
16858         used to be there
16859
16860         * gtk/testtext.c: Add a menu item to apply invisibility tag;
16861         now we can test the feature and see that it's totally broken.
16862
16863 2000-11-08  Havoc Pennington  <hp@pobox.com>
16864
16865         Make DND copy pixbufs and tags when source and target share a 
16866         tag table.
16867         
16868         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16869         in-process GTK_TEXT_BUFFER_CONTENTS target
16870         (gtk_text_view_drag_data_received): Paste from
16871         GTK_TEXT_BUFFER_CONTENTS if we receive it.
16872
16873 2000-11-08  Alexander Larsson  <alexl@redhat.com>
16874
16875         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16876         API changes.
16877
16878         * gtk/gtkmenu.c: Add support for scrolling menus.
16879         Remove gtk_menu_append/prepend/insert, these have been moved to
16880         gtkcompat.h as #defines.
16881
16882         * gtk/gtkcompat.h.in:
16883         Add compatibility #defines for gtk_menu_append/prepend/insert
16884
16885         * gtk/gtkmenu.h: Add data needed for scrolling menus.
16886         GtkMenuPositionFunc gets an extra argument push_in.
16887         gtk_menu_append/prepend/insert removed.
16888         
16889         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16890         positioning behaviour to fit to scrolling menus.
16891
16892         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16893         into menuitem->submeny. That is wrong, and broke torn
16894         off submenus of torn off menus, since they were unrealized
16895         when the first menu was unrealized.
16896
16897         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16898         gtk_menu_shell_select_item() since these need to be overridden in
16899         GtkMenu.
16900
16901         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16902         positioning behaviour to fit to scrolling menus.
16903         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16904         the current item so that it is prelighted when the menu pops up.
16905         This is a workaround to the fact that the menu doesn't get the
16906         initial enter event (due to grabs).
16907
16908         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16909         s/gtk_menu_append/gtk_menu_shell_append/
16910
16911         * gtk/gtknotebook.c:
16912         s/gtk_menu_insert/gtk_menu_shell_insert/
16913
16914         * gtk/testgtk.c (create_menu, create_menus):
16915         Create the first menu with 50 items so that menu scrolling
16916         can be tested.
16917         
16918         
16919         Patch from Jonathan Blandford  <jrb@redhat.com>
16920
16921         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16922         system to handle size requests.  First, we ask what the size of
16923         the toggle is.  Then, when allocating the size, we allocate the
16924         toggle_size first.  This way we can have multiple menu-item
16925         classes w/o needing a seperate class for each.
16926
16927         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16928         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16929
16930         * gtk/gtkcheckmenuitem.c
16931         (gtk_check_menu_item_toggle_size_request): New function to handle
16932         the toggle size-request.
16933
16934 2000-11-07  Havoc Pennington  <hp@redhat.com>
16935
16936         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16937         Half-ass somewhat fix this function, so that scrolling to the
16938         insertion point works. Pango hacking is in the future to really
16939         fix it.
16940
16941         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16942         length of data, no longer used.
16943
16944         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16945         method contents in here, get rid of destroy method
16946         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16947         that were backward. Remove debug spew.
16948         (cut_or_copy): Make the clipboard work with insert_range to
16949         preserve tags and pixbufs, not just the primary selection.
16950
16951 2000-11-07  Havoc Pennington  <hp@redhat.com>
16952
16953         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
16954         to gtk_text_mark_get_visible
16955
16956         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16957         bug that was generating an invalid iterator
16958
16959         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16960         ensure_char_offsets() in front of code placing the iter in an
16961         invalid state.
16962
16963         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16964         make override_location arg const
16965         (paste): Replace the selection if we paste into the 
16966         current selection
16967
16968         * gtk/gtkselection.h: Remove "GtkSelectioData"
16969         (struct _GtkSelectionData): move the definition here.
16970
16971         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16972         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16973
16974         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16975
16976         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16977         (gtk_text_buffer_insert_range_interactive): implement
16978         (gtk_text_buffer_get_tags): Remove, replaced by
16979         gtk_text_iter_get_tags()
16980
16981         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16982         limit parameter, to avoid infinite linear scan.
16983         (gtk_text_iter_backward_search): Add search limit
16984         (gtk_text_iter_forward_find_char): Add search limit
16985         (gtk_text_iter_backward_find_char): Add search limit
16986
16987 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
16988
16989         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16990         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16991         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16992         gdk/linux-fb/gdkwindow-fb.c:
16993         use g_object_new() instead of g_type_create_instance() which
16994         is a private function for fundamental type implementations.
16995
16996         * gdk/linux-fb/gdkinput-ps2.c:
16997         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16998         instead just store the current modifier state. Add a (somewhat broken)
16999         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
17000         Rename exported function gdk_input_ps2_get_mouseinfo to
17001         gdk_input_get_mouseinfo.
17002
17003         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
17004         gdk/linux-fb/gdkwindow-fb.c:
17005         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
17006         
17007
17008 2000-11-02  Havoc Pennington  <hp@redhat.com>
17009
17010         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
17011         use stock buttons. Should be 100% source compatible, appropriate
17012         filesel fields now point to dialog->vbox and dialog->action_area.
17013         On the bizarre side, dialog->action_area and filesel->action_area
17014         are not the same widget.
17015         (gtk_file_selection_init): Put some padding around the selection
17016         entry, so it isn't touching the GtkDialog separator.    
17017
17018         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
17019         use stock buttons, etc. Should also be source compatible.
17020         Set the dialog default title in _init not _new().
17021         
17022         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
17023         Use stock buttons; don't put a button box inside the existing
17024         dialog button box. Don't bother with push/pop colormap anymore.
17025
17026         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
17027         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
17028         for message dialog, and necessary for the font selection and color
17029         selection with help and apply buttons.
17030         
17031         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
17032         to the created button widget. Set GTK_CAN_DEFAULT on the button.
17033         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
17034         between buttons, put less padding around the action area.
17035         (gtk_dialog_run): Exit on unmap rather than on destroy. 
17036         This will also exit the loop if the widget is hidden.
17037         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
17038         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
17039         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
17040         special-case delete event.
17041
17042         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
17043         formatting
17044         
17045 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
17046
17047         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
17048         button to temporarily disable position recording in the
17049         "saved position" test.
17050
17051 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
17052
17053         * gtk/gtkthemes.c: added compat code that temporarily implements
17054         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
17055         going to be revamped by owen's upcoming GtkModule patches, but
17056         untill then people want gtk to build, right? ;)
17057
17058 2000-11-04  Havoc Pennington  <hp@pobox.com>
17059
17060         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
17061         list
17062
17063         * docs/Changes-2.0.txt: Add note about
17064         gtk_container_get_toplevels()
17065
17066         * gtk/gtktextview.h: formatting
17067         
17068         * gtk/gtktextview.c: don't start descriptions with "Returns",
17069         confuses gtk-doc
17070
17071 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
17072
17073         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
17074         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
17075
17076 2000-11-03  Havoc Pennington  <hp@redhat.com>
17077
17078         * gtk/gtktexttagtable.c: Docs
17079         (gtk_text_tag_table_size): return a signed int
17080
17081         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
17082         (gtk_text_tag_event): make the event_object a GObject
17083
17084         * gtk/gtktextview.c: Write API docs for all functions.
17085
17086         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
17087         for gtk_text_view_get_window_type() called on one of the private
17088         windows.
17089
17090         * gtk/gtktextview.c: Instead of accessing text_view->buffer
17091         directly, call get_buffer() which demand-creates a default
17092         buffer. So gtk_text_view_new() can be used to create a view with a
17093         default buffer in it, if you just want an empty text box users can
17094         put data in. Useful for GUI builders also.
17095
17096 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
17097
17098         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
17099         the charset encodign portion MUST be in lowercase.
17100         * gtk/gtkrc.az: added file for Azeri language
17101
17102 2000-11-03  Havoc Pennington  <hp@redhat.com>
17103
17104         Get widgets working on the btree/buffer side. Display of them 
17105         still doesn't work.
17106         
17107         * gtk/gtktextview.c: start implementing child widget stuff
17108
17109         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
17110
17111         * gtk/gtktextlayout.c: handle embedded widgets
17112
17113         * gtk/gtktextdisplay.c: handle embedded widgets
17114
17115         * gtk/gtktextchild.c: Implement all the child anchor goo
17116
17117         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
17118         function
17119
17120         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
17121         (insert_pixbuf_or_widget_segment): abstract out common portions of 
17122         creating a child anchor or a pixbuf segment.
17123         (gtk_text_btree_create_child_anchor): new function
17124         (gtk_text_btree_unregister_child_anchor): new function
17125
17126         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
17127         allocate_child signal on GtkTextLayout
17128
17129         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
17130         values
17131         (gtk_text_iter_get_child_anchor): new function
17132
17133         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
17134         default handler for the changed signal, which calls
17135         gtk_text_buffer_set_modified(), instead of just always emitting
17136         changed then calling set_modified() manually. I guess this is
17137         maybe more flexible. It seems logical.
17138
17139 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
17140
17141         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
17142         now.
17143
17144         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
17145
17146 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
17147
17148         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
17149         been marked static.
17150
17151 2000-11-02  Havoc Pennington  <hp@redhat.com>
17152
17153         * gtk/testgtk.c (create_labels): had a test backward
17154
17155         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
17156         fields, so the dest GC ends up with the correct clip origin, 
17157         etc. Fixes a bug where colored labels didn't redraw 
17158         properly.
17159
17160 2000-11-02  Alexander Larsson  <alexl@redhat.com>
17161
17162         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
17163         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
17164         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
17165         Add last argument to t_type_register_static call.
17166         
17167         * gdk/linux-fb/gdkdrawable-fb2.c:
17168         Add last argument to t_type_register_static call.
17169         export the get_image drawable virtual function.
17170
17171         * gdk/linux-fb/gdkimage-fb.c:
17172         Add last argument to t_type_register_static call.
17173         rename gtk_image_get to _gdk_fb_get_image and
17174         export it for use by gdkdrawable-fb2.
17175
17176         * gdk/linux-fb/gdkprivate-fb.h:
17177         export _gdk_fb_get_image.
17178
17179         * gdk/linux-fb/gdkselection-fb.c:
17180         Add new api call stubs.
17181
17182         * gtk/Makefile.am:
17183         Missing ( in linux-fb part.
17184
17185         * modules/linux-fb/Makefile.am:
17186         Must link with gdk_pixbuf or get unresolved symbol.
17187
17188 2000-11-01  Havoc Pennington  <hp@pobox.com>
17189
17190         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
17191         GTK_TYPE_TEXT_ITER and BOXED marshallers
17192
17193         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
17194
17195         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
17196         
17197         * gtk/gtk-boxed.defs: add GtkTextIter
17198
17199         * gtk/gtkmarshal.list: Add marshallers for text widget that 
17200         properly use OBJECT and BOXED
17201
17202 2000-11-01  Havoc Pennington  <hp@redhat.com>
17203
17204         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
17205
17206         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
17207         before returning it. 
17208         
17209 2000-11-01  Havoc Pennington  <hp@redhat.com>
17210
17211         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
17212         Clip the rectangle to be rendered to the drawable, since
17213         get_from_drawable() requires a region within the drawable
17214
17215 2000-11-01  Havoc Pennington  <hp@redhat.com>
17216
17217         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
17218         from coordinates.
17219
17220 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
17221
17222         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
17223         it isn't NULL.
17224
17225 2000-11-01  Havoc Pennington  <hp@pobox.com>
17226
17227         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
17228         on a label
17229         (gtk_label_finalize): unref the attr list if any.
17230
17231         * gtk/testgtk.c (create_get_image): close test on second click
17232         (make_message_dialog): close dialog if it exists
17233
17234         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
17235
17236         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
17237         gdk-pixbuf
17238
17239         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
17240         from Pango markup format
17241         (gtk_label_set_markup_with_accel): ditto but with accelerator
17242         parsing
17243
17244         * gtk/gtkimage.c (gtk_image_expose): reformatting.
17245
17246         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
17247         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
17248         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
17249         call gdk_window_get_origin().
17250
17251         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
17252         implement GDK_PIXBUF_ALPHA_FULL
17253         
17254 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
17255
17256         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
17257         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
17258         g_signal_handlers_disconnect_matched to block/unblock and disconnect
17259         multiple handlers respectively, instead of only treating the
17260         first handler found (bug reported by owen).
17261
17262 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
17263
17264         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
17265
17266         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
17267
17268         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
17269         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
17270         gtk/gtktreeviewcolumn.h: Fixed inline docs.
17271
17272         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
17273         widget.  Needs writing someday.
17274
17275         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
17276         the docs.
17277
17278 2000-10-30  Havoc Pennington  <hp@redhat.com>
17279
17280         * gtk/gtktextview.h, gtk/gtktextview.c:
17281         Rename delete_at_cursor delete_from_cursor, and 
17282         move to move_cursor.
17283
17284 2000-10-30  Havoc Pennington  <hp@redhat.com>
17285
17286         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
17287         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
17288         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
17289         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
17290         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
17291         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
17292         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
17293         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
17294         gtktexttypes.h, gtktextview.c, gtktextview.h:
17295
17296         Massive reindentation and reformatting. Arg alignment and comments
17297         still need fixing in various places.
17298
17299 2000-10-30  Havoc Pennington  <hp@redhat.com>
17300
17301         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
17302         to be named insert_at_cursor and delete_at_cursor so C++ can
17303         handle them.
17304
17305 2000-10-28  Tor Lillqvist  <tml@iki.fi>
17306
17307         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
17308         to get a double directory separator in case the home directory
17309         ends with one. This would cause trouble especially on Windows,
17310         where the path will be confused with the syntax for an an UNC
17311         (network share) path \\server\share\path.
17312         (gtk_rc_add_initial_default_files): Ditto.
17313
17314 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
17315
17316         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
17317
17318         * gtk/gtktextview.c: Use correct marshallers.
17319
17320 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
17321
17322         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
17323         use new iter stuff, and added all the appropriate signals et al.
17324
17325         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
17326         code is internal to gtk only.
17327
17328 2000-10-28  Tor Lillqvist  <tml@iki.fi>
17329
17330         * gtk/gtk.def
17331         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
17332         glib-genmarshal etc.
17333
17334 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
17335
17336         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
17337         parallel builds.
17338
17339 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
17340
17341         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
17342
17343 2000-10-27  Robert Brady  <robert@suse.co.uk>
17344
17345         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
17346         en_GB (British), ia (Interlingua).
17347
17348 2000-10-26  Havoc Pennington  <hp@redhat.com>
17349
17350         * gtk/gtktextiter.c (my_strrstr): fix constness warning
17351
17352         Fixed output of:
17353         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
17354         
17355         * gtk/gtktextsegment.c (char_segment_new): rename
17356         (_char_segment_new_from_two_strings): rename
17357         (_toggle_segment_new): rename
17358         
17359         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
17360         (make_clipboard_widget): make it static
17361         (text_get_func): static
17362         (text_clear_func): static
17363
17364         * gtk/gtkcolorsel.c (adjustment_changed): make this function
17365         static
17366         (hex_changed): make it static
17367         (hsv_changed): make it static
17368         (opacity_entry_changed): make it static
17369
17370         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
17371         (toggle_segment_check_func): rename with _gtk
17372
17373         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
17374         (_widget_segment_new): rename
17375         (_widget_segment_add): rename
17376         (_widget_segment_remove): rename
17377         (_widget_segment_ref): rename
17378         (_widget_segment_unref): rename
17379
17380         * gtk/gtktextmark.c (_mark_segment_new): Rename
17381         _gtk_mark_segment_new   
17382
17383 2000-10-26  Havoc Pennington  <hp@redhat.com>
17384
17385         * gtk/gtkmarshal.list: add new marshallers used by the text widget
17386         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
17387         types
17388
17389         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
17390         marshaller types
17391
17392         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
17393         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
17394         license on these files.
17395
17396         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
17397         work.
17398
17399         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
17400         runtime random number different for each tree, instead of 
17401         a constant I made up.
17402
17403 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
17404
17405         * gtk/Makefile.am: buncha cleanups, kludged build sources
17406         dependencies with a Makefile: oldest-source-stamp dependancy
17407         for the moment. automake is really fighting us here, with
17408         intentionally not allowing user-defined rules or dependancies
17409         prior to it's -include $(DEP_FILES) statement. sucks rocks!
17410
17411         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
17412         to public headers. tehy have a comment stating that they are
17413         "semi-public" aren't included by gtk.h and if enums popup there,
17414         they can be /*< skip >*/-ed.
17415
17416         * gtk/gtktextlayout.h: 
17417         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
17418         added LGPL... <SIGH>
17419
17420 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
17421
17422         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
17423         GtkTreeIter.  Added iterators everywhere.
17424
17425         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
17426
17427         * gtk/gtktreeviewselection.c: Changed to use the iterators.
17428
17429         * gtk/gtktreestore.c: Changed to use the iterators.
17430
17431         * gtk/gtkliststore.c: Commented out the code.  Will convert to
17432         iterators tomorrow.
17433
17434         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
17435         iterators tomorrow.
17436
17437         * gtk/treestoretest.c: Changed to use iterators.
17438
17439         * demos/testgtk/main.c: Moved to use the new iterator system.
17440
17441 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
17442
17443         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
17444         localization misbehaviour.
17445
17446         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
17447         a useless type without copy/free.
17448
17449         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
17450         of GTK_TYPE_CTREE_NODE.
17451
17452 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
17453
17454         * gtk/gtksignal.c:
17455         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
17456         applicable.
17457
17458         * gtk/gtk-boxed.defs (GtkSelectionData): specify
17459         gtk_selection_data_copy and gtk_selection_data_free
17460         do GtkSelectionData work as params in signals.
17461
17462 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
17463
17464         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
17465         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
17466         couldn't they at least give it a non-standard name?
17467         
17468         * gtk/gtktextlayout.c: arg! yet another implementation of
17469         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
17470
17471         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
17472         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
17473         home. now i know this _is_ a conspiracy.
17474
17475         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
17476         ::state-changed.
17477
17478         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
17479         (gtk_accel_group_create_add): marshaller signature fixups.
17480
17481         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
17482         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
17483
17484         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
17485         anymore.
17486
17487 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
17488
17489         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
17490         due to the signal system changes, it wouldn't build currently. to
17491         be fixed soon.
17492
17493         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
17494
17495         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
17496         so it needs gtk_marshal_VOID__ENUM() instead of
17497         gtk_marshal_NONE__UINT().
17498
17499         * gdk/gdk*.c: adapted type registration functions.
17500
17501         * gtk/gtkbindings.c:
17502         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
17503         gone.
17504
17505         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
17506
17507         * gtk/gtkobject.c:
17508         (gtk_object_destroy):
17509         (gtk_object_shutdown): fixed recursion guards. basically we have to
17510         catch the case where any of GObject.shutdown() or gtk_object_destroy()
17511         is called during ::destroy, and avoid recursion there.
17512
17513         * gtk/gtktypeutils.c:
17514         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
17515         boxed_copy/boxed_free. this needs a more general solution based on a
17516         publically installed code-generator utility.
17517
17518         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
17519         glib's gobject has support for that now.
17520         define GtkSignalMarshaller in terms of GSignalCMarshaller.
17521
17522 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
17523
17524         * gtk/gtksignal.[hc]:
17525         * gtk/gtkmarshal.[hc]:
17526         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
17527         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
17528         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
17529         care of that.
17530
17531         * *.c: marshaller name fixups.
17532
17533         * gtk/gtkmarshal.list: added a comment briefing the format.
17534
17535 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
17536
17537         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
17538         compatibility macros here now. more specifically, most of
17539         the API is preserved (yes, _most_, nonwithstanding the
17540         following exceptions listed, the API is stil lHUGE ;)
17541         things that got removed completely:
17542         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
17543         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
17544         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
17545         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
17546         gtk_signal_remove_emission_hook().
17547         non-functional functions variants:
17548         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
17549         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
17550         not supported anymore.
17551         (gtk_signal_compat_matched): new internal function to aid
17552         implementation of the compatibility macros, it  provides
17553         functionality to block/unblock/disconnect handlers based
17554         on func/data.
17555
17556         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
17557
17558         * *.c: adaptions to new type registration API signatures.
17559
17560 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
17561
17562         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
17563
17564 2000-10-25  Robert Brady  <robert@suse.co.uk>
17565
17566         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
17567         gdk_property_delete): If window == NULL, assume the root window.
17568         (restoring the behaviour that was in 1.2).
17569         
17570         * gtk/testtext.c (save_buffer): Allow creation of new files when
17571         saving.
17572
17573         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
17574         calls to read().
17575
17576 2000-10-25  Tor Lillqvist  <tml@iki.fi>
17577
17578         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
17579
17580         * gdk/win32/gdkdrawable-win32.c
17581         * gdk/win32/gdkimage-win32.c
17582         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
17583         X11 backend.
17584
17585         * gdk/win32/gdkcc-win32.c
17586         * gdk/win32/gdkcolor-win32.c
17587         * gdk/win32/gdkfont-win32.c
17588         * gdk/win32/gdkinput-win32.c
17589         * gdk/win32/gdkmain-win32.c
17590         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
17591
17592 2000-10-24  Havoc Pennington  <hp@redhat.com>
17593
17594         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
17595         it a static function
17596
17597         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
17598         redraw text when a tag is applied to it.
17599
17600         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
17601         (gtk_text_tag_affects_nonsize_appearance): private functions to
17602         see if a tag requires various kinds of redraw/layout to be queued
17603         up.
17604
17605         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
17606
17607         * gtk/testtext.c (fill_example_buffer): Put the cursor 
17608         at the start of the buffer, so search works by default
17609
17610         * gtk/gtktextiter.c (lines_match): init match_start always
17611
17612         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
17613         function, get iter at a line + a byte index
17614
17615         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
17616         to set byte position within a line
17617         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
17618
17619 2000-10-23  Havoc Pennington  <hp@redhat.com>
17620
17621         * gtk/testtext.c: Re-enable the "find" dialog
17622
17623         * gtk/testgtk.c: Add test for gdk_drawable_get_image
17624         
17625         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
17626         the arguments to gdk_draw_drawable were in the wrong order
17627         (gdk_window_paint_init_bg): This function was ignoring the
17628         init_region, instead of clipping to it, so the entire backing
17629         pixmap was cleared on every begin_paint()
17630         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
17631         was in here again, the loop kept using the same GtkWindowPaint
17632         over and over.
17633         (gdk_window_begin_paint_region): Fix a bug where we had two
17634         x_offset instead of x_offset and y_offset
17635
17636         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
17637         before we get the image.
17638         (gdk_draw_drawable): get the composite before we draw the drawable.
17639         (gdk_drawable_real_get_composite_drawable): default
17640         get_composite_drawable implementation that returns the drawable 
17641         itself
17642
17643         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
17644         get_composite_drawable virtual function
17645
17646         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
17647         list-walking bug
17648
17649         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
17650         make this work if the source drawable is a GdkDrawableImplX11
17651         instead of a public drawable type. This is really broken; the
17652         problem is that GdkDrawable needs a virtual method get_xid(), but
17653         of course that doesn't work in practice. Enter RTTI.
17654
17655         Also, improve mismatched depth message.
17656
17657         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
17658         GdkPixmap
17659
17660         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
17661         install _gdk_x11_get_image as our implementation of get_image
17662         
17663         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
17664         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
17665
17666         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
17667         gdk_drawable_get_image
17668
17669         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
17670
17671         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
17672         get_image
17673
17674         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
17675         trailing semicolon after for loop
17676
17677 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
17678
17679         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
17680         where font_desc for widget's context lagged widget's font_desc by
17681         one step.
17682
17683 2000-10-22  Tor Lillqvist  <tml@iki.fi>
17684
17685         * gdk/win32/gdkgc-win32.c
17686         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
17687
17688         * gtk/makefile.mingw.in
17689         * gtk/gtk.def: Updates.
17690
17691         * gtk/testgtk.c: sleep() is called _sleep in MS's C
17692         library.
17693
17694         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
17695
17696         * gtk/makefile.msc: Remove
17697
17698         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
17699
17700         * gtk/Makefile.am: Add it.
17701
17702         * configure.in: Generate it.
17703
17704         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
17705         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
17706         something even if not implemented, to satisfy picky MSVC.
17707
17708         Patches by Hans Breuer:
17709         
17710         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
17711         SetBkMode() and SetTextAlign() before calling
17712         pango_win32_render().
17713
17714         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
17715         Set hcliprgn to NULL after destroying it.
17716         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
17717
17718         * gdk/win32/gdkgeometry-win32.c
17719         (_gdk_windowing_window_queue_antiexpose): More effective
17720         implementation.
17721
17722         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
17723         depth as default, not the visual's.
17724
17725         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
17726         against empty title.
17727
17728         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
17729         IMAGE_PRIVATE_DATA.
17730
17731         * gdk/win32/gdkimage-win32.c: Use it.
17732
17733 2000-10-22  Robert Brady  <robert@suse.co.uk>
17734
17735         * configure.in: Check for bind_textdomain_codeset
17736
17737         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
17738         present, make use of it.
17739
17740         Add a translatable string "default:LTR" which, if translated
17741         to "default:RTL", will cause the default direction to be
17742         Right-to-Left.
17743
17744         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
17745         direction if marked as flippable.
17746
17747         * gtk/gtkhscale.c: Mark widget as flippable.
17748         
17749 2000-10-04  Havoc Pennington  <hp@redhat.com>
17750
17751         * gtk/testgtk.c (create_buttons): create some stock buttons
17752         with the default accel group
17753         (create_image): test some new GtkImage features
17754         (make_message_dialog): test GtkMessageDialog
17755         (create_modal_window): fix someone's bizzarro indentation
17756
17757         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
17758         GTK_WIN_POS_CENTER_ON_PARENT. 
17759         Add "destroy with parent" setting, which means the window goes
17760         away with its transient parent.
17761         (gtk_window_get_default_accel_group): get the default accel group
17762         for the window.
17763         (gtk_window_set_destroy_with_parent): set/unset destroy with
17764         parent flag
17765         (gtk_window_read_rcfiles): invalidate icon set caches
17766         after reloading rcfiles 
17767
17768         * gtk/gtkenums.h (GtkWindowPosition): add
17769         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
17770         on its parent window when the dialog is mapped for the first time.
17771
17772         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
17773         a simple message dialog class
17774         
17775         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
17776         handler to emit response signal, and maybe later it would
17777         honor a hide_on_delete flag - though that isn't there yet.
17778         Set border width on the vbox to 2, so we get some padding.      
17779         Use a button box for the action area.
17780         (gtk_dialog_key_press): synthesize a delete event if Esc
17781         is pressed and the GtkWidget key press handler didn't 
17782         handle the escape key.
17783         (gtk_dialog_new_with_buttons): new function creates a dialog
17784         with some default buttons in it.
17785         (gtk_dialog_add_action_widget): add an activatable widget
17786         as a button in the dialog - you can also add a non-activatable
17787         widget by accessing the action area directly.
17788         (gtk_dialog_add_button): add a simple button - stock ID or 
17789         label - to the action area
17790         (gtk_dialog_response): emit response signal
17791         (gtk_dialog_run): block waiting for the dialog, return 
17792         the response. Override normal delete_event behavior, so that 
17793         delete_event does nothing inside gtk_dialog_run().
17794         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
17795         emitted when an action widget is clicked or the dialog gets
17796         delete_event
17797
17798         * gtk/gtk.h: add gtkmessagedialog.h
17799
17800         * gtk/Makefile.am: add gtkmessagedialog.[hc]
17801
17802 2000-10-18  Havoc Pennington  <hp@redhat.com>
17803
17804         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
17805         where any number of empty lines would get skipped
17806
17807         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
17808         edge.
17809
17810         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
17811         warning about invalid iterators (explain more thoroughly)
17812         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
17813
17814         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
17815         big
17816
17817         * demos/*.c: Add error handling
17818
17819         * gtk/gtktextbuffer.c: don't modify const iterators
17820
17821         * gtk/gdk-pixbuf-loader.c: Add full error handling here
17822
17823         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
17824         on file load
17825
17826         * gtk/gtkiconfactory.c: Update to reflect addition of error
17827         handling to gdk-pixbuf loaders
17828
17829 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
17830
17831         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
17832         move to new modularized testgtk.
17833
17834 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
17835
17836         * gtk/gtktreeview.c: Draw the arrows correctly.
17837
17838         * gtk/gtktreemodel.c: Added user docs.
17839
17840         * gtk/gtk.h: remove gtktreedatalist.h.
17841
17842         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
17843         parent when generating my type.
17844
17845         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
17846         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
17847
17848 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
17849
17850         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
17851         GtkTreeModel from object to interface.
17852
17853 2000-10-16  Havoc Pennington  <hp@redhat.com>
17854
17855         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
17856         compilation
17857
17858 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
17859
17860         * gtk/gtktreeselection.c: Add API documentation to all public
17861         functions.
17862
17863         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
17864         functions.
17865
17866 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
17867
17868         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
17869         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
17870         docs to all public functions.
17871
17872         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
17873         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
17874         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
17875         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
17876         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
17877         issue.
17878
17879 2000-10-14  Robert Brady  <robert@suse.co.uk>
17880
17881         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
17882
17883 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
17884
17885         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
17886         values other then G_TYPE_STRING.
17887         * gtk/gtktreeselection.c: Minor commenting updates.
17888         * gtk/gtktreeview.c: Format updates.
17889
17890 2000-10-09  Tor Lillqvist  <tml@iki.fi>
17891
17892         * README.win32: Update.
17893
17894         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
17895         lines that had been deleted by mistake (?).
17896
17897         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
17898         also the case fg==white and bg==black (but still not randomly
17899         coloured cursors). Thanks to Wolfgang Sourdeau.
17900
17901         * gdk/win32/*.c: Silence gcc -Wall.
17902
17903         * gtk/gtk.def: Add missing entry points.
17904
17905         Fixes by Hans Breuer:
17906
17907         * gdk/makefile.msc
17908         * gdk/win32/makefile.msc: Update.
17909
17910         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
17911         some MSVC thing, presumably), cause breakpoint on failures. Add
17912         GDK_NOR case. Call g_log_set_always_fatal.
17913
17914         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
17915         should be pased by reference.
17916         
17917         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
17918         
17919         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
17920
17921         * gdk/win32/gdkevents-win32.c
17922         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
17923
17924         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
17925         implementation object.
17926
17927         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
17928         not just windows.
17929         
17930         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
17931         Use the wrapper object.
17932         
17933 2000-10-06  Havoc Pennington  <hp@redhat.com>
17934
17935         * Makefile.am (SRC_SUBDIRS): contrib subdir
17936
17937         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
17938         so it can be used in Xlib version
17939
17940         * demos/testpixbuf.c (update_timeout): error checking from 1.0
17941         tree
17942
17943         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
17944         change from 1.0 tree that returns first frame of animation
17945         if the loaded file is an animation.
17946
17947         * contrib: add new directory to hold stuff that comes with GTK+
17948         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
17949         
17950         * configure.in: add contrib/*
17951
17952 2000-10-05  Havoc Pennington  <hp@redhat.com>
17953
17954         * demos/testpixbuf-save.c: add pixbuf save test
17955
17956         * demos/Makefile.am: add testpixbuf-save.c
17957
17958 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
17959
17960         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
17961         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
17962         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
17963         * gtk/gtktreeselection.[ch]: Replaced
17964         "node_selected"/"node_unselected" signal with "selection_changed"
17965         signal.
17966
17967 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
17968
17969         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
17970         tree widget.
17971
17972 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
17973
17974         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
17975         drawing.
17976
17977 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
17978
17979         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
17980         Move list pointer forwards before removing item from
17981         list. (Crash reported by Salmaso Raffaele)
17982
17983         * gdk/gdkwindow.h: Remove spurious trailing ,
17984
17985         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
17986         dependencies on uninstalled libraries, sorry folks.
17987
17988 2000-10-04  Havoc Pennington  <hp@redhat.com>
17989
17990         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
17991         gtk/gtkiconfactory.c: Fix copyrights    
17992
17993         * demos/testpixbuf.c: add inline pixbuf test
17994         
17995 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
17996
17997         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
17998         Add gdk_window_iconify.
17999
18000         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
18001         (gdk_window_set_geometry_hints): Add win_gravity
18002         to geometry structure.
18003
18004         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
18005         Implement _NET_WM_PING.
18006
18007         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
18008         Set _NET_WM_PID on the client leader.
18009
18010         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
18011         Handle UTF-8 better.
18012
18013         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
18014         UTF-8 better, set _NET_WM_NAME as well. Only set
18015         icon name if it hasn't previously been explicitely 
18016         set.
18017
18018 2000-10-03  Havoc Pennington  <hp@redhat.com>
18019
18020         * gtk/testtextbuffer.c: clean up trailing whitespace,
18021         add extensive tests for tag toggle iteration.
18022         
18023         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
18024         distance
18025
18026         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
18027         optimize case where the tag root is on level 1
18028         (gtk_text_line_previous_could_contain_tag): attempt to implement
18029         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
18030         functionality
18031
18032         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
18033         Implement this, though not very efficiently.
18034
18035         * gtk/gtktextiterprivate.h: reformat
18036
18037         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
18038         iterator
18039
18040         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
18041         this to properly revalidate the iterators.
18042
18043         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
18044         properly at the end of the line (and therefore on empty lines)
18045
18046         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
18047         maybe we should return a value...
18048
18049 2000-10-03  Tor Lillqvist  <tml@iki.fi>
18050
18051         * config.h.win32: Guard definition of alloca(). glib.h now handles
18052         that.
18053
18054         * gdk/gdk.def
18055         * gtk/gtk.def: Add new entry points.
18056
18057         Changes just to make GTK+ build without errors on Win32. No hope
18058         of it working in its current state, though...:
18059         
18060         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
18061         some functions from the X11 backend, just to make GTK+ build.
18062
18063         * gdk/makefile.mingw.in
18064         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
18065         number. Add new object files.
18066
18067         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
18068         GetMessageTime to get timestamp (where on X11 uses
18069         gdk_x11_get_server_time()).
18070
18071 2000-10-02  Havoc Pennington  <hp@pobox.com>
18072
18073         * gtk/gtktextview.c: text_window_* weren't static and should have
18074         been.
18075         Start work on child widgets; not yet complete, syncing to 
18076         office computer.
18077
18078         * gtk/gtktextchild.h: change this to contain a public interface,
18079         starting work on child interfaces.
18080         * gtk/gtktextchildprivate.h: move private interfaces here
18081
18082         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
18083
18084         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
18085         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
18086         gtk/gtktextmark.c: copyright notices
18087
18088         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
18089         internal functions      
18090
18091         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
18092         internal function
18093
18094         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
18095         Reformatting    
18096
18097 2000-09-30  Havoc Pennington  <hp@pobox.com>
18098
18099         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
18100         NULL start/end pointers
18101
18102         * gtk/gtktextbuffer.c: Write some docs
18103         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
18104         NULL, so you can just check whether there's a selection.        
18105
18106         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
18107         cleanup_line or segments_changed ourselves, it gets done 
18108         in unlink_segment
18109
18110         * gtk/gtktextmark.h:
18111         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
18112         
18113         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
18114
18115         * gtk/gtktextmark.c: delete some more old Tk cruft
18116
18117         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
18118         mark before removing it, so we can emit MARK_DELETED with a valid
18119         pointer.
18120         (gtk_text_buffer_mark_set): hold ref across signal emission
18121
18122         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
18123         whining about attempts to delete special marks
18124
18125         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
18126         underscore, since it's internal.
18127
18128         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
18129         now implemented in terms of iterators in gtktextiter.h
18130
18131         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
18132         New function, destructively sets contents of buffer. Also 
18133         a convenient way to clear the buffer by setting text to ""
18134
18135         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
18136         multiline string literal
18137
18138         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
18139         text changes.
18140
18141         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
18142         is not dereferenceable
18143         (gtk_text_iter_forward_lines): fix return value
18144
18145 2000-09-29  Havoc Pennington  <hp@redhat.com>
18146
18147         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
18148
18149         * gtk/gtktextview.c: Implement drag thresholding; change functions 
18150         that set border window size to have nicer name
18151         (gtk_text_view_mark_set_handler):  Fix this to have the 
18152         right signature.
18153
18154         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
18155
18156         * gtk/testtext.c: Update with API changes, put line numbers on 
18157         both sides.
18158         
18159         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
18160         with this
18161
18162         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
18163         pixbuf; delete a big block of #if 0 Tk code
18164
18165         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
18166         insert_pixmap with insert_pixbuf
18167
18168 2000-09-29  Martin Baulig  <baulig@suse.de>
18169
18170         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
18171         confusion with the GdkPixbuf of the GNOME 1.x platform.
18172
18173 2000-09-29  Havoc Pennington  <hp@pobox.com>
18174
18175         * gtk/gtktextview.c: Implement the side windows.
18176
18177         * gtk/testtext.c: Implement simple line numbering in the 
18178         left side window; seems to make scrolling sloooow. Oops.
18179         Also, cursor blink is for some reason causing redraws
18180         of the line numbers. Should investigate...
18181
18182 2000-09-28  Havoc Pennington  <hp@redhat.com>
18183
18184         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
18185         scrolling child windows, and draw focus rectangle properly.
18186         
18187         (gtk_text_view_buffer_to_window_coords):
18188         Coordinate transformation to deal with all these freaking windows
18189         and offsets
18190         (gtk_text_view_window_to_buffer_coords): transform the other way
18191
18192         * gtk/testtext.c (create_buffer): Update to match Pango API change
18193
18194         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
18195         anonymous tags
18196         (foreach_unref): don't emit remove signal from finalize, just
18197         set tag's parent to NULL
18198
18199 2000-09-26  Havoc Pennington  <hp@redhat.com>
18200
18201         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
18202         Fix some warnings       
18203
18204 2000-09-26  Havoc Pennington  <hp@redhat.com>
18205
18206         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
18207         headers into the private header list
18208
18209         * Makefile.am (pkgconfig_DATA): install pkg-config files
18210
18211         * configure.in: add pkg-config files
18212
18213         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
18214
18215         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
18216         outstanding icon caches on theme change.
18217
18218         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
18219         important types:
18220
18221         (GtkIconSource): Specification for creating a pixbuf 
18222         appropriate for a direction/state/size triplet from 
18223         a source pixbuf or filename
18224
18225         (GtkIconSet): List of GtkIconSource objects that are used to
18226         create the "same" icon (e.g. an OK button icon), and cache for
18227         rendered icons
18228
18229         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
18230         up the icon set for a given stock ID.  GTK maintains a stack of
18231         GtkIconFactory to search, and applications or libraries can add
18232         additional icon factories on top of the stack
18233         
18234         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
18235         the set of GtkIconSource specified for a given stock ID into 
18236         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
18237         RcStyle, under the specified stock ID.
18238
18239         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
18240         render_icon used to derive a GdkPixbuf from a GtkIconSource.
18241         This allows people to theme how prelight, insensitive, etc. are
18242         done.
18243
18244         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
18245         icon factories for a style, and return the resulting 
18246         icon set if any.
18247
18248         (gtk_style_render_icon): Render an icon using the render_icon 
18249         method in the GtkStyleClass.
18250
18251         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
18252         Use the style for a given widget to look up a stock ID, get the
18253         icon set, and render an icon using the render_icon method 
18254         of the style
18255
18256         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
18257         (contains information about a stock item), the built-in stock item
18258         IDs, and functions to add/lookup stock items.
18259
18260         * gtk/stock-icons/*: Stock icons that come with GTK
18261
18262         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
18263         a button based on a GtkStockItem
18264         (gtk_button_new_accel): Takes a uline string and accel group, and
18265         installs the accelerator.
18266
18267         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
18268         image-display widget.
18269
18270 2000-09-25  Havoc Pennington  <hp@redhat.com>
18271
18272         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
18273
18274         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
18275         Fix a bug when removing node data, we didn't properly 
18276         re-splice the linked list after removing the data.
18277
18278         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
18279         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
18280
18281         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
18282
18283         * gtk/gtktextlayout.c (set_para_values): Set tab array 
18284         for the layout from the GtkTextTag.
18285
18286         * gtk/gtktexttypes.h: delete tab and search cruft, 
18287         remove g_convert() in favor of GLib version
18288
18289         * gtk/gtktexttypes.c: remove tab implementation from here,
18290         move to Pango
18291
18292         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
18293         tab stuff using new PangoTabArray from Pango
18294
18295         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
18296         unused border_width stuff
18297
18298 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
18299
18300         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
18301         glib) and now useless utf_to_latin1() latin1_to_utf()
18302
18303         * gtk/gtktextview.[ch]: Change ::move_insert and
18304         ::delete_text action signals to ::move and ::delete;
18305         create the signals with the right enumeration type,
18306         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
18307         C-v bindings, change Home, End to move to beginning/end
18308         of line, Add C-Home C-End to move to beginning/end
18309         of buffer. Change ::cut_text to ::cut_clipboard, etc;
18310         combine ::scroll_text into ::move; use new GtkSelectionData
18311         functions to simplify DND text handling.
18312         
18313         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
18314         deletion enumerations here, rename enumeration values to 
18315         be consistently plural.
18316
18317         * gtk/gtktextbuffer.c: Use new clipboard interfaces
18318         for cut/copy/paste and primary selection.
18319
18320         * gtk/gtktextbuffer.[ch]: Remove excess time and
18321         'interactive' arguments from cut/copy/paste;
18322         rename cut to cut_clipboard, etc; remove
18323         gtk_text_buffer_get_clipboard_contents().
18324
18325         * gtk/gtktextlayout.[ch]: Add 
18326         gtk_text_layout_move_iter_to_line_end() to move the iter to 
18327         line ends.
18328
18329         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
18330         Functions to set or get a UTF-8 string on the selection
18331         data.
18332
18333         * gtk/gtkclipboard.[ch]: New, simplified selection handling
18334         interfaces.
18335
18336         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
18337         created widgets - one of these is useless if we don't.
18338
18339         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
18340         a public function clear all targets registered for the
18341         widget.
18342
18343         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
18344         Never call gtk_widget_realize() - that was just asking
18345         for bizarre side-effects.
18346
18347         * gtk/gtkselection.c (gtk_selection_owner_set): Call
18348         gdk_selection_owner_set even if the widget is the
18349         same so that we reliably update the timestamp on
18350         the server.
18351
18352         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
18353         gdk_x11_get_server_time() function.
18354         
18355         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
18356         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
18357         Add some tricky filtering on serial numbers for
18358         selection clear events to fix up long-standard
18359         race condition FIXME's in gtkselection.c.
18360
18361         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
18362         routines to convert from utf8 to compound text or
18363         STRING and from a text property to UTF-8.
18364
18365         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
18366         a convenience function gdk_get_current_event_time().
18367
18368         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
18369         and free selection_data->data properly
18370
18371 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
18372
18373         * gtk/gtkthemes.c: Remove some unecessary includes.
18374
18375 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
18376
18377         * gtk/gtktextdisplay.c
18378         * gtk/gtktextlayout.c
18379         * gtk/gtktexttag.c
18380         * gtk/gtktexttag.h
18381         * gtk/testtext.c: Change the overstrike property to strikethrough,
18382         to closer match pango.
18383
18384 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
18385
18386         * gtk/gtktextview.c: Fix up visibility so that focus,
18387         cursor_visible and blink interact properly.  Reenable cursor blink
18388         which had been roughly disabled. Make blink and focus
18389         properly per-view.
18390
18391         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
18392         Add a flag for whether to display insertion cursor and
18393         a function to set the flag.
18394
18395         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
18396         get_line_y() to get_line_yrange(), to be a bit more generally
18397         useful.
18398
18399 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
18400
18401         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
18402           do stop_navigating_submenu, to clear last timeout properly.
18403           Also in gtk_menu_motion_notify move ignore_enter above
18404           the conditional to make it always happen as suggested by Owen
18405
18406 2000-09-07  Tor Lillqvist  <tml@iki.fi>
18407
18408         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
18409
18410         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
18411         w32api headers.
18412
18413         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
18414         declarations.
18415
18416         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
18417         (gdk_win32_get_colormap): A line had been deleted by mistake.
18418
18419         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
18420         (gdk_event_translate): Handle more virtual keycodes to be able to
18421         generate GDK events for Control-comma, Control-period, etc.
18422
18423         * gtk/gtk.def: Add some missing entry points.
18424
18425 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
18426
18427         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
18428         Doc comment fixing. (Mostly non-matching parameter names.)
18429
18430         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
18431         comments a little to avoid looking like a doc comment.
18432
18433         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
18434         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
18435         conversions be changed to GError?)
18436
18437         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
18438         Move private #defines into .c file.
18439
18440         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
18441         order of argument addition, remove duplicates.
18442
18443         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
18444         parent class is FrameClass, not BinClass.
18445
18446         * gtk/gtk.h: Add gtkinvisible, which was missing.
18447         (It's occasionalyl useful for client apps, if seldom.)
18448
18449         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
18450         #define.
18451
18452 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
18453
18454         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
18455         coordinates when creating window, instead of GDK-space
18456         coordinates. (Avoid BadValue on too large windows.)
18457
18458 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
18459
18460         * configure.in (use_mmx_asm): Remove conftest* after use along the
18461         lines of AC_TRY_COMPILE.        
18462         
18463         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
18464         of g_dirname, which is deprecated.
18465         (gtk_rc_parse_any): Removed calls to
18466         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
18467
18468         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
18469         Removed calls to g_hash_table_{freeze,thaw}, as they are
18470         deprecated now.
18471
18472         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
18473         instead of g_basename.
18474         
18475 2000-09-04 Elliot Lee <sopwith@redhat.com>
18476         
18477         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
18478         ANSI warning.
18479
18480 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
18481
18482         * gtk/gtkwidget.h:  Add some documenting comments about 
18483           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
18484           just as owen said on irc.
18485
18486         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
18487           set HAS_DEFAULT.  Only set it if there isn't another window
18488           holding it (a focus window which RECEIVES_DEFAULT) and only unset
18489           it if the widget is not the focused window with RECEIVES_DEFAULT.
18490           This fixes weird double default bugs in dialogs which has things
18491           call gtk_window_set_default at times.
18492
18493 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
18494
18495         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
18496         Nils Barth and David Santiago to improve submenu
18497         navigation. The patch does this by creating a triangular
18498         region from the point where the pointer leaves the
18499         menu to the submenu.  While the pointer is in
18500         that region and a timeout has not expired, events 
18501         that would cause the active submenu to change are
18502         ignored.
18503
18504 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
18505
18506         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
18507         moving a toplevel window immediately after sizing it would
18508         result in it being sized back to the old size since 
18509         impl->width, impl->height aren't updated until we hear
18510         back from the server. There is still a (longstanding) bug
18511         here that gdk_window_get_size() will give the wrong size
18512         until we do hear back.
18513
18514 2000-08-31  Havoc Pennington  <hp@redhat.com>
18515
18516         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
18517         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
18518         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
18519         Rename GtkTextStyleValues to GtkTextAttributes
18520
18521 2000-08-31  Havoc Pennington  <hp@pobox.com>
18522
18523         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
18524         for rapid testing whether an iterator is the end iterator
18525         (gtk_text_btree_new): init end line cache
18526         (gtk_text_line_is_last): use fast cached line to 
18527         see if we're the last line.
18528         (get_last_line): use cached line here too, should 
18529         speed up some random unrelated code.
18530         
18531 2000-08-30  Havoc Pennington  <hp@pobox.com>
18532
18533         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
18534         signals.
18535
18536         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
18537         delete_text signals. This allows the signals to be used for
18538         implementing undo.
18539
18540         * gtk/gtktextbuffer.c: Change signal handler signatures; 
18541         provide "interactive" argument when emitting insert_text or
18542         delete_text signal.
18543         
18544 2000-08-30  Havoc Pennington  <hp@pobox.com>
18545
18546         * gtk/gtktextbuffer.c: Docs
18547
18548 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
18549
18550         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
18551         from switch statements, since Tor removed the enumeration
18552         value.
18553         
18554         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
18555         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
18556
18557 2000-08-29 Elliot Lee <sopwith@redhat.com>
18558         * */*.h: Use G_GNUC_CONST.
18559
18560 2000-08-27  Havoc Pennington  <hp@pobox.com>
18561
18562         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
18563         minor indentation fixes, inserted some FIXME about stuff I
18564         realized was broken while documenting it.
18565         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
18566         GTK convention  
18567
18568 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
18569
18570         * gtk/testgtk.c (create_styles): Fix double free of
18571         font desc.
18572
18573 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18574
18575         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
18576         
18577         * gtk/testgtk.c (create_styles): Add a test for modifying
18578         the style through gtk_widget_modify_*.
18579
18580         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
18581         a function to get the current modifier style.
18582
18583         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
18584         of the passed in GtkRcStyle instead of ref'ing it.
18585
18586         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
18587
18588 2000-08-20  Tor Lillqvist  <tml@iki.fi>
18589
18590         * gdk/gdkimage.h
18591         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
18592         shared memory image+pixmap GdkImage type, or
18593         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
18594         I am dropping that.
18595
18596         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
18597         actually call gtk_init_abi_check(), passing also
18598         sizeof(GtkWindow). Ditto for gtk_init_check(). 
18599
18600         * gtk/gtk.def
18601         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
18602         New functions, used to check that the GTK+-using code has been
18603         compiled using the correct compiler and switches. In particular,
18604         with gcc one has to use the -fnative-struct switch as GTK+ is
18605         compiled with that.
18606
18607 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
18608
18609         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
18610         ->prev fields when merging lists. (Found simultaneously
18611         by Pawel Salek and Jakub Jelinek)
18612
18613 2000-08-12  Tor Lillqvist  <tml@iki.fi>
18614
18615         * gdk/gdk.def
18616         * gtk/gtk.def: Add missing entries.
18617
18618         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
18619         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
18620
18621         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
18622         function. Dummy implementation at this point.
18623
18624         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
18625         rules. Undefine GTK_COMPILATION when compiling the test programs.
18626         
18627         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
18628
18629 2000-08-11  Tor Lillqvist  <tml@iki.fi>
18630
18631         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
18632         to convert back and forth from UTF-8 and the "system" (or "current
18633         locale") charset when necessary. Indentation/spacing cleanup.
18634
18635 2000-08-10  Havoc Pennington  <hp@redhat.com>
18636
18637         * Makefile.am (snapshot): Change the format of the snapshot
18638         version to match glib
18639
18640         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
18641         from EXTRA_DIST since it doesn't seem to exist
18642
18643 2000-08-10  Tor Lillqvist  <tml@iki.fi>
18644
18645         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
18646         version of the directory name (not the UTF-8 one) when building
18647         the path name to stat().
18648
18649 2000-08-03  Elliot Lee  <sopwith@redhat.com>
18650
18651         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
18652         PANGO_ATTR_SHAPE set.
18653
18654 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
18655
18656         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
18657         Peter Osterlund to simplify the code while keeping the
18658         functionality the same.
18659
18660 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
18661
18662         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
18663         is_viewable() test further inside the function, since removing the 
18664         window from the redraw list without clearing ->update_area
18665         was also very broken.
18666
18667 2000-08-02  Tor Lillqvist  <tml@iki.fi>
18668
18669         * configure.in: Check for <unistd.h>.
18670
18671 2000-08-01  Martin Baulig  <baulig@suse.de>
18672
18673         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
18674         to display the message that this is a development version of GTK+.
18675
18676 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
18677
18678         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
18679         was depending on widget->allocation instead of the width of text_area,
18680         which was incorrect for subclasses like GtkSpinButton.
18681
18682         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
18683         with width == 1 tests that should be width == -1.
18684
18685 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
18686
18687         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
18688         (broken, Elliot, every single window blank on X) custom code with call
18689         to gdk_window_is_viewable() which a) prevents code duplicate and
18690         b) works. 
18691
18692 2000-07-31  Elliot Lee  <sopwith@redhat.com>
18693
18694         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
18695         to get the GDK_PARENT_ROOT() macro to work.
18696         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
18697         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
18698         of, windows that aren't shown.
18699         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
18700         pointer grab stuff.
18701
18702 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
18703
18704         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
18705           s/gtk_main_iteration/g_main_iteration/
18706
18707           Did this already in change:
18708                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18709           don't know how it got reverted.
18710
18711 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
18712
18713         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
18714         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
18715
18716         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
18717         not gdk_pixbuf.
18718
18719 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
18720
18721         * configure.in,po/{sp,sr}.po: Added Serbian files
18722
18723 2000-07-30  Tor Lillqvist  <tml@iki.fi>
18724
18725         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
18726
18727         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
18728         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
18729         GIOChannel implementation.
18730
18731         * gdk/win32/gdkinput.c
18732         * gdk/win32/gdkpango-win32.c: Update license name here, too.
18733
18734         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
18735         definition to match prototype.
18736
18737         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
18738
18739 2000-07-27  Elliot Lee  <sopwith@redhat.com>
18740
18741         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
18742         function, to allow handling image formats that cannot be detected
18743         by looking at content alone.
18744
18745 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
18746
18747         * docs/tutorial/*.gif *.jpg *.eps
18748           Update these to the same look-n-feel.
18749           Why does including images in DocBook suck so badly?
18750
18751 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
18752
18753         * gtk/gtktable.c: applied patch from Phil Thompson
18754         <phil@river-bank.demon.co.uk> that enables space settings for
18755         the last row/columns as well.
18756
18757 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
18758
18759         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
18760         updates the license headers to the GNU Lesser General Public License,
18761         as well as updating the copyright year to 2000.
18762
18763 2000-07-26  Robert Brady  <rwb197@zepler.org>
18764
18765         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
18766           and po/Makefile, was installing and looking for them under gtk20
18767           and gtk2 respectively.
18768
18769 2000-07-25  Havoc Pennington  <hp@redhat.com>
18770
18771         * gtk/testtext.c: Comment out some stuff that depends on the rest
18772         of my patches.
18773
18774 2000-07-25  Havoc Pennington  <hp@redhat.com>
18775
18776         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
18777         buffer
18778
18779 2000-07-25  Havoc Pennington  <hp@redhat.com>
18780
18781         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
18782         widget changes.
18783
18784         * gtk/gtktextview.h: To be consistent with usage of "line"
18785         throughout the API to mean "newline-terminated thingy", change
18786         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
18787         to MOVEMENT_LINE.
18788
18789         (GtkTextView): Add flags for default editability, and whether to
18790         show the cursor. Add functions to get/set that. Add 
18791
18792         (gtk_text_view_get_iter_location): new function
18793
18794         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
18795         gtktextlayout.h
18796         (g_convert): Add g_convert temporarily, will go in glib in a bit
18797         
18798         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
18799         GtkTextTagTableForeach instead of brokenly using GHFunc.
18800         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
18801
18802         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
18803         moved to public header.
18804
18805         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
18806         "invisible", since "elide" was a bad name.
18807         (gtk_text_tag_get_priority): Added
18808
18809         (GtkTextStyleValues): put this in public header, along with
18810         functions to use it.
18811
18812         * gtk/gtktextmarkprivate.h: Include more headers, since we no
18813         longer include gtktextbtree.h.
18814
18815         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
18816         gtk_text_mark_deleted
18817
18818         * gtk/gtktextlayout.h: Don't include the "really private" headers,
18819         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
18820         to make this possible. Now we only need to install
18821         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
18822         (However the Makefile.am isn't changed yet because of the
18823         logistics of merging gtk-hp-patches piecemeal)
18824
18825         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
18826         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
18827         gtk_text_iter_get_line is now used in the public API for a
18828         different purpose.
18829
18830         * gtk/gtktextiter.h: Clean up function names to be more
18831         consistent. Always call char offset "offset" and byte index
18832         "index". A "line" is always a line number. 
18833
18834         (gtk_text_iter_is_last): new function, more efficient than 
18835         the existing way to check
18836         (gtk_text_iter_is_first): new function, also more efficient
18837
18838         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
18839
18840         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
18841         gtk_text_iter_forward_char, etc.
18842
18843         (gtk_text_iter_forward_to_tag_toggle): Renamed from
18844         forward_find_tag_toggle, since this isn't a linear search
18845
18846         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
18847
18848         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
18849         New functions, search for a buffer substring.
18850
18851         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
18852         interactive and default editable (since we need to store that info
18853         until we receive the selection data).
18854
18855         Remove all the _at_char and at_line etc. versions of functions;
18856         only have iterator versions.
18857
18858         Add _interactive() versions of functions, that consider the
18859         editability of text. (FIXME add interactive flag to the 
18860         insert/delete signals per Darin's suggestion)
18861
18862         (gtk_text_buffer_get_tag_table): new function, demand-creates the
18863         tag table if necessary
18864
18865         Remove declaration of gtk_text_buffer_get_iter_from_string
18866
18867         (_gtk_text_buffer_get_btree): private/internal function, added.
18868         
18869
18870         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
18871         (gtk_text_line_is_last): new function
18872
18873 2000-07-25  Havoc Pennington  <hp@redhat.com>
18874
18875         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
18876         using GtkProgressBar. See Changes-2.0.txt for details.
18877
18878         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
18879         "pulse_step" which are the equivalent of
18880         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
18881         Implement new API.
18882         
18883         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
18884         (use_text_format) to mark whether text set on the progress bar is
18885         a format string. Deprecate entire GtkProgress interface.
18886
18887         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
18888         (gtk_progress_build_string): make this a no-op if use_text_format
18889         is FALSE
18890
18891         * docs/Changes-2.0.txt: Describe progress bar changes.
18892
18893 2000-07-25  Tor Lillqvist  <tml@iki.fi>
18894
18895         * Makefile.am: Include the build directory.
18896
18897         * configure.in: Generate build/Makefile, build/win32/Makefile,
18898         gdk/, gdk/win32/, and gtk/makefile.mingw.
18899
18900         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
18901         Add GETTEXT_PACKAGE.
18902         
18903         * gdk/gdk.def
18904         * gtk/gtk.def: Updates.
18905
18906         * gdk/gdkfont.h
18907         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
18908         need them any longer.
18909
18910         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
18911
18912         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
18913         PANGOWIN32_LIBS and gdk_pixbuf.
18914
18915         * gdk/win32: Compiles, but no doubt doesn't work at all.
18916
18917         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
18918
18919         * gdk/win32/gdkinput.c: New file, temporarily.
18920         
18921         * gdk/win32/gdkinput-win32.h: New file
18922
18923         * gdk/win32/gdkinputprivate.h: Remove.
18924
18925         * gdk/win32/gdkpango-win32.c: New file.
18926
18927         * gtk/makefile.mingw.in: New file
18928
18929         * gtk/makefile.cygwin: Removed
18930         
18931         * gtk/Makefile.am: Update accordingly.
18932
18933         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
18934         made externally visible.
18935
18936         * gtk/gtkmain.c: Use it.
18937         
18938         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
18939         is enough.
18940
18941         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
18942
18943 2000-07-24 Elliot Lee <sopwith@redhat.com>
18944         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
18945         individual backends already.
18946         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
18947         again. Yes, there really is a good reason for this, if you are using the gdkregion
18948         internals, and if you're not, why do you care?
18949         * gdk/gdkwindow.c: Fix inverted condition
18950         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
18951         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
18952         * gtk/gtkrange.c: Redraw trough when moving.
18953         * gtk/gtktypeutils.c: Fix warning by adding const cast.
18954         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
18955
18956 2000-07-23  Tor Lillqvist  <tml@iki.fi>
18957
18958         * configure.in: Check for mkstemp and sigsetjmp. Output
18959         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
18960
18961         More work on GDK for Win32. Still in an intermediate state.
18962
18963         * gdk/makefile.cygwin
18964         * gdk/win32/makefile.cygwin: Removed.
18965         
18966         * gdk/makefile.mingw.in
18967         * gdk/win32/makefile.mingw.in: New files.
18968
18969         * gdk/Makefile.am
18970         * gdk/win32/Makefile.am: Generate and distribute them.
18971
18972         * gdk/win32/gdkwindow-win32.h
18973         * gdk/win32/gdkdrawable-win32.h
18974         * gdk/win32/gdkpixmap-win32.h: New files.
18975
18976         * gdk/win32/gdkcolor-win32.c
18977         * gdk/win32/gdkcursor-win32.c
18978         * gdk/win32/gdkdrawable-win32.c
18979         * gdk/win32/gdkgc-win32.c
18980         * gdk/win32/gdkimage-win32.c
18981         * gdk/win32/gdkprivate-win32.h
18982         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
18983         Rename fields and variables called xcursor, xid, etc (these names
18984         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
18985
18986 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
18987
18988         * gtk/gtkentry.[ch]: Fix some problems with vertical
18989         alignment.
18990
18991         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
18992         char/byte confusion.
18993
18994 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
18995
18996         * gtk/gtktextview.c (changed_handler): Fix bug where
18997         redraw wasn't being done properly when height of
18998         dirty region changed.
18999
19000         * demos/Makefile.am: Remove various references to
19001         -lgmodule
19002
19003 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
19004
19005         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
19006         PangoAttrShape to reserve space for pixmaps, add 
19007         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
19008         in the display functions.
19009         
19010         * gtk/testgtk.c (create_layout): Set some more exotic
19011         scrolled window options
19012
19013         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
19014         Add function to set the shadow type of a window, to allow
19015         putting a shadow around widgets such as GtkLayout or GnomeCanvas
19016         which don't draw their own frame.
19017
19018 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
19019
19020         * docs/tutorial/package-db-tutorial.sh: New file for
19021           packaging DocBook format tutorial
19022
19023 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
19024
19025         * docs/tutorial/gtk-tut.sgml: Minor updates
19026
19027         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
19028
19029 2000-07-19  Tor Lillqvist  <tml@iki.fi>
19030
19031         * gtk/gtksignal.c: Fix C++ comment.
19032
19033         * gtk/gtkimmulticontext.c
19034         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
19035         don't return value from void functions.
19036
19037         * gtk/gtk.def: Add gtk_rc_style_unref.
19038
19039 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19040
19041         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
19042         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
19043         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
19044         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
19045         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
19046         gtk/gtktypeutils.h: Include files outside of the extern "C"
19047         block. Makes some C++ compiler happy. Reported by Denis Vakatov
19048         <vakatov@peony.nlm.nih.gov>.
19049
19050 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
19051
19052         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
19053           Completes first pass. Hurrah!
19054
19055 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
19056
19057         * docs/tutorial/gtk-tut.sgml: More clean ups.
19058
19059 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
19060
19061         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
19062         paint the background of the text area which was accidentally
19063         removed at some point.
19064
19065         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
19066           
19067          - Move most of the functionality from the theme vtable
19068            into GtkRcStyleClass and GtkStyleClass. The moved
19069            vtable functions were changed a bit in the move to
19070            work better in their new home.
19071
19072          - Get rid of the engine and engine_data fields from
19073            GtkRcStyle and GtkStyle; instead the theme
19074            engine derives theme-specific subclasses of GtkRcStyle
19075            and GtkStyle
19076
19077          - Add extra dlsym() found entry point to themes,
19078            theme_create_rc_style().
19079
19080         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
19081         in gtk_style_real_copy.
19082
19083         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
19084         to register a type associated with an engine. (The engine
19085         won't be unloaded as there is an instance of the type.)
19086
19087
19088 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
19089
19090         * docs/tutorial/gtk-tut.sgml: Clean ups.
19091
19092 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
19093
19094         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
19095           of cleaning up to do.
19096
19097 2000-07-15  Tor Lillqvist  <tml@iki.fi>
19098
19099         * gdk/testgdk.c: New file, quick hack to test backends for
19100         pixel-by-pixel correctness of the most simple graphic operations.
19101
19102 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
19103
19104         * Really release 1.3.1
19105         
19106         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
19107         include structure.
19108
19109 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
19110
19111         * Released 1.3.1
19112
19113 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
19114
19115         * gtk/gtktextlayout.c: use FALSE for size_only most
19116         of the time when calling gtk_text_layout_get_line_display()
19117         to avoid causing double reshapes when a redraw follows
19118         immediately after.
19119
19120 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
19121
19122         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
19123         appropriate region and gdk_window_process_updates() so trough
19124         updating doesn't lag behind the window being scrolled.
19125
19126         * gdk/gdkgc.c: Make parent_class pointer static.
19127          
19128 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
19129
19130         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
19131         include <string.h>.
19132          
19133         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
19134         cut-and-paste error in computing memory offset for 4 channels.
19135
19136 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
19137
19138         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
19139         gtk_rc_append_default_pixmap_path(), since it wasn't
19140         adding an interesting path and we don't have a meaningful
19141         default for this value.
19142
19143 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
19144
19145         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
19146         gtk-config to gtk-config-2.0 move gtk_.m4 to
19147         gtk-2.0.m4
19148
19149         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
19150         gdk/Makefile.am demos/Makefile.am: Change 
19151         library names to libgtk-1.3.la, etc, so that we
19152         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
19153
19154         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
19155         gdk/Makefile.am gdk/x11/Makfile.am
19156         Move include files into /usr/include/gtk-2.0, 
19157         /usr/lib/gtk-2.0/include/
19158          
19159         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
19160         gtk/gtkintl.h: Change package for gettext from 
19161         gtk+ to gtk20. Put hack in autogen.sh to modify
19162         po/Makefile.in.in after gettextize to make this
19163         possible.
19164
19165         * gtk+.spec: Some updates, not tested.
19166
19167         * gdk-pixbuf/Makefile.am: Move loaders into
19168         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
19169
19170         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
19171         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
19172         to THEMENAME/gtk-2.0/. Move engine directory  to
19173         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
19174         
19175 2000-07-12  Tor Lillqvist  <tml@iki.fi>
19176
19177         Win32 changes, still doesn't build though.
19178
19179         * gdk/makefile.cygwin
19180         * gdk/win32/makefile.cygwin
19181         * gtk/makefile.cygwin: Updates.
19182
19183         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
19184         default values for fg and bg pixel as X11 does (0 and 1), not
19185         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
19186         Use 0 for pen width by default (treated as 1 anyway later, but for
19187         apps that might check the value in the GdkGC).
19188         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
19189         interface to gdk_gc_predraw and _postdraw.
19190
19191         * gdk/win32/gdkwin32.h
19192         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
19193
19194         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
19195         extraneous semicolon.
19196
19197         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
19198
19199         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
19200         not the Win32 bitspixel value.
19201
19202         * gdk/win32/gdkcc-win32.c:
19203         * gdk/win32/gdkcolor-win32.c 
19204         * gdk/win32/gdkprivate-win32.h
19205         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
19206         GDK object structure.
19207
19208 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
19209
19210         * docs/tutorial/gtk_tut_12.es.sgml (name): 
19211         * docs/tutorial/gtk_tut_it.sgml (name): 
19212         * docs/tutorial/gtk_tut_fr.sgml (name): 
19213         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
19214         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
19215
19216 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
19217
19218         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
19219           small changes.
19220
19221 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
19222
19223         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
19224         a bug here, never been here and never fixed anything ;(
19225         (don't segfault if tree->root_tree is NULL, which happens prior
19226         to widget realization, but puke instead).
19227
19228 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
19229
19230         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
19231         add the necessary tokens.
19232
19233         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
19234         (gtk_rc_style_to_style): copy thicknesses.
19235         (gtk_rc_init_style): apply thicknesses.
19236         (gtk_rc_parse_style): parse xthickness and ythickness.
19237
19238         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
19239
19240         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
19241         (gdk_window_new): 
19242         (_gdk_windowing_window_init): 
19243         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
19244         (gdk_pixmap_create_from_data): 
19245         (gdk_bitmap_create_from_data): 
19246         (gdk_pixmap_new): 
19247         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
19248         (gdk_image_new): 
19249         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
19250         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
19251         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
19252         (gdk_colormap_get_system): 
19253         (gdk_colormap_new): 
19254         * gdk/gdkwindow.c (gdk_window_init): 
19255         * gtk/gtkstyle.c (gtk_style_new):
19256         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
19257         * gdk/gdkpixmap.c (gdk_pixmap_init): 
19258         * gtk/gtkrc.c (gtk_rc_style_new):
19259         use g_object_new() instead of g_type_create_instance() which
19260         is a private function for fundamental type implementations.
19261
19262 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
19263
19264         * configure.in: Add check for db2html
19265
19266 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
19267
19268         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
19269         hack to set glib_debug_objects based on gtk_debug_flags.
19270
19271 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
19272
19273         * INSTALL.in: Update the Prerequisites section.
19274
19275         * Makefile.am demos/Makefile.am docs/Makefile.am
19276         docs/tutorial/Makefile.am gdk/x11/Makefile.am
19277         gdk/linux-fb/Makefile.am: Dist fixes
19278
19279 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
19280
19281         * NEWS: 10,000 foot view of 1.3.1 changes.
19282
19283 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
19284
19285         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
19286         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
19287         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
19288         gdk/x11/gdkmain-x11.c: 
19289
19290         Patch from George Lebl to add a GdkGrabStatus enumeration to use
19291         as a return value of gdk_*_grab(). Previously, we just
19292         returned the X11 values directly.
19293
19294 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
19295
19296         * gdk/x11/Makefile.am: Patch from George Lebl to 
19297         install all the headers in the right place.
19298
19299 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
19300
19301         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
19302           initial conversion to DocBook.
19303
19304 2000-07-04  Tor Lillqvist  <tml@iki.fi>
19305
19306         * README.win32: Improve a bit.
19307
19308         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
19309         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
19310         Alt+0nnn on the numpad (used to enter characters by numeric code
19311         from current DOS or ANSI codepage) working correctly, as in other
19312         Windows apps.
19313
19314         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
19315         same argument validity tests as in X11 version.
19316         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
19317
19318         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
19319         definitions in case missing from headers.
19320
19321         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
19322         destroy the window-specific cursor.
19323         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
19324         calling GetModuleHandle(NULL).
19325         (gdk_window_set_cursor): Reworked to always copy the passed cursor
19326         with CopyCursor before setting it as the window-specific
19327         cursor. It is OK for the caller to destroy the GdkCursor (and thus
19328         also its Windows cursor) after calling this function. Destroy any
19329         previous window-specific cursor.
19330
19331 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
19332
19333         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
19334         font charset is iso8859-1, not iso-8859-1.
19335
19336 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
19337
19338         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
19339         Use g_get_charset() instead of g_get_codeset().
19340
19341         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
19342         Comment out some strdup'ing functions to keep timj
19343         happy until we finish fighting this out.
19344
19345 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
19346
19347         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
19348         <= width or height.
19349
19350         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
19351         from 1.2 for parent/child states.
19352
19353         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
19354         of typos.
19355
19356         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
19357         event structures, replace with a generic axes field. Replace 
19358         deviceid/sourec with GdkDevice *device.
19359
19360         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
19361         to extract particular axis use value from event. (Also
19362         can be used for normal X/Y.)
19363
19364         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
19365         allow for arbitrary number of axes, namespace everything
19366         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
19367         everywhere.
19368
19369         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
19370         Get rid of the gdk_input_vtable setup if favor of simply
19371         defining the functions in gdkinput-none/gxi/xfree.c in
19372         a similar fashion to the way that the port structure is 
19373         done.
19374
19375         * gtk/gtkdnd.c: Fix fields of synthesized button press event
19376         for new event structures. 
19377
19378         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
19379         new device interfaces.
19380
19381 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
19382
19383         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
19384         set the initial text.
19385
19386         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
19387         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
19388         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
19389         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
19390
19391         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19392         pango_layout_set_font_description to simplify.
19393
19394 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
19395
19396         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19397         pango_layout_set_font_description to simplify.
19398
19399 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
19400
19401         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
19402         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
19403         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
19404
19405         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
19406         PANGO_PIXELS() macro.
19407
19408 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
19409
19410         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
19411         that returns a PangoContext owned by the widget and updated to
19412         match future changes in the widget. Also, make 
19413         gtk_widget_create_pango_layout() use this context. If we ever
19414         add a ::changed signal to PangoContext, this will make things
19415         much more convenient. 
19416
19417         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
19418         in the appropriate places instead of destroying the layouts and
19419         creating new ones.
19420
19421         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
19422         in a few strategic places.
19423
19424 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
19425
19426         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
19427         gtk_widget_size_request() on reparented child, if one. Otherwise,
19428         queue_resize() on the child never results in it getting size-requested
19429         at all.
19430
19431         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
19432         in option menus, so that (with luck) people won't copy it into
19433         their apps in the future.
19434
19435         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
19436         to gtk_option_menu_calc_size. This isn't perfect, but should fix
19437         a lot of problems with changing the size of the menu's menu
19438         items after adding it to the option menu.
19439
19440         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
19441
19442         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
19443         the text direction for a widget changes.
19444
19445         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
19446         ::direction_changed to get rid of various hacks.
19447
19448 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
19449
19450         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
19451         name.
19452
19453 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
19454
19455         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
19456         flag to the structure. Do not call XFreePixmap on pixmaps created
19457         by gdk_pixmap_foreign_new().
19458
19459 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
19460
19461         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
19462         value using GdkRGB functionality given GdkColormap and GdkColor.
19463         (name not final, waiting for inspiration.)
19464         
19465         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
19466         set the foreground/background of a GC using the GC's colormap
19467         and GdkRGB. (name not final, waiting for inspiration.)
19468
19469         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
19470         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
19471
19472         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
19473         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
19474         purely a function of the corresponding colormap. Make
19475         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
19476
19477         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
19478         gdk_pixbuf_*create_from_xpm_* in terms of
19479         gdk_pixbuf_new_from_xpm_data(), move into platform independent
19480         code.
19481
19482         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
19483         advantage of the new draw_rgb_32_image_dithalign.
19484
19485         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
19486
19487         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
19488         on each created GC.
19489
19490         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
19491
19492         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
19493         which we initialize from the drawable when the GC is created,
19494         if the drawable has a colormap.
19495
19496         * gdk/x11/gdkgc-x11.c: include string.h for memset.
19497
19498         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
19499
19500         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
19501
19502 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
19503
19504         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
19505         actually returning expose events, make sure to set
19506         the count field properly.
19507
19508         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
19509         accidentally reintroced bug which always cleared
19510         the graphics_exposures value. 
19511
19512 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
19513
19514         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
19515
19516 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
19517
19518         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
19519
19520 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
19521
19522         * docs/faq/gtk-faq.sgml: Start of Section 6.
19523
19524 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
19525
19526         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
19527         
19528         (Fixes problem with drawing childless frames. Pointed out
19529         by and a first patch from Anders)
19530         
19531         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
19532         compute a child_allocation, even if we don't have a child.
19533
19534         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
19535         Always chain to the parent's impl, even if we don't have a child.
19536
19537 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19538
19539         * gdk/gdkrgb.c: If possible, create only a single shm segment and
19540         use multiple parts of it instead of creating a bunch of separate
19541         segments, since the maximum number of segments per system is not
19542         large. (This might be worth backporting to GTK+-1.2.x if we make a
19543         new release )
19544
19545         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
19546         structure in preparation for per-colormap GdkRGB.
19547
19548         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
19549         to False when we get EINVAL from shmget so that the caller of
19550         gdk_image_new can retry with a smaller segment size.
19551
19552 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
19553
19554         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
19555
19556 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
19557
19558         * configure.in: make the current version number 1.3.1 (binary age 0,
19559         interface age 0).
19560         
19561         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
19562         gtkcompat.h is all we want.
19563
19564         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
19565         GLib primitive types. fixed g_type_register_fundamental() argument
19566         ordering.
19567
19568         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
19569         compiles.
19570
19571         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
19572         object code cleanup, comment trigraph fixes, etc...
19573
19574 2000-06-23  Havoc Pennington  <hp@redhat.com>
19575
19576         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
19577         instead of making up a bogus name for first_para_mark
19578
19579         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
19580         0 as a context ID
19581
19582 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
19583
19584         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
19585
19586 2000-06-21  Havoc Pennington  <hp@pobox.com>
19587
19588         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
19589         we didn't check window->bg_pixmap != GDK_NO_BG.
19590
19591         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
19592         gdk-pixbuf
19593
19594 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
19595
19596         * docs/faq/gtk-faq.sgm: Move file to here.
19597           TODO: Update Makfile.am 
19598
19599 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
19600
19601         * docs/gtk-faq.sgm: Add Section 2
19602
19603 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
19604
19605         * docs/gtk-faq.sgm: New file. Start of DocBook
19606           version of the FAQ.
19607
19608 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
19609
19610         * configure.in (GDK_PIXBUF_MAJOR): Define version
19611         numbers for GDK_PIXBUF_*, as they get substituted
19612         into a header file. Need to consider versioning
19613         for gdk-pixbuf more carefully later.
19614
19615 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
19616
19617         Work with srcdir != builddir.   
19618         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
19619         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
19620         * demos/testpixbuf.c: Likewise.
19621         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
19622         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
19623         <gdk/x11/gdkx.h>.
19624         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
19625         "gdk-pixbuf.h".
19626         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
19627
19628 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
19629
19630         * TODO.xml: Change 1.4 version numbers to 2.0.
19631
19632 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
19633
19634         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
19635         fixups to GTK+ standard.
19636
19637 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
19638
19639         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
19640         gdk-pixbuf.
19641
19642         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
19643         fixups for GObject.
19644
19645         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
19646         gdk-pixbuf with GDK dependencies moved into GDK.
19647         
19648         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
19649         move gdk-pixbuf-loader here until GObject has signals.
19650
19651         * demos/: New directory of demos. Move demos from
19652         gdk-pixbuf here.
19653
19654         * demos/pixbuf-init.c: Small bit of code to check for
19655         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
19656         set GDK_PIXBUF_MODULEDIR appropriately.
19657
19658         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
19659         define which no longer makes sense.
19660
19661 2000-06-21  Havoc Pennington  <hp@redhat.com>
19662
19663         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
19664         gtk_get_default_language
19665
19666         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
19667         new function to get the default language
19668
19669         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
19670         s/gtk_text_view_style_values/gtk_text_style_values/
19671
19672         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
19673         Add a "language" field to tags.
19674
19675         (gtk_text_tag_set_arg): Fix bug in setting
19676         "bg_full_height_set" tag.
19677
19678 2000-06-21  Havoc Pennington  <hp@redhat.com>
19679
19680         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
19681         in the interfaces
19682
19683         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
19684         stuff instead when possible.
19685
19686         * gtk/gtktexttypes.h: Delete some unused constants
19687
19688         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
19689         testtextbuffer.c: use glib instead of custom unicode routines
19690
19691 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
19692
19693         * docs/es/: Removed mistakenly added generated sgml
19694
19695         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
19696         Remove outdated info files.
19697
19698         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
19699         Moved tutorial files into subdir
19700
19701         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
19702         subdir.
19703
19704         * docs/man/gtk_button.pod: Remove. (contents will be
19705         integrated into gtk-reference button page.)
19706
19707         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
19708         docs/faq/Makefile.am: Adjust for new organization
19709
19710 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
19711
19712         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
19713         not $(MKINSTALLDIRS)
19714
19715 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
19716
19717         * gtk/testgtk.c (create_text): Finish the job Elliot started
19718         of removing font setting test for text widget. (Since text widget
19719         and GdkFont are not deprecated, and cause portability problems.)
19720
19721 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
19722
19723         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
19724         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
19725         Remove use of libunicode in favor of new GLib functions.
19726
19727         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
19728         nano-x, framebuffer. The X11 include is just a hack until we get
19729         the necessary functions in gdkcolor.h, so there is no reason to
19730         add other includes of platforms.
19731
19732         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
19733         window bigger than the screen change.
19734
19735         * gtk/testgtk.c: Revert some random changes from Elliot
19736         that had no particular point and were causing testgtkrc
19737         not to function correctly.
19738         
19739         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
19740         because GdkSegment and GdkRegionBox have the same fields,
19741         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
19742         results in clearer code.
19743
19744         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
19745         gdk_input_translate_coordinates): Fix missed GdkObjectification
19746
19747 2000-06-18  Elliot Lee  <sopwith@redhat.com>
19748
19749         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
19750         * gtk/gtk{plug,socket}.h: Missed commits from previous.
19751
19752 2000-06-20  Havoc Pennington  <hp@redhat.com>
19753
19754         * modules/linux-fb/Makefile.am: Make this compile
19755         without framebuffer enabled
19756
19757         * gdk/linux-fb/Makefile.am: Add conditional to not build
19758         framebuffer unless specified in configure
19759
19760         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
19761         the size of the target instead of source if -1 was passed for
19762         width/height
19763
19764         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
19765         width/height confusion.
19766
19767 2000-06-19  Havoc Pennington  <hp@redhat.com>
19768
19769         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
19770         GDK_DRAWABLE_XID. In the future, we probably want to make it
19771         faster with G_DISABLE_CHECKS turned on.
19772
19773 2000-06-14  Havoc Pennington  <hp@redhat.com>
19774
19775         * gdk/Makefile.am: add gdkpixmap.c
19776
19777         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
19778         s/gdk_image_init/_gdk_windowing_image_init
19779
19780         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
19781         ref/unref
19782
19783         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
19784
19785         * gdk/gdkcompat.h: remove GdkWindowType compat, since
19786         GdkWindowType is now non-deprecated; 
19787         change gdk_window_get_type() compat to be
19788         gdk_window_get_window_type().
19789
19790         * gdk/gdkdnd.h: make GdkDragContext a GObject.
19791
19792         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
19793         virtual GObject. Make all functions call into the vtable.
19794         Move gdk_image_put() guts in here. Remove GdkDrawableType
19795         and gdk_drawable_get_type(), these are now GdkWindow-specific.
19796         draw_image, get_depth, get_size, set_colormap, get_colormap,
19797         get_visual added to the vtable.
19798         
19799         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
19800         GObject. Virtualize everything. 
19801         (gdk_gc_new_with_values): remove check for destroyed window,
19802         because now GdkWindow::create_gc will check this.
19803         (gdk_gc_set_values): New function to set GC values, this 
19804         was already implemented but wasn't in the header
19805
19806         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
19807
19808         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
19809         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
19810         remove _gdk_window_class; add _gdk_window_impl_get_type() and
19811         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
19812         _gdk_windowing_window_init, rename gdk_image_init to
19813         _gdk_windowing_image_init.
19814         
19815         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
19816         (gdk_draw_layout): Remove check for destroyed window, 
19817         because all the drawable methods already check it.
19818         
19819         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
19820         Add gdkpixmap.c which contains implementation of GdkDrawable
19821         virtual table (by chaining to a platform-specific implementation
19822         object).
19823         
19824         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
19825         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
19826         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
19827         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
19828         GdkColormapPrivate. 
19829
19830         * gdk/gdktypes.h: #include <glib-object.h>
19831
19832         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
19833         Move most functionality to platform-specific implementation
19834         object. GdkWindow itself now handles the backing store, then
19835         chains to the platform-specific implementation.
19836         (gdk_window_get_window_type): return GdkWindowType of the window.
19837         (gdk_window_peek_children): New routine, returns the children of 
19838         a GdkWindow
19839         (gdk_window_get_children): Was in X11-specific code and did 
19840         XQueryTree. Changed to simply return a copy of window->children; 
19841         so it can go in cross-platform code.
19842         
19843         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
19844
19845         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
19846         GdkColormap; just changed to use the new private data instead
19847         of casting to GdkColormapPrivate.
19848
19849         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
19850         gdk_cursor_new().
19851
19852         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
19853         (private data member in the GObject). 
19854         (xdnd_manager_source_filter): Function had broken 
19855         error handling, fix it (use gdk_error_trap_push).
19856
19857         * gdk/x11/gdkdrawable-x11.c: This file now implements
19858         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
19859         base class is purely for the convenience of the X port,
19860         and not part of the interface to cross-platform GDK.
19861
19862         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
19863         
19864         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
19865         specific to X, and returned by the create_gc virtual method
19866         of GdkDrawableImplX11. 
19867         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
19868         rather than gchar, this was also changed in the GdkGC vtable.
19869         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
19870         mask is 0, return immediately, instead of checking every flag.
19871         This is faster, and keeps us from segfaulting if values is NULL
19872         and the mask contains some nonzero flags.
19873
19874         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
19875         GdkWindow.
19876
19877         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
19878         GdkWindowPrivate is gone.
19879
19880         * gdk/x11/gdkim-x11.c: rename things that got renamed.
19881
19882         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
19883         remove the image_put stuff that got transferred to GdkDrawable.
19884         
19885         * gdk/x11/gdkinput.c: renamings
19886
19887         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
19888
19889         * gdk/x11/gdkpixmap-x11.c: GObject conversion
19890
19891         * gdk/x11/gdkprivate-x11.h: indentation fixes
19892
19893         * gdk/x11/gdkproperty-x11.c: renamings
19894
19895         * gdk/x11/gdkselection-x11.c: renamings
19896
19897         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
19898         implements the platform-specific "impl" object.
19899         Moved gdk_window_get_children to gdk/gdkwindow.c
19900
19901         * gdk/x11/gdkx.h: Remove all the private structs and private datas
19902         that no longer exist. Add declaration of GdkGCX11 object here.
19903         Fix all the macros to still work. 
19904
19905         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
19906         GdkDragContext from the boxed types since they are now GObjects.
19907
19908         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
19909         moved xthickness/ythickness into the instance. GtkStyleClass
19910         functions are now in the standard vtable for GtkStyle, so you have
19911         to create a GObject subclass to write a theme engine.
19912         (gtk_style_copy): fixed a leaked PangoFontDescription
19913         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
19914         can be the standard GObject function.
19915         
19916         * Throughout GTK:
19917         s/style->klass->[xy]thickness/style->[xy]thickness
19918         s/pango_layout_unref/g_object_unref/
19919
19920         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
19921         
19922         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
19923         accessing GDK internals.
19924
19925         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
19926         accessing GDK internals.
19927
19928 2000-06-18  Elliot Lee  <sopwith@redhat.com>
19929
19930         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
19931
19932         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
19933         problem by calculating event position relative to the trough
19934         rather than the slider.
19935         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
19936
19937         * gdk/gdkgc.h: Add GDK_NOR.
19938
19939         * configure.in, Makefile.am: Add modules top level dir
19940         * configure.in: Only use pangox library if building x11 target.
19941         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
19942
19943 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
19944
19945         * gtk/gtkcolorsel.c: Change private class member to be named
19946         private_data throughout the file.
19947
19948         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
19949         private_data to avoid clashing with keyword.
19950
19951 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
19952
19953         * gdk/gdkdnd.h: Add comment to remove warning.
19954
19955 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
19956
19957         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
19958         Byelorussian language; changed the Makefile and file names 
19959         to reflect that.
19960
19961 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
19962
19963         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
19964         rather than gdk_window_hide; this makes things work
19965         correctly if the window is programmatically hidden while
19966         iconified.
19967
19968 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
19969
19970         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
19971         cut and paste typo where wrong pixmap was being
19972         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
19973
19974 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
19975
19976         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
19977         Add helper function to compute format / bytes 
19978         relationship. Use in a couple places to fix up
19979         errors which assume 8 * format.
19980
19981         * gtk/gtkselection.c (gtk_selection_request): Use 32
19982         rather than 8 * sizeof (GdkAtom), to work correctly
19983         on Alpha.
19984
19985 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
19986
19987         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
19988         libgtk.la
19989         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
19990         versions
19991
19992         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
19993         checking macros return NULL since the function has a return value.
19994
19995 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
19996
19997         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
19998         GTK+ from building at all.
19999
20000         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
20001
20002 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
20003
20004         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
20005         gtk/Makefile.am: make it possible to configure gtk for different
20006         targets on the same platform. The library name is now 
20007         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
20008         flag. Only the x11 target compiles right now.
20009         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
20010         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
20011         * gdk/nanox/gdk*generic*: delete generic region code.
20012         * gdk/linux-fb/gdk*generic*: delete generic region code.
20013         * README.nanox: update information.
20014         
20015 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
20016
20017         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
20018         prepend not append. (Pointed out by Brett Hall.)
20019
20020 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
20021
20022         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
20023
20024 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
20025
20026         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
20027         need this later, and this makes sure that the atexit for
20028         glib gets called after that for GDK, so atexits are
20029         properly ordered for object leak checking.
20030
20031         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
20032
20033         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
20034         pango_x_shutdown_display()
20035
20036         * gtk/simple.c (main): Close window on destroy.
20037
20038 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
20039
20040         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
20041         to treat initial creation different from setting with 
20042         regards to the graphics-exposures parameter, so add a parameter
20043         indicating whether this is initial or not.
20044
20045 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
20046
20047         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
20048         to sort of work by adding an extra return_exposes arg
20049         to gdk_event_translate() - it might be better to simply
20050         deprecate the function altogether and force people to rewrite
20051         without it. gdk_window_scroll() handles most of it, and where
20052         gdk_window_scroll() doesn't work, simply redrawing more does.
20053
20054         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
20055         assertion.
20056
20057         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
20058
20059         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
20060         bunch of pretty much useless /* Print debugging info */ comments 
20061         which had drifted away from the code they were commenting.
20062
20063 2000-06-02  Havoc Pennington  <hp@pobox.com>
20064
20065         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
20066         is in working order.
20067         
20068         * gtk/testtext.c: Change to reflect anonymous mark API
20069
20070         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
20071
20072         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
20073         field, which was unused.
20074
20075         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
20076         saves some typing.
20077
20078         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
20079
20080         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
20081         flag on the insertion point and selection bound
20082
20083         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
20084         make mark-manipulation functions take a GtkTextMark* instead of a
20085         mark name.
20086         
20087         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
20088         GtkTextMarkBody; will be used to detect attempts to delete
20089         the permanent marks (insert and selection bound)
20090
20091         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
20092
20093 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
20094
20095         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
20096         flag to on.
20097
20098         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
20099         Honor DOUBLE_BUFFRED_FLAG
20100
20101         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
20102         function to set the DOUBLE_BUFFERED flag.
20103
20104         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
20105         or not exposes done on the widget should be double-buffered.
20106
20107         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
20108         to be what would be expected. (Fixes problem with a
20109         g_return_if_fail() validating a TextDirection enumeration)
20110
20111 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
20112
20113         * gtk/gtkwidget.c: Remove all references to 
20114         offscreen flag which was no longer used.
20115
20116         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
20117
20118         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
20119         for non-null label_widget->parent.
20120
20121         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
20122         which no longer was used.
20123
20124         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
20125
20126         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
20127         for null arguments.
20128
20129         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
20130         check for destroyed windows.
20131
20132 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
20133
20134         * gtk/gtkimmulticontext.c: Add a finalize method and unref
20135         the slave context there.
20136
20137         * gtk/gtkinvisible.[ch]: Make reference counting behavior
20138         identical to GtkWindow.
20139
20140 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
20141
20142         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
20143         pangox to here, so we can write them independent of rendering
20144         system, using GDK primitives.
20145
20146         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
20147         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
20148         since we have a rendering-system independent implementation in
20149         terms of draw_glyphs().
20150         
20151         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
20152         function to render a single line.
20153
20154         * gdk/x11/gdkpango.c: Move the guts of this file mostly
20155         into ../gdkpango.c, which simplifies things, since we
20156         don't have to deal with raw X gc's.
20157
20158 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
20159
20160         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
20161         get the logical attributes for a given GtkTextLine.
20162
20163 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
20164
20165         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
20166         g_locale_get_codeset() to g_get_codeset() change.
20167
20168 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
20169
20170         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
20171         descriptions.
20172
20173         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
20174         the entry.
20175
20176         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
20177         redoing (vastly simplifying) for Pango. Still needs quite
20178         a bit of work. (Size selection is currently poor. List of 
20179         predefined sizes is not a good idea, since all of these
20180         sizes won't necessarily be distinct.)
20181
20182 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
20183
20184         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
20185         CODESET results for LANG=C.
20186
20187 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
20188
20189         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
20190         which takes a stringized pango font description;
20191         ignore the older 'font' and 'fontset' declarations.
20192
20193         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
20194         field with a GdkFont derived via gdk_font_from_description(),
20195         for compatibility. (Should we just remove it entirely?
20196         Probably too much compatibility breakage, but people
20197         should be migrating to the new Pango stuff as quickly
20198         as possible.)
20199
20200 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
20201
20202         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
20203
20204 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
20205
20206         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
20207         redoing; there are some bugs in size allocation right
20208         now, the semi-existant distinction between header / day
20209         fonts was removed, but, with Pango, could actually
20210         be made functional in a nice way.
20211         
20212         * gtk/testcalender: Move calender from examples into this
20213         directory as a test program. (We really need to restrcture
20214         testgtk into a whole directory full of tests for every
20215         widget or functionality group, separated into multiple .c
20216         files.)
20217
20218 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
20219
20220         * gtk/testgtk.c (file_exists): Fix stupid typo that
20221         was keeping RC file from being loaded.
20222
20223         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
20224         RC file font code.
20225
20226 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
20227
20228         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
20229         Add function to load a GdkFont from a PangoFontDescription.
20230
20231 2000-05-29  Tor Lillqvist  <tml@iki.fi>
20232
20233         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
20234         variable should be of type GdkEventPrivate.
20235
20236 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
20237
20238         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
20239         to have any widget for the label, use a GtkLabel widget
20240         to display the text. (Based partially on a patch from
20241         Anders Carlson.)
20242
20243         (Quite a bit of code reorganization - strip 90% of the
20244         guts out of gtkaspectframe and add a single virtual
20245         func to GtkFrameClass - compute_child_allocation.)
20246
20247 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
20248
20249         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
20250         (Removed clist->row_center_offset field because caching
20251         it wasn't saving time or code, added private function
20252         _gtk_clist_create_cell_layout()).
20253
20254 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
20255
20256         * gtk/gtkaccellabel.c: Pangoized.
20257
20258         * gtk/[hv]ruler.c: Pangoized
20259
20260 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
20261
20262         * gtk/gtkfilesel.c (gtk_file_selection_init):
20263         Use gtk_clist_set_column_auto_resize() to remove need
20264         need for manual column width computations.
20265
20266 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
20267
20268         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
20269         ensuring Pango correctness, and considerably simplifying the
20270         code.
20271         
20272         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
20273
20274         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
20275         getting of numbers of lines.
20276
20277         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
20278         to the actual requested width of the lable, not to the wrap
20279         width we set.
20280
20281         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
20282
20283         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
20284           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
20285
20286         * gtk/gtktextview.c: Fix structure inheritance.
20287
20288         * gtk/gtkprogressbar.c: Pangoize.
20289
20290 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
20291
20292         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
20293         in a function.
20294
20295         * gtk/gtktextlayout.c (find_display_line_above): Fixed
20296         bug with computing line tops.
20297
20298         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
20299
20300 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20301
20302         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
20303         and y_offset coordinates to do what we need now. (The offset between
20304         buffer and layout coordinates has been reintroduced, but is a 
20305         bit different than before.)
20306
20307         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
20308         handle the adjustments ourselves, and scroll as necessary using
20309         the new gdk_window_scroll().
20310         
20311         The advantage of this is that when we are incrementally revalidating,
20312         we are essentially rearranging things around the visible portion
20313         of the screen. With the old setup, the visible portion of the
20314         screen was moved around in the layout, so scrolling and redrawing
20315         to track that caused jumping of the display. Since we now
20316         control the scrolling ourselves, we can suppress this and
20317         only redraw when things actually change.
20318
20319 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
20320
20321         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
20322         the region not just redisplay it after-all, since we store the
20323         cursors in the LineDisplay. (Ugly interactions here between
20324         GtkLayout and GtkTextBTree here.)
20325         
20326         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
20327
20328 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
20329
20330         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
20331         Added function to scroll contents of a window while keeping the
20332         window constant. Works by XCopyArea or guffaw-scrolling depending
20333         on the details of how the window is set up. (guffaw-scrolling
20334         still needs to be filled in.)
20335
20336 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
20337
20338         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
20339         move the debugging that was tied to a global variable
20340         to that.
20341
20342         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
20343
20344         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
20345         validated flag, in line data instead of setting height/width to
20346         -1. This allows us to perform operations with partially invalid
20347         buffer (using the old size for invalid lines) and thus to do
20348         incremental vaidation. Keep height/width aggregates up to date
20349         when deleting text and rebalancing the tree.
20350
20351         * gtk/gtktextbtree.[ch]: Add functions validate a line
20352         (gtk_text_btree_validate_line), and to validate up
20353         to a number of pixels (gtk_text_btree_validate).
20354
20355         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
20356         that indicates that something is changed and a revalidation
20357         pass is needed. Change ::need_repaint to ::changed, and
20358         make it take old and new yranges instead of a rectangle.
20359
20360         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
20361         the line_data_destroy() function from 
20362         gtk_text_btree_add_view() to a virtual function in 
20363         GtkTextLayout
20364
20365         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
20366         since we are handling partial repaints in a different fashion
20367         now.
20368
20369         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
20370         of the selection instead of queueing a repaint on the
20371         entire widget.
20372
20373         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
20374         get_selection_bounds() down to btree, make the function
20375         in buffer a wrapper around the btree function.
20376
20377         * gtk/gtktextlayout.[ch]: Add functions to check if the
20378         layout is valid and to recompute either a range of pixels
20379         aroudn a line or a certain total number of pixels.
20380
20381         * gtk/gtktextlayout.[ch]: Cache a single line display;
20382         now that we only redraw the needed portions, the hit rate
20383         for this cache is quite high.
20384         
20385         * gtk/gtktextview.[ch]: Keep track of the first paragraph
20386         on the screen so that when re-laying-out the buffer, we can
20387         keep the same place. This requires connecting to ::value_changed
20388         on the adjustments
20389
20390         * gtk/gtktextview.[ch]: Add idle functions to revalidate
20391         the buffer after we receive an ::invalidated signal.
20392         
20393 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
20394
20395         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
20396         to max of allocation and layout size, not just to the
20397         layout size.
20398
20399         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
20400         Invalidate window so it gets redrawn properly.
20401
20402         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
20403         to mean the entire window.
20404
20405         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
20406         into public header.
20407
20408 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
20409
20410         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
20411         to get the name of a mark.
20412
20413         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
20414         to find the paragraph from a y position.
20415
20416 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
20417
20418         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
20419         nodes have width/height >= 0, not > 0.
20420
20421 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
20422
20423         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
20424         Add a size_only flag, so when we only need the size, we don't create
20425         useless appearance attributes.
20426
20427         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
20428         duplicate setting of font description.
20429
20430         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
20431
20432 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
20433
20434         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
20435         EXTRA_DIST. It does not work well when the file that
20436         everything depends on is not in the tarball.
20437
20438 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
20439
20440         * gtk/testgtk.c: Some hacks and fixes so that it basically
20441         works when not sitting in the GTK+ build tree.
20442
20443 2000-05-03  Havoc Pennington  <hp@redhat.com>
20444
20445         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
20446         Properly determine the ordering of the tag root and the current
20447         line within the tree. Previous algorithm only worked if the tag
20448         root's immediate parent was the common root of both the current
20449         line and the tag root.
20450
20451 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
20452
20453         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
20454         alignment.
20455
20456         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
20457         the widget text directional dynamically.
20458
20459         * gtk/gtktextview.[ch]: Added functions to get and set default
20460         wrap mode.
20461
20462 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
20463
20464         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
20465         in cursor location computation.
20466
20467 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
20468
20469         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
20470         vadjusment values properly when layout gets smaller.
20471
20472         * gtk/gtktextview.c (need_repaint_handler): Areas being
20473         passed in are far completely inaccurate, and sometimes
20474         too small, so, for now, just queue a redraw on the
20475         whole visible region.
20476
20477 2000-04-25  Havoc Pennington  <hp@redhat.com>
20478
20479         * gtk/gtktextbtree.c (summary_destroy): new function to 
20480         destroy tag summary nodes
20481         (gtk_text_line_next_could_contain_tag): this function was 
20482         totally broken if the line passed in wasn't below the tag
20483         root. Fix it.
20484         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
20485         "wildcard" case, we have to do a linear scan. Blah.
20486         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
20487         we have to do the linear scan
20488         (tag_removed_cb): When a tag is removed from the tag table, 
20489         remove the GtkTextTagInfo node from the btree.
20490         (gtk_text_btree_spew): Implement the spew function, for 
20491         our debugging pleasure.
20492
20493 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
20494
20495         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
20496         a problem with referring to the wrong buffer.
20497
20498         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
20499
20500         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
20501         font description to gtk_style_new() - otherwise things
20502         don't work without a .gtkrc file.
20503
20504         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
20505         tags table if we create it ourself, too.
20506
20507         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
20508         it was conflicting with XKB modifiers.
20509
20510         * gtk/gtktextview.[ch]: Add simple support for 
20511         GtkIMContext.
20512
20513 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
20514
20515         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
20516         with deletion from last commit.
20517
20518 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
20519
20520         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
20521         in the context from the current locale.
20522         
20523         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
20524         context, not hardcoded value.
20525
20526         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
20527         not logical.
20528
20529 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
20530
20531         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
20532         attributes - that doesn't handle partial-glyph selection
20533         properly. Instead use new pango_layout_line_get_x_ranges()
20534         functionality to draw the selection.
20535
20536         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
20537         now properly handles out-of-range coordinates.
20538
20539         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
20540
20541         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
20542         public.
20543
20544         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
20545         for paragraphs opposite to the base direction of the widget.
20546
20547         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
20548
20549         * gtk/gtktextlayout.c: Don't split segments on marks, since that
20550         causes Arabic words to reshape as you cursor through.
20551
20552         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
20553         cursor position when moving vertically with the arrow keys and
20554         scrolling with page-up/page-down. (Arrow keys save only the X,
20555         scrolling saves both X and Y.)
20556
20557         This means you can line-up / line-down or page-up / page-down
20558         without losing your place, and also that moving vertically
20559         with the cursor keys keeps the same X position, not the same
20560         character count:
20561
20562         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
20563         arrow keys move by display lines, not paragraphs.
20564
20565 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
20566
20567         * gtk/gtklayout.c: Make sure that the bin window is at least
20568         as big as the allocation. (Should we also make sure that the
20569         bin window is big enough to completely cover widget->window?)
20570
20571         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
20572         function to get the onscreen rectangle.
20573
20574         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
20575         for offsets in window coordinates.
20576
20577 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
20578
20579         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
20580         confusion.
20581
20582         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
20583         from the widget direction.
20584
20585         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
20586         Add a "direction" attribute.
20587
20588         * gtk/gtktextview.c: global s/tkxt/text_view/.
20589
20590         * gtk/testtext.c: Added long block of text in Arabic, to test out
20591         the direction attributes. (Some problems with the shaping system
20592         for arabic become obvious - like the fact the cursor splits words
20593         into unjoined pieces.)
20594
20595 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
20596
20597         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
20598
20599         * gtk/gtktextlayout.c: Fix up alignment.
20600
20601         * gtk/testtext.c: Add some tests for centering, wrapping.
20602
20603 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
20604
20605         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20606         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
20607         If we wrote GTK+-specific layout-render function this could just replace
20608         the draw_layout() operation in the vtable.
20609
20610         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
20611         pango_layout_get_cursor_pos() and use that function.
20612
20613         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
20614         is a non-static symbol.
20615
20616         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
20617         with gtk_text_btree_find_line_by_y()
20618
20619         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
20620         renderer that handles GtkTextAppearance attributes.
20621
20622         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
20623
20624           - Move the values in the style that don't affect geometry into a
20625             GtkTextAppearance structure.
20626           - Change underline to take a PangoUnderline and "font" a string
20627             representation of a font description
20628           - Add a "font_desc" attribute which takes a FontDescription structure.
20629
20630         * gtk/gtktextlayout.[ch]:
20631
20632           - Get rid of the display-line list per each line. Instead, we
20633             generate, on demand, a GtkTextLineDisplay structure which]
20634             contains a PangoLayout * and other necesary information
20635             (offsets, cursor locations) for displaying a paragraph.
20636           - Get rid of the code to wrap lines, create display chunks,
20637             etc. Instead, we just go through a paragraph and convert
20638             it into the necessary inputs to a PangoLayout.
20639           - Implement a new attribute type, GtkTextAttrAppearance. This
20640             holds a GtkTextAppearance, and is used to pass colors, 
20641             stipple, etc, through from the layout to the display without
20642             having to use lots and lots of individual attributes.
20643           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
20644             in terms of PangoLayout functions.
20645         
20646         * gtk/gtktextview.c: 
20647          
20648           - Handle passing the necessary PangoContext to the layout
20649           - Some fixups in painting to deal with the automatic backing store
20650             and offsetting of GTK+-1.4
20651           - Add a style_set handler so that the default style reacts
20652             properly to theme changes.
20653         
20654         * gtk/gtktext?*.[ch]: Random code-style fixes.
20655
20656         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
20657
20658 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
20659
20660         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
20661         in original form preparatory to Pango-ization and gdkimcontext-ization.
20662
20663 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
20664
20665         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
20666         so that we can derive from gtkimcontext in language bindings properly.
20667
20668 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
20669
20670         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
20671         Add a compose table including (almost) all the compose combinations
20672         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
20673         data in the XIM implementation.
20674
20675         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
20676         Moved functions to convert keyvalues from and to unicode here from
20677         the win32 port and made them public.
20678
20679 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
20680
20681         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
20682
20683 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
20684
20685         * gtk/gtkimcontext.[ch]: Base class for new input context system
20686
20687         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
20688         the real input context implementation to be loaded from modules
20689         and switched on the fly.
20690
20691         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
20692         context that just does direct keysymbol => unicode translation.
20693
20694         * gtk/gtkentry.[ch]: Start switching editing over to using
20695         GtkInputContext. (No handling of preedit yet.)
20696
20697 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
20698
20699         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
20700         many substitutions. (klass should not be subsituted.)
20701
20702 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
20703
20704         * configure.in: Add checks for Pango
20705
20706         * configure.in docs/Makefile.am: Add test for sgml2html
20707         and allow 'make dist' without building html, but print out
20708         warnings in that case. (For making snapshots)
20709
20710         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
20711         Add Pango libraries and C flags
20712
20713         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20714         Add function (gdk_draw_layout) to draw a pango layout.
20715
20716         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
20717         for getting Pango contexts for GDK.
20718
20719         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
20720
20721         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
20722         editing.
20723
20724         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
20725         keysym => unicode translations. More languages can be added
20726         here, but real input-method support is needed.
20727
20728         * docs/Changes-1.4.txt: Added note about entry behavior.
20729         
20730         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
20731         to set the reading direction for a widget and the global direction.
20732         Add test which allows toggling the global direction. Two private
20733         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
20734
20735         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
20736           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
20737
20738         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
20739
20740         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
20741         underlining now handled by Pango.
20742
20743         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
20744         to RCStyle and Style. (Having both this and the old font name and GdkFont 
20745         is temporary.)
20746
20747         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
20748         convenience functions for creating contexts and layouts for widgets.
20749
20750         * gtk/testgtk.c: Enhance label tests with multilingual labels.
20751
20752 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
20753
20754         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
20755         titles to be active, even if they aren't visible.
20756         (gtk_clist_column_titles_passive):  Ditto.
20757
20758 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
20759
20760         * gtkmenu.c:
20761         * gtkmenu.h:
20762         * gtktypeutils.h: Spelling/grammar fixes in comments.
20763
20764 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
20765
20766         * gdk/nanox/*.h: add missing header files.
20767
20768 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
20769
20770         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
20771         send_event to TRUE.
20772         (gtk_drawing_area_size): queue a resize.
20773
20774 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
20775
20776         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
20777         the handlers, also invalidate them. bug nailed down by Karl Nelson
20778         <kenelson@ece.ucdavis.edu>.
20779
20780 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
20781
20782         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
20783         "(nil)" foundries, patch from Grigorios Magklis.
20784
20785         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
20786         on non-available fonts, based on a patch by Grigorios Magklis
20787         <maglis@cs.rochester.edu>.
20788
20789 2000-05-18  Elliot Lee  <sopwith@redhat.com>
20790
20791         * gdk/x11/gdkregion-generic.c: If a region does not have any
20792         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
20793         instead of GDK_OVERLAP_RECTANGLE_IN.
20794
20795 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
20796
20797         * gtk/gtklayout.c (gtk_layout_map): Remove references to
20798         OFFSCREEN, as it is no longer necessary.
20799
20800 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
20801
20802         * gtk/gtkcolorsel.c: Patch from David Santiago
20803         <mrcooger@cyberverse.com> to change things so that the 
20804         indicator of the active palette entry is done independently,
20805         not via the focus, since it should always be visible.
20806
20807 2000-05-17  Tor Lillqvist  <tml@iki.fi>
20808
20809         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
20810         refcount leaks as in the X11 backend.
20811
20812         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
20813         cosmetics.
20814
20815         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
20816         backend. Add _gdk_windowing_window_destroy().
20817
20818         * gtk/gtkcolorsel.c: Include correct backend-specific header.
20819         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
20820         either, but these probably do exist on nanox?)
20821         
20822         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
20823         which isn't necessarily defined by <math.h>.
20824
20825         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
20826         ancestry past GtkObject.
20827
20828         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
20829         from DLL on Win32.
20830
20831         * gtk/gtk.def: Update corresponding to recent changes.
20832
20833         * gtk/makefile.{cygwin,msc}: Updates.
20834
20835 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
20836
20837         * docs/Changes-1.4.txt: A bit of editing.
20838
20839         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
20840         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
20841         to clear the update area for the window, and clear it
20842         when hiding a window.
20843
20844         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
20845         if window destroyed.
20846
20847         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
20848
20849         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
20850         gdk_window_destroy() to the generic code, since there was a lot of 
20851         window-system-independent logic it in. Add a function:
20852         
20853          _gdk_window_destroy() 
20854
20855         to the internal API to destroy a window without unreferencing it.
20856         Add a function:
20857
20858          _gdk_windowing_window_destroy()
20859
20860         That does the windowing-system-dependent part of destroying 
20861         the window.
20862
20863 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
20864
20865         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
20866
20867 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
20868
20869         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
20870         Make gtk_widget_shape_combine_mask() keep a reference count on
20871         the pixmap since it keeps it around.
20872
20873 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
20874
20875         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
20876         leak.
20877
20878         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
20879         leak with event filters.
20880
20881 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
20882
20883         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
20884         signal handlers with the right data arguments. (Fixes
20885         some warnings when a widget was repeatedly set as a drag
20886         destination.)
20887
20888         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
20889         window so we can avoid avoid setting the DND properties on the
20890         toplevel window repeatedly.
20891
20892 2000-05-13  Tor Lillqvist  <tml@iki.fi>
20893
20894         * gdk/win32/gdkwin32.h: Define more message types missing from
20895         mingw headers.
20896
20897         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
20898         call gdk_window_destroy_notify(). It was never called. This
20899         probably meant that the GdkWindow was never freed. Thanks Owen for
20900         noticing (!).
20901
20902         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
20903         window as destroyed before calling DestroyWindow(). DestroyWindow()
20904         causes a call to the window procedure (gdk_WindowProc), which
20905         calls gdk_event_translate(), which calls
20906         gdk_window_destroy_notify(), which gets confused unless the window
20907         is set as destroyed.
20908
20909         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
20910         this function to indicate it's win32 only. Put inside #ifdef
20911         G_ENABLE_DEBUG.
20912
20913         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
20914         debugging function. (gdk_event_translate:) Add a default branch
20915         that uses the above function to print debug messages with all
20916         Windows messages symbolically.
20917
20918         * gdk/win32/gdkprivate-win32.h: Declare it, and
20919         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
20920
20921 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
20922
20923         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
20924         public header file.
20925
20926 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
20927
20928         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
20929
20930         * gtk/gtktext.c: made the adjustments no-construct args, simply
20931         provide default adjustments.
20932         (gtk_text_destroy): release adjustments.
20933
20934         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
20935         adjustment argument non-construct.
20936
20937         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
20938         instead of in finalize.
20939         (gtk_progress_get_text_from_value): 
20940         (gtk_progress_get_current_text): 
20941         (gtk_progress_set_value): 
20942         (gtk_progress_get_percentage_from_value): 
20943         (gtk_progress_get_current_percentage): 
20944         (gtk_progress_set_percentage): 
20945         (gtk_progress_configure): ensure an adjustment is present.
20946
20947 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
20948
20949         * gtk/gtkcolorsel.[hc]:
20950         * gtk/gtkcolorseldialog.[hc]:
20951         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
20952         their parent implementation, use bit fields for boolean values, don't
20953         create unused widgets, usage of glib types, braces go on their own
20954         lines, function argument alignment, #include directives etc. etc. etc..
20955
20956         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
20957
20958 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
20959
20960         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
20961
20962         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
20963         of NULL.
20964
20965         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
20966         to freed data.
20967         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
20968
20969         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
20970         to NULL when the toplevel is getting destroyed.
20971         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
20972         (gtk_menu_destroy): 
20973         (gtk_menu_init): store the information of whether we have to
20974         readd the initial child ref_count during destruction in a new
20975         GtkMenu field needs_destruction_ref_count.
20976
20977         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
20978         here, those reading: learn from my mistake! ;)
20979         in order for set_?adjustment to support a default adjustemnt if
20980         invoked with an adjustment pointer of NULL, the code read (pseudo):
20981         if (v->adjustment) unref (v->adjustment);
20982         if (!adjustment) adjustment = adjustment_new ();
20983         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
20984         now imagine the first unref to actually free the old adjustment and
20985         adjustment_new() creating a new adjustment from the very same memory
20986         portion. here, the latter comparision will unintendedly fail, and
20987         all hell breaks loose.
20988         (gtk_viewport_set_hadjustment):
20989         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
20990         after unreferencing it.
20991
20992         * gtk/gtkcontainer.[hc]: removed toplevel registration
20993         functions: gtk_container_register_toplevel(),
20994         gtk_container_unregister_toplevel() and
20995         gtk_container_get_toplevels() which had wrong semantics
20996         anyways: it didn't reference and copy the list.
20997
20998         * gtk/gtkwindow.c: we take over the container toplevel registration
20999         bussiness now. windows are registered across multiple destructions,
21000         untill they are finalized. the initial implicit reference count
21001         users are holding on windows is removed with the first destruction
21002         though.
21003         (gtk_window_init): ref & sink and set has_user_ref_count, got
21004         rid of gtk_container_register_toplevel() call. add window to
21005         toplevel_list.
21006         (gtk_window_destroy): unref the window if has_user_ref_count
21007         is still set, got rid of call to
21008         gtk_container_unregister_toplevel().
21009         (gtk_window_finalize): remove window from toplevel list.
21010         (gtk_window_list_toplevels): new function to return a newly
21011         created list with referenced toplevels.
21012         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
21013
21014         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
21015         adjustment a non-construct arg.
21016         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
21017         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
21018         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
21019
21020         * gtk/gtkrange.c: added some realized checks.
21021         (gtk_range_destroy): get rid of the h/v adjustments in the
21022         destroy handler instead of finalize. remove timer.
21023         (gtk_range_get_adjustment): demand create adjustment.
21024
21025         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
21026         we simply create them on demand now and get rid of them in
21027         the destroy handler.
21028         (gtk_viewport_destroy): get rid of the h/v adjustments in the
21029         destroy handler instead of finalize.
21030         (gtk_viewport_get_hadjustment): 
21031         (gtk_viewport_get_vadjustment): 
21032         (gtk_viewport_size_allocate): demand create h/v adjustment
21033         if required.
21034
21035         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
21036         gtk_widget_real_destroy () functionality.
21037         (gtk_widget_real_destroy): reinitialize with a new style, instead
21038         of setting widget->style to NULL.
21039
21040 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
21041
21042         * gtk/gtkcalendar.c:
21043         * gtk/gtkbutton.c: ported _get_type() implementation over to
21044         GType, either to preserve memchunks allocation facilities,
21045         or because Gtk+ 1.0 GtkTypeInfo was still being used.
21046
21047         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
21048         over. prepare for ::destroy to be emitted multiple times.
21049         removed reference tracer magic. chain into GObjectClass.shutdown()
21050         to emit ::destroy signal.
21051
21052         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
21053         fundamental.
21054
21055         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
21056         cludge.
21057
21058         * gtk/gtksocket.c:
21059         * gtk/gtkplug.c:
21060         * gtk/gtklayout.c:
21061         * gtk/gtklabel.c:
21062         * gtk/gtkargcollector.c:
21063         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
21064         not being a fundamental anymore, and to work with the new
21065         type system (nuked fundamental type varargs clutter).
21066
21067         * gtk/*.c: install finalize handlers in the GObjectClass
21068         part of the class structure.
21069         changed direct GTK_OBJECT()->klass accesses to
21070         GTK_*_GET_CLASS().
21071         changed direct object_class->type accesses to GTK_CLASS_TYPE().
21072
21073         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
21074         GType. made most of the GTK_*() type macros and Gtk* typedefs
21075         simple wrappers around macros and types provided by GType.
21076         most notably, a significant portion of the old API vanished:
21077         GTK_TYPE_MAKE(),
21078         GTK_TYPE_SEQNO(),
21079         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
21080         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
21081         GTK_TYPE_ARGS,
21082         GTK_TYPE_CALLBACK,
21083         GTK_TYPE_C_CALLBACK,
21084         GTK_TYPE_FOREIGN,
21085         GtkTypeQuery,
21086         gtk_type_query(),
21087         gtk_type_set_varargs_type(),
21088         gtk_type_get_varargs_type(),
21089         gtk_type_check_object_cast(),
21090         gtk_type_check_class_cast(),
21091         gtk_type_describe_tree(),
21092         gtk_type_describe_heritage(),
21093         gtk_type_free(),
21094         gtk_type_children_types(),
21095         gtk_type_set_chunk_alloc(),
21096         gtk_type_register_enum(),
21097         gtk_type_register_flags(),
21098         gtk_type_parent_class().
21099         replacements, where available are described in ../docs/Changes-1.4.txt.
21100         implemented compatibility functions for the remaining API.
21101
21102         * configure.in: depend on glib 1.3.1, use gobject module.
21103
21104 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
21105
21106         * TODO.xml: Various updates to current status.
21107
21108 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
21109
21110         * gtk.m4: Print out version when test succeeds.
21111
21112 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
21113
21114         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
21115         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
21116         
21117         (Original triangle color selector from Simon Budig
21118         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
21119         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
21120         Santiago <mrcooger@cyberverse.com>)
21121
21122         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
21123         out into a separate widget.
21124
21125         * gtk/testgtk.c: Add some checkbuttons for toggling palette
21126         and opacity controls.
21127
21128 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
21129
21130         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
21131         snuck in prematurely.
21132
21133 2000-05-07  Tor Lillqvist  <tml@iki.fi>
21134
21135         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
21136         had deleted a ! operator by mistake, which caused
21137         GDK_SELECTION_CLEAR events never to be generated, which caused
21138         only the first copy to the clipboard from an gtkeditable to
21139         actually cause a copy to the Windows clipboard.
21140
21141 2000-05-06  Tor Lillqvist  <tml@iki.fi>
21142
21143         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
21144         compilation, too. Current mingw gcc distributions include the
21145         necessary headers. Also the necessary IIDs are now in mingw
21146         headers/libraries, and own definitions unnecessary.
21147
21148         More hacking on OLE2 DND, still doesn't work though, and thus
21149         ifdeffed out.
21150
21151         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
21152         here, too.
21153
21154 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
21155
21156         * gdk/nanox/*: nano-X port work in progress.
21157         * gdk/simple.c: simple test for Gdk.
21158         * README.nanox: notes about the port: read this first!
21159         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
21160         with nano-X.
21161
21162 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
21163
21164         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
21165         gdk_window_clear() into common code, implement in terms of
21166         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
21167         not redirected to the backing rectangle.
21168
21169 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
21170
21171         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
21172         EXTRA_DIST. It does not work well when the file that
21173         everything depends on is not in the tarball.
21174
21175 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
21176
21177         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
21178         with recursion where process_updates() is called from
21179         an expose handler. (GtkTextView is highly broken in
21180         doing this, but it should work, so it is a nice test
21181         case.)
21182
21183 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
21184
21185         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
21186         handle the case where updates are queued during processing of
21187         updates.
21188
21189 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
21190
21191         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
21192         window is on gdk_display - use that instead of segfaulting.
21193
21194 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
21195
21196         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
21197         broken and require an empty arg, give it to them.
21198
21199 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
21200
21201         * gtk/gtklabel.h: indentation fixes.
21202
21203 2000-05-02  Tor Lillqvist  <tml@iki.fi>
21204
21205         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
21206         draw too narrow or too low arcs, they seem to fail, at least with
21207         some display drivers.
21208
21209         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
21210
21211         Large changes to the Win32 backend, partially made necessary by
21212         the changes to the backend-independent internal
21213         structures. Attempts to implement similar backing store stuff as
21214         on X11. The current (CVS) version of the Win32 backend is *not* as
21215         stable as it was before the no-flicker branch was merged. A
21216         zipfile with that version is available from
21217         http://www.gimp.org/win32/. That should be use by "production"
21218         code until this CVS version is usable. (But note, the Win32
21219         backend has never been claimed to be "production quality".)
21220
21221         * README.win32: Add the above comment about versions.
21222
21223         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
21224
21225         * gdk/gdk.def: Update.
21226
21227         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
21228         presumably be replaced by some more better mechanism as 1.4 gets
21229         closer to release shape.
21230
21231         * gdk/makefile.{cygwin,msc}: Update.
21232
21233         * gdk/win32/*.c: Correct inclusions of the backend-specific and
21234         internal headers. Change code according to changes in these. Use
21235         gdk_drawable_*, not gdk_window_* where necessary.
21236
21237         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
21238         our old DND.
21239
21240         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
21241         to interpret single characters as UTF-8. Thanks to Hans Breuer.
21242         Use correct function name in warning messages.
21243
21244         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
21245         GSourceFuncs gdk_event_prepare and gdk_event_check.
21246         (gdk_event_get_graphics_expose): Do implement, use
21247         PeekMessage. Thanks to Hans Breuer.
21248         (event_mask_string): Debugging function to print an GdkEventMask.
21249         (gdk_pointer_grab): Use it.
21250
21251         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
21252         (old) book I used claimed was Hangul actually is CJK Unified
21253         Ideographs Extension A. Also, Hangul Syllables were missing.
21254         Improve logging.
21255
21256         * gdk/win32/gdkgc-win32.c: Largish changes.
21257
21258         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
21259         g_win32_getlocale() from GLib, and not setlocale() to get current
21260         locale name.
21261
21262         * gdk/win32/gdkprivate-win32.h
21263         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
21264         gdkwin32.h, similarily as in the X11 backend.
21265
21266         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
21267         assignment was used instead of equals in if test. Thanks to Hans
21268         Breuer.
21269
21270         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
21271         the X11 version.
21272
21273         * gdk/win32/makefile.{cygwin,msc}
21274         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
21275         path to the Win32 headers that works also with the mingw compiler.
21276
21277         * gtk/gtkstyle.c: Include <string.h>.
21278
21279 2000-04-26  Havoc Pennington  <hp@redhat.com>
21280
21281         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
21282         replacing the broken gtk_label_get ()
21283
21284 2000-04-15  Havoc Pennington  <hp@pobox.com>
21285
21286         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
21287         this keeps scanner scripts from getting confused.
21288
21289         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
21290         data, rather than void
21291
21292 2000-04-15  Tor Lillqvist  <tml@iki.fi>
21293
21294         * gtk/gtkclist.c (gtk_clist_motion)
21295         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
21296         with is_hint FALSE, get x and y from the event. They used to be
21297         used uninitialised. The Win32 backend never sends motion events
21298         marked as hints. This for instance fixes the annoying file and
21299         font selector behaviour in the Win32 version.
21300
21301 2000-04-14  Tor Lillqvist  <tml@iki.fi>
21302
21303         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
21304         gtk_private_n_signals variables, they are used by some software,
21305         sigh.
21306
21307         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
21308         installation directory from the Registry, where the installer
21309         should have put it.
21310
21311 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
21312
21313         * gdk/x11/Makefile.am: Fix problem with installation directory for
21314         gdkx.h
21315
21316         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
21317         <mrcooger@cyberverse.com> so that when selecting menus with the
21318         mouse, the first item will not be selected, but when selecting
21319         with an accelerator, or navigating left-right on a menubar with
21320         the menus popped up, the first item will be selected.
21321
21322 2000-04-05  Dan Damian  <dand@dnttm.ro>
21323
21324         * configure.in: Added "ro" to ALL_LINGUAS.
21325
21326 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
21327
21328         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
21329         indentation.
21330
21331         * Makefile.am (EXTRA_DIST): Fix typo.
21332
21333         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
21334         to catch gdkconfig.h
21335
21336         * gtk/gtkitemfactory.c: Added FIXME.
21337
21338 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
21339
21340         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
21341         s/return_if_fail/return_val_if_fail/g and add a return value.
21342
21343 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
21344
21345         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
21346         merge slipup.
21347
21348         * gdk/gdkinput.h: Fix missing line from merge.
21349
21350 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
21351
21352         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
21353         instead of gdkprivate.h.
21354
21355 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
21356
21357         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
21358         parent class to correctly be GtkDialogClass.
21359
21360 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
21361
21362         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
21363         toplevel windows and their immediate children by their parents,
21364         since the size of toplevel windows is out of our immediate
21365         control and we don't get any real benefit from trying to track
21366         this size for clipping.
21367
21368         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
21369         for input_only windows.
21370
21371         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
21372         to fix some hacks and make sure that we don't try to set the
21373         background of input only windows.
21374
21375 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
21376
21377         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
21378         the _really_ internal stuff, and leave gdkprivate.h for the fake private
21379         stuff that we've traditionally exposed.
21380
21381         * gdk/**.c: Use gdkinternals.h where appropriate.
21382
21383         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
21384         not include gdkprivate-x11.h, move all stuff of conceivable public
21385         interest into gdkx.h; keep all really private stuff in
21386         uninstalled header gdkprivate-x11.h.
21387
21388         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
21389         image->image_put on windows through a new function _gdk_window_draw_image()
21390         to allow us to do backing store for images. (Sort of ugly)
21391
21392         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
21393         contexts locally so that we can offset them properly when drawing 
21394         onto backing pixmaps.
21395
21396         * gdk/gdkinput.h: Reindented
21397
21398         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
21399         pixmap or color for the window, so we can properly initialize
21400         our double-buffer pixmaps, and also so that we temporarily set
21401         a background of None while scrolling.
21402
21403         * gdk/gdkregion.h: Revise region boolean operators to have an
21404         interface that is actually convenient - switch from creating new
21405         regions on every op, to "methods" that modify existing regions
21406         (A = A OP B). 3 argument forms which allow dest == src, would also
21407         be possible, but the current interfaces seem to map nicely
21408         onto what needs to be done. (There is quite a lot of region
21409         code in GDK now.)
21410
21411         * gdk/gdkregion.h: Add constructor from rectangle and a copy
21412         operator.
21413
21414         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
21415         gdkpoly-generic.h: Copy region code from Xlib, switch it over
21416         to 32 bit coordinates, modify it to be mostly GTK+ style
21417         and to have interfaces that match gdkregion.h.
21418
21419         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
21420         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
21421         create a backing pixmap and redirect all drawing to
21422         that backing pixmap until a matching gdk_window_end_paint().
21423
21424         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
21425         Create a special drawable class for GtkWindow's that 
21426         redirects the drawing to the backing pixmap as necessary
21427         and then calls the real operations in _gdk_windowing_window_class.
21428
21429         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
21430         Store invalid region for each window. Generate expose events for invalid
21431         region in an idle. This replaces both the expose compression
21432         and the redrawing queuing in GTK+. It is both more efficient and
21433         simpler than either one individually and far more so then the
21434         combination.
21435
21436         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
21437         Emulate 32 bit coordinates for windows with 16 bit coordinates
21438         by offsetting drawing, guffaw scrolling techniques and
21439         mapping/unmapping child windows as necessary.
21440
21441         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
21442         where, when invalid regions are processed, the region is stored,
21443         and if expose events come in that are detectably duplicate
21444         the processed exposes (by comparison of event serial numbers),
21445         the stored region is subtracted out of those exposes.
21446
21447         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
21448         regions newly exposed when scrolling or resizing windows.
21449         This, combined with forcing processesing of queued invalidated
21450         regions, gives nice flicker-free scrolling.
21451
21452         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
21453         invalidated regions after every scroll.
21454
21455         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
21456         emulation in GDK. Its, for all practical purposes just a
21457         GtkViewport/GtkFixed hybrid now.
21458
21459         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
21460         (16-bit) structures as necessary instead of just casting.
21461
21462         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
21463         in terms of the structures from gdkregion-generic.c, using appropriate
21464         offsets from GDK to X11 coordinates. Cache clip mask and
21465         origin and ts origin locally and only flush to the server
21466         when drawing, to avoid constantly setting and resetting these
21467         values when offsetting GC's for scrolling and backing pixmaps.
21468
21469         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
21470
21471         * gtk/gtkcontainer.c: Call process_all_updates at end
21472         of resizing to reduce flicker. (Avoids having redraw
21473         lag arbitrarily behind resize under some circumstances)
21474
21475         * gtk/gtkentry.c: Remove old backing store code, and simply take
21476         advantage of the new backing store capabilities of GDK.
21477
21478         * gtk/gtkmain.c: Simple implementation of widget backing
21479         store - simply push a paint while handling each expose.
21480         (Should really be configurable widget for widget.)
21481         
21482         * gtk/gtkwidget.c: Remove all the old complicated redraw
21483         code, and simply invalidate the GDK windows from
21484         gdk_window_queue_clear(), etc. (Sigh, so much carefully
21485         debugged complexity ... gone to the winds.)
21486
21487         Remove all the code for suppressing expose events while
21488         resizes are pending; this isn't needed since the invalid
21489         areas won't be processed until after the resizes are
21490         processed, since they are in a lower priority idle.
21491
21492 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
21493
21494         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
21495         and height of dest rectangle for non-intersecting rectangles.
21496
21497 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
21498
21499         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
21500         for GdkRectangle.
21501
21502 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
21503
21504         * gdk/gdk{events,image,private,types,window}.h
21505          gdk/x11/gdkinputprivate.h: Change all coordinates
21506          from int16 to int. Also, Change width and height from
21507          unsigned to signed to avoid all the stupid C 
21508          signedness bugs.
21509
21510 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
21511
21512         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
21513         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
21514         Add some more detailed checking.
21515
21516         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
21517         New function to retrieve the depth of a drawable.
21518
21519         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
21520         field, reorder fields to save memory. 
21521
21522 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
21523
21524         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
21525         of the background image instead of scaling the background down to
21526         a line.
21527
21528         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
21529         which temporarily set slider to wrong size.
21530
21531         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
21532         queue_clear().
21533
21534 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
21535
21536 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
21537
21538         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
21539
21540 2000-03-17  Tor Lillqvist  <tml@iki.fi>
21541
21542         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
21543         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
21544
21545         * gdk/win32/gdkfont-win32.c
21546         * gdk/win32/gdkproperty-win32.c
21547         * gdk/win32/gdkselection-win32.c
21548         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
21549         now declared such.
21550
21551 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
21552
21553         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
21554
21555 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
21556
21557         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
21558         is called without trapping X errors.
21559
21560 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
21561
21562         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
21563         way into the fontset lists.
21564
21565 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
21566
21567         * gtk/gtkthemes.h: add extern "C" scope.
21568
21569 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
21570
21571         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
21572         to make appends to the list constant. (gtk-guy-990901-0.patch)
21573
21574 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
21575
21576         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
21577         for the typename hash table.
21578
21579 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
21580
21581         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
21582         to make sure we never divide by zero. 
21583         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
21584
21585 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
21586
21587         * gtk/gtkfontsel.c: Apply patch from
21588         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
21589         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
21590
21591         Also, some cleanups in atom handling.
21592
21593 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
21594
21595         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21596         not GtkWidget.
21597
21598 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
21599
21600         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
21601         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
21602         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
21603         more guint wrap-around bugs before going to bed.
21604
21605 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
21606
21607         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
21608         guint wrap arounds in allocation.width.
21609
21610         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
21611         process untill we fit the allocation given.
21612
21613 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
21614
21615         * gtk/gtkwidget.c:
21616         (gtk_widget_unrealize): guard widget access with ref/unref
21617         around signal emission.
21618         (gtk_widget_hide): same here, but also check its destroyed
21619         state before queueing a resize.
21620
21621 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
21622
21623         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
21624         of gtk_default_insensitive_bg as insensitive base color.
21625
21626         * gtk/gtktext.c (gtk_text_style_set): set the background color according
21627         to the widget's state.
21628         (gtk_text_realize): same here.
21629         (gtk_text_state_changed): same here.
21630         (draw_bg_rect): compare background color against base[] from
21631         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
21632
21633 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
21634
21635         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
21636         grabs are active, unless a delete event is send to the toplevel
21637         of the currently grab holding widget.
21638
21639 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
21640
21641         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
21642         debugging g_print's.
21643
21644 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
21645
21646         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
21647         ever make the scrolled-window requisition ever depend on the 
21648         visibility state of the scrollbars for the AUTOMATIC policy. 
21649         This breaks the GTK+ requisition model, and causes loops.
21650
21651 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
21652
21653         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
21654         the default font to avoid problems with XFree86-4.0 where the
21655         default charset is iso10646-1, not iso8859-1.
21656
21657 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
21658
21659         * acinclude.m4
21660         * config.guess
21661         * config.sub
21662         * ltconfig
21663         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
21664
21665         * gtk/Makefile.am: minor cosmetic consistency tweak
21666
21667 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
21668
21669         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
21670         the activate_time to 0, so that we handle a quick
21671         press/release press/release properly and don't suppress
21672         the second release. (Red Hat bug #7545)
21673
21674 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
21675
21676         * gtk/gtkctree.c (row_delete):
21677         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
21678         bugs with destruction notifier, *always* update internal
21679         structures *before* calling user code.
21680
21681 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
21682
21683         A few more fixes for bug #5487, #2051, #2677.
21684         * gtk/gtkclist.c : 
21685         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
21686         not GDK_BUTTON_PRESS.
21687         (resync_selection): resync only if selection_mode is
21688         GTK_SELECTION_EXTENDED
21689         * gtk/gtkctree.c (resync_selection): same here
21690
21691 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
21692
21693         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
21694         gdk_drag_get_selection() and gtk_menu_detach().
21695
21696         [ From Jeroen Ruigrok/Asmodai ]
21697
21698 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
21699
21700         * gtk/gtknotebook.c (gtk_notebook_size_request): 
21701         page->tab_label can be NULL.
21702
21703 2000-01-25  Havoc Pennington  <hp@pobox.com>
21704         
21705         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
21706         arg is boolean
21707
21708         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
21709
21710         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
21711
21712         * gdk/gdkproperty.c (gdk_property_get): return boolean
21713
21714         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
21715
21716         * gdk/gdkim.c (gdk_im_ready): return boolean
21717
21718         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
21719
21720         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
21721         glib clash, should fix glib)
21722
21723         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
21724         (gdk_get_show_events): return gboolean, and canonicalize 
21725         to TRUE/FALSE
21726
21727         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
21728         colormap is private
21729         (gdk_colors_alloc): gboolean whether to be contiguous
21730         (gdk_color_equal): return gboolean since we are a predicate
21731         and not a qsort() (this looks semi-wrong due to glib breakage,
21732         IMO glib should be fixed)
21733         
21734         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
21735         (gdk_get_use_xshm): return gboolean
21736         (gdk_pointer_is_grabbed): return gboolean
21737
21738         * gdk/gdk.h: Change prototypes to match all the above changes,
21739         and re-run egtk-format-protos as required.
21740
21741 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
21742
21743         * gtk/gtkctree.c (resync_selection): 
21744         * gtk/gtkclist.c (resync_selection):
21745
21746         Return immediately if clist->drag_pos < 0. This is a workaround
21747         for the corrupt state that the clist gets into when a
21748         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
21749
21750         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
21751         
21752         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
21753         variable from recent commit.
21754
21755 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
21756
21757         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
21758
21759 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
21760
21761         * gtk/Makefile.am: prefix all autogenerated source that get build in
21762         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
21763         in builddir. since we subsequently cd into srcdir for autogeneration,
21764         the paths have to be stripped from the target file names, thusly we
21765         use $(@F) as target names now.
21766         put a comment about configure.in's --disable-rebuilds option,
21767         which can be used for non-writable source directories, for development
21768         setups though, srcdir has to be *writable*.
21769
21770 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
21771
21772         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
21773           Finish the job of allowing event to be NULL.
21774           (Fixes bug #4283, reported by Chris Blizzard)
21775
21776         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
21777           things so that the cursor appears on screen, properly
21778           take into account INNER_BORDER.
21779           (Fixes bug #4754, reported by Antonio Campos)
21780
21781 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
21782
21783         * gtk/gtknotebook.c (gtk_notebook_map): Don't
21784           show the tab_label unless it itself is visible.
21785
21786           gtk/gtknotebook.c (gtk_notebook_size_request):
21787           Do a better job of making sure that the visibility
21788           of the tab label corresponds to whether it should
21789           be mapped or not.
21790
21791 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
21792
21793         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
21794           Use the requisition, not the allocation, since the
21795           allocation has not necessarily been computed yet.
21796           (Pointed out by Eugene Osintsev)
21797
21798 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
21799
21800         * gtk/gtkstyle.c (gtk_style_new): Dont' set
21801           style/base[GTK_STATE_INSENSITIVE] both to
21802           gtk_default_insensitive_bg!
21803           (Bug #2187, reported by Jonathan Blandford)
21804
21805         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
21806           Add Alt_L, Alt_R to list of invalid accelerators.
21807           (Bug #3736, reported by Vlad Harchev)
21808
21809 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
21810
21811         * gtk/gtkfilesel.c (open_ref_dir): Fix several
21812         bugs which occured after an attempt to open 
21813         invalid home directory left cmpl_state->reference_dir == NULL.
21814
21815          - completion on files in home directory didn't work
21816          - completion on an empty string caused  segfault
21817
21818          (Bug #3678, reported by Steve Ratcliffe)
21819
21820         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
21821         cut and paste error that was causing scales to
21822         be incorrectly positioned.
21823         (Bug #2956,
21824          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
21825
21826 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
21827
21828         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
21829         when checking for dcgettext, if we've found we needed
21830         it for dgettext.
21831 +
21832 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
21833
21834         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21835         queue_clear on NO_WINDOW widgets during a reparent,
21836         since at that point the window and widget heirarchies
21837         are out of sync. This stops crashing in some cases
21838         (the scrolled window reparent test, for instance), and
21839         _probably_ won't cause drawing errors.
21840
21841         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
21842         test do what it was supposed to do and be robust against
21843         window closings, etc. (Bug #2443)
21844
21845 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
21846
21847         * gtk/gtkentry.c: Fix return values on mouse events.
21848         (Bug #2686, Sky <seb_sky@yahoo.com>)
21849
21850         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
21851         (pointed out by George Lebl)
21852
21853         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
21854         (From Ettore Perazzoli  <ettore@helixcode.com>)
21855  
21856 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
21857
21858         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
21859         clicks between rows or outside calender area correctly.
21860         (Patch from Damon Chaplin)
21861
21862         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
21863         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
21864           Call destroy function when overwriting existing data. 
21865           (Pointed out by Damon Chaplin)
21866
21867 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
21868
21869         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
21870           which was causing problems on various systems with Xmu.
21871           This hasn't been needed for a very long time.
21872           (Fixes #1185 3167)
21873
21874 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
21875
21876         * gdk/gdki18n.h: Include <ctype.h> when defining
21877           gdk_isw* in terms of is* as a fallback.
21878           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
21879
21880 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
21881
21882         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
21883           realize the widget when it is size allocated!
21884           (old, old bug)
21885
21886         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
21887           Removed unused call to gdk_window_get_size() that
21888           showed up when the above was fixed.
21889
21890 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
21891
21892         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
21893           fix up widget->window when the widget is a
21894           NO_WINDOW container widget.
21895
21896 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
21897
21898         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
21899           to account for the fact that feof() does _not_ 
21900           return TRUE on errors, and thus avoid infinite loops
21901           when trying to use gdk_pixmap_create_from_xpm()
21902           on unreadable values.
21903
21904 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
21905
21906         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
21907
21908 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
21909
21910         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
21911           gdk_gc_set_dashes to take gint8 instead of gchar to
21912           make it clearer that it is _not_ a NULL terminated string.
21913
21914         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
21915           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
21916           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
21917           arguments.
21918
21919 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
21920
21921         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
21922         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
21923         background size relative to our allocation, guard against small
21924         allocations, we may have not yet been size allocated.
21925
21926 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
21927
21928         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
21929         not just version == 3. We implement all 3 + most of 4 - 
21930         (we don't support matching text/plain;charset=iso-8859-1
21931         to a dest that expects text/plain). We'll still advertise
21932         3 to be safe, but any client implementing version >= 3
21933         must interoperate with 3.
21934         
21935 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
21936
21937         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
21938         background and gc members, add a warning in gtk_tooltips_set_color()
21939         indicating that this function is deprecated.
21940
21941 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
21942
21943         * docs/gtkfaq.sgml: FAQ Update:
21944           - Minor cleanups (Emmanuel, me)
21945           - New questions:
21946                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
21947                 How can I retrieve the text from a GtkMenuItem? (timj)
21948                 How do I validate/limit/filter the input to a GtkEntry? (me)
21949                 Memory does not seem to be released when I free the list
21950                         nodes I've allocated (timj)
21951
21952 2000-03-07  Tor Lillqvist  <tml@iki.fi>
21953
21954         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
21955         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
21956         for which it is no use to call GetLastError onWin9x.
21957         (gdk_other_api_failed) New function, for general error
21958         reporting without calling GetLastError.
21959         (gdk_win32_api_failed) OTOH, this function always calls
21960         GetLastError. (gdk_win32_last_error_string) Remove this function,
21961         GLib has the equivalent now.
21962
21963         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
21964         call them with function name, file name and line number in the
21965         arguments.
21966
21967         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
21968         functions.
21969         
21970         * gtk/gtk.def: Add some missing entry points.
21971
21972         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21973         gtk_paned_set_gutter_size, which don't exist any longer, as void.
21974         
21975         Fixes by Hans Breuer:
21976
21977         * gdk/makefile.msc: Update for debugging.
21978
21979         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
21980         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
21981         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
21982         in the dash_list.
21983
21984         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
21985         the x11 backend.
21986
21987         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
21988
21989         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
21990
21991 2000-03-04  Tor Lillqvist  <tml@iki.fi>
21992
21993         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
21994         just pixel value of background colour.
21995
21996         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
21997         containing code snippet previously duplicated in a couple of
21998         places.
21999         
22000         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
22001         gdk_colormap_color.
22002
22003         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
22004         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
22005         events for autorepeated Shift, Control and Alt keys. Use
22006         gdk_colormap_color.
22007
22008         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
22009         pointer is inside the window the cursor of which we are setting,
22010         call SetCursor immediately.
22011
22012         * gdk/win32/makefile.cygwin
22013         * gtk/makefile.cygwin: If we don't have the build number stamp
22014         file, use zero.
22015
22016         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22017         gtk_paned_set_gutter_size as empty.
22018
22019         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
22020         
22021 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
22022
22023         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
22024           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
22025           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
22026           docs/gtk_tut.sgml docs/gtk.texi TODO:
22027
22028           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
22029
22030 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
22031
22032         * gtk/gtkcalendar.c: Implement num_marked_dates,
22033           and don't emit mutiple day_selected signals on
22034           month_prev.
22035
22036 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
22037
22038         * docs/make-todo (lineno): let title and logo be configurable so
22039         that GNOME can use this script too.
22040
22041         * TODO.xml: added logourl and a title
22042
22043 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
22044
22045         * TODO.xml: Added some UI items, and an explanatory
22046         comment at the top of the file.
22047
22048 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
22049
22050         * TODO.xml: some updates, added abunch of new entries.
22051         a note for those fiddeling with this file, when done
22052         with it, invoke:
22053         $ ./docs/make-todo TODO.xml >/dev/null
22054         and correct output errors before comitting changes.
22055
22056 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
22057
22058         * TODO.xml: Added XML-structured TODO file.
22059         * docs/make-todo: python script to turn TODO.xml into
22060           pretty XML output. 
22061
22062 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
22063
22064         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
22065         the function to let it draw the seven dots, instead of the old,
22066         much maligned, method.
22067         (draw_dot): New function to draw a dot.
22068
22069         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
22070         to draw the handle inside the border width as opposed to outside.
22071         Use paint function instead of gdk_draw_point.
22072
22073         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
22074         to draw the handle inside the border width as opposed to outside.
22075         Use paint function instead of gdk_draw_point.
22076
22077         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
22078         Change indenting to be more GTK like.
22079
22080 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
22081
22082         * docs/gtk_tut.sgml: New section on GtkCalendar
22083         * examples/calendar: Update example code
22084
22085 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
22086
22087         * docs/gtkfaq.sgml: FAQ Update
22088
22089 2000-02-19  Anders Carlsson  <andersca@gnu.org>
22090
22091         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
22092         to prevent the scroll event to be propagated upwards.
22093
22094 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
22095
22096         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
22097         OwnerGrabButtonMask from button entries for
22098         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
22099
22100         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
22101         to the event mask (which will result in button/press release
22102         being added to the event mask on Unix) so scrolling works
22103         for layouts in scroll windows.
22104
22105         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
22106
22107         Patch from Anders Carlsson  <andersca@gnu.org> to add
22108         a scroll event.
22109
22110         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
22111         scrolling to the "Test Scrolling" part of testgtk.
22112  
22113         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
22114  
22115         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
22116         it against GDK_SCROLL.
22117  
22118         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
22119         way of mouse wheel scrolling.
22120  
22121         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
22122  
22123         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
22124  
22125         * gtk/gtkmain.c: Removed previous mouse wheel hack.
22126  
22127         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
22128         gdk_event_mask_table.
22129  
22130         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
22131         GdkEventScroll handler.
22132  
22133         * gdk/gdkevents.h: Added GdkEventScroll structure.
22134  
22135 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
22136
22137         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
22138         and Anders Carlsson to change the Paned widgets so that they
22139         can be dragged from anywhere along the length. Also change
22140         the way that this is drawn to make this apparent.
22141
22142         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
22143         from George Lebl to check that option_menu->menu is present
22144         before getting history.
22145
22146 2000-02-14  Tor Lillqvist  <tml@iki.fi>
22147
22148         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
22149         before the assertion for non-NULL segment list.
22150
22151         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
22152         Seems that pattern brushes *must* be 8x8 pixels! At least on my
22153         machine, but it might be display driver dependent. Sigh, so make
22154         sure the stipple is that size. Does Windows suck or what?
22155
22156         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
22157         places.
22158
22159 2000-02-13  Havoc Pennington  <hp@pobox.com>
22160
22161         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
22162         refcount to 1
22163         (gdk_cursor_new): init refcount to 1
22164
22165         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
22166
22167 2000-02-13  Tor Lillqvist  <tml@iki.fi>
22168
22169         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
22170         so that we don't have to do unnecessary settings to the HDC.
22171
22172         * gdk/win32/gdkdrawable-win32.c
22173         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
22174         gdk_gc_predraw.
22175
22176         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
22177         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
22178         GDI paths, call WidenPath to get the outline of the stroken path,
22179         and then fill the outline (with the brush that was built from the
22180         stipple).
22181
22182         * gdk/win32/gdkgc-win32.c: Factor out common code from
22183         _gdk_win32_gc_new and gdk_win32_gc_set_values into
22184         gdk_win32_gc_values_to_win32values. Use correct colour for
22185         SetBkColor() (Until now the code actually used a random colour in
22186         the call to SetBkColor()... but that didn't show up as not many
22187         GDI APIs use the background colour. Pattern (opaque stippled)
22188         brushes do.)
22189
22190         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
22191         gdk_win32_api_failed): New functions for error logging.
22192
22193         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
22194         WIN32_API_FAILED to call them, passing function or file name and
22195         line number.
22196
22197         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
22198
22199         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
22200         GdkColor for foreground and background in GdkGCWin32Data.
22201
22202         * gdk/makefile.cygwin: Link in the resource object separately.
22203
22204         * gdk/win32/rc/gdk.rc
22205         * gtk/gtk.rc (New file)
22206         * gdk/win32/makefile.cygwin
22207         * gtk/makefile.cygwin: Update build number in DLLs automatically,
22208         as in GLib.
22209
22210 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
22211
22212         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
22213         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
22214         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
22215         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
22216         parameters given and cursor->ref_count. coding style fixups.
22217
22218         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22219         not GtkWidget.
22220         
22221         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
22222         fix up widget macros and add _GET_CLASS() variant.
22223         
22224         * gtk/*.c: some GtkType fixups.
22225
22226 2000-02-09  Tor Lillqvist  <tml@iki.fi>
22227
22228         * gdk/win32/gdkproperty-win32.c
22229         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
22230         were reversed.
22231
22232 2000-02-04  Tor Lillqvist  <tml@iki.fi>
22233
22234         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
22235         g_filename_to_utf8 to convert the font names Windows gives us from
22236         whatever is the default codepage to UTF-8.
22237         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
22238         in the other direction.
22239
22240         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
22241         error in debugging output.
22242
22243 2000-02-02  Tor Lillqvist  <tml@iki.fi>
22244
22245         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
22246         and height parameters to gdk_window_clear_area(). Not minus one.
22247
22248 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
22249
22250         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
22251         checks if the widget passed to gtk_drag_get_data() was not the
22252         dest widget.
22253
22254 2000-02-01  Tor Lillqvist  <tml@iki.fi>
22255
22256         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
22257         g_filename_from_utf8 functions (which were added a moment ago to
22258         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
22259         size buffers.
22260
22261         gtk_file_selection_get_filename returns the filename in the C
22262         runtime encoding. It calls g_filename_from_utf8, but copies the
22263         returned string to a static buffer, which is returned. I think
22264         this is better than returning the result from g_filename_from_utf8
22265         directly, which would mean all apps that use it would have to free
22266         the return value. Or should this function care about this issue at
22267         all? Maybe a new function with clearly defined semantics.
22268
22269         * gtk/gtkfilesel.h: Add comment about
22270         gtk_file_selection_get_filename returning the filename in the C
22271         runtime's encoding.
22272
22273         * README.win32
22274         * gdk/gdk.def
22275         * gdk/makefile.{cygwin,msc}
22276         * gtk/gtk.def: Updates.
22277
22278         * gdk/gdkcursor-win32.c: Initialise refcount.
22279
22280 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
22281
22282         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
22283
22284 2000-01-30  Havoc Pennington  <hp@pobox.com>
22285
22286         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
22287         destroy
22288
22289         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
22290
22291         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
22292         implemented in platform-specific code
22293
22294         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
22295
22296         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
22297         underscore in front
22298
22299         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
22300         put an underscore in front
22301
22302         * gdk/gdkcursor.c: new file, implements
22303         gdk_cursor_ref/gdk_cursor_unref
22304
22305         * gdk/gdkcursor.h: Refcount GdkCursor
22306
22307         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
22308
22309 2000-01-29  Tor Lillqvist  <tml@iki.fi>
22310
22311         * gdk/gdkwindow.h
22312         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
22313
22314 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
22315
22316         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
22317         structures to properly inherit from GtkWidget not GtkBin.
22318
22319 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
22320
22321         * gtk+.spec.in: Added lib/gtk+/include/* to %files
22322         (bug #5178 - Peter Wainright)
22323         
22324         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
22325         so that it will be installed.
22326         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
22327
22328 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
22329
22330         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
22331         for the GtkStyleClass vtable const.
22332
22333         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
22334         take a const string argument like GtkTranslateFunc. This will
22335         require changes in use code.
22336
22337 2000-01-19  Tor Lillqvist  <tml@iki.fi>
22338
22339         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
22340         semantics (to mimic the X11 backend, which just calls XClearArea)
22341         is to check for zero width (and height), and in that case use the
22342         window's width minus x (height minus y). This fixes for instance
22343         some redraw problems with gtkclist, which were easily noticeable
22344         in the gtk file selection widget.
22345
22346         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
22347         windows.
22348
22349 2000-01-13  Tor Lillqvist  <tml@iki.fi>
22350
22351         * configure.in
22352         * gdk/Makefile.am
22353         * gdk/x11/Makefile.am
22354         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
22355         (bug #5177).
22356         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
22357         out later.
22358
22359 2000-01-09  Tor Lillqvist  <tml@iki.fi>
22360
22361         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
22362         WM_MOVE for iconified or invisible windows. This fixes various
22363         problems when minimising windows. Thanks to Bernd Herd.
22364
22365 2000-01-05  Tor Lillqvist  <tml@iki.fi>
22366
22367         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
22368         backend's draw_lines method, not draw_points.
22369
22370 2000-01-02  Tor Lillqvist  <tml@iki.fi>
22371
22372         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
22373         before Owen's reorganisation: Don't have queued_events and
22374         queued_tail statics in this file, but use gdk_queued_events and
22375         gdk_queued_tail. This makes exposure event compression work again.
22376
22377         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
22378         seem to be needed?
22379
22380 1999-12-30  Tor Lillqvist  <tml@iki.fi>
22381
22382         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
22383         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
22384         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
22385         doesn't do anything.
22386
22387         * gdk/gdk.def: Add gdk_xid_table_insert.
22388
22389         * gdk/win32/gdkprivate-win32.h
22390         * gdk/win32/gdkevents-win32.c
22391         * gdk/win32/gdkinput-win32.c
22392         
22393         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
22394         extension_events field in the GdkWindowWin32Data struct. Use only
22395         the extension_events field in GdkWindowPrivate. Previously one was
22396         set, and the other one tested, which broke tablet
22397         functionality. Thanks to Keishi Suenaga for pointing this out.
22398
22399 1999-12-18  Tor Lillqvist  <tml@iki.fi>
22400
22401         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
22402         When handling a single character (text length == 1), don't handle
22403         it as if it was UTF-8.
22404
22405 1999-12-11  Tor Lillqvist  <tml@iki.fi>
22406
22407         * Makefile.am: Distribute README.win32.
22408         
22409         * gdk/Makefile.am
22410         * gdk/win32/Makefile.am: Distribute Win32 files.
22411
22412         * gdk/makefile.msc: New file.
22413
22414         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
22415         after label).
22416
22417         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
22418         gdk_error_code as GDKVAR, as they are referred outside GDK.
22419
22420         * gdk/win32/makefile.msc: Update.
22421
22422         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
22423         tweaks. Check only if at least one of those Unicode subrange bits
22424         we care for is set. If no code page bits are set, guess (wildly)
22425         based on the charset.
22426
22427         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
22428
22429         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
22430         non-NULL.
22431
22432         * gtk/gtkdnd.c
22433         * gtk/gtklayout.c
22434         * gtk/gtkplug.c
22435         * gtk/gtkselection.c
22436         * gtk/gtksocket.c
22437         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
22438         appropriate. There must be a cleaner way to handle this?
22439
22440         * gtk/gtkrc.c: Must include windows.h on Win32.
22441
22442         * gtk/testgtk.c: No need to include gdkx.h.
22443
22444         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
22445
22446 1999-12-07  Tor Lillqvist  <tml@iki.fi>
22447
22448         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
22449         the rbearing is set to the same as the width, but this should be
22450         fixed.
22451
22452 1999-12-06  Tor Lillqvist  <tml@iki.fi>
22453
22454         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
22455         function. If Windows doesn't tell us what Unicode subranges a font
22456         covers, guesstimate based on the codepages it covers. This will
22457         hopefully help those Windows versions or fonts that don't give us
22458         any useful Unicode subrange information with GetTextCharsetInfo.
22459         Call this function in gdk_font_load_internal.
22460
22461         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
22462         minor changes.
22463
22464 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
22465
22466         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
22467         New function, long needed.
22468
22469 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
22470
22471         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
22472         only_if_exists argument of gdk_atom_intern to
22473         bool.
22474
22475 1999-11-25  Tor Lillqvist  <tml@iki.fi>
22476
22477         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
22478         Fix two copy&paste errors.
22479
22480         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
22481         win32 has changed.
22482
22483         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
22484         GdkWin32SingleFont struct.
22485
22486         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
22487         subranges of loaded fonts. Clear font signature first, in case
22488         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
22489         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
22490
22491         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
22492         Unoffset clip region.
22493
22494 1999-11-23  Tor Lillqvist  <tml@iki.fi>
22495
22496         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
22497         event->any.window before calling filter functions.
22498
22499 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
22500
22501         * gtk/gtkgamma.h: Adapt cast macros to standard.
22502
22503 [ Merges from 1.2 ]
22504
22505 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
22506
22507         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
22508         If translation does not include a '/', use entire
22509         translation instead of crashing.
22510
22511 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
22512
22513         * docs/gtk_tut.sgml:
22514         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
22515
22516 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
22517
22518         * gtk/gtkselection.c (gtk_target_list_remove): Use
22519         g_list_remove_link, not g_list_remove.
22520
22521         [ From Geert Bevin <gbevin@thunderstorms.org> ]
22522         
22523 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
22524
22525         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
22526         statement upon unselection (how the heck did that slip in?).
22527
22528 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
22529
22530         * gtk/gtktext.c (gtk_text_freeze): 
22531         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
22532         in frozen state (and aparently crashes). patch provided by Anders
22533         Melchiorsen <and@kampsax.dtu.dk>.
22534
22535 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
22536
22537         * fix insensitive default/focus widget activation,
22538         reported by Matt Goodall <mgg@isotek.co.uk>.
22539
22540         * gtk/gtkwindow.c (gtk_window_key_press_event): 
22541         (gtk_window_activate_default):
22542         (gtk_window_activate_focus):
22543         return handled=FALSE for actiavtion of insensitive default
22544         widgets. return handled=TRUE for activation of insensitive
22545         focus widgets. don't activate in either case.
22546
22547 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
22548
22549         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
22550         and $glib_cflags to match library order and in the
22551         theory that an old version of GLib is more likely to
22552         be in the include directory for X then vice-versa.
22553         (Bug #2776)
22554
22555 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
22556
22557         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
22558         to determine the locale for fontsets, not LC_MESSAGES;
22559         the user may want English messages with a handling
22560         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
22561         will still be broken) (Bug #2891)
22562
22563 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
22564
22565         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
22566
22567 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
22568
22569         * gtk/gtkrc.ko: Changed the Korean default fontset.
22570
22571 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
22572
22573         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
22574         where when scrolling to the left or top double exposes
22575         were done, causing major slowdowns.
22576
22577 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
22578
22579         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
22580         names to lowercase and alphanumeric, before looking
22581         them up.
22582
22583         * gtk/Makefile.am: Install codeset variant gtkrc files
22584         with normalized names.
22585
22586 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
22587
22588         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
22589         popup menus when the menu is already visible, but its parent
22590         is still hidden, (happens after tornoff window got hidden).
22591
22592 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
22593
22594         * gtk/Makefile.am (install-data-local): Fix
22595         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
22596         deleted, causing error messages on install.
22597
22598 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
22599
22600         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
22601         the handle as well, since we now sometimes ignore
22602         exposes on the handle while resizing.
22603
22604 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
22605
22606         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
22607         extra g_free introduced in one of the last one or two 
22608         commits.
22609
22610 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
22611
22612         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
22613         consistent, put each style that a gtkrc.* file creates
22614         in a unique namespace, remove old files before installing.
22615
22616 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
22617
22618         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
22619         gtk_rc_init is called multiple times. (Yes, people who
22620         do that have bugs in their code.)
22621
22622 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
22623
22624         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
22625         Remove it since it's generated by the Makefile anyway
22626
22627 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
22628
22629         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
22630         device->info.axes for core pointer.
22631
22632 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
22633
22634         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
22635         idle_id, to deal with obsolete, broken C libraries.
22636
22637 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
22638
22639         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
22640         allocation->x/y twice!
22641
22642         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
22643         consistent with gtk_vscale_pos_trough().
22644
22645 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
22646
22647         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
22648         be queueing a resize on a toplevel container between
22649         the time we show it and when we map it. So, we need
22650         to test GTK_WIDGET_VISIBLE() for toplevels, and only
22651         use GTK_WIDGET_DRAWABLE() for child windows.
22652
22653 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
22654
22655         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
22656         (fixes bug #2144)
22657
22658 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
22659
22660         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
22661         container DRAWABLE (instead of VISIBLE), so we don't queue
22662         resizes on non-toplevel containers.
22663
22664 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
22665
22666         * gtk/gtkselection.[ch]: Make the data argument
22667         const guchar *.
22668
22669 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
22670
22671         * gtk/gtkwindow.c: Try to behave sensibly if 
22672         the focus widget is the window itself. (Should
22673         we allow this at all?)
22674
22675 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
22676
22677         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
22678         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
22679         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
22680         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
22681         in prototypes and implementations consistent (Tomas Ogren).
22682
22683         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
22684         before the widget is unparented (reported by damon).
22685
22686         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
22687         since we provide unsigned data anyways.
22688
22689 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
22690
22691         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
22692         the call to gtk_tooltips_layout_text() until later.
22693
22694         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
22695         Call gtk_widget_ensure_style() before using the style.
22696
22697 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
22698
22699         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
22700         for old widgets that don't propagate draws to all
22701         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
22702
22703 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
22704
22705         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
22706         for a redraw but just the widget that requested the resize.
22707
22708 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
22709
22710         * gtk/gtkcontainer.c: added new widget level method
22711         gtk_container_set_reallocate_redraws() and a GtkContainer flag
22712         reallocate_redraws : 1 to reflect the setting, exported this through
22713         the argument system as a boolean ::reallocate_redraws.
22714
22715         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
22716         on the widget because the allocation changes, do so as well for
22717         widget->parent if the parent has reallocate_redraws set to TRUE.
22718         with that containers requesting reallocation redraws get automatically
22719         redrawn if their children changed allocation (this unfortunately
22720         affects also other children that didn't change allocation, but we
22721         cannot work around that before 1.3).
22722
22723 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
22724
22725         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
22726         _and_ height are >0 (not _or_).
22727
22728         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
22729         instead of gtk_container_queue_resize(), which is a core gtk internal
22730         function (must have been on crack when i queued that).
22731
22732         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
22733         we can check more reliably if we want to discard expose events.
22734         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
22735         flag.
22736         
22737         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
22738         we simply trust these events. for deciding whether to discard exposes,
22739         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
22740         
22741 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
22742
22743         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22744         queues of areas that are completely off screen.
22745
22746         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
22747         logic for handleboxes.
22748
22749         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
22750         check on width/height.
22751
22752 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
22753
22754         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
22755         we are fine with using $@ the way we do (if we actually encounter
22756         brokeness with $@ in VPATH builds because of additional path prefixes,
22757         we need to use $(@F) actually).
22758
22759 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
22760
22761         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
22762         short lived bugs, that would allow language bindings to do surgeries
22763         to our guts.
22764
22765 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
22766
22767         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
22768         where comparison was being done against an uninitialized
22769         value causing intermittant results depending on
22770         compiler flags. Also make it clearer that we aren't
22771         ever initializing the child as 0x0 (though this will
22772         be caught in gtk_widget_size_allocate())
22773
22774 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
22775
22776         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
22777         gtk_window_unset_transient_for() call after we do checks
22778         involving the old transient parent.
22779         [ From Lance Capser <lmc@cyberhighway.net> ]
22780
22781 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
22782
22783         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
22784         an empty file.
22785
22786 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
22787
22788         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
22789         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
22790
22791 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
22792
22793         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
22794         `$@' is valid only in the build dir, not after we've done 
22795         `cd $srcdir'.  Also use `test -f' instead of less portable
22796         `test -e'.
22797
22798 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
22799
22800         * gtk/gtktext.c (correct_cache_insert): Rewrite
22801          for simplicity, and hopefully correctness.
22802          (Fixes bug #1322, which was a segfault when
22803           on some insertions with the properties around
22804           the insertion set up just wrong.)
22805
22806         * gtk/gtktext.c (gtk_text_adjustment): When we receive
22807          a "changed" signal, clamp the new value to the adjustment
22808          bounds to avoid segfaulting if someone tries to change
22809          the adjustment to a bogus value. (Bug #1795)
22810
22811 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
22812
22813         * gtk/gtkmain.c: Ignore unexpected destroy notifies
22814         for children, for toplevel windows handle them
22815         like delete_event.
22816
22817         * gtk/gtkplug.c: Add an unrealize handler so that
22818         we unref plug->socket_window when we are done
22819         with it.
22820
22821 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
22822
22823         * gtk/gtktext.c (clear_area): Fix stupid signedness
22824          problem that was causing background to sometimes
22825          be misaligned.
22826
22827 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
22828
22829         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
22830         
22831         * gtk/gtkmenu.c (gtk_menu_position): Make
22832          sure we never position menus with negative x, y,
22833          since gtk_widget_set_uposition() can't handle that.
22834
22835         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
22836          Modify the positioning code a bit so that we always
22837          put the top-left corner onscreen. (This is for
22838          UI reasons, gtk_menu_position() now takes care of
22839          gtk_widet_set_uposition() brokeness.)
22840
22841 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
22842
22843         * gtk/Makefile.am: fixed up things for -jx, x > 1.
22844
22845 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
22846
22847         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
22848           RC style that is passed in. The lack of the ref
22849           before was a bug. If people worked around this
22850           bug, this will introduce a slight memory leak
22851           in their code. The code should typically look like:
22852
22853             rc_style = gtk_rc_style_new ();
22854             [...]
22855             gtk_widget_modify_style (widget, rc_style);
22856             gtk_rc_style_unref (rc_style);
22857
22858         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
22859           the style if it was already set.
22860
22861         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
22862           style if it was set before.
22863
22864 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22865
22866         * gtk/testgtk.c (main): Add a check to see if we
22867           are being run from the correct directory and
22868           to quit nicely if we are not.
22869
22870         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
22871           static.
22872
22873 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
22874
22875         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
22876
22877         * gtk/gtkwindow.c:
22878         queue resizes unconditionally (gtk_widget_queue_resize will figure
22879         what to do if the window is not realized).
22880         (gtk_window_move_resize): only recenter the window
22881         for GTK_WIN_POS_CENTER_ALWAYS.
22882         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
22883         the same way as GTK_WIN_POS_CENTER.
22884
22885 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
22886
22887         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
22888         with (!(info->last_flags & GDK_HINT_POS)) instead of
22889         (!info->last_flags & GDK_HINT_POS).
22890
22891         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
22892         new_height unconditionally, because we use these values even if
22893         !default_size_changed && !hints_changed.
22894         comented the (default_size_changed || hints_changed) case with
22895         respect to resize rejects from the window manager.
22896
22897         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
22898         in the zvt condition hack, since this includes the window hints, set
22899         the hints after the handling_resize case.
22900
22901         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
22902         window is initially shown with to the geometry.
22903
22904 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
22905
22906         * gtk/gtkwindow.c (gtk_window_move_resize):
22907         s/size_changed/default_size_changed/g so i know what's
22908         really going on (frying brain on smaller flame now).
22909
22910 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
22911
22912         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
22913         we have size_changed upon handling_resize. this is a gross
22914         workaround for the broken zvt widget and should be removed in
22915         1.3 again (search for FIXME).
22916         Owen provided an accurate comment for this:
22917
22918         /* We could be here for two reasons
22919          *  1) We coincidentally got a resize while handling
22920          *     another resize.
22921          *  2) Our computation of size_changed was completely
22922          *     screwed up, probably because one of our children
22923          *     is broken. It's probably a zvt widget.
22924          *
22925          * For 1), we could just go ahead and ask for the
22926          * new size right now, but doing that for 2)
22927          * might well be fighting the user (and can even
22928          * trigger a loop). Since we really don't want to
22929          * do that, we requeue a resize in hopes that
22930          * by the time it gets handled, the child has seen
22931          * the light and is willing to go along with the
22932          * new size. (this happens for the zvt widget, since
22933          * the size_allocate() above will have stored the
22934          * requisition corresponding to the new size in the
22935          * zvt widget)
22936          *
22937          * This doesn't buy us anything for 1), but it shouldn't
22938          * hurt us too badly, since it is what would have
22939          * happened if we had gotten the configure event before
22940          * the new size had been set.
22941          */
22942
22943 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
22944
22945         * gtk/gtkrc.c: deal properly with the fact that RC
22946           style lists may include rc styles more than once.
22947
22948         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
22949           unused static function.
22950
22951         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
22952           stack of directories of RC files currently being
22953           parsed and implicitely add them to pixmap path.
22954           
22955           This fixes a bug where the directory would get
22956           appended then overwritten by pixmap_path declarations.
22957
22958           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
22959
22960         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
22961           theme's exit function. (Patch from Peter Wainwright,
22962           bug #1454)
22963
22964         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
22965           Add a destroy() handler to take care of removing
22966           group for menu item. (Fixes bug #1197)
22967
22968         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
22969           in warning message.
22970
22971 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
22972
22973         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
22974         roundtrip to figure window's width and height, since we know that
22975         anyways from widget->allocation.
22976
22977 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
22978
22979         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
22980           the hints after we request the new size.
22981
22982 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
22983
22984         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
22985           GTK_WIDGET_REALIZED() assertion - we can compute the
22986           hints before we are realized.
22987
22988         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
22989           hint changing so that we have a value of hints_changed
22990           when we decide whether to constrain the window size.
22991
22992         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
22993
22994         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
22995         change back to G_MAXINT.
22996
22997 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
22998
22999         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
23000         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
23001         contain uncluttered values.
23002         (gtk_window_compute_hints): simply assert that window is realized
23003         and that geometry_info is valid, since we rely on this anyways.
23004         (gtk_window_constrain_size): major cleanups to the code.
23005         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
23006         for the base size, instead of the minimums. use 32767 as max width
23007         and height (like in gtkwindow.c) instead of G_MAXINT.
23008
23009 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
23010
23011         * cleaned up the GtkContainer.need_resize flag handling mess, we
23012         only need to force resize requests when we were prematurely
23013         realized, or our widget tree was modified when we were temporarily
23014         hidden. handling these cases directly upon showing the window (i.e.
23015         while the GdkWindow is still unmapped) avoids the need to wait for
23016         a configure event response and therefore makes the GUI more snappier
23017         and avoids blank windows during the roundtrip.
23018
23019         * gtk/gtkwidget.c:
23020         (gtk_widget_hide): 
23021         (gtk_widget_show): don't queue resizes on toplevels, they know how
23022         to deal with matters.
23023
23024         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
23025         flag directly for not visible resize containers and spare us unecessary
23026         signal emissions.
23027
23028         * gtk/gtkwindow.c:
23029         (gtk_window_realize): if we need to enforce premature size allocation,
23030         queue a container resize so we are correctly resized later on.
23031         (gtk_window_init):
23032         (gtk_window_size_request):
23033         don't freak around with the ->need_resize flag,
23034         gtk_container_queue_resize() will care about that.
23035         (gtk_window_show):
23036         handle initial resizing issues here, we can handle matters better in
23037         this place, especially since we know that our GdkWindow is still
23038         unmapped.
23039         (gtk_window_move_resize):
23040         don't care about ->need_resize at all.
23041         handle size changes properly that occoured while we waited for a
23042         configure event.
23043
23044 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
23045
23046         * gtk/gtkwidget.c (gtk_widget_set_uposition):
23047         * gtk/gtkwindow.[hc] (gtk_window_reposition):
23048         Move the hint setting code from gtk_widget_set_uposition
23049         to here; set the hints so that we respect any previously
23050         set geometry hints.
23051
23052         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
23053         change the window hints here or move the window here,
23054         let that happen in gtk_window_move_resize().
23055
23056 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
23057
23058         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
23059         to already queued resizes (and therefore redraws) on a widget, check
23060         its anchestry as well.
23061
23062         * gtk/gtkcontainer.c:
23063         (gtk_container_queue_resize): clear resize widgets for resize
23064         containers before aborting prematurely. this is especially important
23065         for toplevels which may need imemdiate processing or their resize
23066         handler to be queued.
23067         (gtk_container_dequeue_resize_handler): added new internal function for
23068         gtkwindow.c.
23069
23070         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
23071         configure event, take possible changes in window position into account
23072         as well.
23073         if we request a new window size, queue up a resize handler that will
23074         last until the configure event response arrives.
23075         combined the ->need_resize case (initial show) with the general size
23076         (hints) changed case and added even more comments.
23077         if !auto_shrink, only revert to the old allocation if the new size
23078         is smaller than the current allocation.
23079
23080 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
23081
23082         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
23083                            gtk_window_set_geometry_hints
23084                            gtk_window_set_default_size):
23085         When hints are set, queue a resize so that the hints will
23086         be eventually reset on the toplevel.
23087
23088         * gtk/gtkwindow.c (gtk_window_show): Use
23089         gtk_window_compute_default_size(). Clear the need_resize flag
23090         on the initail map so that we don't unnecessarily trigger the
23091         resize code.
23092
23093         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
23094         into separate functions. Compare the hints we are setting
23095         with what we set last time so that we can accurately
23096         tell when we need to reset the hints.
23097
23098         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
23099         function to figure out the size from requisition
23100         and default_size.
23101
23102         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
23103         from fvwm to constrain a size to the geometry hints.
23104
23105         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
23106         to compare two sets of geometry hints.
23107
23108         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
23109         from gtk_window_set_hints(), just compute the hints,
23110         don't set them.
23111
23112         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
23113         code from gtk_window_move_resize() to separate function,
23114         rationalize a bit.
23115
23116 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
23117
23118         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
23119         structure into a new private structure.
23120
23121         * gtkrc.c: Split GtkRcStyle into public/private.
23122         In the private part, add a list of pointers to the
23123         RcStyle lists this RcStyle participates in.
23124
23125         * gtkrc.c: When a RcStyle is free, remove all
23126         lists referencing it from the 
23127         realized_style_ht hash, and free those lists.
23128         
23129         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
23130         gtk_rc_init(), since that adds the default styles
23131         to the list of parsed RC files again.
23132
23133         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
23134         
23135 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
23136
23137         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
23138         checks that ensure that a widget's allocation is at least 1 in width
23139         and height. (GNOME note: this doesn't affect old panel code anymore,
23140         because GtkSocket will request width and height of at least 1 since
23141         Fri Jul 23).
23142
23143         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
23144         allocated yet (happens if the user realizes the window prematurely),
23145         size request and allocate it.
23146         (gtk_window_size_allocate): guard against guint underflows.
23147
23148 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
23149
23150         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
23151         in gtk_built_sources, so gtk.defs gets built prior to all other
23152         sources.
23153
23154 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23155
23156         * gtk/Makefile.am:
23157         invoke indent on gtkmarshal.*. 
23158         rewrote source generation rules, use COPYING as oldest source tag for
23159         a piggyback rule to generate all sources from (don't touch it ;).
23160         major cleanups, strip spaces on build rules for GNU Make.
23161
23162         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
23163         source and target files from commandline arguments. don't invoke indent.
23164
23165 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
23166
23167         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
23168         notebook after switch to avoid drawing problems.
23169         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
23170         
23171         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
23172         show them instead. 
23173         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
23174
23175 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
23176
23177         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
23178         notebook after switch to avoid drawing problems.
23179         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
23180         
23181         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
23182         show them instead. 
23183         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
23184
23185 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
23186
23187         * gtk/gtkwindow.c:
23188         we use window->need_resize from configure_event now, to indicate that
23189         the gtkwindow should keep its allocation (e.g. because the user resized
23190         the window through window manager handles). resize_count is now reliably
23191         used to figure whether we got the allocation we requested from the
23192         window manager.
23193         configure events get queued as resizes now, the real stuff (size
23194         computation and allocation) now only goes on in gtk_window_move_resize().
23195         GtkWindow's requisition now contains its *real* requisition (like all
23196         other widgets), *not* taking usize into account.
23197         geometry_info->last_{width|height} is now updated from set_hints() only
23198         so it always contains the last hints we set for the window manager.
23199         made some event handlers return TRUE instead of FALSE.
23200         the overall code should be much more straight forward now, and the
23201         significant code portions are accompanied by comments now.
23202         (gtk_window_set_hints):
23203         removed requisition argument and made it
23204         fetch the requisition through gtk_widget_get_child_requisition.
23205         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
23206         does that now.
23207         (gtk_window_show):
23208         ensure that the widget is realized before calling 
23209         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
23210         ensure that we got properly size requested and allocated before
23211         realization.
23212         (gtk_window_configure_event):
23213         ignore plain window moves, or reallocate the widget tree through the
23214         resize queue otherwise.
23215         (gtk_window_move_resize):
23216         mostly rewrote this function to figure window manager hints more
23217         reliably, coalesce window moves and resizes to reduce configure events
23218         and do actuall size allocations.
23219
23220 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
23221
23222         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
23223         that have a resize pending, because a redraw is already queued for them.
23224
23225         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
23226         hack to clear resize_widgets.
23227
23228         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
23229         for resize containers prior to size allocation. (this is also a bit
23230         ugly, but avoids side effects for stopped emissions and is thus more
23231         reliable).
23232         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
23233
23234         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
23235         function from gtk_tooltips_expose, as we connect to ::expose_event
23236         *and* ::draw now.
23237
23238 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
23239
23240         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
23241         checks.
23242         (gtk_target_list_unref): Likewise.
23243
23244         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
23245
23246 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
23247
23248         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
23249         guard against division by zero. (Fixes bug #1339)
23250
23251 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
23252
23253         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
23254         Prevent the trivial leak of information of allowing
23255         word motion when the entry is not visible.
23256
23257 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
23258
23259         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
23260         modality to error dialog as well as confirmation dialogs.
23261         (Bug #1803, reported by Rosanna Wing Sze Yuen)
23262
23263 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
23264
23265         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
23266         tree->view_lines.
23267         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
23268
23269         * gtk/Makefile.am (install-data-local): Solaris apparently
23270         has various troubles with ln -f; use rm first instead.
23271         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
23272
23273 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
23274
23275         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
23276         use `cp' followed by `rm' (the `rm' was already there).
23277
23278 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23279         
23280         * configure.in: Fix autoconf warnings about cross compilation by
23281         trying to provide sane defaults for AC_TRY_RUN.
23282         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
23283         put them into $(srcdir) when generated. Also add a dependency of
23284         gtksignal.h on gtkmarshal.h for -j builds. 
23285         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
23286
23287 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
23288
23289         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
23290         GDK_THREADS_{LEAVE,ENTER} pair.
23291         (From Paul Fisher <pnfisher@redhat.com>)
23292
23293 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
23294
23295         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
23296         width and height are always >0 (owen).
23297
23298 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
23299
23300         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
23301         change that assured that a widget's allocated with and height are
23302         always >1, since this breaks *buggy* panel code. unfortunately this
23303         back-breaks the gimp's color selector.
23304
23305         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
23306         allocation is always >0 in width and height, before sending the
23307         configure event; this is a *gross* hack to get the gimp back to work.
23308         
23309         * marked both cases with TODO-1.3
23310
23311 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
23312
23313         * gtk/gtktext.c: Don't display wrap indicators when
23314         text is not editable and word wrap is on.
23315
23316 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
23317
23318         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
23319         option menus here as they are not derived from menu shell, assure that
23320         the option menu has a menu we can add items to.
23321
23322 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
23323
23324         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
23325         width/height to (gint) before calculations and check against < 0 to
23326         avoid guint wraparounds.
23327
23328 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
23329
23330         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
23331         width and height is never zero. sanity check both dimensions against
23332         32767 and issue a warning if the allocation is greater than that.
23333
23334 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
23335
23336         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
23337         to g_main_pending() as well.
23338
23339 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
23340
23341         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
23342         call to g_main_iteration() - since that will regrab
23343         GTK+ lock to process events.
23344
23345 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
23346
23347         * gtk/gtkwindow.c
23348         - Regularize with the rest of GTK+ by making widget->requisition
23349           not reflect the set_usize()
23350         - Always recompute geometry hints, then check if they
23351           changed before sending them to the X server. The
23352           previous checks for changes would fail in a number
23353           of circumstances. 
23354
23355 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
23356
23357         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
23358
23359 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
23360
23361         * gtk/gtkdnd.c:
23362         - Code cleanups
23363         - Instantaneously update on modifier key presses
23364         - Allow cancellation of the drag with Escape.
23365
23366 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
23367
23368         * gtk/testgtk.c (create_handle_box): Set the policy
23369         to auto_shrink - otherwise the appearance is rather
23370         strange when flipping between horizontal and vertical.
23371
23372 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
23373
23374         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
23375         (gtk_window_set_default_size): don't change a value if it's < 0.
23376         queue a resize.
23377
23378 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
23379
23380         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
23381
23382 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
23383
23384         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
23385         add an extra "/" when concating "/" + filename.
23386         (From Matt Grossman <mattg@oz.net>)
23387
23388 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
23389
23390         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
23391         for fg_gc if we set it for drawing pixmap.
23392
23393 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
23394
23395         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
23396         
23397         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
23398         already set, call old engine's destroy function and
23399         unref the old engine.
23400
23401 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
23402
23403         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
23404
23405 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
23406
23407         * gtk/gtkaccelgroup.h: mark certain functions as internal.
23408
23409 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
23410
23411         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
23412         expand behaviour changed.
23413
23414         * gtk/gtklabel.c (gtk_label_set_pattern):
23415         (gtk_label_set_justify):
23416         (gtk_label_set_line_wrap):
23417         don't bother invoking queue_clear, the reallocation does
23418         that for us, always free_words so the upcoming resize will
23419         relayout the label's contents.
23420
23421 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
23422
23423         * applied argument implementation patches from Elena Devdariani
23424         <elena@cogent.ca>.
23425
23426         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
23427         ::space_style, ::relief
23428         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
23429         * gtk/gtkpreview.c: ::expand
23430         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
23431         * gtk/gtknotebook.c: ::homogeneous
23432         * gtk/gtklabel.c: ::wrap
23433         * gtk/gtklist.c: ::selection_mode
23434         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
23435         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
23436         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
23437         * gtk/gtkclist.c: ::sort_type
23438         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
23439         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
23440
23441 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
23442
23443         * gtk/gtkstyle.c: Removed ill-thought-out part of last
23444         comment.
23445
23446 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
23447
23448         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
23449         counting right when we have to attach a new style
23450         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
23451
23452         * gtk/gtkstyle.c: Documented the refcounting
23453         peculularities of gtk_style_attach.
23454
23455 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
23456
23457         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
23458         window types.
23459
23460         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
23461         of GTK_TOPLEVEL for creating the window.
23462
23463 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
23464
23465         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
23466         the last argument (reported by Per Winkvist).
23467         
23468 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
23469
23470         Fixes for invisible XOR lines (Frank Loemker
23471         <floemker@TechFak.Uni-Bielefeld.DE>)
23472         
23473         * gtk/gtkclist.c (gtk_clist_realize): Always use
23474         a non-zero pixel for GDK_XOR.
23475
23476         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
23477         Use GDK_INVERT instead of GDK_XOR.
23478
23479 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
23480
23481         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
23482         signals if h/voffsets differ from adjustment values.
23483         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
23484
23485 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
23486
23487         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
23488         ::selection-done emissions up to the topmost menu shell.
23489
23490 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
23491
23492         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
23493         the user data on the window before destroying it.
23494
23495         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
23496         unrealize handler to take care of destroying 
23497         notebook->panel properly. 
23498         (Bug #1198 - Morten Welinder <terra@diku.dk>)
23499
23500         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
23501         of g_new and g_realloc to stop memory leak. (Actually,
23502         we could just use g_realloc(), but I'm not 100% sure
23503         that is portable).
23504         (Bug #1196 - Morten Welinder <terra@diku.dk>)
23505
23506 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
23507
23508         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
23509
23510         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23511         for fontsets.
23512
23513         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
23514         with bin/button confusion.
23515
23516 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
23517
23518         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
23519         and show how preselection of radio items is done.
23520
23521 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
23522
23523         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
23524         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
23525         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
23526         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
23527         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
23528         * gtk/gtktable.c (gtk_table_attach): 
23529         * gtk/gtklist.c (gtk_list_insert_items): 
23530         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
23531         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
23532         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
23533         * gtk/gtkbin.c (gtk_bin_add): 
23534         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
23535         * gtk/gtkfixed.c (gtk_fixed_put): 
23536         * gtk/gtklayout.c (gtk_layout_put):
23537         general fixups to container_add logic. always realize child if
23538         child->parent is realized, only map the child and queue a resize
23539         if child and child->parent are both visible.
23540
23541 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
23542
23543         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
23544         instead of gtk_container_foreach to walk and unrealize children, so
23545         composite children get also unrealized.
23546         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
23547         (gtk_widget_map): assert that the widget is visible (basic constrain).
23548         (gtk_widget_real_map): assert that the widget is realized (basic
23549         constrain).
23550
23551 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
23552
23553         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
23554
23555 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
23556
23557         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
23558         file for iso-8859-2 locales.
23559
23560         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
23561
23562 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
23563
23564         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
23565          (Pointed out by andy@rz.uni-karlsruhe.de and others).
23566          Remove some suspicious and useless lines. 
23567
23568 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
23569
23570         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
23571         width,height = 0, 0 to mean - here to edge of window,
23572         instead of -1, -1, since the former is all we support.
23573
23574 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
23575
23576         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
23577         when removing from quit_functions list.
23578
23579 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
23580
23581         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
23582
23583 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
23584
23585         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
23586          When redrawing characters on non-visible entry, use appropriate
23587          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
23588
23589 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
23590
23591         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
23592         from drag coordinates.
23593         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
23594         use drag_dest_cell.
23595
23596         * gtk/gtktree (drag_dest_cell)
23597         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
23598         (Bug #1129)
23599
23600 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
23601
23602         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
23603         translate_* fields.
23604         (gtk_item_factory_finalize): invoke translate_notify independant from
23605         translate_data.
23606         (gtk_item_factory_set_translate_func): likewise.
23607         (gtk_item_factory_destroy): only remove ifactory pointer from those
23608         widgets that belong to us (stupid me).
23609
23610 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
23611
23612         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
23613         rc_style list when lookup succeeeds.
23614
23615 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
23616
23617         * gtk/gtkctree.c (resync_selection): 
23618         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
23619         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
23620         bug.
23621
23622 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
23623
23624         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
23625         Add some missing GDK_THREADS_ENTER()/LEAVE around
23626         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
23627
23628 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
23629
23630         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
23631         rather than emit_by_name.
23632
23633         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
23634         on the widget across multiple signal emissions.
23635         (gtk_editable_delete_text): same here.
23636         (gtk_editable_class_init): set widget_class->activate_signal after
23637         editable_signals[ACTIVATE] has been created.
23638
23639 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
23640
23641         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
23642         position here prematurely -- we might not have the
23643         right ->min_position and ->max_position yet.
23644
23645 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
23646
23647         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
23648         Add error traps so if the other end of the connection
23649         dies, we survive.
23650
23651         * gtk/gtkselection.c (gtk_selection_notify): Clean
23652         up properly when selection property retrieval fails.
23653         
23654         * gtk/gtkselection.c (gtk_selection_request): Correctly
23655         reject SelectionRequest notifies where the handler
23656         returns no data.
23657
23658 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23659
23660         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
23661         when we've previously highlighted.
23662
23663         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
23664         emit two "drag_leave" signals for Motif drops.
23665
23666         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
23667         back the correct status messages when dropping from
23668         Motif onto a proxy window that is rejecting the
23669         drop.
23670
23671 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
23672
23673         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
23674         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
23675         to compare two argument values. added gtk_arg_to_valueloc() to set a
23676         variable from an arg through its location (pointer).
23677
23678         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
23679         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
23680         as gfloat*, uchars are collected as guchar*, ints are collected as
23681         gint*, etc...
23682
23683 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
23684
23685         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
23686         Include <string.h> instead of <strings.h>.
23687
23688         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
23689         (actually, a lot more duplicate includes occur if
23690          you trace through the sequence of #include's)
23691         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
23692         
23693 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
23694
23695         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23696         gtk-a-higuti-990322-[0-3]
23697
23698         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23699         that was causing -DX_LOCALE not to work.
23700
23701         * gtk/gtkrc.c (gtk_rc_init):
23702         X_LOCALE will never have LC_MESSAGES defined
23703
23704 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
23705
23706         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
23707         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
23708
23709         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
23710         left/right as well (gtk-michael-980726-0.patch.gz).
23711
23712         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
23713         for pointer values, use gchar instead of char. fixed uline allocation
23714         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
23715         chunks instead of G_ALLOC_ONLY.
23716         (gtk_label_size_request): always alter requisition as passed and leave
23717         widget->requisition alone.
23718         (gtk_label_set_text): allow NULL strings.
23719         (gtk_label_new): likewise.
23720
23721 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
23722
23723         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
23724
23725 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
23726
23727         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
23728         *and* mapped (i.e. drawable).
23729         (gtk_bin_expose): only send exposes to drawable children.
23730
23731         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
23732         (gtk_box_expose): only send exposes to drawable children.
23733
23734         * gtk/gtkhscale.c (gtk_hscale_draw): 
23735         * gtk/gtkvscale.c (gtk_vscale_draw):
23736         hm, this is an ugly one. we first compute the size of our trough area
23737         here (window relative) and then check intersection with the draw_area
23738         which is parent relative because we're a NO_WINDOW widget, so we need
23739         to offset the trough area by allocation.x and allocation.y before the
23740         check. (this must not be done for the background area though, since
23741         that's already computed parent relative).
23742
23743 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
23744
23745         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
23746         unrealize title buttons.
23747
23748 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
23749
23750         * gtk/gtkclist.c (gtk_clist_column_title_passive)
23751         (gtk_clist_column_title_active): 
23752         only connect/disconnect to GtkWidgetClass::event to block mouse events.
23753
23754         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
23755         zero initialize event, removed superfluous gdk_window_get_pointer call
23756
23757         * gtk/gtklist.c (gtk_list_vertical_timeout)
23758         (gtk_list_horizontal_timeout): removed superfluous
23759         gdk_window_get_pointer call
23760
23761 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
23762
23763         * plugging problems reported by "Bruce Mitchener, Jr."
23764         <bruce@puremagic.com> due to a purify session.
23765
23766         * gtk/gtkstyle.c:
23767         (gtk_style_ref): 
23768         (gtk_style_unref): assert ref_count to be > 0.
23769
23770         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
23771         the requisition.
23772         (gtk_clist_set_shift): likewise.
23773
23774         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
23775         adjustments.
23776
23777         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
23778         event before sending it and set send_event to TRUE (which needs to
23779         be done for *all* synthesized events).
23780         (gtk_list_vertical_timeout): likewise.
23781
23782         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
23783         leaks.
23784
23785         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
23786         to TRUE when synthesizing events.
23787
23788 [ *** end of merges from 1.2 *** ]      
23789         
23790 1999-11-21  Tor Lillqvist  <tml@iki.fi>
23791
23792         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
23793         (or copied from gdkconfig.h.win32 on Win32, sigh).
23794
23795         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
23796
23797         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
23798
23799         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
23800
23801         * gdk/gdkconfig.h.win32: New file.
23802
23803         * gdk/win32/makefile.cygwin: Build just a static archive here.
23804
23805         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
23806         for the DLL from the static archive built above.
23807
23808         * gdk/gdk.def: Moved here from the win32 subdirectory.
23809
23810         * gdk/win32/*: Adapt for the changed private struct organisation.
23811
23812         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
23813
23814 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
23815
23816         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
23817         for wheel mice (buttons 4 and 5).
23818
23819 1999-11-18  Tor Lillqvist  <tml@iki.fi>
23820
23821         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
23822         drawables use just the pixel field in the foreground and
23823         background GdkColor of the GdkGC.
23824
23825         gdk_gc_set_{fore,back}ground() are called in the GIMP with
23826         GdkColors containing uninitialized (red,green,blue) fields, and
23827         just the pixel field filled in, and furthermore in the
23828         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
23829         It thus turns out that we really don't need to have the full
23830         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
23831         it later to have just the pixel values.
23832
23833 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
23834
23835         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
23836
23837 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
23838
23839         * docs/gtkfaq.sgml: threads example from Erik Mouw.
23840         New question on GtkLabel background colors.
23841
23842         * docs/gtk_tut.sgml:
23843           - Correct the example code callback
23844             function definitions.
23845           - Update the gtkdial example code, from Frans van Schaik.
23846           - Update setselection.c to current API.
23847
23848         * examples/Makefile examples/*/*.c: Update to code
23849         listed in tutorial.
23850
23851 1999-11-10  Tor Lillqvist  <tml@iki.fi>
23852
23853         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
23854         subrange table (from the "Developing International Software for
23855         WIndows 95 and Windows NT" book) was missing the Hangul syllable
23856         block... Get the loaded font's charset correctly.
23857
23858         (Note that this, and the other *-win32.c files, still really are
23859         the old ones, the win32 subdirectory is not ready for compilation
23860         yet after the reorg.)
23861
23862 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
23863
23864         * gtk/gtkclist.c: Fix off-by-one bug in parameter
23865         check.
23866
23867 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
23868
23869         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
23870         on results of XQueryDeviceState().
23871
23872 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
23873
23874         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
23875         we need to accesss only ->children. We need an accessor
23876         for the children.
23877
23878         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
23879         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
23880         to get rid of gdkx.h include.
23881         
23882         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
23883         and random references to 'None'.
23884
23885         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
23886         Get rid of unused #include <gdk/gdkx.h>
23887
23888         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23889         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
23890         gdkconfig.h.
23891
23892 1999-11-08  Tor Lillqvist  <tml@iki.fi>
23893
23894         * gdk/win32/gdkdraw.c
23895         * gdk/win32/gdkfont.c
23896         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
23897         following yesterday's changes. (Unrelated to Owen's reorg.)
23898
23899 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
23900
23901         * gdk/x11/gdkinput-gxi.c: Add missing include,
23902           fix GdkWindowPrivate => GdkDrawablePrivate.
23903
23904         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
23905
23906         * gdk/x11/Makefile.am (xinput_sources): Add missing
23907         backslash to fix building with --with-xinput=none
23908
23909 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
23910
23911         Move all X specific code into the x11/ directory.
23912         Aside from shuffling things around, did the following:
23913
23914        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
23915          gdk_arg_context_* - a simple argument parsing system
23916          in the style of popt.
23917
23918        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
23919          gdk/x11/gdkprivate-x11.h:
23920          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
23921          add ->klass and ->klass_data fields. The klass_data
23922          field points to an auxilliary structure that is
23923          windowing system dependent.
23924
23925        * gdk/gdkfont.c: Make most of the measurement functions
23926          simply wrappers around gdk_text_extents().
23927
23928        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
23929          _gdk_font_strlen() function that hides the weird
23930          behavior in gtk+-1.[02] where a string is interpreted
23931          differently for 8-bit and 16-bit fonts.
23932
23933        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
23934          to store common code for synthesizing double/triple
23935          press events.
23936         
23937        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
23938          Make all the function that modify an existing GC
23939          simply wrappers around gdk_gc_set_values().
23940          
23941        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
23942          for throwing out later.
23943
23944        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
23945          GdkImagePrivate and GdkColormapPrivate to have a
23946          windowing system dependent part (GdkFontPrivateX etc.)
23947          that "derives" from the system-independent part.
23948
23949        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
23950          Got rid of the included-source-files for XInput in
23951          favor of automake conditionals. (Which didn't exist
23952          when XInput support was originally added.)
23953
23954        * gdk/gdkrgb.c: Remove the visual id from the debugging
23955          statements since that is X11 specific; print out
23956          type/depth info instead.
23957          
23958
23959 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
23960
23961         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
23962         loading duplicates of hashed fonts.
23963
23964         * gdk/gdk.c (gdk_keysym_convert_case): rename
23965         gdk_XConvertCase to gdk_keysym_convert_case, allow
23966         results to be NULL in the GTK+ style.
23967
23968         * gdk/gdkcompat.h: Started compatibility header
23969         for renames.
23970
23971 1999-11-07  Tor Lillqvist  <tml@iki.fi>
23972
23973         * gdk/win32/gdkprivate.h: New font private structures, related to
23974         fontsets.
23975
23976         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
23977         gdk_font_list_free(). On X11, will just be wrappers to
23978         XListFonts() and XFreeFontNames(). On Win32, the code previously
23979         in gtkfontsel.c is now here.
23980
23981         New function gdk_font_xlfd_create(). On X11 will get the FONT
23982         property of the font (for GDK_FONT_FONTs), or call
23983         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
23984         builds a XLFD style name from the font information in the LOGFONT
23985         struct(s).
23986
23987         New function gdk_font_xlfd_free(), which correspondingly frees the
23988         string returned by gdk_font_xlfd_create().
23989
23990         Implement fontsets on Win32. Add a function that iterates over a
23991         wide char string and calls a callback function for each substring
23992         of wide chars from the same Unicode subrange (and thus probably
23993         available in the same real font).
23994
23995         Improve the XLFD emulation a bit.
23996
23997         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
23998
23999         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
24000         Beta3, WM_IME_CHAR messages don't seem to contain the composed
24001         multi-byte char as with the Active IMM on Win9x. Oh well, handle
24002         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
24003         ImmGetCompositionStringW() to get the composed Unicode chars.
24004
24005         * gdk/win32/gdkgc.c
24006         * gdk/win32/gdkdraw.c: Changes needed because of the font private
24007         struct changes.
24008
24009         * gdk/win32/gdk.def: Add the new functions.
24010
24011 1999-11-04  Tor Lillqvist  <tml@iki.fi>
24012
24013         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
24014         get the Platform SDK to get <dimm.h>.
24015
24016         * gdk/win32/gdkevents.c: More event handling fixes and
24017         simplification. Never generate motion events with is_hint true. We
24018         used to do that on bogus grounds earlier. Windows sends
24019         WM_MOUSEMOVE messages on button events even if the mouse hasn't
24020         moved, ignore these.
24021
24022         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
24023
24024         * gdk/win32/gdkglobals.c
24025         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
24026         the TrackMouseEvent function, and use it.
24027
24028         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
24029         char before calling WideCharToMultiByte in order to get a string
24030         for the window title.
24031
24032         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
24033
24034         * gdk/win32/gdk.def: Remove obsolete functions.
24035
24036         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
24037         /nodefaultlib and /defaultlib switches.
24038
24039         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
24040
24041 1999-10-31  Tor Lillqvist  <tml@iki.fi>
24042
24043         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
24044         EuroSign).
24045
24046         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
24047         same type as GdkWChar, especially on Win32.
24048
24049         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
24050
24051         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
24052         before passing to Windows GDI for drawing etc. Convert to the
24053         system default codepage before passing to Windows as window
24054         titles.
24055
24056         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
24057         support changing input locale on the fly.
24058
24059         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
24060         on-the-fly changes. Convert incoming characters from the current
24061         codepage to Unicode (and then to a UTF-8 multi-byte string) based
24062         on the current input language. Use keysym<->Unicode mapping tables
24063         and functions borrowed from xterm sources.
24064
24065         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
24066         editions of Win9x, use the ActiveX-based Active IMM (Input Method
24067         Manager) if available. IMEs and the Active IMM are available under
24068         the disguise of Chinese, Korean and Japanese support for IE and
24069         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
24070         support is present in all editions (as long as you install it).
24071
24072         Call DispatchMessage from gdk_events_queue() (and thus
24073         gdk_WindowProc()), instead of duplicating the code in
24074         gdk_WindowProc().
24075
24076         Reworked the grab handling and propagation code, factored out
24077         duplicated code snippets into separate functions. Other cleanups,
24078         too.
24079
24080         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
24081         the <dimm.h> header describing the Active IMM.
24082
24083         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
24084         just do the same as for "single" fonts.
24085
24086         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
24087         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
24088         the new keysyms from gdkkeysyms.h.
24089
24090         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
24091         fontset, so that gtkentry uses wide characters.
24092
24093         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
24094         GTk+'s system directory "gtk+", not "gtk".
24095
24096 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
24097
24098         * docs/gtkfaq.sgml: FAQ update
24099
24100 1999-10-21  Tor Lillqvist  <tml@iki.fi>
24101
24102         * gdk/win32/gdkprivate.h: Add more font private data.
24103
24104         * gdk/win32/gdkfont.c
24105         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
24106         fonts and strings. Now works much better. You still have to
24107         have a correct font selected, though. No fontset emulation yet.
24108
24109 1999-10-19  Tor Lillqvist  <tml@iki.fi>
24110
24111         * gtk/maketypes.awk: Use G_OS_WIN32.
24112
24113         * gtk/gtk.def: Add some missing entry points. Also some non-public
24114         ones, but PyGTK porter claims to need them.
24115
24116         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
24117         built-in type generation.
24118
24119 1999-10-14  Tor Lillqvist  <tml@iki.fi>
24120
24121         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
24122         GDK_FONT_FONT fonts (which is all we have for now, we don't
24123         emulate fontsets). The X11 version uses plain XDrawString in that
24124         case, too. The string passed to gdk_draw_text_wc seems to be in
24125         fact (at least, when used by gtkentry and gtktext) either in a
24126         single-byte charset, or a DBCS. Not Unicode.
24127
24128         This fixes the problem in gtkfontsel, where even if you had
24129         selected a font with a non-Latin1 charset (windows-greek, for
24130         instance), the preview still used Latin-1 glyphs.
24131
24132         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
24133         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
24134         (gdk_font_load): Recognize the demibold etc weights, even if we
24135         don't have the corresponding constants in the headers.
24136         (gdk_font_hash_insert): Use same hash mechanism as in the X11
24137         version. Should save font resources a bit, when we don't have
24138         multiple HFONTs for the same font.
24139
24140         * gdk/win32/gdkprivate.h: Add the names field as in the X11
24141         version.
24142
24143 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
24144
24145         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
24146         X values
24147
24148 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
24149
24150         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
24151         layout support (as mentioned on
24152         http://www.jcinteractive.com/gnome-ui/software/widgets/)
24153
24154 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
24155
24156         * gtk/fnmatch.c
24157         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
24158
24159 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
24160
24161         * configure.in (ALL_LINGUAS): Added Galician (gl)
24162
24163 1999-10-05  Tor Lillqvist  <tml@iki.fi>
24164
24165         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
24166
24167         * gdk/win32/gdkcompat.c: New file, actually provide an
24168         implementation for the deprecated functions. (Just temporarily.)
24169
24170         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
24171
24172         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
24173
24174         * gdk/win32/gdk.def gtk/gtk.def: Updates.
24175
24176 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
24177
24178         * configure.in: Added "uk" to ALL_LINGUAS.
24179         
24180 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
24181
24182         * configure.in: correct checking for BeOS check
24183
24184         * gdk/gdktypes.h
24185         * gtk/fnmatch.c
24186         * gtk/gtkfilesel.c
24187         * gtk/gtkitemfactory.c
24188         * gtk/gtkmain.[ch]
24189         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
24190
24191 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
24192
24193         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
24194         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
24195         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
24196         by Bulgarian). 
24197
24198 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
24199
24200         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
24201         Fix a reference to window_private->destroyed.   
24202
24203         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
24204         (ugly) setting of an internal GdkWindow member to use
24205         a _slightly_ cleaner macro.
24206
24207         * gdk/gdkprivate.h: Split GdkWindowPrivate into
24208         GdkDrawablePrivate and GdkWindowPrivate.
24209         Add extra macros for accessing GDK_DRAWABLE_ components.
24210
24211         * *.[ch]: Massive adjustments for the above, use the
24212         new macros in a lot of places.
24213
24214 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
24215
24216         * gdk/gdktypes.h: Make GdkDrawable the base type,
24217         not GdkWindow.
24218
24219 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
24220
24221         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
24222
24223 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
24224
24225         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
24226
24227 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
24228
24229         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
24230         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
24231
24232         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
24233
24234         * docs/gtk-config.1: Now autogenerated.
24235         * docs/Changes-1.4.txt: started
24236         
24237 1999-10-03  Tor Lillqvist  <tml@iki.fi>
24238
24239         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
24240         to #ifdef also here.
24241
24242         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
24243         Owen did to the X11 backend.
24244
24245         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
24246         ScrollWindowEx when blitting inside a window, it can't be correct
24247         in the general case.
24248
24249         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
24250         WM_GETMINMAXINFO is easier.
24251
24252         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
24253         depth equal to the bitspixel value, not the visual's depth.
24254
24255         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
24256         to 24 even if the bitspixel value is 32.
24257
24258         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
24259         need to check for depth==32 when bpp==32, depth will always be 24.
24260
24261 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
24262
24263         * docs/Changes-1.4.txt: Started
24264         
24265         * gtk/Makefile.am (gdk_headers): Include all the new headers.
24266
24267         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
24268         
24269         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
24270         into C file.
24271         
24272         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
24273         header to gdkinputprivate.h.
24274
24275         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
24276         unused since before 1.2.
24277
24278 1999-09-30  Tor Lillqvist  <tml@iki.fi>
24279
24280         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
24281         expand possible hex escapes in the font family (put there by
24282         logfont_to_xlfd if the font name isn't a legal XLFD font family,
24283         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
24284         On Win32, add hex escapes here, too.
24285
24286 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
24287
24288         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
24289         to #ifdef GDK_WINDOWING_X11.
24290
24291 [ Merges from gtk-1-2 ]
24292
24293 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
24294
24295         * configure.in: fixed "GNU Make" check to pass with new make version
24296         3.77.95.
24297
24298 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
24299
24300         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
24301         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
24302         AM_PATH_GTK() macros don't get confused by the -pre1.
24303
24304 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
24305
24306         * configure.in (REBUILD): Change check for perl5
24307           to check explicitely for v >= 5.002. (5.001
24308           does not work with our scripts.)
24309
24310 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
24311
24312         * configure.in: evaluate $PERL for the perl version check. added
24313         --disable-rebuilds to give the user an option to completely disable
24314         any source autogeneration rules.
24315
24316 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
24317
24318         * configure.in: evaluate $ac_make when checking for GNU Make.
24319
24320 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24321
24322         * docs/Makefile.am: added generation.txt.
24323
24324         * Makefile.am: require automake 1.4, build README from README.in and
24325         INSTALL from INSTALL.in in dist-hook.
24326         
24327         * README.in:
24328         * INSTALL.in: new files to autogenerate README and INSTALL from.
24329
24330         * configure.in: figure whether we have GNU Make
24331
24332         * docs/generation.txt: minor additions/corrections.
24333
24334 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
24335
24336         * docs/gtkfaq.sgml: FAQ Update
24337
24338 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24339         
24340         * configure.in: Fix autoconf warnings about cross compilation by
24341         trying to provide sane defaults for AC_TRY_RUN.
24342
24343 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
24344
24345         * ltconfig
24346         * ltmain.sh: upgrade to libtool 1.3.3
24347
24348 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
24349
24350         * INSTALL: Indicate that the --with-glib= configure
24351         time flag is unsupported.
24352
24353 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
24354
24355         * docs/generation.txt: Added a file that gives
24356         documenation about the autogeneration process for
24357         various autogenerated files.
24358         
24359 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
24360
24361         * configure.in (LIBS): Look for libgmodule in the
24362         right location.
24363
24364 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
24365
24366         * docs/gtk_tut.sgml: Removed references to
24367         code examples in my directory on gtk.org as
24368         they should all be in the tutorial now.
24369
24370         * docs/gtk_tut.sgml: Added sources for dial-test
24371         and scribble-xinput programs that were previously
24372         missing.
24373
24374 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
24375
24376         * TODO: Added entry about menu keyboard navigation, removed
24377         some finished items.
24378
24379 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
24380
24381         * acinclude.m4: Standardize on func_dgettext
24382         not func_gettext, so that the checks for dgettext
24383         actually are paid attention to.
24384
24385 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
24386
24387         * configure.in (LIBS): Add $INTLLIBS into $LIBS
24388         directly, rather than repeating the checks for
24389         gettext.
24390
24391         * INSTALL: Added information about gettext and
24392         NLS support.
24393
24394         * acinclude.m4 (LIBM): Check for dgettext, not
24395         just gettext. This should hopefully fix things wrt
24396         systems with old versions of GNU gettext installed.
24397
24398 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
24399
24400         * configure.in (LIBS): Look for libgmodule in the
24401         right location.
24402
24403 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24404
24405         * autogen.sh: add --enable-maintainer-mode
24406
24407         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
24408
24409 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
24410
24411         * docs/gtk-config.1.in:
24412           docs/Makefile.am:
24413           configure.in: gtk-config is now generated.
24414
24415         * docs/gtk-config.1: Removed, now generated.
24416
24417 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
24418
24419         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
24420         handle CreateNotify itself, still put out a debuging message for
24421         --gdk-debug=events. made the ReparentNotify debugging message more
24422         verbose.
24423         wrap xcoords translation for ConfigureEvents into an error trap,
24424         a destroy event may already be pending, and in that case, the
24425         actuall coordinate values are not at all critical.
24426
24427 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
24428
24429         * gdk/gdkcc.c: Stop leaking the color_hash all over
24430         the place. Simplify and improve the logic.
24431
24432 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
24433
24434         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
24435         for prototypes and function implementations consistent (reported
24436         by Tomas Ogren).
24437
24438 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
24439
24440         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
24441         send_event set in debugging output.
24442         (gdk_compress_exposures): default initialize the event so we don't
24443         operate on bogus values (namely send_event).
24444
24445 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
24446
24447         * gdk/gdkwindow.c: When we receive an unexpected
24448         destroy notify on one of our windows, don't just
24449         warn about it, also mark our windows as destroyed.
24450
24451 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
24452
24453         * gdk/gdkfont.c (gdk_font_hash_insert): Add
24454           name => font and name => fontset hashes. The 
24455           name => fontset hash is a _big_ win since we
24456           weren't previously caching fontsets at all and loading
24457           fontsets is expensive. The name => font hash
24458           is less of a win, but it does save us from doing
24459           repeated XQueryFont calls on the same font.
24460
24461         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
24462           list so we can remove font/fontset from hash.
24463
24464 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
24465
24466         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
24467           and slightly confusing test. [ XInternAtom (,,TRUE)
24468           will never return None ].
24469
24470 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
24471
24472         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
24473           gdk/gdkwindow.c (gdk_window_set_hints):
24474
24475         Don't omit setting the properties if flags == 0 -
24476         there may be an existing set of properties there
24477         already. (Very old bug. Would it be better to
24478         delete the property instead?)
24479
24480         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
24481           spelling error in comment.
24482
24483 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
24484
24485         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
24486           to avoid stomping over gdk_error_warnings.
24487
24488         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
24489           as (bits_per_pixel + 7) / 8. This gives the same
24490           result as before for multiples of 8, but actually
24491           a "reasonable" value for 1bit or 4bit displays.
24492
24493 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
24494
24495         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
24496         GNU Make.
24497
24498 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
24499
24500         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
24501         discarding configure events.
24502
24503 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
24504
24505         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
24506         refcount is greater than zero.
24507
24508         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
24509
24510         * gdk/gdkfont.c (gdk_font_unref): Likewise.
24511
24512         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
24513
24514         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
24515
24516 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
24517
24518         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
24519         that format 32 => sizeof(item) == 4. It really is
24520         sizeof(long).
24521
24522 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
24523
24524         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
24525         core dump at all on X IO errors, only core dump
24526         if --enable-debug for X errors.
24527
24528 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
24529
24530         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
24531         unknown window:" message. disabled ConfigureNotify discarding code,
24532         because it led to events being processed out of order.
24533
24534 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
24535
24536         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
24537
24538         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
24539         we export this function, supress error warnings and don't reset the
24540         error code in the first half of this function.
24541
24542         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
24543         code (instead of just -1) so gdk_error_trap_pop() reveals something
24544         actually informative about the error that happened.
24545
24546         * gdk/*.c:
24547         don't rely on gdk_error_code being -1 if an error occoured, but just
24548         gdk_error_code != 0.
24549
24550 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
24551
24552         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
24553         pointer *before* invoking the filter function, so we at least don't
24554         crash if a filter is removed that is currently executed. window filters
24555         *really* need to be made truely reentrant at some point.
24556
24557 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
24558
24559         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
24560         PropertyNotify debug messages.
24561
24562 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
24563         
24564         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
24565         
24566         * gdk/gdkim.c: Fix cut-and-paste errors for 
24567         x/y and PreeditAttributes/StatusAttributes.
24568
24569 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24570
24571         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
24572         G_MAXINT to 2^16 to alleviate overflow problems in
24573         various window managers.
24574
24575 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
24576
24577         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24578         for fontsets.
24579
24580 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
24581
24582         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
24583         Initialize size_hints.x and size_hints.y because kwm
24584         brokenly pays attention to them.
24585         (Bug #1181 -  Lars Heete <hel@admin.de>)
24586
24587 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
24588
24589         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
24590         return value of gdk_list_visuals(). 
24591         (Bug #1193 - Morten Welinder <terra@diku.dk>)
24592
24593 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
24594
24595         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
24596         XSetIMValues to (void *) when comparing to NULL, to workaround
24597         the problem of some compilers barfing since older X headers don't
24598         have the prototype for it.
24599
24600 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
24601
24602         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
24603         for pseudocolor where colormap->colors was double
24604         allocated.
24605
24606         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
24607         color value in the hash table with the pixel filled
24608         in so when we do later hash table lookups, the color
24609         value is correct.
24610         
24611 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
24612
24613         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
24614         making the call
24615
24616 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
24617
24618         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
24619         pointed out by Morten Welinder <terra@diku.dk>.
24620
24621 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24622
24623         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24624           default filter from the list
24625
24626 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
24627
24628         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24629           default filter from the list
24630
24631 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
24632
24633         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
24634
24635         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
24636         g_strdup_printf instead of calcing the length separately
24637
24638 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
24639
24640         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
24641         that we don't do in many other places. (Fixing duplicate 
24642         #include of config.h)
24643
24644         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
24645         Otherwise, #ifndef XINPUT_NONE check in the latter
24646         doesn't work. (Bug #546)
24647
24648 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
24649
24650         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
24651         "None" case insensitive.
24652
24653 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
24654
24655         * gdk/gdkselection.c: 
24656         Add error traps so if the other end of the connection
24657         dies, we survive.
24658
24659 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
24660
24661         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
24662         dest_xid field into two fields - one for the window
24663         to send in messages, one to indicate the last looked
24664         up window for caching purposes. This is needed, so
24665         that Leave messages get the correct window.
24666
24667 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
24668
24669         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
24670         Fix warning created by people mucking around
24671         with the gsource API.
24672
24673         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
24674         Change mapping between GIOCondition and GdkInputCondition
24675         to match the way the Linux kernel does it. This should
24676         fix problems where closed pipes were no longer signalling
24677         GDK_INPUT_READ on systems with a native poll().
24678
24679 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
24680
24681         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
24682         explicitly for the string "None" - it is in the XPM
24683         spec and some servers treat unknown colors in odd ways
24684         (like asking the user!)
24685
24686 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24687
24688         * gdk/gdkevents.c: made "->" into a "." of previous change so
24689         it compiles
24690
24691 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
24692
24693         * gdk/gdkevents.c (gdk_compress_exposures): Set the
24694         window field of the event structure before calling
24695         user filters.
24696
24697 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
24698
24699         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
24700         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
24701
24702 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
24703
24704         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
24705         intermediate text property - prevents major memory
24706         leak when gdk_use_mb.
24707         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
24708
24709 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
24710
24711         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24712         gtk-a-higuti-990322-[0-3]
24713
24714         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
24715         sizeof(wchar_t) != sizeof (GdkWChar)
24716
24717         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24718         that was causing -DX_LOCALE not to work.
24719
24720         * gtk/gtkrc.c (gtk_rc_init):
24721         X_LOCALE will never have LC_MESSAGES defined
24722
24723         * gdk/gdk.c (gdk_init_check):
24724         Remove --xim-preedit and --xim-status from argv properly.
24725
24726         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
24727         that the client window is present on the X server
24728         before we pass it to the input method.
24729
24730 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
24731
24732         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
24733         if --display is specified on the command line, than
24734         the drag window will not be created on that display.
24735         
24736 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
24737
24738         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
24739         lookups with only_if_exists == TRUE were inserting
24740         bogus values into the atom cache.
24741
24742 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
24743
24744         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
24745         then reset it to NULL.
24746
24747         * gdk/gdkcolor.c:
24748         (gdk_colors_free): 
24749         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
24750         key for g_hash_table_remove() in both functions, this prevents us
24751         from accessing possibly uninitialized portions of a GdkColor structure
24752         where we are only interested in its pixel value.
24753
24754 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24755
24756         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24757         font hash table, if we have a GdkFontPrivate entry for this font
24758         already, simply increment its reference count, provided by Olaf Dietsche
24759         <olaf.dietsche+list.gtk@netcologne.de>.
24760
24761 1999-09-21  Tor Lillqvist  <tml@iki.fi>
24762
24763         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
24764         just to be sure.
24765
24766         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
24767         unused variables, leftovers from the X11 version.
24768
24769         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
24770
24771         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
24772         downcase fields on X11.
24773
24774 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
24775         
24776         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
24777         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
24778
24779 1999-09-17  Tor Lillqvist  <tml@iki.fi>
24780
24781         * gdk/win32/gdk.def: Add gdk_threads_mutex.
24782
24783         * gtk/makefile.msc: Correct path to libintl.
24784
24785         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
24786         use of gint vs. int, and gint vs. gboolean in headers and
24787         definitions. Use GtkType for the *_get_type functions. Note that
24788         these changes preserve binary compatibility.
24789
24790         * gdk/gdk.c
24791         * gdk/win32/gdk.c
24792         * gdk/gdk.h: Fix inconsistencies: gint vs int.
24793
24794         * gtk/gtkmain.c
24795         * gtk/gtkclist.c
24796         * gtk/gtkmenufactory.c
24797         * gtk/gtknotebook.c
24798         * gtk/gtkwidget.c: Fix inconsistencies, also gint
24799         vs. gboolean.
24800
24801         * gtk/gtkcolorsel.[ch]
24802         * gtk/gtkcombo.[ch]
24803         * gtk/gtkdrawingarea.[ch]
24804         * gtk/gtkgamma.[ch]
24805         * gtk/gtkhandlebox.[ch]
24806         * gtk/gtkhpaned.[ch]
24807         * gtk/gtkhruler.[ch]
24808         * gtk/gtkplug.[ch]
24809         * gtk/gtkpreview.[ch]
24810         * gtk/gtkruler.[ch]
24811         * gtk/gtksocket.[ch]
24812         * gtk/gtkstatusbar.[ch]
24813         * gtk/gtktoolbar.[ch]
24814         * gtk/gtkvbbox.[ch]
24815         * gtk/gtkvpaned.[ch]
24816         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
24817         functions.
24818
24819         * gtk/gtkgamma.h: Fix bug, missing () in call of
24820         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
24821
24822 1999-09-14  Tor Lillqvist  <tml@iki.fi>
24823
24824         * gdk/gdkcolor.c (gdk_colormap_new)
24825         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
24826         colormap->colors was allocated twice.
24827
24828         * gdk/win32/gdk.c: Remove some unused stuff.
24829
24830         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
24831         colormap.
24832
24833         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
24834         * gtk/gtklabel.h (gtk_label_get_type)
24835         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
24836         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
24837         in a couple of places, not guint.
24838
24839 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24840
24841         * configure.in,po/et.po: added Estonian language file
24842
24843 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24844
24845         * configure.in,po/da.po: added Danish file
24846
24847 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
24848
24849         * docs/gtkfaq.sgml: Minor FAQ Update
24850
24851 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
24852
24853         * docs/gtkfaq.sgml: FAQ update
24854
24855 1999-08-27  Tor Lillqvist  <tml@iki.fi>
24856
24857         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
24858         way to get window contents continually refreshed while resizing. I
24859         didn't like the effects myself, so it's not on by default.
24860
24861         * gdk/win32/gdkprivate.h: New flag variable
24862         gdk_event_func_from_window_proc, FALSE by default.
24863
24864         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
24865         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
24866         are passed --gdk-event-func-from-window-proc.
24867
24868         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
24869         and we have am event_func, call it instead of enqueing the event.
24870
24871 1999-08-23  Tor Lillqvist  <tml@iki.fi>
24872
24873         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
24874         Kelley: Set expose_count in GdkEventExposes correctly.
24875
24876         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
24877         MULTIPLE_WINDOW_CLASSES).
24878
24879         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
24880         for bug in NT, apparently NT *does* draw the end pixel, too, in
24881         LineTo with a one-pixel pen, so we don't have to do it ourselves.
24882
24883 1999-08-21  Tor Lillqvist  <tml@iki.fi>
24884
24885         Improvements by Hans Breuer: 
24886
24887         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
24888
24889         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
24890         CS_?REDRAW flags as they cause lots of (late) redraws when "show
24891         window contents while dragging" is turned on. Allocate at least
24892         one unique class for every GdkWindowType. If support for single
24893         window-specific icons is ever needed (eg. Dialog specific), every
24894         such window should get its own class.
24895
24896 1999-08-19  Tor Lillqvist  <tml@iki.fi>
24897
24898         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
24899         error that caused crashes.
24900
24901 1999-08-17  Tor Lillqvist  <tml@iki.fi>
24902
24903         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
24904         window, use ScrollWindowEx, and call UpdateWindow. This prevents
24905         bugs when for instance part of the window was outside the
24906         display. Thanks to Philippe Colantoni for finding and fixing this.
24907
24908 1999-08-16  Tor Lillqvist  <tml@iki.fi>
24909
24910         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
24911         endpoint calculations which were totally wrong. (A little RTFMing
24912         helps a lot ;-)
24913
24914         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
24915         from a separate directory, not from gettext, because of licensing
24916         issues (we want to use the LGPL version).
24917
24918         * README.win32: Mention the intl from glibc vs from gettext issue.
24919
24920 1999-08-13  Tor Lillqvist  <tml@iki.fi>
24921
24922         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
24923         in the key event handling: Now AltGr chars work again. Also,
24924         now Alt-digits are passed up as well as Control-digits.
24925         Pass keypad plus and minus as normal plus and minus.
24926
24927 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
24928
24929         * docs/gtkfaq.sgml: FAQ Update
24930
24931 1999-07-25  Tor Lillqvist  <tml@iki.fi>
24932
24933         * README.win32
24934         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
24935         the Wintab SDK.
24936
24937         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
24938         OK, but getting closer. Guard against bogus tilt data from Wacom
24939         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
24940         enable easier building without Wintab.
24941
24942         * gdk/win32/gdkinput.h
24943         * gdk/win32/gdkevents.c 
24944         * gdk/win32/gdkwindow.c: Minor changes related related to above.
24945         
24946         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
24947         code. As we have just one visual on Win32, no sense to have it in a
24948         table, and no need for the hash table.
24949
24950         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
24951         better on white background.
24952
24953 1999-07-21  Tor Lillqvist  <tml@iki.fi>
24954
24955         * README.win32: Update gcc build instructions. Mention gettext is
24956         GPL.
24957
24958         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
24959         supported cursor size with GetSystemMetrics.
24960
24961         * gdk/win32/gdkfont.c
24962         * gtk/gtkfontsel.c: Guard against some font weight and charset
24963         symbols being undefined (in mingw32 headers).
24964
24965         * gdk/win32/makefile.cygwin
24966         * gtk/makefile.cygwin
24967         * gtk/gtkthemes.c: No longer need to have differently named
24968         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
24969
24970 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
24971
24972         * docs/gtkfaq.sgml: Long awaited FAQ update.
24973
24974 1999-07-15  Tor Lillqvist  <tml@iki.fi>
24975
24976         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
24977         it. Obscure bit manipulation needed.
24978
24979         * gdk/win32/gdkevents.c: Logging.
24980         
24981         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
24982         style (file name include compiler name) for theme engines.
24983
24984 1999-07-13  Tor Lillqvist  <tml@iki.fi>
24985
24986         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
24987
24988         * gdk/win32/gdkevents.c: Fix long-standing bug in key
24989         events. The key.string wasn't zero-terminated, still we strdup'ed
24990         it in gdk_event_copy(). Synthesize crossing events for button
24991         events before possible propagation.
24992
24993         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
24994
24995         * gdk/win32/makefile.cygwin
24996         * gtk/makefile.cygwin: Use new DLL naming style for the
24997         GCC-compiled ones.
24998
24999         * gdk/win32/makefile.msc
25000         * gtk/makefile.msc: Cosmetics mostly.
25001
25002         * gtk/gtk.def: Add missing entry points.
25003
25004         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
25005
25006 1999-07-09  Tor Lillqvist  <tml@iki.fi>
25007
25008         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
25009         or height is zero. Don't print a warning if Pie or Arc fails, they
25010         always fail (?) for very narrow ellipses.
25011
25012         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
25013         the part or the destination window corresponding to source area
25014         outside of the source drawable's boundary.
25015
25016         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
25017         anything if less than two points.
25018
25019         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
25020         return NULL. Gtk cut-and-paste inside a single program works
25021         better this way. (It always gets the clipboard contents from
25022         Windows, not from its own copy, which is cleared anyway. I can't
25023         say I fully understand what happens... Emulating the X selection
25024         and property stuff is a bit of a mess.)
25025
25026         * gdk/win32/gdkevents.c
25027         * gdk/win32/gdkproperty.c: A bit more verbose logging.
25028
25029         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
25030         that never got deleted). Revamp gdk_region_shrink.
25031
25032         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
25033         after use.
25034
25035         * gtk/gtk.def: Add some missing entry points.
25036
25037         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
25038         component.
25039
25040 1999-07-04  Tor Lillqvist  <tml@iki.fi>
25041
25042         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
25043         Control-digits specially.
25044
25045 1999-07-03  Tor Lillqvist  <tml@iki.fi>
25046
25047         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
25048
25049 1999-06-28  Tor Lillqvist  <tml@iki.fi>
25050
25051         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
25052         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
25053         finding this.)
25054
25055 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
25056
25057         * gtk+.spec.in: Corrected some typos in files section.
25058         
25059 1999-06-15  Tor Lillqvist  <tml@iki.fi>
25060
25061         * README.win32: Mention using GNU gettext.
25062         * config.h.win32: Enable NLS stuff.
25063         * gtk/makefile.msc: Use GNU gettext.
25064         * gdk/win32/gdkdnd.c: Minor header reorg.
25065         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
25066         cosmetics.
25067         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
25068         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
25069
25070 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
25071
25072         * acinclude.m4
25073         * config.guess
25074         * config.status
25075         * ltconfig
25076         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
25077
25078 1999-05-30  Tor Lillqvist  <tml@iki.fi>
25079
25080         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
25081         SafeAdjustWindowRectEx. Don't override all calls to
25082         AdjustWindowRectEx by it, but use it only in two places: When
25083         creating a new top-level window and when moving a top-level
25084         window.
25085
25086         Use screen coordinate rectangle, not client rectangle, in
25087         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
25088         when we try to place a window so that the decoration (mainly,
25089         title bar) isn't visible.
25090
25091         These changes fix the bug that showed up for instance as the
25092         GIMP's saved top-level windows moving right and down (by an amount
25093         equal to the window decoration) for each session. This bug showed
25094         up also in testgtk's "Saved Position".
25095
25096         gdk_window_resize also redone a bit.
25097
25098 1999-05-25  Tor Lillqvist  <tml@iki.fi>
25099
25100         * gtk/testgtkrc: Add (commented out) Windows-style theme
25101         include line.
25102
25103         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
25104
25105 1999-05-18  Tor Lillqvist  <tml@iki.fi>
25106
25107         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
25108         gdkx.h to a gdk subdirectory, so that applications can include
25109         these with <gdk/*.h> without trouble.
25110
25111         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
25112         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
25113         have their bitmap destroyed.
25114
25115         * gdk/win32/gdk.def: Add gdk_root_parent.
25116
25117 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
25118
25119         * configure.in
25120           gtk-config.in
25121           ltconfig
25122           ltmain.sh     
25123           gtk/Makefile.am: changes to compile nicely (with xlib) 
25124           on BeOS
25125
25126 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
25127
25128         * acinclude.m4
25129         * config.guess
25130         * config.sub
25131         * ltconfig
25132         * ltmain.sh: upgrade to libtool 1.3
25133
25134 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
25135
25136         * gtk/gtkclist.c:
25137         * gtk/gtkctree.c: merges from gtk-1-2
25138
25139 1999-04-25  Tor Lillqvist  <tml@iki.fi>
25140
25141         Support added for building using a GNU toolchain on Win32,
25142         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
25143
25144         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
25145         * config.h.win32: Changes for gcc.
25146         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
25147         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
25148         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
25149         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
25150         Protect shl stuff unavaiilable with mingw32 headers.
25151         * gdk/win32/gdkevents.c: Fix typo.
25152         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
25153         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
25154         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
25155         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
25156         the mingw32 headers.
25157         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
25158         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
25159         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
25160         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
25161         Test for NATIVE_WIN32, not _MSC_VER.
25162         * gtk/gtkmain.c: No use warning about developer version on Win32,
25163         there aren't any non-developer versions anyhow.
25164         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
25165         * gtk/makefile.msc: Use pthread from another directory. Minor other
25166         changes. 
25167
25168 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
25169
25170         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25171           default filter from the list
25172
25173 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
25174
25175         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
25176          when gtk_widget_grab_default() is called for a widget that
25177          is not within a GtkWindow.
25178
25179 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
25180
25181         * docs/gtk_tut.sgml, examples/clist.c: use a
25182           scrolled window in the clist example. Minor
25183           tutorial fixes.
25184
25185 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
25186
25187         * docs/gtk_tut.sgml: Style check from David King
25188           <dking@youvegotmail.net>
25189
25190 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
25191
25192         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
25193         compile with unknown value of GDK_WINDOWING
25194
25195 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
25196
25197         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
25198         after the rule is fired.
25199         (install-exec-local): Install gdkconfig.h only if the contents are
25200         different from the currently installed gdkconfig.h.
25201
25202 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
25203
25204         * gdk/Makefile.am (configexecincludedir): Rename from 
25205         configincludedir so that gdkconfig.h will be installed 
25206         as part of `make install-exec'. 
25207
25208 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
25209
25210         * acinclude.m4
25211         * config.guess
25212         * config.sub
25213         * ltconfig
25214         * ltmain.sh: upgrade to libtool 1.2f
25215
25216         * autogen.sh: libtool is not required to autogen gtk+
25217
25218         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
25219         needed)
25220
25221 1999-03-18  Tor Lillqvist  <tml@iki.fi>
25222
25223         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
25224         declaring gdk variables exported/imported from the DLL. New image
25225         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
25226         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
25227         GDK_DRAG_PROTO_OLE2.
25228
25229         * gdk/gdk.h: Merge in Win32 version: Two new functions,
25230         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
25231         declared only for the Win32 version, but could be in the X11
25232         version as well. (Needed for a Xlib-less gdk_imlib.)
25233         gdk_color_hash should have only one parameter. Declare
25234         gdk_threads_mutex with GDKVAR.
25235         
25236         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
25237         just one parameter.
25238
25239         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
25240         per pixel, not bits.
25241
25242         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
25243         Fetch bpp (which means bits-per-pixel here) from another place on
25244         Win32. Accept also depth==32 (which we might get on Win32) with
25245         bpp==32.
25246
25247         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
25248         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
25249         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
25250         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
25251         in the backend-dependent directory, not in the common gdk
25252         directory.
25253
25254         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
25255         headers.
25256
25257 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
25258
25259         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
25260         want to use the Gtk+ devel version (which is true, and yes - even i am
25261         currently working with the 1.2.x branch). so everyone reading this, you
25262         probably want to issue
25263         cvs checkout -r glib-1-2 glib
25264         and
25265         cvs checkout -r gtk-1-2 gtk+
25266         as your next two comands.
25267
25268 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
25269
25270         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
25271         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
25272
25273         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
25274         file. strongly deprecated the GTK_HAVE_* macros, we provide
25275         GTK_CHECK_VERSION() for people that need to check for certain
25276         Gtk+ versions.
25277
25278         * gtk/gtkcompat.h: removed this from CVS.
25279         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
25280         idea right from the start, it just didn't seem like that back then.
25281
25282 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
25283
25284         * merges from gtk-1-2:
25285
25286 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
25287
25288         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
25289         item factory class has been created.
25290         (gtk_item_factory_parse_rc): likewise.
25291
25292         * gtk/gtkmenu.c:
25293         keep proper references for old_active_menu_item.
25294         (gtk_menu_reparent): unset the usize of the new parent,
25295         so the menu can sanely be size requested and we don't get nasty screen
25296         artefacts upon next reparentation.
25297         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
25298         enter notify. only synthesize enter notifies if the pointer really is
25299         inside the event window.
25300         (gtk_menu_popdown): use gtk_menu_shell_deselect().
25301         (gtk_menu_popup): move the background setting stuff into
25302         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
25303
25304         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
25305         gtk_menu_shell_select_item() to select the new item.
25306         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
25307         do the right thing for deselection as well.
25308
25309 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
25310
25311         * gtk/gtkwidget.[hc]:
25312         (gtk_widget_accelerators_locked): return whether a widget's accelerators
25313         are locked.
25314
25315         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
25316         existing accelerators if the widget's accelerators are locked.
25317
25318 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
25319
25320         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
25321
25322         * gtk/gtkmenu.c: truely forward key press and key release events to
25323         the menu widget from the toplevel or tearoff window. we can't simply
25324         connect to that, we need to stop further processing of the events as
25325         well.
25326
25327 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
25328
25329         * gtk/gtkmenu.c:
25330         (gtk_menu_key_press): pass event->keyval, event->state to
25331         gtk_accelerator_valid, instead of event->keyval twice.
25332         refuse to install single letter accelerators for menus that use
25333         single letter shortcuts.
25334
25335         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
25336         gtk_menu_ensure_uline_accel_group().
25337
25338         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
25339         which will always return an uline accel group, made
25340         gtk_menu_get_uline_accel_group() return NULL if the group isn't
25341         yet created.
25342
25343 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
25344
25345         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
25346
25347         * gtk/gtkclist.c (gtk_clist_column_title_passive):
25348         Leave button sensitive, trap  button_press, button_release,
25349         motion_notify, enter_notify and leave_notify events instead.
25350         (gtk_clist_column_title_active): disconnect event handler.
25351         (gtk_clist_drag_data_get): fixed memory leak. Reported by
25352         Guillaume Laurent <glaurent@worldnet.fr>
25353
25354 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
25355
25356         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
25357         width/height mixups.
25358
25359         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
25360         if needed.
25361
25362 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
25363
25364         * gtk/testgtk.c (create_item_factory): unref the item factory after
25365         window's destruction.
25366
25367         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
25368         count on the menu shell around the menu item's activation, since the
25369         signal emission may cause menu shell destruction.
25370
25371         * gtk/gtkitemfactory.c:
25372         the previous code leaked one accel group per menu. we use
25373         gtk_menu_get_uline_accel_group() now to fix that, and with that
25374         also create the underline accelerator group of the menus only if
25375         required (i.e. an underline accelerator has been specified).
25376         (gtk_item_factory_construct):
25377         (gtk_item_factory_create_item): removed code that would create an
25378         extra accel group for the menu (and leak references).
25379         (gtk_item_factory_create_item): adapted the underline accelerator
25380         installation code to properly feature gtk_menu_get_uline_accel_group().
25381
25382         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
25383         menu->accel_group, this may return NULL if the accelerator group
25384         hasn't been set yet.
25385         added gtk_menu_get_uline_accel_group() to retrive the underline
25386         accelerator group of the menu, this will be created on demand
25387         and proper care is taken about its reference count.
25388
25389         * gtk/gtkitemfactory.h:
25390         * gtk/gtkitemfactory.c:
25391         dumped the approach of keeping a widgets by action list on the
25392         factory since the factory<->widget destroy negotiation didn't work
25393         and would be hard to get going at all. instead we keep a list of
25394         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
25395         persistant throughout a program's life time).
25396         also, i removed the static const gchar *key_* variables, and made
25397         them inline strings (they weren't actually used anyways).
25398         (gtk_item_factory_add_item): update ifactory->items.
25399         (gtk_item_factory_destroy): destroy ifactory->items (and remove
25400         the item factory pointer from the remaining ifactory widgets).
25401         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
25402         list to find the widget.
25403         (gtk_item_factory_get_item): new function that works around
25404         gtk_item_factory_get_widget() limitations, this function will only
25405         return menu items, even for <Branch> entries.
25406
25407 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25408
25409         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25410         font hash table, if we have a GdkFontPrivate entry for this font
25411         already, simply increment its reference count, provided by Olaf Dietsche
25412         <olaf.dietsche+list.gtk@netcologne.de>.
25413
25414         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25415         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25416
25417 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
25418
25419         * gtk/gtkcontainer.c:
25420         (gtk_container_add_with_args):
25421         (gtk_container_addv):
25422         (gtk_container_add): before adding a child to a conatiner, make sure
25423         it is (default) constructed, this is neccessary because under certain
25424         circumstances the child will get relized and mapped immediatedly, in
25425         which case it has to be constructed already.
25426
25427 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
25428
25429         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
25430         values > 1 as TRUE also.
25431
25432 1999-03-16  Tor Lillqvist  <tml@iki.fi>
25433
25434         * README.win32: New file.
25435                 
25436         * configure.in: Check for lstat.
25437
25438         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
25439         completeness.
25440
25441         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
25442
25443         * gtk/gtk.def: Removed CRs.
25444
25445         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
25446         ..\gdk\win32).
25447
25448         * gdk/win32/makefile.msc: Correct upwards relative paths.
25449         
25450 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
25451
25452         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
25453           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
25454           it was connecting a void function to expose_event and the int
25455           returning function to the draw signal
25456
25457 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
25458
25459         * configure.in:
25460         Use correct path to libgmodule.la when ref'ing uninstalled copy
25461         of glib.  (Already in stable branch, Bug #417)
25462
25463 1999-03-15  Tor Lillqvist  <tml@iki.fi>
25464
25465         Win32 merge and general portability stuff:
25466                 
25467         * acconfig.h,configure.in: Check for <sys/time.h>.
25468
25469         * gdk/win32: New directory (actually, been there for a while).
25470         
25471         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
25472         NATIVE_WIN32, and use these. Always case fold on Win32. No
25473         backslashed escapes on native Win32.
25474
25475         * gtk/{gtk.def,makefile.msc}: New files.
25476
25477         * gtk/Makefile.am: Add above new files.
25478         
25479         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
25480         instead of <strings.h>.
25481
25482         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
25483         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
25484         <unistd.h> appropriately.
25485
25486         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
25487         Use ABS() (from <glib.h>) instead of abs().
25488         
25489         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
25490         of gtk (and thus glib) headers, so that WIN32 will be
25491         defined. With MS C, include <direct.h> for mkdir prototype.
25492
25493         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
25494         some casts, needed by MS C.
25495
25496         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
25497         implemented).
25498
25499         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
25500         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
25501         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
25502
25503         * gtk/gtkmain.h: Mark variables for export/import on Win32.
25504                 
25505         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
25506         the event is not a hint, or its window is not the slider. Needed
25507         on Win32, at least.
25508
25509         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
25510         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
25511         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
25512         a subdirectory of the Windows directory as gtk system
25513         configuration directory.
25514
25515         * gtk/gtkselection.c: No chunks on Win32.
25516
25517         * gtk/gtksocket.c: Not implemented on Win32.
25518
25519         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
25520
25521         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
25522
25523         * gtk/maketypes.awk: Declare variables with a macro that expands to
25524         necessary export/import magic in the case of Win32.
25525                 
25526         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
25527
25528 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
25529
25530         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
25531         since those were meant only for gdki18n.h.  
25532         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
25533         for widechar tests.
25534         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
25535
25536 1999-03-13  Tor Lillqvist  <tml@iki.fi>
25537
25538         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
25539         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
25540
25541         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
25542         installed) to CFLAGS.
25543
25544         * gdk/Makefile.am: Add rules for gdkconfig.h.
25545
25546         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
25547         APIs.
25548
25549         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
25550         gdkx.h anyway when compiling for X11.
25551         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
25552         general): Merge in Win32 version.
25553         
25554         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
25555         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
25556         expansion (if we don't have HAVE_PWD_H), allow for drive
25557         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
25558         included code from Craig Setera's port to Win32 (the one that uses
25559         X11, and the cygwin dll), even if it probably will be abandoned.
25560
25561         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
25562         the user entered one herself.  This way one can complete *.h and
25563         don't get matches on any .help files, for instance.
25564         
25565 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
25566
25567         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25568         font hash table, if we have a GdkFontPrivate entry for this font
25569         already, simply increment its reference count, provided by Olaf Dietsche
25570         <olaf.dietsche+list.gtk@netcologne.de>.
25571
25572         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25573         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25574
25575 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
25576
25577         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
25578         the number of calls to gdk_draw_point() (and thus to X) by
25579         clipping the points by hand.
25580
25581         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
25582         the clip parameter.
25583         (gtk_handle_box_paint): Only paint the handle if the expose area
25584         intersects it.
25585
25586 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
25587
25588         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
25589
25590 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
25591
25592         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
25593         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
25594
25595 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
25596
25597         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
25598          textmode (O_TEXT) for OS/2 version.
25599
25600 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
25601
25602         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
25603         GtkSpinButton, "input" and "output", to make the output more flexible.
25604         The user has to provide a mapping between adjustment->value and the
25605         output string (and vice versa, if the spin button is editable). 
25606         See testgtk for examples.
25607
25608 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
25609
25610         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
25611         new one.
25612         
25613         * configure.in: set gtk+ version to 1.3.0.
25614
25615         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,